PageSourceSearch

https://www.lawinsider.com/static/assets/search.dfa9b62d64.js

js lawinsider.com collected 2026-09-24 08:29:25 UTC 167,232 bytes, 3 lines download raw bytes

1/*! For license information please see search.dfa9b62d64.js.LICENSE.txt */
2(globalThis.webpackChunklawinsidercontracts||=[]).push([[187],{4902(e,t,n){"use strict";n.d(t,{A:()=>h});var i=n(6942),r=n.n(i),s=n(9869),o=n(6058),a=n(5391),l=n(9002),c=n(6536),u=n(9698);const d=(0,s.lazy)(()=>n.e(1854).then(n.bind(n,8281)));function h({className:e,filterByValue:t,focusOnInit:n,onClose:i,onLoadOptions:h,onSelect:f,options:p,placeholder:m}){const[g,y]=(0,s.useState)(-1),[b,_]=(0,s.useState)(p),[v,S]=(0,s.useState)(!1),[E,C]=(0,s.useState)(!1),[A,w]=(0,s.useState)(""),x=(0,s.useRef)(null),N=(0,s.useRef)([]),T=(0,s.useCallback)(e=>{const t=x.current?.closest(".lic-autocomplete")?.querySelectorAll('[role="option"]');return N.current[e]||t?.[e]},[]),I=(0,s.useCallback)(()=>{C(!1),y(-1),w("")},[]),k=(0,s.useCallback)(e=>{x.current.blur(),f?.(e),I()},[I,f]),R=(0,s.useCallback)(e=>{y(e)},[]),D=(0,s.useCallback)(e=>{if(E)if("Enter"===e.key)g>-1&&T(g)?.click();else if("Escape"===e.key)C(!1),x.current.blur();else if(["ArrowDown","ArrowUp"].includes(e.key)){if(!b?.length)return;const t="ArrowDown"===e.key?1:-1;y(e=>{let n=e+t;return n<0?n=b.length-1:n>=b.length&&(n=0),n})}},[g,b,T,E]),O=(0,s.useCallback)((e,t)=>{e&&(N.current[t]=e)},[]);return(0,s.useEffect)(()=>{if(E)if(A&&p?.length){const e=A.toLowerCase(),n=t=>t.toLowerCase().includes(e);_(p.filter(({label:e,value:i})=>n(e)||t&&n(i)))}else _(p)},[t,p,E,A]),(0,s.useEffect)(()=>{const e=T(g);E&&e&&e.scrollIntoView({block:"nearest"})},[g,T,E]),(0,s.useEffect)(()=>{!async function(){E&&!p&&h&&(S(!0),await h(),S(!1))}()},[h,E,p]),(0,s.useEffect)(()=>{n&&x.current.focus()},[n]),(0,u.Y)("div",{className:r()("lic-autocomplete",e),children:(0,u.FD)(l.A,{children:[(0,u.FD)("div",{style:{position:"relative"},children:[(0,u.Y)(c.A,{ref:x,autoComplete:"off",placeholder:m,value:A,onChange:e=>{y(-1),w(e.target.value),C(!0)},onClick:()=>{E||C(!0)},onFocus:()=>C(!0),onKeyDown:e=>D(e)}),E&&(0,u.Y)("div",{className:"lic-autocomplete__close",children:(0,u.Y)(a.A,{"aria-label":"Close autocomplete",onClick:()=>{I(),i?.()},children:(0,u.Y)("i",{className:"icon icon-close-grey"})})})]}),(0,u.Y)(o.A,{MenuComponent:d,activeIndex:g,filterByValue:t,handleItemClick:k,handleItemHover:R,inputValue:A,loading:v,open:E,options:b,updateItemRef:O,onClose:()=>{document.activeElement!==x.current&&(I(),i?.())}})]})})}},10(e,t,n){"use strict";n.d(t,{A:()=>s});var i=n(2109),r=n(9698);function s(){return(0,r.FD)("a",{className:"stack__item",href:i.A.PRIVATE_HOMEPAGE,...i.Js,children:["About Contract Libraries ",(0,r.Y)("i",{className:"icon icon-launch icon--xs"})]})}},9621(e,t,n){"use strict";n.d(t,{A:()=>l,S:()=>a});var i=n(6942),r=n.n(i),s=n(7399),o=n(9698);function a(e,t=.51767653,n=.52974105){const i=(e-t)/(n-t);return Math.max(0,Math.min(i,1-Number.EPSILON))}function l({score:e,tooltipTemplate:t}){if(!s.A.SHOW_CLAUSE_FINDER_SCORE.get())return null;const n=null===e;let i,l,c;if(!n){const t=a(e);l=100*t,c=Math.floor(l);const n=t<=.5?0:120*(t-.5)*2;i=`conic-gradient(hsl(${n}, 60%, 60%) 0% ${l}%, hsl(${n}, 60%, 90%) ${l}% 100%)`}return(0,o.Y)("span",{"aria-label":n?void 0:t?.replace("{score}",c.toString()),className:"tooltip-flat-sm tooltip-top-left",role:"tooltip",children:(0,o.Y)("div",{className:r()(n&&"qf3cnbPWc2"),style:{background:i,borderRadius:"50%",height:"30px",position:"relative",width:"30px"},children:(0,o.Y)("div",{style:{alignItems:"center",background:"#fff",borderRadius:"50%",display:"flex",fontSize:"14px",height:"20px",justifyContent:"center",left:"5px",position:"absolute",top:"5px",userSelect:"none",width:"20px"},children:c})})})}},1383(e,t,n){"use strict";n.d(t,{HG:()=>A,isSection:()=>v});var i=n(9869),r=n(2109),s=n(7071),o=n(7033),a=n(3544),l=n(42),c=n(6780),u=n(7399),d=n(6660),h=n(9698);const f=u.A.SEARCH_NAMESPACE_FILTER.get()?[r.$Y]:[],p=u.A.ENABLE_SEMANTIC_SEARCH.get()?["vector"]:[],m=[].concat(f,p),g={q:""},y=new Set(["q","p","tab","order","similar","namespace","vector",r.ED,r.v]),b=(0,i.createContext)({}),_=b;function v(e){return["clause",r.Gd].includes(e)}function S(e){return Object.fromEntries(Object.entries((0,a.R2)(e)).filter(([e,t])=>y.has(e)||"object"==typeof t&&null!==t))}function E(){const e=document.querySelector("[data-search-index]"),t={};if(e){const{searchIndex:n,searchKey:i,searchTab:r,searchValue:s}=e.dataset;t.tab=r||n,i&&(t[i]={[s]:""})}return t}function C(e,{filtersFromPage:t=!1,replaceHistory:n=!1,resetState:i=!1,setFocus:s=!1,updateHistory:o=!0,...l}){let d=g;if(e.tab&&(d={...d,tab:e.tab}),i||(d={...e}),t&&(d={...E(),...d}),d=Object.fromEntries(Object.entries({...d,...l}).filter(([,e])=>!(void 0===e||"object"==typeof e&&0===Object.keys(e).length))),u.A.SEC_ONLY_FILTER_ENABLED.set(!!d[r.ED],{updateState:!1}),v(d.tab)||e.tab===d.tab||delete d.vector,d.vector)if(v(d.tab)||(d.tab="clause"),d[c.Pj]){const e={vector:d.vector,[c.Pj]:d[c.Pj]};c.FK.set("k",e)}else{const e=c.FK.get("k");d.vector===e?.vector&&(d[c.Pj]=e?.[c.Pj]||"")}else delete d[c.Pj];if([r.B2,"clause",r.Gd].includes(d.tab)?([r.B2,"clause",r.Gd].includes(e.tab)&&e.tab!==d.tab&&delete d.similar,d.similar?delete d.order:v(d.tab)&&(
2d.tab in d||d.vector?d.order="common":delete d.order)):(delete d.order,delete d.similar),v(d.tab)&&e!==g&&(d.order||d.similar)){var h;const{tab:t}=d,n=Object.keys(null!=(h=d?.[t])?h:{})[0];if(void 0!==n){const i=e?.[t]?.[n],r=d?.[t]?.[n];r!==i&&(d.q=r),d.q!==e.q&&(d={...d,[t]:{...d[t],[n]:d.q}})}}e!==g&&d.tab!==e.tab&&(d.order||d.similar)!==(e.order||e.similar)&&(d.q="");const f=JSON.stringify(e)!==JSON.stringify(d);return f&&e.p&&!l.p&&delete d.p,o&&(e!==g||f)&&function({pathname:e,replaceHistory:t=!1,search:n}){const{pathname:i,search:r}=window.location,s=(0,a.J1)({pathname:e,search:n});(0,a.J1)({pathname:i,search:r})!==s&&window.history[t?"replaceState":"pushState"](null,null,s)}({pathname:window.location.pathname.startsWith("/msword/")?"/msword/taskpane":(0,a.iY)("/search"),replaceHistory:n,search:(0,a.XT)(d)}),f?(s&&document.querySelector(".sk-search-box__text")?.focus(),d):e}function A({children:e}){const[t,a]=(0,i.useState)(null),[f,p]=(0,i.useState)(!0),[m,y]=(0,i.useState)(!1),[_,v]=(0,i.useReducer)(C,g),[E,A]=(0,i.useState)(),[w,x]=(0,i.useState)(!1),N=(0,i.useRef)(!1);(0,i.useEffect)(()=>(v({...S(window.location.search.replace(/^\?/,"")),...u.A.SEC_ONLY_FILTER_ENABLED.get()?{[r.ED]:!0}:{},filtersFromPage:!0,updateHistory:!1}),y(!0),(0,s.fv)(window,"popstate",()=>{a(null),v({tab:void 0,...S(window.location.search.replace(/^\?/,"")),resetState:!0,updateHistory:!1})})),[]),(0,i.useEffect)(()=>{m&&async function(){N.current&&document.dispatchEvent(new Event(r.qY.RECHECK_COUNTERS)),N.current=!0,p(!0),a(null);const e=document.querySelector(".search-fullscreen");e?.scrollIntoView();try{const e=await n.e(187).then(n.bind(n,8343));let t;if(t="contract"===_.tab&&"common"===_.order?await async function(e,t){const n=await e.default(t,{queryType:"runContractQuery"});return n.hits.hits.sort((e,t)=>t._source.group_size-e._source.group_size),n}(e,_):_.vector?await e.default(_,{queryType:"runSemanticQuery"}):await e.default(_),_.p){const e=Math.max(Math.ceil(t.hits.total/t.size),1);if(_.p>e)return void v({p:e>1?e:void 0,replaceHistory:!0})}a(t)}catch(e){if("AbortError"===e.name)return;a({error:e})}p(!1)}()},[m,_]);const T=(0,i.useMemo)(()=>""===window.location.search?"$all":_.tab||"$all",[_]);return(0,i.useEffect)(()=>(0,s.fv)(document,r.qY.MSWORD_QUERY,async({detail:{q:e}})=>{if(u.A.ENABLE_SEMANTIC_SEARCH.get()){let t;p(!0);try{t=await(0,l.A)(e)}finally{p(!1)}(0,d.s)("search_filter_add",{name:"vector",trigger:"selection",value:e.length}),v({vector:t,[c.Pj]:e})}else(0,d.s)("search",{search_term:e,trigger:"selection"}),v({q:e})}),[v,p,T]),(0,i.useEffect)(()=>{_.namespace?.length>0&&!_.namespace.includes(u.A.NAMESPACE.get())&&(0,o.Fq)()},[_]),(0,h.Y)(b.Provider,{value:(0,i.useMemo)(()=>({activeTab:T,loading:f,queryState:_,results:t,setLoading:p,setQueryState:v,setSuggestedFilters:A,setSuggestedFiltersLoading:x,suggestedFilters:E,suggestedFiltersLoading:w}),[T,f,_,t,v,E,A,w,x]),children:e})}n.d(t,["Ay",0,_,"HA",0,f,"eg",0,p,"u8",0,m])},1976(e,t,n){"use strict";n.d(t,{A:()=>h});var i=n(9869),r=n(42),s=n(1383),o=n(6780),a=n(7399),l=n(2970),c=n(6536),u=n(6660),d=n(9698);function h(){const{activeTab:e,queryState:{[o.Pj]:t},setLoading:n,setQueryState:h}=(0,i.useContext)(s.Ay),[f,p]=(0,i.useState)(null!=t?t:""),[m,g]=(0,i.useState)(!0);(0,i.useEffect)(()=>{o.FK.get("k")||g(!1)},[]);const y=(0,s.isSection)(e)?e:"clause",b=(0,a._)(a.A.ENABLE_SEMANTIC_SEARCH_DIFF_VIEW);return(0,d.Y)("div",{className:"sf-filter__control",children:(0,d.FD)("form",{onSubmit:e=>{e.preventDefault()},children:[!m&&(0,d.Y)("p",{className:"margin-b-20 color-grey-dark",children:"For semantic search, a ~118MB text embedding model is loaded and cached in your browser. This advanced tool interprets text contextually, analyzing the meanings and relationships between words, ensuring a nuanced and privacy-focused search experience."}),(0,d.Y)(c.A,{autoFocus:!0,textarea:!0,className:"dark-blue-border-color no-margin",label:`Insert ${y} text to find similar ${y}s`,rows:"4",value:f,onBlur:async()=>{let e;if(f){n(!0);try{e=await(0,r.A)(f)}finally{n(!1)}}(0,u.s)("search_filter_add",{name:"vector",value:f.length}),h({vector:e,[o.Pj]:f})},onChange:e=>p(e.target.value)}),(0,d.FD)(l.A,{checked:b,style:{marginTop:"10px"},onChange:({target:{checked:e}})=>{a.A.ENABLE_SEMANTIC_SEARCH_DIFF_VIEW.set(e),(0,u.s)("flag_change",{name:"ENABLE_SEMANTIC_SEARCH_DIFF_VIEW",value:e})},children:["Show similarity details"," ",(0,d.Y)("span",{"aria-label":"Enable this option to view a detailed comparison between your text and matching clauses or definitions, highlighting similarities and differences.",className:"tooltip-flat-md tooltip-top",role:"tooltip",style:{verticalAlign:"text-bottom"},children:(0,d.Y)("span",{className:"icon icon-helper"})})]})]})})}n.d(t,["Y",0,"ClauseFinder™ excels in pinpointing precise clauses and definitions from a comprehensive collection of legal documents. To utilize this feature, input or paste complete sections of text rather than simple queries. Enhance your search accuracy by applying filters, including the option to search exclusively within your private library if needed. Your text is processed locally on your device—ensuring confidentiality and security in every search."])},42(e,t,n){"use strict";n.d(t,{A:()=>S});var i=n(3269),r=n.n(i),s=n(1132),o=n.n(s),a=n(4579),l=n.n(a),c=n(9869),u=n(2109),d=n(70
271),h=n(7399),f=n(6402),p=n(6660),m=n(9698);const g="MODEL_LOADING_PROGRESS_EVENT";async function y(e){const t=new Blob([new Int8Array(e)],{type:"application/octet-stream"}),n=await function(e){return new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>t(i.result),i.addEventListener("error",()=>n(i.error)),i.readAsDataURL(e)})}(t);return n.split(",",2)[1]}function b(){const[e,t]=(0,c.useState)(0);return(0,c.useEffect)(()=>(0,d.fv)(document,g,({detail:{progress:e}})=>t(e)),[]),(0,m.FD)("div",{children:[(0,m.Y)("span",{children:"Downloading ClauseFinder™ model..."}),(0,m.Y)("br",{}),(0,m.Y)("br",{}),(0,m.Y)("span",{children:(0,m.Y)(f.A,{className:"lXaTuyyU2i",progress:e})})]})}let _;const v=new(function(){function e(){this.currentLock=Promise.resolve()}return e.prototype.lock=async function(){const e=this.currentLock;let t;return this.currentLock=new Promise(e=>{t=e}),await e,t},l()(e)}());async function S(e){if(h.A.ENABLE_VECTORIZER_SERVER.get()){const t=await fetch("/api/vectorizer",{body:JSON.stringify(e),headers:{"Content-Type":"application/json"},method:"POST"});return y(await t.json())}const t=await v.lock();let i;try{i=await(async()=>{if(_)return _;const{env:e,pipeline:t}=await n.e(4276).then(n.bind(n,6646));let i;e.allowRemoteModels=!0,e.allowLocalModels=!1,e.useBrowserCache=!0;let r,s=!1;return _=await t("feature-extraction","Xenova/paraphrase-multilingual-MiniLM-L12-v2",{dtype:"q8",progress_callback:({file:e,progress:t,status:n})=>{e?.includes("model")&&("initiate"===n?(r=Date.now(),i=setTimeout(()=>{(0,d.xE)((0,m.Y)(b,{}),{key:g,timeout:-1}),s=!0},1e3)):"progress"===n?document.dispatchEvent(new CustomEvent(g,{detail:{progress:t/100}})):"done"===n&&(clearTimeout(i),s&&(document.dispatchEvent(new CustomEvent(u.qY.ALERT_CLOSE,{detail:{key:g}})),(0,d.xE)("The ClauseFinder™ model is now successfully downloaded and stored in your browser."),(0,p.s)("clausefinder_model_downloaded",{took_ms:Date.now()-r}))))}}),_})()}finally{t()}const s=await i(e,{normalize:!0,pooling:"mean"}),a=r()(o(),function(e){return e.mul(555.487615435793).add(-13.262701442957137).round().clamp(-128,127).data}(s));return y(a)}},7421(e,t,n){"use strict";n.d(t,{A:()=>br});var i=n(6942),r=n.n(i),s=n(9869),o=n(2109),a=n(4918),l=n(7071),c=n(1917),u=n(3544),d=n(8642),h=n(9955),f=n(5809),p=n(7563),m=n(7547),g=n(4579),y=n.n(g),b=n(3269),_=n.n(b),v=n(1132),S=n.n(v),E=n(2189),C=n.n(E),A=n(6929),w=n(2260),x=n(9214),N=n(8937),T=n(907),I=n(9621),k="chf8fgAv4I",R=n(7399),D=n(5391),O=n(9698);async function Y({snippet:e}){await window.Word.run(async t=>{const n=t.document.getSelection();t.load(n);const{paragraphs:i}=n;t.load(i);const r=i.getFirst().getPreviousOrNullObject();t.load(r);const s=i.getLast().getNextOrNullObject();t.load(s),await t.sync();let o=e;if(R.A.ENABLE_MAGIC_REPLACER_LLM_USAGE.get()){const t=await fetch("/api/search/magicreplacer",{body:JSON.stringify({currentParagraph:i.items.map(e=>e.text).join("\n"),nextParagraph:s.text,previousParagraph:r.text,replacementText:e,selectedText:n.text}),credentials:"same-origin",method:"POST"});o=await t.json()}return n.clear(),n.insertText(o,window.Word.InsertLocation.replace),t.sync()})}function F(){return(0,O.FD)(O.FK,{children:[(0,O.Y)("p",{children:"We recommend to enable change tracking feature before using Magic replacer."}),(0,O.FD)("p",{children:["Select ",(0,O.Y)("b",{children:"Review"})," > ",(0,O.Y)("b",{children:"Track Changes"})," to turn it on."]})]})}function M({snippet:e}){const[t,n]=(0,s.useState)(!1),[i,o]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{async function e(){await window.Word.run(async e=>{const t=e.document.getSelection();e.load(t),await e.sync(),t.isEmpty&&n(!0)})}return Office.context.document.addHandlerAsync(Office.EventType.DocumentSelectionChanged,e),()=>{Office.context.document.removeHandlerAsync(Office.EventType.DocumentSelectionChanged,{handler:e})}},[]),(0,O.Y)("div",{children:(0,O.FD)(D.A,{disabled:t||i,size:"sm",onClick:async()=>{o(!0),await(await async function(){return"Off"!==await window.Word.run(async e=>(e.load(e.document,"changeTrackingMode"),await e.sync(),e.document.changeTrackingMode))}()?Y({snippet:e}):(0,l.lJ)((0,O.Y)(F,{}),{action:"Continue without change tracking",callback:()=>Y({snippet:e}),title:"Change tracking is off"})),o(!1)},children:[(0,O.Y)("i",{className:r()("icon",{"icon-clause-finder":!i,"icon-clause-finder-animated":i}),style:{marginRight:"0.5rem"}}),"Magic Replacer"]})})}function P({snippet:e}){const{isMSWord:t}=(0,s.useContext)(f.A);return window.Word&&t&&e?(0,O.Y)(M,{snippet:e}):null}var L=n(1383),H=n(6780);const B={$all:"All",[o.Gd]:"Dictionary",[o.ED]:"SEC.gov Only",_index:"Type",amendment:"Amendment",body_size:"Document Size",exact:"Exact Phrase",exclude:"Exclude Keywords",filing_year:"Filing Year",not_amendment:"Not Amendment",order:"Group",similar:"Similar",snippet_size:"Snippet Size",vector:"ClauseFinder™"},j={clause:"Clause",[o.B2]:"Contract",[o.Gd]:"definition"},q="Registration statement under Securities Act of 1933",z={exhibit_id:{"ex-1":"Underwriting Agreements and Conflict Minerals Reports","ex-10":"Material Contracts","ex-102":"Asset Data","ex-103":"Asset-Related Documents","ex-106":"Static Pools","ex-13":"Annual and Quarterly Reports to Security Holders","ex-14":"Codes of Ethics","ex-17":"Letters re: Departures of Directors","ex-19":"Reports Furnished to Security Holders","ex-2":"Plans of Acquisitions, Reorganizations, Arrangements, Liquidations and 
2Successions","ex-20":"Other Documents and Statements Furnished to Security Holders","ex-21":"Subsidiaries","ex-22":"Published Reports Regarding Matters Submitted to Votes of Security Holders","ex-23":"Consents of Experts and Counsel","ex-24":"Powers of Attorney","ex-25":"Statements re: Eligibility of Trustees — Forms T-1 / T-2","ex-26":"Invitations for Competitive Bids","ex-28":"Information from Reports Furnished to State Insurance Regulatory Authorities","ex-3":"Articles of Incorporation/Organization and By-Laws","ex-32":"Certifications — §906 – SOA’02","ex-33":"Reports of Compliance with Servicing Criteria","ex-34":"Attestation Reports on Assessments of Compliance with Servicing Criteria","ex-35":"Servicer Compliance Statements","ex-36":"Depositor Certifications for Shelf Offerings","ex-4":"Instruments, including Indentures, Defining the Rights of Security Holders","ex-5":"Opinions of Counsel re: Legality","ex-6":"Opinions of Counsel re: Discounts on Capital Shares","ex-8":"Opinions of Counsel re: Tax Matters","ex-9":"Voting Trust Agreements","ex-95":"Mine-Safety Disclosures","ex-99":"Miscellaneous Exhibits, including Press Releases"},filing_type:{"10-12b":"Registrations of Securities (General Form)","10-12g":"Registrations of Securities (General Form)","10-k":"Annual report pursuant to Section 13 or 15(d)","10-k405":"Annual Reports — Item 405 – Reg. S-K","10-q":"General form for quarterly reports under Section 13 or 15(d)","10-qsb":"Quarterly Reports by Small Businesses","10ksb":"Annual Reports by Small Businesses","10sb12g":"Registrations of Securities of Small-Business Issuers","20-f":"Registration statement / Annual report / Transition report","20fr12g":"Registrations of Securities of Foreign Issuers","40-f":"Registration statement pursuant to Section 12 or annual report pursuant to Section 13(a) or 15(d)",425:"Prospectuses and Communications – Business Combinations","485apos":"Post-Effective Amendments of Form N-1 and N-1A Registrations",487:"Pre-Effective Pricing Amendments of Registration Statements","6-k":"Report of foreign private issuer pursuant to Rule 13a-16 or 15d-16 under the Securities Exchange Act of 1934","8-a12b":"Registrations of Certain Classes of Securities","8-k":"Current report pursuant to Section 13 or 15(d)","8-k12b":"Notices of Securities of Successor Issuers Deemed to be Registered",defa14a:"Additional Definitive Proxy Soliciting Materials",drs:"Draft Registration Statements by Emerging Growth Companies and Foreign Issuers","f-1":"Registration statement for securities of certain foreign private issuers","f-4":"Registration statement for securities of certain foreign private issuers issued in certain business combination transactions","s-1":q,"s-11":"Registration of securities of certain real estate companies","s-3":q,"s-3asr":"Automatic Shelf Registration Statements for Securities of Well-Known Seasoned Issuers","s-4":q,"s-8":"Registration statement under Securities Act of 1933 to be offered to employees pursuant to certain plans","sb-2":"Registration Statements by Small-Business Issuers","sf-3":"Shelf Registration Statements for Qualified Offerings of Asset-Backed Securities"}};var $=n(861),U=n(2199),K=n(6660),G=n(4681);const V=["January","February","March","April","May","June","July","August","September","October","November","December"],W=[o.Ff,o.Gz,o.$w,o.S9],Q=new Set(["clause",o.Gd].concat(W));function J(e){const t=Number.parseInt((0,A.A)(e),16);return`hsl(${t%360}, ${t%21+88}%, 88%)`}function X({library:e,xs:t}){return(0,O.Y)("span",{"aria-label":"Private library result is only visible to you."+(e?`\nLibrary ID: ${e}`:""),className:"tooltip-flat-md tooltip-right",role:"tooltip",style:{paddingRight:"3px"},children:(0,O.Y)("i",{className:r()("icon icon-folder-lock-black",{"icon--xs":t})})})}function Z(e,t=0){const n=[];for(const i of e)n.push.apply(n,[{depth:t,...i}].concat(_()(S(),Z(i.details,t+1))));return n}function ee({explanation:e}){return e?(0,O.Y)("div",{style:{fontFamily:"monospace",marginTop:"5px",whiteSpace:"pre"},children:e.details.map((e,t)=>(0,O.Y)("span",{"aria-label":e.description,className:"tooltip-top-right",role:"tooltip",children:(0,O.Y)("button",{style:{cursor:"pointer"},type:"button",onClick:()=>(0,l.xE)((0,O.Y)("div",{style:{fontFamily:"monospace",textAlign:"left",whiteSpace:"pre"},children:Z([e]).map(e=>["".padStart(2*e.depth,"-"),e.value.toFixed(3).toString().padStart(9),e.description,"\n"].join(" "))}),{dialog:!0}),children:e.value.toFixed(3).toString().padStart(9)})},t))}):null}function te({children:e,disabled:t,explanation:n,index:i,updateQueryState:r,url:s}){return(0,O.FD)("div",{className:"sk-hits-list__item__label",children:[(0,O.Y)("a",{disabled:t,href:s,onClick:e=>{r&&!(0,w.A)(e)&&(e.preventDefault(),r())},...o.Js,children:(0,O.Y)("span",{children:i?j[i]||(0,a.u2)(i):e})}),(0,O.Y)(ee,{explanation:n})]})}function ne(){return(0,G.Ys)()?R.A.SEARCH_RESULT_SNIPPET_LIMIT_FREE.get():R.A.SEARCH_RESULT_SNIPPET_LIMIT_PAID.get()}function ie(e){return _()(S(),e).toReversed().join("")}function re(e,t,n){if(t.length<=n)return t;const i=(0,a.we)(e).exec(t);if(i){const r=e=>(0,a.xv)(e,n,!1),s=i.index;if(s<n/2)return r(t);if(t.length-(s+e.length)<n/2)return ie(r(ie(t)));const o=s-n/2;return`...${r(t.slice(t.indexOf(" ",o),o+e.length+n).trim())}`}return(0,a.xv)(t,n,!1)}function se(e,t,n,i){return(0,a.Zt)(e,n,t,i)}function oe(e){return e.split("/",2)[1]}function ae(e){const t=e.split("/",1)[0];return"en"===t?"":t}let le=function(){return y()(function(e,{limits:t,query:n,queryTokens:i}){this.truncateSourceFieldByQuery=(e,t)=>re(this.query||"",this.source?.[e]||"",t),this.id=oe(e._id),this.namespace=ae(e._id),this.index=e._index,this.limits=t,this.explanation=e._explanation,this.result=e,this.source=e._source,this.query=n,this.position=e._position,this.missingKeywords=[],void 0!==e.matched_queries&&(this.missingKeywords=_()(S(),new Set(i?.filter(t=>!e.matched_queries.includes(t)))))},[{key:"highlightedSnippet",get:function(){return(0,a.SY)(this.snippet,this.query)}},{key:"highlightedTitle",get:function(){return(0,a.SY)(this.title,this.query)}},{key:"snippet",get:function(){const{maxSnippetLength:e}=this.limits;return this.truncateSourceFieldByQuery("snippet",e)}},{key:"title",get:function(){const{maxTitleLength:e}=this.limits;return this.truncateSourceFieldByQuery("name",e)}}])}();function ce(e,t){return e?t.match((0,a.we)(e))?.length:0}function ue(e){if(void 0===e)return;const t=e.split("#")[1];return`_${Number.parseInt(t,16)}`}function de({children:e,disabled:t,namespace:n,published:i=!0,updateQueryState:a,url:l}){const{isMSWord:u}=(0,s.useContext)(f.A),d=(0,c.Gi)(n||"en");return(0,O.FD)(O.FK,{children:[(0,O.FD)("a",{className:r()("sk-hits-list-hit__link",{"sk-hits-list-hit__link--disabled":t}),disabled:t,href:l,onClick:e=>{const t=e.target.closest(o.Q2),{documentId:r,groupId:s,position:c,sourceId:d,targetType:h}=t.dataset;(0,K.s)("search_result_click",{document_id:r,group_id:s,is_published:i,namespace:n,position:c,source_id:d,target_type:h}),a&&!(0,w.A)(e)?(e.preventDefault(),a()):u&&(e.preventDefault(),window.open(l))},children:[d&&(0,O.Y)(X,{library:n}),e,!i&&!t&&(0,O.Y)("i",{className:"icon sample-icon icon-launch"})]}),t&&(0,O.Y)("span",{"aria-label":"This result is based on an external document that is no longer available",className:"tooltip-flat tooltip-flat-md tooltip-bottom-left",role:"tooltip",children:(0,O.Y)("span",{className:"icon icon-helper sample-icon",style:{marginBottom:"2px"}})})]})}function he({contractType:e,draftSnippet:t,draftTitle:n,groupHash:i,ns:r,snippet:a,title:l,type:c,url:u}){const{copyNotSupported:d}=(0,s.useContext)(N.A),h=r||R.A.NAMESPACE.get();return["clause","contract","definition"].includes(c)?(0,O.FD)(O.FK,{children:[(0,O.FD)(T.A,{id:i,namespace:h,snippet:a,title:l,type:c,clauseButton:!0,children:[(0,O.Y)("i",{className:"icon icon-star-black"}),(0,O.Y)("span",{className:"icon-info",children:"Save"})]}),!d&&["clause","definition"].includes(c)&&(0,O.FD)(D.A,{className:"color-black icon-text",size:"sm",onClick:e=>{const t=e.target.closest(o.Q2);x.Clipboard.selectElement(t),(0,x.copyAndTrackSelectedText)(e),(0,K.s)("click_copy",{page_path:u,source:"search"})},children:[(0,O.Y)("i",{className:"icon icon-copy-black"}),(0,O.Y)("span",{className:"icon-info",children:"Copy"})]}),(0,O.Y)($.A,{contractType:e,recordType:c,snippet:t,title:n})]}):null}function fe({keyword:e}){const{queryState:t,setQueryState:n}=(0,s.useContext)(L.Ay),i=(t.q||"").replaceAll(new RegExp(`(^|\\s)(${(0,a.bS)(e)})($|\\s)`,"g"),'$1"$2"$3');return(0,O.FD)(O.FK,{children:[" ","| Must include:"," ",(0,O.Y)("a",{href:[(0,u.iY)("/search"),(0,u.XT)({...t,q:i})].join("?"),onClick:async t=>{t.preventDefault(),(0,K.s)("search_filter",{name:"must_include",value:e}),t.nativeEvent.stopImmediatePropagation(),n({q:i})},children:e})]})}function pe({children:e,documentId:t,groupId:n,missingKeywords:i,namespace:s,position:o,sourceId:a,type:l}){return(0,O.Y)("div",{className:r()("sk-hits-list-hit","sk-hits-list__item",{[`is-${l}`]:l}),"data-document-id":t,"data-group-id":ue(n),"data-namespace":s,"data-position":o,"data-source-id":a,"data-target-type":l,children:(0,O.FD)("div",{className:"sk-hits-list-hit-details",children:[e,i.length>0&&(0,O.FD)("div",{className:"color-grey",style:{marginTop:"5px"},children:[(0,O.Y)("span",{children:"Missing:"}),i.map(e=>(0,O.FD)("span",{children:[" ",(0,O.Y)("s",{children:e}),1===i.length&&(0,O.Y)(fe,{keyword:e})]},e))]})]})})}function me({contractType:e,documentId:t,hitKey:n,position:i,published:l,recrawlFailed:c,score:u,section:d,sourceId:h,url:f}){const{queryState:p,setQueryState:m}=(0,s.useContext)(L.Ay),g=n.indexOf(":"),y=n.slice(0,g),b=n.slice(g+1);let _=p[y]?.[b];Q.has(p.tab)&&!_&&(_=p.q);const v=J(n),S=d._source,E=ae(S.group_id),{snippet:A,type:w}=S,x=se((0,a.xv)(S.name,R.A.SEARCH_RESULT_TITLE_LIMIT.get()),"em",_,v),N=ne();let T=null;const D=!!p[H.Pj],Y=R.A.ENABLE_SEMANTIC_SEARCH_DIFF_VIEW.get()&&D;if(A)if(Y){const e=new(C()),t=e.diff_main(p[H.Pj],A),n=S.name.toLowerCase();e.diff_main(t[0][1].toLowerCase(),n).map(e=>e[1]).includes(n)&&t.shift(),e.diff_cleanupSemantic(t),T=e.diff_prettyHtml(t)}else{const e=re(_||"",A,N);T=se(e,"em",_,v);const t=ce(_,A);t>ce(_,e)&&(T=`${T}${function({color:e,entriesCount:t,query:n,type:i,url:r}){return` (${se(n,"em",n,e)} <a href="${r}">appears ${t} time${t>1?"s":""} in this ${i}</a>)`}({color:v,entriesCount:t,query:_,type:w,url:f})}}`)}const F=new URLSearchParams(window.location.search);let M=null,B={};if("common"===F.get("order")&&!F.has("similar")&&S.group_size>1){const e=new URLSearchParams(window.location.search);e.delete("order"),e.set("similar",S.group_id),e.set("tab","titleless"===w?"clause":w),e.delete("p"),M=`?${e.toString().replaceAll(/%3a/gi,":")}`,B={};for(const[t,n]of e.entries()){const[e,i]=t.split(":");i?(B[e]=B[e]||{},B[e][i]=n):B[e]=n}B.namespace&&(B.namespace=B.namespace.replaceAll(/(^\[)|(\]$)/g,"").split(",")),delete B.threadId}return(0,O.Y)("div",{className:"sk-hits-list__item","data-document-id":t,"data-group-id":ue(S.group_id),"data-namespace":E,"data-position":i,"data-source-id":h,"data-target-type":w,children:(0,O.FD)("div",{className:"sk-hits-list-hit-details",children:[(!p.tab||p.tab===o.B2)&&(0,O.Y)(te,{disabled:c,url:f,children:w}),l?(0,O.Y)(de,{disabled:c,namespace:E,published:l,url:f,children:(0,O.Y)("h2",{className:"sk-hits-list-hit__title h2-title",children:(0,O.Y)("span",{dangerouslySetInnerHTML:{__html:x}})})}):(0,O.Y)("h2",{className:"sk-hits-list-hit__title h2-title",children:(0,O.Y)("span",{dangerouslySetInnerHTML:{__html:x}})}),T&&(c||x?(0,O.Y)("div",{dangerouslySetInnerHTML:{__html:T},className:r()("sk-hits-list-hit__text select-to-share",{[k]:Y})}):(0,O.Y)("a",{dangerouslySetInnerHTML:{__html:T},"aria-label":A,className:r()("sk-hits-list-hit__text select-to-share",{[k]:Y}),href:f})),(0,O.FD)("div",{className:"sk-hits-list-hit__actions",children:[D&&(0,O.Y)(I.A,{score:u,tooltipTemplate:"{score}% similar to your search query. Higher percentages indicate closer matches."}),(0,O.Y)(P,{snippet:A}),(0,O.Y)(he,{contractType:e,draftSnippet:A,draftTitle:S.name,groupHash:t,ns:E,snippet:A,sourceId:h,title:x,type:w,url:f}),M&&(0,O.FD)(U.A,{href:M,size:"sm",onNavigate:()=>{for(const e of Object.keys(B))void 0!==B[e]&&""!==B[e]||delete B[e];m(B)},children:["See All (",(0,a.B4)(S.group_size)," similar)"]})]})]})})}function ge({anchor:e,id:t,namespace:n,url:i}){let r=i,s="_blank";return i.startsWith("/")&&(r=(0,u.iY)(`/contracts/${t}`,n),s=void 0),e&&(r+=`#${e}`),{target:s,url:r}}function ye(e,{name:t,type:n}){return{...e,order:"common",p:void 0,tab:["clause","definition"].includes(n)?n:"contract",[n]:{...e?.[n],[t]:""}}}function be({result:e}){const{_id:t,_position:n,_score:i,inner_hits:r}=e;if(!r)return null;const s=[];for(const[o,a]of Object.entries(r))for(const r of a.hits.hits){const a=oe(e._id),l=r._source,c=l.value,{url:u}=ge({anchor:l.value,id:oe(t),namespace:ae(t),url:e._source.url});s.push((0,O.Y)(me,{contractType:e._source.category?.name,documentId:a,hitKey:o,position:n,published:e._source.published,recrawlFailed:e._source.recrawl_failed,score:i,section:r,sourceId:c,url:u},(0,A.A)(r._id+l.value+l.snippet+r._score+r._nested.offset)))}return s}function _e({query:e,queryState:t,queryTokens:n,result:i}){const{setQueryState:r}=(0,s.useContext)(L.Ay),a=(0,s.useMemo)(()=>new le(i,{limits:{maxSnippetLength:ne(),maxTitleLength:window[o.M3].user?.plan?100:R.A.SEARCH_RESULT_TITLE_LIMIT.get()},query:e,queryTokens:n}),[i,e,n]),{explanation:l,highlightedSnippet:c,highlightedTitle:d,id:h,namespace:f,position:p,source:{group_id:m,type:g,value:y}}=a,b=function(...e){return(0,u.J1)({pathname:(0,u.iY)("/search"),search:(0,u.XT)(ye.apply(void 0,e))})}(t,{name:a.source?.name,type:a.source?.type}),_=()=>{(0,K.s)("search_filter",{name:g,value:a.source?.name}),r(ye(t,{name:a.source?.name,type:g}))};return(0,O.FD)(pe,{documentId:h,groupId:m,missingKeywords:a.missingKeywords,namespace:f,position:p,sourceId:y,type:g,children:[(!t?.tab||t.tab===o.B2)&&(0,O.Y)(te,{explanation:l,index:g,updateQueryState:_,url:b}),(0,O.Y)(de,{namespace:f,updateQueryState:_,url:b,children:(0,O.Y)("b",{className:"sk-hits-list-hit__title",children:(0,O.Y)("span",{dangerouslySetInnerHTML:{__html:d}})})}),c&&(0,O.Y)("div",{dangerouslySetInnerHTML:{__html:c},className:"sk-hits-list-hit__text"}),(0,O.Y)("div",{className:"sk-hits-list-hit__actions",children:(0,O.Y)(he,{draftSnippet:a.source.snippet,draftTitle:a.source.name,groupHash:h,ns:f,snippet:c,sourceId:y,title:d,type:g,url:b})})]})}function ve({contractExplanation:e,contractUrl:t,data:n,namespace:i,useCommonContractsLink:r}){const{isMobileWidth:o}=(0,s.useContext)(f.A),a=[],l="/contracts/tagged/{handle}",c=[{label:"Contract Type",property:"category",urlPattern:l},{label:"Filed",property:"filing_date"},{label:"Company",property:"company",urlPattern:"/company/{handle}"},{label:"Jurisdiction",property:"jurisdiction",urlPattern:l},{label:"Industry",property:"industry",urlPattern:l}];for(const e of c){const{label:t,property:i,urlPattern:r}=e,s=n[i];if(void 0===s)continue;let o,l,c;"filing_date"===i?c=(s||"").replace(/(\d{4})-(\d{2})-(\d{2})/,(...e)=>{const[,t,n,i]=e;return`${V[n-1]} ${i}, ${t}`}):(c=n[i].name||"",l=r.replace("{handle}",s.value||""),o=c),""!==c&&a.push({label:t,tooltip:o,url:l,value:c})}return n.group_id&&n.group_size&&n.group_size>1&&r&&a.push({label:"Common Contract",tooltip:`Show ${n.group_size} similar`,url:`/contracts/similar/${n.group_id}`,value:`${n.group_size} similar`}),a.length>0?(0,O.FD)("div",{className:"sk-hit__metadata",children:[o?(0,O.Y)(te,{url:t,children:a.map(({value:e})=>e).join(" • ")}):(0,O.Y)("ul",{children:a.map(e=>(0,O.Y)(Se,{namespace:i,...e},e.label))}),(0,O.Y)(ee,{explanation:e})]}):null}function Se({label:e,namespace:t,tooltip:n,url:i,value:r}){const s=void 0===n?{}:{"aria-label":n,className:"tooltip-flat",role:"tooltip"};return(0,O.FD)("li",{children:[(0,O.Y)("div",{className:"sk-hit__metadata__label",children:e}),(0,O.Y)("div",{...s,children:(0,O.Y)("div",{className:"sk-hit__metadata__value",children:void 0===i?r:(0,O.Y)("a",{className:"color-black","event-name":"search_metadata_click","event-value":e,href:(0,u.iY)(i,t),rel:"noreferrer",target:"_blank",children:r})})})]})}function Ee({field:e,result:t}){const n=t.highlight?.[e];
2if(!n)return e.split(".").reduce((e,t)=>e?.[t],t._source)||null;let i=n.join(" … ");const r=[];for(;i.length>0;){const e=i.match("([^<]*)<b>([^<]*)</b>");if(!e){r.push((0,O.Y)(s.Fragment,{children:i},r.length));break}e[1]&&r.push((0,O.Y)(s.Fragment,{children:e[1]},r.length)),r.push((0,O.Y)("b",{children:e[2]},r.length)),i=i.slice(e[0].length)}return r}function Ce({query:e,queryTokens:t,result:n}){const{explanation:i,highlightedSnippet:r,highlightedTitle:s,id:l,missingKeywords:c,namespace:u,position:d,source:h}=new le(n,{limits:{maxSnippetLength:ne(),maxTitleLength:window[o.M3].user?.plan?100:R.A.SEARCH_RESULT_TITLE_LIMIT.get()},query:e,queryTokens:t}),f=[];for(const e of n.highlight?.body||[]){let t="",n="",i="",r=!1;for(let s of e.split(/<\/?b>/))s=s.trim(),r||(t?i=s:n=s),n&&t&&i&&(t=encodeURIComponent(t),n=n.split(/\s+/),n=encodeURIComponent(n.slice(-3).join(" ")),i=encodeURIComponent(i.split(/\s+/).slice(0,3).join(" ")),f.push(`text=${n}-,${t},-${i}`),t="",n="",i=""),!i&&t&&r&&s?t=[t,s].join(" "):r&&(t=s),r=!r}const{url:p}=ge({anchor:f.join("&"),id:l,namespace:u,url:h.url}),m=new URLSearchParams(window.location.search);let g=null;if("common"===m.get("order")&&!m.has("similar")&&h.group_size>1){const e=new URLSearchParams(window.location.search);e.delete("order"),e.set("similar",h.group_id),e.delete("p"),g=`?${e.toString().replaceAll(/%3a/gi,":")}`}const y="common"!==m.get("order")&&!m.get("similar");return(0,O.FD)(pe,{documentId:l,missingKeywords:c,namespace:u,position:d,type:"contract",children:[(0,O.Y)(de,{disabled:h?.recrawl_failed,namespace:u,published:h?.published,url:p,children:(0,O.Y)("h2",{className:"sk-hits-list-hit__title h2-title",children:(0,O.Y)("span",{dangerouslySetInnerHTML:{__html:s}})})}),(0,O.Y)(ve,{contractExplanation:i,contractUrl:p,data:h,namespace:u,useCommonContractsLink:y}),(void 0===h.company||void 0===h.jurisdiction||void 0===n.highlight?.body)&&(0,O.Y)("div",{dangerouslySetInnerHTML:{__html:r},className:"sk-hits-list-hit__text select-to-share"}),(0,O.Y)("div",{className:"sk-hits-list-hit__text select-to-share",children:(0,O.Y)(Ee,{field:"body",result:n})}),(0,O.Y)(be,{result:n}),(0,O.FD)("div",{className:"sk-hits-list-hit__actions",children:[(0,O.Y)(he,{groupHash:l,ns:u,snippet:r,sourceId:l,title:s,type:"contract",url:p}),g&&(0,O.FD)(U.A,{href:g,size:"sm",children:["See All (",(0,a.B4)(h.group_size)," similar)"]})]})]})}const Ae={clause:`${o.B2}_clause`,[o.Gd]:`${o.B2}_${o.Gd}`};function we({result:e}){const{queryState:t,results:{query_tokens:n}}=(0,s.useContext)(L.Ay),{order:i,q:r,similar:a,tab:l,vector:c}=t,u=(0,s.useRef)(void 0),d=(0,s.useRef)(void 0);Q.has(l)&&(u.current="contract_section"),("common"===i||a||c)&&(d.current=Ae[l]);const h=(0,s.useMemo)(()=>{let t=e._index;return u.current&&(t=u.current),d.current&&(t=d.current),t},[e]),f={[o.B2]:Ce,contract_section:_e,[Ae.clause]:be,[Ae[o.Gd]]:be}[h];return f?(0,O.Y)(f,{query:r,queryState:t,queryTokens:n,result:e}):null}var xe=n(3347);function Ne(){const{loading:e,queryState:t,results:n,setQueryState:i}=(0,s.useContext)(L.Ay),r=n?.error,o=n?.hits?.total;if(!n||o||e)return null;if(r)return(0,K.s)("search_error",{description:r.message}),(0,K.N)(r),(0,O.FD)(O.FK,{children:[(0,O.Y)("div",{className:"margin-b-10",children:(0,O.Y)("b",{children:"We're sorry, an issue occurred when fetching your results. Please try again."})}),(0,O.Y)(D.A,{outlined:!0,onClick:()=>{i({resetState:!0})},children:"Reset Search"})]});0===o&&(0,K.s)("search_no_hits",{query:JSON.stringify(t)});const a=n?.suggestions?.map(e=>e.options.length>0?e.options[0].text:e.text).join(" "),{q:l,...u}=t,d=(0,c.Z6)();return(0,O.FD)(O.FK,{children:[(0,O.Y)("div",{className:"margin-b-10",children:d&&0===Object.keys(u).length?(0,O.Y)(xe.A,{}):(0,O.FD)(O.FK,{children:[(0,O.Y)("h6",{children:"Bad News! :("}),(0,O.Y)("p",{children:"We don't have any results for your search."}),!d&&(0,O.FD)(O.FK,{children:[(0,O.Y)("h6",{children:"Good News! :)"}),(0,O.Y)("p",{children:"Our team is scouring the web for it. Come back soon and try again!"})]})]})}),(0,O.FD)("div",{className:"sk-no-hits__steps",children:[a&&a!==l.toLowerCase()&&(0,O.FD)("p",{style:{fontSize:"medium"},children:["Did you mean:"," ",(0,O.Y)(D.A,{className:"btn-link-underline",onClick:()=>{(0,K.s)("search_click_suggested_query"),i({q:a})},children:(0,O.Y)("i",{children:a})})]}),Object.keys(u).length>0&&(0,O.FD)(O.FK,{children:[(0,O.Y)("h6",{children:"← You can also try updating filters."}),(0,O.Y)("br",{}),(0,O.Y)(D.A,{outlined:!0,className:"text-wrap",onClick:()=>{(0,K.s)("search_reset_filters"),i({q:l,resetState:!0})},children:l?(0,O.FD)(O.FK,{children:["Search for ",l," without filters"]}):(0,O.Y)(O.FK,{children:"Reset all filters"})})]})]})]})}function Te(){const{queryState:e,results:t,setQueryState:n}=(0,s.useContext)(L.Ay),i=t?.hits?.total;if(!i)return null;const o=Number(e.p)||1,a=Math.ceil(i/t.size),l=[{disabled:1===o,label:"Previous",pageIncrement:-1},{disabled:o===a,label:"Next",pageIncrement:1}];return(0,O.Y)("div",{className:"sk-pagination-navigation","data-
2page":o,children:l.map(({disabled:e,label:t,pageIncrement:i})=>(0,O.Y)("button",{className:r()("sk-toggle-option",{"is-disabled":e}),disabled:e,type:"button",onClick:()=>{const e=o+i;Number.isNaN(e)||e<1||e>a||e===o||(n({p:e>1?e:void 0}),(0,K.s)("paginate",{page_number:e,page_path:window.location.pathname}))},children:t},t))})}var Ie=n(4843),ke=n(4929),Re=n(4750),De=n(9028);const Oe={[o.Ff]:"Search contracts by category …",clause:"Search clauses by title …",[o.Gz]:"Search companies by name …",[o.B2]:"Search contracts …",[o.$w]:"Search countries …",[o.Gd]:"Search within dictionary …",[o.S9]:"Search jurisdictions …"};function Ye(){var e;const t=(0,s.useRef)(null),{activeTab:n,loading:i,queryState:a,setQueryState:l,setSuggestedFilters:c,setSuggestedFiltersLoading:d}=(0,s.useContext)(L.Ay),[h,f]=(0,s.useState)(void 0),[,p]=(0,Ie.fp)(Re.Ry),m=R.A.SHOW_SEARCH_BUTTON.get(),{p:g,q:y,tab:b,..._}=a,v=null!=(e=null!=h?h:y)?e:"",S=0===Object.keys(_).length,E=(0,R._)(R.A.SHOW_AI_ASSISTANT_MODE_SWITCH),C=(0,s.useRef)((0,ke.sg)(async e=>{l({q:e}),f(void 0)},500));(0,s.useEffect)(()=>{m||C.current(v)},[m,v]),(0,s.useEffect)(()=>{R.A.SHOW_AI_SEARCH_FILTER_SUGGESTIONS.get()&&y&&S&&async function(){d(!0);try{const e=await fetch((0,u.iY)(`/api/search/openai-suggestions?query=${y}`)),t=await e.json();c(t),(0,K.s)("search_ai_suggestion_show",{query:y,suggestedFilters:JSON.stringify(t)})}catch(e){}d(!1)}()},[y,S,c,d]),(0,s.useEffect)(()=>{t.current?.focus()},[]);let A=Oe[n]||o.xD;const w=Object.keys(a?.category||{})[0],x=Object.keys(a?.clause||{})[0],N=Object.keys(a?.definition||{})[0];if("clause"===n)x&&(A=`Search within ${x} clauses …`);else if(n===o.Gd)N&&(A=`Search within ${N} definitions …`);else if(n===o.B2&&w){const e=[`Search ${w} contracts`];x?e.push("with all selected clauses"):N&&e.push("with all selected definitions"),e.push("…"),A=e.join(" ")}return(0,O.FD)("div",{"aria-label":"Search",className:"sk-search-box",role:"textbox",tabIndex:0,onClick:()=>{t.current.focus()},onKeyDown:e=>"Enter"===e.key&&t.current.focus(),children:[(0,O.FD)("form",{className:r()({"with-search-button":m}),onSubmit:e=>{e.preventDefault(),l({q:v}),(0,K.s)("search",{name:"q",search_term:v,trigger:"submit",type:"search_box"}),f(void 0)},children:[(0,O.Y)("div",{className:"sk-search-box__icon"}),(0,O.Y)("input",{ref:t,"aria-label":o.xD,className:"sk-search-box__text",maxLength:500,placeholder:A,type:"text",value:v,onBlur:()=>{void 0!==h&&h!==y&&(l({q:h}),(0,K.s)("search",{name:"q",search_term:h,trigger:"blur",type:"search_box"})),f(void 0)},onChange:e=>f(e.target.value)}),(0,O.Y)("input",{className:"sk-search-box__action",type:"submit",value:"search"}),(0,O.Y)("div",{className:r()("sk-search-box__loader","spinning-loader",{"is-hidden":!i})}),m&&(0,O.Y)(D.A,{outlined:!0,type:"submit",children:"Search"})]}),E&&(0,O.Y)("div",{className:"hidden-xs",children:(0,O.FD)(D.A,{className:"ai-assistant-search-link",onClick:e=>{e.preventDefault();const t=v.trim(),n=t?`Search ${t}`:"Search";(0,K.s)("assistant:search_click"),R.A.AI_ASSISTANT_ENABLE_SEARCH.set(!0),p({files:[],prompt:n,threadId:null}),window.open(o.A.CHAT,"_blank")},children:[(0,O.Y)(De.A,{children:(0,O.Y)("b",{children:"Try AI Assistant Search"})}),(0,O.Y)("img",{alt:"AI Assistant Search",src:"/images/common/AI-sparks-dark-min.svg"})]})})]})}var Fe=n(7033),Me=n(4902),Pe=n(4729),Le=n(9170),He=n(7065);function Be(e,t,n){var i;return"order"===e?"common":!(null!=(i=t[e])?i:n)}function je({defaultValue:e,id:t,title:n}){var i;const{queryState:r,setQueryState:a}=(0,s.useContext)(L.Ay);return(0,s.useEffect)(()=>{void 0===r[t]&&e&&a({[t]:e})},[e,t,r,a]),(0,O.Y)("div",{style:{backgroundColor:Le.hr,border:"1px solid",borderColor:Le.D$,borderRadius:"4px"},children:(0,O.Y)(He.A,{readOnly:!0,checked:null!=(i=r[t])?i:e,disabled:t===o.Rc&&void 0===r[t],onChange:({target:{checked:n}})=>{(0,K.s)("search_filter",{name:t,value:n});const i=n?"search_filter_add":"search_filter_remove";(0,K.s)(i,{name:t,value:n}),a({[t]:n===e?void 0:Be(t,r,e)})},children:(0,O.Y)("div",{className:"sf-option__text",style:{cursor:"pointer",display:"inline-block"},children:n})})})}var qe=n(6058),ze=n(10),$e=n(6536),Ue=n(5549);const Ke=(0,s.lazy)(()=>n.e(1854).then(n.bind(n,719))),Ge="namespace-private",Ve={[Ge]:{icon:"icon-folder-lock-black",iconPublic:"icon-folder-black",label:"Your Libraries"},"namespace-public":{icon:"icon-language-black",label:"Language Libraries"}};function We({active:e=!1,items:t=[],toggleItem:n}){return 0===t.length?null:(0,O.Y)("div",{className:"sf-options",children:t.map(t=>{return(0,O.Y)(s.Fragment,{children:(0,O.Y)("div",{className:r()("sf-option","sf-option--checkbox",{"is-active":e}),children:(0,O.Y)(He.A,{readOnly:!0,id:t.key,onChange:()=>n(t.key),children:(0,O.FD)("div",{className:"sf-option__text",children:[(0,O.Y)("i",{className:`icon icon--left ${i=t.key,(0,c.Gi)(i)?Ve[Ge].icon:(0,c.GQ)(i)?Ve[Ge].iconPublic:Ve["namespace-public"].icon}`})," ",t.label]})})})},t.key);var i})})}
2function Qe({id:e,items:t,loading:n,selectedItems:i,toggleFilter:o}){const[a,l]=(0,s.useState)(!1),[c,u]=(0,s.useState)(""),{icon:d,label:h}=Ve[e];(0,s.useEffect)(()=>{a||u(null)},[a]);const f=(0,s.useMemo)(()=>{const e=(t||[]).filter(e=>!i.includes(e.key));return c?e.filter(e=>e.label.toLowerCase().includes(c.toLowerCase())||e.key.toLowerCase().includes(c.toLowerCase())):e},[t,c,i]),p=e===Ge&&!c&&0===t.length;return(0,O.FD)("div",{className:"margin-b-1",children:[(0,O.Y)("div",{className:"sf-filter__label",children:(0,O.FD)("span",{children:[(0,O.Y)("i",{className:`icon icon--left ${d}`}),h]})}),i?.length?(0,O.Y)("div",{className:"sf-filter__options",children:i?.map(e=>(0,O.Y)("div",{className:"sf-option",children:(0,O.Y)(He.A,{checked:!0,readOnly:!0,onChange:()=>o(e),children:(0,O.Y)("div",{className:"sf-option__text",children:(0,Fe.Ub)(e)})})},e))}):null,(0,O.FD)("div",{className:"sf-filter__control",children:[(0,O.Y)($e.A,{"aria-label":e,className:"input-height-sm dark-blue-border-color no-margin",label:"Search",readOnly:p,trailingIcon:n&&(0,O.Y)(Ue.A,{}),value:c||"",onChange:({target:{value:e}})=>u(e),onFocus:()=>l(!0)}),(0,O.Y)("div",{className:"sf-filter__control__actions",children:(0,O.Y)("div",{className:"sf-filter__action sf-filter__action-dropdown",children:(0,O.Y)(D.A,{disabled:n,onClick:()=>l(e=>!e),children:(0,O.Y)("i",{className:r()({icon:!0,"icon-arrow-grey":!a,"icon-close-grey":a})})})})})]}),(0,O.Y)(qe.A,{CustomNoOptions:p&&ze.A,MenuComponent:Ke,NestedCheckboxItemList:We,id:e,items:f,loading:n,open:a,toggleFilter:o,onClose:()=>l(!1)})]})}function Je({id:e}){const{queryState:t,setQueryState:n}=(0,s.useContext)(L.Ay),[i,r]=(0,s.useState)(!1),[o,a]=(0,s.useState)({private:[],public:[]});(0,s.useEffect)(()=>{!async function(){r(!0);const e=await(0,Fe.lJ)();if(e){const t=e?.private||{},n=e?.public||{};Fe.w.set("namespaces",{...t,...n});const i={private:Object.keys({...t}).map(e=>({key:e,label:(0,Fe.Ub)(e)})),public:Object.keys({...n}).map(e=>({key:e,label:(0,Fe.Ub)(e)}))};a(i)}r(!1)}()},[]);const l=(0,s.useCallback)(i=>{const r=_()(S(),t[e]||[]);(0,K.s)("search_filter",{name:e,value:i});const s=r.indexOf(i),o=-1===s?"search_filter_add":"search_filter_remove";(0,K.s)(o,{name:e,value:i}),-1===s?r.push(i):r.splice(s,1),n({[e]:r})},[e,t,n]),u=(0,s.useMemo)(()=>{const n=t[e]||[];return{private:n.filter(e=>(0,c.Gi)(e)||(0,c.GQ)(e)),public:n.filter(e=>!(0,c.Gi)(e)&&!(0,c.GQ)(e))}},[t,e]);return(0,O.FD)(O.FK,{children:[(0,O.Y)(Qe,{id:"namespace-private",items:o.private,loading:i,selectedItems:u.private,toggleFilter:l}),(0,O.Y)(Qe,{id:"namespace-public",items:o.public,loading:i,selectedItems:u.public,toggleFilter:l})]})}function Xe(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(Xe,"name",{value:"clamp",configurable:!0});var Ze=Object.defineProperty,et=(e,t)=>Ze(e,"name",{value:t,configurable:!0}),tt=!("undefined"==typeof window||!window.document||!window.document.createElement);function nt(e,t,{checkForDefaultPrevented:n=!0}={}){return et(function(i){if(e?.(i),!1===n||!i||!i.defaultPrevented)return t?.(i)},"handleEvent")}function it(e){if(!tt)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function rt(e){return"IFRAME"===e.tagName}et(nt,"composeEventHandlers"),et(function(e){if(!tt)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),et(it,"getOwnerDocument"),et(function e(t,n=!1){const{activeElement:i}=it(t);if(!i?.nodeName)return null;if(rt(i)&&i.contentDocument)return e(i.contentDocument.body,n);if(n){const e=i.getAttribute("aria-activedescendant");if(e){const t=it(i).getElementById(e);if(t)return t}}return i},"getActiveElement"),et(rt,"isFrame");var st=Object.defineProperty,ot=(e,t)=>st(e,"name",{value:t,configurable:!0});function at(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function lt(...e){return t=>{let n=!1;const i=e.map(e=>{const i=at(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){const n=i[t];"function"==typeof n?n():at(e[t],null)}}}}function ct(...e){return s.useCallback(lt(...e),e)}ot(at,"setRef"),ot(lt,"composeRefs"),ot(ct,"useComposedRefs");var ut=Object.defineProperty,dt=(e,t)=>
vendor: 12,047 bytes, line 2
2ut(e,"name",{value:t,configurable:!0});function ht(e,t=[]){let n=[];function i(t,i){const r=s.createContext(i);r.displayName=t+"Context";const o=n.length;n=[...n,i];const a=dt(t=>{const{scope:n,children:i,...a}=t,l=n?.[e]?.[o]||r,c=s.useMemo(()=>a,Object.values(a));return(0,O.Y)(l.Provider,{value:c,children:i})},"Provider");function l(n,a,l={}){const{optional:c=!1}=l,u=a?.[e]?.[o]||r,d=s.useContext(u);if(d)return d;if(void 0!==i)return i;if(!c)throw new Error(`\`${n}\` must be used within \`${t}\``)}return a.displayName=t+"Provider",dt(l,"useContext"),[a,l]}dt(i,"createContext");const r=dt(()=>{const t=n.map(e=>s.createContext(e));return dt(function(n){const i=n?.[e]||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])},"useScope")},"createScope");return r.scopeName=e,[i,ft(r,...t)]}function ft(...e){const t=e[0];if(1===e.length)return t;const n=dt(()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return dt(function(e){const i=n.reduce((t,{useScope:n,scopeName:i})=>({...t,...n(e)[`__scope${i}`]}),{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}dt(function(e,t){const n=s.createContext(t);n.displayName=e+"Context";const i=dt(e=>{const{children:t,...i}=e,r=s.useMemo(()=>i,Object.values(i));return(0,O.Y)(n.Provider,{value:r,children:t})},"Provider");function r(i,r={}){const{optional:o=!1}=r,a=s.useContext(n);if(a)return a;if(void 0!==t)return t;if(!o)throw new Error(`\`${i}\` must be used within \`${e}\``)}return i.displayName=e+"Provider",dt(r,"useContext"),[i,r]},"createContext"),dt(ht,"createContextScope"),dt(ft,"composeContextScopes");var pt=n(6540),mt=n.t(pt,2),gt=globalThis?.document?s.useLayoutEffect:()=>{},yt=Object.defineProperty,bt=mt[" useEffectEvent ".trim().toString()],_t=mt[" useInsertionEffect ".trim().toString()];function vt(e){if("function"==typeof bt)return bt(e);const t=s.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof _t?_t(()=>{t.current=e}):gt(()=>{t.current=e}),s.useMemo(()=>(...e)=>t.current?.(...e),[])}yt(vt,"name",{value:"useEffectEvent",configurable:!0});var St=Object.defineProperty,Et=(e,t)=>St(e,"name",{value:t,configurable:!0}),Ct=mt[" useInsertionEffect ".trim().toString()]||gt;function At({prop:e,defaultProp:t,onChange:n=Et(()=>{},"onChange"),caller:i}){const[r,o,a]=wt({defaultProp:t,onChange:n}),l=void 0!==e;return[l?e:r,s.useCallback(t=>{if(l){const n=xt(t)?t(e):t;n!==e&&a.current?.(n)}else o(t)},[l,e,o,a])]}function wt({defaultProp:e,onChange:t}){const[n,i]=s.useState(e),r=s.useRef(n),o=s.useRef(t);return Ct(()=>{o.current=t},[t]),s.useEffect(()=>{r.current!==n&&(o.current?.(n),r.current=n)},[n,r]),[n,i,o]}function xt(e){return"function"==typeof e}Et(At,"useControllableState"),Et(wt,"useUncontrolledState"),Et(xt,"isFunction");var Nt=Symbol("RADIX:SYNC_STATE");Et(function(e,t,n,i){const{prop:r,defaultProp:o,onChange:a,caller:l}=t,c=void 0!==r,u=vt(a),d=[{...n,state:o}];i&&d.push(i);const[h,f]=s.useReducer((t,n)=>{if(n.type===Nt)return{...t,state:n.state};const i=e(t,n);return c&&!Object.is(i.state,t.state)&&u(i.state),i},...d),p=h.state,m=s.useRef(p);s.useEffect(()=>{m.current!==p&&(m.current=p,c||u(p))},[p,m,c]);const g=s.useMemo(()=>void 0!==r?{...h,state:r}:h,[h,r]);return s.useEffect(()=>{c&&!Object.is(r,h.state)&&f({type:Nt,state:r})},[r,h.state,c]),[g,f]},"useControllableStateReducer");var Tt=Object.defineProperty,It=s.createContext(void 0);function kt(e){const t=s.useContext(It);return e||t||"ltr"}Tt(kt,"name",{value:"useDirection",configurable:!0});var Rt=Object.defineProperty;function Dt(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(e=>{Rt(e,"name",{value:"usePrevious",configurable:!0})})(Dt);var Ot=Object.defineProperty;function Yt(e){const[t,n]=s.useState(void 0);return gt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const i=t[0];let r,s;if("borderBoxSize"in i){const e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,s=t.blockSize}else r=e.offsetWidth,s=e.offsetHeight;n({width:r,height:s})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(e=>{Ot(e,"name",{value:"useSize",configurable:!0})})(Yt);var Ft=n(6221),Mt=Object.defineProperty,Pt=(e,t)=>Mt(e,"name",{value:t,configurable:!0});function Lt(e){const t=s.forwardRef((t,n)=>{let{children:i,...r}=t,o=null,a=!1;const l=[];Ut(i)&&"function"==typeof Wt&&(i=Wt(i._payload)),s.Children.forEach(i,e=>{if(zt(e)){a=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;Ut(n)&&"function"==typeof Wt&&(n=Wt(n._payload)),o=Bt(t,n),l.push(o?.props?.children)}else l.push(e)}),o?o=s.cloneElement(o,void 0,l):!a&&1===s.Children.count(i)&&s.isValidElement(i)&&(o=i);const c=o?qt(o):void 0,u=ct(n,c);if(!o){if(i||0===i)throw new Error(a?Vt(e):Gt(e));return i}const d=jt(r,o.props??{});return o.type!==s.Fragment&&(d.ref=n?u:c),s.cloneElement(o,d)});return t.displayName=`${e}.Slot`,t}Pt(Lt,"createSlot");var Ht=Symbol.for("radix.slottable");Pt(function(e){const t=Pt(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=Ht,t},"createSlottable");var Bt=Pt((e,t)=>{if("child"in e.props){const t=e.props.child;return s.isValidElement(t)?s.cloneElement(t,void 0,e.props.children(t.props.children)):null}return s.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function jt(e,t){const n={...t};for(const i in t){const r=e[i],s=t[i];/^on[A-Z]/.test(i)?r&&s?n[i]=(...e)=>{const t=s(...e);return r(...e),t}:r&&(n[i]=r):"style"===i?n[i]={...r,...s}:"className"===i&&(n[i]=[r,s].filter(Boolean).join(" "))}return{...e,...n}}function qt(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function zt(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ht}Pt(jt,"mergeProps"),Pt(qt,"getElementRef"),Pt(zt,"isSlottable");var $t=Symbol.for("react.lazy");function Ut(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===$t&&"_payload"in e&&Kt(e._payload)}function Kt(e){return"object"==typeof e&&null!==e&&"then"in e}Pt(Ut,"isLazyComponent"),Pt(Kt,"isPromiseLike");var Gt=Pt(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),Vt=Pt(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Wt=mt[" use ".trim().toString()],Qt=Object.defineProperty,Jt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=Lt(`Primitive.${t}`),i=s.forwardRef((e,i)=>{const{asChild:r,...s}=e,o=r?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,O.Y)(o,{...s,ref:i})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});Qt(function(e,t){e&&Ft.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var Xt=Object.defineProperty,Zt=(e,t)=>Xt(e,"name",{value:t,configurable:!0});function en(e){const t=e+"CollectionProvider",[n,i]=ht(t),[r,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=Zt(e=>{const{scope:t,children:n}=e,i=s.useRef(null),o=s.useRef(new Map).current;return(0,O.Y)(r,{scope:t,itemMap:o,collectionRef:i,children:n})},"CollectionProvider");a.displayName=t;const l=e+"CollectionSlot",c=Lt(l),u=s.forwardRef((e,t)=>{const{scope:n,children:i}=e,r=ct(t,o(l,n).collectionRef);return(0,O.Y)(c,{ref:r,children:i})});u.displayName=l;const d=e+"CollectionItemSlot",h="data-radix-collection-item",f=Lt(d),p=s.forwardRef((e,t)=>{const{scope:n,children:i,...r}=e,a=s.useRef(null),l=ct(t,a),c=o(d,n);return s.useEffect(()=>(c.itemMap.set(a,{ref:a,...r}),()=>{c.itemMap.delete(a)})),(0,O.Y)(f,{[h]:"",ref:l,children:i})});function m(t){const n=o(e+"CollectionConsumer",t);return s.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return p.displayName=d,Zt(m,"useCollection"),[{Provider:a,Slot:u,ItemSlot:p},m,i]}Zt(en,"createCollection");var tn=new WeakMap,nn=class e extends Map{static{Zt(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],tn.set(this,!0)}set(e,t){return tn.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){const i=this.has(t),r=this.#e.length,s=on(e);let o=s>=0?s:r+s;const a=o<0||o>=r?-1:o;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,n),this;const l=this.size+(i?0:1);s<0&&o++;const c=[...this.#e];let u,d=!1;for(let e=o;e<l;e++)if(o===e){let r=c[e];c[e]===t&&(r=c[e+1]),i&&this.delete(t),u=this.get(r),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);const n=c[d?e:e-1],i=u;u=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,i){const r=new e(this);return r.insert(t,n,i),r}before(e){const t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){const i=this.#e.indexOf(e);return-1===i?this:this.insert(i,t,n)}after(e){let t=this.#e.indexOf(e);if(t=-1===t||t===this.size-1?-1:t+1,-1!==t)return this.entryAt(t)}setAfter(e,t,n){const i=this.#e.indexOf(e);return-1===i?this:this.insert(i+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){const t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){const t=rn(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){const t=rn(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return rn(this.#e,e)}from(e,t){const n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(e,t){const n=this.indexOf(e);if(-1===n)return;let i=n+t;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(e,t){let n=0;for(const i of this){if(Reflect.apply(e,t,[i,n,this]))return i;n++}}findIndex(e,t){let n=0;for(const i of this){if(Reflect.apply(e,t,[i,n,this]))return n;n++}return-1}filter(t,n){const i=[];let r=0;for(const e of this)Reflect.apply(t,n,[e,r,this])&&i.push(e),r++;return new e(i)}map(t,n){const i=[];let r=0;for(const e of this)i.push([e[0],Reflect.apply(t,n,[e,r,this])]),r++;return new e(i)}reduce(...e){const[t,n]=e;let i=0,r=n??this.at(0);for(const n of this)r=0===i&&1===e.length?n:Reflect.apply(t,this,[r,n,i,this]),i++;return r}reduceRight(...e){const[t,n]=e;let i=n??this.at(-1);for(let n=this.size-1;n>=0;n--){const r=this.at(n);i=n===this.size-1&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this])}return i}toSorted(t){const n=[...this.entries()].sort(t);return new e(n)}toReversed(){const t=new e;for(let e=this.size-1;e>=0;e--){const n=this.keyAt(e),i=this.get(n);t.set(n,i)}return t}toSpliced(...t){const n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){const i=new e;let r=this.size-1;if(void 0===t)return i;t<0&&(t+=this.size),void 0!==n&&n>0&&(r=n-1);for(let e=t;e<=r;e++){const t=this.keyAt(e),n=this.get(t);i.set(t,n)}return i}every(e,t){let n=0;for(const i of this){if(!Reflect.apply(e,t,[i,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(const i of this){if(Reflect.apply(e,t,[i,n,this]))return!0;n++}return!1}};function rn(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=sn(e,t);return-1===n?void 0:e[n]}function sn(e,t){const n=e.length,i=on(t),r=i>=0?i:n+i;return r<0||r>=n?-1:r}function on(e){return e!=e||0===e?0:Math.trunc(e)}function an(e,t){if(e===t)return!0;
2if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(const i of n){if(!Object.prototype.hasOwnProperty.call(t,i))return!1;if(e[i]!==t[i])return!1}return!0}function ln(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function cn(e,t){return e[1].element&&t[1].element?ln(e[1].element,t[1].element)?-1:1:0}function un(e){return new MutationObserver(t=>{for(const n of t)if("childList"===n.type)return void e()})}Zt(rn,"at"),Zt(sn,"toSafeIndex"),Zt(on,"toSafeInteger"),Zt(function(e){const t=e+"CollectionProvider",[n,i]=ht(t),[r,o]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new nn,setItemMap:Zt(()=>{},"setItemMap")}),a=Zt(({state:e,...t})=>e?(0,O.Y)(c,{...t,state:e}):(0,O.Y)(l,{...t}),"CollectionProvider");a.displayName=t;const l=Zt(e=>{const t=y();return(0,O.Y)(c,{...e,state:t})},"CollectionInit");l.displayName=t+"Init";const c=Zt(e=>{const{scope:t,children:n,state:i}=e,o=s.useRef(null),[a,l]=s.useState(null),c=ct(o,l),[u,d]=i;return s.useEffect(()=>{if(!a)return;const e=un(()=>{});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a]),(0,O.Y)(r,{scope:t,itemMap:u,setItemMap:d,collectionRef:c,collectionRefObject:o,collectionElement:a,children:n})},"CollectionProviderImpl");c.displayName=t+"Impl";const u=e+"CollectionSlot",d=Lt(u),h=s.forwardRef((e,t)=>{const{scope:n,children:i}=e,r=ct(t,o(u,n).collectionRef);return(0,O.Y)(d,{ref:r,children:i})});h.displayName=u;const f=e+"CollectionItemSlot",p="data-radix-collection-item",m=Lt(f),g=s.forwardRef((e,t)=>{const{scope:n,children:i,...r}=e,a=s.useRef(null),[l,c]=s.useState(null),u=ct(t,a,c),d=o(f,n),{setItemMap:h}=d,g=s.useRef(r);an(g.current,r)||(g.current=r);const y=g.current;return s.useEffect(()=>{const e=y;return h(t=>l?t.has(l)?t.set(l,{...e,element:l}).toSorted(cn):(t.set(l,{...e,element:l}),t.toSorted(cn)):t),()=>{h(e=>l&&e.has(l)?(e.delete(l),new nn(e)):e)}},[l,y,h]),(0,O.Y)(m,{[p]:"",ref:u,children:i})});function y(){return s.useState(new nn)}function b(t){const{itemMap:n}=o(e+"CollectionConsumer",t);return n}return g.displayName=f,Zt(y,"useInitCollection"),Zt(b,"useCollection"),[{Provider:a,Slot:h,ItemSlot:g},{createCollectionScope:i,useCollection:b,useInitCollection:y}]},"createCollection"),Zt(an,"shallowEqual"),Zt(ln,"isElementPreceding"),Zt(cn,"sortByDocumentPosition"),Zt(un,"getChildListObserver");var dn=Object.defineProperty,hn=(e,t)=>dn(e,"name",{value:t,configurable:!0}),fn=["PageUp","PageDown"],pn=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mn={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},gn="Slider",[yn,bn,_n]=en(gn),[vn,Sn]=ht(gn,[_n]),[En,Cn]=vn(gn),An=s.forwardRef(hn(function(e,t){const{name:n,min:i=0,max:r=100,step:o=1,orientation:a="horizontal",disabled:l=!1,minStepsBetweenThumbs:c=0,defaultValue:u=[i],value:d,onValueChange:h=hn(()=>{},"onValueChange"),onValueCommit:f=hn(()=>{},"onValueCommit"),inverted:p=!1,form:m,...g}=e,y=s.useRef(new Set),b=s.useRef(0),_=s.useRef(!1),v="horizontal"===a?Nn:Tn,[S,E]=s.useState(null),C=ct(t,E),[A=[],w]=At({prop:d,defaultProp:u,onChange:hn(e=>{const t=[...y.current];t[b.current]?.focus({preventScroll:!0,focusVisible:_.current}),_.current=!1,h(e)},"onChange")}),x=s.useRef(A),N=s.useRef(A);function T(e){R(e,zn(A,e))}function I(e){R(e,b.current)}function k(){String(A)!==String(x.current)&&f(A)}function R(e,t,{commit:n}={commit:!1}){const s=Vn(o),a=Xe(Wn(Math.round((e-i)/o)*o+i,s),[i,r]);w((e=[])=>{const i=Bn(e,a,t);if(Kn(i,c*o)){b.current=i.indexOf(a);const t=String(i)!==String(e);return t&&n&&f(i),t?i:e}return e})}return s.useEffect(()=>{const e=m?S?.ownerDocument.getElementById(m):S?.closest("form");if(e instanceof HTMLFormElement){const t=hn(()=>w(N.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[S,m,w]),hn(T,"handleSlideStart"),hn(I,"handleSlideMove"),hn(k,"handleSlideEnd"),hn(R,"updateValues"),(0,O.Y)(En,{scope:e.__scopeSlider,name:n,disabled:l,min:i,max:r,valueIndexToChangeRef:b,thumbs:y.current,values:A,orientation:a,form:m,children:(0,O.Y)(yn.Provider,{scope:e.__scopeSlider,children:(0,O.Y)(yn.Slot,{scope:e.__scopeSlider,children:(0,O.Y)(v,{"aria-disabled":l,"data-disabled":l?"":void 0,...g,ref:C,onPointerDown:nt(g.onPointerDown,()=>{l||(x.current=A,_.current=!1)}),min:i,max:r,inverted:p,onSlideStart:l?void 0:T,onSlideMove:l?void 0:I,onSlideEnd:l?void 0:k,onHomeKeyDown:()=>{l||(_.current=!0,R(i,0,{commit:!0}))},onEndKeyDown:()=>{l||(_.current=!0,R(r,A.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!l){_.current=!0;
2const n=fn.includes(e.key)||e.shiftKey&&pn.includes(e.key)?10:1,r=b.current;R(Qn(A[r],{min:i,step:o,direction:t,multiplier:n}),r,{commit:!0})}}})})})})},"Slider")),[wn,xn]=vn(gn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),Nn=s.forwardRef(hn(function(e,t){const{min:n,max:i,dir:r,inverted:o,onSlideStart:a,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...d}=e,[h,f]=s.useState(null),p=ct(t,f),m=s.useRef(void 0),g=kt(r),y="ltr"===g,b=y&&!o||!y&&o;function _(e){const t=m.current||h.getBoundingClientRect(),r=Gn([0,t.width],b?[n,i]:[i,n]);return m.current=t,r(e-t.left)}return hn(_,"getValueFromPointer"),(0,O.Y)(wn,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,O.Y)(In,{dir:g,"data-orientation":"horizontal",...d,ref:p,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{const t=_(e.clientX);a?.(t)},onSlideMove:e=>{const t=_(e.clientX);l?.(t)},onSlideEnd:()=>{m.current=void 0,c?.()},onStepKeyDown:e=>{const t=mn[b?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})},"SliderHorizontal")),Tn=s.forwardRef(hn(function(e,t){const{min:n,max:i,inverted:r,onSlideStart:o,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=e,d=s.useRef(null),h=ct(t,d),f=s.useRef(void 0),p=!r;function m(e){const t=f.current||d.current.getBoundingClientRect(),r=Gn([0,t.height],p?[i,n]:[n,i]);return f.current=t,r(e-t.top)}return hn(m,"getValueFromPointer"),(0,O.Y)(wn,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:(0,O.Y)(In,{"data-orientation":"vertical",...u,ref:h,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{const t=m(e.clientY);o?.(t)},onSlideMove:e=>{const t=m(e.clientY);a?.(t)},onSlideEnd:()=>{f.current=void 0,l?.()},onStepKeyDown:e=>{const t=mn[p?"from-bottom":"from-top"].includes(e.key);c?.({event:e,direction:t?-1:1})}})})},"SliderVertical")),In=s.forwardRef(hn(function(e,t){const{__scopeSlider:n,onSlideStart:i,onSlideMove:r,onSlideEnd:s,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:l,...c}=e,u=Cn(gn,n);return(0,O.Y)(Jt.span,{...c,ref:t,onKeyDown:nt(e.onKeyDown,e=>{"Home"===e.key?(o(e),e.preventDefault()):"End"===e.key?(a(e),e.preventDefault()):fn.concat(pn).includes(e.key)&&(l(e),e.preventDefault())}),onPointerDown:nt(e.onPointerDown,e=>{const t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),u.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):i(e)}),onPointerMove:nt(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&r(e)}),onPointerUp:nt(e.onPointerUp,e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),s(e))})})},"SliderImpl")),kn=s.forwardRef(hn(function(e,t){const{__scopeSlider:n,...i}=e,r=Cn("SliderTrack",n);return(0,O.Y)(Jt.span,{"data-disabled":r.disabled?"":void 0,"data-orientation":r.orientation,...i,ref:t})},"SliderTrack")),Rn="SliderRange",Dn=s.forwardRef(hn(function(e,t){const{__scopeSlider:n,...i}=e,r=Cn(Rn,n),o=xn(Rn,n),a=ct(t,s.useRef(null)),l=r.values.length,c=r.values.map(e=>jn(e,r.min,r.max)),u=l>1?Math.min(...c):0,d=100-Math.max(...c);return(0,O.Y)(Jt.span,{"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,...i,ref:a,style:{...e.style,[o.startEdge]:u+"%",[o.endEdge]:d+"%"}})},"SliderRange")),[On,Yn]=vn("SliderThumb");function Fn(e){const{__scopeSlider:t,name:n,children:i,internal_do_not_use_render:r}=e,o=Cn("SliderThumbProvider",t),a=bn(t),[l,c]=s.useState(null),u=s.useMemo(()=>l?a().findIndex(e=>e.ref.current===l):-1,[a,l]),d=Yt(l),h=!l||!!o.form||!!l.closest("form"),f=o.values[u],p=n??(o.name?o.name+(o.values.length>1?"[]":""):void 0),m=void 0===f?0:jn(f,o.min,o.max);s.useEffect(()=>{if(l)return o.thumbs.add(l),()=>{o.thumbs.delete(l)}},[l,o.thumbs]);const g={value:f,name:p,form:o.form,isFormControl:h,index:u,thumb:l,onThumbChange:c,percent:m,size:d};return(0,O.Y)(On,{scope:t,...g,children:Jn(r)?r(g):i})}hn(Fn,"SliderThumbProvider");var Mn="SliderThumbTrigger",Pn=s.forwardRef(hn(function(e,t){const{__scopeSlider:n,...i}=e,r=Cn(Mn,n),s=xn(Mn,n),{index:o,value:a,percent:l,size:c,onThumbChange:u}=Yn(Mn,n),d=ct(t,u),h=qn(o,r.values.length),f=c?.[s.size],p=f?$n(f,l,s.direction):0;return(0,O.Y)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${l}% + ${p}px)`},children:(0,O.Y)(yn.ItemSlot,{scope:n,children:(0,O.Y)(Jt.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":r.min,"aria-valuenow":a,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...i,ref:d,style:void 0===a?{display:"none"}:e.style,onFocus:nt(e.onFocus,()=>{r.valueIndexToChangeRef.current=o})})})})},"SliderThumbTrigger")),Ln=s.forwardRef(hn(function(e,t){const{__scopeSlider:n,name:i,...r}=e;return(0,O.Y)(Fn,{__scopeSlider:n,name:i,internal_do_not_use_render:({index:e,isFormControl:i})=>(0,O.FD)(O.FK,{children:[(0,O.Y)(Pn,{...r,ref:t,__scopeSlider:n}),i?(0,O.Y)(Hn,{__scopeSlider:n},e):null]})})},"SliderThumb")),Hn=s.forwardRef(hn(function({__scopeSlider:e,...t},n){const{value:i,name:r,form:o}=Yn("SliderBubbleInput",e),a=s.useRef(null),l=ct(a,n),c=Dt(i);return s.useEffect(()=>{const e=a.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(c!==i&&n){const t=new Event("input",{bubbles:!0});n.call(e,i),e.dispatchEvent(t)}},[c,i]),(0,O.Y)(Jt.input,{style:{display:"none"},name:r,form:o,...t,ref:l,defaultValue:i})},"SliderBubbleInput"));function Bn(e=[],t,n){const i=[...e];return i[n]=t,i.sort((e,t)=>
2e-t)}function jn(e,t,n){return Xe(100/(n-t)*(e-t),[0,100])}function qn(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}function zn(e,t){if(1===e.length)return 0;const n=e.map(e=>Math.abs(e-t)),i=Math.min(...n);return n.indexOf(i)}function $n(e,t,n){const i=e/2;return(i-Gn([0,50],[0,i])(t)*n)*n}function Un(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Kn(e,t){if(t>0){const n=Un(e);return Math.min(...n)>=t}return!0}function Gn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}function Vn(e){if(!Number.isFinite(e))return 0;const t=e.toString();if(t.includes("e")){const[e,n]=t.split("e"),i=e.split(".")[1]||"",r=Number(n);return Math.max(0,i.length-r)}const n=t.split(".")[1];return n?n.length:0}function Wn(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function Qn(e,{min:t,step:n,direction:i,multiplier:r}){const s=Vn(n),o=(e-t)/n,a=Math.round(o);let l;return l=Wn(a*n+t,s)===Wn(e,s)?a+r*i:i>0?Math.ceil(o):Math.floor(o),Wn(l*n+t,s)}function Jn(e){return"function"==typeof e}hn(Bn,"getNextSortedValues"),hn(jn,"convertValueToPercentage"),hn(qn,"getLabel"),hn(zn,"getClosestValueIndex"),hn($n,"getThumbInBoundsOffset"),hn(Un,"getStepsBetweenValues"),hn(Kn,"hasMinStepsBetweenValues"),hn(Gn,"linearScale"),hn(Vn,"getDecimalCount"),hn(Wn,"roundValue"),hn(Qn,"getNextStepValue"),hn(Jn,"isFunction");var Xn="oi0fIJroRB",Zn="oFtz9fobTd",ei=n(8343),ti=n(6402);const ni={1:"small",2:"medium",3:"large",4:"huge"},ii=Object.fromEntries(Object.entries(ni).map(([e,t])=>[t,e]));function ri(e){return(0,a.Zr)(ni[e]||e)}function si({buckets:e,onChange:t}){const n=Math.max.apply(Math,_()(S(),e.map(([,e])=>e)));return(0,O.Y)("div",{className:"zK2V1ccWNg",children:e.map(([e,i])=>(0,O.Y)("div",{"aria-hidden":!0,"aria-label":`${ri(e)} (${(0,a.B4)(i)})`,className:"gFcr0rtqQq",role:"tooltip",onClick:()=>t(e),onMouseUp:()=>t(e),children:(0,O.Y)("div",{className:"rFwnarPSII",style:{backgroundColor:"gray",height:i/n*100+"%"}})},e))})}function oi(e){let t=e;return e in ii&&(t=ii[e]),t=Number.parseInt(t,10),t}const ai=(0,s.forwardRef)(({id:e,showInputs:t=!1},n)=>{const{queryState:i,setQueryState:r}=(0,s.useContext)(L.Ay),[o,a]=(0,s.useState)(null),[l,c]=(0,s.useState)({}),{[e]:u={}}=i;(0,s.useEffect)(()=>{!async function(){let t=(await(0,ei.default)({...i,[e]:void 0},{field:e,key:`aggregation-${e}`,queryType:"histogramAggregationQueryBuilder"})).aggregations.histogram.buckets.map(e=>[oi(e.key),e.doc_count]);t=function(e){const t=e.findIndex(([,e])=>0!==e),n=e.findLastIndex(([,e])=>0!==e);return-1===t?[]:e.slice(t,n+1)}(t),a(t)}()},[i,a,e]);const d=o?.length?o.at(-1)[0]:0,h=o?.length?o[0][0]:0,f=Number(l.min||ii[u.min]||u.min||h),p=Number(l.max||ii[u.max]||u.max||d),m=(0,s.useCallback)(t=>{(0,K.s)("search_filter",{name:e,value:`${t.min}-${t.max}`}),c({});const n=t.min===h&&t.max===d?"search_filter_remove":"search_filter_add";(0,K.s)(n,{name:e,value:`${t.min}-${t.max}`}),t.min===h&&t.max===d?r({[e]:void 0}):r({[e]:{max:ni[t.max]||t.max,min:ni[t.min]||t.min}})},[e,d,h,r]);return null===o?(0,O.Y)(ti.A,{}):(0,O.FD)(O.FK,{children:[(0,O.Y)(si,{buckets:o,onChange:e=>{const t=(f+p)/2,n={max:p,min:f};e<f?n.min=e:e>p?n.max=e:e>t?n.max=Math.min(e,p):n.min=Math.max(e,f),c({max:n.max,min:n.min})}}),(0,O.FD)(An,{className:"kAriEaZsz3",max:d,min:h,value:[f,p],onValueChange:e=>c({max:e[1],min:e[0]}),onValueCommit:e=>m({max:e[1],min:e[0]}),children:[(0,O.Y)(kn,{className:"DH9inlcOCx",children:(0,O.Y)(Dn,{className:"JoK8EMZEVQ"})}),(0,O.Y)(Ln,{"aria-label":"Minimum",className:Zn}),(0,O.Y)(Ln,{"aria-label":"Maximum",className:Zn})]}),t?(0,O.FD)("form",{ref:n,className:"L2RnfpsFdx",onSubmit:e=>{e.preventDefault(),m({max:p,min:f})},children:[(0,O.Y)("input",{className:Xn,max:d,min:h,placeholder:"min",type:"number",value:f,onChange:({target:e})=>c(t=>({...t,min:Number(e.value)}))}),(0,O.Y)("div",{className:"f1IXOOWdyi",children:"-"}),(0,O.Y)("input",{className:Xn,max:d,min:h,placeholder:"max",type:"number",value:p,onChange:({target:e})=>c(t=>({...t,max:Number(e.value)}))}),(0,O.Y)(D.A,{outlined:!0,size:"sm",type:"submit",children:(0,O.Y)("i",{className:"icon icon-search-blue",style:{height:"20px",width:"20px"}})})]}):(0,O.FD)("div",{style:{display:"flex"},children:[(0,O.Y)("small",{children:ri(h)}),(0,O.Y)("small",{style:{marginLeft:"auto"},children:ri(d)})]})]})}),li=ai,ci=(0,s.lazy)(()=>n.e(1854).then(n.bind(n,719)));function ui(e){return e.length>=2&&"%"===e[0]&&"%"===e.at(-1)}function di({fieldValue:e,id:t,lastSelectionRef:n,sectionType:i,title:r}){var o;const{queryState:a,setQueryState:l}
2=(0,s.useContext)(L.Ay),[c,u]=(0,s.useState)(void 0),d=(0,s.useRef)(null);function h(e){(0,K.s)("search",{name:t,search_term:e,type:i}),l({[i]:{...a[i],[t]:e}}),u(void 0)}(0,s.useEffect)(()=>{n.current===e&&d.current&&d.current.focus()},[e,n]);const f=null!=(o=null!=c?c:a[i][t])?o:"";return(0,O.Y)("div",{className:"sf-filter",children:(0,O.Y)("form",{onSubmit:e=>{e.preventDefault(),h(f)},children:(0,O.FD)("div",{className:"sf-filter__control",children:[(0,O.Y)($e.A,{ref:d,className:"input-height-xs dark-border-color no-margin",placeholder:r,value:f,onBlur:()=>{void 0!==c&&c!==a[i][t]&&h(c)},onChange:e=>u(e.target.value)}),(0,O.Y)("div",{className:"sf-filter__control__actions",children:(0,O.Y)("div",{className:"sf-filter__action sf-filter__autosuggest-submit",children:(0,O.Y)(D.A,{disabled:!f&&!a[i][t],size:"sm",style:{backgroundColor:J([i,t].join(":"))},type:"submit",children:(0,O.Y)("i",{className:"icon icon-colorize-black"})})})})]})})})}function hi({active:e=!1,id:t,items:n=[],lastSelectionRef:i,showNestedFilter:o=!1,toggleItem:l}){return 0===n.length?null:(0,O.Y)("div",{className:"sf-options",children:n.map(({doc_count:n,key:c,label:u})=>{let d=z[t]?.[c];return d=u||(d?`(${c}) ${d} `:B[c]||c),(0,O.FD)(s.Fragment,{children:[(0,O.Y)("div",{className:r()("sf-option","sf-option--checkbox",{"is-active":e}),children:(0,O.FD)(He.A,{readOnly:!0,checked:e,id:c,onChange:()=>l(c),children:[(0,O.Y)("div",{className:"sf-option__text",children:ui(d)?(0,O.FD)(O.FK,{children:[(0,O.Y)("i",{children:"All containing"})," “",d.slice(1,-1),"”"]}):d}),n&&(0,O.Y)("div",{className:"sf-option__count",children:(0,a.B4)(n)})]})}),o&&e&&(0,O.Y)(di,{fieldValue:c,id:c,lastSelectionRef:i,sectionType:t,title:`Search within ${ui(c)?c.slice(1,-1):c}`})]},c)})})}function fi({field:e="sections.name.raw",id:t,showNestedFilter:n}){const{queryState:i,setQueryState:o}=(0,s.useContext)(L.Ay),[a,l]=(0,s.useState)(!1),[c,u]=(0,s.useState)(!1),[d,h]=(0,s.use
2State)(null),[f,p]=(0,s.useState)(null),m=(0,s.useRef)(null),g=(0,s.useRef)(null),y=(0,s.useMemo)(()=>(0,ke.sg)(async(n,i="")=>{(0,K.s)("search",{name:t,search_term:i,type:"filter_autosuggest"}),l(!0);try{const r=await(0,ei.default)(n,{aggregationQueryBuilderKey:t,field:e,key:`aggregation-${t}`,prefixFilter:i,queryType:"aggregationQueryBuilder"});p(r?.aggregations?.[t]?.inner?.buckets||[]),l(!1)}catch(e){"AbortError"!==e.name&&l(!1)}},500),[e,t]);(0,s.useEffect)(()=>{c?m.current?.focus():(m.current?.blur(),p(null),h(null),l(!1))},[c]),(0,s.useEffect)(()=>{c&&(y(i,d),null===d&&y.flush())},[d,c,i,y]);const b=(0,s.useCallback)(e=>{if(!e.trim())return;h(null),p(null),u(!1),(0,K.s)("search_filter",{name:t,value:e});const n={...i[t]},r=void 0===n[e]?"search_filter_add":"search_filter_remove";(0,K.s)(r,{name:t,value:e}),void 0===n[e]?(n[e]="",g.current=e):(delete n[e],g.current=""),o({[t]:n})},[t,i,o]),_=Object.keys(i[t]||{}).map(e=>({key:e})),v=(0,s.useMemo)(()=>{const e=new Set(_.map(e=>e.key)),t=(f||[]).filter(t=>!e.has(t.key)),n=`%${d}%`;return d?.trim()&&!e.has(n)&&t.unshift({key:n,label:(0,O.FD)(O.FK,{children:[(0,O.Y)("i",{children:"Select all containing"})," ",(0,O.FD)("span",{style:{backgroundColor:Le.gf},children:["“",d,"”"]})]})}),t},[d,f,_]);return(0,O.FD)(O.FK,{children:[_.length>0?(0,O.Y)("div",{className:r()("sf-filter__options",{"with-nested":n&&R.A.SHOW_NESTED_FILTER.get()}),children:(0,O.Y)(hi,{active:!0,id:t,items:_,lastSelectionRef:g,showNestedFilter:n&&R.A.SHOW_NESTED_FILTER.get(),toggleItem:b})}):null,(0,O.FD)("div",{className:"sf-filter__control",children:[(0,O.Y)($e.A,{ref:m,autoFocus:!0,"aria-label":t,className:"input-height-sm dark-blue-border-color no-margin",icon:(0,O.Y)("i",{className:"icon icon-search-blue"}),label:"Search",trailingIcon:a&&(0,O.Y)(Ue.A,{}),value:d||"",onChange:({target:{value:e}})=>h(e),onFocus:()=>u(!0),onKeyDown:({key:e,target:{value:t}})=>{"Enter"===e&&b(t.trim()?`%${t}%`:"")}}),(0,O.Y)("div",{className:"sf-filter__control__actions",children:(0,O.Y)("div",{className:"sf-filter__action sf-filter__action-dropdown",children:(0,O.Y)(D.A,{disabled:a,onClick:()=>u(e=>!e),children:(0,O.Y)("i",{className:r()({icon:!0,"icon-arrow-grey":!c,"icon-close-grey":c})})})})})]}),(0,O.Y)(qe.A,{MenuComponent:ci,NestedCheckboxItemList:hi,id:t,items:v,loading:a,open:c,toggleFilter:b,onClose:()=>u(!1)})]})}var pi="EsBIy0Ln7P",mi="SaaxaQpdm8",gi="RqdTCwr5TI",yi=n(1976);const bi=(0,s.forwardRef)(({id:e,showSecondaryInput:t,template:n,title:i},r)=>{const{queryState:o,setQueryState:l}
2=(0,s.useContext)(L.Ay),[c,u]=(0,s.useState)(""),[d,h]=(0,s.useState)(0);return(0,O.Y)("div",{className:"sf-filter__control",children:(0,O.FD)("form",{ref:r,onSubmit:t=>{if(t.preventDefault(),!c)return;const i=n.replace("$query",c);let r=`${(o.q||"").replace(new RegExp(`${(0,a.bS)(i)}(~[0-9])?`),"")} ${i}`.trim();d&&(r=`${r}~${d}`.trim()),(0,K.s)("search",{name:e,search_term:(d?`${i}~${d}`:i).trim(),type:"simple_input_filter"}),l({q:r});const s=document.querySelector(".sk-search-box__text");s&&(s.focus(),s.value=r),u(""),h(0)},children:[(0,O.Y)($e.A,{autoFocus:!0,className:"input-height-sm dark-blue-border-color no-margin",label:i,value:c,onChange:e=>u(e.target.value)}),(0,O.FD)("div",{className:"sf-filter__control__actions",children:[t&&(0,O.Y)("div",{className:"sf-filter__action sf-filter__action-input",children:(0,O.Y)("span",{"aria-label":"Maximum number of words allowed to appear between words",className:"tooltip-flat-sm tooltip-bottom",role:"tooltip",children:(0,O.Y)("input",{className:"filter-count-filter",type:"text",value:d,onChange:async({target:e})=>{await h(Number.parseInt(e.value[0],10)||0),e.select()},onFocus:({target:e})=>e.select()})})}),(0,O.Y)("div",{className:"sf-filter__action sf-filter__action-submit",children:(0,O.Y)(D.A,{outlined:!0,disabled:!c,type:"submit",children:(0,O.Y)("i",{className:"icon icon-search-blue"})})})]})]})})}),_i=bi;var vi=n(9002),Si=n(5554),Ei=n(7224);const Ci={clause:{component:()=>(0,O.Y)(fi,{showNestedFilter:!0,id:"clause"}),tooltip:"Search for clauses contained within the document(s)"},[o.Gd]:{component:()=>(0,O.Y)(fi,{showNestedFilter:!0,id:"definition"}),tooltip:"Search for definitions contained within the document(s)"},[o.ys]:{component:()=>(0,O.Y)(fi,{id:"category",title:"Contract Types"}),tooltip:"Filter by document category (e.g. Credit Agreement)"},[o.tN]:{component:()=>(0,O.Y)(li,{id:"body_size",title:"Document Size"}),tooltip:"Adjust the slider to filter your search results by the size of the documents. Each bar represents the quantity of documents within a specific size range in your current search. Slide the handles to target documents from 'Small' to 'Huge' sizes, refining your search to documents of a particular size."},exact:{component:e=>(0,O.Y)(_i,{ref:e,showSecondaryInput:!0,id:"exact-phrase",template:'"$query"',title:"Exact Phrase"}),tooltip:"Search for a specific phrase, you can also specify a maximum number of words to allow between the words in your phrase."},[o._j]:{component:e=>(0,O.Y)(_i,{ref:e,id:"exclude-term",template:"+-$query",title:"Exclude Keywords"}),tooltip:"This will exclude any results which contain specified keywords or a phrase."},[o.v]:{component:()=>(0,O.Y)(je,{defaultValue:!1,id:o.v,title:"Exclude unavailable sources"}),tooltip:"Applying this filter will exclude results that are based on external contracts (not hosted on Law Insider) which seem to be no longer accessible."},[o.bu]:{component:e=>(0,O.Y)(li,{ref:e,showInputs:!0,id:"filing_year",title:"Filing Year"}),tooltip:"Refine your search by selecting a range of years. The chart represents the number of documents available for each year within your current search parameters. Move the slider handles or type in specific years to narrow down your results to a particular timeframe."},[o.$Y]:{component:()=>(0,O.Y)(Je,{id:"namespace"}),tooltip:"Filter results by library"},order:{component:()=>(0,O.Y)(je,{defaultValue:!1,id:"order",title:"Common"}),tooltip:"Group results by the number of common occurrences"},[o.ED]:{component:()=>(0,O.Y)(je,{defaultValue:!1,id:o.ED,title:"SEC.gov only"}),tooltip:"Show results derived from the SEC.gov database only"},[o.Rc]:{component:()=>(0,O.Y)(je,{defaultValue:!1,id:o.Rc,title:"Similar"}),tooltip:"Show all results which are similar to selected item"},[o.r4]:{component:()=>(0,O.Y)(li,{id:"snippet_size",title:"Snippet Size"}),tooltip:"Adjust the slider to filter your search results by the size of the snippets."},vector:{component:({...e})=>(0,O.Y)(yi.A,{...e}),tooltip:yi.Y}},Ai=(0,s.forwardRef)(({open:e,...t},n)=>{const i=(0,s.useRef)(null),{queryState:o}=(0,s.useContext)(L.Ay),{_index:a,p:l,q:c,tab:u,...d}=o,h=(0,s.useCallback)(()=>
2{if(!i?.current)return;if(!n?.current)return void(i.current.style.left="0px");const e=375,t=i.current,r=document.querySelector(".filters-wrapper"),s=n.current?.getBoundingClientRect(),o=r?.clientWidth,a=o-s.right+s.width,l=o-(o-s.right);a>=e&&(t.style.left="0px"),l>=e&&(t.style.right="0px"),e>l&&e>a&&(t.style.left=`-${s.left-12}px`)},[n,i]);return(0,s.useEffect)(()=>{h()},[d,h]),(0,O.Y)("div",{ref:i,className:r()("EHF2i_dkcf mdc-menu-surface",{"mdc-menu-surface--open":e}),open:e,children:e?(0,O.Y)(xi,{ref:i,open:e,...t}):null})});function wi({onPinFilter:e,onRemoveFilter:t,selectedFilter:n}){const[i,o]=(0,s.useState)(!1),{queryState:a}=(0,s.useContext)(L.Ay),{_index:l,p:c,q:u,tab:d,...h}=a,f=Object.keys(h).includes(n?.value),p=L.u8.includes(n?.value),m="function"==typeof e&&!p,g="function"==typeof t&&f;if(!g&&!m)return null;const y=R.A.DEFAULT_FILTERS.get().includes(n?.value);return(0,O.FD)(vi.A,{children:[(0,O.Y)(D.A,{"aria-label":"Search filter actions",onClick:()=>o(!0),children:(0,O.Y)("i",{className:"icon _Ooz00AJhS"})}),(0,O.FD)(Si.A,{anchorCorner:"bottomLeft",open:i,onClose:()=>o(!1),children:[g&&(0,O.FD)(Ei.A,{className:gi,onClick:t,children:[(0,O.Y)("i",{className:r()("icon","bC_sIHOyhx")}),"Remove filter"]}),m&&(0,O.FD)(Ei.A,{className:gi,onClick:e,children:[(0,O.Y)("i",{className:r()("icon",{[pi]:!y,[mi]:y})}),y?"Unpin":"Pin"," this filter"]})]})]})}const xi=(0,s.forwardRef)(({onClose:e,onPinFilter:t,onRemoveFilter:n,onSave:i,open:r,selectedFilter:a},c)=>{const u=(0,s.useRef)(null),d=Ci[a?.value]?.tooltip,h=Ci[a?.value]?.component?.(u)||(0,O.Y)(fi,{id:a?.value});return(0,s.useEffect)(()=>{const t=[(0,l.fv)(document,"mousedown",({target:t})=>{c.current.contains(t)||e()}),(0,l.fv)(document,"keydown",({key:t})=>{"Escape"===t&&e()})];return()=>{for(const e of t)e()}},[e,c]),r&&(0,O.FD)(O.FK,{children:[(0,O.FD)("div",{className:"okMdJ_nARF",children:[(0,O.Y)("p",{className:"vin0UCxMiV",children:a?.label}),d?(0,O.FD)("div",{className:"ctkJkGTxAw",children:["vector"===a?.value?(0,O.Y)("span",{"aria-label":"When searching with ClauseFinder™, your original text never leaves your device, ensuring your privacy and security.",className:"text-right tooltip-flat-md tooltip-bottom-right",role:"tooltip",style:{paddingRight:"5px"},children:(0,O.Y)("i",{className:"icon icon-lock-black",style:{cursor:"pointer",height:"14px",width:"14px"}})}):null,(0,O.Y)("span",{"aria-label":d,className:"text-right tooltip-flat-md tooltip-bottom-right",role:"tooltip",children:(0,O.Y)("span",{className:"icon icon-helper"})})]}):null,"vector"===a?.value?(0,O.FD)("a",{className:"color-blue-main",href:"https://hub.lawinsider.com/c/product-101/meet-clausefinder",style:{fontSize:14,marginLeft:8,marginTop:3},...o.Js,children:[(0,O.Y)("i",{className:"icon icon-play-circle-blue icon--left"}),"Watch Demo"]}):null,(0,O.Y)(wi,{selectedFilter:a,onPinFilter:t,onRemoveFilter:n})]}),(0,O.Y)("div",{className:"VAmhsRdsjz",children:h}),(0,O.Y)("div",{className:"SEi6knT49N",children:(0,O.Y)(D.A,{raised:!0,onClick:()=>{u.current&&u.current?.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0})),i()},children:"Done"})})]})});var Ni=n(2970);function Ti({eventName:e,flag:t,tooltipClassName:n="tooltip-bottom"}){const i=(0,R._)(t);return(0,O.FD)(Ni.A,{checked:i,style:{lineHeight:"1.2"},onChange:({target:{checked:n}})=>{t.set(n),(0,K.s)(e,{action:"flag_change",name:"AI_SEARCH_COLUMNS_FULL_DOCUMENT_MODE",value:n})},children:["Full Document Mode"," ",(0,O.Y)("span",{"aria-label":(0,a.kd)("When enabled, the entire contract is provided to the AI for analysis. This allows for more comprehensive queries, such as summarizing the entire contract or answering questions about details that are deeply embedded in the document.\n\nWhen disabled, only a limited snippet is sent, resulting in faster responses but with restricted context. This is ideal for tasks focused on specific sections or clauses."),className:r()("tooltip-flat-md tooltip-flat-md--multiline",n),role:"tooltip",style:{verticalAlign:"text-bottom"},children:(0,O.Y)("span",{className:"icon icon-helper"})})]})}var Ii="lMAqb_lLif",ki="k2kaszMqif",Ri=n(2946),Di=n(2857);function Oi({setInput:e}
2){const[t,n]=(0,s.useState)(!0),[i,o]=(0,s.useState)([]),{queryState:a}=(0,s.useContext)(L.Ay);return(0,s.useEffect)(()=>{const e=new AbortController,{signal:t}=e;return async function(){n(!0);try{const e=await fetch("/api/search/insights/suggestions",{body:JSON.stringify({query:a}),headers:{"Content-Type":"application/json"},method:"POST",signal:t}),n=await e.json();o(n.prompts)}catch(e){}finally{n(!1)}}(),()=>e.abort()},[a]),t?(0,O.Y)(ti.A,{}):i.map(t=>(0,O.Y)(D.A,{className:r()("text-left","M1UPl3MEl2"),onClick:()=>{e(t),(0,K.s)("search_columns",{action:"suggestion",prompt:t})},children:t},t))}function Yi({initialInput:e="",onClose:t}){const[n,i]=(0,s.useState)(e),[c,u]=(0,s.useState)(!1);return(0,s.useEffect)(()=>(0,l.fv)(document,"keydown",({key:e})=>{"Escape"===e&&t()}),[t]),(0,O.FD)("div",{className:r()("text-left","_CGqtDjY9r"),children:[(0,O.FD)("div",{className:"row-flex flex-between margin-top-05",children:[(0,O.FD)("span",{className:"row-flex flex-between",children:[(0,O.FD)("span",{children:[(0,O.Y)("h4",{className:"no-margin",children:"AI Insights"}),(0,O.Y)("p",{style:{fontSize:"10px"},children:"Limited Time Preview"})]}),(0,O.Y)(Pe.A,{className:"icon--right"})]}),(0,O.FD)("span",{className:"row-flex",children:[(0,O.Y)("span",{"aria-label":(0,a.kd)('Your prompt will be applied to each result to help you extract more information.\n\nUse this feature to create personalized columns based on your own prompts. The prompt you enter will be applied to each search result, allowing you to extract or summarize information in any way you choose.\n\nExamples:\n  "Summarize the result." — Get a quick summary of each document.\n  "Does this mention COVID? Answer ONLY \'yes\' or \'no\'." — Extract targeted information.\n  "Identify the parties involved." — Focus on specific details like entities or names.\n\nYou can add multiple columns, and the prompts stay as you adjust your search query. Remove or edit columns anytime using the edit icon.'),className:r()("tooltip-flat-md tooltip-flat-md--multiline tooltip-bottom-right","hIC64GZu0V"),role:"tooltip",style:{fontSize:15,marginLeft:"0.5rem"},children:(0,O.Y)("span",{className:"icon icon-helper"})}),(0,O.FD)("a",{className:"color-blue-main",href:"https://hub.lawinsider.com/c/product-101/preview-ai-insights",style:{fontSize:14,marginLeft:13,marginTop:3},...o.Js,children:[(0,O.Y)("i",{className:"icon icon-play-circle-blue icon--left"}),"Watch Demo"]})]})]}),(0,O.Y)($e.A,{autoFocus:!0,textarea:!0,className:"dark-blue-border-color",label:"Enter a prompt to extract key info from each result",rows:"4",value:n,onChange:e=>i(e.target.value)}),(0,O.Y)(Ti,{eventName:"search_columns",flag:R.A.AI_SEARCH_COLUMNS_FULL_DOCUMENT_MODE}),(0,O.FD)("div",{className:"row-flex flex-align-center flex-between",children:[(0,O.Y)(D.A,{raised:!0,disabled:c||!n,onClick:async()=>{u(!0);try{await async function({input:e}){const t=await fetch("/api/search/insights/summarize",{body:JSON.stringify({prompt:e}),headers:{"Content-Type":"application/json"},method:"POST"}),n=await t.json(),i=R.A.AI_SEARCH_COLUMNS.get();i.some(({prompt:t})=>t===e)||((0,K.s)("search_columns",{action:"add",prompt:e,title:n.summary}),R.A.AI_SEARCH_COLUMNS.set([].concat(_()(S(),i),[{prompt:e,title:n.summary}])))}({input:n}),e!==n&&R.A.AI_SEARCH_COLUMNS.set(R.A.AI_SEARCH_COLUMNS.get().filter(({prompt:t})=>t!==e)),t()}catch(e){}finally{u(!1)}},children:"Apply"}),e&&(0,O.Y)(D.A,{"aria-label":"Delete",onClick:()=>{R.A.AI_SEARCH_COLUMNS.set(R.A.AI_SEARCH_COLUMNS.get().filter(({prompt:t})=>t!==e)),(0,K.s)("search_columns",{action:"delete",prompt:e}),t()},children:(0,O.Y)("i",{className:r()("icon","Qfq9U6eZ1E")})})]}),(0,O.FD)("div",{children:[(0,O.Y)("h5",{children:"Examples:"}),(0,O.Y)("div",{className:r()("row-flex","flex-align-center"),style:{height:"180px"},children:(0,O.Y)(Oi,{setInput:i})})]})]})}function Fi(){const[e,t]=(0,s.useState)(!1);return(0,R._)(R.A.SHOW_AI_SEARCH_COLUMNS)?(0,O.FD)(vi.A,{className:Ii,children:[(0,O.FD)(D.A,{outlined:!0,"data-trigger-paywall-id":Ri.gx,size:"sm",onClick:()=>{(0,K.s)("search_columns",{action:"open"}),t(!0)},children:[(0,O.Y)("i",{className:r()("icon","sOyul91dmc"),style:{marginRight:"0.5rem"}}),"Add AI Column"]}),(0,O.Y)(Di.A,{anchorCorner:"bottomLeft",open:e,onClose:()=>t(!1),children:e&&(0,O.Y)(Yi,{onClose:()=>t(!1)})})]}):null}function Mi({prompt:e,title:t}
2){const[n,i]=(0,s.useState)(!1);return(0,O.FD)(vi.A,{className:Ii,children:[(0,O.FD)(D.A,{"aria-label":`Edit "${t}" column`,size:"sm",onClick:()=>{(0,K.s)("search_columns",{action:"edit"}),i(!0)},children:[(0,O.Y)("i",{className:r()("icon","MVeAjypyaR")}),(0,O.Y)("span",{className:"hJrWFqWNU5",children:t})]}),(0,O.Y)(Di.A,{anchorCorner:"bottomLeft",open:n,onClose:()=>i(!1),children:n&&(0,O.Y)(Yi,{initialInput:e,onClose:()=>i(!1)})})]})}function Pi({text:e}){const{debug:t}=(0,s.useContext)(f.A);return t?(0,O.FD)(O.FK,{children:[(0,O.Y)("span",{"aria-label":(0,a.kd)(e),className:"tooltip-flat-md tooltip-flat-md--multiline tooltip-bottom-right",role:"tooltip",children:(0,O.Y)("span",{className:"icon icon-helper"})})," "]}):null}function Li({prompt:e,result:t}){const[n,i]=(0,s.useState)(!0),[r,o]=(0,s.useState)(null),[a,l]=(0,s.useState)(null),{queryState:c}=(0,s.useContext)(L.Ay),u=(0,R._)(R.A.AI_SEARCH_COLUMNS_FULL_DOCUMENT_MODE);return(0,s.useEffect)(()=>{const n=new AbortController,{signal:r}=n;return async function(){l(null),i(!0);try{const n=await fetch("/api/search/insights/prompt",{body:JSON.stringify({include_body:u,prompt:e,query:c,results:t}),headers:{"Content-Type":"application/json"},method:"POST",signal:r});if(!n.ok)throw 429===n.status?new Error("Too many requests, please try again later"):new Error("Unexpected error");const i=await n.json();o(i)}catch(e){l(e)}finally{i(!1)}}(),()=>n.abort()},[t,c,e,u]),n?(0,O.Y)(ti.A,{}):a?(0,O.Y)("div",{style:{color:"red"},children:a.message}):(0,O.FD)("div",{children:[(0,O.Y)(Pi,{text:JSON.stringify({input:{prompt:e,queryState:c,result:t},output:r},null,2)}),r.response.final_answer]})}function Hi({children:e,result:t}){const n=(0,R._)(R.A.AI_SEARCH_COLUMNS);return(0,O.FD)("tr",{children:[(0,O.Y)("td",{className:"HJx4teYbpi",children:e}),n.map(({prompt:e})=>(0,O.Y)("td",{style:{textAlign:"left"},children:(0,O.Y)(Li,{prompt:e,result:t})},e))]})}function Bi({children:e}){const{queryState:{tab:t}}=(0,s.useContext)(L.Ay),n=(0,R._)(R.A.AI_SEARCH_COLUMNS);return(0,s.useEffect)(()=>{if(0===n.length)return;const e=setTimeout(()=>(0,K.s)("search_columns_view",{titles:n.map(({title:e})=>e)}),1e4);return()=>clearTimeout(e)},[n]),(0,O.FD)("table",{className:r()("mdl-data-table","qalLTD4Iln"),children:[(0,O.Y)("thead",{style:{backgroundColor:"#f5f5f5"},children:(0,O.FD)("tr",{children:[(0,O.Y)("th",{"aria-label":"Result",className:ki,children:(0,a.u2)(t||"contract")}),n.map(({prompt:e,title:t})=>(0,O.Y)("th",{className:ki,style:{fontWeight:"normal"},children:(0,O.Y)(Mi,{prompt:e,title:t})},e))]})}),(0,O.Y)("tbody",{children:e})]})}const ji=new Set([o.Qy,"type"]),qi=["exact",o._j],zi=[o.bu,o.v,o.r4,o.tN],$i=new Set(["clause",o.Gd]),Ui="BUTTON",Ki=(e,t,n)=>!!n[t]?.length&&("clause"===e||e===o.Gd);function Gi(e,t,n){const i=[];for(const[r,s]of Object.entries(e))if(s&&("order"!==r||R.A.SHOW_ORDER_FILTER_CHIP.get()))if([o.bu,o.tN,o.r4].includes(r))i.push({remove:()=>t({[r]:void 0}),type:r,value:s.min===s.max?(0,a.Zr)(s.min):`${(0,a.Zr)(s.min)} - ${(0,a.Zr)(s.max)}`});else if("vector"===r)i.push({remove:()=>{t({[r]:void 0})},type:r,value:n[H.Pj]||"Unknown text"});else if(r===o.$Y){if(Array.isArray(s))for(const e of s){const n=R.A.NAMESPACE.get()===e?R.A.NAMESPACE_LABEL.get():null;i.push({remove:()=>t({[r]:s.filter(t=>t!==e)}),type:r,value:(0,Fe.Ub)(e,n)})}}else if("object"==typeof s)for(const[e,o]of Object.keys(s).entries())i.push({color:Ki(r,o,s)&&J([r,o].join(":")),disabled:(0,L.isSection)(r)&&r===n.tab&&e>0,nestedValue:s[o],remove:()=>t({[r]:Object.fromEntries(Object.entries(n[r]).filter(([e])=>e!==o))}),type:r,value:o});else"string"!=typeof s&&"boolean"!=typeof s||i.push({remove:()=>t({[r]:void 0}),type:r,value:s});return i}function Vi({type:e}){return e&&(0,O.Y)("div",{className:"sk-filter-group-items__label",children:B[e]||(0,a.u2)(e)})}function Wi({value:e}){return e.length>=2&&"%"===e[0]&&"%"===e.at(-1)?`All containing “${e.slice(1,-1)}”`:B[e]||e}function Qi({type:e,value:t}){return(0,O.FD)("div",{className:"filter-chip suggested-chip",children:[(0,O.Y)(Vi,{type:e}),(0,O.Y)("div",{className:"sk-filter-group-items__container",children:(0,O.Y)(D.A,{disabled:!0,className:"filter-chip-button",size:"sm",children:(0,O.FD)("div",{className:"sk-filter-group-items__content",children:["boolean"==typeof t?"Enable":null,(0,O.Y)(Wi,{value:t})]})})})]})}function Ji({onFilterClick:e}){const{queryState:t}=(0,s.useContext)(L.Ay),{p:n,q:i,tab:r,...l}
2=t,c=Object.keys(l),[u,d]=(0,s.useState)(null),[h,f]=(0,s.useState)(Ui),p=u?u.filter(({value:e})=>!c.includes(e)||$i.has(e)):null,m=(0,s.useCallback)(async()=>{try{const e=await(0,ei.default)(t,{key:"tags",queryType:"aggregationTagsQueryBuilder"}),n=e?.aggregations?.sections,i=n.map(e=>e.key),r=[].concat(_()(S(),i),qi,zi,_()(S(),i.includes("filing_id")?[o.ED]:[])).filter(e=>!ji.has(e)).map(e=>({label:B[e]||(0,a.u2)(e),value:e})).toSorted((e,t)=>e.label.localeCompare(t.label));d(r)}catch{}},[t]);return(0,s.useEffect)(()=>d(null),[t]),(0,O.Y)("div",{style:{display:"flex"},children:h===Ui?(0,O.FD)(D.A,{raised:!0,className:"filter-chip-button",size:"sm",onClick:()=>f("INPUT"),children:[(0,O.Y)("i",{className:"icon icon-filter-white"}),"Add Filter"]}):(0,O.Y)("div",{className:"sf__autocomplete-container",children:(0,O.Y)(Me.A,{focusOnInit:!0,className:"sf__autocomplete",options:p,placeholder:"Search",onClose:()=>f(Ui),onLoadOptions:m,onSelect:e})})})}function Xi({children:e,className:t,onPinFilter:n=()=>null,onRemoveFilter:i=()=>null,selectedFilter:o}){const[a,l]=(0,s.useState)(!1),c=(0,s.useRef)();return(0,O.FD)(vi.A,{children:[(0,O.Y)("div",{ref:c,className:r()(t,"filter-chip"),children:e({open:a,setOpen:l})}),a?(0,O.Y)(Ai,{ref:c,open:a,selectedFilter:o,onClose:()=>l(!1),onPinFilter:()=>{n(),l(!1)},onRemoveFilter:()=>{i(),l(!1)},onSave:()=>l(!1)}):null]})}function Zi({color:e,disabled:t,handlePinFilter:n,handleRemoveFilterGroup:i,nestedValue:s,onChipClick:o,remove:l,selectedFilter:c,type:u,value:d}){return(0,O.Y)(Xi,{className:r()("selected-chip",{"disabled-chip":t}),selectedFilter:c,onPinFilter:n,onRemoveFilter:i,children:({setOpen:n})=>(0,O.FD)(O.FK,{children:[(0,O.Y)(Vi,{type:u}),(0,O.FD)("div",{className:"sk-filter-group-items__container",children:[(0,O.FD)(D.A,{className:"filter-chip-button",disabled:t,size:"sm",onClick:()=>{o({label:B[u]||(0,a.u2)(u),type:d,value:u}),n(!0)},children:[(0,O.FD)("div",{className:r()("sk-filter-group-items__content",{"text-capitalize":"order"===u}),children:["boolean"==typeof d?"Enabled":null,(0,O.Y)(Wi,{value:d})]}),e?(0,O.Y)("div",{className:"sf-chip-color",style:{backgroundColor:e},children:s}):null]}),(0,O.Y)(D.A,{size:"sm",onClick:()=>{(0,K.s)("search_filter_remove",{name:u,value:d}),l()},children:(0,O.Y)("i",{className:"icon close-icon"})})]})]})})}function er({prefix:e,suffix:t,type:n}){if("namespace"===n){const e=R.A.NAMESPACE.get()||"en",t=R.A.NAMESPACE_LABEL.get();return(0,Fe.Ub)(e,t)}return(0,O.FD)(O.FK,{children:[e,B[n]||(0,a.u2)(n),t]})}function tr({handlePinFilter:e,onChipClick:t,selectedFilter:n,type:i,withLabel:s=!1}){return(0,O.Y)(Xi,{className:r()("default-chip",`${i}-chip`),selectedFilter:n,onPinFilter:e,children:({setOpen:e})=>(0,O.FD)(O.FK,{children:[s&&(0,O.Y)(Vi,{type:i}),(0,O.Y)("div",{...s?{className:"sk-filter-group-items__container"}:{},children:(0,O.Y)("span",{"aria-label":`Add ${B[i]||(0,a.u2)(i)} filter`,className:"tooltip-bottom",role:"tooltip",style:{lineHeight:"1.3"},children:(0,O.Y)(D.A,{className:"filter-chip-button","data-trigger-paywall-id":"vector"===i?Ri.rP:void 0,size:"sm",onClick:()=>{t({label:B[i]||(0,a.u2)(i),type:i,value:i}),e(!0)},children:(0,O.Y)("div",{className:"sk-filter-group-items__content",children:(0,O.Y)(er,{prefix:(0,O.Y)("i",{className:r()("icon","vector"===i?"icon-clause-finder":"icon-default-filter")}),suffix:"vector"===i&&(0,O.Y)(Pe.A,{}),type:i})})})})})]})})}function nr({defaultFilters:e=[],handlePinFilter:t,handleRemoveFilterGroup:n,namespaceRelated:i,onChipClick:r,selectedFilter:a}){const{queryState:l,setQueryState:c}=(0,s.useContext)(L.Ay),{p:u,q:d,tab:h,[H.Pj]:f,...p}=l,m=(0,s.useMemo)(()=>Gi(p,c,l).filter(e=>i?e.type===o.$Y:e.type!==o.$Y),[p,c,l,i]);return(0,O.FD)(O.FK,{children:[m.map(e=>(0,O.Y)(Zi,{handlePinFilter:t,handleRemoveFilterGroup:n,selectedFilter:a,onChipClick:r,...e},`${e?.type}_${e?.value}`)),e.map(e=>m.some(t=>t.type===e)?null:(0,O.Y)(tr,{handlePinFilter:t,selectedFilter:a,type:e,withLabel:e===o.$Y,onChipClick:r},e))]})}function ir(){const{queryState:e,setQueryState:t,setSuggestedFilters:n,suggestedFilters:i,suggestedFiltersLoading:o}=(0,s.useContext)(L.Ay),{p:a,q:l,tab:c,...u}
2=e,[d,h]=(0,s.useState)(null),[f,p]=(0,s.useState)(!1),m=Object.keys(u),g=e=>{const{value:t}=e;(0,K.s)("search_filter",{name:t}),(0,K.s)("search_filter_select",{name:t}),h(e)},y=(0,s.useCallback)(()=>{if(d){const{value:e}=d;if(!L.u8.includes(e)){const t=R.A.DEFAULT_FILTERS.get(),n=t.indexOf(e);-1===n?((0,K.s)("search_filter_pin",{name:e}),t.push(e)):((0,K.s)("search_filter_unpin",{name:e}),t.splice(n,1)),R.A.DEFAULT_FILTERS.set(t)}h(null)}},[d]),b=()=>{(0,K.s)("search_filter_remove",{name:d?.value}),t({[d?.value]:void 0})},v=(0,s.useMemo)(()=>{const{q:n,...r}=i||{};return Gi(r,t,e)},[i,t,e]),E=Object.keys(v).length>0;return(0,O.FD)("div",{className:"reset-filter-container search-content",children:[(0,O.Y)(nr,{namespaceRelated:!0,defaultFilters:_()(S(),L.HA),handlePinFilter:y,handleRemoveFilterGroup:b,selectedFilter:d,onChipClick:g}),(0,O.FD)(vi.A,{className:"sf-dropdown",children:[(0,O.Y)(Ji,{onFilterClick:e=>{g(e),p(!0)}}),f?(0,O.Y)(Ai,{open:f,selectedFilter:d,onClose:()=>p(!1),onPinFilter:()=>{y(),p(!1)},onRemoveFilter:()=>{b(),p(!1)},onSave:()=>p(!1)}):null]}),(0,O.Y)(nr,{defaultFilters:[].concat(_()(S(),L.eg),_()(S(),R.A.DEFAULT_FILTERS.get())),handlePinFilter:y,handleRemoveFilterGroup:b,selectedFilter:d,onChipClick:g}),m.length>1&&(0,O.Y)(D.A,{className:"filter-chip-button",size:"sm",onClick:()=>{(0,K.s)("search_filter_remove",{name:"all"}),t({q:e.q,resetState:!0})},children:"Reset Filters"}),(0,O.Y)("div",{className:"filters-group-right",children:(0,O.Y)(Fi,{})}),R.A.SHOW_AI_SEARCH_FILTER_SUGGESTIONS.get()&&(0,O.Y)("div",{className:"full-width row-flex",children:(0,O.FD)("div",{className:r()("row-flex suggested-filters-container",{"suggested-filters-container--blue":E}),children:[E?(0,O.FD)(O.FK,{children:[(0,O.Y)("div",{className:"row-flex suggested-filters-chips",children:v.map(e=>(0,O.Y)(Qi,{type:e.type,value:e.value},`${e?.type}_${e?.value}`))}),(0,O.Y)(D.A,{size:"sm",onClick:()=>{(0,K.s)("search_ai_suggestion_apply",{query:e.q,suggestedFilters:JSON.stringify(i)}),t(i),n(null)},children:"Apply All"})]}):(0,O.FD)("div",{className:"suggested-chip suggested-chip-label",children:["AI filter suggestions"," ",(0,O.Y)("span",{"aria-label":'You can use natural language in the main search box to describe what you are looking for. Our AI will pick up keywords from your query and suggest filters here. Example: "California governing law clause" will suggest both jurisdiction and clause type as a filter.',className:"tooltip-flat tooltip-flat-md tooltip-top",role:"tooltip",children:(0,O.Y)("span",{className:"icon icon-helper icon--right"})})]}),o&&(0,O.Y)("div",{className:"spinning-loader",style:{height:"25px",width:"25px"}})]})})]})}const rr=["$all",o.B2,"clause",o.Gd,o.Ff,o.$w,o.S9,o.Gz],sr=e=>B[e]||(0,a.u2)(e,!0),or=(0,s.lazy)(()=>n.e(1854).then(n.bind(n,3710))),ar=(e,t)=>[(0,u.iY)("/search"),(0,u.XT)({...e,tab:"$all"===t?void 0:t})].join("?");function lr({active:e,onClick:t,tabKey:n}){const{queryState:i}=(0,s.useContext)(L.Ay);return(0,O.Y)(U.A,{className:r()("sk-tabs__item btn-sm",{"is-active":e}),href:ar(i,n),onNavigate:t,children:sr(n)})}function cr({id:e,mobile:t}){const{activeTab:n,setQueryState:i}
2=(0,s.useContext)(L.Ay),[r,o]=(0,s.useState)(!1),[a,l]=(0,s.useState)(null),c=(0,s.useCallback)(t=>{n!==t&&((0,K.s)("search_tabs",{name:t}),(0,K.s)("search_filter",{name:e,value:t}),i({tab:"$all"===t?void 0:t}))},[n,e,i]),u=t?1:5,d=rr.slice(0,u),h=rr.slice(u);return(0,s.useEffect)(()=>{h.includes(n)&&l(n)},[n,h,l]),(0,O.FD)("div",{className:"sk-tabs",children:[d.map(e=>(0,O.Y)(lr,{active:n===e,tabKey:e,onClick:()=>{c(e),"$all"===e&&l(null)}},e)),a&&(0,O.Y)(lr,{active:n===a,tabKey:a,onClick:()=>c(a)}),(0,O.FD)(vi.A,{className:"sk-tabs__more",children:[(0,O.FD)(D.A,{className:"sk-tabs__more__btn sk-tabs__item btn-sm",style:{paddingLeft:"1rem",paddingRight:"1rem"},onClick:()=>o(e=>!e),children:["More ",(0,O.Y)("i",{className:"icon icon--xs icon-down"})]}),(0,O.Y)(qe.A,{MenuComponent:or,open:r,prepareTabHref:ar,prepareTabLabel:sr,setOpen:o,setSelectedMoreTab:l,tabs:h,toggleFilter:c,onClose:()=>o(!1)})]})]})}var ur=n(3309),dr=n(3843),hr=n(1831);function fr(){const{loading:e,results:t}=(0,s.useContext)(L.Ay),n=t?.hits?.total||0,i=n?(0,O.FD)(O.FK,{children:[n," results found in ",t?.took,"ms",(0,O.Y)("span",{children:t?.timed_out&&(0,O.Y)("b",{children:" after timeout"})}),(0,O.Y)("span",{children:t?.from_cache&&(0,O.Y)("i",{children:" from cache"})})]}):"No results";return(0,O.Y)("div",{className:"sk-hits-stats",children:(0,O.Y)("div",{className:"sk-hits-stats__info",children:e?"Loading...":i})})}function pr({tags:e=[]}){const{queryState:t,results:n,setQueryState:i}=(0,s.useContext)(L.Ay),{q:l,tab:d}=t;if(Object.keys(t).some(e=>!["q","tab","p"].includes(e)))return null;const h=!d,f=[];for(const p of e){const e=n?.aggregations?.[p]?.inner?.buckets.filter(({key:e})=>!Object.prototype.hasOwnProperty.call(t?.[p]||{},e));e?.length&&f.push((0,O.FD)(s.Fragment,{children:[h&&(0,O.Y)("h6",{style:{marginTop:0},children:(0,a.u2)(p,!0)}),(0,O.FD)("ul",{className:r()("list-unstyled list-columns sk-tags-list",{"sk-tags-list--truncated":!d}),children:[e.map(({key:e,namespace:n})=>{const r={order:"common",p:void 0,tab:(0,L.isSection)(p)?p:o.B2,[p]:{[e]:""}},s=n?n?.namespace?.buckets.filter(e=>(0,c.Gi)(e.key)).map(e=>e.key):[];return(0,O.Y)("li",{children:(0,O.FD)(U.A,{className:"btn-link text-left",href:[(0,u.iY)("/search"),(0,u.XT)({...t,...r})].join("?"),onClick:e=>{e.preventDefault(),i(r)},children:[s.length>0&&(0,O.Y)(X,{xs:!0,library:s.join(", ")}),(0,O.Y)("span",{dangerouslySetInnerHTML:{__html:(0,a.SY)(e,l)}})]})},e)}),p!==d&&(0,O.Y)("li",{children:(0,O.FD)(U.A,{className:"btn-link",href:[(0,u.iY)("/search"),(0,u.XT)({...t,p:void 0,tab:p})].join("?"),onClick:e=>{e.preventDefault(),i({p:void 0,tab:p})},children:[(0,O.Y)("i",{className:"icon icon-search"})," Search"," ",(0,a.u2)(p,!0)]})})]})]},p))}return f.length>0?(0,O.FD)(O.FK,{children:[f,h&&(0,O.Y)("h6",{children:"Contracts"})]}):null}function mr(){const{queryState:{p:e=1},results:t}=(0,s.useContext)(L.Ay),{isMSWord:n}=(0,s.useContext)(f.A),i=t?.hits?.hits||[];if(0===i.length)return null;const r=10*(e-1);for(const[e,t]of i.entries())t._position=e+1+r;return(0,O.Y)(Bi,{children:i.map(e=>(0,O.FD)(Hi,{result:e,children:[2===e._position&&!n&&(0,O.Y)(h.A,{children:(0,O.Y)("div",{className:"full-width margin-top-20",children:(0,O.Y)(d.A,{})})}),(0,O.Y)(we,{result:e})]},e._position))})}const gr=(0,s.lazy)(()=>n.e(1461).then(n.bind(n,2222)));function yr(){const[e,t]=(0,s.useState)(!1);return R.A.SHOW_SEARCH_CURL_BUTTON.get()?(0,O.FD)("div",{className:"sk-api-link",children:[(0,O.Y)(D.A,{className:"btn-link-underline color-white",size:"sm",title:"Get Search Results via API",onClick:()=>{t(!0)},children:"API"}),e&&(0,O.Y)(gr,{open:e,onClose:()=>t(!1)})]}):null}function br(){const{isMSWord:e}=(0,s.useContext)(f.A);return(0,s.useEffect)(()=>{if(!e)return(0,l.fv)(document,"click",e=>{const t=e.target?.closest?.(".sk-hits-list-hit__title"),n=["clause","nested-clause"].includes(t?.closest?.(o.Q2)?.dataset?.sourceType),[i,r,s,a]=n?[ur.VO.SEARCH_CLICKS_FREE_CLAUSE,ur.VO.SEARCH_CLICKS_NOT_REGISTERED_CLAUSE,ur.cD.SEARCH_CLICKS_FREE_CLAUSE,ur.cD.SEARCH_CLICKS_NOT_REGISTERED_CLAUSE]:[ur.VO.SEARCH_CLICKS_FREE,ur.VO.SEARCH_CLICKS_NOT_REGISTERED,ur.cD.SEARCH_CLICKS_FREE,ur.cD.SEARCH_CLICKS_NOT_REGISTERED],l=(0,G.h2)();if(t){const t={[o.rZ.NON_REGISTERED]:r,[o.rZ.FREE]:i}[l],n={[o.rZ.NON_REGISTERED]:a,[o.rZ.FREE]:s}[l];t&&(0,hr.T5)({key:n,onThreshold(){(0,hr.Ob)({key:t,onThreshold(){e.preventDefault(),(0,p.Dh)({action:dr.Jw.EXCEED,details:{counterKey:n},showView:!0,source:dr.YH.SEARCH_CLICK,view:(0,hr.PC)()})}})}})}})},[e]),(0,O.Y)(m.A,{children:(0,O.FD)(L.HG,{children:[(0,O.Y)("div",{className:"sk-header",children:(0,O.FD)("div",{className:"sk-header__inner",children:[(0,O.Y)(Ye,{}),(0,O.FD)("div",{className:"sk-action-bar",children:[(0,O.Y)("div",{className:"hidden-xs",children:(0,O.Y)(cr,{id:"_index"})}),(0,O.Y)("div",{className:"hidden-sm hidden-md hidden-lg",children:(0,O.Y)(cr,{mobile:!0,id:"_index"})})]}),(0,O.Y)(yr,{})]})}),(0,O.FD)("div",{className:"search-content-container",children:[(0,O.Y)("div",{className:"filters-wrapper",children:(0,O.Y)(ir,{})}),(0,O.FD)("div",{className:"sk-results-list",children:[(0,O.Y)(pr,{tags:[o.Ff,"clause",o.Gd,o.$w,o.S9,o.Gz]}),(0,O.FD)("div",{className:"sk-results-list__inner",children:[(0,O.Y)(mr,{}),(0,O.Y)(Ne,{})]}),(0,O.Y)("div",{className:"sk-results-summary hidden-sm hidden-xs text-center",children:(0,O.Y)(fr,{})}),(0,O.Y)(Te,{})]})]})]})})}br.selector=o.yD.SEARCH},8343(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(4929),r=n(3544),s=n(7399);const o={},a={},l=e=>Object.keys(e).reduce((t,n)=>(null!==e[n]&&void 0!==e[n]&&(t[n]=e[n]),t),{});
2async function c(e,{aggregationQueryBuilderKey:t,field:n,groupIdCount:c,key:u="search",prefixFilter:d,queryType:h}={}){const f=(0,r.bf)(e),p=l({search_explain:s.A.SEARCH_EXPLAIN.get(),search_prefix_query_field:s.A.SEARCH_PREFIX_QUERY_FIELDS.get(),search_profile:s.A.SEARCH_PROFILE.get(),search_query_field:s.A.SEARCH_QUERY_FIELDS.get()}),m=l({aggregation_query_builder_key:t,field:n,group_id_count:JSON.stringify(c),optional_params:Object.keys(p).length>0?JSON.stringify(p):null,prefix_filter:d,query:JSON.stringify(f),query_type:h,version:4}),g=(0,i.Ws)(m);if(a[g])return a[g];"AbortController"in window&&(o[u]?.abort(),o[u]=new AbortController);const y=async function({key:e,paramsStringified:t}){try{const n=await fetch([(0,r.iY)("/api/search"),t].join("?"),{method:"GET",signal:"AbortController"in window?o[e]?.signal:void 0}),i=await n.text();if(!n.ok){const{status:e}=n;throw new Error(`Search response with ${e} status code. ${i}`)}try{return JSON.parse(i)}catch(e){throw new Error(`Search response with invalid JSON: ${i.slice(0,32)}\n${e}`)}}finally{delete a[t]}}({key:u,paramsStringified:g});return a[g]=y,y}},7033(e,t,n){"use strict";n.d(t,{Fq:()=>l,Ub:()=>c,lJ:()=>a});var i=n(1774),r=n(7071),s=n(1917);const o=new i.A("__namespace_cache","v0",1);async function a(){const e=await fetch("/api/namespaces",{credentials:"same-origin",method:"GET"});return e.ok?e.json():((0,r.xE)("Failed to fetch namespaces from server. Please try again later."),!1)}async function l(){const e=await a(),t=e?.private||{},n=e?.public||{};o.set("namespaces",{...t,...n})}function c(e,t=""){const n=o.get("namespaces")||{};return`${t||n[e]?.label||e}${(0,s.Gi)(e)||(0,s.GQ)(e)?"":` (${e.toUpperCase()})`}`}n.d(t,["w",0,o])},7065(e,t,n){"use strict";n.d(t,{A:()=>_});var i=n(9698),r=n(9869),s=n(6540),o=n(1635),a=n(1468),l={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},c={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},u={ANIM_END_LATCH_MS:250},d=function(e){function t(n){var i=e.call(this,(0,o.Cl)((0,o.Cl)({},t.defaultAdapter),n))||this;return i.currentCheckState=c.TRANSITION_STATE_INIT,i.currentAnimationClass="",i.animEndLatchTimer=0,i.enableAnimationEndHandler=!1,i}return(0,o.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.currentCheckState=this.determineCheckState(),this.updateAriaChecked(),this.adapter.addClass(l.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(l.DISABLED):this.adapter.removeClass(l.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass),e.enableAnimationEndHandler=!1},u.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState()},t.prototype.transitionCheckState=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState,t=this.determineCheckState();if(e!==t){this.updateAriaChecked();var n=l.SELECTED;t===c.TRANSITION_STATE_UNCHECKED?this.adapter.removeClass(n):this.adapter.addClass(n),this.currentAnimationClass.length>0&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(e,t),this.currentCheckState=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass.length>0&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},t.prototype.determineCheckState=function(){var e=c.TRANSITION_STATE_INDETERMINATE,t=c.TRANSITION_STATE_CHECKED,n=c.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass=function(e,n){var i=c.TRANSITION_STATE_INIT,r=c.TRANSITION_STATE_CHECKED,s=c.TRANSITION_STATE_UNCHECKED,o=t.cssClasse
2s,a=o.ANIM_UNCHECKED_CHECKED,l=o.ANIM_UNCHECKED_INDETERMINATE,u=o.ANIM_CHECKED_UNCHECKED,d=o.ANIM_CHECKED_INDETERMINATE,h=o.ANIM_INDETERMINATE_CHECKED,f=o.ANIM_INDETERMINATE_UNCHECKED;switch(e){case i:return n===s?"":n===r?h:f;case s:return n===r?a:l;case r:return n===s?u:d;default:return n===r?h:f}},t.prototype.updateAriaChecked=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(c.ARIA_CHECKED_ATTR,c.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(c.ARIA_CHECKED_ATTR)},t}(a.I),h=n(9376),f=n(3189),p=n(3725);d.prototype.installPropertyChangeHooks_=()=>{};const m=(0,h.a0)(function(e,t){const{renderToggle:n,id:s,toggleRootProps:o,rootEl:a,checkboxEl:l}=(e=>{const t=(0,h.Bi)("checkbox",e),{renderToggle:n,toggleRootProps:i,id:s}=(0,p.T)({...e,id:t}),{foundation:o,...a}=(0,h.P5)({props:e,elements:{rootEl:!0,checkboxEl:!0},foundation:({rootEl:e,checkboxEl:t,getProps:n})=>new d({addClass:t=>e.addClass(t),removeClass:t=>e.removeClass(t),setNativeControlAttr:(e,n)=>t.setProp(e,n),removeNativeControlAttr:e=>t.removeProp(e),isIndeterminate:()=>!!n().indeterminate,isChecked:()=>{var e;return void 0!==n().checked?!!n().checked:!(null==(e=t.ref)||!e.checked)},hasNativeControl:()=>!!t.ref,setNativeControlDisabled:e=>t.setProp("disabled",e),forceLayout:()=>{var t;return null==(t=e.ref)?void 0:t.offsetWidth},isAttachedToDOM:()=>!0})}),{rootEl:l,checkboxEl:c}=a,u=(0,r.useCallback)(()=>{c.ref&&(c.ref.indeterminate=!!e.indeterminate),window.requestAnimationFrame(()=>{o.handleChange()})},[e.indeterminate,o,c.ref]);return(0,r.useEffect)(()=>{u()},[u]),l.setProp("onAnimationEnd",t=>{var n;null==(n=e.onAnimationEnd)||n.call(e,t),o.handleAnimationEnd()},!0),c.setProp("onChange",t=>{var n;null==(n=e.onChange)||n.call(e,t),u()},!0),{foundation:o,renderToggle:n,toggleRootProps:i,id:s,...a}})(e),{children:c,className:u,label:f,style:m,indeterminate:_,inputRef:v,foundationRef:S,...E}=e;return n((0,i.FD)(g,{...a.props({checked:E.checked,indeterminate:_,...o}),ref:(0,h.Px)(a.reactRef,t),children:[(0,i.Y)("input",{...l.props({...E,className:"mdc-checkbox__native-control"}),type:"checkbox",ref:(0,h.Px)(l.reactRef,v,t),id:s}),(0,i.Y)(b,{}),(0,i.Y)(y,{})]}))}),g=(0,f.zu)({surface:!1,unbounded:!0})(s.forwardRef(function(e,t){const n=(0,r.useContext)(h.YO),s=(0,r.useContext)(h.ag),{disabled:o,checked:a,indeterminate:l,...c}=e,u=(0,h.UP)(e,["mdc-checkbox",{"mdc-data-table__row-checkbox":n&&!s,"mdc-data-table__header-row-checkbox":s,"mdc-checkbox--disabled":o,"mdc-checkbox--selected":a||l}]);return(0,i.Y)(h.vw,{...c,className:u,ref:t})})),y=s.memo(function(){return(0,i.Y)("div",{className:"mdc-checkbox__ripple"})}),b=s.memo(()=>(0,i.FD)("div",{className:"mdc-checkbox__background",children:[(0,i.Y)("svg",{className:"mdc-checkbox__checkmark",viewBox:"0 0 24 24",children:(0,i.Y)("path",{className:"mdc-checkbox__checkmark-path",fill:"none",stroke:"white",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})}),(0,i.Y)("div",{className:"mdc-checkbox__mixedmark"})]})),_=m},5554(e,t,n){"use strict";var i=n(25);const r=(0,n(0).A)(i.W1);n.d(t,["A",0,r])},7224(e,t,n){"use strict";var i=n(25),r=n(9869),s=n(9698);function o({disabled:e=!1,...t},n){return(0,s.Y)(i.Dr,{...t,ref:n,disabled:e||void 0})}const a=(0,r.forwardRef)(o);n.d(t,["A",0,a])},2857(e,t,n){"use strict";var i=n(25);const r=(0,n(0).A)(i.XN);n.d(t,["A",0,r])},2970(e,t,n){"use strict";n.d(t,{A:()=>S});var i,r,s=n(9698),o=n(6540),a=n(9869),l=n(9376),c=n(3725),u=n(1635),d=n(1468),h=new WeakMap,f=function(e){function t(t){var n=e.call(this,t)||this;return n.unobserves=new Set,n}return(0,u.C6)(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.unobserve()},t.prototype.observe=function(e,t){var n,i,r=this,s=[];try{for(var o=(0,u.Ju)(Object.keys(t)),a=o.next();!a.done;a=o.next()){var l=a.value,c=t[l].bind(this);s.push(this.observeProperty(e,l,c))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}var d=function(){var e,t;try{for(var n=(0,u.Ju)(s),i=n.next();!i.done;i=n.next())(0,i.value)()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}
2r.unobserves.delete(d)};return this.unobserves.add(d),d},t.prototype.observeProperty=function(e,t,n){return function(e,t,n){var i=function(e,t){var n=new Map;h.has(e)||h.set(e,{isEnabled:!0,getObservers:function(e){var t=n.get(e)||[];return n.has(e)||n.set(e,t),t},installedProperties:new Set});var i=h.get(e);if(i.installedProperties.has(t))return i;var r=function(e,t){for(var n,i=e;i&&!(n=Object.getOwnPropertyDescriptor(i,t));)i=Object.getPrototypeOf(i);return n}(e,t)||{configurable:!0,enumerable:!0,value:e[t],writable:!0},s=(0,u.Cl)({},r),o=r.get,a=r.set;if("value"in r){delete s.value,delete s.writable;var l=r.value;o=function(){return l},r.writable&&(a=function(e){l=e})}return o&&(s.get=function(){return o.call(this)}),a&&(s.set=function(e){var n,r,s=o?o.call(this):e;if(a.call(this,e),i.isEnabled&&(!o||e!==s))try{for(var l=(0,u.Ju)(i.getObservers(t)),c=l.next();!c.done;c=l.next())(0,c.value)(e,s)}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}),i.installedProperties.add(t),Object.defineProperty(e,t,s),i}(e,t),r=i.getObservers(t);return r.push(n),function(){r.splice(r.indexOf(n),1)}}(e,t,n)},t.prototype.setObserversEnabled=function(e,t){!function(e,t){var n=h.get(e);n&&(n.isEnabled=t)}(e,t)},t.prototype.unobserve=function(){var e,t;try{for(var n=(0,u.Ju)((0,u.fX)([],(0,u.zs)(this.unobserves))),i=n.next();!i.done;i=n.next())(0,i.value)()}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(d.I);!function(e){e.PROCESSING="mdc-switch--processing",e.SELECTED="mdc-switch--selected",e.UNSELECTED="mdc-switch--unselected"}(i||(i={})),function(e){e.RIPPLE=".mdc-switch__ripple"}(r||(r={}));var p=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=n.handleClick.bind(n),n}return(0,u.C6)(t,e),t.prototype.init=function(){this.observe(this.adapter.state,{disabled:this.stopProcessingIfDisabled,processing:this.stopProcessingIfDisabled})},t.prototype.handleClick=function(){this.adapter.state.disabled||(this.adapter.state.selected=!this.adapter.state.selected)},t.prototype.stopProcessingIfDisabled=function(){this.adapter.state.disabled&&(this.adapter.state.processing=!1)},t}(f);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}(0,u.C6)(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.observe(this.adapter.state,{disabled:this.onDisabledChange,processing:this.onProcessingChange,selected:this.onSelectedChange})},t.prototype.initFromDOM=function(){this.setObserversEnabled(this.adapter.state,!1),this.adapter.state.selected=this.adapter.hasClass(i.SELECTED),this.onSelectedChange(),this.adapter.state.disabled=this.adapter.isDisabled(),this.adapter.state.processing=this.adapter.hasClass(i.PROCESSING),this.setObserversEnabled(this.adapter.state,!0),this.stopProcessingIfDisabled()},t.prototype.onDisabledChange=function(){this.adapter.setDisabled(this.adapter.state.disabled)},t.prototype.onProcessingChange=function(){this.toggleClass(this.adapter.state.processing,i.PROCESSING)},t.prototype.onSelectedChange=function(){this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,i.SELECTED),this.toggleClass(!this.adapter.state.selected,i.UNSELECTED)},t.prototype.toggleClass=function(e,t){e?this.adapter.addClass(t):this.adapter.removeClass(t)}}(p);const m=(0,l.a0)(function(e,t){const{renderToggle:n,id:i,toggleRootProps:r,rootEl:u,selected:d}=(e=>{const{renderToggle:t,toggleRootProps:n,id:i}=(0,c.T)(e),[r,s]=o.useState(!1),[u,d]=o.useState(!1),[h,f]=o.useState(!1),{foundation:m,...g}=(0,l.P5)({props:e,elements:{rootEl:!0},foundation:({rootEl:t})=>new p({addClass:e=>t.addClass(e),hasClass:e=>t.hasClass(e),isDisabled:()=>e.disabled,removeClass:e=>t.removeClass(e),setAriaChecked:e=>{var n;return null==(n=t.ref)?void 0:n.setAttribute("aria-checked",e)},setDisabled:e=>{t.setProp("disabled",e)},state:{disabled:r,processing:u,selected:h}})}),{rootEl:y}=g;return(0,a.useEffect)(()=>{void 0!==e.checked&&f(e.checked)},[e.checked]),(0,a.useEffect)(()=>{void 0!==e.defaultChecked&&f(e.defaultChecked)},[e.defaultChecked]),(0,a.useEffect)(()=>{void 0!==e.disabled&&s(e.disabled)},[e.disabled]),(0,a.useEffect)(()=>{void 0!==e.processing&&d(e.processing)},[e.processing]),y.setProp("onClick",t=>{var n;f(e=>!e),null==(n=e.onClick)||n.call(e,t),y.setProp("checked",h),m.handleClick()},!0),{foundation:m,renderToggle:t,toggleRootProps:n,id:i,disabled:r,selected:h,processing:u,...g}})(e),{children:h,className:f,disabled:m,label:v,...S}=e,E=(0,l.UP)(r,["mdc-switch",{"mdc-switch--unselected":!d,"mdc-switch--selected":d}]);return n((0,s.FD)(l.vw,{...u.props({...r,className:E}),ref:(0,l.Px)(u.reactRef,t),disabled:m,tag:"button",type:"button",role:"switch","aria-checked":d??S["aria-checked"],"aria-label":v,id:i,element:u,...S,children:[(0,s.Y)(g,{}),(0,s.FD)(y,{children:[(0,s.Y)("div",{className:"mdc-switch__shadow",children:(0,s.Y)("div",{className:"mdc-elevation-overlay"})}),(0,s.Y)(_,{}),(0,s.Y)(b,{})]}),(0,s.Y)("span",{className:"mdc-switch__focus-ring-wrapper",children:(0,s.Y)("div",{className:"mdc-switch__focus-ring"})})]}))}),g=o.memo(function(){return(0,s.Y)("div",{className:"mdc-switch__track"})}),y=o.memo(function({children:e}){return(0,s.Y)("div",{className:"mdc-switch__handle-track",children:(0,s.Y)("div",{className:"mdc-switch__handle",children:e})})}),b=o.memo(function(){return(0,s.FD)("div",{className:"mdc-switch__icons",children:[(0,s.Y)("svg",{className:"mdc-switch__icon mdc-switch__icon--on",viewBox:"0 0 24 24",children:(0,s.Y)("path",{d:"M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"})}),(0,s.Y)("svg",{className:"mdc-switch__icon mdc-switch__icon--off",viewBox:"0 0 24 24",children:(0,s.Y)("path",{d:"M20 13H4v-2h16v2z"})})]})}),_=o.memo(function(){return(0,s.Y)("div",{className:"mdc-switch__ripple"})});function v({onChange:e,onClick:t,...n},i){return(0,s.Y)(m,{...n,ref:i,onClick:n=>{if(t?.(n),e){const{target:t}=n;t.checked="true"!==n.currentTarget.getAttribute("aria-checked"),e(n)}}})}const S=(0,a.forwardRef)(v)},0(e,t,n){"use strict";n.d(t,{A:()=>
2o});var i=n(9869),r=n(9698);const s=(0,i.forwardRef)(({style:e,surfaceTag:t="div",...n},i)=>(0,r.Y)(t,{...n,ref:i,style:{...e,maxHeight:`min(${e?.maxHeight||"100vh"}, var(--menu-max-height, 100vh))`}}));function o(e){return(0,i.forwardRef)(({open:t,style:n,tag:i,...o},a)=>{const{maxHeight:l,...c}=n||{},u="number"==typeof l?`${l}px`:l;return(0,r.Y)(e,{...o,ref:a,"data-menu-open":t||void 0,open:t,style:{...c,"--menu-max-height":"none"===u?void 0:u},surfaceTag:i,tag:s})})}},4086(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(1258),r=n(7421),s=n(9698);function o(){return(0,s.Y)(i.x,{Component:r.A})}},2189(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,i,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=r;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===i&&(i=!0);var o=i,a=this.diff_commonPrefix(e,n),l=e.substring(0,a);e=e.substring(a),n=n.substring(a),a=this.diff_commonSuffix(e,n);var c=e.substring(e.length-a);e=e.substring(0,e.length-a),n=n.substring(0,n.length-a);var u=this.diff_compute_(e,n,o,s);return l&&u.unshift(new t.Diff(0,l)),c&&u.push(new t.Diff(0,c)),this.diff_cleanupMerge(u),u},t.prototype.diff_compute_=function(e,i,r,s){var o;if(!e)return[new t.Diff(1,i)];if(!i)return[new t.Diff(n,e)];var a=e.length>i.length?e:i,l=e.length>i.length?i:e,c=a.indexOf(l);if(-1!=c)return o=[new t.Diff(1,a.substring(0,c)),new t.Diff(0,l),new t.Diff(1,a.substring(c+l.length))],e.length>i.length&&(o[0][0]=o[2][0]=n),o;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,i)];var u=this.diff_halfMatch_(e,i);if(u){var d=u[0],h=u[1],f=u[2],p=u[3],m=u[4],g=this.diff_main(d,f,r,s),y=this.diff_main(h,p,r,s);return g.concat([new t.Diff(0,m)],y)}return r&&e.length>100&&i.length>100?this.diff_lineMode_(e,i,s):this.diff_bisect_(e,i,s)},t.prototype.diff_lineMode_=function(e,i,r){var s=this.diff_linesToChars_(e,i);e=s.chars1,i=s.chars2;var o=s.lineArray,a=this.diff_main(e,i,!1,r);this.diff_charsToLines_(a,o),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,c=0,u=0,d="",h="";l<a.length;){switch(a[l][0]){case 1:u++,h+=a[l][1];break;case n:c++,d+=a[l][1];break;case 0:if(c>=1&&u>=1){a.splice(l-c-u,c+u),l=l-c-u;for(var f=this.diff_main(d,h,!1,r),p=f.length-1;p>=0;p--)a.splice(l,0,f[p]);l+=f.length}u=0,c=0,d="",h=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(e,i,r){for(var s=e.length,o=i.length,a=Math.ceil((s+o)/2),l=a,c=2*a,u=new Array(c),d=new Array(c),h=0;h<c;h++)u[h]=-1,d[h]=-1;u[l+1]=0,d[l+1]=0;for(var f=s-o,p=f%2!=0,m=0,g=0,y=0,b=0,_=0;_<a&&!((new Date).getTime()>r);_++){for(var v=-_+m;v<=_-g;v+=2){for(var S=l+v,E=(N=v==-_||v!=_&&u[S-1]<u[S+1]?u[S+1]:u[S-1]+1)-v;N<s&&E<o&&e.charAt(N)==i.charAt(E);)N++,E++;if(u[S]=N,N>s)g+=2;else if(E>o)m+=2;else if(p&&(w=l+f-v)>=0&&w<c&&-1!=d[w]&&N>=(A=s-d[w]))return this.diff_bisectSplit_(e,i,N,E,r)}for(var C=-_+y;C<=_-b;C+=2){for(var A,w=l+C,x=(A=C==-_||C!=_&&d[w-1]<d[w+1]?d[w+1]:d[w-1]+1)-C;A<s&&x<o&&e.charAt(s-A-1)==i.charAt(o-x-1);)A++,x++;if(d[w]=A,A>s)b+=2;else if(x>o)y+=2;else if(!p){var N;if((S=l+f-C)>=0&&S<c&&-1!=u[S]&&(E=l+(N=u[S])-S,N>=(A=s-A)))return this.diff_bisectSplit_(e,i,N,E,r)}}}return[new t.Diff(n,e),new t.Diff(1,i)]},t.prototype.diff_bisectSplit_=function(e,t,n,i,r){var s=e.substring(0,n),o=t.substring(0,i),a=e.substring(n),l=t.substring(i),c=this.diff_main(s,o,!1,r),u=this.diff_main(a,l,!1,r);return c.concat(u)},t.prototype.diff_linesToChars_=function(e,t){var n=[],i={};function r(e){for(var t="",r=0,o=-1,a=n.length;o<e.length-1;){-1==(o=e.indexOf("\n",r))&&(o=e.length-1);var l=e.substring(r,o+1);(i.hasOwnProperty?i.hasOwnProperty(l):void 0!==i[l])?t+=String.fromCharCode(i[l]):(a==s&&(l=e.substring(r),o=e.length),t+=String.fromCharCode(a),i[l]=a,n[a++]=l),r=o+1}return t}n[0]="";var s=4e4,o=r(e);return s=65535,{chars1:o,chars2:r(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var i=e[n][1],r=[],s=0;s<i.length;
2s++)r[s]=t[i.charCodeAt(s)];e[n][1]=r.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,s=0;n<r;)e.substring(s,r)==t.substring(s,r)?s=n=r:i=r,r=Math.floor((i-n)/2+n);return r},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,i=Math.min(e.length,t.length),r=i,s=0;n<r;)e.substring(e.length-r,e.length-s)==t.substring(t.length-r,t.length-s)?s=n=r:i=r,r=Math.floor((i-n)/2+n);return r},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,i=t.length;if(0==n||0==i)return 0;n>i?e=e.substring(n-i):n<i&&(t=t.substring(0,n));var r=Math.min(n,i);if(e==t)return r;for(var s=0,o=1;;){var a=e.substring(r-o),l=t.indexOf(a);if(-1==l)return s;o+=l,0!=l&&e.substring(r-o)!=t.substring(0,o)||(s=o,o++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,i=e.length>t.length?t:e;if(n.length<4||2*i.length<n.length)return null;var r=this;function s(e,t,n){for(var i,s,o,a,l=e.substring(n,n+Math.floor(e.length/4)),c=-1,u="";-1!=(c=t.indexOf(l,c+1));){var d=r.diff_commonPrefix(e.substring(n),t.substring(c)),h=r.diff_commonSuffix(e.substring(0,n),t.substring(0,c));u.length<h+d&&(u=t.substring(c-h,c)+t.substring(c,c+d),i=e.substring(0,n-h),s=e.substring(n+d),o=t.substring(0,c-h),a=t.substring(c+d))}return 2*u.length>=e.length?[i,s,o,a,u]:null}var o,a,l,c,u,d=s(n,i,Math.ceil(n.length/4)),h=s(n,i,Math.ceil(n.length/2));return d||h?(o=h?d&&d[4].length>h[4].length?d:h:d,e.length>t.length?(a=o[0],l=o[1],c=o[2],u=o[3]):(c=o[0],u=o[1],a=o[2],l=o[3]),[a,l,c,u,o[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var i=!1,r=[],s=0,o=null,a=0,l=0,c=0,u=0,d=0;a<e.length;)0==e[a][0]?(r[s++]=a,l=u,c=d,u=0,d=0,o=e[a][1]):(1==e[a][0]?u+=e[a][1].length:d+=e[a][1].length,o&&o.length<=Math.max(l,c)&&o.length<=Math.max(u,d)&&(e.splice(r[s-1],0,new t.Diff(n,o)),e[r[s-1]+1][0]=1,s--,a=--s>0?r[s-1]:-1,l=0,c=0,u=0,d=0,o=null,i=!0)),a++;for(i&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]==n&&1==e[a][0]){var h=e[a-1][1],f=e[a][1],p=this.diff_commonOverlap_(h,f),m=this.diff_commonOverlap_(f,h);p>=m?(p>=h.length/2||p>=f.length/2)&&(e.splice(a,0,new t.Diff(0,f.substring(0,p))),e[a-1][1]=h.substring(0,h.length-p),e[a+1][1]=f.substring(p),a++):(m>=h.length/2||m>=f.length/2)&&(e.splice(a,0,new t.Diff(0,h.substring(0,m))),e[a-1][0]=1,e[a-1][1]=f.substring(0,f.length-m),e[a+1][0]=n,e[a+1][1]=h.substring(m),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var i=e.charAt(e.length-1),r=n.charAt(0),s=i.match(t.nonAlphaNumericRegex_),o=r.match(t.nonAlphaNumericRegex_),a=s&&i.match(t.whitespaceRegex_),l=o&&r.match(t.whitespaceRegex_),c=a&&i.match(t.linebreakRegex_),u=l&&r.match(t.linebreakRegex_),d=c&&e.match(t.blanklineEndRegex_),h=u&&n.match(t.blanklineStartRegex_);return d||h?5:c||u?4:s&&!a&&l?3:a||l?2:s||o?1:0}for(var i=1;i<e.length-1;){if(0==e[i-1][0]&&0==e[i+1][0]){var r=e[i-1][1],s=e[i][1],o=e[i+1][1],a=this.diff_commonSuffix(r,s);if(a){var l=s.substring(s.length-a);r=r.substring(0,r.length-a),s=l+s.substring(0,s.length-a),o=l+o}for(var c=r,u=s,d=o,h=n(r,s)+n(s,o);s.charAt(0)===o.charAt(0);){r+=s.charAt(0),s=s.substring(1)+o.charAt(0),o=o.substring(1);var f=n(r,s)+n(s,o);f>=h&&(h=f,c=r,u=s,d=o)}e[i-1][1]!=c&&(c?e[i-1][1]=c:(e.splice(i-1,1),i--),e[i][1]=u,d?e[i+1][1]=d:(e.splice(i+1,1),i--))}i++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var i=!1,r=[],s=0,o=null,a=0,l=!1,c=!1,u=!1,d=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(u||d)?(r[s++]=a,l=u,c=d,o=e[a][1]):(s=0,o=null),u=d=!1):(e[a][0]==n?d=!0:u=!0,o&&(l&&c&&u&&d||o.length<this.Diff_EditCost/2&&l+c+u+d==3)&&(e.splice(r[s-1],0,new t.Diff(n,o)),e[r[s-1]+1][0]=1,s--,o=null,l&&c?(u=d=!0,s=0):(a=--s>0?r[s-1]:-1,u=d=!1),i=!0)),a++;i&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var i,r=0,s=0,o=0,a="",l="";r<e.length;)switch(e[r][0]){case 1:o++,l+=e[r][1],r++;break;case n:s++,a+=e[r][1],r++;break;case 0:s+o>1?(0!==s&&0!==o&&(0!==(i=this.diff_commonPrefix(l,a))&&(r-s-o>0&&0==e[r-s-o-1][0]?e[r-s-o-1][1]+=l.substring(0,i):(e.splice(0,0,new t.Diff(0,l.substring(0,i))),r++),l=l.substring(i),a=a.substring(i)),0!==(i=this.diff_commonSuffix(l,a))&&(e[r][1]=l.substring(l.length-i)+e[r][1],l=l.substring(0,l.length-i),a=a.substring(0,a.length-i))),r-=s+o,e.splice(r,s+o),a.length&&(e.splice(r,0,new t.Diff(n,a)),r++),l.length&&(e.splice(r,0,new t.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,s=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),c=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),c=!0)),r++;c&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var i,r=0,s=0,o=0,a=0;for(i=0;i<e.length&&(1!==e[i][0]&&(r+=e[i][1].length),e[i][0]!==n&&(s+=e[i][1].length),!(r>t));i++)o=r,a=s;return e.length!=i&&e[i][0]===n?a:a+(t-o)},t.prototype.diff_prettyHtml=function(e){for(var t=[],i=/&/g,r=/</g,s=/>/g,o=/\n/g,a=0;a<e.length;a++){var l=e[a][0],c=e[a][1].replace(i,"&amp;").replace(r,"&lt;").replace(s,"&gt;").replace(o,"&para;<br>");switch(l){case 1:t[a]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case n:t[a]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[a]="<span>"+c+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],i=0;i<e.length;i++)e[i][0]!==n&&(t[i]=e[i][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,i=0,r=0,s=0;s<e.length;s++){var o=e[s][0],a=e[s][1];switch(o){case 1:i+=a.length;break;case n:r+=a.length;break;case 0:t+=Math.max(i,r),i=0,r=0}}return t+Math.max(i,r)},t.prototype.diff_toDelta=function(e){for(var t=[],i=0;i<e.length;i++)switch(e[i][0]){case 1:t[i]="+"+encodeURI(e[i][1]);break;case n:t[i]="-"+e[i][1].length;break;case 0:t[i]="="+e[i][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,i){for(var r=[],s=0,o=0,a=i.split(/\t/g),l=0;l<a.length;l++){var c=a[l].substring(1);switch(a[l].charAt(0)){case"+":try{r[s++]=new t.Diff(1,decodeURI(c))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var u=parseInt(c,10);if(isNaN(u)||u<0)throw new Error("Invalid number in diff_fromDelta: "+c);var d=e.substring(o,o+=u);"="==a[l].charAt(0)?r[s++]=new t.Diff(0,d):r[s++]=new t.Diff(n,d);break;default:if(a[l])throw new Error("Invalid diff operation in diff_fromDelta: "+a[l])}}if(o!=e.length)throw new Error("Delta length ("+o+") does not equal source text length ("+e.length+").");return r},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(t),r=this;function s(e,i){var s=e/t.length,o=Math.abs(n-i);return r.Match_Distance?s+o/r.Match_Distance:o?1:s}var o=this.Match_Threshold,a=e.indexOf(t,n);-1!=a&&(o=Math.min(s(0,a),o),-1!=(a=e.lastIndexOf(t,n+t.length))&&(o=Math.min(s(0,a),o)));var l,c,u=1<<t.length-1;a=-1;for(var d,h=t.length+e.length,f=0;f<t.length;f++){for(l=0,c=h;l<c;)s(f,n+c)<=o?l=c:h=c,c=Math.floor((h-l)/2+l);h=c;var p=Math.max(1,n-c+1),m=Math.min(n+c,e.length)+t.length,g=Array(m+2);g[m+1]=(1<<f)-1;for(var y=m;y>=p;y--){var b=i[e.charAt(y-1)];if(g[y]=0===f?(g[y+1]<<1|1)&b:(g[y+1]<<1|1)&b|(d[y+1]|d[y])<<1|1|d[y+1],g[y]&u){var _=s(f,y-1);if(_<=o){if(o=_,!((a=y-1)>n))break;p=Math.max(1,2*n-a)}}}if(s(f+1,n)>o)break;d=g}return a},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var i=n.substring(e.start2,e.start2+e.length1),r=0;n.indexOf(i)!=n.lastIndexOf(i)&&i.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,i=n.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var s=n.substring(e.start2-r,e.start2);s&&e.diffs.unshift(new t.Diff(0,s));var o=n.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new t.Diff(0,o)),e.start1-=s.length,e.start2-=s.length,e.length1+=s.length+o.length,e.length2+=s.length+o.length}},t.prototype.patch_make=function(e,i,r){var s,o;if("string"==typeof e&&"string"==typeof i&&void 0===r)s=e,(o=this.diff_main(s,i,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===i&&void 0===r)o=e,s=this.diff_text1(o);else if("string"==typeof e&&i&&"object"==typeof i&&void 0===r)s=e,o=i;else{if("string"!=typeof e||"string"!=typeof i||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");s=e,o=r}if(0===o.length)return[];for(var a=[],l=new t.patch_obj,c=0,u=0,d=0,h=s,f=s,p=0;p<o.length;p++){var m=o[p][0],g=o[p][1];switch(c||0===m||(l.start1=u,l.start2=d),m){case 1:l.diffs[c++]=o[p],l.length2+=g.length,f=f.
2substring(0,d)+g+f.substring(d);break;case n:l.length1+=g.length,l.diffs[c++]=o[p],f=f.substring(0,d)+f.substring(d+g.length);break;case 0:g.length<=2*this.Patch_Margin&&c&&o.length!=p+1?(l.diffs[c++]=o[p],l.length1+=g.length,l.length2+=g.length):g.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,h),a.push(l),l=new t.patch_obj,c=0,h=f,u=d)}1!==m&&(u+=g.length),m!==n&&(d+=g.length)}return c&&(this.patch_addContext_(l,h),a.push(l)),a},t.prototype.patch_deepCopy=function(e){for(var n=[],i=0;i<e.length;i++){var r=e[i],s=new t.patch_obj;s.diffs=[];for(var o=0;o<r.diffs.length;o++)s.diffs[o]=new t.Diff(r.diffs[o][0],r.diffs[o][1]);s.start1=r.start1,s.start2=r.start2,s.length1=r.length1,s.length2=r.length2,n[i]=s}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var i=this.patch_addPadding(e);t=i+t+i,this.patch_splitMax(e);for(var r=0,s=[],o=0;o<e.length;o++){var a,l,c=e[o].start2+r,u=this.diff_text1(e[o].diffs),d=-1;if(u.length>this.Match_MaxBits?-1!=(a=this.match_main(t,u.substring(0,this.Match_MaxBits),c))&&(-1==(d=this.match_main(t,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits))||a>=d)&&(a=-1):a=this.match_main(t,u,c),-1==a)s[o]=!1,r-=e[o].length2-e[o].length1;else if(s[o]=!0,r=a-c,u==(l=-1==d?t.substring(a,a+u.length):t.substring(a,d+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[o].diffs)+t.substring(a+u.length);else{var h=this.diff_main(u,l,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(h)/u.length>this.Patch_DeleteThreshold)s[o]=!1;else{this.diff_cleanupSemanticLossless(h);for(var f,p=0,m=0;m<e[o].diffs.length;m++){var g=e[o].diffs[m];0!==g[0]&&(f=this.diff_xIndex(h,p)),1===g[0]?t=t.substring(0,a+f)+g[1]+t.substring(a+f):g[0]===n&&(t=t.substring(0,a+f)+t.substring(a+this.diff_xIndex(h,p+g[1].length))),g[0]!==n&&(p+=g[1].length)}}}}return[t=t.substring(i.length,t.length-i.length),s]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,i="",r=1;r<=n;r++)i+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=n,e[r].start2+=n;var s=e[0],o=s.diffs;if(0==o.length||0!=o[0][0])o.unshift(new t.Diff(0,i)),s.start1-=n,s.start2-=n,s.length1+=n,s.length2+=n;else if(n>o[0][1].length){var a=n-o[0][1].length;o[0][1]=i.substring(o[0][1].length)+o[0][1],s.start1-=a,s.start2-=a,s.length1+=a,s.length2+=a}return 0==(o=(s=e[e.length-1]).diffs).length||0!=o[o.length-1][0]?(o.push(new t.Diff(0,i)),s.length1+=n,s.length2+=n):n>o[o.length-1][1].length&&(a=n-o[o.length-1][1].length,o[o.length-1][1]+=i.substring(0,a),s.length1+=a,s.length2+=a),i},t.prototype.patch_splitMax=function(e){for(var i=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=i)){var s=e[r];e.splice(r--,1);for(var o=s.start1,a=s.start2,l="";0!==s.diffs.length;){var c=new t.patch_obj,u=!0;for(c.start1=o-l.length,c.start2=a-l.length,""!==l&&(c.length1=c.length2=l.length,c.diffs.push(new t.Diff(0,l)));0!==s.diffs.length&&c.length1<i-this.Patch_Margin;){var d=s.diffs[0][0],h=s.diffs[0][1];1===d?(c.length2+=h.length,a+=h.length,c.diffs.push(s.diffs.shift()),u=!1):d===n&&1==c.diffs.length&&0==c.diffs[0][0]&&h.length>2*i?(c.length1+=h.length,o+=h.length,u=!1,c.diffs.push(new t.Diff(d,h)),s.diffs.shift()):(h=h.substring(0,i-c.length1-this.Patch_Margin),c.length1+=h.length,o+=h.length,0===d?(c.length2+=h.length,a+=h.length):u=!1,c.diffs.push(new t.Diff(d,h)),h==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(h.length))}l=(l=this.diff_text2(c.diffs)).substring(l.length-this.Patch_Margin);var f=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==f&&(c.length1+=f.length,c.length2+=f.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=f:c.diffs.push(new t.Diff(0,f))),u||e.splice(++r,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var i=[];if(!e)return i;for(var r=e.split("\n"),s=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<r.length;){var a=r[s].match(o);if(!a)throw new Error("Invalid patch string: "+r[s]);var l=new t.patch_obj;for(i.push(l),l.start1=parseInt(a[1],10),""===a[2]?(l.start1--,l.length1=1):"0"==a[2]?l.length1=0:(l.start1--,l.length1=parseInt(a[2],10)),l.start2=parseInt(a[3],10),""===a[4]?(l.start2--,l.length2=1):"0"==a[4]?l.length2=0:(l.start2--,l.length2=parseInt(a[4],10)),s++;s<r.length;){var c=r[s].charAt(0);try{var u=decodeURI(r[s].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+u)}if("-"==c)l.diffs.push(new t.Diff(n,u));else if("+"==c)l.diffs.push(new t.Diff(1,u));else if(" "==c)l.diffs.push(new t.Diff(0,u));else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+u)}s++}}return i},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],i=0;i<this.diffs.length;i++){switch(this.diffs[i][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[i+1]=e+encodeURI(this.diffs[i][1])+"\n"}return t.join("").replace(/%20/g," ")}
2,e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},25(e,t,n){"use strict";n.d(t,{W1:()=>I,Dr:()=>N,XN:()=>A,bi:()=>R});var i,r,s=n(9698),o=n(9869),a=n(6540),l=n(1953),c=n(9376),u=n(1635),d=n(1468),h={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},f={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",OPENING_EVENT:"MDCMenuSurface:opening",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},p={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(e){e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER",e[e.RIGHT=4]="RIGHT",e[e.FLIP_RTL=8]="FLIP_RTL"}(i||(i={})),function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",e[e.TOP_START=8]="TOP_START",e[e.TOP_END=12]="TOP_END",e[e.BOTTOM_START=9]="BOTTOM_START",e[e.BOTTOM_END=13]="BOTTOM_END"}(r||(r={}));var m,g=function(e){function t(n){var i=e.call(this,(0,u.Cl)((0,u.Cl)({},t.defaultAdapter),n))||this;return i.isSurfaceOpen=!1,i.isQuickOpen=!1,i.isHoistedElement=!1,i.isFixedPosition=!1,i.isHorizontallyCenteredOnViewport=!1,i.maxHeight=0,i.openBottomBias=0,i.openAnimationEndTimerId=0,i.closeAnimationEndTimerId=0,i.animationRequestId=0,i.anchorCorner=r.TOP_START,i.originCorner=r.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return(0,u.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return r},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyClosing:function(){},notifyOpen:function(){},notifyOpening:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^i.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.isFixed=function(){return this.isFixedPosition},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.setMaxHeight=function(e){this.maxHeight=e},t.prototype.setOpenBottomBias=function(e){this.openBottomBias=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.notifyOpening(),this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasse
2s.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.adapter.addClass(t.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},p.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;if(void 0===e&&(e=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing(),this.isQuickOpen)return this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose();this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},p.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()}},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){var e;this.measurements=this.getAutoLayoutmeasurements();var n=this.getoriginCorner(),r=this.getMenuSurfaceMaxHeight(n),s=this.hasBit(n,i.BOTTOM)?"bottom":"top",o=this.hasBit(n,i.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),l=this.getVerticalOriginOffset(n),c=this.measurements,u=c.anchorSize,d=c.surfaceSize,h=((e={})[o]=a,e[s]=l,e);u.width/d.width>p.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(o="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(o+" "+s),this.adapter.setPosition(h),this.adapter.setMaxHeight(r?r+"px":""),this.hasBit(n,i.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:i}},t.prototype.getoriginCorner=function(){var e,n,r=this.originCorner,s=this.measurements,o=s.viewportDistance,a=s.anchorSize,l=s.surfaceSize,c=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,i.BOTTOM)?(e=o.top-c+this.anchorMargin.bottom,n=o.bottom-c-this.anchorMargin.bottom):(e=o.top-c+this.anchorMargin.top,n=o.bottom-c+a.height-this.anchorMargin.top),!(n-l.height>0)&&e>n+this.openBottomBias&&(r=this.setBit(r,i.BOTTOM));var u,d,h,f=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,i.FLIP_RTL),m=this.hasBit(this.anchorCorner,i.RIGHT)||this.hasBit(r,i.RIGHT);(h=f&&p?!m:m)?(u=o.left+a.width+this.anchorMargin.right,d=o.right-this.anchorMargin.right):(u=o.left+this.anchorMargin.left,d=o.right+a.width-this.anchorMargin.left);var g=u-l.width>0,y=d-l.width>0,b=this.hasBit(r,i.FLIP_RTL)&&this.hasBit(r,i.RIGHT);return y&&b&&f||!g&&b?r=this.unsetBit(r,i.RIGHT):(g&&h&&f||g&&!h&&m||!y&&u>=d)&&(r=this.setBit(r,i.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,r=0,s=this.hasBit(e,i.BOTTOM),o=this.hasBit(this.anchorCorner,i.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return s?(r=n.top+this.anchorMargin.top-a,o||(r+=this.measurements.anchorSize.height)):(r=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,o&&(r-=this.measurements.anchorSize.height)),r},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.RIGHT),r=this.hasBit(this.anchorCorner,i.RIGHT);if(n){var s=r?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?s-(this.measurements.viewportSize.width-this.measurements.bodySize.width):s}return r?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.BOTTOM),r=this.hasBit(this.anchorCorner,i.BOTTOM);return n?r?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:r?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,i=this.measurements,r=i.windowScroll,s=i.viewportDistance,o=i.surfaceSize,a=i.viewportSize,l=Object.keys(e);try{for(var c=(0,u.Ju)(l),d=c.next();!d.done;d=c.next()){var h=d.value,f=e[h]||0;!this.isHorizontallyCenteredOnViewport||"left"!==h&&"right"!==h?(f+=s[h],this.isFixedPosition||("top"===h?f+=r.y:"bottom"===h?f-=r.y:"left"===h?f+=r.x:f-=r.x),e[h]=f):e[h]=(a.width-o.width)/2}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this,t=this.adapter.isFocused(),n=this.adapter.getOwnerDocument?this.adapter.getOwnerDocument():document,i=n.activeElement&&this.adapter.isElementInContainer(n.activeElement);(t||i)&&setTimeout(function(){e.adapter.restoreFocus()},p.TOUCH_EVENT_WAIT_MS)},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(d.I),y=n(1072),b=n(7921),_={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},v={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},S={FOCUS_ROOT_INDEX:-1};!function(e){e[e.NONE=0]="NONE",e[e.LIST_ROOT=1]="LIST_ROOT",e[e.FIRST_ITEM=2]="FIRST_ITEM",e[e.LAST_ITEM=3]="LAST_ITEM"}(m||(m={}));var E=function(e){function t(n){var i=e.call(this,(0,u.Cl)((0,u.Cl)({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId=0,i.defaultFocusState=m.LIST_ROOT,i.selectedIndex=-1,i}
2return(0,u.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return v},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return S},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},getAttributeFromElementAtIndex:function(){return null},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return-1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return-1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);if(!(n<0)){this.adapter.notifySelected({index:n});var i="true"===this.adapter.getAttributeFromElementAtIndex(n,v.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(i),this.closeAnimationEndTimerId=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},g.numbers.TRANSITION_CLOSE_DURATION)}},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState){case m.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case m.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case m.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,v.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,_.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,_.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,v.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,b.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,v.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,b.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,v.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw new Error("MDCMenuFoundation: No list item at specified index.")},t}(d.I);const C={bottomEnd:"BOTTOM_END",bottomLeft:"BOTTOM_LEFT",bottomRight:"BOTTOM_RIGHT",bottomStart:"BOTTOM_START",topEnd:"TOP_END",topLeft:"TOP_LEFT",topRight:"TOP_RIGHT",topStart:"TOP_START"},A=(0,c.a0)(function(e,t){const{children:n,open:i,anchorCorner:r,onOpen:l,onClose:u,renderToPortal:d,fixed:h,apiRef:f,foundationRef:p,...m}=e,b=a.useRef(null),{rootEl:_}=((e,t)=>{const[n,i]=(0,o.useState)(e.open),r=(0,o.useRef)(null),s=(0,o.useRef)(null),a=(0,o.useRef)(null),l=(0,o.useRef)(null),{foundation:u,...d}=(0,c.P5)({props:e,elements:{rootEl:!0},api:({foundation:e,rootEl:t})=>({setAnchorCorner:t=>e.setAnchorCorner(t),setAnchorElement:e=>a.current=e,setOpen:e=>i(e),getSurfaceElement:()=>t.ref}),foundation:({rootEl:e,getProps:t,emit:n})=>{const r=e=>{u.handleBodyClick(e)},o=()=>{document.body.removeEventListener("click",r),document.body.removeEventListener("touchstart",r)},d=new g({addClass:t=>{e.addClass(t)},removeClass:t=>{e.removeClass(t)},hasClass:t=>"mdc-menu-surface"===t||e.hasClass(t),hasAnchor:()=>
2!!a.current,notifyClose:()=>{o(),i(!1)},notifyClosing:()=>n(g.strings.CLOSING_EVENT,{}),notifyOpen:()=>{n("onOpen",{}),setTimeout(()=>{document.body.addEventListener("click",r),document.body.addEventListener("touchstart",r)},150)},notifyOpening:()=>n(g.strings.OPENING_EVENT,{}),isElementInContainer:t=>e.ref===t||!!e.ref&&e.ref.contains(t),isRtl:()=>!!e.ref&&"rtl"===getComputedStyle(e.ref).getPropertyValue("direction"),setTransformOrigin:t=>{const n=`${(0,y.d)(window,"transform")}-origin`;e.setStyle(n,t)},isFocused:()=>document.activeElement===e.ref,saveFocus:()=>{s.current=document.activeElement},restoreFocus:()=>{e.ref&&e.ref.contains(document.activeElement)&&s.current&&s.current.focus&&s.current.focus()},getInnerDimensions:()=>({width:e.ref?e.ref.offsetWidth:0,height:e.ref?e.ref.offsetHeight:0}),getAnchorDimensions:()=>{var e;return(null==(e=a.current)?void 0:e.getBoundingClientRect())||c.dp},getWindowDimensions:()=>({width:window.innerWidth,height:window.innerHeight}),getBodyDimensions:()=>({width:document.body.clientWidth,height:document.body.clientHeight}),getWindowScroll:()=>({x:window.pageXOffset,y:window.pageYOffset}),setPosition:t=>{e.setStyle("left",void 0!==t.left?t.left:null),e.setStyle("right",void 0!==t.right?t.right:null),e.setStyle("top",void 0!==t.top?t.top:null),e.setStyle("bottom",void 0!==t.bottom?t.bottom:null)},setMaxHeight:t=>{e.setStyle("maxHeight",t)}}),h=d.close.bind(d);d.close=(e=!1)=>{n("onClose",{}),l.current=window.setTimeout(()=>{t().open||h(e)})};const f=d.destroy.bind(d);return d.destroy=()=>{o(),f()},d}}),{rootEl:h}=d,{onKeyDown:f}=e,p=(0,o.useCallback)(e=>{null==f||f(e),u.handleKeydown(e)},[f,u]);return h.setProp("onKeyDown",p,!0),(0,o.useEffect)(()=>{u.setFixedPosition(!!e.fixed)},[e.fixed,u]),(0,o.useEffect)(()=>{const e=(null==t?void 0:t.current)||h.ref;if(e){const t=(0,c.kp)(e,`.${g.cssClasses.ANCHOR}`);t&&(a.current=t)}},[t,h.ref]),(0,o.useEffect)(()=>{e.renderToPortal?u.setIsHoisted(!0):u.setIsHoisted(!1);const t=e.renderToPortal?()=>{try{u.autoposition()}catch{}}:()=>{};return(0,c.er)(()=>{u.isOpen()}),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.renderToPortal,u]),(0,o.useEffect)(()=>{const t=e.anchorCorner&&(e=>g.Corner[C[e]])(e.anchorCorner);
2if(void 0!==t){u.setAnchorCorner(t),u.dimensions=u.adapter.getInnerDimensions();try{u.autoposition()}catch{}}},[e.anchorCorner,u]),(0,o.useEffect)(()=>{if(n){const e=h.ref?h.ref.querySelectorAll(g.strings.FOCUSABLE_ELEMENTS):[];r.current=e.length>0?e[0]:null,u.open()}else u.isOpen()&&u.close()},[n,u,h.ref]),(0,o.useEffect)(()=>{i(!!e.open)},[e.open]),(0,o.useEffect)(()=>()=>{l.current&&window.clearTimeout(l.current)},[]),{...d}})(e,b),v=(0,c.UP)(e,["mdc-menu-surface",{"mdc-menu-surface--fixed":h}]);return(0,s.Y)(s.FK,{children:(0,s.Y)(c.zy,{renderTo:d,menuSurfaceDomPositionRef:b,children:(0,s.Y)(c.vw,{...m,element:_,className:v,ref:t,children:n})})})}),w=(0,c.a0)(function(e,t){const n=(0,c.UP)(e,["mdc-menu-surface--anchor"]);return(0,s.Y)(c.vw,{...e,className:n,ref:t})}),x=(0,c.a0)(function(e,t){const n=(0,c.UP)(e,["mdc-list mdc-menu__items"]);return(0,s.Y)(l.B8,{role:"menu",...e,className:n,ref:t})});x.displayName="MenuItems";const N=(0,c.a0)(function(e,t){return(0,s.Y)(l.ck,{role:"menuitem",tabIndex:0,...e,ref:t})}),T=e=>"MenuItems"===(0,c.Mn)(e),I=(0,c.a0)(function(e,t){const{children:n,focusOnOpen:i,onSelect:r,foundationRef:l,...u}=e,{rootEl:d,setListApi:h,setMenuSurfaceApi:f}=(e=>{const t=(0,o.useRef)(),n=(0,o.useRef)(),i=(0,o.useCallback)(()=>{var e;return(null==(e=n.current)?void 0:e.listElements())||[]},[]),{foundation:r,...s}=(0,c.P5)({props:{...e,apiRef:void 0},elements:{rootEl:!0},foundation:({emit:e})=>new E({addClassToElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.addClassToElementIndex(...e)},removeClassFromElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.removeClassFromElementAtIndex(...e)},addAttributeToElementAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.setAttributeForElementIndex(...e)},removeAttributeFromElementAtIndex:(e,t)=>{i()[e].removeAttribute(t)},elementContainsClass:(e,t)=>e.classList.contains(t),closeSurface:()=>{var e;null==(e=t.current)||e.setOpen(!1)},getElementIndex:e=>i().indexOf(e),notifySelected:t=>e("onSelect",{index:t.index,item:i()[t.index]}),getMenuItemCount:()=>{var e;return(null==(e=n.current)?void 0:e.getListItemCount())||0},focusItemAtIndex:(...e)=>{var t;return null==(t=n.current)?void 0:t.focusItemAtIndex(...e)},focusListRoot:()=>{var e;return null==(e=n.current)?void 0:e.focusRoot()}})}),{rootEl:a}=s,{onClick:l}=e,u=(0,o.useCallback)(e=>{null==l||l(e);const t=(0,c.kp)(e.target,".mdc-deprecated-list-item");t&&r.handleItemAction(t)},[r,l]),{onKeyDown:d}=e,h=(0,o.useCallback)(e=>{null==d||d(e),r.handleKeydown(e),13===e.which&&e.target instanceof Element&&n.current&&e.target.classList.contains(n.current.getClasses())&&r.handleItemAction(e.target)},[r,d]),{onOpen:f,focusOnOpen:p}=e,m=(0,o.useCallback)(e=>{const t=i();(p||void 0===p)&&t.length>0&&!t.some(e=>e===document.activeElement)&&t[0].focus(),null==f||f(e)},[f,p,i]);a.setProp("onKeyDown",h,!0),a.setProp("onClick",u,!0),a.setProp("onOpen",m,!0);const g=n.current&&t.current&&e.apiRef;return(0,o.useEffect)(()=>{n.current&&t.current&&e.apiRef&&e.apiRef({...n.current,...t.current,items:i})},[g,i]),{setListApi:e=>{n.current=e},setMenuSurfaceApi:e=>{t.current=e},...s}})(e),p=(a.Children.map(n,T)||[]).every(e=>!1===e),m={apiRef:h};return(0,s.Y)(A,{...d.props(u),className:(0,c.xW)("mdc-menu",u.className),apiRef:f,ref:t,children:p?(0,s.Y)(x,{...m,children:n}):a.Children.map(n,e=>T(e)?a.cloneElement(e,{...a.isValidElement(e)?e.props:{},...m}):e)})}),k=e=>function(t){const[n,i]=(0,o.useState)(!!t.open);(0,o.useEffect)(()=>{void 0!==t.open&&t.open!==n&&i(!!t.open)},[t.open,n]);const{handle:r,onClose:l,children:c,rootProps:u={},open:d,foundationRef:h,...f}=t,p=a.cloneElement(r,{...r.props,onClick:e=>{i(!n),r.props.onClick&&r.props.onClick(e)}});return(0,s.FD)(w,{...u,children:[(0,s.Y)(e,{...f,onClose:e=>{i(!!d||!1),null==l||l(e)},open:n,children:c}),p]})},R=(k(I),k(A))},3725(e,t,n){"use strict";n.d(t,{T:()=>d});var i=n(9698),r=n(9376),s=n(1635),o=n(1468),a={ROOT:"mdc-form-field"},l={LABEL_SELECTOR:".mdc-form-field > label"},c=function(e){function t(n){var i=e.call(this,(0,s.Cl)((0,s.Cl)({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}
2return(0,s.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(o.I);const u=(0,r.a0)(function(e,t){var n;n=e,(0,r.P5)({props:n,elements:{},foundation:()=>new c({registerInteractionHandler:(e,t)=>{},deregisterInteractionHandler:(e,t)=>{},activateInputRipple:()=>{},deactivateInputRipple:()=>{}})});const{alignEnd:s,foundationRef:o,noWrap:a,spaceBetween:l,...u}=e,d=(0,r.UP)(e,["mdc-form-field",{"mdc-form-field--align-end":s,"mdc-form-field--nowrap":a,"mdc-form-field--space-between":l}]);return(0,i.Y)(r.vw,{...u,ref:t,className:d})});function d(e){const{className:t,style:n,rootProps:s,label:o,children:a,disabled:l}=e,c=e.label||e.children,d=(0,r.Bi)("toggle-",e),h=c?{disabled:l}:{className:t,style:n,disabled:l,...s};return{id:d,renderToggle:e=>c?(0,i.FD)(u,{...s,className:t,style:n,children:[e,(0,i.FD)("label",{id:d+"label",htmlFor:d,children:[o,a]})]}):e,toggleRootProps:h}}}}]);
3//# sourceMappingURL=search.dfa9b62d64.js.map

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.