{"version":3,"file":"AppleButton.D2PLozNd.mjs","names":["useRef","useState","useCallback","_Fragment","buttonStyle","useRef","useState"],"sources":["https:/framerusercontent.com/modules/lL7IhUCDphqwlKIs7ho8/kPhHX4sQW4GLXAM3xvDm/GoogleButton.js","https:/framerusercontent.com/modules/KvbKKSrcxpHsvTV9cn5c/B5JgFjmXK5VJCHmaxolO/AppleButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState,useCallback}from\"react\";const GOOGLE_CLIENT_ID=\"949990311987-ei3op0ol2ivpr2lp83524vevpk96ro7k.apps.googleusercontent.com\";const STORAGE_KEY=\"tns_google_user\";function getStoredUser(){try{const raw=localStorage.getItem(STORAGE_KEY);if(!raw)return null;return JSON.parse(raw);}catch{return null;}}function setStoredUser(user){try{localStorage.setItem(STORAGE_KEY,JSON.stringify(user));}catch{// localStorage not available\n}}function clearStoredUser(){try{localStorage.removeItem(STORAGE_KEY);}catch{// localStorage not available\n}}/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function GoogleButton({handleEmailUpdate,handleAutoDetect,handleDismiss,handleError,style:cssStyle}){const hiddenButtonRef=useRef(null);const[isLoading,setIsLoading]=useState(false);const[scriptLoaded,setScriptLoaded]=useState(false);// User info (from localStorage or explicit sign-in)\nconst[signedInEmail,setSignedInEmail]=useState(null);const[signedInName,setSignedInName]=useState(null);const[signedInPicture,setSignedInPicture]=useState(null);const[dismissed,setDismissed]=useState(false);const[isAutoDetected,setIsAutoDetected]=useState(false);const decodeJWT=token=>{try{const parts=token.split(\".\");if(parts.length!==3){throw new Error(\"Invalid JWT token format\");}const payload=parts[1];const base64=payload.replace(/-/g,\"+\").replace(/_/g,\"/\");const paddedBase64=base64+\"=\".repeat((4-base64.length%4)%4);const decodedPayload=atob(paddedBase64);return JSON.parse(decodedPayload);}catch(error){console.error(\"Error decoding JWT:\",error);return null;}};const handleCredentialResponse=useCallback(response=>{try{const decodedToken=decodeJWT(response.credential);if(decodedToken){const email=decodedToken.email;const name=decodedToken.name||null;const picture=decodedToken.picture||null;setSignedInEmail(email);setSignedInName(name);setSignedInPicture(picture);setIsLoading(false);setDismissed(false);setIsAutoDetected(false);// Persist for next visit\nsetStoredUser({email,...name?{name}:{},...picture?{picture}:{}});// User explicitly clicked — auto-save after showing success\nsetTimeout(()=>{handleEmailUpdate(email);},1500);}}catch(error){console.error(\"Error decoding JWT:\",error);handleError(\"Could not capture email address\");setIsLoading(false);}},[handleEmailUpdate,handleError]);const handleUseDifferentEmail=()=>{setSignedInEmail(null);setSignedInName(null);setSignedInPicture(null);setDismissed(true);setIsAutoDetected(false);clearStoredUser();if(window.google?.accounts?.id){window.google.accounts.id.disableAutoSelect();}if(handleDismiss){handleDismiss();}};// Initialize GIS and render the hidden button\nconst ensureGoogleReady=useCallback(()=>{if(typeof window===\"undefined\"||!window.google?.accounts?.id){return;}try{window.google.accounts.id.initialize({client_id:GOOGLE_CLIENT_ID,callback:handleCredentialResponse,ux_mode:\"popup\",auto_prompt:false,auto_select:false});if(hiddenButtonRef.current){hiddenButtonRef.current.innerHTML=\"\";window.google.accounts.id.renderButton(hiddenButtonRef.current,{type:\"standard\",theme:\"outline\",size:\"large\",width:300});}}catch(error){console.error(\"Error initializing Google Sign In:\",error);}},[handleCredentialResponse]);const handleGoogleButtonClick=()=>{setIsLoading(true);ensureGoogleReady();setTimeout(()=>{if(hiddenButtonRef.current){const innerButton=hiddenButtonRef.current.querySelector('div[role=\"button\"]');if(innerButton){innerButton.click();return;}const iframe=hiddenButtonRef.current.querySelector(\"iframe\");if(iframe){iframe.click();return;}}setIsLoading(false);},100);setTimeout(()=>setIsLoading(false),3e3);};// Load Google Identity Services script imperatively\nuseEffect(()=>{if(typeof window===\"undefined\")return;// Already loaded\nif(window.google?.accounts?.id){setScriptLoaded(true);return;}// Check if script tag already exists\nconst existing=document.querySelector('script[src=\"https://accounts.google.com/gsi/client\"]');if(existing){existing.addEventListener(\"load\",()=>setScriptLoaded(true));return;}const script=document.createElement(\"script\");script.src=\"https://accounts.google.com/gsi/client\";script.async=true;script.onload=()=>setScriptLoaded(true);script.onerror=()=>console.error(\"Failed to load Google Identity Services\");document.head.appendChild(script);},[]);// On mount: check localStorage for returning user\nuseEffect(()=>{const stored=getStoredUser();if(stored&&stored.email){setSignedInEmail(stored.email);setSignedInName(stored.name||null);setSignedInPicture(stored.picture||null);setIsAutoDetected(true);if(handleAutoDetect){handleAutoDetect(stored.email);}}},[]);// Initialize GIS when script loads\nuseEffect(()=>{if(scriptLoaded){ensureGoogleReady();}},[scriptLoaded,ensureGoogleReady]);// Re-initialize when dismissed changes\nuseEffect(()=>{if(dismissed&&scriptLoaded){ensureGoogleReady();}},[dismissed,scriptLoaded,ensureGoogleReady]);// Hidden button div (always in DOM for Google to render into)\nconst hiddenButtonDiv=/*#__PURE__*/_jsx(\"div\",{ref:hiddenButtonRef,style:{position:\"absolute\",opacity:0,pointerEvents:\"none\",width:0,height:0,overflow:\"hidden\"}});// Auto-detected returning user — show their info + \"use different email\" link\nif(signedInEmail&&isAutoDetected&&!dismissed){return /*#__PURE__*/_jsxs(\"div\",{style:detectedWrapperStyle,children:[hiddenButtonDiv,/*#__PURE__*/_jsx(\"div\",{style:detectedContainerStyle,children:/*#__PURE__*/_jsxs(\"div\",{style:detectedRowStyle,children:[signedInPicture?/*#__PURE__*/_jsx(\"img\",{src:signedInPicture,alt:\"\",style:avatarStyle,referrerPolicy:\"no-referrer\"}):/*#__PURE__*/_jsx(\"div\",{style:avatarFallbackStyle,children:(signedInName||signedInEmail)[0].toUpperCase()}),/*#__PURE__*/_jsxs(\"div\",{style:detectedTextWrapStyle,children:[signedInName&&/*#__PURE__*/_jsx(\"div\",{style:detectedNameStyle,children:signedInName}),/*#__PURE__*/_jsx(\"div\",{style:detectedEmailStyle,children:signedInEmail})]}),/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0,opacity:.5},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z\",fill:\"#4285F4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z\",fill:\"#34A853\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z\",fill:\"#FBBC05\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z\",fill:\"#EA4335\"})]})]})}),/*#__PURE__*/_jsx(\"a\",{href:\"#\",onClick:e=>{e.preventDefault();handleUseDifferentEmail();},style:useDifferentEmailStyle,children:\"Use a different email\"})]});}// Explicit sign-in success — green confirmation + auto-saving\nif(signedInEmail&&!isAutoDetected&&!dismissed){return /*#__PURE__*/_jsxs(\"div\",{style:successContainerStyle,children:[hiddenButtonDiv,/*#__PURE__*/_jsxs(\"div\",{style:successRowStyle,children:[signedInPicture?/*#__PURE__*/_jsx(\"img\",{src:signedInPicture,alt:\"\",style:avatarStyle,referrerPolicy:\"no-referrer\"}):/*#__PURE__*/_jsx(\"div\",{style:avatarFallbackStyle,children:(signedInName||signedInEmail)[0].toUpperCase()}),/*#__PURE__*/_jsxs(\"div\",{style:detectedTextWrapStyle,children:[signedInName&&/*#__PURE__*/_jsx(\"div\",{style:successNameStyle,children:signedInName}),/*#__PURE__*/_jsx(\"div\",{style:successEmailStyle,children:signedInEmail})]}),/*#__PURE__*/_jsxs(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"10\",cy:\"10\",r:\"10\",fill:\"#10B981\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M6 10.5L8.5 13L14 7.5\",stroke:\"white\",strokeWidth:\"1.5\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]})]}),/*#__PURE__*/_jsx(\"div\",{style:savingTextStyle,children:\"Saving your design...\"})]});}// Default: show \"Continue with Google\" button\nreturn /*#__PURE__*/_jsxs(_Fragment,{children:[hiddenButtonDiv,/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:handleGoogleButtonClick,disabled:isLoading,style:{...buttonStyle,...cssStyle?{...cssStyle}:{},...isLoading?{opacity:.6,cursor:\"not-allowed\"}:{}},onMouseEnter:e=>{if(!isLoading){e.currentTarget.style.backgroundColor=\"#F9FAFB\";e.currentTarget.style.borderColor=\"#9AABB5\";}},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=\"#fff\";e.currentTarget.style.borderColor=\"#ACB7C2\";},\"aria-label\":\"Continue with Google\",children:[/*#__PURE__*/_jsxs(\"svg\",{width:\"18\",height:\"18\",viewBox:\"0 0 18 18\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:[/*#__PURE__*/_jsx(\"path\",{d:\"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 01-1.796 2.716v2.259h2.908c1.702-1.567 2.684-3.875 2.684-6.615z\",fill:\"#4285F4\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 18c2.43 0 4.467-.806 5.956-2.18l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 009 18z\",fill:\"#34A853\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3.964 10.71A5.41 5.41 0 013.682 9c0-.593.102-1.17.282-1.71V4.958H.957A8.996 8.996 0 000 9c0 1.452.348 2.827.957 4.042l3.007-2.332z\",fill:\"#FBBC05\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 00.957 4.958L3.964 7.29C4.672 5.163 6.656 3.58 9 3.58z\",fill:\"#EA4335\"})]}),isLoading?\"Signing in...\":\"Continue with Google\"]})]});}const buttonStyle={width:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:\"10px\",padding:\"12px 24px\",backgroundColor:\"#fff\",border:\"1px solid #ACB7C2\",borderRadius:\"6px\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',fontSize:\"14px\",fontWeight:500,color:\"#1F2937\",cursor:\"pointer\",transition:\"background 0.15s, border-color 0.15s\",boxShadow:\"none\"};const detectedWrapperStyle={width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:\"8px\"};const detectedContainerStyle={width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"0px\",padding:\"10px 12px\",backgroundColor:\"#F9FAFB\",border:\"1px solid #E5E7EB\",borderRadius:\"6px\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif'};const detectedRowStyle={display:\"flex\",alignItems:\"center\",gap:\"10px\",width:\"100%\"};const detectedTextWrapStyle={flex:1,minWidth:0,display:\"flex\",flexDirection:\"column\",gap:\"1px\"};const detectedNameStyle={fontSize:\"13px\",fontWeight:500,color:\"#111827\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const detectedEmailStyle={fontSize:\"12px\",fontWeight:400,color:\"#6B7280\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const useDifferentEmailStyle={fontSize:\"12px\",fontWeight:400,color:\"#9CA3AF\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif',textDecoration:\"underline\",cursor:\"pointer\",textUnderlineOffset:\"2px\"};const successContainerStyle={width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"10px\",padding:\"14px 16px\",backgroundColor:\"#F0FDF4\",border:\"1px solid #BBF7D0\",borderRadius:\"6px\",fontFamily:'\"Inter\", \"Inter Placeholder\", sans-serif'};const successRowStyle={display:\"flex\",alignItems:\"center\",gap:\"10px\",width:\"100%\"};const avatarStyle={width:\"32px\",height:\"32px\",borderRadius:\"50%\",flexShrink:0,objectFit:\"cover\"};const avatarFallbackStyle={width:\"32px\",height:\"32px\",borderRadius:\"50%\",flexShrink:0,backgroundColor:\"#10B981\",color:\"#fff\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:\"14px\",fontWeight:600};const successNameStyle={fontSize:\"13px\",fontWeight:500,color:\"#111827\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const successEmailStyle={fontSize:\"12px\",fontWeight:400,color:\"#6B7280\",lineHeight:1.3,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"};const savingTextStyle={fontSize:\"12px\",fontWeight:400,color:\"#059669\",textAlign:\"center\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleButton.map","// Sign in with Apple Button for Framer\n// - Uses Apple JS API\n// - Captures email (when available) from ID token\n// - Calls handleEmailUpdate(email) and handleError(message)\n//\n// IMPORTANT:\n// 1. Replace APPLE_CLIENT_ID and APPLE_REDIRECT_URI with your values.\n// 2. Apple requires you to configure Services ID + redirect URL in Apple Developer.\n// 3. Email is only guaranteed on first authorization; subsequent logins may not include it.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";const APPLE_CLIENT_ID=\"com.thenightsky.save-design-svc\";const APPLE_REDIRECT_URI=\"https://www.thenightsky.com/redirect\";const APPLE_SCOPE=\"name email\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AppleButton({handleEmailUpdate,handleError,style:cssStyle}){const buttonRef=useRef(null);const[isDisabled,setIsDisabled]=useState(false);const isInitialized=useRef(false);const decodeJWT=token=>{try{const parts=token.split(\".\");if(parts.length!==3)throw new Error(\"Invalid JWT token format\");const payload=parts[1];const base64=payload.replace(/-/g,\"+\").replace(/_/g,\"/\");const paddedBase64=base64+\"=\".repeat((4-base64.length%4)%4);const decodedPayload=atob(paddedBase64);return JSON.parse(decodedPayload);}catch(error){console.error(\"Error decoding Apple ID JWT:\",error);return null;}};const initApple=()=>{try{if(typeof window===\"undefined\")return;if(!window.AppleID?.auth)return;if(isInitialized.current)return;window.AppleID.auth.init({clientId:APPLE_CLIENT_ID,scope:APPLE_SCOPE,redirectURI:APPLE_REDIRECT_URI,usePopup:true});isInitialized.current=true;}catch(error){console.error(\"Error initializing Sign in with Apple:\",error);handleError(\"Sign in with Apple is not available right now.\");}};const ensureScript=()=>{if(typeof window===\"undefined\")return;const existing=document.querySelector('script[src*=\"appleid.cdn-apple.com/appleauth\"]');if(existing){if(window.AppleID?.auth)initApple();else{existing.addEventListener(\"load\",()=>initApple(),{once:true});}return;}const script=document.createElement(\"script\");script.src=\"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js\";script.async=true;script.onload=()=>{initApple();};script.onerror=()=>{console.error(\"Failed to load Apple Sign In script\");handleError(\"Failed to load Sign in with Apple.\");};document.body.appendChild(script);};const handleAppleClick=async()=>{try{if(!window.AppleID?.auth){handleError(\"Sign in with Apple is not ready yet.\");return;}const response=await window.AppleID.auth.signIn();const idToken=response?.authorization?.id_token;if(!idToken){handleError(\"No ID token returned from Apple.\");return;}const decoded=decodeJWT(idToken);// Apple may return email in:\n// - response.user.email (first time)\n// - decoded.email (from token claims)\nconst email=response.user?.email||decoded?.email||decoded?.emailAddress||null;if(!email){// Common case on subsequent logins:\n// Apple no longer returns email; you should rely on server-side linking.\nhandleError(\"We could not retrieve your email from Apple. Please try another sign-in option.\");return;}handleEmailUpdate(email);}catch(error){console.error(\"Error during Sign in with Apple:\",error);// Apple errors may have a .error property\nconst message=error?.error===\"popup_closed_by_user\"?\"Sign in with Apple was cancelled.\":\"Sign in with Apple failed. Please try again.\";handleError(message);setIsDisabled(true);}};useEffect(()=>{ensureScript();},[]);return /*#__PURE__*/_jsx(\"div\",{style:{...buttonStyle,...cssStyle?{...cssStyle}:{},...isDisabled?{display:\"none\"}:{}},onMouseEnter:e=>{e.currentTarget.style.boxShadow=\"0 2px 6px rgba(0,0,0,0.16)\";e.currentTarget.style.transform=\"translateY(-1px)\";},onMouseLeave:e=>{e.currentTarget.style.boxShadow=\"0 1px 3px rgba(0,0,0,0.12)\";e.currentTarget.style.transform=\"translateY(0)\";},children:/*#__PURE__*/_jsx(\"button\",{ref:buttonRef,onClick:handleAppleClick,style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"38px\",height:\"38px\",cursor:\"pointer\",padding:0,border:\"none\",background:\"none\",boxShadow:\"none\"},\"aria-label\":\"Sign in with Apple\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"22\",height:\"22\",viewBox:\"0 0 24 24\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M16.365 1.43c0 1.14-.417 2.097-1.245 2.948-.9.93-1.984 1.47-3.17 1.386-.05-1.09.442-2.118 1.26-2.93.4-.405.9-.744 1.5-1.005.6-.27 1.17-.42 1.655-.46.02.35.04.69.04 1.06zM21.5 17.24c-.32.74-.7 1.42-1.14 2.05-.6.86-1.09 1.45-1.47 1.78-.59.54-1.22.82-1.9.84-.48 0-1.06-.14-1.75-.43-.69-.28-1.33-.43-1.92-.43-.6 0-1.25.15-1.96.43-.71.29-1.28.44-1.71.45-.65.03-1.3-.26-1.96-.86-.42-.36-.94-.98-1.56-1.86-.67-.93-1.22-2.01-1.65-3.26-.46-1.36-.69-2.68-.69-3.95 0-1.46.32-2.72.96-3.8.5-.85 1.16-1.52 1.98-2 .82-.49 1.7-.75 2.63-.77.52 0 1.2.16 2.02.47.82.31 1.35.47 1.59.47.18 0 .77-.19 1.78-.56.95-.34 1.75-.48 2.4-.43 1.78.14 3.12.85 3.99 2.13-1.59.96-2.38 2.31-2.38 4.04 0 1.35.5 2.48 1.51 3.36.45.4.95.71 1.5.93-.12.34-.25.68-.39 1.02z\",fill:\"#000000\"})})})});}const buttonStyle={display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",width:\"40px\",height:\"40px\",borderRadius:\"5px\",border:\"1px solid #121824\",boxShadow:\"0 1px 3px rgba(0,0,0,0.12)\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AppleButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AppleButton.map"],"mappings":"8JAA8Q,SAAS,GAAe,CAAC,GAAG,CAAC,IAAM,EAAI,aAAa,QAAQ,CAAW,EAAsB,OAAhB,EAAuB,KAAK,MAAM,CAAG,EAA1B,IAA4B,MAAM,CAAC,OAAO,IAAK,CAAC,CAAC,SAAS,EAAc,EAAK,CAAC,GAAG,CAAC,aAAa,QAAQ,EAAY,KAAK,UAAU,CAAI,CAAC,CAAE,MAAM,CACrf,CAAC,CAAC,SAAS,GAAiB,CAAC,GAAG,CAAC,aAAa,WAAW,CAAW,CAAE,MAAM,CAC5E,CAAC,CAGE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