ó
    .™9ivn  ã                   ó  • S r SSKrSSKrSSKrSSKJr  SSKJr  SSKJ	r	  SSK
J
r
  SSKJrJrJrJrJrJrJr  SSKJr  SS	KJr  SS
KJr  SSKJr  \" \5      rSrSrS\ S3rS\ S\ 4S jr!S r" " S S\5      rS r\\ \" SS94   r# " S S\5      r$ " S S\5      r% " S S\%5      r& " S S \%5      r' " S! S"\%5      r( " S# S$\5      r) " S% S&\5      r* " S' S(\5      r+S-S) jr,S-S* jr-S+ r.\S,:X  a  \," 5         \-" 5         gg).z,
Generate JSON schemas from pydantic models
é    N)Úcleandoc)Ú	getLogger)ÚPath)Úpprint)Ú	AnnotatedÚAnyÚDictÚListÚLiteralÚOptionalÚUnion)Ú	BaseModel)ÚField)Ú
ConfigDict)Úconlistz'http://json-schema.org/draft-07/schema#z1-1-3z#https://schemas.conda.org/menuinst-ú.schema.jsonÚdescriptionÚreturnc                 ó  • [         R                  " SS[        U 5      5      n [        R                  R                  S5      (       aB  SS KnUR                  5       R                  U 5      nUR                  5       R                  U5      n U $ )Nz(?<!\n)\n(?=\S)Ú ÚSPHINX_RUNNINGr   )ÚreÚsubr   ÚosÚenvironÚgetÚ
commonmarkÚParserÚparseÚReStructuredTextRendererÚrender)r   r   Úasts      Ú%Lib\site-packages\menuinst\_schema.pyÚ_clean_descriptionr$      si   € ä—&’&Ð+¨S´(¸;Ó2GÓH€KÜ	‡z�z‡~�~Ð&×'Ñ'ãà×ÑÓ!×'Ñ'¨Ó4ˆØ ×9Ñ9Ó;×BÑBÀ3ÓGˆØÐó    c                 ó\   • U R                  S5      =n(       a  [        U5      nXS'   XS'   g g )Nr   ÚmarkdownDescription)r   r$   )Úschemar   s     r#   Ú_patch_descriptionr)   *   s6   € Ø—j‘j Ó/Ð/€{Õ/Ü(¨Ó5ˆØ +ˆ}ÑØ(3Ð$Ò%ð 0r%   c                   ó.   • \ rS rSr% \" S\S9r\\S'   Srg)r   é1   Úforbid©ÚextraÚjson_schema_extraÚmodel_config© N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r)   r0   Ú__annotations__Ú__static_attributes__r1   r%   r#   r   r   1   s   ‡ Ù)°ÐL^Ñ_€L�*Ö_r%   r   c                  ó”   • UR                  S5      =n(       a&  [        U5      US'   US   UR                  S0 5      S'   [        U 0 UD6$ )Nr   r/   r'   )r   r$   Ú
setdefaultÚ_Field)ÚargsÚkwargsr   s      r#   r   r   5   sT   € Ø—j‘j Ó/Ð/€{Õ/Ü 2°;Ó ?ˆˆ}ÑØLRÐS`ÑLaˆ×ÑÐ-¨rÓ2Ð3HÑIÜ�4Ð"˜6Ñ"Ð"r%   é   ©Ú
min_lengthc                   óV   • \ rS rSr% Sr\" SSS9r\\   \	S'   \" SSS9r
\\   \	S'   S	rg)
ÚMenuItemNameDicté>   z‡
Variable menu item name.
Use this dictionary if the menu item name depends on installation parameters
such as the target environment.
Nz5Name when target environment is the base environment.©r   Útarget_environment_is_basez9Name when target environment is not the base environment.Útarget_environment_is_not_baser1   )r2   r3   r4   r5   Ú__doc__r   rD   r   ÚNonEmptyStringr6   rE   r7   r1   r%   r#   rA   rA   >   sI   ‡ ññ <AØØLñ<Ð ¨Ñ 8ó ñ @EØØPñ@Ð" H¨^Ñ$<ö r%   rA   c                   ó<  • \ rS rSr% Sr\" SSS9r\\\	\
4      \S'   \" SSS9r\\   \S'   \" SS	S9r\\	   \S
'   \" SSS9r\\" \SS9   \S'   \" SSS9r\\	   \S'   \" SSS9r\\	   \S'   \" SSS9r\\	   \S'   \" SSS9r\\   \S'   \" SSS9r\\   \S'   Srg)ÚBasePlatformSpecificéO   z 
Same as `MenuItem`, but without `platforms`, and all is optional.

