<script lang="ts">
  import type { AvatarProps } from '../lib/types';

  let { size = 32, width, height, alt = "ChatGpt", class: className = "", ...rest }: AvatarProps = $props();
  let resolvedWidth = $derived(size ?? width ?? 32);
  let resolvedHeight = $derived(size ?? height ?? 32);
</script>

<svg viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"
  width={resolvedWidth}
  height={resolvedHeight}
  class={className}
  role={alt ? "img" : undefined}
  aria-label={alt || undefined}
  aria-hidden={alt ? undefined : "true"}
  {...rest}
>
<path d="M29.8905 13.0965C30.1644 12.2844 30.3041 11.4341 30.3042 10.5783C30.3041 9.16204 29.9218 7.77139 29.1965 6.54926C27.7392 4.04632 25.0358 2.50104 22.1101 2.50104C21.5337 2.50104 20.9589 2.56111 20.3953 2.68023C19.6372 1.8375 18.7067 1.16289 17.6651 0.700901C16.6235 0.238909 15.4945 2.46305e-05 14.3525 0H14.3012L14.2819 0.000111657C10.7383 0.000111657 7.59573 2.25626 6.50639 5.58234C5.37878 5.81021 4.31351 6.27314 3.3819 6.94012C2.45029 7.6071 1.67384 8.46276 1.10451 9.4498C0.381469 10.6793 0.00044245 12.0754 0 13.4969C0.000276322 15.4946 0.751842 17.4212 2.10916 18.9035C1.83518 19.7156 1.69544 20.5659 1.69532 21.4217C1.69545 22.838 2.07778 24.2286 2.80301 25.4507C3.66544 26.9323 4.98248 28.1054 6.56422 28.8007C8.14595 29.4961 9.91064 29.6778 11.6038 29.3197C12.362 30.1624 13.2926 30.837 14.3342 31.299C15.3759 31.761 16.505 31.9999 17.6471 32H17.6984L17.7192 31.9999C21.2648 31.9999 24.4063 29.7436 25.4957 26.4145C26.6233 26.1866 27.6885 25.7236 28.6201 25.0566C29.5518 24.3896 30.3282 23.534 30.8976 22.547C31.6199 21.3186 32.0002 19.9236 32 18.5034C31.9997 16.5057 31.2482 14.5792 29.8908 13.0969L29.8905 13.0965ZM17.7004 29.908H17.692C16.2733 29.9075 14.8996 29.4164 13.8099 28.5201C13.8746 28.4857 13.9385 28.45 14.0017 28.4128L20.4592 24.7325C20.6203 24.642 20.7543 24.511 20.8475 24.3529C20.9408 24.1947 20.9899 24.015 20.99 23.8321V14.8433L23.7194 16.3983C23.7337 16.4054 23.746 16.4158 23.7553 16.4287C23.7646 16.4416 23.7705 16.4565 23.7725 16.4722V23.911C23.7687 27.2183 21.0526 29.9013 17.7004 29.908ZM4.64224 24.4051C4.10885 23.4951 3.82783 22.4625 3.82747 21.4112C3.82747 21.0684 3.85782 20.7246 3.91692 20.3868C3.96493 20.4152 4.04871 20.4657 4.10884 20.4997L10.5663 24.1801C10.7273 24.2728 10.9104 24.3216 11.0968 24.3216C11.2832 24.3216 11.4663 24.2726 11.6272 24.1798L19.5111 19.6882V22.7983L19.5112 22.8037C19.5112 22.8187 19.5077 22.8334 19.5009 22.8468C19.4942 22.8602 19.4843 22.8719 19.4722 22.8809L12.9443 26.5998C12.0206 27.1243 10.9736 27.4005 9.90791 27.4008C8.84106 27.4006 7.793 27.1238 6.8688 26.5979C5.94461 26.0721 5.17676 25.3157 4.64224 24.4047V24.4051ZM2.94341 10.4955C3.65264 9.27998 4.77252 8.3493 6.10704 7.8663C6.10704 7.92116 6.10387 8.01835 6.10387 8.08583V15.4466L6.10376 15.4526C6.10379 15.6354 6.15283 15.8149 6.24592 15.9729C6.33901 16.1309 6.47282 16.2618 6.63376 16.3523L14.5177 20.8433L11.7884 22.3983C11.7749 22.407 11.7594 22.4124 11.7434 22.4138C11.7273 22.4152 11.7111 22.4128 11.6963 22.4065L5.16772 18.6845C4.24481 18.157 3.47863 17.3994 2.94595 16.4877C2.41328 15.5759 2.13283 14.542 2.13271 13.4896C2.13312 12.4389 2.41277 11.4066 2.94375 10.4958L2.94341 10.4955ZM25.3683 15.6445L17.4844 11.1529L20.2138 9.59849C20.2273 9.58973 20.2427 9.58438 20.2588 9.58294C20.2748 9.5815 20.291 9.584 20.3058 9.59023L26.8343 13.3091C27.758 13.8358 28.525 14.593 29.0583 15.5047C29.5916 16.4163 29.8725 17.4504 29.8727 18.503C29.8727 21.0154 28.2838 23.2635 25.8948 24.1312V16.5504C25.8951 16.5476 25.8951 16.5447 25.8951 16.5419C25.8951 16.3598 25.8463 16.1809 25.7538 16.0234C25.6613 15.8658 25.5283 15.7351 25.3683 15.6445ZM28.0849 11.6102C28.0214 11.5718 27.9575 11.5342 27.8931 11.4974L21.4356 7.81692C21.2746 7.72435 21.0916 7.67555 20.9053 7.67549C20.7189 7.67555 20.5359 7.72435 20.3749 7.81692L12.4909 12.3086V9.19843L12.4908 9.19307C12.4908 9.16268 12.5054 9.13408 12.53 9.11587L19.0579 5.40012C19.9812 4.87488 21.0283 4.59837 22.0941 4.59832C25.4506 4.59832 28.1725 7.28403 28.1725 10.5958C28.1724 10.9357 28.143 11.2749 28.0849 11.6099V11.6102ZM11.007 17.1534L8.27701 15.5984C8.26268 15.5914 8.25034 15.581 8.24107 15.5681C8.23181 15.5552 8.22591 15.5403 8.2239 15.5246V8.0856C8.22538 4.77562 10.9473 2.09215 14.3023 2.09215C15.7232 2.09244 17.0992 2.58359 18.1915 3.48036C18.1423 3.50683 18.0566 3.55353 17.9997 3.58761L11.5422 7.26794C11.3811 7.35839 11.2471 7.48931 11.1539 7.64741C11.0607 7.80551 11.0116 7.98515 11.0115 8.16805V8.17397L11.007 17.1534ZM12.4897 13.9993L16.001 11.9982L19.5124 13.998V17.9988L16.001 19.9987L12.4897 17.9988V13.9993Z" fill="currentColor"/>
</svg>
