tabby/ee/tabby-webserver/ui/_next/static/chunks/845-c760f8c52c4fcf50.js

9 lines
37 KiB
JavaScript
Raw Normal View History

2023-11-23 01:00:08 +00:00
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[845],{62601:function(t,e,n){"use strict";var r,u;t.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(u=n.g.process)?void 0:u.env)?n.g.process:n(58960)},58960:function(t){!function(){var e={229:function(t){var e,n,r,u=t.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function c(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}}();var a=[],s=!1,l=-1;function f(){s&&r&&(s=!1,r.length?a=r.concat(a):l=-1,a.length&&d())}function d(){if(!s){var t=c(f);s=!0;for(var e=a.length;e;){for(r=a,a=[];++l<e;)r&&r[l].run();l=-1,e=a.length}r=null,s=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}u.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new p(t,e)),1!==a.length||s||c(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=v,u.addListener=v,u.once=v,u.off=v,u.removeListener=v,u.removeAllListeners=v,u.emit=v,u.prependListener=v,u.prependOnceListener=v,u.listeners=function(t){return[]},u.binding=function(t){throw Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw Error("process.chdir is not supported")},u.umask=function(){return 0}}},n={};function r(t){var u=n[t];if(void 0!==u)return u.exports;var o=n[t]={exports:{}},i=!0;try{e[t](o,o.exports,r),i=!1}finally{i&&delete n[t]}return o.exports}r.ab="//";var u=r(229);t.exports=u}()},81853:function(t,e,n){"use strict";/**
* @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=n(2265),u="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,i=r.useEffect,c=r.useLayoutEffect,a=r.useDebugValue;function s(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!u(t,n)}catch(t){return!0}}var l="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),u=r[0].inst,l=r[1];return c(function(){u.value=n,u.getSnapshot=e,s(u)&&l({inst:u})},[t,n,e]),i(function(){return s(u)&&l({inst:u}),t(function(){s(u)&&l({inst:u})})},[t]),a(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},26272:function(t,e,n){"use strict";t.exports=n(81853)},13428:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},85744:function(t,e,n){"use strict";function r(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}n.d(e,{M:function(){return r}})},42210:function(t,e,n){"use strict";n.d(e,{F:function(){return u},e:function(){return o}});var r=n(2265);function u(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function o(...t){return(0,r.useCallback)(u(...t),t)}},56989:function(t,e,n){"use strict";n.d(e,{b:function(){return o},k:function(){return u}});var r=n(2265);function u(t,e){let n=(0,r.createContext)(e);function u(t){let{children:e,...u}=t,o=(0,r.useMemo)(()=>u,Object.values(u));return(0,r.createElement)(n.Provider,{value:o},e)}return u.displayName=t+"Provider",[u,function(u){let o=(0,r.useContext)(n);if(o)return o;if(void 0!==e)return e;throw Error(`\`${u}\` must be used within \`${t}\``)}]}function o(t,e=[]){let n=[],u=()=>{let e=n.map(t=>(0,r.createContext)(t));return function(n){let u=(null==n?void 0:n[t])||e;return(0,r.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:u}}),[n,u])}};return u.scopeName=t,[function(e,u){let o=(0,r.createContext)(u),i=n.length;function c(e){let{scope:n,children:u,...c}=e,a=(null==n?void 0:n[t][i])||o,s=(0,r.useMemo)(()=>c,Object.values(c));return(0,r.createElement)(a.Provider,{value:s},u)}return n=[...n,u],c.displayName=e+"Provider",[c,function(n,c){let a=(null==c?void 0:c[t][i])||o,s=(0,r.useContext)(a);if(s)return s;if(void 0!==u)return u;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let u=n.reduce((e,{useScope:n,scopeName:r})=>{let u=n(t),o=u[`__scope${r}`];return{...e,...o}},{});return(0,r.useMemo)(()=>({[`__scope${e.scopeName}`]:u}),[u])}};return n.scopeName=e.scopeName,n}(u,...e)]}},20966:function(t,e,n){"use strict";n.d(e,{M:function(){return a}});var r,u=n(2265),o=n(51030);let i=(r||(r=n.t(u,2)))["useId".toString()]||(()=>void 0),c=0;function a(t){let[e,n]=u.useState(i());return(0,o.b)(()=>{t||n(t=>null!=t?t:String(c++))},[t]),t||(e?`radix-${e}`:"")}},85606:function(t,e,n){"use strict";n.d(e,{z:function(){return c}});var r=n(2265),u=n(54887),o=n(42210),i=n(51030);let c=t=>{let{present:e,children:n}=t,c=function(t){var e;let[n,o]=(0,r.useState)(),c=(0,r.useRef)({}),s=(0,r.useRef)(t),l=(0,r.useRef)("none"),f=t?"mounted":"unmounted",[d,p]=(e={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((t,n)=>{let r=e[t][n];return null!=r?r:t},f));return(0,r.useEffect)(()=>{let t=a(c.current);l.current="mounted"===d?t:"none"},[d]),(0,i.b)(()=>{let e=c.current,n=s.current,r=n!==t;if(r){let r=l.current,u=a(e);t?p("MOUNT"):"none"===u||(null==e?void 0:e.display)==="none"?p("UNMOUNT"):n&&r!==u?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=t}},[t,p]),(0,i.b)(()=>{if(n){let t=t=>{let e=a(c.current),r=e.in