9 lines
7.8 KiB
JavaScript
9 lines
7.8 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[904],{81853:function(e,n,t){/**
|
|
* @license React
|
|
* use-sync-external-store-shim.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/var r=t(2265),u="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},o=r.useState,i=r.useEffect,l=r.useLayoutEffect,c=r.useDebugValue;function a(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!u(e,t)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=o({inst:{value:t,getSnapshot:n}}),u=r[0].inst,f=r[1];return l(function(){u.value=t,u.getSnapshot=n,a(u)&&f({inst:u})},[e,t,n]),i(function(){return a(u)&&f({inst:u}),e(function(){a(u)&&f({inst:u})})},[e]),c(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},26272:function(e,n,t){e.exports=t(81853)},13428:function(e,n,t){t.d(n,{Z:function(){return r}});function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}},85744:function(e,n,t){t.d(n,{M:function(){return r}});function r(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null==e||e(r),!1===t||!r.defaultPrevented)return null==n?void 0:n(r)}}},42210:function(e,n,t){t.d(n,{F:function(){return u},e:function(){return o}});var r=t(2265);function u(...e){return n=>e.forEach(e=>{"function"==typeof e?e(n):null!=e&&(e.current=n)})}function o(...e){return(0,r.useCallback)(u(...e),e)}},56989:function(e,n,t){t.d(n,{b:function(){return o},k:function(){return u}});var r=t(2265);function u(e,n){let t=(0,r.createContext)(n);function u(e){let{children:n,...u}=e,o=(0,r.useMemo)(()=>u,Object.values(u));return(0,r.createElement)(t.Provider,{value:o},n)}return u.displayName=e+"Provider",[u,function(u){let o=(0,r.useContext)(t);if(o)return o;if(void 0!==n)return n;throw Error(`\`${u}\` must be used within \`${e}\``)}]}function o(e,n=[]){let t=[],u=()=>{let n=t.map(e=>(0,r.createContext)(e));return function(t){let u=(null==t?void 0:t[e])||n;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...t,[e]:u}}),[t,u])}};return u.scopeName=e,[function(n,u){let o=(0,r.createContext)(u),i=t.length;function l(n){let{scope:t,children:u,...l}=n,c=(null==t?void 0:t[e][i])||o,a=(0,r.useMemo)(()=>l,Object.values(l));return(0,r.createElement)(c.Provider,{value:a},u)}return t=[...t,u],l.displayName=n+"Provider",[l,function(t,l){let c=(null==l?void 0:l[e][i])||o,a=(0,r.useContext)(c);if(a)return a;if(void 0!==u)return u;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let u=t.reduce((n,{useScope:t,scopeName:r})=>{let u=t(e),o=u[`__scope${r}`];return{...n,...o}},{});return(0,r.useMemo)(()=>({[`__scope${n.scopeName}`]:u}),[u])}};return t.scopeName=n.scopeName,t}(u,...n)]}},20966:function(e,n,t){t.d(n,{M:function(){return c}});var r,u=t(2265),o=t(51030);let i=(r||(r=t.t(u,2)))["useId".toString()]||(()=>void 0),l=0;function c(e){let[n,t]=u.useState(i());return(0,o.b)(()=>{e||t(e=>null!=e?e:String(l++))},[e]),e||(n?`radix-${n}`:"")}},85606:function(e,n,t){t.d(n,{z:function(){return l}});var r=t(2265),u=t(54887),o=t(42210),i=t(51030);let l=e=>{let{present:n,children:t}=e,l=function(e){var n;let[t,o]=(0,r.useState)(),l=(0,r.useRef)({}),a=(0,r.useRef)(e),f=(0,r.useRef)("none"),s=e?"mounted":"unmounted",[d,m]=(n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((e,t)=>{let r=n[e][t];return null!=r?r:e},s));return(0,r.useEffect)(()=>{let e=c(l.current);f.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let n=l.current,t=a.current,r=t!==e;if(r){let r=f.current,u=c(n);e?m("MOUNT"):"none"===u||(null==n?void 0:n.display)==="none"?m("UNMOUNT"):t&&r!==u?m("ANIMATION_OUT"):m("UNMOUNT"),a.current=e}},[e,m]),(0,i.b)(()=>{if(t){let e=e=>{let n=c(l.current),r=n.includes(e.animationName);e.target===t&&r&&(0,u.flushSync)(()=>m("ANIMATION_END"))},n=e=>{e.target===t&&(f.current=c(l.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}m("ANIMATION_END")},[t,m]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:(0,r.useCallback)(e=>{e&&(l.current=getComputedStyle(e)),o(e)},[])}}(n),a="function"==typeof t?t({present:l.isPresent}):r.Children.only(t),f=(0,o.e)(l.ref,a.ref),s="function"==typeof t;return s||l.isPresent?(0,r.cloneElement)(a,{ref:f}):null};function c(e){return(null==e?void 0:e.animationName)||"none"}l.displayName="Presence"},9381:function(e,n,t){t.d(n,{WV:function(){return l},jH:function(){return c}});var r=t(13428),u=t(2265),o=t(54887),i=t(67256);let l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,n)=>{let t=(0,u.forwardRef)((e,t)=>{let{asChild:o,...l}=e,c=o?i.g7:n;return(0,u.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,u.createElement)(c,(0,r.Z)({},l,{ref:t}))});return t.displayName=`Primitive.${n}`,{...e,[n]:t}},{});function c(e,n){e&&(0,o.flushSync)(()=>e.dispatchEvent(n))}},67256:function(e,n,t){t.d(n,{A4:function(){return c},g7:function(){return i}});var r=t(13428),u=t(2265),o=t(42210);let i=(0,u.forwardRef)((e,n)=>{let{children:t,...o}=e,i=u.Children.toArray(t),c=i.find(a);if(c){let e=c.props.children,t=i.map(n=>n!==c?n:u.Children.count(e)>1?u.Children.only(null):(0,u.isValidElement)(e)?e.props.children:null);return(0,u.createElement)(l,(0,r.Z)({},o,{ref:n}),(0,u.isValidElement)(e)?(0,u.cloneElement)(e,void 0,t):null)}return(0,u.createElement)(l,(0,r.Z)({},o,{ref:n}),t)});i.displayName="Slot";let l=(0,u.forwardRef)((e,n)=>{let{children:t,...r}=e;return(0,u.isValidElement)(t)?(0,u.cloneElement)(t,{...function(e,n){let t={...n};for(let r in n){let u=e[r],o=n[r],i=/^on[A-Z]/.test(r);i?u&&o?t[r]=(...e)=>{o(...e),u(...e)}:u&&(t[r]=u):"style"===r?t[r]={...u,...o}:"className"===r&&(t[r]=[u,o].filter(Boolean).join(" "))}return{...e,...t}}(r,t.props),ref:n?(0,o.F)(n,t.ref):t.ref}):u.Children.count(t)>1?u.Children.only(null):null});l.displayName="SlotClone";let c=({children:e})=>(0,u.createElement)(u.Fragment,null,e);function a(e){return(0,u.isValidElement)(e)&&e.type===c}},16459:function(e,n,t){t.d(n,{W:function(){return u}});var r=t(2265);function u(e){let n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useMemo)(()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)},[])}},73763:function(e,n,t){t.d(n,{T:function(){return o}});var r=t(2265),u=t(16459);function o({prop:e,defaultProp:n,onChange:t=()=>{}}){let[o,i]=function({defaultProp:e,onChange:n}){let t=(0,r.useState)(e),[o]=t,i=(0,r.useRef)(o),l=(0,u.W)(n);return(0,r.useEffect)(()=>{i.current!==o&&(l(o),i.current=o)},[o,i,l]),t}({defaultProp:n,onChange:t}),l=void 0!==e,c=l?e:o,a=(0,u.W)(t),f=(0,r.useCallback)(n=>{if(l){let t="function"==typeof n?n(e):n;t!==e&&a(t)}else i(n)},[l,e,i,a]);return[c,f]}},12488:function(e,n,t){t.d(n,{e:function(){return o}});var r=t(2265),u=t(16459);function o(e,n=null==globalThis?void 0:globalThis.document){let t=(0,u.W)(e);(0,r.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t(e)};return n.addEventListener("keydown",e),()=>n.removeEventListener("keydown",e)},[t,n])}},51030:function(e,n,t){t.d(n,{b:function(){return u}});var r=t(2265);let u=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}}}]); |