Note:
* This needs to be kept up-to-date with `MenuItem`!
* Default value is always `None`.
Nú¨
            The name of the menu item. Can be a dictionary if the name depends on
            installation parameters. See `MenuItemNameDict` for details.
            rC   Únameú?A longer description of the menu item. Shown on popup messages.r   ú5Path to the file representing or containing the icon.Úiconú‰
            Command to run with the menu item, expressed as a
            list of strings where each string is an argument.
            r=   r>   Úcommandú}
            Working directory for the running process.
            Defaults to user directory on each platform.
            Úworking_dirúª
            (Simple, preferrably single-line) logic to run before the command is run.
            Runs before the environment is activated, if that applies.
            Ú
precommandzN(Simple, preferrably single-line) logic to run before the shortcut is created.Ú	precreateúDWhether to activate the target environment before running `command`.ÚactivateúÞ
            Whether run the program in a terminal/console or not.
            On Windows, it only has an effect if `activate` is true.
            On MacOS, the application will ignore command-line arguments.
            Úterminalr1   )r2   r3   r4   r5   rF   r   rL   r   r   rG   rA   r6   r   ÚstrrO   rQ   r   rS   rU   rV   rX   ÚboolrZ   r7   r1   r%   r#   rI   rI   O   s/  ‡ ññ ?DØðñ?€Dˆ(�5˜Ð)9Ð9Ñ:Ñ
;ó ñ "'ØØVñ"€K�˜#‘ó ñ &+ØØLñ&€Dˆ(�>Ñ
"ó ñ 5:Øðñ5€GˆX‘g˜c¨aÑ0Ñ1ó ñ -2Øðñ-€K�˜.Ñ)ó ñ ,1Øðñ,€J�˜Ñ(ó ñ +0Øà`ñ+€Iˆx˜Ñ'ó ñ  %ØØ[ñ €Hˆh�t‰nó ñ  %Øðñ	 €Hˆh�t‰nö 	r%   rI   c                   ó  • \ rS rSr% Sr\" SSS9r\\   \	S'   \" SSSS	9r
\\   \	S
'   \" SSS9r\\   \	S'   \" SSS9r\\\\\" SS94         \	S'   \" SSS9r\\\\\" SS94         \	S'   \" SSS9r\\\\" SSS94      \	S'   Srg)ÚWindowséš   zJWindows-specific instructions. You can override global keys here if neededTzDWhether to create a desktop icon in addition to the Start Menu item.rC   ÚdesktopFzo
            DEPRECATED. Whether to create a quick launch icon in addition to the Start Menu item.
            )r   Ú
deprecatedÚquicklaunchNzÞ
            Name of the Windows Terminal profile to create.
            This name must be unique across multiple installations because
            menuinst will overwrite Terminal profiles with the same name.
            Úterminal_profilez8URL protocols that will be associated with this program.z\S+©ÚpatternÚurl_protocolsz:File extensions that will be associated with this program.z\.\S*Úfile_extensionsa  
            Identifier used in Windows 7 and above to associate processes, files and windows with a
            particular application. If your shortcut produces duplicated icons, you need to define
            this field. If not set, it will default to `Menuinst.<name>`.

            See [AppUserModelID docs](
            https://learn.microsoft.com/en-us/windows/win32/shell/appids#how-to-form-an-application-defined-appusermodelid)
            for more information on the required string format.
            z\S+\.\S+é€   )re   Ú
