+
    0j
                         R t ^ RIt^ RIt^ RIHtHt ]P                  R8  d   ^ RIHt	 M^ RI
t	^ RIHt ^ RIHt ^ RIHt  ! R R]4      tR R	 ltR
 R ltR# )z-General utils for the fake_useragent package.N)	TypedDictUnionPath)FakeUserAgentError)loggerc                   D   a  ] tR t^t o Rt          V 3R ltRtV tR# )BrowserUserAgentDatazVThe schema for the browser user agent data that the `browsers.jsonl` file must follow.c                   < V ^8  d   Qh/ S[ ;R&   S[;R&   S[ ;R&   S[S[ R3,          ;R&   S[S[ R3,          ;R&   S[ ;R&   S[;R&   S[S[ R3,          ;R	&   S[S[ R3,          ;R
&   S[ ;R&   # )   	useragentpercenttypeNdevice_brandbrowserbrowser_versionbrowser_version_major_minoros
os_versionplatform)strfloatr   )format__classdict__s   "i/Users/mitch_tango/dev/rabbit-r1-livekit/agent/.venv/lib/python3.14/site-packages/fake_useragent/utils.py__annotate__!BrowserUserAgentData.__annotate__   s      N 
 N  I  T	""  39    "'& " 	c4i# & c4i  ' * M+      N)__name__
__module____qualname____firstlineno____doc____annotate_func____static_attributes____classdictcell__)r   s   @r   r	   r	      s/     ` !1F:>7=39-  r   r	   c                $    V ^8  d   QhR\         /# r   returnr   )r   s   "r   r   r   ,   s     R R Rr   c                      \         P                  ! R4      P                  R4      p \        \	        V 4      4      #   \
         d*   p\        P                  ! RTR7       \        R4      ThRp?ii ; i)zFind the path to the browsers.json file.

Returns:
    Path: Path to the browsers.json file.

Raises:
    FakeUserAgentError: If unable to find the file.
zfake_useragent.datazbrowsers.jsonlz?Unable to find local data/jsonl file using importlib-resources.)exc_infoz$Could not locate browsers.jsonl fileN)	ilrfilesjoinpathr   r   	Exceptionr   warningr   )	file_pathexcs     r   find_browser_json_pathr3   ,   sf    RII34==>NO	C	N## RM	
 !!GHcQRs   8; A/$A**A/c                :    V ^8  d   QhR\         \        ,          /# r(   )listr	   )r   s   "r   r   r   @   s      d'( r   c                 ^   . p  \        4       pVP                  4       P                  4        F(  pV P                  \        P
                  ! V4      4       K*  	  T '       g   \        RT 4      h\        T \        4      '       g   \        RT 4      hT #   \         d   p\        R4      ThRp?ii ; i)zLoad the included `browser.json` file into memory.

Raises:
    FakeUserAgentError: If unable to load or parse the data.

Returns:
    list[BrowserUserAgentData]: The list of browser user agent data, following the
        `BrowserUserAgentData` schema.
z%Failed to load or parse browsers.jsonNzData list is emptyzData is not a list)
r3   	read_text
splitlinesappendjsonloadsr/   r   
isinstancer5   )data	json_pathliner2   s       r   loadr@   @   s     DS*,	'')446DKK

4() 7
  !5t<<dD!! !5t<<K  S !HIsRSs   AB B,B''B,)   
   )r#   r:   systypingr   r   version_infoimportlib.resources	resourcesr,   importlib_resourcespathlibr   fake_useragent.errorsr   fake_useragent.logr   r	   r3   r@   r   r   r   <module>rL      sG    3  
 # w%%  4 %:9 :2R(r   