1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8035],{76243:function(e,t,r){r.d(t,{HW:function(){return c}});var n=r(67294);function b(e){if(document.querySelector(`script[src="${e}"]`))return;let t=document.createElement("script");t.src=e,t.async=!0,t.type="module",document.head.appendChild(t)}function h(e,t){for(let[r,n]of Object.entries(t))null!=n&&e.setAttribute(r,n.toString())}let l=["loaded","comment:published","comment:edited","comment:deleted","comment:voted","comment:flagged","reaction","rating","auth:login:clicked","profile:clicked"];let y=class y{static script(e){e=e||"https://talk.hyvor.com",b(`${e}/embed/embed.js`)}static comments(e,t,r){y.script(e.instance);let n=document.createElement("hyvor-talk-comments");for(let[t,r]of Object.entries(e))if(null!=r){if("translations"===t&&"object"==typeof r){for(let[e,t]of Object.entries(r))e=e.replace("_","-"),n.setAttribute(`t-${e}`,t);continue}"settings"===t&&(r=JSON.stringify(r)),n.setAttribute(t,r)}return r&&l.forEach(e=>{n.addEventListener(e,t=>{r(e,t.detail)})}),t.appendChild(n),n}};let o="https://talk.hyvor.com";let w=class w{static script(e){e=e||o,b(`${e}/embed/comment-counts.js`)}static commentCount(e,t){w.script(e.instance);let r=document.createElement("hyvor-talk-comment-count");return h(r,e),t.appendChild(r),r}static load(e={},t=null){w.script(),customElements.whenDefined("hyvor-talk-comment-count").then(()=>{window.hyvorTalkCommentCounts.load(e,t)})}};let C=class C{static script(e){e=e||o,b(`${e}/embed/newsletter.js`)}static form(e,t){C.script(e.instance);let r=document.createElement("hyvor-talk-newsletter");return h(r,e),t.appendChild(r),r}};let s=["loaded","subscription:created","subscription:success","subscription:updated"];let v=class v{static script(e){e=e||o,b(`${e}/embed/memberships.js`)}static memberships(e,t,r){v.script(e.instance);let n=document.createElement("hyvor-talk-memberships");return h(n,e),r&&s.forEach(e=>{n.addEventListener(e,t=>{r(e,t.detail)})}),(t=t||document.body).appendChild(n),n}static gatedContent(e,t){let r=document.createElement("hyvor-talk-gated-content");return h(r,e),t.appendChild(r),r}};let c=(0,n.forwardRef)((e,t)=>{let r=(0,n.useRef)(null),l=(0,n.useRef)(null),{on:o,...s}=e;return(0,n.useImperativeHandle)(t,()=>({wrap:()=>r.current,element:()=>l.current}),[]),(0,n.useEffect)(()=>(l.current=y.comments(s,r.current,(t,r)=>{var n;let l=null==(n=e.on)?void 0:n[t];l&&"function"==typeof l&&l(r)}),()=>{var e;null==(e=l.current)||e.remove()}),[]),n.createElement("div",{className:"ht-comments-wrap",ref:r})});(0,n.forwardRef)((e,t)=>{let r=(0,n.useRef)(null),l=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,()=>({wrap:()=>r.current,element:()=>l.current}),[]),(0,n.useEffect)(()=>(l.current=w.commentCount(e,r.current),()=>{var e;null==(e=l.current)||e.remove()}),[]),n.createElement("span",{className:"ht-comment-count-wrap",ref:r})}),(0,n.forwardRef)((e,t)=>{let r=(0,n.useRef)(null),l=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,()=>({wrap:()=>r.current,element:()=>l.current}),[]),(0,n.useEffect)(()=>(l.current=C.form(e,r.current),()=>{var e;null==(e=l.current)||e.remove()}),[]),n.createElement("div",{className:"ht-newsletter-wrap",ref:r})}),(0,n.forwardRef)((e,t)=>{let r=(0,n.useRef)(null),l=(0,n.useRef)(null),{on:o,...s}=e;return(0,n.useImperativeHandle)(t,()=>({wrap:()=>r.current,element:()=>l.current}),[]),(0,n.useEffect)(()=>(l.current=v.memberships(s,r.current,(t,r)=>{var n;let l=null==(n=e.on)?void 0:n[t];l&&"function"==typeof l&&l(r)}),()=>{var e;null==(e=l.current)||e.remove()}),[]),n.createElement("div",{className:"ht-memberships-wrap",ref:r})}),(0,n.forwardRef)((e,t)=>{let r=(0,n.useRef)(null),l=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,()=>({wrap:()=>r.current,element:()=>l.current}),[]),(0,n.useEffect)(()=>{let t={...e};return t._key&&(t.key=t._key,delete t._key),l.current=v.gatedContent(t,r.current),()=>{var e;null==(e=l.current)||e.remove()}},[]),n.createElement("div",{className:"ht-gated-content-wrap",ref:r})})},89508:function(e,t,r){r.d(t,{M:function(){return AnimatePresence}});var n=r(85893),l=r(67294),o=r(25364),s=r(96681),c=r(75062),u=r(240),i=r(93243),a=r
1(16014);function setRef(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}let PopChildMeasure=class PopChildMeasure extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,i.R)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,i.R)(e)&&e.offsetWidth||0,n=(0,i.R)(e)&&e.offsetHeight||0,l=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(l.height),o.width=parseFloat(l.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=r-o.width-o.left,o.bottom=n-o.height-o.top,o.direction=l.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:t,anchorX:r,anchorY:o,root:s,pop:c}){let u=(0,l.useId)(),i=(0,l.useRef)(null),d=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:f}=(0,l.useContext)(a._),m=e.props?.ref??e?.ref,p=function(...e){return l.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=setRef(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():setRef(e[t],null)}}}}(...e),e)}(i,m);return(0,l.useInsertionEffect)(()=>{let{width:e,height:n,top:l,left:a,right:m,bottom:p,direction:g}=d.current;if(t||!1===c||!i.current||!e||!n)return;let E="rtl"===g,R="left"===r?E?`right: ${m}`:`left: ${a}`:E?`left: ${a}`:`right: ${m}`,k="bottom"===o?`bottom: ${p}`:`top: ${l}`;i.current.dataset.motionPopId=u;let $=document.createElement("style");f&&($.nonce=f);let P=s??document.head;return P.appendChild($),$.sheet&&$.sheet.insertRule(` 2 [data-motion-pop-id="${u}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${n}px !important; 6 ${R}px !important; 7 ${k}px !important; 8 } 9 `),()=>{i.current?.removeAttribute("data-motion-pop-id"),P.contains($)&&P.removeChild($)}},[t]),(0,n.jsx)(PopChildMeasure,{isPresent:t,childRef:i,sizeRef:d,pop:c,children:!1===c?e:l.cloneElement(e,{ref:p})})}let PresenceChild=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:d,anchorX:f,anchorY:m,root:p})=>{let g=(0,s.h)(newChildrenMap),E=(0,l.useId)(),R=(0,l.useRef)(r),k=(0,l.useRef)(o);(0,c.L)(()=>{R.current=r,k.current=o});let $=!0,P=(0,l.useMemo)(()=>($=!1,{id:E,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>{g.delete(e),R.current||g.size||k.current?.()})}),[r,g,o]);return a&&$&&(P={...P}),(0,l.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[r]),l.useEffect(()=>{r||g.size||!o||o()},[r]),e=(0,n.jsx)(PopChild,{pop:"popLayout"===d,isPresent:r,anchorX:f,anchorY:m,root:p,children:e}),(0,n.jsx)(u.O.Provider,{value:P,children:e})};function newChildrenMap(){return new Map}var d=r(15947);let getChildKey=e=>e.key||"";function onlyElements(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}let AnimatePresence=({children:e,custom:t,initial:r=!0,onExitComplete:u,presenceAffectsLayout:i=!0,mode:a="sync",propagate:f=!1,anchorX:m="left",anchorY:p="top",root:g})=>{let[E,R]=(0,d.oO)(f),k=(0,l.useMemo)(()=>onlyElements(e),[e]),$=f&&!E?[]:k.map(getChildKey),P=(0,l.useRef)(!0),j=(0,l.useRef)(k),x=(0,s.h)(()=>new Map),M=(0,l.useRef)(new Set),[I,_]=(0,l.useState)(k),[N,S]=(0,l.useState)(k);(0,c.L)(()=>{P.current=!1,j.current=k;for(let e=0;e<N.length;e++){let t=getChildKey(N[e]);$.includes(t)?(x.delete(t),M.current.delete(t)):!0!==x.get(t)&&x.set(t,!1)}},[N,$.length,$.join("-")]);let A=[];if(k!==I){let e=[...k];for(let t=0;t<N.length;t++){let r=N[t],n=getChildKey(r);$.includes(n)||(e.splice(t,0,r),A.push(r))}return"wait"===a&&A.length&&(e=A),S(onlyElements(e)),_(k),null}let{forceRender:H}=(0,l.useContext)(o.p);return(0,n.jsx)(n.Fragment,{children:N.map(e=>{let l=getChildKey(e),o=(!f||!!E)&&(k===N||$.includes(l));return(0,n.jsx)(PresenceChild,{isPresent:o,initial:(!P.current||!!r)&&void 0,custom:t,presenceAffectsLayout:i,mode:a,root:g,onExitComplete:o?void 0:()=>
9{if(M.current.has(l)||!x.has(l))return;M.current.add(l),x.set(l,!0);let e=!0;x.forEach(t=>{t||(e=!1)}),e&&(H?.(),S(j.current),f&&R?.(),u&&u())},anchorX:m,anchorY:p,children:e},l)})})}}}]);
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.