chore(publish): replace source tree with static export at repo root
Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.
Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
This commit is contained in:
1 parent
05487728a7
commit
e6c4ebff48
394 files changed
+3977
-37891
No files matched your search
@@ -0,0 +1,342 @@
|
||||
import{i as e,t}from"./react-B8IZ02wI.js";import{C as n,S as r,h as i,m as a,n as o,p as s,s as c,u as l,w as u}from"./api-path-DiLUeLL2.js";import{t as d}from"./react-dom-0ZK-Lw7i.js";import{N as f,a as p,c as m,g as h,l as g,t as _,v}from"./components-LggAOTeO.js";import{a as y,n as b,r as x}from"./components-BPFOGuol.js";import{i as S,n as C,s as w,t as T}from"./IconCheck-B3jDJthn.js";import{t as E}from"./jsx-runtime-fBfwind-.js";import{m as D,p as O,r as k}from"./analytics-hbCOwHmS.js";import{r as A,t as j}from"./share-origin-COlEIvGo.js";import{n as M,t as N}from"./app-config-4aQIl_Vd.js";import{t as P}from"./motion-DOH2EXPt.js";import{a as ee,i as F,n as te,o as ne,r as re}from"./use-session-DJs-YY25.js";import{t as ie}from"./createReactComponent-C-DRqPhY.js";var I=`original`,L=`data-theme-family`,ae=`data-theme-family-status`,oe=`theme-family`;function R(e){if(e===void 0)return`${oe}:__no_app_id__`;let t=e.trim().toLowerCase();if(!t)throw TypeError(`Theme family settings require a non-empty appId.`);return`${oe}:${encodeURIComponent(t)}`}function se(e){return R(e)}function ce(e){let t=se(e??void 0);return`(function(){var root=document.documentElement;var fallback=${JSON.stringify(I)};try{var value=window.localStorage.getItem(${JSON.stringify(t)});if(value===null){root.setAttribute(${JSON.stringify(L)},fallback);root.setAttribute(${JSON.stringify(ae)},'awaiting-app-setting');return}if(value==='agent-native'||value==='original'){root.setAttribute(${JSON.stringify(L)},value);root.removeAttribute(${JSON.stringify(ae)});return}root.setAttribute(${JSON.stringify(L)},fallback);root.setAttribute(${JSON.stringify(ae)},'invalid')}catch(e){root.setAttribute(${JSON.stringify(L)},fallback);root.setAttribute(${JSON.stringify(ae)},'unreadable')}})();`}function le(){return`
|
||||
(function() {
|
||||
try {
|
||||
var params = new URLSearchParams(window.location.search || "");
|
||||
var embedded = params.get(${JSON.stringify(r)});
|
||||
if (params.has(${JSON.stringify(n)}) || embedded === "1" || embedded === "true") return;
|
||||
} catch (e) {}
|
||||
|
||||
var INSTALL_KEY = "__agentNativeViteDevRecoveryInstalled";
|
||||
if (window[INSTALL_KEY]) return;
|
||||
window[INSTALL_KEY] = true;
|
||||
|
||||
var RELOAD_KEY = "__an_optimize_reload";
|
||||
var RELOAD_HISTORY_PARAM = "__an_vite_dev_recovery";
|
||||
var routeWarmupAttribute = ${JSON.stringify(i)};
|
||||
var MAX_RELOADS = 3;
|
||||
var MIN_RELOAD_INTERVAL_MS = 2000;
|
||||
var RESET_AFTER_MS = 8000;
|
||||
|
||||
var reloadTimer = null;
|
||||
var overlayShown = false;
|
||||
|
||||
// Track recent reloads in sessionStorage. If we reload too many times
|
||||
// in a short window, stop and show a manual-refresh message instead of
|
||||
// looping forever.
|
||||
function readReloadHistory() {
|
||||
var cutoff = Date.now() - 30000;
|
||||
var history = [];
|
||||
try {
|
||||
var raw = sessionStorage.getItem(RELOAD_KEY);
|
||||
var arr = raw ? JSON.parse(raw) : [];
|
||||
if (Array.isArray(arr)) {
|
||||
history = arr.filter(function(t) {
|
||||
return typeof t === "number" && Number.isFinite(t) && t > cutoff;
|
||||
});
|
||||
}
|
||||
} catch (e) {
|
||||
// coercion-ok: blocked or corrupt storage falls back to the URL history marker.
|
||||
}
|
||||
var params = new URLSearchParams(window.location.search || "");
|
||||
var encoded = params.get(RELOAD_HISTORY_PARAM);
|
||||
if (encoded) {
|
||||
encoded.split(".").forEach(function(value) {
|
||||
var timestamp = Number.parseInt(value, 36);
|
||||
if (Number.isSafeInteger(timestamp) && timestamp > cutoff) {
|
||||
history.push(timestamp);
|
||||
}
|
||||
});
|
||||
}
|
||||
return history.filter(function(timestamp, index, values) {
|
||||
return values.indexOf(timestamp) === index;
|
||||
}).sort(function(a, b) { return a - b; });
|
||||
}
|
||||
function writeReloadHistory(history) {
|
||||
var savedInSession = false;
|
||||
try {
|
||||
sessionStorage.setItem(RELOAD_KEY, JSON.stringify(history));
|
||||
savedInSession = true;
|
||||
} catch (e) {
|
||||
// coercion-ok: blocked storage falls back to the URL history marker.
|
||||
}
|
||||
try {
|
||||
var url = new URL(window.location.href);
|
||||
if (history.length) {
|
||||
url.searchParams.set(RELOAD_HISTORY_PARAM, history.map(function(timestamp) {
|
||||
return timestamp.toString(36);
|
||||
}).join("."));
|
||||
} else {
|
||||
url.searchParams.delete(RELOAD_HISTORY_PARAM);
|
||||
}
|
||||
window.history.replaceState(
|
||||
window.history.state,
|
||||
"",
|
||||
url.pathname + url.search + url.hash,
|
||||
);
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.warn("[agent-native] Could not persist Vite recovery history.", error);
|
||||
return savedInSession;
|
||||
}
|
||||
}
|
||||
function recordReload() {
|
||||
var history = readReloadHistory();
|
||||
history.push(Date.now());
|
||||
return writeReloadHistory(history);
|
||||
}
|
||||
// Reset the counter after a stable period (page didn't fail again).
|
||||
setTimeout(function() {
|
||||
try { sessionStorage.removeItem(RELOAD_KEY); } catch (e) {}
|
||||
writeReloadHistory([]);
|
||||
}, RESET_AFTER_MS);
|
||||
|
||||
function showOverlay(title, subtitle) {
|
||||
if (overlayShown) return;
|
||||
overlayShown = true;
|
||||
var mount = function() {
|
||||
if (!document.body) { setTimeout(mount, 16); return; }
|
||||
var el = document.createElement("div");
|
||||
el.id = "__an-reload-overlay";
|
||||
el.style.cssText = [
|
||||
"position:fixed","inset:0","z-index:2147483647",
|
||||
"display:flex","align-items:center","justify-content:center",
|
||||
"background:rgba(0,0,0,0.6)","backdrop-filter:blur(8px)",
|
||||
"-webkit-backdrop-filter:blur(8px)",
|
||||
"font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif",
|
||||
"color:#fff","font-size:14px"
|
||||
].join(";");
|
||||
el.innerHTML =
|
||||
'<div style="background:#171717;padding:20px 24px;border-radius:12px;' +
|
||||
'border:1px solid rgba(255,255,255,0.1);max-width:340px;text-align:center;' +
|
||||
'box-shadow:0 20px 60px rgba(0,0,0,0.5)">' +
|
||||
'<div style="font-weight:600;margin-bottom:6px">' + title + '</div>' +
|
||||
'<div style="font-size:12px;opacity:0.7">' + subtitle + '</div>' +
|
||||
'</div>';
|
||||
document.body.appendChild(el);
|
||||
};
|
||||
mount();
|
||||
}
|
||||
|
||||
function scheduleReload(reason) {
|
||||
if (reloadTimer) return;
|
||||
var history = readReloadHistory();
|
||||
if (history.length >= MAX_RELOADS) {
|
||||
console.warn("[agent-native] Dev server keeps re-bundling. Manual refresh needed.", reason);
|
||||
showOverlay(
|
||||
"Dev server out of sync",
|
||||
"Auto-reload gave up after " + MAX_RELOADS + " tries. Refresh the page (\\u2318R / Ctrl R)."
|
||||
);
|
||||
return;
|
||||
}
|
||||
console.log("[agent-native] Vite re-bundled deps (" + reason + "), reloading\\u2026");
|
||||
if (!recordReload()) {
|
||||
showOverlay(
|
||||
"Dev server out of sync",
|
||||
"Auto-reload could not track attempts. Refresh the page manually.",
|
||||
);
|
||||
return;
|
||||
}
|
||||
// First reload is silent. One refresh almost always fixes it and the
|
||||
// overlay flash is more disruptive than the reload itself. Only show
|
||||
// the overlay starting on the second attempt, when something is clearly
|
||||
// taking longer than expected.
|
||||
if (history.length >= 1) {
|
||||
showOverlay("Updating dev server\\u2026", "Reloading the page");
|
||||
}
|
||||
var lastReloadAt = history.length ? history[history.length - 1] : 0;
|
||||
var delay = Math.max(
|
||||
300,
|
||||
MIN_RELOAD_INTERVAL_MS - Math.max(0, Date.now() - lastReloadAt),
|
||||
);
|
||||
reloadTimer = setTimeout(function() { window.location.reload(); }, delay);
|
||||
}
|
||||
|
||||
window.addEventListener("vite:beforeFullReload", function() {
|
||||
if (reloadTimer) {
|
||||
clearTimeout(reloadTimer);
|
||||
reloadTimer = null;
|
||||
}
|
||||
});
|
||||
|
||||
function looksLikeViteFailureMessage(message) {
|
||||
if (!message) return false;
|
||||
var optimizerUrl = message.indexOf("/node_modules/.vite/deps/") !== -1
|
||||
|| message.indexOf("/@id/") !== -1
|
||||
|| message.indexOf("/@fs/") !== -1;
|
||||
return message.indexOf("Outdated Optimize Dep") !== -1
|
||||
|| message.indexOf("Optimize Deps Processing Error") !== -1
|
||||
|| ((message.indexOf("Failed to fetch dynamically imported module") !== -1
|
||||
|| message.indexOf("error loading dynamically imported module") !== -1
|
||||
|| message.indexOf("Importing a module script failed") !== -1)
|
||||
&& optimizerUrl)
|
||||
|| (message.indexOf("504") !== -1 && (
|
||||
message.indexOf(".vite/deps") !== -1 ||
|
||||
message.indexOf("/node_modules/.vite/deps/") !== -1
|
||||
));
|
||||
}
|
||||
|
||||
// Vite's preload event is already scoped to a failed module preload, so it
|
||||
// carries stronger evidence than a generic rejection. Route modules do not
|
||||
// live under the optimizer URL prefix, but they still need Vite's bounded
|
||||
// recovery before React Router logs and natively reloads the document.
|
||||
function looksLikeVitePreloadFailureMessage(message) {
|
||||
if (!message) return false;
|
||||
return message.indexOf("Failed to fetch dynamically imported module") !== -1
|
||||
|| message.indexOf("error loading dynamically imported module") !== -1
|
||||
|| message.indexOf("Importing a module script failed") !== -1
|
||||
|| message.indexOf("Outdated Optimize Dep") !== -1
|
||||
|| message.indexOf("Optimize Deps Processing Error") !== -1
|
||||
|| (message.indexOf("504") !== -1 && (
|
||||
message.indexOf(".vite/deps") !== -1 ||
|
||||
message.indexOf("/node_modules/.vite/deps/") !== -1
|
||||
));
|
||||
}
|
||||
|
||||
function looksLikeViteDep(url) {
|
||||
if (!url) return false;
|
||||
// Generic resource errors are ambiguous for app route modules; only Vite's
|
||||
// transformed module URLs are safe evidence of an optimizer failure.
|
||||
try {
|
||||
var u = new URL(url, window.location.href);
|
||||
if (u.origin !== window.location.origin) return false;
|
||||
} catch (e) { return false; }
|
||||
return url.indexOf("/node_modules/.vite/deps/") !== -1
|
||||
|| url.indexOf("/@fs/") !== -1
|
||||
|| url.indexOf("/@id/") !== -1;
|
||||
}
|
||||
|
||||
function looksLikeLocalViteModule(url, target) {
|
||||
if (!url || !target) return false;
|
||||
var hostname = window.location.hostname;
|
||||
var localDevHost = hostname === "localhost"
|
||||
|| hostname.endsWith(".localhost")
|
||||
|| /^127(?:\\.\\d{1,3}){3}$/.test(hostname)
|
||||
|| hostname === "::1"
|
||||
|| hostname === "[::1]";
|
||||
if (!localDevHost) return false;
|
||||
if (url.indexOf(window.location.origin + "/") !== 0) return false;
|
||||
if (target.tagName === "SCRIPT") return String(target.type || "").toLowerCase() === "module";
|
||||
return target.tagName === "LINK"
|
||||
&& !(target.hasAttribute && target.hasAttribute(routeWarmupAttribute))
|
||||
&& /(?:^|\\s)modulepreload(?:\\s|$)/i.test(target.rel || "");
|
||||
}
|
||||
|
||||
// 1) <script type="module"> / <link> 504. These fire on the element, not
|
||||
// window, so use capture phase to catch resource load errors.
|
||||
window.addEventListener("error", function(e) {
|
||||
var t = e.target;
|
||||
if (!t || t === window) {
|
||||
var message = String(e.message || "");
|
||||
if (looksLikeViteFailureMessage(message)) {
|
||||
scheduleReload("window error");
|
||||
}
|
||||
return;
|
||||
}
|
||||
var tag = t.tagName;
|
||||
if (tag !== "SCRIPT" && tag !== "LINK") return;
|
||||
var url = t.src || t.href || "";
|
||||
if (looksLikeViteDep(url) || looksLikeLocalViteModule(url, t)) {
|
||||
var name = url.split("/").pop();
|
||||
scheduleReload("script 504: " + name);
|
||||
}
|
||||
}, true);
|
||||
|
||||
// Vite's documented hook for failed dynamic-import preloads. This mostly
|
||||
// targets production chunk skew, but it also fires for some dev optimizer
|
||||
// races, so wire it into the same guarded reload path.
|
||||
window.addEventListener("vite:preloadError", function(e) {
|
||||
var payload = e && e.payload;
|
||||
var msg = String((payload && (payload.message || payload)) || "");
|
||||
// A preload event without a concrete error is not enough evidence to
|
||||
// reload the document. Vite can emit an empty payload while a route
|
||||
// preload is being cancelled; treating that cancellation as an optimizer
|
||||
// failure strands the app on its SSR loading fallback.
|
||||
if (looksLikeVitePreloadFailureMessage(msg)) {
|
||||
if (e.preventDefault) e.preventDefault();
|
||||
scheduleReload("preload error");
|
||||
}
|
||||
});
|
||||
|
||||
// 2) Dynamic import failures (React Router code splitting, lazy components).
|
||||
window.addEventListener("unhandledrejection", function(e) {
|
||||
var msg = String((e.reason && (e.reason.message || e.reason)) || "");
|
||||
if (looksLikeViteFailureMessage(msg)) {
|
||||
scheduleReload("dynamic import");
|
||||
}
|
||||
});
|
||||
|
||||
// Static module-graph fetch failures for child imports don't always surface
|
||||
// as element errors or rejections. Chrome exposes the HTTP status via
|
||||
// Resource Timing; when available, use it as a final safety net.
|
||||
var seenResources = {};
|
||||
function checkResourceEntry(entry) {
|
||||
var url = entry && entry.name;
|
||||
if (!url || seenResources[url]) return;
|
||||
seenResources[url] = true;
|
||||
if (!looksLikeViteDep(url)) return;
|
||||
if (entry.responseStatus === 504) {
|
||||
var name = url.split("/").pop();
|
||||
scheduleReload("resource 504: " + name);
|
||||
}
|
||||
}
|
||||
function checkExistingResources() {
|
||||
try {
|
||||
var entries = performance.getEntriesByType("resource") || [];
|
||||
for (var i = 0; i < entries.length; i++) checkResourceEntry(entries[i]);
|
||||
} catch (e) {}
|
||||
}
|
||||
if (window.PerformanceObserver) {
|
||||
try {
|
||||
var observer = new PerformanceObserver(function(list) {
|
||||
var entries = list.getEntries();
|
||||
for (var i = 0; i < entries.length; i++) checkResourceEntry(entries[i]);
|
||||
});
|
||||
observer.observe({ type: "resource", buffered: true });
|
||||
} catch (e) {
|
||||
setTimeout(checkExistingResources, 0);
|
||||
}
|
||||
} else {
|
||||
setTimeout(checkExistingResources, 0);
|
||||
}
|
||||
})();`}function ue(){let e={BASE_URL:`/`,DEV:!1,MODE:`production`,PROD:!0,SSR:!1};return typeof process<`u`||e?.PROD===!0?!1:(e?.DEV,!0)}function de(e){return e===`light`||e===`dark`||e===`system`?e:`system`}function fe(e=`system`,t=!0,n){let r=de(e),i=t?`true`:`false`,a=`${ce(n??u()??void 0)}\n(function(){function m(){var d={};return{get length(){return Object.keys(d).length},key:function(i){return Object.keys(d)[i]||null},getItem:function(k){k=String(k);return Object.prototype.hasOwnProperty.call(d,k)?d[k]:null},setItem:function(k,v){d[String(k)]=String(v)},removeItem:function(k){delete d[k]},clear:function(){d={}}}}function s(n){try{var x=window[n],p='__an_storage_probe__';x.setItem(p,'1');x.removeItem(p)}catch(e){try{Object.defineProperty(window,n,{configurable:true,value:m()})}catch(_){}}}s('localStorage');s('sessionStorage');try{var defaultTheme=${JSON.stringify(r)};var enableSystem=${i};var stored=window.localStorage.getItem('theme');var valid=stored==='light'||stored==='dark'||stored==='system'||stored==='auto';var mode=valid?stored:defaultTheme;if(mode==='auto')mode='system';if(!enableSystem&&mode==='system')mode=defaultTheme==='system'?'light':defaultTheme;if(!valid){window.localStorage.removeItem('theme')}else if(stored!==mode){window.localStorage.setItem('theme',mode)}var prefersDark=enableSystem&&mode==='system'&&window.matchMedia&&window.matchMedia('(prefers-color-scheme: dark)').matches;var resolved=mode==='system'?(prefersDark?'dark':'light'):mode;var root=document.documentElement;root.classList.remove('light','dark');root.classList.add(resolved);root.setAttribute('data-theme',resolved);root.style.colorScheme=resolved;var appearance=window.localStorage.getItem('appearance');var appearanceValid=appearance==='warm'||appearance==='ocean'||appearance==='forest'||appearance==='rose'||appearance==='slate';if(appearanceValid){root.setAttribute('data-appearance',appearance)}else{root.removeAttribute('data-appearance');if(appearance!==null)window.localStorage.removeItem('appearance')}}catch(e){document.documentElement.setAttribute('data-theme-status','unreadable')}})();`;return ue()?`${a}\n${le()}`:a}fe();var z=E(),B=e(t(),1),pe=({children:e})=>(0,z.jsx)(z.Fragment,{children:e});function me({children:e}){return(0,z.jsx)(pe,{children:(0,z.jsx)(`div`,{className:`flex h-screen w-full flex-col overflow-hidden bg-background text-foreground`,children:(0,z.jsx)(`main`,{className:`agent-native-app-main min-w-0 flex-1 overflow-y-auto overscroll-contain`,children:e})})})}var he=(0,B.createContext)({}),ge=(0,B.createContext)(!1);function _e(){return(0,B.useContext)(he).definition}var ve=(0,B.createContext)({});function ye({children:e,components:t,designSystem:n}){let r=(0,B.useContext)(ve),i=(0,B.useContext)(he),a=(0,B.useMemo)(()=>({...r,...t}),[r,t]),o=(0,B.useMemo)(()=>n?{...i.definition,...n,components:{...i.definition?.components,...n.components}}:i.definition,[n,i.definition]),s=(0,B.useMemo)(()=>{if(!a.Button)return i.legacyActionButton;let e=a.Button;return function({children:t,intent:n,emphasis:r,inset:i,size:a,pending:o,leadingIcon:s,trailingIcon:c,onPress:l,onClick:u,elementRef:d,...f}){let p=i&&r===`ghost`?`ghost-inset`:r===`ghost`?`ghost`:r===`outline`?`outline`:n===`danger`?`destructive`:n===`primary`?`default`:`secondary`,m=a===`compact`?`sm`:a===`large`?`lg`:`default`;return(0,z.jsx)(ge.Provider,{value:!0,children:(0,z.jsxs)(e,{...f,ref:d,variant:p,size:m,disabled:f.disabled||o,"aria-busy":o||void 0,onClick:e=>{l?.(e),u?.(e)},children:[s,t,c]})})}},[i.legacyActionButton,a.Button]),c=(0,B.useMemo)(()=>({definition:o,legacyActionButton:s}),[s,o]);return(0,B.useEffect)(()=>{!o?.components?.ActionButton||a.Button},[o?.components?.ActionButton,a.Button]),(0,z.jsx)(he.Provider,{value:c,children:(0,z.jsx)(ve.Provider,{value:a,children:e})})}function be(){return(0,B.useContext)(ve)}function xe(e){return be()[e]}function Se(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Ce(...e){return t=>{let n=!1,r=e.map(e=>{let r=Se(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Se(e[t],null)}}}}function V(...e){return B.useCallback(Ce(...e),e)}function we(e){let t=B.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ne(r)&&typeof Le==`function`&&(r=Le(r._payload)),B.Children.forEach(r,e=>{if(je(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ne(n)&&typeof Le==`function`&&(n=Le(n._payload)),a=Oe(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=B.cloneElement(a,void 0,s):!o&&B.Children.count(r)===1&&B.isValidElement(r)&&(a=r);let c=a?Ae(a):void 0,l=V(n,c);if(!a){if(r||r===0)throw Error(o?Ie(e):Fe(e));return r}let u=ke(i,a.props??{});return a.type!==B.Fragment&&(u.ref=n?l:c),B.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}var Te=we(`Slot`),Ee=Symbol.for(`radix.slottable`);function De(e){let t=e=>`child`in e?e.children(e.child):e.children;return t.displayName=`${e}.SlottableLine truncated
|
||||
`)}function zn(e){let t=Fn(e.issueTitle)??[Fn(e.appName)??`Agent-Native`,Fn(e.title)??`Error screen`].join(`: `),n=new URL(Pn);return n.searchParams.set(`title`,t.slice(0,180)),n.searchParams.set(`body`,Rn({...e,prompt:e.prompt??`Describe your issue here:`})),n.toString()}var Bn=ie(`outline`,`message-circle`,`MessageCircle`,[[`path`,{d:`M3 20l1.3 -3.9c-2.324 -3.437 -1.426 -7.872 2.1 -10.374c3.526 -2.501 8.59 -2.296 11.845 .48c3.255 2.777 3.695 7.266 1.029 10.501c-2.666 3.235 -7.615 4.215 -11.574 2.293l-4.7 1`,key:`svg-0`}]]),Vn=ie(`outline`,`brand-github`,`BrandGithub`,[[`path`,{d:`M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5`,key:`svg-0`}]]),K=e=>typeof e==`string`,Hn=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},Un=e=>e==null?``:String(e),Wn=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Gn=/###/g,Kn=e=>e&&e.includes(`###`)?e.replace(Gn,`.`):e,qn=e=>!e||K(e),Jn=(e,t,n)=>{let r=K(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(qn(e))return{};let t=Kn(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return qn(e)?{}:{obj:e,k:Kn(r[i])}},Yn=(e,t,n)=>{let{obj:r,k:i}=Jn(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Jn(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Jn(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Xn=(e,t,n,r)=>{let{obj:i,k:a}=Jn(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Zn=(e,t)=>{let{obj:n,k:r}=Jn(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Qn=(e,t,n)=>{let r=Zn(e,n);return r===void 0?Zn(t,n):r},$n=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?K(e[r])||e[r]instanceof String||K(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):$n(e[r],t[r],n):e[r]=t[r]);return e},er=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),tr={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},nr=e=>K(e)?e.replace(/[&<>"'\/]/g,e=>tr[e]):e,rr=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},ir=[` `,`,`,`?`,`!`,`;`],ar=new rr(20),or=(e,t,n)=>{t||=``,n||=``;let r=ir.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=ar.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},sr=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},cr=e=>e?.replace(/_/g,`-`),lr={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},ur=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||lr,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>K(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),K(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},dr=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},fr=class extends dr{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStru
Line truncated
|
||||
.${Ls} {
|
||||
overflow: hidden ${r};
|
||||
padding-right: ${s}px ${r};
|
||||
}
|
||||
body[${dc}] {
|
||||
overflow: hidden ${r};
|
||||
overscroll-behavior: contain;
|
||||
${[t&&`position: relative ${r};`,n===`margin`&&`
|
||||
padding-left: ${i}px;
|
||||
padding-top: ${a}px;
|
||||
padding-right: ${o}px;
|
||||
margin-left:0;
|
||||
margin-top:0;
|
||||
margin-right: ${s}px ${r};
|
||||
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
||||
}
|
||||
|
||||
.${Fs} {
|
||||
right: ${s}px ${r};
|
||||
}
|
||||
|
||||
.${Is} {
|
||||
margin-right: ${s}px ${r};
|
||||
}
|
||||
|
||||
.${Fs} .${Fs} {
|
||||
right: 0 ${r};
|
||||
}
|
||||
|
||||
.${Is} .${Is} {
|
||||
margin-right: 0 ${r};
|
||||
}
|
||||
|
||||
body[${dc}] {
|
||||
${Rs}: ${s}px;
|
||||
}
|
||||
`},pc=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},mc=function(){B.useEffect(function(){return document.body.setAttribute(dc,(pc()+1).toString()),function(){var e=pc()-1;e<=0?document.body.removeAttribute(dc):document.body.setAttribute(dc,e.toString())}},[])},hc=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;mc();var a=B.useMemo(function(){return lc(i)},[i]);return B.createElement(uc,{styles:fc(a,!t,i,n?``:`!important`)})},gc=!1;if(typeof window<`u`)try{var _c=Object.defineProperty({},"passive",{get:function(){return gc=!0,!0}});window.addEventListener(`test`,_c,_c),window.removeEventListener(`test`,_c,_c)}catch{gc=!1}var vc=gc?{passive:!1}:!1,yc=function(e){return e.tagName===`TEXTAREA`},bc=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!yc(e)&&n[t]===`visible`)},xc=function(e){return bc(e,`overflowY`)},Sc=function(e){return bc(e,`overflowX`)},Cc=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ec(e,r)){var i=Dc(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},wc=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Tc=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ec=function(e,t){return e===`v`?xc(t):Sc(t)},Dc=function(e,t){return e===`v`?wc(t):Tc(t)},Oc=function(e,t){return e===`h`&&t===`rtl`?-1:1},kc=function(e,t,n,r,i){var a=Oc(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Dc(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ec(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Ac=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},jc=function(e){return[e.deltaX,e.deltaY]},Mc=function(e){return e&&`current`in e?e.current:e},Nc=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Pc=function(e){return`
|
||||
.block-interactivity-${e} {pointer-events: none;}
|
||||
.allow-interactivity-${e} {pointer-events: all;}
|
||||
`},Fc=0,Ic=[];function Lc(e){var t=B.useRef([]),n=B.useRef([0,0]),r=B.useRef(),i=B.useState(Fc++)[0],a=B.useState(ac)[0],o=B.useRef(e);B.useEffect(function(){o.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ps([e.lockRef.current],(e.shards||[]).map(Mc),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=B.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Ac(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Cc(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Cc(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return kc(h,t,e,h===`h`?s:c,!0)},[]),c=B.useCallback(function(e){var n=e;if(!(!Ic.length||Ic[Ic.length-1]!==a)){var r=`deltaY`in n?jc(n):Ac(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Nc(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Mc).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=B.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Rc(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=B.useCallback(function(e){n.current=Ac(e),r.current=void 0},[]),d=B.useCallback(function(t){l(t.type,jc(t),t.target,s(t,e.lockRef.current))},[]),f=B.useCallback(function(t){l(t.type,Ac(t),t.target,s(t,e.lockRef.current))},[]);B.useEffect(function(){return Ic.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,vc),document.addEventListener(`touchmove`,c,vc),document.addEventListener(`touchstart`,u,vc),function(){Ic=Ic.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,vc),document.removeEventListener(`touchmove`,c,vc),document.removeEventListener(`touchstart`,u,vc)}},[]);var p=e.removeScrollBar,m=e.inert;return B.createElement(B.Fragment,null,m?B.createElement(a,{styles:Pc(i)}):null,p?B.createElement(hc,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Rc(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var zc=Js(Ys,Lc),Bc=B.forwardRef(function(e,t){return B.createElement(Zs,Ms({},e,{ref:t,sideCar:zc}))});Bc.classNames=Zs.classNames;var Vc=`Popover`,[Hc,Uc]=Br(Vc,[Wo]),Wc=Wo(),[Gc,Kc]=Hc(Vc),qc=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Wc(t),c=B.useRef(null),[l,u]=B.useState(!1),[d,f]=bs({prop:r,defaultProp:i??!1,onChange:a,caller:Vc});return(0,z.jsx)(os,{...s,children:(0,z.jsx)(Gc,{scope:t,contentId:Oi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:B.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:B.useCallback(()=>u(!0),[]),onCustomAnchorRemove:B.useCallback(()=>u(!1),[]),modal:o,children:n})})};qc.displayName=Vc;var Jc=`PopoverAnchor`,Yc=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Kc(Jc,n),a=Wc(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return B.useEffect(()=>(o(),()=>s()),[o,s]),(0,z.jsx)(ss,{...a,...r,ref:t})});Yc.displayName=Jc;var Xc=`PopoverTrigger`,Zc=B.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=Kc(Xc,n),a=Wc(n),o=V(t,i.triggerRef),s=(0,z.jsx)(Y.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":fl(i.open),...r,ref:o,onClick:J(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,z.jsx)(ss,{asChild:!0,...a,children:s})});Zc.displayName=Xc;var Qc=`PopoverPortal`,[$c,el]=Hc(Qc,{forceMount:void 0}),tl=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Kc(Qc,t);return(0,z.jsx)($c,{scope:t,forceMount:n,children:(0,z.jsx)(ps,{present:n||a.open,children:(0,z.jsx)(ds,{asChild:!0,container:i,children:r})})})};tl.displayName=Qc;var nl=`PopoverContent`,rl=B.forwardRef((e,t)=>{let n=el(nl,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Kc(nl,e.__scopePopover);return(0,z.jsx)(ps,{present:r||a.open,children:a.modal?(0,z.jsx)(al,{...i,ref:t}):(0,z.jsx)(ol,{...i,ref:t})})});rl.displayName=nl;var il=we(`PopoverContent.RemoveScroll`),al=B.forwardRef((e,t)=>{let n=Kc(nl,e.__scopePopover),r=B.useRef(null),i=V(t,r),a=B.useRef(!1);return B.useEffect(()=>{let e=r.current;if(e)return js(e)},[]),(0,z.jsx)(Bc,{as:il,allowPin
Line truncated
|
||||
Reference in new issue
Block a user