max_lengthÚapp_user_model_idr1   )r2   r3   r4   r5   rF   r   r`   r   r\   r6   rb   rc   rG   rf   r
   r   r[   rg   rj   r7   r1   r%   r#   r^   r^   š   s  ‡ ÙPá#ØØ[ñ€GˆX�d‰^ó ñ #(Øðð ñ#€K�˜$‘ó ñ 27Øðñ	2Ð�h˜~Ñ.ó 	ñ LQØØOñL€M�8˜D ¨3±¸fÑ0EÐ+EÑ!FÑGÑHó ñ PUØØQñP€O�X˜d 9¨S±%ÀÑ2IÐ-IÑ#JÑKÑLó ñ _dØðñ_Ð�x 	¨#©u¸[ÐUXÑ/YÐ*YÑ ZÑ[ö r%   r^   c            	       óâ  • \ rS rSr% Sr\" SSS9r\\\	\
   \\
\" SS94   4      \S'   \" SS	S9r\\   \S
'   \" SSS9r\\
   \S'   \" SSS9r\\   \S'   \" SSS9r\\\	\
   \\
\" SS94   4      \S'   \" SSS9r\\\	\
   \\
\" SS94   4      \S'   \" SSS9r\\\	\
   \\
\" SS94   4      \S'   \" SSS9r\\   \S'   \" SSS9r\\\	\
   \\
\" SS94   4      \S'   \" SSS9r\\\	\
   \\
\" SS94   4      \S'   \" SSS9r\\   \S'   \" SSS9r\\   \S'   \" SSS9r\\   \S '   \" SSS9r\\
   \S!'   \" SS"S9r\\
   \S#'   \" SS$S9r\\\
\\
\" S%S94   4      \S&'   S'rg)(ÚLinuxéÌ   z±
Linux-specific instructions.

Check the [Desktop entry specification](
https://specifications.freedesktop.org/desktop-entry-spec/latest/recognized-keys.html)
for more details.
NzË
            Categories in which the entry should be shown in a menu.
            See 'Registered categories' in the [Menu Spec](
            http://www.freedesktop.org/Standards/menu-spec).
            rC   z^.+;$rd   Ú
Categorieszk
            A boolean value specifying if D-Bus activation is supported for this application.
            ÚDBusActivatablez„
            Generic name of the application; e.g. if the name is 'conda',
            this would be 'Package Manager'.
            ÚGenericNamez/Disable shortcut, signaling a missing resource.ÚHiddenzÀ
            List of supported interfaces. See 'Interfaces' in [Desktop Entry Spec](
            https://specifications.freedesktop.org/desktop-entry-spec/latest/interfaces.html).
            Ú
Implementsz?Additional terms to describe this shortcut to aid in searching.ÚKeywordsaI  
            The MIME type(s) supported by this application.
            Note this includes file types and URL protocols.
            For URL protocols, use `x-scheme-handler/your-protocol-here`.
            For example, if you want to register `menuinst:`, you would
            include `x-scheme-handler/menuinst`.
            ÚMimeTypez×
            Do not show this item in the menu. Useful to associate MIME types
            and other registrations, without having an actual clickable item.
            Not to be confused with 'Hidden'.
            Ú	NoDisplayz‰
            Desktop environments that should NOT display this item.
            It'll check against `$XDG_CURRENT_DESKTOP`.
            Ú	NotShowInz…
            Desktop environments that should display this item.
            It'll check against `$XDG_CURRENT_DESKTOP`.
            Ú
OnlyShowInzk
            Hint that the app prefers to be run on a more powerful discrete GPU if available.
            ÚPrefersNonDefaultGPUzX
            Do not show the 'New Window' option in the app's context menu.
            ÚSingleMainWindowz�
            Advanced. See [Startup Notification spec](
            https://www.freedesktop.org/wiki/Specifications/startup-notification-spec/).
            ÚStartupNotifyÚStartupWMClasszë
            Filename or absolute path to an executable file on disk used to
            determine if the program is actually installed and can be run. If the test
            fails, the shortcut might be ignored / hidden.
            ÚTryExecz®
            Map of custom MIME types to their corresponding glob patterns (e.g. `*.txt`).
            Only needed if you define custom MIME types in `MimeType`.
            z.*\*.*Úglob_patternsr1   )r2   r3   r4   r5   rF   r   rn   r   r   r
   r[   r   r6   ro   r\   rp   rq   rr   rs   rt   ru   rv   rw   rx   ry   rz   r{   r|   r}   r	   r7   r1   r%   r#   rl   rl   Ì   sØ  ‡ ññ W\Øðñ	W€J�˜˜t C™y¨)°C¹ÀxÑ9PÐ4PÑ*QÐQÑRÑSó 	ñ ',Øðñ'€O�X˜d‘^ó ñ "'Øðñ"€K�˜#‘ó ñ #ØØFñ€FˆH�T‰Nó ñ W\ØðñW€J�˜˜t C™y¨)°C¹ÀxÑ9PÐ4PÑ*QÐQÑRÑSó ñ UZØØVñU€Hˆh�u˜T #™Y¨	°#±uÀXÑ7NÐ2NÑ(OÐOÑPÑQó ñ UZØðñU€Hˆh�u˜T #™Y¨	°#±uÀXÑ7NÐ2NÑ(OÐOÑPÑQó ñ !&Øðñ	!€Iˆx˜‰~ó 	ñ V[ØðñV€Iˆx˜˜d 3™i¨°3¹ÀhÑ8OÐ3OÑ)PÐPÑQÑRó ñ W\ØðñW€J�˜˜t C™y¨)°C¹ÀxÑ9PÐ4PÑ*QÐQÑRÑSó ñ ,1Øðñ,Ð˜( 4™.ó ñ (-Øðñ(Ð�h˜t‘nó ñ %*Øðñ%€M�8˜D‘>ó ñ %*Øðñ%€N�H˜S‘Mó ñ #Øðñ	€GˆX�c‰]ó 	ñ TYØðñT€M�8˜D  i°±UÀ9Ñ5MÐ0MÑ&NÐ!NÑOÑPö r%   rl   c            	       óæ  • \ rS rSr% Sr " S S\5      r " S S\5      r " S S\5      r\	" S	S
S9r
\\   \S'   \	" S	SS9r\\\\	" SS94      \S'   \	" S	SS9r\\\\	" SS94      \S'   \	" S	SS9r\\   \S'   \	" S	SS9r\\\\	" SS94      \S'   \	" S	SS9r\\\      \S'   \	" S	SS9r\\\      \S'   \	" S	SS9r\\\\	" SS94      \S '   \	" S	S!S9r\\   \S"'   \	" S	S#S9r\\\\4      \S$'   \	" S	S%S9r\\\\	" S&S94      \S''   \	" S	S(S9r\\   \S)'   \	" S	S*S9r\\   \S+'   \	" S	S,S9r\\   \S-'   \	" S	S.S9r\\   \S/'   \	" S	S0S9r \\   \S1'   \	" S	S2S9r!\\   \S3'   \	" S	S4S9r"\\   \S5'   \	" S	S6S9r#\\\      \S7'   \	" S	S8S9r$\\\      \S9'   \	" S	S:S9r%\\\\\	" S;S94         \S<'   \	" S	S=S9r&\\\'\(4      \S>'   \	" S	S?S9r)\\\'\\\	" S@S94   4      \SA'   \	" S	SBS9r*\\'   \SC'   SDr+g	)EÚMacOSi`  a  
Mac-specific instructions. Check these URLs for more info:

