1/*! For license information please see menu.fc6be90f59.js.LICENSE.txt */ 2"use strict";(globalThis.webpackChunklawinsidercontracts||=[]).push([[1854],{8281(e,t,n){n.r(t),n.d(t,{default:()=>d});var i=n(6942),o=n.n(i),r=n(9869),s=n(5549),a=n(5554),c=n(7224),l=n(9698);function u({href:e,...t}){return{href:e,tag:e?"a":"li",...t}}function d({activeIndex:e,filterByValue:t,focusOnFirtsItem:n=!1,focusOnOpen:i=!1,handleItemClick:d,handleItemHover:h,inputValue:m,loading:p,options:f,updateItemRef:g,...E}){const A=(0,r.useMemo)(()=>(0,l.Y)("div",{style:{padding:"0.5rem 1rem"},children:(0,l.Y)(s.A,{})}),[]),T=(0,r.useMemo)(()=>{if(f?.length>0)return f.map((i,o)=>{const{href:r,label:s,value:a,...m}=i;return(0,l.FD)(c.A,{ref:e=>{g(e,o),0===o&&n&&e?.focus()},className:"options-item",role:"option",selected:o===e,onClick:()=>d(i),onMouseDown:e=>e.preventDefault(),onMouseOver:()=>h(o),...u({href:r,...m}),children:[(0,l.Y)("span",{className:"option-label",children:s}),t?(0,l.FD)("span",{className:"option-value",children:["(",a,")"]}):null]},a)});const i=m?`No options containing "${m}"`:"No options available";return(0,l.Y)("div",{style:{fontStyle:"italic",padding:"0.5rem 1rem",whiteSpace:"nowrap"},children:i})},[e,t,d,h,m,f,g,n]);return(0,l.Y)(a.A,{anchorCorner:"bottomLeft",className:o()({columns:f?.length,[`columns-${Math.min(f?.length,4)}`]:f?.length}),focusOnOpen:i,style:{margin:"6px 0",maxHeight:"288px"},...E,children:p?A:T})}},924(e,t,n){n.r(t),n.d(t,{default:()=>s});var i=n(3548),o=n(2857),r=n(9698);function s({onClose:e,open:t,props:n}){return(0,r.Y)(o.A,{anchorCorner:"topLeft",className:"menu-surface-padding menu-surface-sm-width",open:t,onClose:e,children:(0,r.Y)(i.A,{isActionDropdown:!0,...n})})}},1598(e,t,n){n.r(t),n.d(t,{default:()=>u});var i=n(2109),o=n(7071),r=n(2199),s=n(9698);function a({commonParams:e}){return(0,s.FD)("div",{children:[(0,s.Y)("p",{children:"Click âOpen Microsoft Wordâ in the dialog shown by your browser."}),(0,s.Y)("p",{children:"If you donât see a dialog, click âOpen in Wordâ below."}),(0,s.Y)("p",{children:(0,s.Y)(r.A,{raised:!0,...e("msword"),"event-value":"msword-modal-word",children:"Open in Word"})}),(0,s.Y)("p",{children:"If nothing happens when you click the button, please make sure you have Microsoft Word installed."}),(0,s.FD)("p",{children:["Having issues? You can"," ",(0,s.Y)("a",{...e("docx"),...i.Js,"event-value":"msword-modal-docx",role:"button",tabIndex:"0",children:"download .DOCX version"}),"."]})]})}var c=n(5554),l=n(7224);function u({anchorCorner:e,commonParams:t,items:n,onClose:r,open:u}){return(0,s.Y)(c.A,{anchorCorner:e,className:"download-btn-menu",open:u,onClose:r,children:n.map(({label:e})=>{const{icon:n,title:r}=i.aN[e];return(0,s.FD)(l.A,{...t(e),..."msword"===e&&{onClick:()=>{window.location.href=t("msword").href,(0,o.xE)((0,s.Y)(a,{commonParams:t}),{callback:()=>{},dialog:!0,showAction:!1})}},children:[(0,s.Y)("i",{className:`icon ${n}`})," ",r]},e)})})}},1238(e,t,n){n.d(t,{A:()=>T});var i=n(6942),o=n.n(i),r=n(2109),s=n(3544),a=n(7563),c=n(7752),l=n(5681),u=n(7399),d=n(7224),h=n(9698);function m({className:e,onClick:t}){return u.A.ENABLE_LABELING_DIALOG.get()?(0,h.FD)(d.A,{className:o()("nav-list__menu__link",e),tag:"button",onClick:()=>{t?.(),(0,l.x)(r.h4.QUEUE)},children:[(0,h.Y)("i",{className:o()("icon","Xn7N9s7Bwq")}),"Help Us Improve"]}):null}var p=n(3843),f=n(2857),g=n(9789),E=n(4681);const A={dataLabeling:e=>(0,h.Y)(m,{...e}),scheduleDemo:({icon:e})=>(0,h.Y)(c.A,{className:o()("nav-list__menu__link demo-link visible-xs visible-sm",{hidden:(0,E.Ys)()&&!u.A.SHOW_SCHEDULE_DEMO_FOR_FREE_USERS.get()}),icon:e,source:"header",url:(0,s.zf)(r.A.CALENDLY_LAWINSIDER_DEMO_LINK,{utm_content:"nav"})}),upgrade:({onClick:e,...t})=>(0,h.FD)(d.A,{className:"btn-full-width",tag:"button",onClick:()=>{(0,a.Dh)({action:p.Jw.TRY_SUBSCRIPTION,details:{initialPlanType:r.fs},showView:!0,source:p.YH.HEADER,view:p.al.UPGRADE_PACKAGE}),e?.()},...t,children:[(0,h.Y)(g.A,{})," Upgrade"]})};function T({className:e,items:t,onClose:n,open:i}){return(0,h.Y)(f.A,{anchorCorner:"bottomLeft",className:o()(e,"nav-list__menu"),open:i,style:{left:"auto",right:0},children:t.map(({action:e,className:t,href:i,icon:r,title:s,...a})=>{const c=A[e];return c?(0,h.Y)(c,{className:o()("nav-list__menu__link",t),icon:r,onClick:n},e):(0,h.FD)("a",{className:o()("nav-list__menu__link",t),href:i,role:"menuitem",...a,children:[r&&(0,h.Y)("i",{className:o()("icon",r)}),s]},e)})})}},9538(e,t,n){n.r(t),n.d(t,{default:()=>f});var i=n(2109);const o="clauses",r="contracts",s="dictionary",a="resources",c={[o]:"/clauses",[r]:"/tags",[s]:"/dictionary",[a]:i.A.RESOURCES,about:i.A.ABOUT,home:"/",lists:i.A.LISTS,pricing:i.A.PRICING,profile:i.A.ACCOUNT,signout:"/signout"};var l=n(1238),u="IJukIWxuyL",d=n(4681),h=n(9698);const m="S8Y22spZBy",p=[{action:"resources",className:`${m} ${u}`,href:c.resources,icon:"bUegFJKQoB",title:"Resources"},{action:"pricing",className:(0,d.Ys)()&&`${m}`,href:i.A.PRICING,icon:"IWnHzrEhJl",title:"Pricing"},{action:"about",className:`${(0,d.Ys)()?m:""} ${u}`,href:i.A.ABOUT,icon:"wsKchsmyB9",title:"About"},{action:"scheduleDemo",icon:"O7l_Z0j55b"},{action:"getWordAddin",href:i.A.PRODUCTS_AI_CONTRACT_REVIEW,icon:"Q3mjl2Mv_n",title:"Get Word Add-in"},{action:"joinNewsletter",href:i.A.NEWSLETTER,icon:"TK1zcBGN_5",title:"Join Newsletter",...i.Js},{action:"support",href:i.A.SUPPORT,icon:"WR0pAvdo_B",title:"Support",...i.Js}];function f({...e}){return(0,h.Y)(l.A,{className:"BON_EqEcDg",items:p,...e})}},461(e,t,n){n.r(t),n.d(t,{default:()=>r});var i=n(2857),o=n(9698);function r({ExtraItems:e,SubmenuItems:t,action:n,onClose:r,open:s,searchIndex:a,title:c}){return(0,o.Y)(i.A,{anchorCorner:"bottomLeft",className:"nav-list__menu",open:s,role:"menu",onClose:r,children:(0,o.Y)(t,{ExtraItems:e,action:n,searchIndex:a,title:c,onClose:r})})}},2972(e,t,n){n.r(t),n.d(t,{default:()=>d});var i=n(2109),o=n(4918),r=n(1917),s=n(3544),a=n(7224),c=n(9698);const l=[{title:"All Contracts",uri:i.A.CONTRACTS},{title:"Other Documents",uri:i.A.DOCUMENTS}];function u({title:e,uri:t}){return(0,c.Y)("a",{className:"nav-list__menu__link","event-name":"header_click","event-value":`browse_${(0,o.Yv)(e)}`,href:(0,s.iY)(t),role:"menuitem",children:e})}function d(){return(0,c.FD)(c.FK,{children:[(0,r.Z6)()&&l.map(({title:e,uri:t})=>(0,c.Y)(u,{title:e,uri:t},e)),(0,c.Y)(a.A,{disabled:!0,className:"nav-list__menu__disabled disabled-item",children:"Browse by:"}),(0,r.zp)().map(e=>{const t=(0,o.u2)(e);return(0,c.FD)("a",{className:"nav-list__menu__link","event-name":"header_click","event-value":`browse_by_tag_${t}`,href:(0,s.iY)(`/tags/${e}`),role:"menuitem",children:[(0,c.Y)("i",{className:"icon icon-arrow-forward icon--xs"})," ",t]},t)})]})}},2783(e,t,n){n.r(t),n.d(t,{default:()=>h});var i=n(3269),o=n.n(i),r=n(1132),s=n.n(r),a=n(4843),c=n(2109),l=n(1238),u=n(4681),d=n(9698);function h({...e}){const t=(0,u.Ys)(),[n]=(0,a.fp)(u.zq),i=[{action:"profile",href:c.A.PROFILE,icon:"icon-user",title:"Profile"},{action:"settings",href:c.A.SETTINGS,icon:"icon-settings",title:"Settings"}].concat(o()(s(),t&&!n?[{action:"upgrade"}]:[]));return(0,d.Y)(l.A,{items:i,...e})}},859(e,t,n){n.d(t,{A:()=>h});var i=n(6942),o=n.n(i),r=n(9869),s=n(7071),a=n(1907),c=n(2946),l=n(7224),u=n(9698);function d({children:e,className:t,...n}){return(0,u.Y)(l.A,{className:o()("btn-full-width new-list-btn",t),tag:"button",...n,children:e})}function h({ButtonComponent:e=d,className:t,icon:n="icon-add-blue",onClick:i,snippet:l,updateLists:h}){const[m,p]=(0,r.useState)(!1);return(0,u.FD)(u.FK,{children:[(0,u.FD)(e,{className:t,"data-trigger-paywall-id":c.Aq,onClick:()=>{i?.(),p(!0)},children:[(0,u.Y)("i",{className:o()("icon",n)}),"New List"]}),(0,u.Y)(a.A,{open:m,snippet:l,updateLists:h,onClose:()=>p(!1),onSave:e=>{(0,s.xE)((0,u.FD)("span",{children:["Created new ",e.name," list"]}),{action:"see list",callback:()=>(0,s.oG)(e.link)})}})]})}},2513(e,t,n){n.r(t),n.d(t,{default:()=>c});var i=n(859),o=n(5554),r=n(7224),s=n(6660),a=n(9698);function c({hide:e,lists:t,onSave:n,open:c,snippet:l,updateList:u}){const d=[];if(null===t)d.push((0,a.Y)(r.A,{disabled:!0,children:"Loading..."},"loading"));else for(const e of t)d.push((0,a.FD)(r.A,{"aria-disabled":e.full,className:"color-black btn-full-width",tag:"button",onClick:async()=>{const t=await u(e.id,l);(0,s.s)("list_save"),n(t,"Saved in")},children:[(0,a.Y)("i",{className:"icon icon-lock-black"}),e.name]},e.id));return(0,a.FD)(o.A,{anchorCorner:"bottomLeft",open:c,onClose:e,children:[(0,a.Y)(i.A,{snippet:l}),d.length>0&&(0,a.Y)(r.A,{className:"mdc-deprecated-list-divider",role:"separator"}),d]})}},85(e,t,n){n.r(t),n.d(t,{default:()=>h});var i=n(6942),o=n.n(i),r=n(7399),s=n(5554),a=n(7224),c=n(9028),l=n(6660),u=n(9698);function d(e){const{label:t,query:n}=e,i=t.toLowerCase().indexOf(n.toLowerCase());return-1===i?t:(0,u.FD)(u.FK,{children:[(0,u.Y)("b",{children:t.slice(0,i+n.length)}),t.slice(i+n.length)]})}function h({committedText:e,handleAIAssistantSearch:t,highlightedIndex:n,open:i,setHighlightedIndex:h,suggestions:m,...p}){const f=(0,r._)(r.A.SHOW_AI_ASSISTANT_MODE_SWITCH);return i?(0,u.FD)(s.A,{anchorCorner:"bottomStart",open:i,...p,focusOnOpen:!1,style:{minWidth:"250px",padding:"2px 10px",width:"100%"},children:[f&&(0,u.Y)(a.A,{className:"navsuggest-list-item navsuggest-list-item-assistant mdc-deprecated-list-item",tag:"button",type:"button",onClick:e=>{e.preventDefault(),t(e)},onMouseMove:()=>h(-1),children:(0,u.FD)("div",{className:"navsuggest-list-item-label",children:[(0,u.Y)("img",{alt:"AI Assistant Search",src:"/images/common/AI-sparks-dark-min.svg",style:{height:"14px",margin:"1px 12px",verticalAlign:"middle",width:"14px"}}),(0,u.Y)(c.A,{children:(0,u.Y)("b",{children:"Try AI Assistant Search"})})]})}
2),m.map(({className:t,detail:i,iconClass:r,label:s,style:c,uri:m},p)=>(0,u.FD)(a.A,{"aria-selected":n===p,className:o()(t||"navsuggest-list-item"),highlighted:n===p?"":null,href:m,id:`navsuggest-item-${p}`,role:"option",style:c,tag:"a",onClick:()=>{(0,l.s)("search_suggestion_click",{link_url:m,position:p})},onMouseMove:()=>h(p),children:[(0,u.Y)("i",{className:`navsuggest-list-item-icon ${r}`}),(0,u.FD)("div",{className:"navsuggest-list-item-label",children:[(0,u.Y)("span",{className:"navsuggest-list-item-title",children:(0,u.Y)(d,{label:s,query:e})}),(0,u.Y)("span",{className:"navsuggest-list-item-detail",children:i})]})]},m))]}):null}},3710(e,t,n){n.r(t),n.d(t,{default:()=>d});var i=n(6942),o=n.n(i),r=n(9869),s=n(2260),a=n(1383),c=n(5554),l=n(7224),u=n(9698);function d({onClose:e,open:t,prepareTabHref:n,prepareTabLabel:i,setSelectedMoreTab:d,tabs:h,toggleFilter:m}){const{queryState:p}=(0,r.useContext)(a.Ay),[f,g]=(0,r.useState)(0),E=(0,r.useCallback)(t=>{e(),m(t),d(t)},[e,m,d]);return(0,u.Y)(c.A,{anchorCorner:"bottomLeft",className:"sk-tabs__dropdown",open:t,onClose:()=>{e(),g(0)},children:h.map(e=>(0,u.Y)(l.A,{className:o()("sk-tabs__more__item btn-sm",{"is-highlighted":h[f]===e}),href:n(p,e),tag:"a",onClick:t=>{(0,s.A)(t)||(t.preventDefault(),E(e))},onKeyDown:e=>{if("Enter"===e.key)E(h[f]);else if(["ArrowDown","ArrowUp"].includes(e.key)){const t="ArrowDown"===e.key?1:-1;g(e=>{let n=e+t;return n<0?n=h.length-1:n>=h.length&&(n=0),n})}},onMouseMove:()=>{f!==h.indexOf(e)&&g(h.indexOf(e))},children:i(e)},e))})}},719(e,t,n){n.r(t),n.d(t,{default:()=>a});var i=n(5549),o=n(2857),r=n(9002),s=n(9698);function a({CustomNoOptions:e,NestedCheckboxItemList:t,id:n,items:a,loading:c,onClose:l,onOpen:u,open:d,toggleFilter:h}){return(0,s.Y)(r.A,{children:(0,s.Y)(o.A,{anchorCorner:"bottomLeft",className:"filter-dropdown",open:d,style:{maxHeight:"9.5625rem"},onClose:l,onOpen:u,children:a.length>0?(0,s.Y)(t,{id:n,items:a,toggleItem:h}):c&&(0,s.Y)(i.A,{})||e&&(0,s.Y)(e,{})||"No options"})})}},1383(e,t,n){n.d(t,{HG:()=>_,isSection:()=>C});var i=n(9869),o=n(2109),r=n(7071),s=n(7033),a=n(3544),c=n(42),l=n(6780),u=n(7399),d=n(6660),h=n(9698);const m=u.A.SEARCH_NAMESPACE_FILTER.get()?[o.$Y]:[],p=u.A.ENABLE_SEMANTIC_SEARCH.get()?["vector"]:[],f=[].concat(m,p),g={q:""},E=new Set(["q","p","tab","order","similar","namespace","vector",o.ED,o.v]),A=(0,i.createContext)({}),T=A;function C(e){return["clause",o.Gd].includes(e)}function b(e){return Object.fromEntries(Object.entries((0,a.R2)(e)).filter(([e,t])=>E.has(e)||"object"==typeof t&&null!==t))}function O(){const e=document.querySelector("[data-search-index]"),t={};if(e){const{searchIndex:n,searchKey:i,searchTab:o,searchValue:r}=e.dataset;t.tab=o||n,i&&(t[i]={[r]:""})}return t}function v(e,{filtersFromPage:t=!1,replaceHistory:n=!1,resetState:i=!1,setFocus:r=!1,updateHistory:s=!0,...c}){let d=g;if(e.tab&&(d={...d,tab:e.tab}),i||(d={...e}),t&&(d={...O(),...d}),d=Object.fromEntries(Object.entries({...d,...c}).filter(([,e])=>!(void 0===e||"object"==typeof e&&0===Object.keys(e).length))),u.A.SEC_ONLY_FILTER_ENABLED.set(!!d[o.ED],{updateState:!1}),C(d.tab)||e.tab===d.tab||delete d.vector,d.vector)if(C(d.tab)||(d.tab="clause"),d[l.Pj]){const e={vector:d.vector,[l.Pj]:d[l.Pj]};l.FK.set("k",e)}else{const e=l.FK.get("k");d.vector===e?.vector&&(d[l.Pj]=e?.[l.Pj]||"")}else delete d[l.Pj];if([o.B2,"clause",o.Gd].includes(d.tab)?([o.B2,"clause",o.Gd].includes(e.tab)&&e.tab!==d.tab&&delete d.similar,d.similar?delete d.order:C(d.tab)&&(
2d.tab in d||d.vector?d.order="common":delete d.order)):(delete d.order,delete d.similar),C(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],o=d?.[t]?.[n];o!==i&&(d.q=o),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 m=JSON.stringify(e)!==JSON.stringify(d);return m&&e.p&&!c.p&&delete d.p,s&&(e!==g||m)&&function({pathname:e,replaceHistory:t=!1,search:n}){const{pathname:i,search:o}=window.location,r=(0,a.J1)({pathname:e,search:n});(0,a.J1)({pathname:i,search:o})!==r&&window.history[t?"replaceState":"pushState"](null,null,r)}({pathname:window.location.pathname.startsWith("/msword/")?"/msword/taskpane":(0,a.iY)("/search"),replaceHistory:n,search:(0,a.XT)(d)}),m?(r&&document.querySelector(".sk-search-box__text")?.focus(),d):e}function _({children:e}){const[t,a]=(0,i.useState)(null),[m,p]=(0,i.useState)(!0),[f,E]=(0,i.useState)(!1),[T,C]=(0,i.useReducer)(v,g),[O,_]=(0,i.useState)(),[I,y]=(0,i.useState)(!1),S=(0,i.useRef)(!1);(0,i.useEffect)(()=>(C({...b(window.location.search.replace(/^\?/,"")),...u.A.SEC_ONLY_FILTER_ENABLED.get()?{[o.ED]:!0}:{},filtersFromPage:!0,updateHistory:!1}),E(!0),(0,r.fv)(window,"popstate",()=>{a(null),C({tab:void 0,...b(window.location.search.replace(/^\?/,"")),resetState:!0,updateHistory:!1})})),[]),(0,i.useEffect)(()=>{f&&async function(){S.current&&document.dispatchEvent(new Event(o.qY.RECHECK_COUNTERS)),S.current=!0,p(!0),a(null);const e=document.querySelector(".search-fullscreen");e?.scrollIntoView();try{const e=await n.e(187).then(()=>n(8343));let t;if(t="contract"===T.tab&&"common"===T.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,T):T.vector?await e.default(T,{queryType:"runSemanticQuery"}):await e.default(T),T.p){const e=Math.max(Math.ceil(t.hits.total/t.size),1);if(T.p>e)return void C({p:e>1?e:void 0,replaceHistory:!0})}a(t)}catch(e){if("AbortError"===e.name)return;a({error:e})}p(!1)}()},[f,T]);const w=(0,i.useMemo)(()=>""===window.location.search?"$all":T.tab||"$all",[T]);return(0,i.useEffect)(()=>(0,r.fv)(document,o.qY.MSWORD_QUERY,async({detail:{q:e}})=>{if(u.A.ENABLE_SEMANTIC_SEARCH.get()){let t;p(!0);try{t=await(0,c.A)(e)}finally{p(!1)}(0,d.s)("search_filter_add",{name:"vector",trigger:"selection",value:e.length}),C({vector:t,[l.Pj]:e})}else(0,d.s)("search",{search_term:e,trigger:"selection"}),C({q:e})}),[C,p,w]),(0,i.useEffect)(()=>{T.namespace?.length>0&&!T.namespace.includes(u.A.NAMESPACE.get())&&(0,s.Fq)()},[T]),(0,h.Y)(A.Provider,{value:(0,i.useMemo)(()=>({activeTab:w,loading:m,queryState:T,results:t,setLoading:p,setQueryState:C,setSuggestedFilters:_,setSuggestedFiltersLoading:y,suggestedFilters:O,suggestedFiltersLoading:I}),[w,m,T,t,C,O,_,I,y]),children:e})}n.d(t,["Ay",0,T,"HA",0,m,"eg",0,p,"u8",0,f])},42(e,t,n){n.d(t,{A:()=>b});var i=n(3269),o=n.n(i),r=n(1132),s=n.n(r),a=n(4579),c=n.n(a),l=n(9869),u=n(2109),d=n(7071),h=n(7399),m=n(6402),p=n(6660),f=n(9698);const g="MODEL_LOADING_PROGRESS_EVENT";async function E(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 A(){const[e,t]=(0,l.useState)(0);return(0,l.useEffect)(()=>(0,d.fv)(document,g,({detail:{progress:e}})=>t(e)),[]),(0,f.FD)("div",{children:[(0,f.Y)("span",{children:"Downloading ClauseFinder⢠model..."}),(0,f.Y)("br",{}),(0,f.Y)("br",{}),(0,f.Y)("span",{children:(0,f.Y)(m.A,{className:"lXaTuyyU2i",progress:e})})]})}let T;const C=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},c()(e)}());async function b(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 E(await t.json())}const t=await C.lock();let i;try{i=await(async()=>
2{if(T)return T;const{env:e,pipeline:t}=await n.e(4276).then(()=>n(3910));let i;e.allowRemoteModels=!0,e.allowLocalModels=!1,e.useBrowserCache=!0;let o,r=!1;return T=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?(o=Date.now(),i=setTimeout(()=>{(0,d.xE)((0,f.Y)(A,{}),{key:g,timeout:-1}),r=!0},1e3)):"progress"===n?document.dispatchEvent(new CustomEvent(g,{detail:{progress:t/100}})):"done"===n&&(clearTimeout(i),r&&(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()-o}))))}}),T})()}finally{t()}const r=await i(e,{normalize:!0,pooling:"mean"}),a=o()(s(),function(e){return e.mul(555.487615435793).add(-13.262701442957137).round().clamp(-128,127).data}(r));return E(a)}},7375(e,t,n){n.r(t),n.d(t,{default:()=>s});var i=n(5554),o=n(9002),r=n(9698);function s({children:e,menuRef:t,onClose:n,open:s}){return(0,r.Y)(o.A,{children:(0,r.Y)(i.A,{ref:t,className:"filter-dropdown visible-scroll",focusOnOpen:!1,open:s,style:{maxHeight:"11em",padding:0},onClose:n,children:e})})}},3655(e,t,n){n.r(t),n.d(t,{default:()=>c});var i=n(4918),o=n(5391),r=n(2857),s=n(9002),a=n(9698);function c({autoSuggestList:e,onClick:t,onClose:n,open:c,resultTextSuffix:l,value:u}
2){return(0,a.Y)(s.A,{children:(0,a.FD)(r.A,{className:"menu-padding-vertical sidebar-filter",open:c,onClose:n,children:[e.length>0&&e.map(({label:e,uri:t})=>(0,a.FD)("a",{className:"full-width nav-list__menu__link",href:t,children:[(0,a.Y)("i",{className:"icon icon-arrow-forward icon-opacity"}),(0,a.Y)("span",{dangerouslySetInnerHTML:{__html:(0,i.d8)(e,u)}})]},t)),(0,a.FD)(o.A,{className:"nav-list__menu__link text-left",onClick:t,children:[(0,a.Y)("i",{className:"icon icon-search icon-opacity"}),(0,a.FD)("i",{children:['Click here to search for "',u,'" ',l]})]})]})})}},4491(e,t,n){n.r(t),n.d(t,{default:()=>r});const i=n(25).bi;var o=n(9698);function r({children:e,title:t}){return(0,o.Y)(i,{anchorCorner:"bottomLeft",handle:(0,o.FD)("h2",{className:"sidebar__title title-arrow row-flex flex-between no-margin title-sm page-title--bold",children:[t,(0,o.Y)("i",{className:"icon icon--sm icon--bordered icon-chevron-down-blue"})]}),children:(0,o.Y)("div",{className:"sidebar__inner",children:e})})}},3227(e,t,n){n.r(t),n.d(t,{default:()=>m});var i=n(7071),o=n(4929),r=n(6660),s=n(9698);const a="selection-placeholder",c={email:{baseUrl:"mailto:",params:{body:a,title:"subject"}},facebook:{baseUrl:"https://www.facebook.com/sharer/sharer.php",params:{quote:a,url:"u"}},linkedin:{baseUrl:"https://www.linkedin.com/sharing/share-offsite/",params:{title:"title",url:"url"}},reddit:{baseUrl:"https://www.reddit.com/submit",params:{title:"title",url:"url"}},x:{baseUrl:"https://x.com/intent/post",params:{text:a,title:"text",url:"url"}}},l=e=>{const t={height:400,left:document.documentElement.clientWidth/2-287.5,resizable:"yes",status:1,top:(document.documentElement.clientHeight-400)/2,width:575},n=window.open(e,"",(0,o.Ws)(t,","));return n?.focus(),n},u=(e,t)=>{if(!e?.target)return;const n=e.currentTarget,{networkName:i}=n.dataset;if("print"===i)return void l(n.getAttribute("href"));e.preventDefault();const{[i]:o}=c;if(!o)return;const{baseUrl:s,params:{title:u,url:d,...h}={}}=o;(0,r.s)("share",{method:i});const m=new URL(s),p={};d&&(p[d]=window.location.href),u&&(p[u]=document.title);for(const[e,n]of Object.entries(h))if(n===a&&t&&(p[e]=t),n===a&&"email"===i){const n=t?`${t}\n\n`:"";p[e]=`${n}${window.location.href}`}m.search=Object.entries(p).map(e=>e.map(encodeURIComponent).join("=")).join("&"),l(m.href)},d=[{icon:"icon-envelope-o",key:"email",label:"Email"},{icon:"icon-facebook-square",key:"facebook",label:"Facebook"},{icon:"icon-linkedin-square",key:"linkedin",label:"Linkedin"},{icon:"icon-x-square",key:"x",label:"X"},{icon:"icon-reddit-square",key:"reddit",label:"Reddit"}];function h({children:e,...t}){return(0,s.Y)("li",{className:"mdc-deprecated-list-item",...t,children:e})}function m({ItemComponent:e=h,closeTooltip:t,pdf:o,published:r,selection:a,shareItemsArray:c=d}){const l=[(0,s.FD)(e,{"data-source":"Copy Button",onClick:async()=>{const{Clipboard:e}=await Promise.resolve().then(()=>n(9214));(new e).copyRichText(window.location.href),(0,i.xE)("Link copied")},children:[(0,s.Y)("i",{className:"icon icon-copy"}),(0,s.Y)("span",{className:"share-label",children:"Copy Link"})]},"copy"),c.map(({icon:n,key:i,label:o})=>(0,s.FD)(e,{"data-network-name":i,onClick:e=>{u(e,a),t?.()},children:[(0,s.Y)("i",{className:`icon ${n}`}),(0,s.Y)("span",{className:"share-label",children:o})]},i))];return o&&r&&l.push((0,s.FD)(e,{"data-network-name":"print","data-source":"Print Button",href:o,rel:"auth",onClick:u,children:[(0,s.Y)("i",{className:"icon icon-print"}),(0,s.Y)("span",{className:"share-label",children:"Print"})]},"print")),l}m.selector="social-share-links",n.d(t,["openSharePopup",0,u])},959(e,t,n){n.r(t),n.d(t,{default:()=>a});var i=n(3227),o=n(5554),r=n(7224),s=n(9698);function a({onClose:e,open:t,pdf:n,published:a}){return(0,s.Y)(o.A,{anchorCorner:"topRight",open:t,onClose:e,children:(0,s.Y)(i.default,{ItemComponent:r.A,pdf:n,published:a})})}},8153(e,t,n){n.r(t),n.d(t,{default:()=>l});var i=n(2109),o=n(2818),r=n(7224),s=n(2857),a=n(9698);const c=[{role:"all",title:"Browse"},{queryParam:i.uB.uploadDialog,role:"write",title:"Upload Contracts"},{queryParam:i.uB.managePermissions,role:"write",title:"Manage Access"},{queryParam:"repository-info",role:"all",title:"View Info"}];function l({hide:e,id:t,open:n,userRole:i}){return(0,a.FD)(s.A,{className:"nav-list__menu",open:n,style:{left:"auto",minWidth:"152px",right:0,top:"100%"},onClose:e,children:[c.map(({queryParam:e,role:n,title:o})=>{if(["all",i].includes(n)){const n=e?`?${e}=true`:"";return(0,a.Y)(r.A,{className:"nav-list__menu__link",href:`/${t}${n}`,tag:"a",children:o},o)}return null}),"read"===i&&(0,a.Y)(o.A,{ButtonComponent:r.A,className:"nav-list__menu__link",repositoryId:t,title:"Leave"})]})}},2818(e,t,n){n.d(t,{A:()=>d});var i=n(9869),o=n(2109),r=n(7071),s=n(1917),a=n(5391),c=n(4681),l=n(9698);function u({children:e,...t}){return(0,l.Y)(a.A,{outlined:!0,...t,children:e})}function d({ButtonComponent:e=u,className:t=null,onSuccess:n=null,repositoryId:a,title:d="Leave Library"}){const[h,m]=(0,i.useState)(!1);return(0,l.Y)(e,{className:t,disabled:h,onClick:async()=>{m(!0);const{id:e}=(0,c.wz)(),t=await fetch(`/api/libraries/${a}/permissions/${e}`,{credentials:"same-origin",method:"DELETE"});m(!1),t.ok?"function"==typeof n?n(a):(0,r.l4)((0,l.FD)("p",{children:["You've left ",(0,s.Eo)(a,!1)," contract library",(0,l.Y)("br",{}),(0,l.FD)("b",{className:"text-nowrap",children:['"',a,'"']})]}),o.A.REPOSITORIES):(0,r.xE)("Couldn't leave library")},children:d})}},7033(e,t,n){n.d(t,{Fq:()=>c,Ub:()=>l,lJ:()=>a});
2var i=n(1774),o=n(7071),r=n(1917);const s=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,o.xE)("Failed to fetch namespaces from server. Please try again later."),!1)}async function c(){const e=await a(),t=e?.private||{},n=e?.public||{};s.set("namespaces",{...t,...n})}function l(e,t=""){const n=s.get("namespaces")||{};return`${t||n[e]?.label||e}${(0,r.Gi)(e)||(0,r.GQ)(e)?"":` (${e.toUpperCase()})`}`}n.d(t,["w",0,s])},5554(e,t,n){var i=n(25);const o=(0,n(0).A)(i.W1);n.d(t,["A",0,o])},7224(e,t,n){var i=n(25),o=n(9869),r=n(9698);function s({disabled:e=!1,...t},n){return(0,r.Y)(i.Dr,{...t,ref:n,disabled:e||void 0})}const a=(0,o.forwardRef)(s);n.d(t,["A",0,a])},2857(e,t,n){var i=n(25);const o=(0,n(0).A)(i.XN);n.d(t,["A",0,o])},0(e,t,n){n.d(t,{A:()=>s});var i=n(9869),o=n(9698);const r=(0,i.forwardRef)(({style:e,surfaceTag:t="div",...n},i)=>(0,o.Y)(t,{...n,ref:i,style:{...e,maxHeight:`min(${e?.maxHeight||"100vh"}, var(--menu-max-height, 100vh))`}}));function s(e){return(0,i.forwardRef)(({open:t,style:n,tag:i,...s},a)=>{const{maxHeight:c,...l}=n||{},u="number"==typeof c?`${c}px`:c;return(0,o.Y)(e,{...s,ref:a,"data-menu-open":t||void 0,open:t,style:{...l,"--menu-max-height":"none"===u?void 0:u},surfaceTag:i,tag:r})})}},9789(e,t,n){n.d(t,{A:()=>s});var i=n(6942),o=n.n(i),r=n(9698);function s(){return(0,r.Y)("span",{className:"sOUgtCr3QW",children:(0,r.Y)("i",{className:o()("oKUsFppZT8","icon icon--left")})})}},25(e,t,n){n.d(t,{W1:()=>N,Dr:()=>S,XN:()=>_,bi:()=>x});var i,o,r=n(9698),s=n(9869),a=n(6540),c=n(1953),l=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"},m={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"}(o||(o={}));var f,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=o.TOP_START,i.originCorner=o.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 m},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return o},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(){}
2,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.cssClasses.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(),o=this.getMenuSurfaceMaxHeight(n),r=this.hasBit(n,i.BOTTOM)?"bottom":"top",s=this.hasBit(n,i.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),c=this.getVerticalOriginOffset(n),l=this.measurements,u=l.anchorSize,d=l.surfaceSize,h=((e={})[s]=a,e[r]=c,e);u.width/d.width>p.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(s="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(h),this.adapter.setTransformOrigin(s+" "+r),this.adapter.setPosition(h),this.adapter.setMaxHeight(o?o+"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,o=this.originCorner,r=this.measurements,s=r.viewportDistance,a=r.anchorSize,c=r.surfaceSize,l=t.numbers.MARGIN_TO_E
2DGE;this.hasBit(this.anchorCorner,i.BOTTOM)?(e=s.top-l+this.anchorMargin.bottom,n=s.bottom-l-this.anchorMargin.bottom):(e=s.top-l+this.anchorMargin.top,n=s.bottom-l+a.height-this.anchorMargin.top),!(n-c.height>0)&&e>n+this.openBottomBias&&(o=this.setBit(o,i.BOTTOM));var u,d,h,m=this.adapter.isRtl(),p=this.hasBit(this.anchorCorner,i.FLIP_RTL),f=this.hasBit(this.anchorCorner,i.RIGHT)||this.hasBit(o,i.RIGHT);(h=m&&p?!f:f)?(u=s.left+a.width+this.anchorMargin.right,d=s.right-this.anchorMargin.right):(u=s.left+this.anchorMargin.left,d=s.right+a.width-this.anchorMargin.left);var g=u-c.width>0,E=d-c.width>0,A=this.hasBit(o,i.FLIP_RTL)&&this.hasBit(o,i.RIGHT);return E&&A&&m||!g&&A?o=this.unsetBit(o,i.RIGHT):(g&&h&&m||g&&!h&&f||!E&&u>=d)&&(o=this.setBit(o,i.RIGHT)),o},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,o=0,r=this.hasBit(e,i.BOTTOM),s=this.hasBit(this.anchorCorner,i.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return r?(o=n.top+this.anchorMargin.top-a,s||(o+=this.measurements.anchorSize.height)):(o=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,s&&(o-=this.measurements.anchorSize.height)),o},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.RIGHT),o=this.hasBit(this.anchorCorner,i.RIGHT);if(n){var r=o?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?r-(this.measurements.viewportSize.width-this.measurements.bodySize.width):r}return o?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,i.BOTTOM),o=this.hasBit(this.anchorCorner,i.BOTTOM);return n?o?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:o?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,i=this.measurements,o=i.windowScroll,r=i.viewportDistance,s=i.surfaceSize,a=i.viewportSize,c=Object.keys(e);try{for(var l=(0,u.Ju)(c),d=l.next();!d.done;d=l.next()){var h=d.value,m=e[h]||0;!this.isHorizontallyCenteredOnViewport||"left"!==h&&"right"!==h?(m+=r[h],this.isFixedPosition||("top"===h?m+=o.y:"bottom"===h?m-=o.y:"left"===h?m+=o.x:m-=o.x),e[h]=m):e[h]=(a.width-s.width)/2}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=l.return)&&n.call(l)}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),E=n(1072),A=n(7921),T={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},C={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"},b={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"}(f||(f={}));var O=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=f.LIST_ROOT,i.selectedIndex=-1,i}return(0,u.C6)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return b},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}}}
2,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,C.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 f.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case f.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case f.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,C.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,T.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,T.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,C.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,A.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,C.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,A.Y7.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,C.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 v={bottomEnd:"BOTTOM_END",bottomLeft:"BOTTOM_LEFT",bottomRight:"BOTTOM_RIGHT",bottomStart:"BOTTOM_START",topEnd:"TOP_END",topLeft:"TOP_LEFT",topRight:"TOP_RIGHT",topStart:"TOP_START"},_=(0,l.a0)(function(e,t){const{children:n,open:i,anchorCorner:o,onOpen:c,onClose:u,renderToPortal:d,fixed:h,apiRef:m,foundationRef:p,...f}=e,A=a.useRef(null),{rootEl:T}=((e,t)=>{const[n,i]=(0,s.useState)(e.open),o=(0,s.useRef)(null),r=(0,s.useRef)(null),a=(0,s.useRef)(null),c=(0,s.useRef)(null),{foundation:u,...d}=(0,l.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 o=e=>{u.handleBodyClick(e)},s=()=>{document.body.removeEventListener("click",o),document.body.removeEventListener("touchstart",o)},d=new g({addClass:t=>{e.addClass(t)},removeClass:t=>{e.removeClass(t)},hasClass:t=>"mdc-menu-surface"===t||e.hasClass(t),hasAnchor:()=>!!a.current,notifyClose:()=>{s(),i(!1)},notifyClosing:()=>n(g.strings.CLOSING_EVENT,{}),notifyOpen:()=>{n("onOpen",{}),setTimeout(()=>{document.body.addEventListener("click",o),document.body.addEventListener("touchstart",o)},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,E.d)(window,"transform")}-origin`;e.setStyle(n,t)},isFocused:()=>document.activeElement===e.ref,saveFocus:()=>{r.current=document.activeElement},restoreFocus:()=>{e.ref&&e.ref.contains(document.activeElement)&&r.current&&r.current.focus&&r.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())||l.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",{}),c.current=window.setTimeout(()=>{t().open||h(e)})};const m=d.destroy.bind(d);return d.destroy=()=>
2{s(),m()},d}}),{rootEl:h}=d,{onKeyDown:m}=e,p=(0,s.useCallback)(e=>{null==m||m(e),u.handleKeydown(e)},[m,u]);return h.setProp("onKeyDown",p,!0),(0,s.useEffect)(()=>{u.setFixedPosition(!!e.fixed)},[e.fixed,u]),(0,s.useEffect)(()=>{const e=(null==t?void 0:t.current)||h.ref;if(e){const t=(0,l.kp)(e,`.${g.cssClasses.ANCHOR}`);t&&(a.current=t)}},[t,h.ref]),(0,s.useEffect)(()=>{e.renderToPortal?u.setIsHoisted(!0):u.setIsHoisted(!1);const t=e.renderToPortal?()=>{try{u.autoposition()}catch{}}:()=>{};return(0,l.er)(()=>{u.isOpen()}),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[e.renderToPortal,u]),(0,s.useEffect)(()=>{const t=e.anchorCorner&&(e=>g.Corner[v[e]])(e.anchorCorner);if(void 0!==t){u.setAnchorCorner(t),u.dimensions=u.adapter.getInnerDimensions();try{u.autoposition()}catch{}}},[e.anchorCorner,u]),(0,s.useEffect)(()=>{if(n){const e=h.ref?h.ref.querySelectorAll(g.strings.FOCUSABLE_ELEMENTS):[];o.current=e.length>0?e[0]:null,u.open()}else u.isOpen()&&u.close()},[n,u,h.ref]),(0,s.useEffect)(()=>{i(!!e.open)},[e.open]),(0,s.useEffect)(()=>()=>{c.current&&window.clearTimeout(c.current)},[]),{...d}})(e,A),C=(0,l.UP)(e,["mdc-menu-surface",{"mdc-menu-surface--fixed":h}]);return(0,r.Y)(r.FK,{children:(0,r.Y)(l.zy,{renderTo:d,menuSurfaceDomPositionRef:A,children:(0,r.Y)(l.vw,{...f,element:T,className:C,ref:t,children:n})})})}),I=(0,l.a0)(function(e,t){const n=(0,l.UP)(e,["mdc-menu-surface--anchor"]);return(0,r.Y)(l.vw,{...e,className:n,ref:t})}),y=(0,l.a0)(function(e,t){const n=(0,l.UP)(e,["mdc-list mdc-menu__items"]);return(0,r.Y)(c.B8,{role:"menu",...e,className:n,ref:t})});y.displayName="MenuItems";const S=(0,l.a0)(function(e,t){return(0,r.Y)(c.ck,{role:"menuitem",tabIndex:0,...e,ref:t})}),w=e=>"MenuItems"===(0,l.Mn)(e),N=(0,l.a0)(function(e,t){const{children:n,focusOnOpen:i,onSelect:o,foundationRef:c,...u}=e,{rootEl:d,setListApi:h,setMenuSurfaceApi:m}=(e=>{const t=(0,s.useRef)(),n=(0,s.useRef)(),i=(0,s.useCallback)(()=>{var e;return(null==(e=n.current)?void 0:e.listElements())||[]},[]),{foundation:o,...r}=(0,l.P5)({props:{...e,apiRef:void 0},elements:{rootEl:!0},foundation:({emit:e})=>new O({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}=r,{onClick:c}=e,u=(0,s.useCallback)(e=>{null==c||c(e);const t=(0,l.kp)(e.target,".mdc-deprecated-list-item");t&&o.handleItemAction(t)},[o,c]),{onKeyDown:d}=e,h=(0,s.useCallback)(e=>{null==d||d(e),o.handleKeydown(e),13===e.which&&e.target instanceof Element&&n.current&&e.target.classList.contains(n.current.getClasses())&&o.handleItemAction(e.target)},[o,d]),{onOpen:m,focusOnOpen:p}=e,f=(0,s.useCallback)(e=>{const t=i();(p||void 0===p)&&t.length>0&&!t.some(e=>e===document.activeElement)&&t[0].focus(),null==m||m(e)},[m,p,i]);a.setProp("onKeyDown",h,!0),a.setProp("onClick",u,!0),a.setProp("onOpen",f,!0);const g=n.current&&t.current&&e.apiRef;return(0,s.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},...r}})(e),p=(a.Children.map(n,w)||[]).every(e=>!1===e),f={apiRef:h};return(0,r.Y)(_,{...d.props(u),className:(0,l.xW)("mdc-menu",u.className),apiRef:m,ref:t,children:p?(0,r.Y)(y,{...f,children:n}):a.Children.map(n,e=>w(e)?a.cloneElement(e,{...a.isValidElement(e)?e.props:{},...f}):e)})}),R=e=>
2function(t){const[n,i]=(0,s.useState)(!!t.open);(0,s.useEffect)(()=>{void 0!==t.open&&t.open!==n&&i(!!t.open)},[t.open,n]);const{handle:o,onClose:c,children:l,rootProps:u={},open:d,foundationRef:h,...m}=t,p=a.cloneElement(o,{...o.props,onClick:e=>{i(!n),o.props.onClick&&o.props.onClick(e)}});return(0,r.FD)(I,{...u,children:[(0,r.Y)(e,{...m,onClose:e=>{i(!!d||!1),null==c||c(e)},open:n,children:l}),p]})},x=(R(N),R(_))}}]); 3//# sourceMappingURL=menu.fc6be90f59.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.