
    >h"	                     0    S r SSKrSSKJr  SrS rSS jrg)zj
Provides a function to open the system browser to either search or go directly
to a function's reference
    N)	urlencodezhttps://www.statsmodels.org/c                 p   [         nU(       a  US-  nOUS-  nU c  U$ [        U [        5      (       a  US-  nU[        SU 05      -  nUS-  nU$  U n U R                  nU R
                  nUR                  S5      (       d  [        S5      eUS-  nX$S	-   U-   S
-   -  nU$ ! [         a    [        S5      ef = f)zk
Parse inputs and return a correctly formatted URL or raises ValueError
if the input is not understandable
zstable/zdevel/zsearch.html?qz &check_keywords=yes&area=defaultzstatsmodels.z!Function must be from statsmodelsz
generated/.z.htmlzInput not understood)	BASE_URL
isinstancestrr   __name__
__module__
startswith
ValueErrorAttributeError)funcstableurl	func_namefunc_modules        hC:\Users\julio\OneDrive\Documentos\Trabajo\Ideas Frescas\venv\Lib\site-packages\statsmodels/tools/web.py_generate_urlr      s    
 Cyx|
	D#		~y#t%%11 J		5DI//K)).99 !DEE<C$y07::C J  	5344	5s   AB B5c                 f    SSK Jn  SU;  a  UOUn[        X5      n[        R                  " U5        g)a  
Opens a browser and displays online documentation

Parameters
----------
func : {str, callable}
    Either a string to search the documentation or a function
stable : bool
    Flag indicating whether to use the stable documentation (True) or
    the development documentation (False).  If not provided, opens
    the stable documentation if the current version of statsmodels is a
    release

Examples
--------
>>> import statsmodels.api as sm

Documentation site

>>> sm.webdoc()

Search for glm in docs

>>> sm.webdoc('glm')

Go to current generated help for OLS

>>> sm.webdoc(sm.OLS, stable=False)

Notes
-----
By default, open stable documentation if the current version of
statsmodels is a release.  Otherwise opens the development documentation.

Uses the default system browser.
r   )__version__devN)statsmodels._versionr   r   
webbrowseropen)r   r   r   url_or_errors       r   webdocr   *   s/    J 1!4[&F .LOOL!    )NN)__doc__r   urllib.parser   r   r   r    r   r   <module>r"      s!     ")>*r   