1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14595,(e,t,r)=>{"use strict";var n=e.r(71645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,l=n.useRef,a=n.useEffect,s=n.useMemo,c=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,u){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var p=o(e,(f=s(function(){function e(e){if(!a){if(a=!0,o=e,e=n(e),void 0!==u&&d.hasValue){var t=d.value;if(u(t,e))return l=t}return l=e}if(t=l,i(o,e))return t;var r=n(e);return void 0!==u&&u(t,r)?(o=e,t):(o=e,l=r)}var o,l,a=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,n,u]))[0],f[1]);return a(function(){d.hasValue=!0,d.value=p},[p]),c(p),p}},13027,(e,t,r)=>{"use strict";t.exports=e.r(14595)},99086,e=>{"use strict";var t,r,n=e.i(43476);e.i(47167);var i=e.i(71645),o=(e.i(13027),{notify(){},get:()=>[]}),l="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,a="u">typeof navigator&&"ReactNative"===navigator.product,s=l||a?i.useLayoutEffect:i.useEffect,c=Symbol.for("react-redux-context"),u="u">typeof globalThis?globalThis:{},f=function(){if(!i.createContext)return{};let e=u[c]??=new Map,t=e.get(i.createContext);return t||(t=i.createContext(null),e.set(i.createContext,t)),t}(),d=function(e){let{children:t,context:r,serverState:n,store:l}=e,a=i.useMemo(()=>{let e=function(e){let t,r=o,n=0,i=!1;function l(){c.onStateChange&&c.onStateChange()}function a(){if(n++,!t){let n,i;t=e.subscribe(l),n=null,i=null,r={clear(){n=null,i=null},notify(){let e=n;for(;e;)e.callback(),e=e.next},get(){let e=[],t=n;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=i={callback:e,next:null,prev:i};return r.prev?r.prev.next=r:n=r,function(){t&&null!==n&&(t=!1,r.next?r.next.prev=r.prev:i=r.prev,r.prev?r.prev.next=r.next:n=r.next)}}}}}function s(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=o)}let c={addNestedSub:function(e){a();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),s())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:l,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,a())},tryUnsubscribe:function(){i&&(i=!1,s())},getListeners:()=>r};return c}(l);return{store:l,subscription:e,getServerState:n?()=>n:void 0}},[l,n]),c=i.useMemo(()=>l.getState(),[l]);return s(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==l.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,c]),i.createElement((r||f).Provider,{value:a},t)};function p(e=f){return function(){return i.useContext(e)}}var h=p();var m=Symbol.for("immer-nothing"),y=Symbol.for("immer-draftable"),g=Symbol.for("immer-state");function x(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var b=Object,v=b.getPrototypeOf,w="constructor",_="prototype",j="configurable",k="enumerable",N="writable",S="value",C=e=>!!e&&!!e[g];function E(e){return!!e&&(M(e)||A(e)||!!e[y]||!!e[w]?.[y]||z(e)||$(e))}var P=b[_][w].toString(),O=new WeakMap;function M(e){if(!e||!W(e))return!1;let t=v(e);if(null===t||t===b[_])return!0;let r=b.hasOwnProperty.call(t,w)&&t[w];if(r===Object)return!0;if(!U(r))return!1;let n=O.get(r);return void 0===n&&(n=Function.toString.call(r),O.set(r,n)),n===P}function R(e,t,r=!0){0===D(e)?(r?Reflect.ownKeys(e):b.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function D(e){let t=e[g];return t?t.type_:A(e)?1:z(e)?2:3*!!$(e)}var T=(e,t,r=D(e))=>2===r?e.has(t):b[_].hasOwnProperty.call(e,t),L=(e,t,r=D(e))=>2===r?e.get(t):e[t],I=(e,t,r,n=D(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},A=Array.isArray,z=e=>e instanceof Map,$=e=>e instanceof Set,W=e=>"object"==typeof e,U=e=>"function"==typeof e,F=e=>e.modified_?e.copy_:e.base_;function B(e,t){if(z(e))return new Map(e);if($(e))return new Set(e);if(A(e))return Array[_].slice.call(e);let r=M(e);if(!0!==t&&("class_only"!==t||r)){let t=v(e);if(null!==t&&r)return{...e};let n=b.create(t);return b.assign(n,e)}{let t=b.getOwnPropertyDescriptors(e);delete t[g];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let i=r[n],o=t[i];!1===o[N]&&(o[N]=!0,o[j]=!0),(o.get||o.set)&&(t[i]={[j]:!0,[N]:!0,[k]:o[k],[S]:e[i]})}return b.create(v(e),t)}}function K(e,t=!1){return H(e)||C(e)||!E(e)||(D(e)>
11&&b.defineProperties(e,{set:q,add:q,clear:q,delete:q}),b.freeze(e),t&&R(e,(e,t)=>{K(t,!0)},!1)),e}var q={[S]:function(){x(2)}};function H(e){return!(null!==e&&W(e))||b.isFrozen(e)}var X="MapSet",V="Patches",G="ArrayMethods",Q={};function J(e){let t=Q[e];return t||x(0,e),t}var Y=e=>!!Q[e];function Z(e,t){t&&(e.patchPlugin_=J(V),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ee(e){et(e),e.drafts_.forEach(en),e.drafts_=null}function et(e){e===r&&(r=e.parent_)}var er=e=>r={drafts_:[],parent_:r,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Y(X)?J(X):void 0,arrayMethodsPlugin_:Y(G)?J(G):void 0};function en(e){let t=e[g];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function ei(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];if(void 0!==e&&e!==r){r[g].modified_&&(ee(t),x(4)),E(e)&&(e=eo(t,e));let{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[g].base_,e,t)}else e=eo(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&K(t,r)}(t,e,!0),ee(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==m?e:void 0}function eo(e,t){if(H(t))return t;let r=t[g];if(!r)return ef(t,e.handledSet_,e);if(!ea(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);eu(r,e)}return r.copy_}function el(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ea=(e,t)=>e.scope_===t,es=[];function ec(e,t,r,n){let i=e.copy_||e.base_,o=e.type_;if(void 0!==n&&L(i,n,o)===t)return void I(i,n,r,o);if(!e.draftLocations_){let t=e.draftLocations_=new Map;R(i,(e,r)=>{if(C(r)){let n=t.get(r)||[];n.push(e),t.set(r,n)}})}for(let n of e.draftLocations_.get(t)??es)I(i,n,r,o)}function eu(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:r}=t;if(r){let n=r.getPath(e);n&&r.generatePatches_(e,n,t)}el(e)}}function ef(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||C(e)||t.has(e)||!E(e)||H(e)||(t.add(e),R(e,(n,i)=>{if(C(i)){let t=i[g];ea(t,r)&&(I(e,n,F(t),e.type_),el(t))}else E(i)&&ef(i,t,r)})),e}var ed={get(e,t){let r;if(t===g)return e;let n=e.scope_.arrayMethodsPlugin_,i=1===e.type_&&"string"==typeof t;if(i&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let o=e.copy_||e.base_;if(!T(o,t,e.type_)){var l;let r;return l=e,(r=em(o,t))?S in r?r[S]:r.get?.call(l.draft_):void 0}let a=o[t];if(e.finalized_||!E(a)||i&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Number.isInteger(r=+t)&&String(r)===t)return a;
1if(a===eh(e.base_,t)){eg(e);let r=1===e.type_?+t:t,n=eb(e.scope_,a,e,r);return e.copy_[r]=n}return a},has:(e,t)=>t in(e.copy_||e.base_),ownKeys:e=>Reflect.ownKeys(e.copy_||e.base_),set(e,t,r){let n=em(e.copy_||e.base_,t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=eh(e.copy_||e.base_,t),i=n?.[g];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||T(e.base_,t,e.type_)))return!0;eg(e),ey(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_.set(t,!0),!function(e,t,r){let{scope_:n}=e;if(C(r)){let i=r[g];ea(i,n)&&i.callbacks_.push(function(){eg(e),ec(e,r,F(i),t)})}else E(r)&&e.callbacks_.push(function(){let i=e.copy_||e.base_;3===e.type_?i.has(r)&&ef(r,n.handledSet_,n):L(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&ef(L(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r),!0)},deleteProperty:(e,t)=>(eg(e),void 0!==eh(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),ey(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=e.copy_||e.base_,n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[N]:!0,[j]:1!==e.type_||"length"!==t,[k]:n[k],[S]:r[t]}:n},defineProperty(){x(11)},getPrototypeOf:e=>v(e.base_),setPrototypeOf(){x(12)}},ep={};for(let e in ed){let t=ed[e];ep[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function eh(e,t){let r=e[g];return(r?r.copy_||r.base_:e)[t]}function em(e,t){if(!(t in e))return;let r=v(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=v(r)}}function ey(e){!e.modified_&&(e.modified_=!0,e.parent_&&ey(e.parent_))}function eg(e){e.copy_||(e.assigned_=new Map,e.copy_=B(e.base_,e.scope_.immer_.useStrictShallowCopy_))}ep.deleteProperty=function(e,t){return ep.set.call(this,e,t,void 0)},ep.set=function(e,t,r){return ed.set.call(this,e[0],t,r,e[0])};var ex=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{let n;if(U(e)&&!U(t)){let r=t;t=e;let n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}if(U(t)||x(6),void 0===r||U(r)||x(7),E(e)){let i=er(this),o=eb(i,e,void 0),l=!0;try{n=t(o),l=!1}finally{l?ee(i):et(i)}return Z(i,r),ei(n,i)}if(e&&W(e))x(1,e);else{if(void 0===(n=t(e))&&(n=e),n===m&&(n=void 0),this.autoFreeze_&&K(n,!0),r){let t=[],i=[];J(V).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return U(e)?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},(e=>"boolean"==typeof e)(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),(e=>"boolean"==typeof e)(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),(e=>"boolean"==typeof e)(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){E(e)||x(8),C(e)&&(e=function(e){return C(e)||x(10,e),function e(t){let r;if(!E(t)||H(t))return t;let n=t[g],i=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=B(t,n.scope_.immer_.useStrictShallowCopy_),i=n.scope_.immer_.shouldUseStrictIteration()}else r=B(t,!0);return R(r,(t,n)=>{I(r,t,e(n))},i),n&&(n.finalized_=!1),r}(e)}(e));let t=er(this),r=eb(t,e,void 0);return r[g].isManual_=!0,et(t),r}finishDraft(e,t){let r=e&&e[g];r&&r.isManual_||x(9);let{scope_:n}=r;return Z(n,t),ei(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=J(V).applyPatches_;return C(e)?n(e,t):this.produce(e,e=>n(e,t))}};function eb(e,t,n,i){let[o,l]=z(t)?J(X).proxyMap_(t,n):$(t)?J(X).proxySet_(t,n):function(e,t){let n=A(e),i={type_:+!!n,scope_:t?t.scope_:r,modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,l=ed;n&&(o=[i],l=ep);let{revoke:a,proxy:s}=Proxy.revocable(o,l);return i.draft_=s,i.revoke_=a,[s,i]}(t,n);if((n?.scope_??r).drafts_.push(o),l.callbacks_=n?.callbacks_??[],l.key_=i,n&&void 0!==i)n.callbacks_.push(function(e){if(!l||!ea(l,e))return;e.mapSetPlugin_?.fixSetContents(l);let t=F(l);ec(n,l.draft_??l,t,i),eu(l,e)});else l.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(l);let{patchPlugin_:t}=e;l.modified_&&t&&t.generatePatches_(l,[],e)});return o}var ev=new ex().produce,ew=e=>Array.isArray(e)?e:[e],e_=0,ej=class{revision=e_;_value;
1_lastValue;_isEqual=ek;constructor(e,t=ek){this._value=this._lastValue=e,this._isEqual=t}get value(){return this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++e_)}};function ek(e,t){return e===t}function eN(e){return e instanceof ej||console.warn("Not a valid cell! ",e),e.value}var eS=(e,t)=>!1;function eC(){return function(e=ek){return new ej(null,e)}(eS)}var eE=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=eC()),eN(t)};Symbol();var eP=0,eO=Object.getPrototypeOf({}),eM=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy(this,eR);tag=eC();tags={};children={};collectionTag=null;id=eP++},eR={get:(e,t)=>(function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in eO)return n;if("object"==typeof n&&null!==n){var i;let r=e.children[t];return void 0===r&&(r=e.children[t]=Array.isArray(i=n)?new eD(i):new eM(i)),r.tag&&eN(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=eC()).value=n),eN(r),n}})(),ownKeys:e=>(eE(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},eD=class{constructor(e){this.value=e,this.value=e,this.tag.value=e}proxy=new Proxy([this],eT);tag=eC();tags={};children={};collectionTag=null;id=eP++},eT={get:([e],t)=>("length"===t&&eE(e),eR.get(e,t)),ownKeys:([e])=>eR.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>eR.getOwnPropertyDescriptor(e,t),has:([e],t)=>eR.has(e,t)},eL="u">typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function eI(){return{s:0,v:void 0,o:null,p:null}}function eA(e,t={}){let r,n=eI(),{resultEqualityCheck:i}=t,o=0;function l(){let t,l=n,{length:a}=arguments;for(let e=0;e<a;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=l.o;null===e&&(l.o=e=new WeakMap);let r=e.get(t);void 0===r?(l=eI(),e.set(t,l)):l=r}else{let e=l.p;null===e&&(l.p=e=new Map);let r=e.get(t);void 0===r?(l=eI(),e.set(t,l)):l=r}}let s=l;if(1===l.s)t=l.v;else if(t=e.apply(null,arguments),o++,i){let e=r?.deref?.()??r;null!=e&&i(e,t)&&(t=e,0!==o&&o--),r="object"==typeof t&&null!==t||"function"==typeof t?new eL(t):t}return s.s=1,s.v=t,t}return l.clearCache=()=>{n=eI(),l.resetResultsCount()},l.resultsCount=()=>o,l.resetResultsCount=()=>{o=0},l}var ez=function(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n,i=0,o=0,l={},a=e.pop();"object"==typeof a&&(l=a,a=e.pop()),function(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:u=eA,argsMemoizeOptions:f=[],devModeChecks:d={}}={...r,...l},p=ew(c),h=ew(f),m=(!function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t=Array.isArray(e[0])?e[0]:e,"createSelector expects all input-selectors to be functions, but received the following types: "),t),y=s(function(){return i++,a.apply(null,arguments)},...p);return Object.assign(u(function(){o++;let e=function(e,t){let r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}(m,arguments);return n=y.apply(null,e)},...h),{resultFunc:a,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>n,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:s,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}(eA),e$=Object.assign((e,t=ez)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>e$});function eW(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eU="function"==typeof Symbol&&Symbol.observable||"@@observable",eF=()=>Math.random().toString(36).substring(7).split("").join("."),eB={INIT:`@@redux/INIT${eF()}`,REPLACE:`@@redux/REPLACE${eF()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${eF()}`};function eK(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function eq(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>
1(...r)=>e(t(...r)))}function eH(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var eX=eH(),eV="u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?eq:eq.apply(null,arguments)};function eG(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(te(0));return{type:e,payload:r.payload,..."meta"in r&&{meta:r.meta},..."error"in r&&{error:r.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>eK(t)&&"type"in t&&"string"==typeof t.type&&t.type===e,r}"u">typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var eQ=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function eJ(e){return E(e)?ev(e,()=>{}):e}function eY(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var eZ=e=>t=>{setTimeout(t,e)};function e0(e){let t,r={},n=[],i={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(te(28));if(n in r)throw Error(te(29));return r[n]=t,i},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),i),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(t=e,i)};return e(i),[r,n,t]}var e1=Symbol.for("rtk-slice-createasyncthunk"),e2=((t=e2||{}).reducer="reducer",t.reducerWithPrepare="reducerWithPrepare",t.asyncThunk="asyncThunk",t),e4=function({creators:e}={}){let t=e?.asyncThunk?.[e1];return function(e){let r,{name:n,reducerPath:i=n}=e;if(!n)throw Error(te(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},l=Object.keys(o),a={},s={},c={},u=[],f={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(te(12));if(r in s)throw Error(te(13));return s[r]=t,f},addMatcher:(e,t)=>(u.push({matcher:e,reducer:t}),f),exposeAction:(e,t)=>(c[e]=t,f),exposeCaseReducer:(e,t)=>(a[e]=t,f)};function d(){let[t={},r=[],n]="function"==typeof e.extraReducers?e0(e.extraReducers):[e.extraReducers],i={...t,...s};return function(e,t){let r,[n,i,o]=e0(t);if("function"==typeof e)r=()=>eJ(e());else{let t=eJ(e);r=()=>t}function l(e=r(),t){let a=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===a.filter(e=>!!e).length&&(a=[o]),a.reduce((e,r)=>{if(r)if(C(e)){let n=r(e,t);return void 0===n?e:n}else{if(E(e))return ev(e,e=>r(e,t));let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}return e},e)}return l.getInitialState=r,l}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of u)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}l.forEach(r=>{let i=o[r],l={reducerName:r,type:`${n}/${r}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===i._reducerDefinitionType?function({type:e,reducerName:t},r,n,i){if(!i)throw Error(te(18));let{payloadCreator:o,fulfilled:l,pending:a,rejected:s,settled:c,options:u}=r,f=i(e,o,u);n.exposeAction(t,f),l&&n.addCase(f.fulfilled,l),a&&n.addCase(f.pen
1ding,a),s&&n.addCase(f.rejected,s),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:l||e5,pending:a||e5,rejected:s||e5,settled:c||e5})}(l,i,f,t):function({type:e,reducerName:t,createNotation:r},n,i){let o,l;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(te(17));o=n.reducer,l=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,l?eG(e,l):eG(e))}(l,i,f)});let p=e=>e,h=new Map,m=new WeakMap;function y(e,t){return r||(r=d()),r(e,t)}function g(){return r||(r=d()),r.getInitialState()}function x(t,r=!1){function n(e){let i=e[t];return void 0===i&&r&&(i=eY(m,n,g)),i}function i(t=p){let n=eY(h,r,()=>new WeakMap);return eY(n,t,()=>{let n={};for(let[i,o]of Object.entries(e.selectors??{}))n[i]=function(e,t,r,n){function i(o,...l){let a=t(o);return void 0===a&&n&&(a=r()),e(a,...l)}return i.unwrapped=e,i}(o,t,()=>eY(m,t,g),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}let b={name:n,reducer:y,actions:c,caseReducers:a,getInitialState:g,...x(i),injectInto(e,{reducerPath:t,...r}={}){let n=t??i;return e.inject({reducerPath:n,reducer:y},r),{...b,...x(n,!0)}}};return b}}();function e5(){}var{assign:e6}=Object,e3="listenerMiddleware",e7=e6(e=>{let{type:t,predicate:r,effect:n}=(e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=eG(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(i);else throw Error(te(21));if("function"!=typeof o)throw TypeError(te(32));return{predicate:i,type:t,effect:o}})(e);return{id:((e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t}
1)(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(te(22))}}},{withTypes:()=>e7}),e8=e6(eG(`${e3}/add`),{withTypes:()=>e8}),e9=e6(eG(`${e3}/remove`),{withTypes:()=>e9});function te(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}Symbol.for("rtk-state-proxy-original");let tt=e4({name:"app",initialState:{hydrated:!0},reducers:{}}).reducer;e.s(["StoreProvider",0,function({children:e}){let[t]=(0,i.useState)(()=>(function(e){let t,r,n,i=function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{},o=new eQ;return t&&("boolean"==typeof t?o.push(eX):o.push(eH(t.extraArgument))),o},{reducer:o,middleware:l,devTools:a=!0,duplicateMiddlewareCheck:s=!0,preloadedState:c,enhancers:u}=e||{};if("function"==typeof o)t=o;else if(eK(o))t=function(e){let t,r=Object.keys(e),n={};for(let t=0;t<r.length;t++){let i=r[t];"function"==typeof e[i]&&(n[i]=e[i])}let i=Object.keys(n);try{Object.keys(n).forEach(e=>{let t=n[e];if(void 0===t(void 0,{type:eB.INIT}))throw Error(eW(12));if(void 0===t(void 0,{type:eB.PROBE_UNKNOWN_ACTION()}))throw Error(eW(13))})}catch(e){t=e}return function(e={},r){if(t)throw t;let o=!1,l={};for(let t=0;t<i.length;t++){let a=i[t],s=n[a],c=e[a],u=s(c,r);if(void 0===u)throw r&&r.type,Error(eW(14));l[a]=u,o=o||u!==c}return(o=o||i.length!==Object.keys(e).length)?l:e}}(o);else throw Error(te(1));r="function"==typeof l?l(i):i();let f=eq;a&&(f=eV({trace:!1,..."object"==typeof a&&a}));let d=(n=function(...e){return t=>(r,n)=>{let i=t(r,n),o=()=>{throw Error(eW(15))},l={getState:i.getState,dispatch:(e,...t)=>o(e,...t)};return o=eq(...e.map(e=>e(l)))(i.dispatch),{...i,dispatch:o}}}(...r),function(e){let{autoBatch:t=!0}=e??{},r=new eQ(n);return t&&r.push(((e={type:"raf"})=>t=>(...r)=>{let n=t(...r),i=!0,o=!1,l=!1,a=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"u">typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:eZ(10):"callback"===e.type?e.queueNotification:eZ(e.timeout),c=()=>{l=!1,o&&(o=!1,a.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>i&&e());return a.add(e),()=>{t(),a.delete(e)}},dispatch(e){try{return(o=!(i=!e?.meta?.RTK_autoBatch))&&!l&&(l=!0,s(c)),n.dispatch(e)}finally{i=!0}}})})("object"==typeof t?t:void 0)),r});return function e(t,r,n){if("function"!=typeof t)throw Error(eW(2));if("function"==typeof r&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw Error(eW(0));if("function"==typeof r&&void 0===n&&(n=r,r=void 0),void 0!==n){if("function"!=typeof n)throw Error(eW(1));return n(e)(t,r)}let i=t,o=r,l=new Map,a=l,s=0,c=!1;function u(){a===l&&(a=new Map,l.forEach((e,t)=>{a.set(t,e)}))}function f(){if(c)throw Error(eW(3));return o}function d(e){if("function"!=typeof e)throw Error(eW(4));if(c)throw Error(eW(5));let t=!0;u();let r=s++;return a.set(r,e),function(){if(t){if(c)throw Error(eW(6));t=!1,u(),a.delete(r),l=null}}}function p(e){if(!eK(e))throw Error(eW(7));if(void 0===e.type)throw Error(eW(8));if("string"!=typeof e.type)throw Error(eW(17));if(c)throw Error(eW(9));try{c=!0,o=i(o,e)}finally{c=!1}return(l=a).forEach(e=>{e()}),e}return p({type:eB.INIT}),{dispatch:p,subscribe:d,getState:f,replaceReducer:function(e){if("function"!=typeof e)throw Error(eW(10));i=e,p({type:eB.REPLACE})},[eU]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(eW(11));function t(){e.next&&e.next(f())}return t(),{unsubscribe:d(t)}},[eU](){return this}}}}}(t,c,f(..."function"==typeof u?u(d):d()))})({reducer:{app:tt},middleware:e=>e(),devTools:!1}));return(0,n.jsx)(d,{store:t,children:e})}],99086)},67585,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let n=e.r(32061);function i({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new n.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},9885,(e,t,r)=>{"use strict";function n(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"encodeURIPath",{enumerable:!0,get:function(){return n}})},52157,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"PreloadChunks",{enumerable:!0,get:function(){return s}});let n=e.r(43476),i=e.r(74080),o=e.r(63599),l=e.r(9885),a=e.r(43369);function s({moduleIds:e}){if("u">typeof window)return null;let t=o.workAsyncStorage.getStore();if(void 0===t)return null;let r=[];if(t.reactLoadableManifest&&e){let n=t.reactLoadableManifest;for(let t of e){if(!n[t])continue;let e=n[t].files;r.push(...e)}}if(0===r.length)return null;let c=(0,a.getAssetTokenQuery)();return(0,n.jsx)(n.Fragment,{children:r.map(e=>{let r=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${c}`;return e.endsWith(".css")?(0,n.jsx)("link",{precedence:"dynamic",href:r,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,i.preload)(r,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},69093,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return c}});let n=e.r(43476),i=e.r(71645),o=e.r(67585),l=e.r(52157);function a(e){return{default:e&&"default"in e?e.default:e}}let s={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...s,...e},r=(0,i.lazy)(()=>t.loader().then(a)),c=t.loading;function u(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,s=!t.ssr||!!t.loading,u=s?i.Suspense:i.Fragment,f=t.ssr?(0,n.jsxs)(n.Fragment,{children:["u"<typeof window?(0,n.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(u,{...s?{fallback:a}:{},children:f})}return u.displayName="LoadableComponent",u}},70703,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}});let n=e.r(55682)._(e.r(69093));function i(e,t){let r={};"function"==typeof e&&(r.loader=e);let i={...r,...t};return(0,n.default)({...i,modules:i.loadableGenerated?.modules})}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},91785,e=>{"use strict";var t=e.i(43476),r=e.i(70703),n=e.i(18566);let i=["/va-loans","/usda-home-loans","/new-construction","/mortgage-rates","/jumbo-loans","/fixed-rate-mortgages","/dsha","/adjustable-rate-mortgages"],o=(0,r.default)(()=>e.A(78693).then(e=>({default:e.LoanPageApplyFlowProvider})),{loadableGenerated:{modules:[76240]}});e.s(["LoanPageApplyFlowBoundary",0,function({children:e}){var r;return(r=(0,n.usePathname)(),i.some(e=>r===e||r.startsWith(`${e}/`)))?(0,t.jsx)(o,{children:e}):e}],91785)},11458,e=>{"use strict";var t=e.i(43476),r=e.i(57688),n=e.i(22016);let i="mx-auto w-full max-w-[1536px] px-4 sm:px-6 lg:px-8 xl:px-12",o="lg:px-4 lg:py-3 lg:text-sm lg:leading-5 xl:px-6 xl:py-4 xl:text-sm xl:leading-5 2xl:px-8 2xl:py-5 2xl:text-base",l="inline-flex flex-col items-start justify-start overflow-hidden rounded-2xl bg-white p-4 shadow-[0px_4px_10px_0px_rgba(0,0,0,0.25)] outline outline-1 outline-offset-[-1px] outline-neutral-100",a="self-stretch p-4 inline-flex items-center justify-center gap-2.5 overflow-hidden rounded-lg bg-white hover:bg-brand-header/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-header/50",s="flex-1 justify-center font-semibold text-ds-neutral-black text-[13px] leading-snug xl:text-sm xl:leading-5 2xl:text-base 2xl:leading-5";var c=e.i(17431),u=e.i(33008);function f({href:e,ariaLabel:n,wrapperClassName:i,imgSrc:o,imgWidth:l,imgHeight:a,imgClassName:s}){return(0,t.jsx)("a",{className:i,href:e,"aria-label":n,target:"_blank",rel:"noreferrer",children:(0,t.jsx)(r.default,{src:o,alt:"",width:l,height:a,className:s,unoptimized:!0})})}function d(){let{headerBar:e}=u.siteConfig;return(0,t.jsx)("div",{className:"w-full bg-brand-header text-white",children:(0,t.jsxs)("div",{className:`${i} flex items-center justify-between gap-4 py-2.5`,children:[(0,t.jsxs)(n.default,{href:e.highlightHref,className:"flex items-center gap-2 text-center text-sm font-semibold leading-5 underline decoration-solid hover:opacity-90 lg:text-left",children:[(0,t.jsx)("span",{className:"lg:hidden",children:"TOP LENDER with DSHA"}),(0,t.jsx)("span",{className:"hidden lg:inline",children:e.highlight}),(0,t.jsx)(r.default,{src:c.images.figmaNav.arrowRight16,alt:"",width:16,height:16,className:"size-4 shrink-0",unoptimized:!0})]}),(0,t.jsxs)("div",{className:"flex items-center gap-5 lg:hidden",children:[(0,t.jsx)(f,{href:e.social.instagram,ariaLabel:"Instagram",wrapperClassName:"flex justify-center gap-2.5 overflow-hidden p-0.5",imgSrc:c.images.figmaHome.instagram24,imgWidth:20,imgHeight:20,imgClassName:"h-5 w-5 object-contain"}),(0,t.jsx)(f,{href:e.social.facebook,ariaLabel:"Facebook",wrapperClassName:"flex h-6 w-6 justify-center gap-2.5 p-0.5",imgSrc:c.images.figmaHome.facebook24,imgWidth:12,imgHeight:20,imgClassName:"h-5 w-3 object-contain"})]}),(0,t.jsxs)("div",{className:"hidden shrink-0 flex-wrap items-center justify-center gap-6 lg:flex lg:justify-end",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(f,{href:e.social.instagram,ariaLabel:"Instagram",wrapperClassName:"flex justify-center gap-2.5 overflow-hidden p-0.5",imgSrc:c.images.figmaHome.instagram24,imgWidth:20,imgHeight:20,imgClassName:"h-5 w-5 object-contain"}),(0,t.jsx)(f,{href:e.social.facebook,ariaLabel:"Facebook",wrapperClassName:"flex h-6 w-6 justify-center gap-2.5 p-0.5",imgSrc:c.images.figmaHome.facebook24,imgWidth:12,imgHeight:20,imgClassName:"h-5 w-3 object-contain"})]}),(0,t.jsxs)("a",{className:"flex items-center gap-1 whitespace-nowrap text-sm font-semibold leading-5 underline decoration-solid",href:`tel:${e.phoneTel}`,children:[(0,t.jsx)(r.default,{src:c.images.figmaNav.phone24,alt:"",width:24,height:24,className:"shrink-0",unoptimized:!0}
1),e.phoneDisplay]}),(0,t.jsxs)("a",{className:"flex items-center gap-1 whitespace-nowrap text-sm font-semibold leading-5 underline decoration-solid",href:`mailto:${e.email}`,children:[(0,t.jsx)(r.default,{src:c.images.figmaNav.envelope24,alt:"",width:24,height:24,className:"shrink-0",unoptimized:!0}),e.email]})]})]})})}var p=e.i(18566),h=e.i(71645),m=e.i(86511),y=e.i(6908),g=e.i(76525),x=e.i(29831);function b({name:e,className:r}){return"chevronDownSm"===e?(0,t.jsx)("svg",{viewBox:"0 0 12 12",fill:"none","aria-hidden":"true",className:r,children:(0,t.jsx)("path",{d:"M2.5 4.5L6 8l3.5-3.5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",className:r,children:(0,t.jsx)("path",{d:"M4 6l4 4 4-4",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}function v({id:e,items:r,openLabel:i,activeIndex:o,left:c,width:u,panelRef:f,itemRefs:d,onMouseEnter:p,onClose:h,onKeyDown:m,onActiveIndexChange:g}){return(0,t.jsx)("div",{className:"absolute left-0 right-0 top-full z-50 hidden w-full lg:col-span-3 lg:block",role:"menu",id:e,"aria-label":`${i} menu`,"data-header-dropdown-panel":!0,onMouseEnter:p,onKeyDown:m,children:(0,t.jsx)("div",{className:"relative w-full px-4 pt-2",children:(0,t.jsx)("div",{className:"absolute",style:{left:c},children:(0,t.jsx)("div",{ref:f,className:l,style:{width:u},children:r.map((e,i)=>(0,t.jsx)(n.default,{href:e.href,className:a,role:"menuitem",tabIndex:i===o?0:-1,ref:e=>{d.current[i]=e},onFocus:()=>g(i),onClick:h,children:(0,t.jsx)("span",{className:(0,y.cn)(s,i===r.length-1?void 0:"flex-1"),children:e.label})},e.href))})})})})}var w=e.i(1331),_=e.i(44960);let j={close:c.images.common.iconXSolid,chevron:c.images.common.iconBlackChevronDown};function k({label:e,href:r,onNavigate:i}){return(0,t.jsx)(n.default,{href:r,onClick:i,className:"self-stretch px-4 py-5 border-b border-slate-100 inline-flex justify-center items-center gap-2.5",children:(0,t.jsx)("span",{className:"flex-1 text-black text-base font-semibold leading-5",children:e})})}function N({label:e,items:i,open:o,onToggle:l,onNavigate:a}){return(0,t.jsxs)("div",{className:"self-stretch flex flex-col",children:[(0,t.jsxs)("button",{type:"button",onClick:l,"aria-expanded":o,className:"w-full h-14 px-4 py-5 border-b border-slate-100 flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-left text-black text-base font-semibold font-['Inter'] leading-5",children:e}),(0,t.jsx)(r.default,{src:j.chevron,alt:"",width:16,height:16,unoptimized:!0,className:(0,y.cn)("h-4 w-4 object-contain transition-transform duration-200",o?"rotate-180":"rotate-0")})]}),o?i.map(e=>(0,t.jsx)(n.default,{href:e.href,onClick:a,className:"w-full pl-8 pr-4 py-5 border-b border-slate-100 flex items-center hover:bg-sky-700/10 hover:rounded-lg transition-colors",children:(0,t.jsx)("span",{className:"text-black text-base font-semibold leading-5",children:e.label})},e.href)):null]})}function S({open:e,onClose:n,navItems:i,dropdowns:o,onOpenMyLoan:l,onOpenPaymentCenter:a}){let[s,c]=(0,h.useState)(null);(0,h.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&n()},r=document.body.style.overflow;return document.body.style.overflow="hidden",window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t),document.body.style.overflow=r}},[e,n]),(0,h.useEffect)(()=>{e||c(null)},[e]);let u=(0,h.useMemo)(()=>new Map(o.map(e=>[e.label,e.items])),[o]);return e?(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] xl:hidden",role:"dialog","aria-modal":"true","aria-label":"Mobile menu",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close menu",className:"absolute inset-0 bg-black/30",onClick:n}),(0,t.jsxs)("div",{className:"absolute inset-0 z-10 flex h-[100dvh] max-h-[100dvh] w-full flex-col items-end justify-start gap-6 overflow-hidden overscroll-contain bg-stone-50 p-4",children:[(0,t.jsx)("button",{type:"button",onClick:n,className:"grid size-6 shrink-0 place-items-center","aria-label":"Dismiss",children:(0,t.jsx)(r.default,{src:j.close,alt:"",width:24,height:24,className:"h-6 w-6 object-contain",unoptimized:!0})}),(0,t.jsxs)("div",{className:"pcm-scrollbar-hide flex min-h-0 w-full flex-1 flex-col items-start justify-start gap-8 self-stretch overflow-y-auto overscroll-contain touch-pan-y [-webkit-overflow-scrolling:touch] pb-[calc(6rem+env(safe-area-inset-bottom))]",children:[(0,t.jsx)("div",{className:"flex w-full flex-col items-start justify-start self-stretch",children:i.map(e=>{let r=u.get(e.label);return r?(0,t.jsx)("div",{className:"self-stretch",children:(0,t.jsx)(N,{label:e.label,items:r,open:s===e.label,onToggle:()=>c(t=>t===e.label?null:e.label),onNavigate:n})},e.href):(0,t.jsx)(k,{label:e.label,href:e.href,onNavigate:n},e.href)})}),(0,t.jsxs)("div",{className:"flex w-full flex-col items-start justify-center gap-4 self-stretch",children:[(0,t.jsx)(g.Button,{variant:"primary",className:"w-full",onClick:()=>{_.ga4Conversions.applyNowClick(),n(),l()},children:"Apply Now"}),(0,t.jsx)(g.Button,{variant:"paymentCenter",className:"w-full",rightIcon:(0,t.jsx)(b,{name:"chevronDown16",className:"h-4 w-4 -rotate-90 text-brand-header"}),onClick:()=>{n(),a()},children:"Payment Center"})]})]})]})]}):null}function C(){let e=(0,p.usePathname)(),l=(0,h.useMemo)(()=>u.siteConfig.nav.filter(e=>"My Loan"!==e.label),[]),{openMyLoan:a}=(0,w.useMyLoanModal)(),s=u.siteConfig.headerNav.dropdowns,f=function({dropdowns:e,gutterPx:t}){let r=(0,h.useRef)(null),n=(0,h.useRef)(null),i=(0,h.useMemo)(()=>{let t=new Map;for(let r of e)t.set(r.label,r);return t},[e]),[o,l]=(0,h.useState)(null),[a,s]=(0,h.useState)(t),[c,u]=(0,h.useState)(327),[f,d]=(0,h.useState)(0),p=(0,h.useRef)([]),m=(0,h.useCallback)(()=>{l(null)},[]),y=(0,h.useCallback)(e=>{l(e),d(0)},[]),g=(0,h.useCallback)(e=>{l(t=>t===e?null:e),d(0)},[]),x=(0,h.useCallback)(()=>
1{if(!o)return;let e=r.current;if(!e)return;let n=i.get(o);if(!n)return;let l=e.querySelector(`[data-header-trigger="${CSS.escape(o)}"]`);if(!l)return;let a=e.getBoundingClientRect(),c=l.getBoundingClientRect(),f=n.width,d=c.left-a.left+c.width/2,p=Math.max(t,a.width-f-t);u(f),s(Math.min(Math.max(d-f/2,t),p))},[i,t,o]);(0,h.useEffect)(()=>(x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)),[x]),(0,h.useEffect)(()=>{if(o)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"Escape"===e.key&&(e.preventDefault(),m())}},[m,o]);let b=(0,h.useCallback)(e=>{let t=p.current[e];t&&t.focus()},[]),v=(0,h.useCallback)((e,t)=>{if(!i.has(e))return;let r=i.get(e),n=r?r.items.length-1:0;"ArrowDown"===t.key?(t.preventDefault(),y(e),queueMicrotask(()=>b(0))):"ArrowUp"===t.key?(t.preventDefault(),y(e),queueMicrotask(()=>b(n))):"Escape"===t.key&&(t.preventDefault(),m())},[m,i,b,y]),w=(0,h.useCallback)(e=>{if(!o)return;let t=i.get(o);if(!t)return;let r=t.items.length-1;"ArrowDown"===e.key?(e.preventDefault(),d(e=>{let t=e>=r?0:e+1;return queueMicrotask(()=>b(t)),t})):"ArrowUp"===e.key?(e.preventDefault(),d(e=>{let t=e<=0?r:e-1;return queueMicrotask(()=>b(t)),t})):"Home"===e.key?(e.preventDefault(),d(0),queueMicrotask(()=>b(0))):"End"===e.key?(e.preventDefault(),d(r),queueMicrotask(()=>b(r))):"Escape"===e.key&&(e.preventDefault(),m())},[m,i,b,o]);return{rootRef:r,panelRef:n,itemRefs:p,openLabel:o,panelLeft:a,panelWidth:c,activeIndex:f,setActiveIndex:d,open:y,close:m,toggle:g,computePosition:x,getDropdownItems:(0,h.useCallback)(e=>i.get(e)?.items??null,[i]),onTriggerKeyDown:v,onMenuKeyDown:w,dropdownByLabel:i}}({dropdowns:s,gutterPx:16}),[d,j]=(0,h.useState)(!1),[k,N]=(0,h.useState)(!1);(0,m.useClickOutside)({enabled:null!==f.openLabel,refs:[f.rootRef,f.panelRef],onOutside:f.close});let C=f.openLabel?`header-menu-${f.openLabel}`:void 0,E=f.openLabel?f.getDropdownItems(f.openLabel):null;return(0,t.jsxs)("div",{className:"w-full bg-white/80 shadow-[0px_1px_2px_0px_rgba(0,0,0,0.05)] backdrop-blur-md",children:[(0,t.jsx)("div",{className:`${i} py-4`,children:(0,t.jsxs)("div",{ref:f.rootRef,className:"relative grid w-full min-w-0 items-center gap-x-3 gap-y-3 grid-cols-[minmax(0,1fr)_auto] xl:grid-cols-[auto_minmax(0,1fr)_auto] xl:gap-x-4 2xl:gap-x-6",onMouseLeave:f.close,children:[(0,t.jsx)("div",{className:"relative z-10 col-start-1 row-start-1 flex shrink-0 items-center",children:(0,t.jsxs)(n.default,{href:"/",className:"block shrink-0",onMouseEnter:f.close,children:[(0,t.jsx)(r.default,{src:c.images.figmaNav.pikeCreekLogo,alt:u.siteConfig.name,width:178,height:40,priority:!0,unoptimized:!0,className:"h-12 w-auto max-w-[13rem] object-contain object-left xl:hidden"}),(0,t.jsx)(r.default,{src:c.images.figmaNav.pikeCreekLogoSvg,alt:u.siteConfig.name,width:288,height:65,priority:!0,unoptimized:!0,className:(0,y.cn)("hidden h-10 w-auto max-w-[10rem] object-contain object-left sm:h-11 sm:max-w-[12rem] xl:block","xl:h-[52px] xl:max-w-[225px] 2xl:h-[68px] 2xl:max-w-[290px]")})]})}),(0,t.jsx)("div",{className:"hidden min-h-0 min-w-0 xl:col-start-2 xl:row-start-1 xl:flex xl:justify-center",children:(0,t.jsx)("nav",{className:"flex min-h-0 min-w-0 flex-nowrap items-center justify-center overflow-x-visible gap-x-4 xl:gap-x-6 2xl:gap-x-8","aria-label":"Primary",children:l.map(r=>{var i;let o=f.dropdownByLabel.get(r.label),l=!!o&&f.openLabel===r.label,a="/"===(i=r.href)?"/"===e:e.startsWith(i),s=(0,y.cn)("inline-flex shrink-0 items-center whitespace-nowrap font-semibold text-nav","text-[13px] leading-snug xl:text-sm xl:leading-5 2xl:text-base 2xl:leading-5",o?"gap-1.5":void 0),c=a?(0,y.cn)("text-brand-header","underline underline-offset-[9px] decoration-brand-header decoration-2"):l?"text-brand-header":"hover:text-brand-header hover:underline hover:underline-offset-[9px] hover:decoration-brand-header hover:decoration-2",u=(0,y.cn)(s,c);return o?(0,t.jsx)("div",{className:"shrink-0",onMouseEnter:()=>f.open(r.label),children:(0,t.jsxs)("button",{type:"button",className:u,"data-header-dropdown-trigger":!0,"data-header-trigger":r.label,"aria-haspopup":"menu","aria-expanded":l,"aria-controls":l?C:void 0,onClick:()=>f.toggle(r.label),onKeyDown:e=>f.onTriggerKeyDown(r.label,e),children:[r.label,(0,t.jsx)("span",{className:"flex h-5 w-5 items-center justify-center",children:(0,t.jsx)(b,{name:"chevronDownSm",className:(0,y.cn)("h-3 w-3 text-nav transition-transform duration-200",l?"rotate-180":"")})})]})},r.href):(0,t.jsx)(n.default,{href:r.href,className:u,children:r.label},r.href)})})}),(0,t.jsx)("div",{className:"col-start-2 row-start-1 flex shrink-0 items-center justify-end xl:col-start-3",onMouseEnter:f.close,children:(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-end gap-4",children:[(0,t.jsx)("div",{className:"hidden xl:block",children:(0,t.jsx)(g.Button,{variant:"paymentCenter",className:(0,y.cn)("px-4 py-4",o),rightIcon:(0,t.jsx)(b,{name:"chevronDown16",className:"h-4 w-4 text-brand-header"}),onClick:()=>{f.close(),j(!0)},children:"Payment Center"})}),(0,t.jsx)(g.Button,{variant:"primary",className:(0,y.cn)("px-4 py-4 max-[374px]:hidden",o),onClick:()=>{_.ga4Conversions.applyNowClick(),a()},children:"Apply Now"}),(0,t.jsx)("button",{type:"button",className:"grid size-6 shrink-0 place-items-center text-ink-950 xl:hidden","aria-label":"Open menu",onClick:()=>N(!0),children:(0,t.jsx)(r.default,{src:"/assets/common/icons/icon-bars.svg",alt:"",width:24,height:24,className:"h-6 w-6 object-contain",unoptimized:!0})})]})}),f.openLabel&&E?(0,t.jsx)(v,{id:C??"header-menu",openLabel:f.openLabel,items:E,activeIndex:f.activeIndex,left:f.panelLeft,width:f.panelWidth,panelRef:f.panelRef,itemRefs:f.itemRefs,onMouseEnter:()=>
1f.open(f.openLabel),onClose:f.close,onKeyDown:f.onMenuKeyDown,onActiveIndexChange:f.setActiveIndex}):null]})}),(0,t.jsx)(x.PaymentCenterPopup,{open:d,onClose:()=>j(!1)}),(0,t.jsx)(S,{open:k,onClose:()=>N(!1),navItems:l,dropdowns:s,onOpenMyLoan:a,onOpenPaymentCenter:()=>j(!0)})]})}e.s(["Header",0,function(){return(0,t.jsxs)("header",{className:"relative z-[100] flex w-full flex-col bg-white",children:[(0,t.jsx)(d,{}),(0,t.jsx)(C,{})]})}],11458)},41769,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016);let i="gdpr-accepted";e.s(["GdprCookieBanner",0,function(){let[e,o]=(0,r.useState)(!1),l=(0,r.useMemo)(()=>e,[e]);return((0,r.useEffect)(()=>{"yes"!==function(e){if("u"<typeof document)return null;for(let t of document.cookie?document.cookie.split("; "):[]){let r=t.indexOf("=");if(-1!==r&&decodeURIComponent(t.slice(0,r))===e)return decodeURIComponent(t.slice(r+1))}return null}(i)&&o(!0)},[]),l)?(0,t.jsx)("div",{className:"fixed bottom-0 left-0 z-[60] p-3 sm:p-6",children:(0,t.jsx)("div",{className:"w-[min(420px,calc(100vw-24px))] rounded-xl border border-ink-200 bg-white p-4",children:(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-ink-950",children:"We value your privacy"}),(0,t.jsxs)("div",{className:"mt-1 text-sm leading-6 text-ink-700",children:["We use cookies to help improve your experience. Read our"," ",(0,t.jsx)(n.default,{href:"/website-privacy-policy",className:"font-medium text-sky-800 underline-offset-2 hover:underline",children:"Website Privacy Policy"}),"."]})]}),(0,t.jsx)("button",{type:"button",className:"shrink-0 rounded-lg bg-[#30477a] px-4 py-2 text-sm font-semibold text-white hover:bg-[#263a63] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#30477a] focus-visible:ring-offset-2",onClick:()=>{!function(e){if("u"<typeof document)return;let t=Math.floor(1209600);document.cookie=`${encodeURIComponent(e)}=${encodeURIComponent("yes")}; Max-Age=${t}; Path=/; SameSite=Lax`}(i),o(!1)},children:"I Accept"})]})})}):null}])}]);
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.