- `CF*` keys: see [Core Foundation Keys](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html)
- `LS*` keys: see [Launch Services Keys](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html)
- `entitlements`: see [Entitlements documentation](https://developer.apple.com/documentation/bundleresources/entitlements)
c                   ó˜   • \ rS rSr% Sr\" SSS9r\\S      \	S'   \" SS	S9r
\\   \	S
'   \" SSS9r\\   \	S'   \" SSS9r\\   \	S'   Srg)ÚMacOS.CFBundleURLTypesModelii  z/Describes a URL scheme associated with the app.Nz:This key specifies the app's role with respect to the URL.rC   ©ÚEditorÚViewerÚShellÚNoneÚCFBundleTypeRole.z=URL schemes / protocols handled by this type (e.g. 'mailto').ÚCFBundleURLSchemesz8Abstract name for this URL type. Uniqueness recommended.ÚCFBundleURLNameú8Name of the icon image file (minus the .icns extension).ÚCFBundleURLIconFiler1   )r2   r3   r4   r5   rF   r   r‡   r   r   r6   rˆ   r
   r[   r‰   r‹   r7   r1   r%   r#   ÚCFBundleURLTypesModelr�   i  s‚   ‡ Ù9áSXØØUñT
Ð˜( 7Ð+NÑ#OÑPó 	
ñ ).ØØXñ)
Ð˜D ™Ió 	
ñ */ØØSñ*
ˆ˜ #™ó 	
ñ .3ØØSñ.
Ð˜X c™]ö 	
r%   rŒ   c                   ó°   • \ rS rSr% Sr\" SSS9r\\   \	S'   \" SSS9r
\\	S	'   \" SS
S9r\\S      \	S'   \" SSS9r\\   \	S'   \" SSS9r\S   \	S'   Srg)Ú MacOS.CFBundleDocumentTypesModeli}  z2Describes a document type associated with the app.NrŠ   rC   ÚCFBundleTypeIconFile.z=Abstract name for this document type. Uniqueness recommended.ÚCFBundleTypeNamez;This key specifies the app's role with respect to the type.r‚   r‡   a±  
                List of UTI strings defining a supported file type; e.g. for PNG files, use
                'public.png'. See [UTI Reference](
                https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/UTIRef/Articles/System-DeclaredUniformTypeIdentifiers.html)
                for more info about the system-defined UTIs. Custom UTIs can be defined via
                'UTExportedTypeDeclarations'. UTIs defined by other apps (not the system) need to
                be imported via 'UTImportedTypeDeclarations'.

                See [Fun with UTIs](https://www.cocoanetics.com/2012/09/fun-with-uti/) for more
                info.
                ÚLSItemContentTypesz°
                Determines how Launch Services ranks this app among the apps
                that declare themselves editors or viewers of files of this type.
                )ÚOwnerÚDefaultÚ	AlternateÚLSHandlerRankr1   )r2   r3   r4   r5   rF   r   r�   r   r[   r6   r�   r‡   r   r‘   r
   r•   r7   r1   r%   r#   ÚCFBundleDocumentTypesModelrŽ   }  s§   ‡ Ù<á.3ØØSñ/
Ð˜h s™mó 	
ñ !&ØØXñ!
Ð˜#ó 	
ñ TYØÐ\ñT
Ð˜( 7Ð+NÑ#OÑPó 	
ñ ).Øð
ñ)
Ð˜D ™Ió 	
ñ  CHØðñC
ˆ�wÐ>Ñ?ö 	
r%   r–   c                   óÎ   • \ rS rSr% \" SSS9r\\   \S'   \" SSS9r	\
\   \S'   \" SS	S9r\
\   \S
'   \" SSS9r\\S'   \" SSS9r\
\   \S'   \" SSS9r\\\\   4   \S'   Srg)ÚMacOS.UTTypeDeclarationModeli¥  .z=The Uniform Type Identifier types that this type conforms to.rC   ÚUTTypeConformsToNzA description for this type.ÚUTTypeDescriptionz5The bundle icon resource to associate with this type.ÚUTTypeIconFilez3The Uniform Type Identifier to assign to this type.ÚUTTypeIdentifierz>The webpage for a reference document that describes this type.ÚUTTypeReferenceURLz>A dictionary defining one or more equivalent type identifiers.ÚUTTypeTagSpecificationr1   )r2   r3   r4   r5   r   r™   r
   r[   r6   rš   r   r›   rœ   r�   rž   r	   r7   r1   r%   r#   ÚUTTypeDeclarationModelr˜   ¥  s¸   ‡ Ù&+ØØXñ'
Ð˜$˜s™)ó 	
ñ ,1ØØ7ñ,
Ð˜8 C™=ó 	
ñ ).ØØPñ)
ˆ˜ ™ó 	
ñ !&ØØNñ!
Ð˜#ó 	
ñ -2ØØYñ-
Ð˜H S™Mó 	
ñ 8=ØØYñ8
Ð  S¨$¨s©) ^Ñ 4ö 	
r%   rŸ   Nz›
            Display name of the bundle, visible to users and used by Siri. If
            not provided, 'menuinst' will use the 'name' field.
            rC   ÚCFBundleDisplayNamez³
            Unique identifier for the shortcut. Typically uses a reverse-DNS format.
            If not provided, 'menuinst' will generate one from the 'name' field.
            z^[A-z0-9\-\.]+$rd   ÚCFBundleIdentifierz´
            Short name of the bundle. May be used if `CFBundleDisplayName` is
            absent. If not provided, 'menuinst' will generate one from the 'name' field.
            é   )ri   ÚCFBundleNamezŸ
            Suitable replacement for text-to-speech operations on the app.
            For example, 'my app one two three' instead of 'MyApp123'.
            ÚCFBundleSpokenNamezÏ
            Build version number for the bundle. In the context of 'menuinst'
            this can be used to signal a new version of the menu item for the same
            application version.
            z^\S+$ÚCFBundleVersionzÑ
            URL types supported by this app. Requires macOS 10.14.4 or above.
            Refer to `event_handler` if your application does not have support
            for Apple Events handling.
            ÚCFBundleURLTypeszÖ
            Document types supported by this app. Requires macOS 10.14.4 or above.
            Refer to `event_handler` if your application does not have support
            for Apple Events handling.
            ÚCFBundleDocumentTypeszKThe App Store uses this string to determine the appropriate categorization.z^public\.app-category\.\S+$ÚLSApplicationCategoryTypez7Specifies whether this app runs only in the background.ÚLSBackgroundOnlyz=List of key-value pairs used to define environment variables.ÚLSEnvironmentzž
            Minimum version of macOS required for this app to run, as `x.y.z`.
            For example, for macOS v10.4 and later, use `10.4.0`.
            z^\d+\.\d+\.\d+$ÚLSMinimumSystemVersionzm
            Whether an app is prohibited from running simultaneously in multiple user sessions.
            ÚLSMultipleInstancesProhibitedz‡
            If true, prevent a universal binary from being run under
            Rosetta emulation on an Intel-based Mac.
            ÚLSRequiresNativeExecutionzMA message describing why an app is requesting access to capture system audio.ÚNSAudioCaptureUsageDescriptionzLA message describing why an app is requesting access to the device's camera.ÚNSCameraUsageDescriptionzQA message describing why an app is requesting access to the device's main camera.ÚNSMainCameraUsageDescriptionzPA message describing why an app is requesting access to the device's microphone.ÚNSMicrophoneUsageDescriptionz<If true, allows an OpenGL app to utilize the integrated GPU.Ú$NSSupportsAutomaticGraphicsSwitchingz;The uniform type identifiers owned and exported by the app.ÚUTExportedTypeDeclarationszMThe uniform type identifiers inherently supported, but not owned, by the app.ÚUTImportedTypeDeclarationsz÷
            List of permissions to request for the launched application. See [the entitlements docs](
            https://developer.apple.com/documentation/bundleresources/entitlements) for a full
            list of possible values.
            z[a-z0-9\.\-]+Úentitlementsz”
                Set of extra properties for the Info.plist file.
                These properties are not validated by `menuinst.`
                Úinfo_plist_extraa  
                Paths that should be symlinked into the shortcut app bundle.
                It takes a mapping of source to destination paths. Destination paths must be
                relative. Placeholder `{{ MENU_ITEM_LOCATION }}` can be useful.
                z^[^/]+.*Úlink_in_bundlea°  
            Required shell script logic to handle opened URL payloads.
            Note this feature requires macOS 10.14.4 or above.
            Using this key will inject a custom Swift launcher in the `.app` bundle
            to listen to Apple Events and forward them to your application.
            If your app is already handling Apple Events (e.g. via Qt's
            `QFileOpenEvent`), you do not need this.
            Úevent_handlerr1   ),r2   r3   r4   r5   rF   r   rŒ   r–   rŸ   r   r    r   r[   r6   r¡   r   r£   r¤   r¥   r¦   r
   r§   r¨   r©   r\   rª   r	   r«   r¬   r­   r®   r¯   r°   r±   r²   r³   r´   rµ   r¶   rG   r   r·   r¸   r7   r1   r%   r#   r   r   `  sè  ‡ ñô
 	ô 
ô(&
 Yô &
ôP
 ô 
ñ4 */Øðñ*Ð˜ #™ó ñ W\ØðñWÐ˜ ¨3±Ð>PÑ0QÐ+QÑ!RÑSó ñ DIØðñD€L�(˜9 S©%¸2Ñ*>Ð%>Ñ?Ñ@ó ñ ).Øðñ)Ð˜ ™ó ñ JOØðñ	J€O�X˜i¨©U¸8Ñ-DÐ(DÑEÑFó 	ñ ?DØðñ	?Ð�h˜tÐ$9Ñ:Ñ;ó 	ñ INØðñ	IÐ˜8 DÐ)CÑ$DÑEó 	ñ joØàYñjÐ˜x¨	°#±uÐEcÑ7dÐ2dÑ(eÑfó ñ (-ØØNñ(Ð�h˜t‘nó ñ /4ØØTñ/€M�8˜D  c ™NÑ+ó ñ [`Øðñ[Ð˜H Y¨s±EÐBTÑ4UÐ/UÑ%VÑWó ñ 5:Øðñ5Ð! 8¨D¡>ó ñ 16Øðñ1Ð˜x¨™~ó ñ 5:Øà[ñ5Ð" H¨S¡Mó ñ /4ØàZñ/Ð˜h s™mó ñ 38Øà_ñ3Ð  (¨3¡-ó ñ 38Øà^ñ3Ð  (¨3¡-ó ñ <AØØSñ<Ð(¨(°4©.ó ñ JOØØRñJÐ ¨Ð.DÑ)EÑ Fó ñ JOØà[ñJÐ ¨Ð.DÑ)EÑ Fó ñ UZØðñ	U€L�(˜4 	¨#©uÐ=MÑ/NÐ*NÑ OÑPÑQó 	ñ 	Øðñ	
ð �h˜t N°CÐ$7Ñ8Ñ9ó 
ñ 	Øðñ		
ð �H˜T .°)¸CÁÈ{ÑA[Ð<[Ñ2\Ð"\Ñ]Ñ^ó ñ /4Øðñ/€M�8˜NÑ+ö r%   r   c                   ót   • \ rS rSr% Sr\" SSS9r\\   \	S'   \" SSS9r
\\   \	S'   \" SS	S9r\\   \	S
'   Srg)Ú	Platformsi  z£
Platform specific options.

Note each of these fields supports the same keys as the top-level `MenuItem`
(sans `platforms` itself), in case overrides are needed.
Nz1Options for Linux. See `Linux` model for details.rC   Úlinuxz1Options for macOS. See `MacOS` model for details.Úosxz5Options for Windows. See `Windows` model for details.Úwinr1   )r2   r3   r4   r5   rF   r   r»   r   rl   r6   r¼   r   r½   r^   r7   r1   r%   r#   rº   rº     s_   ‡ ññ #ØØHñ€Eˆ8�E‰?ó ñ !ØØHñ€Cˆ�%‰ó ñ #ØØLñ€Cˆ�'Ñ	ö r%   rº   c                   ó@  • \ rS rSr% Sr\" SSS9r\\\	4   \
S'   \" SSS9r\\
S'   \" SS	S9r\" \S
S9\
S'   \" SSS9r\\   \
S'   \" SSS9r\\   \
S'   \" SSS9r\\   \
S'   \" SSS9r\\   \
S'   \" SSS9r\\   \
S'   \" SSS9r\\   \
S'   \" SS9r\\
S'   Srg)ÚMenuItemi•  z<Instructions to create a menu item across operating systems..rK   rC   rL   rM   r   rP   r=   r>   rQ   NrN   rO   rT   rU   zh
            (Simple, preferrably single-line) logic to run before the shortcut is created.
            rV   rR   rS   TrW   rX   FrY   rZ   z‚
            Platform-specific options. Presence of a platform field enables
            menu items in that platform.
            Ú	platformsr1   )r2   r3   r4   r5   rF   r   rL   r   rG   rA   r6   r   r[   rQ   r   rO   r   rU   rV   rS   rX   r\   rZ   rÀ   rº   r7   r1   r%   r#   r¿   r¿   •  s6  ‡ ÙBá49Øðñ5€Dˆ%�Ð 0Ð0Ñ
1ó ñ ØØVñ€K�ó ñ +0Øðñ+€G‰W�S QÑ'ó ñ &+ØØLñ&€Dˆ(�>Ñ
"ó ñ ,1Øðñ,€J�˜Ñ(ó ñ +0Øðñ+€Iˆx˜Ñ'ó ñ -2Øðñ-€K�˜.Ñ)ó ñ  %ØØ[ñ €Hˆh�t‰nó ñ  %Øðñ	 €Hˆh�t‰nó 	ñ !ðñ€Iˆyö r%   r¿   c                   óª   • \ rS rSr% Sr\" S\\\S.S9r	\\
S'   \" \SSS	S
9r\\
S'   \" \SSS9r\\
S'   \" SSS9r\\
S'   \" SSS9r\" \SS9\
S'   Srg)ÚMenuInstSchemaiã  zPMetadata required to create menu items across operating systems with `menuinst`.r,   )ú$schemaú$idz$versionr-   r0   zDEPRECATED. Use ``$schema``.rÄ   T)r   Úaliasra   Úid_z3Version of the menuinst schema to validate against.rÃ   )r   rÅ   Úschema_.zEName for the category containing the items specified in `menu_items`.rC   Ú	menu_namez;List of menu entries to create across main desktop systems.r=   r>   Ú
menu_itemsr1   N)r2   r3   r4   r5   rF   r   ÚSCHEMA_DIALECTÚ
SCHEMA_URLÚSCHEMA_VERSIONr0   r6   r   rÆ   rG   rÇ   rÈ   rÉ   r   r¿   r7   r1   r%   r#   rÂ   rÂ   ã  s›   ‡ ÙVá)Øà%ØØ&ñ
ñ €L�*ó ñ  ØØ2ØØñ	€Cˆó ñ $ØØIØñ€Gˆ^ó ñ
 !&ØØ\ñ!€Iˆ~ó ñ 38ØØRñ3€J‘˜¨QÑ/ö r%   rÂ   c                 ó`  • [         R                  5       nU (       a€  [        [        5      R                  n[
        R                  " USS9n[        U5        [        US-  S[         S3-  S5       nUR                  U5        UR                  S5        S S S 5        U$ U$ ! , (       d  f       U$ = f)Né   ©ÚindentÚdataú	menuinst-r   ÚwÚ
)rÂ   Úmodel_json_schemar   Ú__file__ÚparentÚjsonÚdumpsÚprintÚopenrÌ   Úwrite)rÜ   r(   ÚhereÚ
schema_strÚfs        r#   Údump_schema_to_jsonrà     s“   € Ü×-Ñ-Ó/€FÞÜ”H‹~×$Ñ$ˆÜ—Z’Z ¨qÑ1ˆ
ÜˆjÔÜ�$˜‘- I¬nÐ-=¸\Ð"JÑJÈCÔPÐTUØ�G‰G�JÔØ�G‰G�DŒM÷ Qð €Mˆ6€M÷ QÔPð €Mús   Á/#BÂ
B-c           	      ó  • [        [        5      R                  n[        SSS/[	        5       R                  5       [        5       R                  5       [        5       R                  5       S.S9n[        SU/S9R                  5       n[        US'   UR                  SS 5        UR                  SS 5        US   S	   S
   R                  5        HJ  n[        UR                  5       5       H*  nU[        R                  ;   d  M  UR                  U5        M,     ML     U (       aV  [        U5        [!        US-  S["         S3-  S5       n[$        R&                  " X6SS9  UR)                  S5        S S S 5        U$ U$ ! , (       d  f       U$ = f)NÚREQUIRED)r½   r¼   r»   )rL   r   rQ   rÀ   )rÈ   rÉ   rÃ   rÆ   rÇ   rÉ   r   rÀ   rÑ   rÒ   z.default.jsonrÓ   rÎ   rÏ   rÔ   )r   rÖ   r×   r¿   r^   Ú
model_dumpr   rl   rÂ   rË   ÚpopÚvaluesÚlistÚkeysÚmodel_fieldsr   rÛ   rÌ   rØ   ÚdumprÜ   )rÜ   rÝ   Údefault_itemÚdefaultÚplatform_valueÚkeyrß   s          r#   Údump_default_to_jsonrî     sR  € Ü”‹>× Ñ €DÜØØØ�ä“9×'Ñ'Ó)Ü“7×%Ñ%Ó'Ü“W×'Ñ'Ó)ñ
ñ		€Lô  z¸|¸nÑM×XÑXÓZ€GÜ#€GˆIÑØ‡K�K��tÔØ‡K�K�	˜4Ô Ø! ,Ñ/°Ñ2°;Ñ?×FÑFÖHˆÜ˜×+Ñ+Ó-Ö.ˆCØ”h×+Ñ+Õ+Ø×"Ñ" 3Ö'ó /ñ Iö ÜˆwŒÜ�$˜‘- I¬nÐ-=¸]Ð"KÑKÈSÔQÐUVÜ�IŠI�g¨Ò+Ø�G‰G�DŒM÷ Rð €Nˆ7€N÷ RÔQð €Nús   Å'E9Å9
Fc                 óÊ   • [        U [        [        45      (       a+  [        U 5       n[        R
                  " U5      nS S S 5        OU n[        S0 WD6$ ! , (       d  f       N= f)Nr1   )Ú
isinstancer[   r   rÛ   rØ   ÚloadrÂ   )Úmetadata_or_pathrß   Úmetadatas      r#   Úvalidaterô   ,  sR   € ÜÐ"¤S¬$ K×0Ñ0ÜÐ"Ô# qÜ—y’y “|ˆH÷ $Ð#ð $ˆÜÑ%˜HÑ%Ð%÷	 $Õ#ús   §AÁ
A"Ú__main__)T)/rF   rØ   r   r   Úinspectr   Úloggingr   Úpathlibr   r   Útypingr   r   r	   r
   r   r   r   Úpydanticr   Ú
_BaseModelr   r:   r   Úpydantic.typesr   r2   ÚlogrÊ   rÌ   rË   r[   r$   r)   rG   rA   rI   r^   rl   r   rº   r¿   rÂ   rà   rî   rô   r1   r%   r#   Ú<module>rþ      s7  ðñó Û 	Û 	Ý Ý Ý Ý ß G× GÑ Gå ,Ý $Ý Ý "ñ �Ó€Ø:€à€Ø2°>Ð2BÀ,ÐO€
ð	 Cð 	¨Cô 	ò4ô`�
ô `ò#ð ˜3¡°Ñ 3Ð3Ñ4€ô�yô ô"H˜9ô HôV/Ð"ô /ôdQÐ ô Qôh\Ð ô \ô~�	ô ô,Lˆyô Lô\�Yô ôB	ôò8&ð ˆzÓÙÔÙÕð r%   