diff --git a/tests/Gistr Demo/.obsidian/community-plugins.json b/tests/Gistr Demo/.obsidian/community-plugins.json
index 4eab0f97..58965b4d 100644
--- a/tests/Gistr Demo/.obsidian/community-plugins.json
+++ b/tests/Gistr Demo/.obsidian/community-plugins.json
@@ -1,7 +1,7 @@
[
"obsidian42-brat",
- "gistr",
"obsidian-style-settings",
"obsidian-minimal-settings",
- "obsidian-link-embed"
+ "obsidian-link-embed",
+ "gistr"
]
\ No newline at end of file
diff --git a/tests/Gistr Demo/.obsidian/plugins/gistr/data.json b/tests/Gistr Demo/.obsidian/plugins/gistr/data.json
index ba846dcd..2a2fa40a 100644
--- a/tests/Gistr Demo/.obsidian/plugins/gistr/data.json
+++ b/tests/Gistr Demo/.obsidian/plugins/gistr/data.json
@@ -24,6 +24,7 @@
"gh_clr_tx_light": "#2A2626",
"gh_clr_tx_dark": "#CAD3F5",
"gh_opacity": 1,
+ "ge_enable_ribbon_icons": false,
"sy_enable_ribbon_icons": true,
"sy_enable_autoupdate": true,
"sy_enable_autosave": false,
@@ -33,7 +34,8 @@
"sy_save_list_showall": false,
"sy_save_list_datetime": "MM.DD.YYYY h:m:s a",
"sy_save_duration": 15,
- "context_sorting": [],
+ "ge_contextmenu_sorting": [],
"portals": {},
- "uuid": ""
+ "uuid": "",
+ "context_sorting": []
}
\ No newline at end of file
diff --git a/tests/Gistr Demo/.obsidian/plugins/gistr/main.js b/tests/Gistr Demo/.obsidian/plugins/gistr/main.js
index 6dcebeeb..877fd0da 100644
--- a/tests/Gistr Demo/.obsidian/plugins/gistr/main.js
+++ b/tests/Gistr Demo/.obsidian/plugins/gistr/main.js
@@ -1,13 +1,13 @@
/**
- * @name: gistr v1.4.6
+ * @name: gistr v1.6.1
* @author: Aetherinox
* @url: https://github.com/Aetherinox/obsidian-gistr.git
* @copyright: (c) 2024 Aetherinox
* @license: MIT
- * @build: 2024-03-23T17:41:40.000Z
+ * @build: 2024-03-30T23:39:48.000Z
* @guid: 0a7f5dc4-b2fa-5064-9e54-f6e17fd14273
- * @uuid: 535cd4d3-cf1a-54a9-bd4b-adc460934c9a
+ * @uuid: 76fd2cca-57f0-524a-b050-c652ea9b4253
*/
-Object.defineProperty(exports,"__esModule",{value:!0});var e=require("obsidian"),t=require("yaml"),s=require("crypto");function r(e,t,s,r){return new(s||(s=Promise))(((n,i)=>{function o(e){try{c(r.next(e))}catch(e){i(e)}}function a(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof s?t:new s((e=>{e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const n={keyword:"gistr",firststart:!0,css_og:"",css_gh:"",theme:"Light",blk_pad_t:16,blk_pad_b:19,textwrap:"Enabled",notitime:10,ge_enable_updatenoti:!0,sy_clr_lst_icon:"#757575E6",og_clr_bg_light:"#CBCBCB",og_clr_bg_dark:"#121315",og_clr_sb_light:"#BA4956",og_clr_sb_dark:"#4960ba",og_clr_tx_light:"#2A2626",og_clr_tx_dark:"#CAD3F5",og_opacity:1,gh_clr_bg_light:"#E5E5E5",gh_clr_bg_dark:"#121315",gh_clr_sb_light:"#BA4956",gh_clr_sb_dark:"#BA496A",gh_clr_tx_light:"#2A2626",gh_clr_tx_dark:"#CAD3F5",gh_opacity:1,ge_enable_ribbon_icons:!1,sy_enable_ribbon_icons:!0,sy_enable_autoupdate:!0,sy_enable_autosave:!1,sy_enable_autosave_strict:!1,sy_enable_autosave_notice:!1,sy_add_frontmatter:!1,sy_save_list_showall:!1,sy_save_list_datetime:"MM.DD.YYYY h:m:s a",sy_save_duration:15,ge_contextmenu_sorting:[],portals:{},uuid:""};var i={base_underdev_title:"Feature Under Development",base_underdev_msg:'I am currently working with the developer of OpenGist to make minor changes to how OpenGist pastes appear, including moving the "view raw" button to the bottom so that Obsidian\'s edit button does not overlap.',base_opt_enabled:"Enabled",base_opt_disabled:"Disabled",base_theme_light:"Light",base_theme_dark:"Dark",base_time_am:"AM",base_time_pm:"PM",base_component_reset:"Reset to Default",base_debug_loading:"Loading {0} v{1} [ {2} ]",base_debug_updater_1:"{0} Update Check",base_debug_updater_2:"{0} {1}",base_context_nofocus:"Obsidian does not have focus, please open a file",base_reload_notice:"Successfully reloaded Gistr",cfg_context_gist_public:"Save Gist (Github Public)",cfg_context_gist_secret:"Save Gist (Github Secret)",cfg_context_gist_copy:"Copy Gist URL",cfg_context_gist_reload:"Reload Gistr",cfg_modal_desc:"Gistr allows you to embed gists directly from Github and Opengist. You can also turn your notes into gists which can be updated manually, or monitored with autosave. For a detailed set of examples, view the demo vault in the support section below.",cfg_modal_expand:"Expand",cfg_tab_ge_title:"Global",cfg_tab_ge_header:"These settings affect all aspects of this plugin, including both Opengist and Github. If you change the trigger keyword, ensure you go back through your existing gist snippets and change the keyword at the top of each codeblock; otherwise embedded gists will not appear.",cfg_tab_sy_title:"Gist Save & Sync",cfg_tab_sy_header:"These settings allow you to create gists from your notes. The contents of your notes will be directly uploaded to Github under an existing account. You may also choose to create only new notes, or manage new and existing.",cfg_tab_og_title:"OpenGist",cfg_tab_og_header:"Opengist is a self-hosted pastebin powered by Git. All snippets are stored in a Git repository and can be read and/or modified using standard Git commands, or with the web interface. It is similiar to GitHub Gist, but open-source and is self-hosted. OpenGist supports Windows, Linux, and MacOS.",cfg_tab_gh_title:"Github",cfg_tab_gh_header:"Github Gists let you store and distribute code snippets without setting up a full-fledged repository. Store snippets such as strings, bash scripts, markdown, text files, and other small pieces of data.",cfg_tab_po_title:"Portal (Developer)",cfg_tab_po_header:"These settings display currently registered portals for Gistr.",cfg_tab_sp_title:"Support",cfg_tab_ge_keyword_name:"Trigger keyword",cfg_tab_ge_keyword_desc:"Word to use inside codeblocks to designate as a portal for showing gists",cfg_tab_ge_theme_name:"Theme",cfg_tab_ge_theme_desc:'This determines what color scheme will be used for gists. You can however, customize the colors in the Github and OpenGist categories below.
Note: When this is changed, place your cursor in the codeblock and then leave the codeblock to refresh it. Automatic refreshing only works in reading mode',cfg_tab_ge_wrap_name:"Text wrapping",cfg_tab_ge_wrap_desc:"If enabled, text will wrap to the next line. If disabled, you will see a horizontal scrollbar. This does not include gists that have no spaces anywhere in the body.",cfg_tab_ge_noti_dur_name:"Notification duration",cfg_tab_ge_noti_dur_desc:'How long a notification will display for (in seconds). Set to 0 to keep notification up until user dismisses it.',cfg_tab_ge_noti_update_name:"Enable Gistr update notifications",cfg_tab_ge_noti_update_desc:'Enabled: When launching Obsidian, you will get a notification if a new version of Gistr is available. This includes beta releases not available to the public yet.
Disabled: You will not get any notifications alerting you to new Gistr updates. You must manually check or use the Obsidian plugin checker.
Note: This update notification includes beta releases of Gistr. The Obsidian plugin updater does not track beta.',cfg_tab_ge_tog_enable_ribbon_debug_name:"Enable refresh icon",cfg_tab_ge_tog_enable_ribbon_debug_desc:'Enabled: Adds a special icon to your top header ribbon which allows you to force all embedded gists to be refreshed. This is useful when modifying the colors / settings for Gistr, since all codeblocks are cached and changes do not appear immediately. The button added to your ribbon will force-refresh all codeblocks and immediately show new changes.',cfg_tab_ge_tog_enable_ribbon_debug_tip:"",cfg_tab_og_cb_light_name:"Codeblock bg (Light)",cfg_tab_og_cb_light_desc:'Color for Github codeblock background color (Light Theme)',cfg_tab_og_cb_dark_name:"Codeblock bg (Dark)",cfg_tab_og_cb_dark_desc:'Color for Github codeblock background color (Dark Theme)',cfg_tab_og_sb_light_name:"Scrollbar track (Light)",cfg_tab_og_sb_light_desc:'Color for gist scrollbar track (Light Theme)',cfg_tab_og_sb_dark_name:"Scrollbar track (Dark)",cfg_tab_og_sb_dark_desc:'Color for gist scrollbar track (Dark Theme)',cfg_tab_og_tx_light_name:"Codeblock text (Light)",cfg_tab_og_tx_light_desc:'Color for codeblock text color (Light Theme)',cfg_tab_og_tx_dark_name:"Codeblock text (Dark)",cfg_tab_og_tx_dark_desc:'Color for codeblock text color (Dark Theme)',cfg_tab_og_opacity_name:"Codeblock opacity",cfg_tab_og_opacity_desc:"Total opacity for codeblock. Do not set this too low, or your codeblocks will be invisible",cfg_tab_og_pad_top_name:"Padding: top",cfg_tab_og_pad_top_desc:"Padding between gist codeblock header and code.",cfg_tab_og_pad_btm_name:"Padding: bottom",cfg_tab_og_pad_btm_desc:"Padding between gist codeblock and the bottom scrollbar.",cfg_tab_og_css_name:"Custom CSS",cfg_tab_og_css_desc:"This textarea allows you to enter custom CSS properties to override existing colors.",cfg_tab_og_css_pholder:"Paste CSS here",cfg_tab_gh_cb_light_name:"Codeblock bg (Light)",cfg_tab_gh_cb_light_desc:'Color for Opengist codeblock background color (Light Theme)',cfg_tab_gh_cb_dark_name:"Codeblock bg (Dark)",cfg_tab_gh_cb_dark_desc:'Color for Opengist codeblock background color (Dark Theme)',cfg_tab_gh_sb_light_name:"Scrollbar track (Light)",cfg_tab_gh_sb_light_desc:'Color for gist scrollbar track (Light Theme)',cfg_tab_gh_sb_dark_name:"Scrollbar track (Dark)",cfg_tab_gh_sb_dark_desc:'Color for gist scrollbar track (Dark Theme)',cfg_tab_gh_tx_light_name:"Codeblock text (Light)",cfg_tab_gh_tx_light_desc:'Color for codeblock text color (Light Theme)',cfg_tab_gh_tx_dark_name:"Codeblock text (Dark)",cfg_tab_gh_tx_dark_desc:'Color for codeblock text color (Dark Theme)',cfg_tab_gh_opacity_name:"Codeblock opacity",cfg_tab_gh_opacity_desc:"Total opacity for codeblock. Do not set this too low, or your codeblocks will be invisible",cfg_tab_gh_css_name:"Custom CSS",cfg_tab_gh_css_desc:"This textarea allows you to enter custom CSS properties to override existing colors.",cfg_tab_gh_css_pholder:"Paste CSS here",cfg_tab_gh_pat_name:"Personal access token",cfg_tab_gh_pat_desc:"The personal access token (PAT) generated on Github.com which allows you to write gists from your Obsidian vault to Github gist.",cfg_tab_gh_pat_pholder:"githubpat_XXXXXX",cfg_tab_gh_pat_btn_tip_state_show:"Show token",cfg_tab_gh_pat_btn_tip_state_hide:"Hide token",cfg_tab_gh_pat_desc_l1:'This token allows you to authenticate with the GitHub API. Create Token: here',cfg_tab_gh_pat_desc_l2:'For this to function with secret gists, select "All repositories" or "Only select repositories" from the dropdown on the Github Token page. The token must have at least the following permissions:',cfg_tab_gh_pat_perm_1:'Account Permissions ► Gists Read-and-write',cfg_tab_gh_pat_perm_2:'Repository Permissions ► Pull Requests Read-only',cfg_tab_gh_pat_perm_3:'Repository Permissions ► Contents Read-only',cfg_tab_gh_pat_perm_4:'Repository Permissions ► Issues Read-only',cfg_tab_gh_pat_footer:"Github icon to the right will turn into a checkmark when you've entered a valid token.",cfg_tab_gh_pat_help:'What is this for?Read the docs',cfg_tab_gh_pat_url_btn:"https://github.com/settings/tokens?type=beta",cfg_tab_gh_pat_ok_btn_tip:"Valid Github API Token",cfg_tab_gh_pat_bad_btn_tip:"Invalid Github API Token entered\n\nClick here to generate one",cfg_tab_gh_pat_invalid_btn_tip:"Github API token is not valid, ensure you type it correctly\n\nClick here to generate one",cfg_tag_gh_pat_notice_msg_success:"Gistr has detected a valid Github personal access token which has been saved",cfg_tag_gh_pat_notice_msg_cleared:"Personal access token cleared",cfg_tab_gh_pat_notice_type_fine:"Fine-Grained Github Token Detected",cfg_tab_gh_pat_notice_type_classic:"Classic Github Token Detected",cfg_tab_su_desc:"The following buttons are associated to useful resources for this plugin.",cfg_tab_su_gs_name:"Introduction",cfg_tab_su_gs_desc:"View brief introduction to getting started with this plugin",cfg_tab_su_gs_btn:"Open",cfg_tab_su_repo_label:"Plugin repo",cfg_tab_su_repo_url:"https://github.com/Aetherinox/obsidian-gistr",cfg_tab_su_repo_btn:"View",cfg_tab_su_vault_label:"Plugin demo vault",cfg_tab_su_vault_url:"https://github.com/Aetherinox/obsidian-gistr/tree/main/tests/gistr-vault",cfg_tab_su_vault_btn:"View",cfg_tab_su_ogrepo_label:"OpenGist: download",cfg_tab_su_ogrepo_url:"https://github.com/thomiceli/opengist/releases",cfg_tab_su_ogrepo_btn:"View",cfg_tab_su_ogdocs_label:"OpenGist: docs",cfg_tab_su_ogdocs_url:"https://github.com/thomiceli/opengist/blob/master/docs/index.md",cfg_tab_su_ogdocs_btn:"View",cfg_tab_su_ogdemo_label:"OpenGist: demo",cfg_tab_su_ogdemo_url:"https://opengist.thomice.li/all",cfg_tab_su_ogdemo_btn:"View",cfg_tab_su_gist_label:"Github gist",cfg_tab_su_gist_url:"https://gist.github.com/",cfg_tab_su_gist_btn:"View",cfg_tab_su_ver_cur_name:"Current version",cfg_tab_su_ver_cur_desc:"Current running version of Gistr",cfg_tab_su_guid_cur_name:"GUID",cfg_tab_su_guid_cur_desc:"Gistr plugin release",cfg_tab_su_guid_btn_tip:"Copy to clipboard",cfg_tab_su_guid_notice:"Copied Gistr GUID to clipboard\n\n{0}",cfg_tab_su_uuid_cur_name:"UUID",cfg_tab_su_uuid_cur_desc:"Unique id for your current running release of Gistr",cfg_tab_su_uuid_btn_tip:"Copy to clipboard",cfg_tab_su_uuid_notice:"Copied Gistr release UUID to clipboard\n\n{0}",cfg_tab_su_ver_stable:"Latest stable release ",cfg_tab_su_ver_beta:"Latest beta release ",cfg_tab_su_ver_connection_issues:"Server communication failed",cfg_tab_su_ver_status_checking:"Checking for newer version of Gistr",cfg_tab_su_ver_status_checking_btn_tip:"Checking for newer version of Gistr",cfg_tab_su_ver_status_updated_btn_tip:"You are running the latest version of Gistr",cfg_tab_su_ver_status_new_stable_btn_tip:"A newer stable release of Gistr is available",cfg_tab_su_ver_status_new_beta_btn_tip:"A newer beta release of Gistr is available",cfg_tab_su_ver_status_error_btn_tip:"Could not communicate with the gistr server, retrying later",cfg_tab_su_ver_releases:"https://github.com/Aetherinox/obsidian-gistr/releases",cfg_tab_po_create_name:"Create Portal",cfg_tab_po_create_desc:"Created a new registered portal",cfg_tab_po_create_btn:"Create",cfg_tab_po_list_desc:"List of portals registered:",cfg_tab_po_list_none_title:"No Portals Found",cfg_tab_po_list_none_msg:"No created portals can be found. Click the **Create Portal** button at the top of this settings interface to create your first",cfg_po_edit_url_name:"URL",cfg_po_edit_url_desc:"Direct path URL which leads to your assigned website portal",cfg_po_edit_url_hold:"https://gist.github.com/username/XXXXXXXXX",cfg_po_edit_name_name:"Name",cfg_po_edit_name_desc:"Name assigned to the portal window. This can be used in a codeblock to call the name of the portal using a YAML structure.",cfg_po_edit_name_hold:"Portal Name",cfg_po_edit_icon_name:"Icon",cfg_po_edit_icon_desc:"Icon displayed in the portal",cfg_po_edit_icon_hold:"Leave blank to auto-detect",cfg_po_edit_agent_name:"User agent",cfg_po_edit_agent_desc:"Leave this alone if you are unsure what it does",cfg_po_edit_agent_hold:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0/HBpt3US8-18",cfg_po_edit_dock_name:"Dock / Position",cfg_po_edit_dock_desc:"Sets the position for the page",cfg_po_edit_pin_name:"Pin to menu",cfg_po_edit_pin_desc:"If enabled: Portal will be pinned to the left bar",cfg_po_edit_pkey_name:"Profile key",cfg_po_edit_pkey_desc:"Portals with the same profile key will share cookies & storage",cfg_po_edit_pkey_hold:"",cfg_po_edit_zoom_name:"Zoom",cfg_po_edit_zoom_desc:"Allows a webpage to be zoomed in or out on load",cfg_po_edit_css_name:"CSS",cfg_po_edit_css_desc:"Override CSS / stylesheet for window",cfg_po_edit_css_hold:"No custom CSS provided",cfg_po_edit_js_name:"JS",cfg_po_edit_js_desc:"Override JS / javascript for window",cfg_po_edit_js_hold:"No custom Javascript provided",cfg_po_edit_advtoggle_name:"Advanced Settings",cfg_po_edit_advtoggle_desc:"Make advanced menu options appear",cfg_po_button_name:"Portal Actions",cfg_po_button_desc:"Save or update settings for your configured portals",cfg_po_button_opt_create:"Create Portal",cfg_po_button_opt_update:"Update Portal",po_url_missing:"Missing url parameter",po_notice_restart_obsidian:"Change(s) will take effect after you restart Obsidian",po_notice_portal_not_found:"Portal not found",cfg_tab_sy_list_save_showall_name:"Gist save list: Show All Saves",cfg_tab_sy_list_save_showall_desc:'This setting effects how the gist save list displays saved gists.
Enabled: When saving an existing gist, the suggestion box will display ALL saves for that note in the same list; both public and secret.
Disabled: Public and secret gist saves will be separated when being displayed in the existing gist save list.',cfg_tab_sy_list_icon_name:"Gist save list: Icon color",cfg_tab_sy_list_icon_desc:"Color for icon in gist save list",cfg_tab_sy_list_datetime_name:"Gist save list: Datetime format",cfg_tab_sy_list_datetime_desc:'Defines what format the date and time will display as. Datetime Format Options: view here',cfg_tab_sy_tog_enable_ribbon_name:"Enable ribbon icons",cfg_tab_sy_tog_enable_ribbon_desc:'Enabled: Adds Save Public / Secret Gist icons to left-side ribbon in Obsidian.
Disabled: You will only be able to access the save menu options from your right-click menu, or the Obsidian command palette',cfg_tab_sy_tog_enable_ribbon_tip:"",cfg_tab_sy_tog_allow_gist_updates_name:"Allow updating gists",cfg_tab_sy_tog_allow_gist_updates_desc:'Enabled: After you initially create a new gist, the note can be updated with newer revisions.
Disabled: Gists can only be created; no updates are allowed.
To update a gist after enabling this setting, right-click on the note, or open the Obsidian command palette and select Save Gist',cfg_tab_sy_tog_allow_gist_updates_tip:"",cfg_tab_sy_tog_autosave_enable_name:"Enable autosave",cfg_tab_sy_tog_autosave_enable_desc:'Enabled: This will allow gists to be updated once they are created. It will also enable autosaving which will detect new changes and push them.
Disabled: You will only be able to create gists by manually doing so; there will be no way to update them.
If you wish to keep this disabled, you can create gists by right-clicking in the note and selecting Save Gist. Or opening your command palette and selecting the save option from there.',cfg_tab_sy_tog_autosave_enable_tip:"",cfg_tab_sy_tog_autosave_strict_name:"Enable autosave strict saving",cfg_tab_sy_tog_autosave_strict_desc:'Enabled: Your notes will be saved to the gist service precisely on time every {0} seconds, whether you are still typing or not.
Disabled: Time until save will not start until you have finished typing in that note. If you continue typing, the saving countdown will not start until your final key is pressed.
Autosave duration can be modified further down in these settings.',cfg_tab_sy_tog_autosave_strict_tip:"",cfg_tab_sy_tog_autosave_noti_name:"Enable autosave notices",cfg_tab_sy_tog_autosave_noti_desc:'Each time your note is saved automatically, a notice will appear on-screen informing you of the action. This only works if Autosave is enabled.',cfg_tab_sy_tog_autosave_noti_tip:"",cfg_tab_sy_num_save_dur_name:"Autosave duration",cfg_tab_sy_num_save_dur_desc:'How often autosave will execute in seconds. Set this to a fair amount so that the calls aren\'t being ran excessively to the gist API server (Github or OpenGist).
The save countdown timer will begin shortly after you stop typing.
If you wish to change this to save precisely every {0} seconds, enable the setting Autosave Strict Saving located above.',cfg_tab_sy_tog_inc_fm_name:"Include frontmatter",cfg_tab_sy_tog_inc_fm_desc:'When saving a note as a new gist, frontmatter will be added to the top of your note with information about the gist.
Enabled: the note will be cleaned before it is pushed to the gist service and no frontmatter fields will be present in the online version.
Disabled: frontmatter added to your notes will be included when your note is pushed to a gist service.
Frontmatter can be found at the very top of each note, in-between `---` ',cfg_tab_sy_tog_inc_fm_tip:"Frontmatter starts with three hyphens `---`",gist_upload_req_allowupload:'Must enable "Allow Uploading Gists" in the Gistr settings before you can use this command.',gist_upload_no_active_file:"No active file present. Open a note in Obsidian before continuing.",gist_copy_fail_notagist:"No URL to copy. You must turn your note into a gist first.",gist_copy_success_file:"Copied {0} URL to your clipboard",gist_copy_success:"Copied gist URL to clipboard.",gist_upload_fail_api:"GitHub API error: {0}",gist_upload_success:"File {0} has been updated successfully to your gist service.",gist_status_operational_raw:"operational",gist_status_connecting:"connecting ...",gist_status_connected:"Connected to API ...",gist_status_no_api:"Github token missing, no connection",gist_status_no_api_btn_tip:"You must create and specify a Github API token.\n\nAborting connection",gist_status_noconnection:"Failed to communicate with Github",gist_status_degraded_performance:"Degraded Performance",gist_status_partial_outage:"Partial Outage",gist_status_major_outage:"Major Outage",gist_status_issues:"service issues",gist_status_connecting_btn_tip:"Connecting to Github ...",gist_status_success_btn_tip:"Connected to Github API",gist_status_issues_btn_tip:"Github API is currently experiencing issues\n\nClick to view details.",gist_btn_create_new:"Create New Gist",gist_not_found:"Could not locate the specified Gist. Did you possibly delete it from Github?\n\nTo update this note as a new gist, remove the frontmatter text at the top of the note.",gs_base_header:"This plugin allows you to integrate both OpenGist and Github Gist pastes within your Obsidian notes. To use this plugin, you can either create a new Github gist, or setup your own OpenGist server. OpenGist is free, and takes only minutes to configure.",gs_og_btn_repo:"Download OpenGist",gs_og_btn_docs:"OpenGist Docs",gs_og_sub_1:"Once you install and set up OpenGist, you can sign in to your OpenGist website and create your first Gist. After your Gist is created, return to your Obsidian node, and integrate your Gist into your note using code similar to the following:",gs_og_name:"OpenGist integration",gs_og_desc:"OpenGist supports Windows, Linux, MacOS, and Docker. To download and set up OpenGist, click below.",gs_gh_name:"Github integration",gs_gh_desc:"To paste a Github Gist into your note, use a command similar to the following examples:",gs_btn_settings_open:"Open Settings",gs_btn_close:"Close",gh_status_error_api:"Github API Error: {0}",ver_update_stable:"An update is available for the Gistr plugin. Update to check out the latest features!",ver_update_stable_dn_title:"{0} Update Available ► Stable",ver_update_stable_dn_msg:"New stable release available for Gistr plugin.\n\n{0} ► {1}",ver_update_beta:"A new beta release is available for the Gistr plugin. Update to check out the latest features coming to stable!",ver_update_beta_dn_title:"{0} Update Available ► Beta",ver_update_beta_dn_msg:"New beta release available for Gistr plugin.\n\n{0} ► {1}",ver_url:"https://raw.githubusercontent.com/Aetherinox/obsidian-gistr/{0}/package.json",pickr_dialog:"Color Picker",pickr_swatch:"Color Swatch",pickr_toggle:"Pick Color",pickr_last:"Use Last Color",pickr_save:"Save",pickr_cancel:"Cancel",pickr_clear:"Clear",pickr_restore_default_btn_tip:"Restore default color",pickr_dev_unknown:"Gistr: Unknown color format: {0}",err_gist_token_missing:"Github API token missing. Open the Gistr plugin settings, click the Github tab, and enter your token. Instructions are found on the settings page.",err_gist_loading_fail_name:"⚠️ Gistr: Failed to load the specified gist:",err_gist_loading_fail_resp:"{0}",err_gist_loading_fail_detail:"Could not load a valid Javascript from gist url: {0}",err_gist_loading_fail_url:"Could not find gist id -- Make sure correct URL is specified. {0}",lst_repotype_pub:"Public",lst_repotype_pri:"Secret"};const o={en:i}[e.moment.locale()];function a(t,...s){return o||console.error("Gistr language not found",e.moment.locale()),(o&&o[t]||i[t]).replace(/{(\d+)}/g,((e,t)=>{const r=s[t];return void 0!==r?r:e}))}var c,l,u,d;(e=>{e.HEX="HEX",e.RGB="RGB",e.HSL="HSL",e.CIELab="CIELab",e.CMYK="CMYK"})(c||(c={})),(e=>{e.ANALOGOUS="ANALOGOUS",e.COMPLEMENTARY="COMPLEMENTARY",e.SPLIT_COMPLEMENTARY="SPLIT_COMPLEMENTARY",e.TRIADIC="TRIADIC",e.TETRADIC="TETRADIC",e.SQUARE="SQUARE"})(l||(l={})),(e=>{e.ADDITIVE="ADDITIVE",e.SUBTRACTIVE="SUBTRACTIVE"})(u||(u={})),(e=>{e.black="#000000",e.silver="#C0C0C0",e.gray="#808080",e.white="#FFFFFF",e.maroon="#800000",e.red="#FF0000",e.purple="#800080",e.fuchsia="#FF00FF",e.green="#008000",e.lime="#00FF00",e.olive="#808000",e.yellow="#FFFF00",e.navy="#000080",e.blue="#0000FF",e.teal="#008080",e.aqua="#00FFFF",e.orange="#FFA500",e.aliceblue="#F0F8FF",e.antiquewhite="#FAEBD7",e.aquamarine="#7FFFD4",e.azure="#F0FFFF",e.beige="#F5F5DC",e.bisque="#FFE4C4",e.blanchedalmond="#FFEBCD",e.blueviolet="#8A2BE2",e.brown="#A52A2A",e.burlywood="#DEB887",e.cadetblue="#5F9EA0",e.chartreuse="#7FFF00",e.chocolate="#D2691E",e.coral="#FF7F50",e.cornflowerblue="#6495ED",e.cornsilk="#FFF8DC",e.crimson="#DC143C",e.cyan="#00FFFF",e.darkblue="#00008B",e.darkcyan="#008B8B",e.darkgoldenrod="#B8860B",e.darkgray="#A9A9A9",e.darkgreen="#006400",e.darkgrey="#A9A9A9",e.darkkhaki="#BDB76B",e.darkmagenta="#8B008B",e.darkolivegreen="#556B2F",e.darkorange="#FF8C00",e.darkorchid="#9932CC",e.darkred="#8B0000",e.darksalmon="#E9967A",e.darkseagreen="#8FBC8F",e.darkslateblue="#483D8B",e.darkslategray="#2F4F4F",e.darkslategrey="#2F4F4F",e.darkturquoise="#00CED1",e.darkviolet="#9400D3",e.deeppink="#FF1493",e.deepskyblue="#00BFFF",e.dimgray="#696969",e.dimgrey="#696969",e.dodgerblue="#1E90FF",e.firebrick="#B22222",e.floralwhite="#FFFAF0",e.forestgreen="#228B22",e.gainsboro="#DCDCDC",e.ghostwhite="#F8F8FF",e.gold="#FFD700",e.goldenrod="#DAA520",e.greenyellow="#ADFF2F",e.grey="#808080",e.honeydew="#F0FFF0",e.hotpink="#FF69B4",e.indianred="#CD5C5C",e.indigo="#4B0082",e.ivory="#FFFFF0",e.khaki="#F0E68C",e.lavender="#E6E6FA",e.lavenderblush="#FFF0F5",e.lawngreen="#7CFC00",e.lemonchiffon="#FFFACD",e.lightblue="#ADD8E6",e.lightcoral="#F08080",e.lightcyan="#E0FFFF",e.lightgoldenrodyellow="#FAFAD2",e.lightgray="#D3D3D3",e.lightgreen="#90EE90",e.lightgrey="#D3D3D3",e.lightpink="#FFB6C1",e.lightsalmon="#FFA07A",e.lightseagreen="#20B2AA",e.lightskyblue="#87CEFA",e.lightslategray="#778899",e.lightslategrey="#778899",e.lightsteelblue="#B0C4DE",e.lightyellow="#FFFFE0",e.limegreen="#32CD32",e.linen="#FAF0E6",e.magenta="#FF00FF",e.mediumaquamarine="#66CDAA",e.mediumblue="#0000CD",e.mediumorchid="#BA55D3",e.mediumpurple="#9370DB",e.mediumseagreen="#3CB371",e.mediumslateblue="#7B68EE",e.mediumspringgreen="#00FA9A",e.mediumturquoise="#48D1CC",e.mediumvioletred="#C71585",e.midnightblue="#191970",e.mintcream="#F5FFFA",e.mistyrose="#FFE4E1",e.moccasin="#FFE4B5",e.navajowhite="#FFDEAD",e.oldlace="#FDF5E6",e.olivedrab="#6B8E23",e.orangered="#FF4500",e.orchid="#DA70D6",e.palegoldenrod="#EEE8AA",e.palegreen="#98FB98",e.paleturquoise="#AFEEEE",e.palevioletred="#DB7093",e.papayawhip="#FFEFD5",e.peachpuff="#FFDAB9",e.peru="#CD853F",e.pink="#FFC0CB",e.plum="#DDA0DD",e.powderblue="#B0E0E6",e.rosybrown="#BC8F8F",e.royalblue="#4169E1",e.saddlebrown="#8B4513",e.salmon="#FA8072",e.sandybrown="#F4A460",e.seagreen="#2E8B57",e.seashell="#FFF5EE",e.sienna="#A0522D",e.skyblue="#87CEEB",e.slateblue="#6A5ACD",e.slategray="#708090",e.slategrey="#708090",e.snow="#FFFAFA",e.springgreen="#00FF7F",e.steelblue="#4682B4",e.tan="#D2B48C",e.thistle="#D8BFD8",e.tomato="#FF6347",e.turquoise="#40E0D0",e.violet="#EE82EE",e.wheat="#F5DEB3",e.whitesmoke="#F5F5F5",e.yellowgreen="#9ACD32",e.rebeccapurple="#663399"})(d||(d={}));const p=Object.keys(d),g={HEX:["R","G","B","A"],RGB:["R","G","B","A"],HSL:["H","S","L","A"],CIELab:["L","a","b","A"],CMYK:["C","M","Y","K","A"]},h={BGR:c.RGB,ABGR:c.RGB,HLS:c.HSL,AHLS:c.HSL,LAB:c.CIELab,ALAB:c.CIELab,CKMY:c.CMYK,ACKMY:c.CMYK};var m;(e=>{e.NUMBER="number",e.BOOLEAN="boolean"})(m||(m={}));const _={[c.HEX]:/^#(?:([a-f\d])([a-f\d])([a-f\d])([a-f\d])?|([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?)$/i,[c.RGB]:/^rgba?\s*\(\s*(?:((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)(?:\s*,\s*((?:\d*\.)?\d+))?|((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/,[c.HSL]:/^hsla?\s*\(\s*(?:(-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*,\s*((?:\d*\.)?\d+)%\s*,\s*((?:\d*\.)?\d+)%(?:\s*,\s*((?:\d*\.)?\d+))?|(-?(?:\d*\.)?\d+(?:deg|grad|rad|turn)?)\s*((?:\d*\.)?\d+)%\s*((?:\d*\.)?\d+)%(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/,[c.CIELab]:/^lab\s*\(\s*(?:((?:\d*\.)?\d+%?)\s*(-?(?:\d*\.)?\d+%?)\s*(-?(?:\d*\.)?\d+%?)(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/,[c.CMYK]:/^(?:device-cmyk|cmyk)\s*\(\s*(?:((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)\s*,\s*((?:\d*\.)?\d+%?)(?:\s*,\s*((?:\d*\.)?\d+))?|((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)\s*((?:\d*\.)?\d+%?)(?:\s*\/\s*((?:\d*\.)?\d+%?))?)\s*\)$/},f=/^(-?(?:\d*\.)?\d+)((?:deg|grad|rad|turn)?)$/,b=/^(-?\d+(?:\.\d+)?|-?\.\d+)%$/,A=/^0x([a-f\d]{1,2})$/i,w=/\{(\d+)\}/g,E=/,( +|\d+)/g,y=/ +/;var v,T,k;(e=>{e.NONE="none",e.DEGREES="deg",e.GRADIANS="grad",e.RADIANS="rad",e.TURNS="turn"})(v||(v={})),(e=>{e.NONE="none",e.PERCENT="percent"})(T||(T={})),(e=>{e.DEVICE_CMYK="device-cmyk",e.CMYK="cmyk"})(k||(k={}));const S={decimals:6,legacyCSS:!1,spacesAfterCommas:!1,anglesUnit:v.NONE,rgbUnit:T.NONE,labUnit:T.NONE,cmykUnit:T.PERCENT,alphaUnit:T.NONE,cmykFunction:k.DEVICE_CMYK},D=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),C=e=>+`${e}`.replace(b,"$1"),G=e=>b.test(`${e}`)?C(e):Math.min(+e,100),O=e=>(1===e.length&&(e+=e),parseInt(e,16)),I=e=>{const t=B(e,0).toString(16).toUpperCase();return 1===t.length?`0x0${t}`:`0x${t}`},L=(e,t=!1)=>!t&&b.test(e)?Math.min(255*C(e)/100,255):A.test(e)?(3===e.length&&(e+=e.slice(-1)),t?B(e)/255:B(e)):Math.min(+e,t?1:255),R=e=>b.test(e)?x(125*C(e)/100,-125,125):x(+e,-125,125),F=e=>Math.min(b.test(e)?C(e)/100:+e,1),P=e=>[...e].sort().join("").toUpperCase(),B=(e,t=6)=>{const s=Math.pow(10,t);return Math.round(+e*s)/s},x=(e,t,s)=>Math.max(t,Math.min(e,s)),M=e=>{if("string"==typeof e){const t=e.match(f),s=+t[1];switch(t[2]){case v.RADIANS:e=B(180*s/Math.PI);break;case v.TURNS:e=B(360*s);break;case v.GRADIANS:e=B(.9*s);break;case v.DEGREES:default:e=s}}return(e>360||e<0)&&(e-=360*Math.floor(e/360)),e},N=(e,...t)=>{const s=[],r=[],n=[],i=[],o=[],a=[],c=Object.values(v),l=Object.values(T),u=Object.values(k),d={legacyCSS:0,spacesAfterCommas:0,cmykFunction:0};for(const e of t)if("string"==typeof e){if(s.push(e),e.includes(",")){d.legacyCSS++;const t=e.match(E);1===new Set(t).size&&y.test(t[0].slice(1))&&d.spacesAfterCommas++}if(e.match(_.HSL)){const t=e.match(_.HSL),s=t[1]||t[5],n=t[8],i=s.match(f)[2];r.push(""===i?v.NONE:i),a.push(b.test(n));continue}if(_.RGB.test(e)){const t=e.match(_.RGB),s=t[1]||t[5],r=t[2]||t[6],i=t[3]||t[7],o=t[8];n.push(b.test(s)&&b.test(r)&&b.test(i)),a.push(b.test(o));continue}if(_.CIELab.test(e)){const t=e.match(_.CIELab),s=t[1],r=t[2],n=t[3],o=t[4];i.push(b.test(s)&&b.test(r)&&b.test(n)),a.push(b.test(o));continue}if(e.match(_.CMYK)){const t=e.match(_.CMYK),s=t[1]||t[6],r=t[2]||t[7],n=t[3]||t[8],i=t[4]||t[9],c=t[10];o.push(b.test(s)&&b.test(r)&&b.test(n)&&b.test(i)),e.startsWith("cmyk")&&d.cmykFunction++,a.push(b.test(c))}}return{decimals:typeof e.decimals===m.NUMBER?e.decimals:S.decimals,legacyCSS:typeof e.legacyCSS===m.BOOLEAN?e.legacyCSS:Boolean(s.length&&d.legacyCSS===s.length)||S.legacyCSS,spacesAfterCommas:typeof e.spacesAfterCommas===m.BOOLEAN?e.spacesAfterCommas:Boolean(s.length&&d.spacesAfterCommas===s.length)||S.spacesAfterCommas,anglesUnit:e.anglesUnit&&c.includes(e.anglesUnit)?e.anglesUnit:1===new Set(r).size?r[0]:S.anglesUnit,rgbUnit:e.rgbUnit&&l.includes(e.rgbUnit)?e.rgbUnit:1===new Set(n).size&&n[0]?T.PERCENT:S.rgbUnit,labUnit:e.labUnit&&l.includes(e.labUnit)?e.labUnit:1===new Set(i).size&&i[0]?T.PERCENT:S.labUnit,cmykUnit:e.cmykUnit&&l.includes(e.cmykUnit)?e.cmykUnit:1!==new Set(o).size||o[0]?S.cmykUnit:T.NONE,alphaUnit:e.alphaUnit&&l.includes(e.alphaUnit)?e.alphaUnit:1===new Set(a).size&&a[0]?T.PERCENT:S.alphaUnit,cmykFunction:e.cmykFunction&&u.includes(e.cmykFunction)?e.cmykFunction:o.length&&o.length===d.cmykFunction?k.CMYK:S.cmykFunction}},H=e=>`${e}`in u,U=[[.4360747,.3850649,.1430804],[.2225045,.7168786,.0606169],[.0139322,.0971045,.7141733]],Y=[[3.1338561,-1.6168667,-.4906146],[-.9787684,1.9161415,.033454],[.0719453,-.2289914,1.4052427]],j=U.map((e=>e.reduce(((e,t)=>e+t),0))),Q=(e,t,s)=>(s<0&&(s+=6),s>=6&&(s-=6),B(s<1?255*((t-e)*s+e):s<3?255*t:s<4?255*((t-e)*(4-s)+e):255*e)),W=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4,z=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,Z=(e,t,s,r)=>{const n=[0,0,0],i=[e,t,s];return r.forEach(((e,t)=>{e.forEach(((e,s)=>{n[t]+=e*i[s]}))})),n},J=(e,t,s)=>{t/=100;const r=(s/=100)<=.5?s*(t+1):s+t-s*t,n=2*s-r;return{R:Q(n,r,2+(e/=60)),G:Q(n,r,e),B:Q(n,r,e-2)}},V=(e,t,s,r=1)=>{e/=255,t/=255,s/=255,r=Math.min(r,1);const n=Math.max(e,t,s),i=Math.min(e,t,s),o=n-i;let a=0,c=0;const l=(n+i)/2;if(0!==o){switch(n){case e:a=(t-s)/o%6;break;case t:a=(s-e)/o+2;break;case s:a=(e-t)/o+4}a=B(60*a),a<0&&(a+=360),c=o/(1-Math.abs(2*l-1))}return{H:a,S:B(100*c),L:B(100*l),A:r}},X=(e,t,s)=>{const r=[e/255,t/255,s/255].map(W),n=Z(r[0],r[1],r[2],U),i=((e,t,s)=>{const r=e=>e>(6/29)**3?Math.cbrt(e):e/(3*(6/29)**2)+4/29,n=r(e/j[0]),i=r(t/j[1]);return[116*i-16,500*(n-i),200*(i-r(s/j[2]))]})(n[0],n[1],n[2]);return{L:i[0],a:i[1],b:i[2]}},K=(e,t,s)=>{const r=((e,t,s)=>{const r=e=>e>6/29?e**3:3*(6/29)**2*(e-4/29),n=(e+16)/116,i=t/500,o=s/200;return[j[0]*r(n+i),j[1]*r(n),j[2]*r(n-o)]})(e,t,s),n=Z(r[0],r[1],r[2],Y).map(z);return{R:x(255*n[0],0,255),G:x(255*n[1],0,255),B:x(255*n[2],0,255)}},q=(e,t,s,r)=>({R:B(255*(1-e)*(r=1-r)),G:B(255*(1-t)*r),B:B(255*(1-s)*r)}),$=(e,t,s)=>{e/=255,t/=255,s/=255;const r=1-Math.max(e,t,s),n=1-r,i=n&&(n-t)/n,o=n&&(n-s)/n;return{C:B(100*(n&&(n-e)/n)),M:B(100*i),Y:B(100*o),K:B(100*r)}},ee=(e,t)=>{if(e<0&&(e+=360),e>360&&(e-=360),360===e||0===e)return e;const s=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],n=t?r:s;let i=0,o=0,a=0,c=0;return(t?s:r).find(((t,s)=>e>=t[0]&&ee?", ":",",se=(e,t)=>{const s=P(Object.keys(e));return g[h[s]].reduce(((s,r,n)=>{const i=e[r];return void 0!==i&&s.push(t(i,n)),s}),[])},re=(e,t)=>e.replace(w,((e,s)=>`${t[+s-1]}`)),ne=(e,t,s=!1)=>{const{alphaUnit:r,legacyCSS:n,decimals:i}=t;return r!==T.PERCENT||n&&!s?B(e,i):`${B(100*e,i)}%`},ie={[c.HEX]:e=>{const t=se(e,(e=>(e=>{let t=B(e,0).toString(16).toUpperCase();return 1===t.length&&(t=`0${t}`),t})(B(e)))),s=4===t.length?"#{1}{2}{3}{4}":"#{1}{2}{3}";return re(s,t)},[c.RGB]:(e,t)=>{const{decimals:s,legacyCSS:r,spacesAfterCommas:n,rgbUnit:i}=t,o=te(n),a=se(e,((e,r)=>i===T.PERCENT&&r<3?`${((e,t)=>B(e/255*100,t))(e,s)}%`:3===r?ne(e,t):B(e,s))),c=r?4===a.length?`rgba({1}${o}{2}${o}{3}${o}{4})`:`rgb({1}${o}{2}${o}{3})`:4===a.length?"rgb({1} {2} {3} / {4})":"rgb({1} {2} {3})";return re(c,a)},[c.HSL]:(e,t)=>{const{decimals:s,legacyCSS:r,spacesAfterCommas:n,anglesUnit:i}=t,o=te(n),a=se(e,((e,r)=>0===r&&i!==v.NONE?`${B(((e,t)=>{let s;switch(t){case v.RADIANS:s=B((e=>e*Math.PI/180)(e));break;case v.TURNS:s=B(e/360);break;case v.GRADIANS:s=B(10/9*e);break;case v.DEGREES:case v.NONE:default:s=e}return s})(e,i),s)}${i}`:3===r?ne(e,t):B(e,s))),c=r?4===a.length?`hsla({1}${o}{2}%${o}{3}%${o}{4})`:`hsl({1}${o}{2}%${o}{3}%)`:4===a.length?"hsl({1} {2}% {3}% / {4})":"hsl({1} {2}% {3}%)";return re(c,a)},[c.CIELab]:(e,t)=>{const{decimals:s,labUnit:r}=t,n=se(e,((e,n)=>{if(0===n){const t=B(G(e),s);return r===T.PERCENT?`${t}%`:`${t}`}return n<3?r===T.PERCENT?`${((e,t)=>B(e/125*100,t))(e,s)}%`:B(e,s):ne(e,t,!0)})),i=4===n.length?"lab({1} {2} {3} / {4})":"lab({1} {2} {3})";return re(i,n)},[c.CMYK]:(e,t)=>{const{decimals:s,legacyCSS:r,spacesAfterCommas:n,cmykUnit:i,cmykFunction:o}=t,a=te(n),c=se(e,((e,r)=>i===T.PERCENT&&r<4?`${B(e,s)}%`:4===r?ne(e,t):B(e/100,s))),l=r?5===c.length?`${o}({1}${a}{2}${a}{3}${a}{4}${a}{5})`:`${o}({1}${a}{2}${a}{3}${a}{4})`:5===c.length?`${o}({1} {2} {3} {4} / {5})`:`${o}({1} {2} {3} {4})`;return re(l,c)}},oe=e=>("string"==typeof e&&(e=b.test(e)?C(e)/100:+e),isNaN(+e)||e>1?1:B(e)),ae=(e,t,s)=>t.reduce(((t,r)=>[...t,{...e,H:s===u.ADDITIVE?M(e.H+r):M(ee(ee(e.H,!1)+r,!0))}]),[{...e}]),ce=(e,t)=>ae(e,[30,-30],t),le=(e,t)=>ae(e,[180],t),ue=(e,t)=>ae(e,[150,-150],t),de=(e,t)=>ae(e,[120,-120],t),pe=(e,t)=>ae(e,[60,-120,180],t),ge=(e,t)=>ae(e,[90,-90,180],t),he=e=>"string"==typeof e?(e=>{let t;if(Object.keys(c).some((s=>{if(_[s].test(e))return t=s,!0})),!t&&~p.indexOf(e)&&(t=c.HEX),!t)throw new Error("The provided string color doesn't have a correct format");return t})(e):(e=>{let t,s=!1;const r=P(Object.keys(e));if(h[r]&&(t=h[r]),t&&t===c.RGB){const r=Object.entries(e).some((e=>!A.test(`${e[1]}`))),n=Object.entries(e).some((e=>!(b.test(`${e[1]}`)||!A.test(`${e[1]}`)&&!isNaN(+e[1])&&+e[1]<=255)));r&&n&&(s=!0),r||(t=c.HEX)}if(!t||s)throw new Error("The provided color object doesn't have the proper keys or format");return t})(e),me={[c.HEX](e){const t=(~p.indexOf(e)?d[e]:e).match(_.HEX),s={R:O(t[1]||t[5]),G:O(t[2]||t[6]),B:O(t[3]||t[7])},r=t[4]||t[8];return void 0!==r&&(s.A=O(r)/255),s},[c.RGB](e){const t=e.match(_.RGB),s=L(t[1]||t[5]),r=L(t[2]||t[6]),n=L(t[3]||t[7]),i=t[4]||t[8],o={R:Math.min(s,255),G:Math.min(r,255),B:Math.min(n,255)};return void 0!==i&&(o.A=oe(i)),o},[c.HSL](e){const t=e.match(_.HSL),s=M(t[1]||t[5]),r=G(t[2]||t[6]),n=G(t[3]||t[7]),i=t[4]||t[8],o=J(s,r,n);return void 0!==i&&(o.A=oe(i)),o},[c.CIELab](e){const t=e.match(_.CIELab),s=G(t[1]),r=R(t[2]),n=R(t[3]),i=t[4],o=K(s,r,n);return void 0!==i&&(o.A=oe(i)),o},[c.CMYK](e){const t=e.match(_.CMYK),s=F(t[1]||t[6]),r=F(t[2]||t[7]),n=F(t[3]||t[8]),i=F(t[4]||t[9]),o=t[5]||t[10],a=q(s,r,n,i);return void 0!==o&&(a.A=oe(o)),a}},_e={[c.HEX](e){const t={R:L(`${e.R}`),G:L(`${e.G}`),B:L(`${e.B}`)};return D(e,"A")&&(t.A=Math.min(L(`${e.A}`,!0),1)),t},[c.RGB](e){return this.HEX(e)},[c.HSL](e){const t=G(`${e.S}`),s=G(`${e.L}`),r=J(M(e.H),t,s);return D(e,"A")&&(r.A=oe(e.A)),r},[c.CIELab](e){const t=G(`${e.L}`),s=R(`${e.a}`),r=R(`${e.b}`),n=K(t,s,r);return D(e,"A")&&(n.A=oe(e.A)),n},[c.CMYK](e){const t=F(`${e.C}`),s=F(`${e.M}`),r=F(`${e.Y}`),n=F(`${e.K}`),i=q(t,s,r,n);return D(e,"A")&&(i.A=oe(e.A)),i}},fe=(e,t=he(e))=>"string"==typeof e?me[t](e):_e[t](e),be={[c.HEX]:e=>({R:I(e.R),G:I(e.G),B:I(e.B)}),HEXA(e){const t=be.HEX(e);return t.A=D(e,"A")?I(255*e.A):"0xFF",t},[c.RGB](e,t){const s=ye(e,t);return D(s,"A")&&delete s.A,s},RGBA(e,t){const s=be.RGB(e,t);return s.A=D(e,"A")?B(e.A):1,s},[c.HSL](e,t){const s=V(e.R,e.G,e.B);return delete s.A,ve(s,t)},HSLA(e,t){const s=be.HSL(e,t);return s.A=D(e,"A")?B(e.A,t):1,s},[c.CIELab](e,t){const s=X(e.R,e.G,e.B);return Te(s,t)},CIELabA(e,t){const s=be.CIELab(e,t);return s.A=D(e,"A")?B(e.A,t):1,s},[c.CMYK]:(e,t)=>ke($(e.R,e.G,e.B),t),CMYKA(e,t){const s=be.CMYK(e,t);return s.A=D(e,"A")?B(e.A,t):1,s}},Ae=(e,t,s,r)=>{const n=he(e),i="string"==typeof e,o=fe(e,n),a="string"==typeof e&&D(o,"A")||"string"!=typeof e&&D(e,"A"),l=V(o.R,o.G,o.B,o.A);a||delete l.A;const u=s?l.L/(t+1):(100-l.L)/(t+1),d=Array(t).fill(null).map(((e,t)=>({...l,L:l.L+u*(t+1)*(1-2*+s)})));switch(n){case c.HEX:default:return d.map((e=>{const t=J(e.H,e.S,e.L);return a&&(t.A=e.A),i?a?ie.HEX({...t,A:B(255*t.A)}):ie.HEX(t):a?be.HEXA(t):be.HEX(t)}));case c.RGB:return d.map((e=>{const t=J(e.H,e.S,e.L);return a&&(t.A=e.A),i?ie.RGB(t,r):a?be.RGBA(t,r.decimals):be.RGB(t,r.decimals)}));case c.HSL:return d.map((e=>i?ie.HSL(e,r):a?be.HSLA({...J(e.H,e.S,e.L),A:e.A},r.decimals):be.HSL(J(e.H,e.S,e.L),r.decimals)));case c.CIELab:return d.map((e=>{const t=J(e.H,e.S,e.L);return i?ie.CIELab(a?be.CIELabA(t,r.decimals):be.CIELab(t,r.decimals),r):a?be.CIELabA({...t,A:e.A},r.decimals):be.CIELab(t,r.decimals)}))}},we={buildHarmony(e,t,s,r){const n=he(e),i=fe(e,n),o=V(i.R,i.G,i.B,i.A),a="string"==typeof e&&D(i,"A")||"string"!=typeof e&&D(e,"A"),l="string"==typeof e;switch(n){case c.HEX:default:return a?this.HEXA(ve(o,0),t,s,l):this.HEX(ve(o,0),t,s,l);case c.HSL:return a?this.HSLA(o,t,s,l,r):this.HSL(o,t,s,l,r);case c.RGB:return a?this.RGBA(o,t,s,l,r):this.RGB(o,t,s,l,r);case c.CIELab:return a?this.CIELabA(o,t,s,l,r):this.CIELab(o,t,s,l,r)}},[c.HEX]:(e,t,s,r)=>t(e,s).map((e=>r?ie.HEX(J(e.H,e.S,e.L)):be.HEX(J(e.H,e.S,e.L)))),HEXA:(e,t,s,r)=>t(e,s).map((e=>r?ie.HEX({...J(e.H,e.S,e.L),A:255*oe(e.A)}):be.HEXA({...J(e.H,e.S,e.L),A:oe(e.A)}))),[c.RGB]:(e,t,s,r,n)=>t(e,s).map((e=>r?ie.RGB(J(e.H,e.S,e.L),n):be.RGB(J(e.H,e.S,e.L),n.decimals))),RGBA:(e,t,s,r,n)=>t(e,s).map((e=>r?ie.RGB({...J(e.H,e.S,e.L),A:oe(e.A)},n):be.RGBA({...J(e.H,e.S,e.L),A:oe(e.A)},n.decimals))),[c.HSL]:(e,t,s,r,n)=>t(e,s).map((e=>r?ie.HSL({H:e.H,S:e.S,L:e.L},n):be.HSL(J(e.H,e.S,e.L),n.decimals))),HSLA:(e,t,s,r,n)=>t(e,s).map((e=>r?ie.HSL({...e,A:oe(e.A)},n):be.HSLA({...J(e.H,e.S,e.L),A:oe(e.A)},n.decimals))),[c.CIELab]:(e,t,s,r,n)=>t(e,s).map((e=>{const t=J(e.H,e.S,e.L);return r?ie.CIELab(X(t.R,t.G,t.B),n):be.CIELab(t,n.decimals)})),CIELabA:(e,t,s,r,n)=>t(e,s).map((e=>{const t=J(e.H,e.S,e.L);return r?ie.CIELab({...X(t.R,t.G,t.B),A:oe(e.A)},n):be.CIELabA({...t,A:oe(e.A)},n.decimals)}))},Ee={mix(e,t){const s=e.map((e=>{const t=he(e);return fe(e,t)})),r=t===u.SUBTRACTIVE?s.map((e=>{const t=((e,t,s)=>{const r=Math.min(e,t,s),n=Math.min(255-e,255-t,255-s),i=e-r,o=t-r,a=s-r,c=Math.min(i,o),l=i-c,u=(o+c)/2,d=(a+o-c)/2,p=Math.max(l,u,d)/Math.max(i,o,a),g=isNaN(p)||p===1/0||p<=0?1:p;return{R:l/g+n,Y:u/g+n,B:d/g+n}})(e.R,e.G,e.B);return D(e,"A")&&(t.A=e.A),t})):null;function n(e){const s=t===u.ADDITIVE?{R:0,G:0,B:0,A:0}:{R:0,Y:0,B:0,A:0};return e.reduce(((e,s)=>{const r=D(s,"A")?s.A:1,n={R:Math.min(e.R+s.R*r,255),B:Math.min(e.B+s.B*r,255),A:1-(1-r)*(1-e.A)},i="G"in e?e.G:e.Y,o="G"in s?s.G:s.Y;return{...n,...t===u.ADDITIVE?{G:Math.min(i+o*r,255)}:{Y:Math.min(i+o*r,255)}}}),s)}let i;if(t===u.ADDITIVE)i=n(s);else{const e=n(r);i=((e,t,s)=>{const r=Math.min(e,t,s),n=Math.min(255-e,255-t,255-s),i=e-r,o=t-r,a=s-r,c=Math.min(o,a),l=i+o-c,u=o+c,d=2*(a-c),p=Math.max(l,u,d)/Math.max(i,o,a),g=isNaN(p)||p===1/0||p<=0?1:p;return{R:l/g+n,G:u/g+n,B:d/g+n}})(e.R,e.Y,e.B),i.A=e.A}return{R:B(i.R),G:B(i.G),B:B(i.B),A:x(i.A,0,1)}},[c.HEX](e,t,s){const r=this.mix(e,t);return delete r.A,s?ie.HEX(r):be.HEX(r)},HEXA(e,t,s){const r=this.mix(e,t);return r.A=s?255*oe(r.A):oe(r.A),s?ie.HEX(r):be.HEXA(r)},[c.RGB](e,t,s,r){const n=this.mix(e,t);return delete n.A,s?ie.RGB(n,r):be.RGB(n,r.decimals)},RGBA(e,t,s,r){const n=this.mix(e,t);return s?ie.RGB(n,r):be.RGBA(n,r.decimals)},[c.HSL](e,t,s,r){const n=this.mix(e,t),i=V(n.R,n.G,n.B);return delete n.A,delete i.A,s?ie.HSL(i,r):be.HSL(n,r.decimals)},HSLA(e,t,s,r){const n=this.mix(e,t),i=V(n.R,n.G,n.B,n.A);return s?ie.HSL(i,r):be.HSLA(n,r.decimals)},[c.CIELab](e,t,s,r){const n=this.mix(e,t),i=X(n.R,n.G,n.B);return delete n.A,s?ie.CIELab(i,r):be.CIELabA(n,r.decimals)},CIELabA(e,t,s,r){const n=this.mix(e,t),i=X(n.R,n.G,n.B);return D(n,"A")&&(i.A=n.A),s?ie.CIELab(i,r):be.CIELabA(n,r.decimals)}},ye=(e,t)=>({R:B(e.R,t),G:B(e.G,t),B:B(e.B,t),...D(e,"A")?{A:B(e.A,t)}:{}}),ve=(e,t)=>({H:B(e.H,t),S:B(e.S,t),L:B(e.L,t),...D(e,"A")?{A:B(e.A,t)}:{}}),Te=(e,t)=>({L:B(e.L,t),a:B(e.a,t),b:B(e.b,t)}),ke=(e,t)=>({C:B(e.C,t),M:B(e.M,t),Y:B(e.Y,t),K:B(e.K,t)}),Se=(e,t,s,r)=>r(fe(e,t),s),De=(e,t,s,r,n)=>{s<1&&(s=5);const i=((e,t,s)=>{const r=s-1,n=(t.R-e.R)/r,i=(t.G-e.G)/r,o=(t.B-e.B)/r,a=oe(e.A),c=(oe(t.A)-a)/r;return Array(s).fill(null).map(((s,l)=>0===l?e:l===r?t:{R:B(e.R+n*l),G:B(e.G+i*l),B:B(e.B+o*l),A:B(a+c*l)}))})(fe(e),fe(t),s);return i.map((e=>n(e,r)))},Ce=(e,t,s,r)=>({[l.ANALOGOUS]:we.buildHarmony(t,ce,s,r),[l.COMPLEMENTARY]:we.buildHarmony(t,le,s,r),[l.SPLIT_COMPLEMENTARY]:we.buildHarmony(t,ue,s,r),[l.TRIADIC]:we.buildHarmony(t,de,s,r),[l.TETRADIC]:we.buildHarmony(t,pe,s,r),[l.SQUARE]:we.buildHarmony(t,ge,s,r)}[e]);class Ge{constructor(e,t={}){this._options=N(t,e),this.rgb=fe(e),this.updateHSL(),this.updateLab(),this.updateCMYK()}updateRGB(){this.rgb={...J(this.hsl.H,this.hsl.S,this.hsl.L),A:this.hsl.A}}updateRGBFromCMYK(){this.rgb={...q(this.cmyk.C,this.cmyk.M,this.cmyk.Y,this.cmyk.K),A:this.rgb.A}}updateRGBFromLab(){this.rgb={...K(this.lab.L,this.lab.a,this.lab.b),A:this.rgb.A}}updateHSL(){this.hsl=V(this.rgb.R,this.rgb.G,this.rgb.B,this.rgb.A)}updateLab(){this.lab={...X(this.rgb.R,this.rgb.G,this.rgb.B),A:this.rgb.A}}updateCMYK(){this.cmyk=$(this.rgb.R,this.rgb.G,this.rgb.B)}setOptions(e={}){return this._options={...this._options,...e},this}setH(e){return this.hsl.H=M(e),this.updateRGB(),this.updateLab(),this.updateCMYK(),this}setS(e){return this.hsl.S=x(e,0,100),this.updateRGB(),this.updateLab(),this.updateCMYK(),this}setL(e){return this.hsl.L=x(e,0,100),this.updateRGB(),this.updateLab(),this.updateCMYK(),this}setR(e){this.rgb.R=x(e,0,255),this.updateHSL(),this.updateLab(),this.updateCMYK()}setG(e){return this.rgb.G=x(e,0,255),this.updateHSL(),this.updateLab(),this.updateCMYK(),this}setB(e){return this.rgb.B=x(e,0,255),this.updateHSL(),this.updateLab(),this.updateCMYK(),this}setCIEL(e){return this.lab.L=x(e,0,100),this.updateRGBFromLab(),this.updateHSL(),this.updateCMYK(),this}setCIEa(e){return this.lab.a=x(e,-125,125),this.updateRGBFromLab(),this.updateHSL(),this.updateCMYK(),this}setCIEb(e){return this.lab.b=x(e,-125,125),this.updateRGBFromLab(),this.updateHSL(),this.updateCMYK(),this}setA(e){return this.hsl.A=this.rgb.A=x(e,0,1),this}setC(e){return this.cmyk.C=x(e,0,100),this.updateRGBFromCMYK(),this.updateHSL(),this.updateLab(),this}setM(e){return this.cmyk.M=x(e,0,100),this.updateRGBFromCMYK(),this.updateHSL(),this.updateLab(),this}setY(e){return this.cmyk.Y=x(e,0,100),this.updateRGBFromCMYK(),this.updateHSL(),this.updateLab(),this}setK(e){return this.cmyk.K=x(e,0,100),this.updateRGBFromCMYK(),this.updateHSL(),this.updateLab(),this}get options(){return this._options}get H(){return B(this.hsl.H,this.options.decimals)}get S(){return B(this.hsl.S,this.options.decimals)}get L(){return B(this.hsl.L,this.options.decimals)}get CIEL(){return B(this.lab.L,this.options.decimals)}get CIEa(){return B(this.lab.a,this.options.decimals)}get CIEb(){return B(this.lab.b,this.options.decimals)}get R(){return B(this.rgb.R,this.options.decimals)}get G(){return B(this.rgb.G,this.options.decimals)}get B(){return B(this.rgb.B,this.options.decimals)}get A(){return B(this.hsl.A,this.options.decimals)}get C(){return B(this.cmyk.C,this.options.decimals)}get M(){return B(this.cmyk.M,this.options.decimals)}get Y(){return B(this.cmyk.Y,this.options.decimals)}get K(){return B(this.cmyk.K,this.options.decimals)}get HEXObject(){return be.HEX(this.rgb)}get HEXAObject(){return be.HEXA(this.rgb)}get RGBObject(){return{R:this.R,G:this.G,B:this.B}}get RGBAObject(){return{...this.RGBObject,A:this.A}}get HSLObject(){return{H:this.H,S:this.S,L:this.L}}get HSLAObject(){return{...this.HSLObject,A:this.A}}get CIELabObject(){return{L:this.CIEL,a:this.CIEa,b:this.CIEb}}get CIELabAObject(){return{...this.CIELabObject,A:this.A}}get CMYKObject(){return{C:this.C,M:this.M,Y:this.Y,K:this.K}}get CMYKAObject(){return{...this.CMYKObject,A:this.A}}get HEX(){return ie.HEX({R:this.R,G:this.G,B:this.B})}get HEXA(){return ie.HEX({R:this.R,G:this.G,B:this.B,A:255*this.A})}get RGB(){return ie.RGB({R:this.R,G:this.G,B:this.B},this.options)}get RGBA(){return ie.RGB({R:this.R,G:this.G,B:this.B,A:this.A},this.options)}get HSL(){return ie.HSL({H:this.H,S:this.S,L:this.L},this.options)}get HSLA(){return ie.HSL({H:this.H,S:this.S,L:this.L,A:this.A},this.options)}get CIELab(){return ie.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb},this.options)}get CIELabA(){return ie.CIELab({L:this.CIEL,a:this.CIEa,b:this.CIEb,A:this.A},this.options)}get CMYK(){return ie.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K},this.options)}get CMYKA(){return ie.CMYK({C:this.C,M:this.M,Y:this.Y,K:this.K,A:this.A},this.options)}static toHEXObject(e){const t=he(e);return Se(e,t,0,be.HEX)}static toHEX(e){return ie.HEX(Ge.toHEXObject(e))}static toHEXAObject(e){const t=he(e);return Se(e,t,0,be.HEXA)}static toHEXA(e){return ie.HEX(Ge.toHEXAObject(e))}static toRGBObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.RGB)}static toRGB(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.RGB);return ie.RGB(n,r)}static toRGBAObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.RGBA)}static toRGBA(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.RGBA);return ie.RGB(n,r)}static toHSLObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.HSL)}static toHSL(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.HSL);return ie.HSL(n,r)}static toHSLAObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.HSLA)}static toHSLA(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.HSLA);return ie.HSL(n,r)}static toCIELabObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.CIELab)}static toCIELab(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.CIELab);return ie.CIELab(n,r)}static toCIELabAObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.CIELabA)}static toCIELabA(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.CIELabA);return ie.CIELab(n,r)}static toCMYKObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.CMYK)}static toCMYK(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.CMYK);return ie.CMYK(n,r)}static toCMYKAObject(e,t={}){const s=he(e);return Se(e,s,t.decimals,be.CMYKA)}static toCMYKA(e,t={}){const s=he(e),r=N(t,e),n=Se(e,s,t.decimals,be.CMYKA);return ie.CMYK(n,r)}static getBlendHEXObject(e,t,s=5){return De(e,t,s,0,be.HEX)}static getBlendHEX(e,t,s=5){return Ge.getBlendHEXObject(e,t,s).map((e=>ie.HEX(e)))}static getBlendHEXAObject(e,t,s=5){return De(e,t,s,0,be.HEXA)}static getBlendHEXA(e,t,s=5){return Ge.getBlendHEXAObject(e,t,s).map((e=>ie.HEX(e)))}static getBlendRGBObject(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.RGB):De(e,t,5,s?.decimals,be.RGB)}static getBlendRGB(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.RGB).map((s=>ie.RGB(s,N(r||{},e,t)))):De(e,t,5,s?.decimals,be.RGB).map((r=>ie.RGB(r,N(s||{},e,t))))}static getBlendRGBAObject(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.RGBA):De(e,t,5,s?.decimals,be.RGBA)}static getBlendRGBA(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.RGBA).map((s=>ie.RGB(s,N(r||{},e,t)))):De(e,t,5,s?.decimals,be.RGBA).map((r=>ie.RGB(r,N(s||{},e,t))))}static getBlendHSLObject(e,t,s,r){return De(e,t,"number"==typeof s?s:5,r?.decimals,be.HSL)}static getBlendHSL(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.HSL).map((s=>ie.HSL(s,N(r||{},e,t)))):De(e,t,5,s?.decimals,be.HSL).map((r=>ie.HSL(r,N(s||{},e,t))))}static getBlendHSLAObject(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.HSLA):De(e,t,5,s?.decimals,be.HSLA)}static getBlendHSLA(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.HSLA).map((s=>ie.HSL(s,N(r||{},e,t)))):De(e,t,5,s?.decimals,be.HSLA).map((r=>ie.HSL(r,N(s||{},e,t))))}static getBlendCIELabObject(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.CIELab):De(e,t,5,s?.decimals,be.CIELab)}static getBlendCIELab(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.CIELab).map((s=>ie.CIELab(s,N(r||{},e,t)))):De(e,t,5,s?.decimals,be.CIELab).map((r=>ie.CIELab(r,N(s||{},e,t))))}static getBlendCIELabAObject(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.CIELabA):De(e,t,5,s?.decimals,be.CIELabA)}static getBlendCIELabA(e,t,s,r){return"number"==typeof s?De(e,t,s,r?.decimals,be.CIELabA).map((s=>ie.CIELab(s,N(r||{},e,t)))):De(e,t,5,s?.decimals,be.CIELabA).map((r=>ie.CIELab(r,N(s||{},e,t))))}static getMixHEXObject(e,t=u.ADDITIVE){return Ee.HEX(e,t,!1)}static getMixHEX(e,t=u.ADDITIVE){return Ee.HEX(e,t,!0)}static getMixHEXAObject(e,t=u.ADDITIVE){return Ee.HEXA(e,t,!1)}static getMixHEXA(e,t=u.ADDITIVE){return Ee.HEXA(e,t,!0)}static getMixRGBObject(e,t,s){return"string"==typeof t?Ee.RGB(e,t,!1,N(s||{},...e)):Ee.RGB(e,u.ADDITIVE,!1,N(t||{},...e))}static getMixRGB(e,t,s){return"string"==typeof t?Ee.RGB(e,t,!0,N(s||{},...e)):Ee.RGB(e,u.ADDITIVE,!0,N(t||{},...e))}static getMixRGBAObject(e,t,s){return"string"==typeof t?Ee.RGBA(e,t,!1,N(s||{},...e)):Ee.RGBA(e,u.ADDITIVE,!1,N(t||{},...e))}static getMixRGBA(e,t,s){return"string"==typeof t?Ee.RGBA(e,t,!0,N(s||{},...e)):Ee.RGBA(e,u.ADDITIVE,!0,N(t||{},...e))}static getMixHSLObject(e,t,s){return"string"==typeof t?Ee.HSL(e,t,!1,N(s||{},...e)):Ee.HSL(e,u.ADDITIVE,!1,N(t||{},...e))}static getMixHSL(e,t,s){return"string"==typeof t?Ee.HSL(e,t,!0,N(s||{},...e)):Ee.HSL(e,u.ADDITIVE,!0,N(t||{},...e))}static getMixHSLAObject(e,t,s){return"string"==typeof t?Ee.HSLA(e,t,!1,N(s||{},...e)):Ee.HSLA(e,u.ADDITIVE,!1,N(t||{},...e))}static getMixHSLA(e,t,s){return"string"==typeof t?Ee.HSLA(e,t,!0,N(s||{},...e)):Ee.HSLA(e,u.ADDITIVE,!0,N(t||{},...e))}static getMixCIELabObject(e,t,s){return"string"==typeof t?Ee.CIELab(e,t,!1,N(s||{},...e)):Ee.CIELab(e,u.ADDITIVE,!1,N(t||{},...e))}static getMixCIELab(e,t,s){return"string"==typeof t?Ee.CIELab(e,t,!0,N(s||{},...e)):Ee.CIELab(e,u.ADDITIVE,!0,N(t||{},...e))}static getMixCIELabAObject(e,t,s){return"string"==typeof t?Ee.CIELabA(e,t,!1,N(s||{},...e)):Ee.CIELabA(e,u.ADDITIVE,!1,N(t||{},...e))}static getMixCIELabA(e,t,s){return"string"==typeof t?Ee.CIELabA(e,t,!0,N(s||{},...e)):Ee.CIELabA(e,u.ADDITIVE,!0,N(t||{},...e))}static getShades(e,t,s){return"number"==typeof t?Ae(e,t,!0,N(s||{},e)):Ae(e,5,!0,N(t||{},e))}static getTints(e,t,s){return"number"==typeof t?Ae(e,t,!1,N(s||{},e)):Ae(e,5,!1,N(t||{},e))}static getHarmony(e,t,s,r){return`${t}`in l?Ce(t,e,H(s)?s:u.ADDITIVE,N(H(s)?r||{}:s||{},e)):H(t)?Ce(l.COMPLEMENTARY,e,t,N(s||{},e)):Ce(l.COMPLEMENTARY,e,u.ADDITIVE,N(t||{},e))}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Oe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ie(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var s=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach((t=>{var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,r.get?r:{enumerable:!0,get:()=>e[t]})})),s}var Le,Re={exports:{}};Le=Re,((e,t)=>{Le.exports=t()})(self,(()=>(()=>{var e={d:(t,s)=>{for(var r in s)e.o(s,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:s[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.d(t,{default:()=>S});var s={};function r(e,t,s,r,n={}){t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(s)||(s=[s]);for(const i of t)for(const t of s)i[e](t,r,{capture:!1,...n});return Array.prototype.slice.call(arguments,1)}e.r(s),e.d(s,{adjustableInputNumbers:()=>u,createElementFromString:()=>o,createFromTemplate:()=>a,eventPath:()=>c,off:()=>i,on:()=>n,resolveElement:()=>l});const n=r.bind(null,"addEventListener"),i=r.bind(null,"removeEventListener");function o(e){const t=document.createElement("div");return t.innerHTML=e.trim(),t.firstElementChild}function a(e){const t=(e,t)=>{const s=e.getAttribute(t);return e.removeAttribute(t),s},s=(e,r={})=>{const n=t(e,":obj"),i=t(e,":ref"),o=n?r[n]={}:r;i&&(r[i]=e);for(const r of Array.from(e.children)){const e=t(r,":arr"),n=s(r,e?{}:o);e&&(o[e]||(o[e]=[])).push(Object.keys(n).length?n:r)}return r};return s(o(e))}function c(e){let t=e.path||e.composedPath&&e.composedPath();if(t)return t;let s=e.target.parentElement;for(t=[e.target,s];s=s.parentElement;)t.push(s);return t.push(document,window),t}function l(e){return e instanceof Element?e:"string"==typeof e?e.split(/>>/g).reduce(((e,t,s,r)=>(e=e.querySelector(t),se)){function s(s){const r=[.001,.01,.1][Number(s.shiftKey||2*s.ctrlKey)]*(s.deltaY<0?1:-1);let n=0,i=e.selectionStart;e.value=e.value.replace(/[\d.]+/g,((e,s)=>s<=i&&s+e.length>=i?(i=s,t(Number(e),r,n)):(n++,e))),e.focus(),e.setSelectionRange(i,i),s.preventDefault(),e.dispatchEvent(new Event("input"))}n(e,"focus",(()=>n(window,"wheel",s,{passive:!1}))),n(e,"blur",(()=>i(window,"wheel",s)))}const{min:d,max:p,floor:g,round:h}=Math;function m(e,t,s){t/=100,s/=100;const r=g(e=e/360*6),n=e-r,i=s*(1-t),o=s*(1-n*t),a=s*(1-(1-n)*t),c=r%6;return[255*[s,o,i,i,a,s][c],255*[a,s,s,o,i,i][c],255*[i,i,a,s,s,o][c]]}function _(e,t,s){const r=(2-(t/=100))*(s/=100)/2;return 0!==r&&(t=1===r?0:r<.5?t*s/(2*r):t*s/(2-2*r)),[e,100*t,100*r]}function f(e,t,s){const r=d(e/=255,t/=255,s/=255),n=p(e,t,s),i=n-r;let o,a;if(0===i)o=a=0;else{a=i/n;const r=((n-e)/6+i/2)/i,c=((n-t)/6+i/2)/i,l=((n-s)/6+i/2)/i;e===n?o=l-c:t===n?o=1/3+r-l:s===n&&(o=2/3+c-r),o<0?o+=1:o>1&&(o-=1)}return[360*o,100*a,100*n]}function b(e,t,s,r){return t/=100,s/=100,[...f(255*(1-d(1,(e/=100)*(1-(r/=100))+r)),255*(1-d(1,t*(1-r)+r)),255*(1-d(1,s*(1-r)+r)))]}function A(e,t,s){t/=100;const r=2*(t*=(s/=100)<.5?s:1-s)/(s+t)*100,n=100*(s+t);return[e,isNaN(r)?0:r,n]}function w(e){return f(...e.match(/.{2}/g).map((e=>parseInt(e,16))))}function E(e=0,t=0,s=0,r=1){const n=(e,t)=>(s=-1)=>t(~s?e.map((e=>Number(e.toFixed(s)))):e),i={h:e,s:t,v:s,a:r,toHSVA(){const e=[i.h,i.s,i.v,i.a];return e.toString=n(e,(e=>`hsva(${e[0]}, ${e[1]}%, ${e[2]}%, ${i.a})`)),e},toHSLA(){const e=[..._(i.h,i.s,i.v),i.a];return e.toString=n(e,(e=>`hsla(${e[0]}, ${e[1]}%, ${e[2]}%, ${i.a})`)),e},toRGBA(){const e=[...m(i.h,i.s,i.v),i.a];return e.toString=n(e,(e=>`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${i.a})`)),e},toCMYK(){const e=((e,t,s)=>{const r=m(e,t,s),n=r[0]/255,i=r[1]/255,o=r[2]/255,a=d(1-n,1-i,1-o);return[100*(1===a?0:(1-n-a)/(1-a)),100*(1===a?0:(1-i-a)/(1-a)),100*(1===a?0:(1-o-a)/(1-a)),100*a]})(i.h,i.s,i.v);return e.toString=n(e,(e=>`cmyk(${e[0]}%, ${e[1]}%, ${e[2]}%, ${e[3]}%)`)),e},toHEXA(){const e=((e,t,s)=>m(e,t,s).map((e=>h(e).toString(16).padStart(2,"0"))))(i.h,i.s,i.v),t=i.a>=1?"":Number((255*i.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return t&&e.push(t),e.toString=()=>`#${e.join("").toUpperCase()}`,e},clone:()=>E(i.h,i.s,i.v,i.a)};return i}const y=e=>Math.max(Math.min(e,1),0);function v(e){const t={options:Object.assign({lock:null,onchange:()=>0,onstop:()=>0},e),_keyboard(e){const{options:s}=t,{type:r,key:n}=e;if(document.activeElement===s.wrapper){const{lock:s}=t.options,i="ArrowUp"===n,o="ArrowRight"===n,a="ArrowDown"===n,c="ArrowLeft"===n;if("keydown"===r&&(i||o||a||c)){let r=0,n=0;"v"===s?r=i||o?1:-1:"h"===s?r=i||o?-1:1:(n=i?-1:a?1:0,r=c?-1:o?1:0),t.update(y(t.cache.x+.01*r),y(t.cache.y+.01*n)),e.preventDefault()}else n.startsWith("Arrow")&&(t.options.onstop(),e.preventDefault())}},_tapstart(e){n(document,["mouseup","touchend","touchcancel"],t._tapstop),n(document,["mousemove","touchmove"],t._tapmove),e.cancelable&&e.preventDefault(),t._tapmove(e)},_tapmove(e){const{options:s,cache:r}=t,{lock:n,element:i,wrapper:o}=s,a=o.getBoundingClientRect();let c=0,l=0;if(e){const t=e&&e.touches&&e.touches[0];c=e?(t||e).clientX:0,l=e?(t||e).clientY:0,ca.left+a.width&&(c=a.left+a.width),la.top+a.height&&(l=a.top+a.height),c-=a.left,l-=a.top}else r&&(c=r.x*a.width,l=r.y*a.height);"h"!==n&&(i.style.left=`calc(${c/a.width*100}% - ${i.offsetWidth/2}px)`),"v"!==n&&(i.style.top=`calc(${l/a.height*100}% - ${i.offsetHeight/2}px)`),t.cache={x:c/a.width,y:l/a.height};const u=y(c/a.width),d=y(l/a.height);switch(n){case"v":return s.onchange(u);case"h":return s.onchange(d);default:return s.onchange(u,d)}},_tapstop(){t.options.onstop(),i(document,["mouseup","touchend","touchcancel"],t._tapstop),i(document,["mousemove","touchmove"],t._tapmove)},trigger(){t._tapmove()},update(e=0,s=0){const{left:r,top:n,width:i,height:o}=t.options.wrapper.getBoundingClientRect();"h"===t.options.lock&&(s=e),t._tapmove({clientX:r+i*e,clientY:n+o*s})},destroy(){const{options:e,_tapstart:s,_keyboard:r}=t;i(document,["keydown","keyup"],r),i([e.wrapper,e.element],"mousedown",s),i([e.wrapper,e.element],"touchstart",s,{passive:!1})}},{options:s,_tapstart:r,_keyboard:o}=t;return n([s.wrapper,s.element],"mousedown",r),n([s.wrapper,s.element],"touchstart",r,{passive:!1}),n(document,["keydown","keyup"],o),t}function T(e={}){e=Object.assign({onchange:()=>0,className:"",elements:[]},e);const t=n(e.elements,"click",(t=>{e.elements.forEach((s=>s.classList[t.target===s?"add":"remove"](e.className))),e.onchange(t),t.stopPropagation()}));return{destroy:()=>i(...t)}}const k={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0};class S{static utils=s;static version="1.9.0";static I18N_DEFAULTS={"ui:dialog":"color picker dialog","btn:toggle":"toggle color picker dialog","btn:swatch":"color swatch","btn:last-color":"use previous color","btn:save":"Save","btn:cancel":"Cancel","btn:clear":"Clear","aria:btn:save":"save and close","aria:btn:cancel":"cancel and close","aria:btn:clear":"clear and close","aria:input":"color input field","aria:palette":"color selection area","aria:hue":"hue selection slider","aria:opacity":"selection slider"};static DEFAULT_OPTIONS={appClass:null,theme:"classic",useAsButton:!1,padding:8,disabled:!1,comparison:!0,closeOnScroll:!1,outputPrecision:0,lockOpacity:!1,autoReposition:!0,container:"body",components:{interaction:{}},i18n:{},swatches:null,inline:!1,sliders:null,default:"#42445a",defaultRepresentation:null,position:"bottom-middle",adjustableNumbers:!0,showAlways:!1,closeWithKey:"Escape"};_initializingActive=!0;_recalc=!0;_nanopop=null;_root=null;_color=E();_lastColor=E();_swatchColors=[];_setupAnimationFrame=null;_eventListener={init:[],save:[],hide:[],show:[],clear:[],change:[],changestop:[],cancel:[],swatchselect:[]};constructor(e){this.options=e=Object.assign({...S.DEFAULT_OPTIONS},e);const{swatches:t,components:s,theme:r,sliders:n,lockOpacity:i,padding:o}=e;["nano","monolith"].includes(r)&&!n&&(e.sliders="h"),s.interaction||(s.interaction={});const{preview:a,opacity:c,hue:l,palette:u}=s;s.opacity=!i&&c,s.palette=u||a||c||l,this._preBuild(),this._buildComponents(),this._bindEvents(),this._finalBuild(),t&&t.length&&t.forEach((e=>this.addSwatch(e)));const{button:d,app:p}=this._root;this._nanopop=((e,t,s)=>{const r="object"!=typeof e||e instanceof HTMLElement?{reference:e,popper:t,...s}:e;return{update(e=r){const{reference:t,popper:s}=Object.assign(r,e);if(!s||!t)throw new Error("Popper- or reference-element missing.");return((e,t,s)=>{const{container:r,arrow:n,margin:i,padding:o,position:a,variantFlipOrder:c,positionFlipOrder:l}={container:document.documentElement.getBoundingClientRect(),...k,...s},{left:u,top:d}=t.style;t.style.left="0",t.style.top="0";const p=e.getBoundingClientRect(),g=t.getBoundingClientRect(),h={t:p.top-g.height-i,b:p.bottom+i,r:p.right+i,l:p.left-g.width-i},m={vs:p.left,vm:p.left+p.width/2-g.width/2,ve:p.left+p.width-g.width,hs:p.top,hm:p.bottom-p.height/2-g.height/2,he:p.bottom-g.height},[_,f="middle"]=a.split("-"),b=l[_],A=c[f],{top:w,left:E,bottom:y,right:v}=r;for(const e of b){const s="t"===e||"b"===e;let r=h[e];const[i,a]=s?["top","left"]:["left","top"],[c,l]=s?[g.height,g.width]:[g.width,g.height],[u,d]=s?[y,v]:[v,y],[_,f]=s?[w,E]:[E,w];if(!(r<_||r+c+o>u))for(const u of A){let h=m[(s?"v":"h")+u];if(!(hd)){if(h-=g[a],r-=g[i],t.style[a]=`${h}px`,t.style[i]=`${r}px`,n){const e=s?p.width/2:p.height/2,t=2*enew S(e);_preBuild(){const{options:e}=this;for(const t of["el","container"])e[t]=l(e[t]);this._root=(e=>{const{components:t,useAsButton:s,inline:r,appClass:n,theme:i,lockOpacity:o}=e.options,c=e=>e?"":'style="display:none" hidden',l=t=>e._t(t),u=a(`\n
\n\n ${s?"":''}\n\n
\n
\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n\n
\n \n \n
\n
\n\n \n\n
\n \n\n \n \n \n \n \n\n \n \n \n
\n
\n
\n `),d=u.interaction;return d.options.find((e=>!e.hidden&&!e.classList.add("active"))),d.type=()=>d.options.find((e=>e.classList.contains("active"))),u})(this),e.useAsButton&&(this._root.button=e.el),e.container.appendChild(this._root.root)}_finalBuild(){const e=this.options,t=this._root;if(e.container.removeChild(t.root),e.inline){const s=e.el.parentElement;e.el.nextSibling?s.insertBefore(t.app,e.el.nextSibling):s.appendChild(t.app)}else e.container.appendChild(t.app);e.useAsButton?e.inline&&e.el.remove():e.el.parentNode.replaceChild(t.root,e.el),e.disabled&&this.disable(),e.comparison||(t.button.style.transition="none",e.useAsButton||(t.preview.lastColor.style.transition="none")),this.hide()}_buildComponents(){const e=this,t=this.options.components,s=(e.options.sliders||"v").repeat(2),[r,n]=s.match(/^[vh]+$/g)?s:[],i=()=>this._color||(this._color=this._lastColor.clone()),o={palette:v({element:e._root.palette.picker,wrapper:e._root.palette.palette,onstop:()=>e._emit("changestop","slider",e),onchange(s,r){if(!t.palette)return;const n=i(),{_root:o,options:a}=e,{lastColor:c,currentColor:l}=o.preview;e._recalc&&(n.s=100*s,n.v=100-100*r,n.v<0&&(n.v=0),e._updateOutput("slider"));const u=n.toRGBA().toString(0);this.element.style.background=u,this.wrapper.style.background=`\n linear-gradient(to top, rgba(0, 0, 0, ${n.a}), transparent),\n linear-gradient(to left, hsla(${n.h}, 100%, 50%, ${n.a}), rgba(255, 255, 255, ${n.a}))\n `,a.comparison?a.useAsButton||e._lastColor||c.style.setProperty("--pcr-color",u):(o.button.style.setProperty("--pcr-color",u),o.button.classList.remove("clear"));const d=n.toHEXA().toString();for(const{el:t,color:s}of e._swatchColors)t.classList[d===s.toHEXA().toString()?"add":"remove"]("pcr-active");l.style.setProperty("--pcr-color",u)}}),hue:v({lock:"v"===n?"h":"v",element:e._root.hue.picker,wrapper:e._root.hue.slider,onstop:()=>e._emit("changestop","slider",e),onchange(s){if(!t.hue||!t.palette)return;const r=i();e._recalc&&(r.h=360*s),this.element.style.backgroundColor=`hsl(${r.h}, 100%, 50%)`,o.palette.trigger()}}),opacity:v({lock:"v"===r?"h":"v",element:e._root.opacity.picker,wrapper:e._root.opacity.slider,onstop:()=>e._emit("changestop","slider",e),onchange(s){if(!t.opacity||!t.palette)return;const r=i();e._recalc&&(r.a=Math.round(100*s)/100),this.element.style.background=`rgba(0, 0, 0, ${r.a})`,o.palette.trigger()}}),selectable:T({elements:e._root.interaction.options,className:"active",onchange(t){e._representation=t.target.getAttribute("data-type").toUpperCase(),e._recalc&&e._updateOutput("swatch")}})};this._components=o}_bindEvents(){const{_root:e,options:t}=this,s=[n(e.interaction.clear,"click",(()=>this._clearColor())),n([e.interaction.cancel,e.preview.lastColor],"click",(()=>{this.setHSVA(...(this._lastColor||this._color).toHSVA(),!0),this._emit("cancel")})),n(e.interaction.save,"click",(()=>{!this.applyColor()&&!t.showAlways&&this.hide()})),n(e.interaction.result,["keyup","input"],(e=>{this.setColor(e.target.value,!0)&&!this._initializingActive&&(this._emit("change",this._color,"input",this),this._emit("changestop","input",this)),e.stopImmediatePropagation()})),n(e.interaction.result,["focus","blur"],(e=>{this._recalc="blur"===e.type,this._recalc&&this._updateOutput(null)})),n([e.palette.palette,e.palette.picker,e.hue.slider,e.hue.picker,e.opacity.slider,e.opacity.picker],["mousedown","touchstart"],(()=>this._recalc=!0),{passive:!0})];if(!t.showAlways){const r=t.closeWithKey;s.push(n(e.button,"click",(()=>this.isOpen()?this.hide():this.show())),n(document,"keyup",(e=>this.isOpen()&&(e.key===r||e.code===r)&&this.hide())),n(document,["touchstart","mousedown"],(t=>{this.isOpen()&&!c(t).some((t=>t===e.app||t===e.button))&&this.hide()}),{capture:!0}))}if(t.adjustableNumbers){const t={rgba:[255,255,255,1],hsva:[360,100,100,1],hsla:[360,100,100,1],cmyk:[100,100,100,100]};u(e.interaction.result,((e,s,r)=>{const n=t[this.getColorRepresentation().toLowerCase()];if(n){const t=n[r],i=e+(t>=100?1e3*s:s);return i<=0?0:Number((i{r.isOpen()&&(t.closeOnScroll&&r.hide(),null===e?(e=setTimeout((()=>e=null),100),requestAnimationFrame((function t(){r._rePositioningPicker(),null!==e&&requestAnimationFrame(t)}))):(clearTimeout(e),e=setTimeout((()=>e=null),100)))}),{capture:!0}))}this._eventBindings=s}_rePositioningPicker(){const{options:e}=this;if(!e.inline&&!this._nanopop.update({container:document.body.getBoundingClientRect(),position:e.position})){const e=this._root.app,t=e.getBoundingClientRect();e.style.top=(window.innerHeight-t.height)/2+"px",e.style.left=(window.innerWidth-t.width)/2+"px"}}_updateOutput(e){const{_root:t,_color:s,options:r}=this;if(t.interaction.type()){const e=`to${t.interaction.type().getAttribute("data-type")}`;t.interaction.result.value="function"==typeof s[e]?s[e]().toString(r.outputPrecision):""}!this._initializingActive&&this._recalc&&this._emit("change",s,e,this)}_clearColor(e=!1){const{_root:t,options:s}=this;s.useAsButton||t.button.style.setProperty("--pcr-color","rgba(0, 0, 0, 0.15)"),t.button.classList.add("clear"),s.showAlways||this.hide(),this._lastColor=null,this._initializingActive||e||(this._emit("save",null),this._emit("clear"))}_parseLocalColor(e){const{values:t,type:s,a:r}=(e=>{e=e.match(/^[a-zA-Z]+$/)?(e=>{if("black"===e.toLowerCase())return"#000";const t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,"#000"===t.fillStyle?null:t.fillStyle})(e):e;const t={cmyk:/^cmyk\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)/i,rgba:/^rgba?\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D+([\d.]+)(%?)\D*?(([\d.]+)(%?)|$)/i,hsla:/^hsla?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hsva:/^hsva?\D+([\d.]+)\D+([\d.]+)\D+([\d.]+)\D*?(([\d.]+)(%?)|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},s=e=>e.map((e=>/^(|\d+)\.\d+|\d+$/.test(e)?Number(e):void 0));let r;e:for(const n in t)if(r=t[n].exec(e))switch(n){case"cmyk":{const[,e,t,i,o]=s(r);if(e>100||t>100||i>100||o>100)break e;return{values:b(e,t,i,o),type:n}}case"rgba":{let[,e,,t,,i,,,o]=s(r);if(e="%"===r[2]?e/100*255:e,t="%"===r[4]?t/100*255:t,i="%"===r[6]?i/100*255:i,o="%"===r[9]?o/100:o,e>255||t>255||i>255||o<0||o>1)break e;return{values:[...f(e,t,i),o],a:o,type:n}}case"hexa":{let[,e]=r;4!==e.length&&3!==e.length||(e=e.split("").map((e=>e+e)).join(""));const t=e.substring(0,6);let s=e.substring(6);return s=s?parseInt(s,16)/255:void 0,{values:[...w(t),s],a:s,type:n}}case"hsla":{let[,e,t,i,,o]=s(r);if(o="%"===r[6]?o/100:o,e>360||t>100||i>100||o<0||o>1)break e;return{values:[...A(e,t,i),o],a:o,type:n}}case"hsva":{let[,e,t,i,,o]=s(r);if(o="%"===r[6]?o/100:o,e>360||t>100||i>100||o<0||o>1)break e;return{values:[e,t,i,o],a:o,type:n}}}return{values:null,type:null}})(e),{lockOpacity:n}=this.options,i=void 0!==r&&1!==r;return t&&3===t.length&&(t[3]=void 0),{values:!t||n&&i?null:t,type:s}}_t(e){return this.options.i18n[e]||S.I18N_DEFAULTS[e]}_emit(e,...t){this._eventListener[e].forEach((e=>e(...t,this)))}on(e,t){return this._eventListener[e].push(t),this}off(e,t){const s=this._eventListener[e]||[],r=s.indexOf(t);return~r&&s.splice(r,1),this}addSwatch(e){const{values:t}=this._parseLocalColor(e);if(t){const{_swatchColors:e,_root:s}=this,r=E(...t),i=o(``);return s.swatches.appendChild(i),e.push({el:i,color:r}),this._eventBindings.push(n(i,"click",(()=>{this.setHSVA(...r.toHSVA(),!0),this._emit("swatchselect",r),this._emit("change",r,"swatch",this)}))),!0}return!1}removeSwatch(e){const t=this._swatchColors[e];if(t){const{el:s}=t;return this._root.swatches.removeChild(s),this._swatchColors.splice(e,1),!0}return!1}applyColor(e=!1){const{preview:t,button:s}=this._root,r=this._color.toRGBA().toString(0);return t.lastColor.style.setProperty("--pcr-color",r),this.options.useAsButton||s.style.setProperty("--pcr-color",r),s.classList.remove("clear"),this._lastColor=this._color.clone(),this._initializingActive||e||this._emit("save",this._color),this}destroy(){cancelAnimationFrame(this._setupAnimationFrame),this._eventBindings.forEach((e=>i(...e))),Object.keys(this._components).forEach((e=>this._components[e].destroy()))}destroyAndRemove(){this.destroy();const{root:e,app:t}=this._root;e.parentElement&&e.parentElement.removeChild(e),t.parentElement.removeChild(t),Object.keys(this).forEach((e=>this[e]=null))}hide(){return!!this.isOpen()&&(this._root.app.classList.remove("visible"),this._emit("hide"),!0)}show(){return!this.options.disabled&&!this.isOpen()&&(this._root.app.classList.add("visible"),this._rePositioningPicker(),this._emit("show",this._color),this)}isOpen(){return this._root.app.classList.contains("visible")}setHSVA(e=360,t=0,s=0,r=1,n=!1){const i=this._recalc;if(this._recalc=!1,e<0||e>360||t<0||t>100||s<0||s>100||r<0||r>1)return!1;this._color=E(e,t,s,r);const{hue:o,opacity:a,palette:c}=this._components;return o.update(e/360),a.update(r),c.update(t/100,1-s/100),n||this.applyColor(),i&&this._updateOutput(),this._recalc=i,!0}setColor(e,t=!1){if(null===e)return this._clearColor(t),!0;const{values:s,type:r}=this._parseLocalColor(e);if(s){const e=r.toUpperCase(),{options:n}=this._root.interaction,i=n.find((t=>t.getAttribute("data-type")===e));if(i&&!i.hidden)for(const e of n)e.classList[e===i?"add":"remove"]("active");return!!this.setHSVA(...s,t)&&this.setColorRepresentation(e)}return!1}setColorRepresentation(e){return e=e.toUpperCase(),!!this._root.interaction.options.find((t=>t.getAttribute("data-type").startsWith(e)&&!t.click()))}getColorRepresentation(){return this._representation}getColor(){return this._color}getSelectedColor(){return this._lastColor}getRoot(){return this._root}disable(){return this.hide(),this.options.disabled=!0,this._root.button.classList.add("disabled"),this}enable(){return this.options.disabled=!1,this._root.button.classList.remove("disabled"),this}}return t.default})()));var Fe=Oe(Re.exports);class Pe extends Fe{constructor(e,t,s,n,i){const o={el:n.controlEl.createDiv({cls:"picker"}),theme:"nano",default:"#FFFFFF",position:"left-middle",lockOpacity:!1,components:{preview:!0,hue:!0,opacity:!0,interaction:{hex:!0,rgba:!0,hsla:!0,input:!0,cancel:!0,save:!0}},i18n:{"ui:dialog":a("pickr_dialog"),"btn:swatch":a("pickr_swatch"),"btn:toggle":void 0!==i?i:a("pickr_toggle"),"btn:last-color":a("pickr_last"),"btn:save":a("pickr_save"),"btn:cancel":a("pickr_cancel"),"btn:clear":a("pickr_clear")}};null!==s.parentElement&&(o.container=s.parentElement),super(o),this.ActionSave=e=>{(()=>{r(this,void 0,void 0,(function*(){yield t.saveSettings()}))})()},this.ColorReset=()=>{const e="#FFFFFF";this.setColor(Be(e)),this.ActionSave(e)}}}function Be(e){return"string"==typeof(t=e)&&t.startsWith("--")?function(e){const t=window.getComputedStyle(document.body).getPropertyValue(e).trim();if("string"==typeof t&&t.startsWith("#"))return`#${t.trim().substring(1)}`;if(t.startsWith("hsl"))return`#${Ge.toHEXA(t.replace(/ConvertColor\((.*?)\)/g,((e,t)=>xe(t)))).substring(1)}`;if(t.startsWith("rgb"))return`#${Ge.toHEXA(t.replace(/ConvertColor\((.*?)\)/g,((e,t)=>xe(t)))).substring(1)}`;console.warn(a("pickr_dev_unknown",t));return`#${Ge.toHEXA(t).substring(1)}`}(e):e;var t}function xe(e){const t=e.trim().replace(/(\d*)%/g,"$1").split(" "),s={"+":(e,t)=>Math.max(e+t,0),"-":(e,t)=>Math.max(e-t,0)};return 3===t.length&&t[1]in s?`${s[t[1]](parseFloat(t[0]),parseFloat(t[2]))}%`:e}var Me={exports:{}},Ne={},He={},Ue={};function Ye(e){return null==e}function je(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Ue.isNothing=Ye,Ue.isObject=function(e){return"object"==typeof e&&null!==e},Ue.toArray=function(e){return Array.isArray(e)?e:Ye(e)?[]:[e]},Ue.repeat=function(e,t){var s,r="";for(s=0;s0&&-1==="\0\r\n \u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>t/2-1){s=" ... ",r+=5;break}for(n="",i=this.position;it/2-1){n=" ... ",i-=5;break}return o=this.buffer.slice(r,i),We.repeat(" ",e)+s+o+n+"\n"+We.repeat(" ",e+this.position-r+s.length)+"^"},ze.prototype.toString=function(e){var t,s="";return this.name&&(s+='in "'+this.name+'" '),s+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(s+=":\n"+t),s};var Ze=ze,Je=Qe,Ve=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Xe=["scalar","sequence","mapping"];var Ke=function(e,t){if(t=t||{},Object.keys(t).forEach((t=>{if(-1===Ve.indexOf(t))throw new Je('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||(()=>!0),this.construct=t.construct||(e=>e),this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((s=>{e[s].forEach((e=>{t[String(e)]=s}))})),t}(t.styleAliases||null),-1===Xe.indexOf(this.kind))throw new Je('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')},qe=Ue,$e=Qe,et=Ke;function tt(e,t,s){var r=[];return e.include.forEach((e=>{s=tt(e,t,s)})),e[t].forEach((e=>{s.forEach(((t,s)=>{t.tag===e.tag&&t.kind===e.kind&&r.push(s)})),s.push(e)})),s.filter(((e,t)=>-1===r.indexOf(t)))}function st(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach((e=>{if(e.loadKind&&"scalar"!==e.loadKind)throw new $e("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")})),this.compiledImplicit=tt(this,"implicit",[]),this.compiledExplicit=tt(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,s={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){s[e.kind][e.tag]=s.fallback[e.tag]=e}for(e=0,t=arguments.length;ee instanceof st)))throw new $e("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every((e=>e instanceof et)))throw new $e("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new st({include:e,explicit:t})};var rt=st,nt=new rt({explicit:[new Ke("tag:yaml.org,2002:str",{kind:"scalar",construct:e=>null!==e?e:""}),new Ke("tag:yaml.org,2002:seq",{kind:"sequence",construct:e=>null!==e?e:[]}),new Ke("tag:yaml.org,2002:map",{kind:"mapping",construct:e=>null!==e?e:{}})]});var it=new Ke("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:()=>"~",lowercase:()=>"null",uppercase:()=>"NULL",camelcase:()=>"Null"},defaultStyle:"lowercase"});var ot=new Ke("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:e=>e?"true":"false",uppercase:e=>e?"TRUE":"FALSE",camelcase:e=>e?"True":"False"},defaultStyle:"lowercase"}),at=Ue;function ct(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lt(e){return 48<=e&&e<=55}function ut(e){return 48<=e&&e<=57}var dt=new Ke("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,s=e.length,r=0,n=!1;if(!s)return!1;if("-"!==(t=e[r])&&"+"!==t||(t=e[++r]),"0"===t){if(r+1===s)return!0;if("b"===(t=e[++r])){for(r++;r{i.unshift(parseInt(e,10))})),r=0,s=1,i.forEach((e=>{r+=e*s,s*=60})),n*r):n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!at.isNegativeZero(e)},represent:{binary:e=>e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1),octal:e=>e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1),decimal:e=>e.toString(10),hexadecimal:e=>e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),pt=Ue,gt=Ke,ht=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var mt=/^[-+]?[0-9]+e/;var _t=new gt("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ht.test(e)||"_"===e[e.length-1])},construct:function(e){var t,s,r,n;return s="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,n=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===s?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach((e=>{n.unshift(parseFloat(e,10))})),t=0,r=1,n.forEach((e=>{t+=e*r,r*=60})),s*t):s*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||pt.isNegativeZero(e))},represent:function(e,t){var s;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(pt.isNegativeZero(e))return"-0.0";return s=e.toString(10),mt.test(s)?s.replace("e",".e"):s},defaultStyle:"lowercase"}),ft=new rt({include:[nt],implicit:[it,ot,dt,_t]}),bt=new rt({include:[ft]}),At=Ke,wt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Et=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var yt=new At("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==wt.exec(e)||null!==Et.exec(e))},construct:function(e){var t,s,r,n,i,o,a,c,l=0,u=null;if(null===(t=wt.exec(e))&&(t=Et.exec(e)),null===t)throw new Error("Date resolve error");if(s=+t[1],r=+t[2]-1,n=+t[3],!t[4])return new Date(Date.UTC(s,r,n));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(s,r,n,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var vt,Tt=new Ke("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}});function kt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}try{vt=kt("buffer").Buffer}catch(e){}var St="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Dt=new Ke("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,s,r=0,n=e.length,i=St;for(s=0;s64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,s,r=e.replace(/[\r\n=]/g,""),n=r.length,i=St,o=0,a=[];for(t=0;t>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(r.charAt(t));return 0===(s=n%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===s?(a.push(o>>10&255),a.push(o>>2&255)):12===s&&a.push(o>>4&255),vt?vt.from?vt.from(a):new vt(a):a},predicate:function(e){return vt&&vt.isBuffer(e)},represent:function(e){var t,s,r="",n=0,i=e.length,o=St;for(t=0;t>18&63],r+=o[n>>12&63],r+=o[n>>6&63],r+=o[63&n]),n=(n<<8)+e[t];return 0===(s=i%3)?(r+=o[n>>18&63],r+=o[n>>12&63],r+=o[n>>6&63],r+=o[63&n]):2===s?(r+=o[n>>10&63],r+=o[n>>4&63],r+=o[n<<2&63],r+=o[64]):1===s&&(r+=o[n>>2&63],r+=o[n<<4&63],r+=o[64],r+=o[64]),r}}),Ct=Ke,Gt=Object.prototype.hasOwnProperty,Ot=Object.prototype.toString;var It=new Ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,s,r,n,i,o=[],a=e;for(t=0,s=a.length;t3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,s=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(s&&(r=s[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}});try{Nt=kt("esprima")}catch($){"undefined"!=typeof window&&(Nt=window.esprima)}var Ut=new Ke("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",s=Nt.parse(t,{range:!0});return"Program"===s.type&&1===s.body.length&&"ExpressionStatement"===s.body[0].type&&("ArrowFunctionExpression"===s.body[0].expression.type||"FunctionExpression"===s.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,s="("+e+")",r=Nt.parse(s,{range:!0}),n=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"ArrowFunctionExpression"!==r.body[0].expression.type&&"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach((e=>{n.push(e.name)})),t=r.body[0].expression.body.range,"BlockStatement"===r.body[0].expression.body.type?new Function(n,s.slice(t[0]+1,t[1]-1)):new Function(n,"return "+s.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}}),Yt=rt,jt=Yt.DEFAULT=new Yt({include:[xt],explicit:[Mt,Ht,Ut]}),Qt=Ue,Wt=Qe,zt=Ze,Zt=xt,Jt=jt,Vt=Object.prototype.hasOwnProperty,Xt=1,Kt=2,qt=3,$t=4,es=1,ts=2,ss=3,rs=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ns=/[\x85\u2028\u2029]/,is=/[,\[\]\{\}]/,os=/^(?:!|!!|![a-z\-]+!)$/i,as=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function cs(e){return Object.prototype.toString.call(e)}function ls(e){return 10===e||13===e}function us(e){return 9===e||32===e}function ds(e){return 9===e||32===e||10===e||13===e}function ps(e){return 44===e||91===e||93===e||123===e||125===e}function gs(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function hs(e){return 120===e?2:117===e?4:85===e?8:0}function ms(e){return 48<=e&&e<=57?e-48:-1}function _s(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?" ":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function fs(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var bs=new Array(256),As=new Array(256),ws=0;ws<256;ws++)bs[ws]=_s(ws)?1:0,As[ws]=_s(ws);function Es(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Jt,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function ys(e,t){return new Wt(t,new zt(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function vs(e,t){throw ys(e,t)}function Ts(e,t){e.onWarning&&e.onWarning.call(null,ys(e,t))}var ks={YAML:function(e,t,s){var r,n,i;null!==e.version&&vs(e,"duplication of %YAML directive"),1!==s.length&&vs(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(s[0]))&&vs(e,"ill-formed argument of the YAML directive"),n=parseInt(r[1],10),i=parseInt(r[2],10),1!==n&&vs(e,"unacceptable YAML version of the document"),e.version=s[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ts(e,"unsupported YAML version of the document")},TAG:function(e,t,s){var r,n;2!==s.length&&vs(e,"TAG directive accepts exactly two arguments"),r=s[0],n=s[1],os.test(r)||vs(e,"ill-formed tag handle (first argument) of the TAG directive"),Vt.call(e.tagMap,r)&&vs(e,'there is a previously declared suffix for "'+r+'" tag handle'),as.test(n)||vs(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=n}};function Ss(e,t,s,r){var n,i,o,a;if(t1&&(e.result+=Qt.repeat("\n",t-1))}function Rs(e,t){var s,r,n=e.tag,i=e.anchor,o=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&45===r&&ds(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Os(e,!0,-1)&&e.lineIndent<=t)o.push(null),r=e.input.charCodeAt(e.position);else if(s=e.line,Bs(e,t,qt,!1,!0),o.push(e.result),Os(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===s||e.lineIndent>t)&&0!==r)vs(e,"bad indentation of a sequence entry");else if(e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt?g=1:e.lineIndent===t?g=0:e.lineIndentt)&&(Bs(e,t,$t,!0,n)&&(m?g=e.result:h=e.result),m||(Cs(e,u,d,p,g,h,i,o),p=g=h=null),Os(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)vs(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===n?vs(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?vs(e,"repeat of an indentation width identifier"):(l=t+n-1,c=!0)}if(us(i)){do{i=e.input.charCodeAt(++e.position)}while(us(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ls(i)&&0!==i)}for(;0!==i;){for(Gs(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!c||e.lineIndentl&&(l=e.lineIndent),ls(i))u++;else{if(e.lineIndent0){for(n=o,i=0;n>0;n--)(o=gs(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:vs(e,"expected hexadecimal character");e.result+=fs(i),e.position++}else vs(e,"unknown escape sequence");s=r=e.position}else ls(a)?(Ss(e,s,r,!0),Ls(e,Os(e,!1,t)),s=r=e.position):e.position===e.lineStart&&Is(e)?vs(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}vs(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?m=!0:!function(e){var t,s,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!ds(r)&&!ps(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&vs(e,"name of an alias node must contain at least one character"),s=e.input.slice(t,e.position),Vt.call(e.anchorMap,s)||vs(e,'unidentified alias "'+s+'"'),e.result=e.anchorMap[s],Os(e,!0,-1),!0}(e)?function(e,t,s){var r,n,i,o,a,c,l,u,d=e.kind,p=e.result;if(ds(u=e.input.charCodeAt(e.position))||ps(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(ds(r=e.input.charCodeAt(e.position+1))||s&&ps(r)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(ds(r=e.input.charCodeAt(e.position+1))||s&&ps(r))break}else if(35===u){if(ds(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Is(e)||s&&ps(u))break;if(ls(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,Os(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ss(e,n,i,!1),Ls(e,e.line-a),n=i=e.position,o=!1),us(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ss(e,n,i,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,d,Xt===s)&&(m=!0,null===e.tag&&(e.tag="?")):(m=!0,null===e.tag&&null===e.anchor||vs(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===g&&(m=a&&Rs(e,p))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&vs(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c tag; it should be "'+u.kind+'", not "'+e.kind+'"'),u.resolve(e.result)?(e.result=u.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):vs(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):vs(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||m}function xs(e){var t,s,r,n,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(n=e.input.charCodeAt(e.position))&&(Os(e,!0,-1),n=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==n));){for(o=!0,n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!ds(n);)n=e.input.charCodeAt(++e.position);for(r=[],(s=e.input.slice(t,e.position)).length<1&&vs(e,"directive name must not be less than one character in length");0!==n;){for(;us(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!ls(n));break}if(ls(n))break;for(t=e.position;0!==n&&!ds(n);)n=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==n&&Gs(e),Vt.call(ks,s)?ks[s](e,s,r):Ts(e,'unknown document directive "'+s+'"')}Os(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,Os(e,!0,-1)):o&&vs(e,"directives end mark is expected"),Bs(e,e.lineIndent-1,$t,!1,!0),Os(e,!0,-1),e.checkLineBreaks&&ns.test(e.input.slice(i,e.position))&&Ts(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Is(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Os(e,!0,-1)):e.position0?e.charCodeAt(i-1):null,p=p&&Sr(o,a)}else{for(i=0;ir&&" "!==e[d+1],d=i);else if(!kr(o))return Lr;a=i>0?e.charCodeAt(i-1):null,p=p&&Sr(o,a)}l=l||u&&i-d-1>r&&" "!==e[d+1]}return c||l?s>9&&Dr(e)?Lr:l?Ir:Or:p&&!n(e)?Cr:Gr}function Fr(e,t,s,r){e.dump=(()=>{if(0===t.length)return"''";if(!e.noCompatMode&&-1!==Ar.indexOf(t))return"'"+t+"'";var n=e.indent*Math.max(1,s),i=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-n),o=r||e.flowLevel>-1&&s>=e.flowLevel;switch(Rr(t,o,e.indent,i,(function(t){return((e,t)=>{var s,r;for(s=0,r=e.implicitTypes.length;s"+Pr(t,e.indent)+Br(yr(function(e,t){var s,r,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,xr(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;r=n.exec(e);){var c=r[1],l=r[2];s=" "===l[0],i+=c+(o||s||""===l?"":"\n")+xr(l,t),o=s}return i}(t,i),n));case Lr:return'"'+function(e){for(var t,s,r,n="",i=0;i=55296&&t<=56319&&(s=e.charCodeAt(i+1))>=56320&&s<=57343?(n+=wr(1024*(t-55296)+s-56320+65536),i++):n+=!(r=br[t])&&kr(t)?e[i]:r||wr(t);return n}(t)+'"';default:throw new js("impossible error: invalid scalar style")}})()}function Pr(e,t){var s=Dr(e)?String(t):"",r="\n"===e[e.length-1];return s+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function Br(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function xr(e,t){if(""===e||" "===e[0])return e;for(var s,r,n=/ [^ ]/g,i=0,o=0,a=0,c="";s=n.exec(e);)(a=s.index)-i>t&&(r=o>i?o:a,c+="\n"+e.slice(i,r),i=r+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Mr(e,t,s){var r,n,i,o,a,c;for(i=0,o=(n=s?e.explicitTypes:e.implicitTypes).length;i tag resolver accepts not "'+c+'" style');r=a.represent[c](t,c)}e.dump=r}return!0}return!1}function Nr(e,t,s,r,n,i){e.tag=null,e.dump=s,Mr(e,s,!1)||Mr(e,s,!0);var o=zs.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var a,c,l="[object Object]"===o||"[object Array]"===o;if(l&&(c=-1!==(a=e.duplicates.indexOf(s))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&t>0)&&(n=!1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(l&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),"[object Object]"===o)r&&0!==Object.keys(e.dump).length?(!function(e,t,s,r){var n,i,o,a,c,l,u="",d=e.tag,p=Object.keys(s);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new js("sortKeys must be a boolean or a function");for(n=0,i=p.length;n1024)&&(e.dump&&Vs===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=vr(e,t)),Nr(e,t+1,a,!0,c)&&(e.dump&&Vs===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=d,e.dump=u||"{}"}(e,t,e.dump,n),c&&(e.dump="&ref_"+a+e.dump)):(!function(e,t,s){var r,n,i,o,a,c="",l=e.tag,u=Object.keys(s);for(r=0,n=u.length;r1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Nr(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if("[object Array]"===o){var u=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(!function(e,t,s,r){var n,i,o="",a=e.tag;for(n=0,i=s.length;n "+e.dump)}return!0}function Hr(e,t){var s,r,n=[],i=[];for(Ur(e,n,i),s=0,r=i.length;s{throw new Error("Function "+e+" is deprecated and cannot be used.")}}Ne.Type=Ke,Ne.Schema=rt,Ne.FAILSAFE_SCHEMA=nt,Ne.JSON_SCHEMA=ft,Ne.CORE_SCHEMA=bt,Ne.DEFAULT_SAFE_SCHEMA=xt,Ne.DEFAULT_FULL_SCHEMA=jt,Ne.load=jr.load,Ne.loadAll=jr.loadAll,Ne.safeLoad=jr.safeLoad,Ne.safeLoadAll=jr.safeLoadAll,Ne.dump=Qr.dump,Ne.safeDump=Qr.safeDump,Ne.YAMLException=Qe,Ne.MINIMAL_SCHEMA=nt,Ne.SAFE_SCHEMA=xt,Ne.DEFAULT_SCHEMA=jt,Ne.scan=Wr("scan"),Ne.parse=Wr("parse"),Ne.compose=Wr("compose"),Ne.addConstructor=Wr("addConstructor");var zr=Ne,Zr=zr,Jr="undefined"!=typeof process?process.platform:"",Vr=new RegExp("^(\\ufeff?(= yaml =|---)$([\\s\\S]*?)^(?:\\2|\\.\\.\\.)\\s*$"+("win32"===Jr?"\\r?":"")+"(?:\\n)?)","m");Me.exports=function(e,t){e=e||"";var s={allowUnsafe:!1};(t=t instanceof Object?{...s,...t}:s).allowUnsafe=Boolean(t.allowUnsafe);var r=e.split(/(\r?\n)/);return r[0]&&/= yaml =|---/.test(r[0])?function(e,t){var s=Vr.exec(e);if(!s)return{attributes:{},body:e,bodyBegin:1};var r=t?Zr.load:Zr.safeLoad,n=s[s.length-1].replace(/^\s+|\s+$/g,""),i=r(n)||{},o=e.replace(s[0],""),a=function(e,t){var s=1,r=t.indexOf("\n"),n=e.index+e[0].length;for(;-1!==r;){if(r>=n)return s;s++,r=t.indexOf("\n",r+1)}return s}(s,e);return{attributes:i,body:o,bodyBegin:a,frontmatter:n}}(e,t.allowUnsafe):{attributes:{},body:e,bodyBegin:1}},Me.exports.test=function(e){return e=e||"",Vr.test(e)};var Xr=Oe(Me.exports);const Kr=e=>Xr(e).body;class qr extends e.Setting{constructor(e){return super(e),this.name="",this.desc="",this.setName(this.name),this.setDesc(this.desc),this}setName(e){return super.setName(e),this.name=e,this}setDesc(e){return super.setDesc(e),this.desc=e,this}addNoxTextbox(e,t){return super.addText((s=>{this.addReset(s,t),e(s)}))}addNoxTextarea(e,t){return super.addTextArea((s=>{this.addReset(s,t),e(s)}))}addNoxToggle(e,t){return super.addToggle((s=>{this.addReset(s,t),e(s)}))}addNoxDropdown(e,t){return super.addDropdown((s=>{this.addReset(s,t),e(s)}))}addNoxSlider(e,t){return super.addSlider((s=>{this.addReset(s,t),e(s)}))}addNoxMomentFormat(e,t){return super.addMomentFormat((s=>{this.addReset(s,t),e(s)}))}addReset(t,s){return this.addExtraButton((r=>{r.setIcon("reset").setTooltip(a("base_component_reset")).onClick((()=>{if(t.setValue(s(t)),t instanceof e.MomentFormatComponent)t.onChanged();else if(t instanceof e.DropdownComponent){const e=new Event("change");t.selectEl.dispatchEvent(e)}else(t instanceof e.TextComponent||t instanceof e.TextAreaComponent)&&t.onChanged()}))})),t}}class $r{static _Initialize(t,s){if(this._manifest||this._obsidianApiVer)throw console.log("Plugin attempted to define data more than once");this._obsidianApiVer=e.apiVersion,this._manifest=s}static get obsidianVersion(){if(!this._obsidianApiVer)throw console.log("Obsidian version not set. Ensure Env._Initialize() has fired. ");return this._obsidianApiVer}static get pluginId(){return this.manifest.id}static get pluginName(){return this.manifest.name}static get manifest(){if(!this._manifest)throw console.log("Plugin manifest not set. Ensure Env._Initialize() has fired.");return this._manifest}static get longIdent(){return`${this.manifest.name} ( ${this.manifest.id} @ v${this.manifest.version} )`}static get guid(){return"0a7f5dc4-b2fa-5064-9e54-f6e17fd14273"}static get uuid(){return"535cd4d3-cf1a-54a9-bd4b-adc460934c9a"}static get buildDate(){return"2024-03-23T17:41:40.000Z"}}$r.repository={urlWiki:"https://github.com/Aetherinox/obsidian-gistr/wiki",urlIssues:"https://github.com/Aetherinox/obsidian-gistr/issues",urlReleases:"https://github.com/Aetherinox/obsidian-gistr/releases",urlPackage:"https://raw.githubusercontent.com/Aetherinox/obsidian-gistr/{0}/package.json",urlDemoVault:"https://github.com/Aetherinox/obsidian-gistr/tree/main/tests/gistr-vault"};const en='',tn="https://gist.github.com",sn="saturyn-webview",rn="\n.footer { display: none; }\n",nn={id:"GISTR",icon:"gistr-github-refresh",name:"Refresh Github"};var on="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF8WlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDIgNzkuMTY0NDg4LCAyMDIwLzA3LzEwLTIyOjA2OjUzICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjIuMCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDI0LTAzLTE0VDIyOjE3OjQ1LTA3OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyNC0wMy0xNFQyMjoxODoxMy0wNzowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyNC0wMy0xNFQyMjoxODoxMy0wNzowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDo4N2VmZmUxMy1jZGI4LTU5NGEtOTZhYS1mN2FlZWIyNWZmMzYiIHhtcE1NOkRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDo5N2Y2Njc1ZS1mNjMyLTA1NGEtYTk4Yi0xNDliOTM5Nzg4OWQiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo2NDZlODM3Yy02MDMwLTM2NGYtODI2Mi1mOTUzYTRiYjQ4MzQiPiA8eG1wTU06SGlzdG9yeT4gPHJkZjpTZXE+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJjcmVhdGVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjY0NmU4MzdjLTYwMzAtMzY0Zi04MjYyLWY5NTNhNGJiNDgzNCIgc3RFdnQ6d2hlbj0iMjAyNC0wMy0xNFQyMjoxNzo0NS0wNzowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIDIyLjAgKFdpbmRvd3MpIi8+IDxyZGY6bGkgc3RFdnQ6YWN0aW9uPSJzYXZlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo4N2VmZmUxMy1jZGI4LTU5NGEtOTZhYS1mN2FlZWIyNWZmMzYiIHN0RXZ0OndoZW49IjIwMjQtMDMtMTRUMjI6MTg6MTMtMDc6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCAyMi4wIChXaW5kb3dzKSIgc3RFdnQ6Y2hhbmdlZD0iLyIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz7ccnJpAAAMjklEQVR4nO2debAdRRWHv4QkJHkJCVtiEmIgEPYlsi9aArIoArKUrFFKtJRCBCXiwl7IUgZFrEKrVCBIWAQRUWQTUBBZlUAkCWh4QDYTIBshC3n40v7xe4+E5N73umdOz9y5M1/VrZfKnTnd0/27Mz2nT5/u4Zyjorz0zLsCFflSCaDkVAIoOZUASk4lgJJTCaDkVAIoOZUASk6vvCsQiT7AMGAUsFXH32HAEGAw0B/YkDU/gHagDVgBLAHeAuYBM4HXO/7O6zimqWgWAQwGdgP2A/YEdga2AFqM7C8H5gAvA88CTwP/AhYb2c+NHgV2BW8JHAwcgTp+eMblz0NCeBB4BN0pCkfRBDAYdfhJwIHAwDwrsxbLgMeB24H7KdCdoSgC2BY4HTgZ+GjOdemOOcBtwETglZzr0i2NLoCxwDeAE7F7nmfFSuBO4KfACznXpS6NKoBtge8AX0Aj+iLTBtwK/BD4d851WY9GE8AgYDxwdse/m4mlwHXA1ehVsyFoJAEcC1wFbJd3RSLzH+B84Hd5VwQaQwBDgAnAaXlXJGNuRo+5N/OsRN4COBz4GbB1npXIkdeAs4AH8qpAnnMBlwD3Ud7OBxgN/Am4NK8K5HEH2Bj4FXB81gU3OHcDXyFjJ1LWAtgavRvvnmWhBWIy8nm8mlWBWQpgDzTyHZVVgQVlFro7/jOLwrISwAHA74HNsyisCViAXov/HrugLASwPxrobBy7oCZjMXAU8GTMQmILYHfgIWCzmIU0MQuATwPPxyogpgBGA48BI2MVUBJmAwcBrTGMx/IDDEYDvqrz0zMSuAu1qTkxBNADzYWPjWC7rIxFbdrD2nAMAVwMHBPBbtk5BrWtKdZjgENRjFxSYT2HImoGAdvQHD6DdmAGeoYvB8YAH0toazUaFD5sUzVbAWyGRqtJQ7ZeA3ZgTeh1C7ArcDRyjIxJW8GMmYy8nvehKeDO69oIBYZ8JKHdmSjyeUHaCgLgnLP6THLpuKYL2/2dc8c55x5wzq1OWU5M3nPO3emcO8Q519PVv54bU5Zzcxe2gz5WnX90ygtyzrlDPcvap6MBVhmUacX7zrmJzrndnN81HGtQ5tGeZXX5sXgEDERBj2mmdReiSKCFAefsgaZRj/Q49l3kWVsIvIPCuFcA73d83xutFhqAxh+bIs+lT9j5n9HU9jP+VWc4egwMCDhnXVrRWOLdFDZMBPAD4MKUNp5C8wVJGAdcwZqxx2zgJeBFYCpqqLkoDm+5p80W9N49Agl7FzQe2QktSAEtDLkQuDFBnXugyZ60s6KXAxelMZBWAKOBKaRTMugd9/QU549AC0amANPRLzwGLUgEuyEX96wUtm5HC1zSsAz5CBJ7CdOuDbyI9J0PevVLw1wUZBKb5ehV9TkDW2nE08kAdBf6UlIDaRxBOwOnpDh/bd4xslMkrCJ/TkF9kYg0AjgPu0Ub7UZ2ioTVNfdBfZGIpALYBjghaaE1sHiMFI3+hrZOIOFbWFIBfBXom/DcWowwtFUULJez90V9EkwSAWwEnJqksC7Y3theEbBeATUO9U0QSQRwJPbJGHYBNjG22chsSoqBWx2GA58NPSmJAMYlOKc7NkUziWXhUHTN1gTfmUMFMBL4ZGghnjTD1K8vsZJcHEhgFFaoAA7HdvTayR9QIoWycC26ZmtagMNCTggVQPAzxoNW5AZeFcF2o9KGrvm1CLZ9Jsc+IEQAg1A2LmvOBBZFsNvoLELXbs1+BCTXCBHAWGBoaG264TdoOrWsPATcYWxzKAEBuSEC2D+4Kl2zCrjM2GYRuQz7x5/3nTpEAHsnqEhX3Isyb5ad6WjpnCXefeUrgD7AjsnqUpeJxvaKTJKgkq7YEUU5dYuvAIZhu8pnLsqsWSH+htrEipF4emt9BTAK6Je4OuvzFP7hWWVgGco7bEV/PB1rvgIYnbwuNbG82GbBuk228jnIVwDWrsvpxvaaAes28eozXwFYzv61A/81tNcszMU2Msp0DGCZ2mUlBUqnniFLUNtY4dVnvgIYnLwe6/E+8J6hvWZhJWsWqljglZLHVwCWM4Cu41PxYazbxavPfAWwYYqK1CpzA0N7zUIvbNvFK2LbVwCWFeuFraCahQ2x3cTLq898BWB5a+pLOcPAu2MAOfwwfAVg+XrSiypnYC0GY3sH8OozXwFYjk5BcwsVH8Y60tprk0tfAVj77cucIr4e1u52rz7zFcCS5PWoyU7G9poB6zbxWnDrK4C3UlSkFrsGlF0GeqI2scRrKxrfTpifoiK12I7G3wAyS0airfIs8eozXwHMTFGRWvQDPm5ss8gcgP16C68+8xVAjI2Rj4lgs6h8LoLNN3wO8hXAG9jOVAEcgn2YeREZgv26yJUYC2AetjFroMULJxrbLCLHY+8Ym4P6rFt8BdBGnCieMyj+3sBp6E2c1UHTMHYEgU1mrHXZAW0JX1ZOwD5PAMA/fA8MEcBTCSriw6UkyGzRBAwk3soo7wDTEAG8CLwdXJXu2RJtGl02rsLe/Qvqoxd8Dw4RwGLC8uGGcCZxMo80Kl8Evh7J9tMEuO5D3bH3BR4fwi9RAopm5yh0rbG4P+TgUAE8iLJsx6Af2mjq2Ej2G4GT0SYSsQI/VqAl596ECmAm8ETgOSG0oB2yvk+EDZJypBca8N2GbX7FdXkCTwdQJ0lm5G5JcE4IPYEr0d1mbOSysmAf4C+kTOvuSXDfJEkXPwh4heR73oSwErgB+Alx8unEZDvgXJTJ22updkrmo4SbQYm3k+4X8CNgvMdxi4DrkWD6IcfPgYQ7P5ag2+cNaDOmRmZflLb182Qb/Ppj4NuhJyUVwBi0K0d3g5nHUYevTW800LuY8CiY1Wgt/d3Ao2g7Nut4xVB6o1/eYcBx2KfS8WEVyrY6I/TENDuGTKL7d/d29L77ixrfDUTP+rMSlv8/dMHPo7vCNDRInY9EYf220oI6exhyXu2MtnwZi34QeS52mYR8C+Gk2HFqF+dcm8fuVu3OuUudtn6rZedbwftl1WeVc26hc+6igOvw+fR0zl3lnFvs/K45S9qc+iKXbeNuCqjoC67+tmqXhF51F0x2zm1Sp5w0n82dcy8Z1tOKiS7HbeO2Rhs1tXge/yby9k2p8d2jwMFpKoOehfvUsW/BnsCTNM4U9jK0gVXiN6S0kbmtaPTpy1Dgt9TOlH026ZeN30G8zgdt9XZXRPuhXEPK12OL0OyrCRt9jgGuq/H/09DUcBquT3l+o5ThwwxgQlojFgJYBpwTeM5J1Pb5T0Dv+0l4nYBAiBQ8S/pt7iw4B4MVW1aLMx5ATpoQLmd9P4JDnrNJCeowlWwyj6xAsRF5cj1q89RYrs4ZT9ijYEe0Nfy6tKF32nPwD0CZj2bZsuKVDMtalxkk8PjVw2Lv4LX5BPAI/qPkx4CDuvh+BBLDESh6pi8SyFL0RjG1w8ZfiROtVI9vovmJrGlD4fRmM7LWAgBNgPi+GbQDe+EXwrQRmlZtR7f6PDeY+DL5DAbHo5G/GTEWaF6D/7TkBvjvPL4UTS69Q/67i+RR/i0Ydz7EW6F7Bv6RqcehX1RFfZ4GvhbDcCwBLEfToa96Hv9z7DaibjZmoLaMEooXc43+XLQA1GeJUh/gVuQH8N7vpgTMQ/4S62V5HxA7ScM0tPJ1gefx5yF367nEiZkvEgvQa/K0mIXEeAuoxb5on7whAeesQOsRp6NHyVzUKCtQYEgftKhyFAqG+DXZbUA1jmTOKl/eRD+cZyOWAdimJeuKZ4DPoEge3x1C+6PZtz09j380Qb0akVnotp9J6FuWeXomA58inht1dSS7WTIFTYlnFveYdaKmViSCP0awXfR1BPeitmnNstA8MnUtQre4K43tFlkAV6I2WZh1wXmlalsNXIAuepaRzSIKYA5qgwuwTcfrTd65+u5BGbIsZvLyvpZQ7kQh5PfkWYlGaLQ5KFfQKaTLRtYI1+LDG8Cp6Jpn51uVxmq029HM4AQUZRRKI11LLZajFVV7kTzqyZxGa7SFwHfR3rc34ZnoqIOsfBoQNt5oA25G0crn4e8VzYRGE0AnL6PQsL1RqNnSfKuzHj4+h3fRnsD7AqcR2aWblKxcwWkZjRrxZBRVXIsDiJfIal12pX74eSt6nN1Exu/0SSiKADrpjxaWnIg8ZpujX9q1aLFplpwPfA+tcXwb5QC4A81HFGZf5KIJoJMtUHrV7dGU6SSyd6JsjO5Kw1CQ6MM0Rrh4EEUVQIURjToIrMiISgAlpxJAyakEUHIqAZScSgAlpxJAyakEUHIqAZScSgAl5//732zk3sDUsgAAAABJRU5ErkJggg==";function an(e){for(let t=e.length;t>=0;t--)e[t]&&e[t].remove()}function cn(){const e=[];app.workspace.iterateAllLeaves((t=>{e.push(t.view.containerEl)}));for(let t=0;t0&&an(s)}}const ln=e=>r(void 0,void 0,void 0,(function*(){return yield e.loadSettings(),e.settings}));var un=Ie(Object.freeze({__proto__:null,default:{}})),dn=Object.prototype.toString,pn=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return"GeneratorFunction"===gn(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(gn(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=dn.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")};function gn(e){return"function"==typeof e.constructor?e.constructor.name:null}var hn=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)};function mn(e,t){for(var s in t)_n(t,s)&&(e[s]=t[s])}function _n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var fn=pn,bn=function(e){hn(e)||(e={});for(var t=arguments.length,s=1;s{const s=zr,r=En.exports;r.yaml={parse:s.safeLoad.bind(s),stringify:s.safeDump.bind(s)},r.json={parse:JSON.parse.bind(JSON),stringify:(e,t)=>{const s=Object.assign({replacer:null,space:2},t);return JSON.stringify(e,s.replacer,s.space)}};r.javascript={parse:function e(t,s,r){try{return!1!==r&&(t="( function( ) { \nreturn "+t.trim()+";\n }( ) );"),(e=>{if(e)return new Function("return "+e)()})(t)||{}}catch(n){if(!1!==r&&/(unexpected|identifier)/i.test(n.message))return e(t,s,!1);throw new SyntaxError(n)}},stringify:()=>{throw new Error("Noxkit.engines: Cannot stringify JavaScript")}}})();var yn=En.exports,vn={},Tn=e=>"string"==typeof e&&"\ufeff"===e.charAt(0)?e.slice(1):e;(e=>{const t=Tn,s=pn;e.define=(e,t,s)=>{Reflect.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:s})},e.isBuffer=e=>"buffer"===s(e),e.isObject=e=>"object"===s(e),e.toBuffer=e=>"string"==typeof e?Buffer.from(e):e,e.toString=s=>{if(e.isBuffer(s))return t(String(s));if("string"!=typeof s)throw new TypeError("Noxkit.exports.toString: Expected input to be string || buffer");return t(s)},e.arrayify=e=>e?Array.isArray(e)?e:[e]:[],e.startsWith=(e,t,s)=>("number"!=typeof s&&(s=t.length),e.slice(0,s)===t)})(vn);const kn=yn,Sn=vn;var Dn=e=>{const t=Object.assign({},e);return t.delims=Sn.arrayify(t.delims||t.delimiters||"---"),1===t.delims.length&&t.delims.push(t.delims[0]),t.lang=(t.lang||t.language||"yaml").toLowerCase(),t.engines=Object.assign({},kn,t.parsers,t.engines),t},Cn=(e,t)=>{let s=t.engines[e]||t.engines[function(e){switch(e.toLowerCase()){case"js":case"javascript":return"javascript";case"coffee":case"coffeescript":case"cson":return"coffee";case"yaml":case"yml":return"yaml";default:return e}}(e)];if(void 0===s)throw new Error('Noxkit engine "'+e+'" not registered');return"function"==typeof s&&(s={parse:s}),s};const Gn=pn,On=Cn,In=Dn;var Ln=(e,t,s)=>{if(null==t&&null==s)switch(Gn(e)){case"object":t=e.data,s={};break;case"string":return e;default:throw new TypeError("Noxkit.stringify: expected file to be string or object")}const r=e.content,n=In(s);if(null==t){if(!n.data)return e;t=n.data}const i=e.lang||n.lang,o=On(i,n);if("function"!=typeof o.stringify)throw new TypeError('expected "'+i+'.stringify" to be a function');t=Object.assign({},e.data,t);const a=n.delims[0],c=n.delims[1],l=o.stringify(t,s).trim();let u="";return"{}"!==l&&(u=Rn(a)+Rn(l)+Rn(c)),"string"==typeof e.excerpt&&""!==e.excerpt&&-1===r.indexOf(e.excerpt.trim())&&(u+=Rn(e.excerpt)+Rn(c)),u+Rn(r)};function Rn(e){return"\n"!==e.slice(-1)?e+"\n":e}const Fn=Dn;const Pn=pn,Bn=Ln,xn=vn;const Mn=Cn,Nn=Dn;const Hn=un,Un=(e,t)=>{"function"==typeof t&&(t={parse:t});var s=function(e){"object"!==fn(e)&&(e={content:e});if("string"!=typeof e.content&&!function(e){if(e&&e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e.content))throw new TypeError("expected a buffer or string");return e.content=e.content.toString(),e.sections=[],e}(e),r=bn({},{section_delimiter:"---",parse:wn},t),n=r.section_delimiter,i=s.content.split(/\r?\n/),o=null,a={key:"",data:"",content:""},c=[],l=[];function u(e){s.content=e,o=[],c=[]}function d(e){l.length&&(a.key=function(e,t){return e?e.slice(t.length).trim():""}(l[0],n),a.content=e,r.parse(a,o),o.push(a),a={key:"",data:"",content:""},c=[],l=[])}for(var p=0;p{const s=Fn(t);if(null==e.data&&(e.data={}),"function"==typeof s.excerpt)return s.excerpt(e,s);const r=e.data.excerpt_sep||s.excerpt_sep;if(null==r&&(!1===s.excerpt||null==s.excerpt))return e;const n="string"==typeof s.excerpt?s.excerpt:r||s.delims[0],i=e.content.indexOf(n);return-1!==i&&(e.excerpt=e.content.slice(0,i)),e},Wn=yn,zn=e=>("object"!==Pn(e)&&(e={content:e}),"object"!==Pn(e.data)&&(e.data={}),e.contents&&null==e.content&&(e.content=e.contents),xn.define(e,"orig",xn.toBuffer(e.content)),xn.define(e,"lang",e.lang||""),xn.define(e,"matter",e.matter||""),xn.define(e,"stringify",((t,s)=>(s&&s.lang&&(e.lang=s.lang),Bn(e,t,s)))),e.content=xn.toString(e.content),e.isEmpty=!1,e.excerpt="",e),Zn=(e,t,s)=>{const r=Nn(s),n=Mn(e,r);if("function"!=typeof n.parse)throw new TypeError('Noxkit.parse: Expected "'+e+'.parse" to be a function');return n.parse(t,r)},Jn=vn;function Vn(e,t){if(""===e)return{data:{},content:e,excerpt:"",orig:e};let s=zn(e);const r=Vn.cache[s.content];if(!t){if(r)return s=Object.assign({},r),s.orig=r.orig,s;Vn.cache[s.content]=s}return function(e,t){const s=Yn(t),r=s.delims[0],n="\n"+s.delims[1];let i=e.content;s.lang&&(e.lang=s.lang);const o=r.length;if(!Jn.startsWith(i,r,o))return Qn(e,s),e;if(i.charAt(o)===r.slice(-1))return e;i=i.slice(o);const a=i.length,c=Vn.lang(i,s);c.name&&(e.lang=c.name,i=i.slice(c.raw.length));let l=i.indexOf(n);-1===l&&(l=a);e.matter=i.slice(0,l);const u=e.matter.replace(/^\s*#[^\n]+/gm,"").trim();""===u?(e.isEmpty=!0,e.empty=e.content,e.data={}):e.data=Zn(e.lang,e.matter,s);l===a?e.content="":(e.content=i.slice(l+n.length),"\r"===e.content[0]&&(e.content=e.content.slice(1)),"\n"===e.content[0]&&(e.content=e.content.slice(1)));Qn(e,s),(!0===s.sections||"function"==typeof s.section)&&Un(e,s.section);return e}(s,t)}Vn.engines=Wn,Vn.stringify=(e,t,s)=>("string"==typeof e&&(e=Vn(e,s)),jn(e,t,s)),Vn.read=(e,t)=>{const s=Vn(Hn.readFileSync(e,"utf8"),t);return s.path=e,s},Vn.test=(e,t)=>Jn.startsWith(e,Yn(t).delims[0]),Vn.lang=(e,t)=>{const s=Yn(t).delims[0];Vn.test(e)&&(e=e.slice(s.length));const r=e.slice(0,e.search(/\r?\n/));return{raw:r,name:r?r.trim():""}},Vn.cache={},Vn.clearCache=()=>{Vn.cache={}};var Xn=Oe(Vn);function Kn(){return"object"==typeof navigator&&"userAgent"in navigator?navigator.userAgent:"object"==typeof process&&void 0!==process.version?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}var qn={exports:{}},$n=function e(t,s,r,n){if("function"!=typeof r)throw new Error("method for before hook must be a function");n||(n={});if(Array.isArray(s))return s.reverse().reduce(((s,r)=>e.bind(null,t,r,s,n)),r)();return Promise.resolve().then((()=>t.registry[s]?t.registry[s].reduce(((e,t)=>t.hook.bind(null,e,n)),r)():r(n)))};var ei=function(e,t,s,r){var n=r;e.registry[s]||(e.registry[s]=[]);"before"===t&&(r=(e,t)=>Promise.resolve().then(n.bind(null,t)).then(e.bind(null,t)));"after"===t&&(r=(e,t)=>{var s;return Promise.resolve().then(e.bind(null,t)).then((e=>n(s=e,t))).then((()=>s))});"error"===t&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>n(e,t))));e.registry[s].push({hook:r,orig:n})};var ti=$n,si=ei,ri=function(e,t,s){if(!e.registry[t])return;var r=e.registry[t].map((e=>e.orig)).indexOf(s);if(-1===r)return;e.registry[t].splice(r,1)},ni=Function.bind,ii=ni.bind(ni);function oi(e,t,s){var r=ii(ri,null).apply(null,s?[t,s]:[t]);e.api={remove:r},e.remove=r,["before","error","after","wrap"].forEach((r=>{var n=s?[t,r,s]:[t,r];e[r]=e.api[r]=ii(si,null).apply(null,n)}))}function ai(){var e={registry:{}},t=ti.bind(null,e);return oi(t,e),t}var ci=!1;function li(){return ci||(console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4'),ci=!0),ai()}li.Singular=function(){var e={registry:{}},t=ti.bind(null,e,"h");return oi(t,e,"h"),t}.bind(),li.Collection=ai.bind(),qn.exports=li,qn.exports.Hook=li,qn.exports.Singular=li.Singular;var ui=qn.exports.Collection=li.Collection,di=`octokit-endpoint.js/9.0.4 ${Kn()}`;function pi(e,t){const s=Object.assign({},e);return Object.keys(t).forEach((r=>{!function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const s=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof s&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(e)}(t[r])?Object.assign(s,{[r]:t[r]}):r in e?s[r]=pi(e[r],t[r]):Object.assign(s,{[r]:t[r]})})),s}function gi(e){for(const t in e)void 0===e[t]&&delete e[t];return e}function hi(e,t,s){if("string"==typeof t){let[e,r]=t.split(" ");s=Object.assign(r?{method:e,url:r}:{url:e},s)}else s=Object.assign({},t);var r;s.headers=(r=s.headers)?Object.keys(r).reduce(((e,t)=>(e[t.toLowerCase()]=r[t],e)),{}):{},gi(s),gi(s.headers);const n=pi(e||{},s);return"/graphql"===s.url&&(e&&e.mediaType.previews?.length&&(n.mediaType.previews=e.mediaType.previews.filter((e=>!n.mediaType.previews.includes(e))).concat(n.mediaType.previews)),n.mediaType.previews=(n.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))),n}var mi=/\{[^}]+\}/g;function _i(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function fi(e,t){const s={__proto__:null};for(const r of Object.keys(e))-1===t.indexOf(r)&&(s[r]=e[r]);return s}function bi(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((e=>(/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")),e))).join("")}function Ai(e){return encodeURIComponent(e).replace(/[!'()*]/g,(e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()))}function wi(e,t,s){return t="+"===e||"#"===e?bi(t):Ai(t),s?Ai(s)+"="+t:t}function Ei(e){return null!=e}function yi(e){return";"===e||"&"===e||"?"===e}function vi(e,t){var s=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,((e,r,n)=>{if(r){let e="";const n=[];if(-1!==s.indexOf(r.charAt(0))&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach((s=>{var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);n.push(function(e,t,s,r){var n=e[s],i=[];if(Ei(n)&&""!==n)if("string"==typeof n||"number"==typeof n||"boolean"==typeof n)n=n.toString(),r&&"*"!==r&&(n=n.substring(0,parseInt(r,10))),i.push(wi(t,n,yi(t)?s:""));else if("*"===r)Array.isArray(n)?n.filter(Ei).forEach((e=>{i.push(wi(t,e,yi(t)?s:""))})):Object.keys(n).forEach((e=>{Ei(n[e])&&i.push(wi(t,n[e],e))}));else{const e=[];Array.isArray(n)?n.filter(Ei).forEach((s=>{e.push(wi(t,s))})):Object.keys(n).forEach((s=>{Ei(n[s])&&(e.push(Ai(s)),e.push(wi(t,n[s].toString())))})),yi(t)?i.push(Ai(s)+"="+e.join(",")):0!==e.length&&i.push(e.join(","))}else";"===t?Ei(n)&&i.push(Ai(s)):""!==n||"&"!==t&&"?"!==t?""===n&&i.push(""):i.push(Ai(s)+"=");return i}(t,e,r[1],r[2]||r[3]))})),e&&"+"!==e){var i=",";return"?"===e?i="&":"#"!==e&&(i=e),(0!==n.length?e:"")+n.join(i)}return n.join(",")}return bi(n)})),"/"===e?e:e.replace(/\/$/,"")}function Ti(e){let t,s=e.method.toUpperCase(),r=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),n=Object.assign({},e.headers),i=fi(e,["method","baseUrl","url","headers","request","mediaType"]);const o=function(e){const t=e.match(mi);return t?t.map(_i).reduce(((e,t)=>e.concat(t)),[]):[]}(r);var a;r=(a=r,{expand:vi.bind(null,a)}).expand(i),/^http/.test(r)||(r=e.baseUrl+r);const c=fi(i,Object.keys(e).filter((e=>o.includes(e))).concat("baseUrl"));if(!/application\/octet-stream/i.test(n.accept)&&(e.mediaType.format&&(n.accept=n.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")),r.endsWith("/graphql")&&e.mediaType.previews?.length)){const t=n.accept.match(/[\w-]+(?=-preview)/g)||[];n.accept=t.concat(e.mediaType.previews).map((t=>`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:"+json"}`)).join(",")}return["GET","HEAD"].includes(s)?r=function(e,t){const s=/\?/.test(e)?"&":"?",r=Object.keys(t);return 0===r.length?e:e+s+r.map((e=>"q"===e?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${e}=${encodeURIComponent(t[e])}`)).join("&")}(r,c):"data"in c?t=c.data:Object.keys(c).length&&(t=c),n["content-type"]||void 0===t||(n["content-type"]="application/json; charset=utf-8"),["PATCH","PUT"].includes(s)&&void 0===t&&(t=""),Object.assign({method:s,url:r,headers:n},void 0!==t?{body:t}:null,e.request?{request:e.request}:null)}function ki(e,t,s){return Ti(hi(e,t,s))}var Si=function e(t,s){const r=hi(t,s),n=ki.bind(null,r);return Object.assign(n,{DEFAULTS:r,defaults:e.bind(null,r),merge:hi.bind(null,r),parse:Ti})}(null,{method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":di},mediaType:{format:""}});class Di extends Error{constructor(e){super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="Deprecation"}}var Ci={exports:{}},Gi=function e(t,s){if(t&&s)return e(t)(s);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((e=>{r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),s=0;s{r[e]=n[e]})),r}};var Oi=Gi;function Ii(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Li(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},s=e.name||"Function wrapped with `once`";return t.onceError=s+" shouldn't be called more than once",t.called=!1,t}Ci.exports=Oi(Ii),Ci.exports.strict=Oi(Li),Ii.proto=Ii((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Ii(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Li(this)},configurable:!0})}));var Ri=Oe(Ci.exports),Fi=Ri((e=>console.warn(e))),Pi=Ri((e=>console.warn(e))),Bi=class extends Error{constructor(e,t,s){let r;super(e),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.name="HttpError",this.status=t,"headers"in s&&void 0!==s.headers&&(r=s.headers),"response"in s&&(this.response=s.response,r=s.response.headers);const n=Object.assign({},s.request);s.request.headers.authorization&&(n.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/ .*$/," [REDACTED]")})),n.url=n.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=n,Object.defineProperty(this,"code",{get:()=>(Fi(new Di("[@octokit/request-error] `error.code` is deprecated, use `error.status`.")),t)}),Object.defineProperty(this,"headers",{get:()=>(Pi(new Di("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`.")),r||{})})}};function xi(e){const t=e.request&&e.request.log?e.request.log:console,s=!1!==e.request?.parseSuccessResponseBody;(function(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const s=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof s&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(e)}(e.body)||Array.isArray(e.body))&&(e.body=JSON.stringify(e.body));let r,n,i={},{fetch:o}=globalThis;if(e.request?.fetch&&(o=e.request.fetch),!o)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");return o(e.url,{method:e.method,body:e.body,headers:e.headers,signal:e.request?.signal,...e.body&&{duplex:"half"}}).then((async o=>{n=o.url,r=o.status;for(const e of o.headers)i[e[0]]=e[1];if("deprecation"in i){const s=i.link&&i.link.match(/<([^>]+)>; rel="deprecation"/),r=s&&s.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${i.sunset}${r?`. See ${r}`:""}`)}if(204!==r&&205!==r){if("HEAD"===e.method){if(r<400)return;throw new Bi(o.statusText,r,{response:{url:n,status:r,headers:i,data:void 0},request:e})}if(304===r)throw new Bi("Not modified",r,{response:{url:n,status:r,headers:i,data:await Mi(o)},request:e});if(r>=400){const t=await Mi(o),s=new Bi(function(e){if("string"==typeof e)return e;let t;t="documentation_url"in e?` - ${e.documentation_url}`:"";if("message"in e)return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}${t}`:`${e.message}${t}`;return`Unknown error: ${JSON.stringify(e)}`}(t),r,{response:{url:n,status:r,headers:i,data:t},request:e});throw s}return s?await Mi(o):o.body}})).then((e=>({status:r,url:n,headers:i,data:e}))).catch((t=>{if(t instanceof Bi)throw t;if("AbortError"===t.name)throw t;let s=t.message;throw"TypeError"===t.name&&"cause"in t&&(t.cause instanceof Error?s=t.cause.message:"string"==typeof t.cause&&(s=t.cause)),new Bi(s,500,{request:e})}))}async function Mi(e){const t=e.headers.get("content-type");return/application\/json/.test(t)?e.json().catch((()=>e.text())).catch((()=>"")):!t||/^text\/|charset=utf-8$/.test(t)?e.text():function(e){return e.arrayBuffer()}(e)}var Ni=function e(t,s){const r=t.defaults(s);return Object.assign(((t,s)=>{const n=r.merge(t,s);if(!n.request||!n.request.hook)return xi(r.parse(n));const i=(e,t)=>xi(r.parse(r.merge(e,t)));return Object.assign(i,{endpoint:r,defaults:e.bind(null,r)}),n.request.hook(i,n)}),{endpoint:r,defaults:e.bind(null,r)})}(Si,{headers:{"user-agent":`octokit-request.js/8.2.0 ${Kn()}`}});var Hi=class extends Error{constructor(e,t,s){super("Request failed due to following response errors:\n"+s.errors.map((e=>` - ${e.message}`)).join("\n")),this.request=e,this.headers=t,this.response=s,this.name="GraphqlResponseError",this.errors=s.errors,this.data=s.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},Ui=["method","baseUrl","url","headers","request","query","mediaType"],Yi=["query","method","url"],ji=/\/api\/v3\/?$/;function Qi(e,t){const s=e.defaults(t);return Object.assign(((e,t)=>function(e,t,s){if(s){if("string"==typeof t&&"query"in s)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(const e in s)if(Yi.includes(e))return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}const r="string"==typeof t?Object.assign({query:t},s):t,n=Object.keys(r).reduce(((e,t)=>Ui.includes(t)?(e[t]=r[t],e):(e.variables||(e.variables={}),e.variables[t]=r[t],e)),{}),i=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return ji.test(i)&&(n.url=i.replace(ji,"/api/graphql")),e(n).then((e=>{if(e.data.errors){const t={};for(const s of Object.keys(e.headers))t[s]=e.headers[s];throw new Hi(n,t,e.data)}return e.data.data}))}(s,e,t)),{defaults:Qi.bind(null,s),endpoint:s.endpoint})}Qi(Ni,{headers:{"user-agent":`octokit-graphql.js/7.0.2 ${Kn()}`},method:"POST",url:"/graphql"});var Wi=/^v1\./,zi=/^ghs_/,Zi=/^ghu_/;async function Ji(e){const t=3===e.split(/\./).length,s=Wi.test(e)||zi.test(e),r=Zi.test(e);return{type:"token",token:e,tokenType:t?"app":s?"installation":r?"user-to-server":"oauth"}}async function Vi(e,t,s,r){const n=t.endpoint.merge(s,r);return n.headers.authorization=function(e){return 3===e.split(/\./).length?`bearer ${e}`:`token ${e}`}(e),t(n)}var Xi=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if("string"!=typeof e)throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Ji.bind(null,e),{hook:Vi.bind(null,e)})},Ki="5.1.0",qi=()=>{},$i=console.warn.bind(console),eo=console.error.bind(console),to=`octokit-core.js/${Ki} ${Kn()}`,so=class{static{this.VERSION=Ki}static defaults(e){return class extends(this){constructor(...t){const s=t[0]||{};super("function"!=typeof e?Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null):e(s))}}}static{this.plugins=[]}static plugin(...e){const t=this.plugins;return class extends(this){static{this.plugins=t.concat(e.filter((e=>!t.includes(e))))}}}constructor(e={}){const t=new ui,s={baseUrl:Ni.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};var r;if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${to}`:to,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Ni.defaults(s),this.graphql=(r=this.request,Qi(r,{method:"POST",url:"/graphql"})).defaults(s),this.log=Object.assign({debug:qi,info:qi,warn:$i,error:eo},e.log),this.hook=t,e.authStrategy){const{authStrategy:s,...r}=e,n=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap("request",n.hook),this.auth=n}else if(e.auth){const s=Xi(e.auth);t.wrap("request",s.hook),this.auth=s}else this.auth=async()=>({type:"unauthenticated"});const n=this.constructor;for(let t=0;t{e.log.debug("request",s);const r=Date.now(),n=e.request.endpoint.parse(s),i=n.url.replace(s.baseUrl,"");return t(s).then((t=>(e.log.info(`${n.method} ${i} - ${t.status} in ${Date.now()-r}ms`),t))).catch((t=>{throw e.log.info(`${n.method} ${i} - ${t.status} in ${Date.now()-r}ms`),t}))}))}ro.VERSION="4.0.1";function no(e,t,s){const r="function"==typeof t?t.endpoint(s):e.request.endpoint(t,s),n="function"==typeof t?t:e.request,i=r.method,o=r.headers;let a=r.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{const e=function(e){if(!e.data)return{...e,data:[]};if(!("total_count"in e.data)||"url"in e.data)return e;const t=e.data.incomplete_results,s=e.data.repository_selection,r=e.data.total_count;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count;const n=Object.keys(e.data)[0],i=e.data[n];return e.data=i,void 0!==t&&(e.data.incomplete_results=t),void 0!==s&&(e.data.repository_selection=s),e.data.total_count=r,e}(await n({method:i,url:a,headers:o}));return a=((e.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1],{value:e}}catch(e){if(409!==e.status)throw e;return a="",{value:{status:200,headers:{},data:[]}}}}})}}function io(e,t,s,r){return"function"==typeof s&&(r=s,s=void 0),oo(e,[],no(e,t,s)[Symbol.asyncIterator](),r)}function oo(e,t,s,r){return s.next().then((n=>{if(n.done)return t;let i=!1;return t=t.concat(r?r(n.value,(function(){i=!0})):n.value.data),i?t:oo(e,t,s,r)}))}function ao(e){return{paginate:Object.assign(io.bind(null,e),{iterator:no.bind(null,e)})}}Object.assign(io,{iterator:no}),ao.VERSION="9.2.1";var co={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},lo=new Map;for(const[e,t]of Object.entries(co))for(const[s,r]of Object.entries(t)){const[t,n,i]=r,[o,a]=t.split(/ /),c=Object.assign({method:o,url:a},n);lo.has(e)||lo.set(e,new Map),lo.get(e).set(s,{scope:e,methodName:s,endpointDefaults:c,decorations:i})}var uo={has:({scope:e},t)=>lo.get(e).has(t),getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty:(e,t,s)=>(Object.defineProperty(e.cache,t,s),!0),deleteProperty:(e,t)=>(delete e.cache[t],!0),ownKeys:({scope:e})=>[...lo.get(e).keys()],set:(e,t,s)=>e.cache[t]=s,get({octokit:e,scope:t,cache:s},r){if(s[r])return s[r];const n=lo.get(t).get(r);if(!n)return;const{endpointDefaults:i,decorations:o}=n;return s[r]=o?function(e,t,s,r,n){const i=e.request.defaults(r);function o(...r){let o=i.endpoint.merge(...r);if(n.mapToData)return o=Object.assign({},o,{data:o[n.mapToData],[n.mapToData]:void 0}),i(o);if(n.renamed){const[r,i]=n.renamed;e.log.warn(`octokit.${t}.${s}() has been renamed to octokit.${r}.${i}()`)}if(n.deprecated&&e.log.warn(n.deprecated),n.renamedParameters){const o=i.endpoint.merge(...r);for(const[r,i]of Object.entries(n.renamedParameters))r in o&&(e.log.warn(`"${r}" parameter is deprecated for "octokit.${t}.${s}()". Use "${i}" instead`),i in o||(o[i]=o[r]),delete o[r]);return i(o)}return i(...r)}return Object.assign(o,i)}(e,t,r,i,o):e.request.defaults(i),s[r]}};function po(e){const t=function(e){const t={};for(const s of lo.keys())t[s]=new Proxy({octokit:e,scope:s,cache:{}},uo);return t}(e);return{...t,rest:t}}po.VERSION="10.4.1";var go=so.plugin(ro,po,ao).defaults({userAgent:"octokit-rest.js/20.0.2"}),ho={exports:{}};!function(e,t){e.exports=function(){var t,s;function r(){return t.apply(null,arguments)}function n(e){t=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var s,r=[],n=e.length;for(s=0;snull!=e)),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function b(e){var t=h(NaN);return null!=e?g(_(t),e):_(t).userInvalidated=!0,t}s=Array.prototype.some?Array.prototype.some:function(e){var t,s=Object(this),r=s.length>>>0;for(t=0;t0)for(s=0;s{var t,s=[];for(t in e)a(e,t)&&s.push(t);return s};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function F(e,t,s){var r=this._calendar[e]||this._calendar.sameElse;return G(r)?r.call(t,s):r}function P(e,t,s){var r=""+Math.abs(e),n=t-r.length;return(e>=0?s?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,x=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},N={};function H(e,t,s,r){var n=r;"string"==typeof r&&(n=function(){return this[r]()}),e&&(N[e]=n),t&&(N[t[0]]=function(){return P(n.apply(this,arguments),t[1],t[2])}),s&&(N[s]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,s,r=e.match(B);for(t=0,s=r.length;t{var n,i="";for(n=0;n=0&&x.test(e);)e=e.replace(x,r),x.lastIndex=0,s-=1;return e}var W={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function z(e){var t=this._longDateFormat[e],s=this._longDateFormat[e.toUpperCase()];return t||!s?t:(this._longDateFormat[e]=s.match(B).map((e=>"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e)).join(""),this._longDateFormat[e])}var Z="Invalid date";function J(){return this._invalidDate}var V="%d",X=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function $(e,t,s,r){var n=this._relativeTime[s];return G(n)?n(e,t,s,r):n.replace(/%d/i,e)}function ee(e,t){var s=this._relativeTime[e>0?"future":"past"];return G(s)?s(t):s.replace(/%s/i,t)}var te={};function se(e,t){var s=e.toLowerCase();te[s]=te[s+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ne(e){var t,s,r={};for(s in e)a(e,s)&&(t=re(s))&&(r[t]=e[s]);return r}var ie={};function oe(e,t){ie[e]=t}function ae(e){var t,s=[];for(t in e)a(e,t)&&s.push({unit:t,priority:ie[t]});return s.sort(((e,t)=>e.priority-t.priority)),s}function ce(e){return e%4==0&&e%100!=0||e%400==0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ue(e){var t=+e,s=0;return 0!==t&&isFinite(t)&&(s=le(t)),s}function de(e,t){return function(s){return null!=s?(ge(this,e,s),r.updateOffset(this,t),this):pe(this,e)}}function pe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ge(e,t,s){e.isValid()&&!isNaN(s)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(s=ue(s),e._d["set"+(e._isUTC?"UTC":"")+t](s,e.month(),$e(s,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](s))}function he(e){return G(this[e=re(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var s,r=ae(e=ne(e)),n=r.length;for(s=0;se&&s?s:t}function Pe(e,t){return a(_e,e)?_e[e](t._strict,t._locale):new RegExp(Be(e))}function Be(e){return xe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,((e,t,s,r,n)=>t||s||r||n)))}function xe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}_e={};var Me={};function Ne(e,t){var s,r,n=t;for("string"==typeof e&&(e=[e]),u(t)&&(n=(e,s)=>{s[t]=ue(e)}),r=e.length,s=0;s{r._w=r._w||{},t(e,r._w,r,n)}))}function Ue(e,t,s){null!=t&&a(Me,e)&&Me[e](t,s._a,s,e)}var Ye,je=0,Qe=1,We=2,ze=3,Ze=4,Je=5,Ve=6,Xe=7,Ke=8;function qe(e,t){return(e%t+t)%t}function $e(e,t){if(isNaN(e)||isNaN(t))return NaN;var s=qe(t,12);return e+=(t-s)/12,1===s?ce(e)?29:28:31-s%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tt.monthsShortRegex(e))),Fe("MMMM",((e,t)=>t.monthsRegex(e))),Ne(["M","MM"],((e,t)=>{t[Qe]=ue(e)-1})),Ne(["MMM","MMMM"],((e,t,s,r)=>{var n=s._locale.monthsParse(e,r,s._strict);null!=n?t[Qe]=n:_(s).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),st=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Re,nt=Re;function it(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||st).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone}function ot(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[st.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function at(e,t,s){var r,n,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return s?"MMM"===t?-1!==(n=Ye.call(this._shortMonthsParse,o))?n:null:-1!==(n=Ye.call(this._longMonthsParse,o))?n:null:"MMM"===t?-1!==(n=Ye.call(this._shortMonthsParse,o))||-1!==(n=Ye.call(this._longMonthsParse,o))?n:null:-1!==(n=Ye.call(this._longMonthsParse,o))||-1!==(n=Ye.call(this._shortMonthsParse,o))?n:null}function ct(e,t,s){var r,n,i;if(this._monthsParseExact)return at.call(this,e,t,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(n=h([2e3,r]),s&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),s||this._monthsParse[r]||(i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),s&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(s&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!s&&this._monthsParse[r].test(e))return r}}function lt(e,t){var s;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ue(t);else if(!u(t=e.localeData().monthsParse(t)))return e;return s=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,s),e}function ut(e){return null!=e?(lt(this,e),r.updateOffset(this,!0),this):pe(this,"Month")}function dt(){return $e(this.year(),this.month())}function pt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ht.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||ht.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=nt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ht(){function e(e,t){return t.length-e.length}var t,s,r=[],n=[],i=[];for(t=0;t<12;t++)s=h([2e3,t]),r.push(this.monthsShort(s,"")),n.push(this.months(s,"")),i.push(this.months(s,"")),i.push(this.monthsShort(s,""));for(r.sort(e),n.sort(e),i.sort(e),t=0;t<12;t++)r[t]=xe(r[t]),n[t]=xe(n[t]);for(t=0;t<24;t++)i[t]=xe(i[t]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return ce(e)?366:365}H("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),H(0,["YY",2],0,(function(){return this.year()%100})),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),se("year","y"),oe("year",1),Fe("Y",Ge),Fe("YY",ye,be),Fe("YYYY",Se,we),Fe("YYYYY",De,Ee),Fe("YYYYYY",De,Ee),Ne(["YYYYY","YYYYYY"],je),Ne("YYYY",((e,t)=>{t[je]=2===e.length?r.parseTwoDigitYear(e):ue(e)})),Ne("YY",((e,t)=>{t[je]=r.parseTwoDigitYear(e)})),Ne("Y",((e,t)=>{t[je]=parseInt(e,10)})),r.parseTwoDigitYear=e=>ue(e)+(ue(e)>68?1900:2e3);var _t=de("FullYear",!0);function ft(){return ce(this.year())}function bt(e,t,s,r,n,i,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,s,r,n,i,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,s,r,n,i,o),a}function At(e){var t,s;return e<100&&e>=0?((s=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,s)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,s){var r=7+t-s;return-(7+At(e,0,r).getUTCDay()-t)%7+r-1}function Et(e,t,s,r,n){var i,o,a=1+7*(t-1)+(7+s-r)%7+wt(e,r,n);return a<=0?o=mt(i=e-1)+a:a>mt(e)?(i=e+1,o=a-mt(e)):(i=e,o=a),{year:i,dayOfYear:o}}function yt(e,t,s){var r,n,i=wt(e.year(),t,s),o=Math.floor((e.dayOfYear()-i-1)/7)+1;return o<1?r=o+vt(n=e.year()-1,t,s):o>vt(e.year(),t,s)?(r=o-vt(e.year(),t,s),n=e.year()+1):(n=e.year(),r=o),{week:r,year:n}}function vt(e,t,s){var r=wt(e,t,s),n=wt(e+1,t,s);return(mt(e)-r+n)/7}function Tt(e){return yt(e,this._week.dow,this._week.doy).week}H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),se("week","w"),se("isoWeek","W"),oe("week",5),oe("isoWeek",5),Fe("w",ye),Fe("ww",ye,be),Fe("W",ye),Fe("WW",ye,be),He(["w","ww","W","WW"],((e,t,s,r)=>{t[r.substr(0,1)]=ue(e)}));var St={dow:0,doy:6};function Dt(){return this._week.dow}function Ct(){return this._week.doy}function Gt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ot(e){var t=yt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function It(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Lt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Rt(e,t){return e.slice(t,7).concat(e.slice(0,t))}H("d",0,"do","day"),H("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),H("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),H("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),se("day","d"),se("weekday","e"),se("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Fe("d",ye),Fe("e",ye),Fe("E",ye),Fe("dd",((e,t)=>t.weekdaysMinRegex(e))),Fe("ddd",((e,t)=>t.weekdaysShortRegex(e))),Fe("dddd",((e,t)=>t.weekdaysRegex(e))),He(["dd","ddd","dddd"],((e,t,s,r)=>{var n=s._locale.weekdaysParse(e,r,s._strict);null!=n?t.d=n:_(s).invalidWeekday=e})),He(["d","e","E"],((e,t,s,r)=>{t[r]=ue(e)}));var Ft="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),xt=Re,Mt=Re,Nt=Re;function Ht(e,t){var s=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Rt(s,this._week.dow):e?s[e.day()]:s}function Ut(e){return!0===e?Rt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Yt(e){return!0===e?Rt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function jt(e,t,s){var r,n,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return s?"dddd"===t?-1!==(n=Ye.call(this._weekdaysParse,o))?n:null:"ddd"===t?-1!==(n=Ye.call(this._shortWeekdaysParse,o))?n:null:-1!==(n=Ye.call(this._minWeekdaysParse,o))?n:null:"dddd"===t?-1!==(n=Ye.call(this._weekdaysParse,o))||-1!==(n=Ye.call(this._shortWeekdaysParse,o))||-1!==(n=Ye.call(this._minWeekdaysParse,o))?n:null:"ddd"===t?-1!==(n=Ye.call(this._shortWeekdaysParse,o))||-1!==(n=Ye.call(this._weekdaysParse,o))||-1!==(n=Ye.call(this._minWeekdaysParse,o))?n:null:-1!==(n=Ye.call(this._minWeekdaysParse,o))||-1!==(n=Ye.call(this._weekdaysParse,o))||-1!==(n=Ye.call(this._shortWeekdaysParse,o))?n:null}function Qt(e,t,s){var r,n,i;if(this._weekdaysParseExact)return jt.call(this,e,t,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(n=h([2e3,1]).day(r),s&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),s&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(s&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(s&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!s&&this._weekdaysParse[r].test(e))return r}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=It(e,this.localeData()),this.add(e-t,"d")):t}function zt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Zt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Lt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Jt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=xt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Vt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,s,r,n,i,o=[],a=[],c=[],l=[];for(t=0;t<7;t++)s=h([2e3,1]).day(t),r=xe(this.weekdaysMin(s,"")),n=xe(this.weekdaysShort(s,"")),i=xe(this.weekdays(s,"")),o.push(r),a.push(n),c.push(i),l.push(r),l.push(n),l.push(i);o.sort(e),a.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function qt(){return this.hours()%12||12}function $t(){return this.hours()||24}function es(e,t){H(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function ts(e,t){return t._meridiemParse}function ss(e){return"p"===(e+"").toLowerCase().charAt(0)}H("H",["HH",2],0,"hour"),H("h",["hh",2],0,qt),H("k",["kk",2],0,$t),H("hmm",0,0,(function(){return""+qt.apply(this)+P(this.minutes(),2)})),H("hmmss",0,0,(function(){return""+qt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),H("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),H("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),es("a",!0),es("A",!1),se("hour","h"),oe("hour",13),Fe("a",ts),Fe("A",ts),Fe("H",ye),Fe("h",ye),Fe("k",ye),Fe("HH",ye,be),Fe("hh",ye,be),Fe("kk",ye,be),Fe("hmm",ve),Fe("hmmss",Te),Fe("Hmm",ve),Fe("Hmmss",Te),Ne(["H","HH"],ze),Ne(["k","kk"],((e,t,s)=>{var r=ue(e);t[ze]=24===r?0:r})),Ne(["a","A"],((e,t,s)=>{s._isPm=s._locale.isPM(e),s._meridiem=e})),Ne(["h","hh"],((e,t,s)=>{t[ze]=ue(e),_(s).bigHour=!0})),Ne("hmm",((e,t,s)=>{var r=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r)),_(s).bigHour=!0})),Ne("hmmss",((e,t,s)=>{var r=e.length-4,n=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Je]=ue(e.substr(n)),_(s).bigHour=!0})),Ne("Hmm",((e,t,s)=>{var r=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r))})),Ne("Hmmss",((e,t,s)=>{var r=e.length-4,n=e.length-2;t[ze]=ue(e.substr(0,r)),t[Ze]=ue(e.substr(r,2)),t[Je]=ue(e.substr(n))}));var rs=/[ap]\.?m?\.?/i,ns=de("Hours",!0);function is(e,t,s){return e>11?s?"pm":"PM":s?"am":"AM"}var os,as={calendar:R,longDateFormat:W,invalidDate:Z,ordinal:V,dayOfMonthOrdinalParse:X,relativeTime:q,months:et,monthsShort:tt,week:St,weekdays:Ft,weekdaysMin:Bt,weekdaysShort:Pt,meridiemParse:rs},cs={},ls={};function us(e,t){var s,r=Math.min(e.length,t.length);for(s=0;s0;){if(r=hs(n.slice(0,t).join("-")))return r;if(s&&s.length>=t&&us(n,s)>=t-1)break;t--}i++}return os}function gs(e){return null!=e.match("^[^/\\\\]*$")}function hs(t){var s=null;if(void 0===cs[t]&&e&&e.exports&&gs(t))try{s=os._abbr,kt("./locale/"+t),ms(s)}catch(e){cs[t]=null}return cs[t]}function ms(e,t){var s;return e&&((s=l(t)?bs(e):_s(e,t))?os=s:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),os._abbr}function _s(e,t){if(null!==t){var s,r=as;if(t.abbr=e,null!=cs[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cs[e]._config;else if(null!=t.parentLocale)if(null!=cs[t.parentLocale])r=cs[t.parentLocale]._config;else{if(null==(s=hs(t.parentLocale)))return ls[t.parentLocale]||(ls[t.parentLocale]=[]),ls[t.parentLocale].push({name:e,config:t}),null;r=s._config}return cs[e]=new L(I(r,t)),ls[e]&&ls[e].forEach((e=>{_s(e.name,e.config)})),ms(e),cs[e]}return delete cs[e],null}function fs(e,t){if(null!=t){var s,r,n=as;null!=cs[e]&&null!=cs[e].parentLocale?cs[e].set(I(cs[e]._config,t)):(null!=(r=hs(e))&&(n=r._config),t=I(n,t),null==r&&(t.abbr=e),(s=new L(t)).parentLocale=cs[e],cs[e]=s),ms(e)}else null!=cs[e]&&(null!=cs[e].parentLocale?(cs[e]=cs[e].parentLocale,e===ms()&&ms(e)):null!=cs[e]&&delete cs[e]);return cs[e]}function bs(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return os;if(!i(e)){if(t=hs(e))return t;e=[e]}return ps(e)}function As(){return S(cs)}function ws(e){var t,s=e._a;return s&&-2===_(e).overflow&&(t=s[Qe]<0||s[Qe]>11?Qe:s[We]<1||s[We]>$e(s[je],s[Qe])?We:s[ze]<0||s[ze]>24||24===s[ze]&&(0!==s[Ze]||0!==s[Je]||0!==s[Ve])?ze:s[Ze]<0||s[Ze]>59?Ze:s[Je]<0||s[Je]>59?Je:s[Ve]<0||s[Ve]>999?Ve:-1,_(e)._overflowDayOfYear&&(tWe)&&(t=We),_(e)._overflowWeeks&&-1===t&&(t=Xe),_(e)._overflowWeekday&&-1===t&&(t=Ke),_(e).overflow=t),e}var Es=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ys=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vs=/Z|[+-]\d\d(?::?\d\d)?/,Ts=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ks=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ss=/^\/?Date\((-?\d+)/i,Ds=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Cs={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Gs(e){var t,s,r,n,i,o,a=e._i,c=Es.exec(a)||ys.exec(a),l=Ts.length,u=ks.length;if(c){for(_(e).iso=!0,t=0,s=l;tmt(i)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),s=At(i,0,e._dayOfYear),e._a[Qe]=s.getUTCMonth(),e._a[We]=s.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ze]&&0===e._a[Ze]&&0===e._a[Je]&&0===e._a[Ve]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?At:bt).apply(null,o),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(_(e).weekdayMismatch=!0)}}function Hs(e){var t,s,r,n,i,o,a,c,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,o=4,s=xs(t.GG,e._a[je],yt(Vs(),1,4).year),r=xs(t.W,1),((n=xs(t.E,1))<1||n>7)&&(c=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,l=yt(Vs(),i,o),s=xs(t.gg,e._a[je],l.year),r=xs(t.w,l.week),null!=t.d?((n=t.d)<0||n>6)&&(c=!0):null!=t.e?(n=t.e+i,(t.e<0||t.e>6)&&(c=!0)):n=i),r<1||r>vt(s,i,o)?_(e)._overflowWeeks=!0:null!=c?_(e)._overflowWeekday=!0:(a=Et(s,r,n,i,o),e._a[je]=a.year,e._dayOfYear=a.dayOfYear)}function Us(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],_(e).empty=!0;var t,s,n,i,o,a,c,l=""+e._i,u=l.length,d=0;for(c=(n=Q(e._f,e._locale).match(B)||[]).length,t=0;t0&&_(e).unusedInput.push(o),l=l.slice(l.indexOf(s)+s.length),d+=s.length),N[i]?(s?_(e).empty=!1:_(e).unusedTokens.push(i),Ue(i,s,e)):e._strict&&!s&&_(e).unusedTokens.push(i);_(e).charsLeftOver=u-d,l.length>0&&_(e).unusedInput.push(l),e._a[ze]<=12&&!0===_(e).bigHour&&e._a[ze]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[ze]=Ys(e._locale,e._a[ze],e._meridiem),null!==(a=_(e).era)&&(e._a[je]=e._locale.erasConvertYear(a,e._a[je])),Ns(e),ws(e)}else Ps(e);else Gs(e)}function Ys(e,t,s){var r;return null==s?t:null!=e.meridiemHour?e.meridiemHour(t,s):null!=e.isPM?((r=e.isPM(s))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function js(e){var t,s,r,n,i,o,a=!1,c=e._f.length;if(0===c)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(n=0;ne&&parseInt(e,10))),Ns(e)}}function Ws(e){var t=new y(ws(zs(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function zs(e){var t=e._i,s=e._f;return e._locale=e._locale||bs(e._l),null===t||void 0===s&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new y(ws(t)):(d(t)?e._d=t:i(s)?js(e):s?Us(e):Zs(e),f(e)||(e._d=null),e))}function Zs(e){var t=e._i;l(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Bs(e):i(t)?(e._a=p(t.slice(0),(e=>parseInt(e,10))),Ns(e)):o(t)?Qs(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Js(e,t,s,r,n){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==s&&!1!==s||(r=s,s=void 0),(o(e)&&c(e)||i(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=n,a._l=s,a._i=e,a._f=t,a._strict=r,Ws(a)}function Vs(e,t,s,r){return Js(e,t,s,r,!1)}r.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(e=>{e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=()=>{},r.RFC_2822=()=>{};var Xs=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Vs.apply(null,arguments);return this.isValid()&&e.isValid()?ethis?this:e:b()}));function qs(e,t){var s,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Vs();for(s=t[0],r=1;rDate.now?Date.now():+new Date,sr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,s,r=!1,n=sr.length;for(t in e)if(a(e,t)&&(-1===Ye.call(sr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(s=0;s{s._useUTC=!0,s._tzm=pr(Ie,e)}));var dr=/([\+\-]|\d\d)/gi;function pr(e,t){var s,r,n=(t||"").match(e);return null===n?null:0===(r=60*(s=((n[n.length-1]||[])+"").match(dr)||["-",0,0])[1]+ue(s[2]))?0:"+"===s[0]?r:-r}function gr(e,t){var s,n;return t._isUTC?(s=t.clone(),n=(v(e)||d(e)?e.valueOf():Vs(e).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+n),r.updateOffset(s,!1),s):Vs(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,s){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=pr(Ie,e)))return this}else Math.abs(e)<16&&!s&&(e*=60);return!this._isUTC&&t&&(n=hr(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Rr(this,Cr(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:hr(this)}function _r(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function fr(e){return this.utcOffset(0,e)}function br(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function Ar(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=pr(Oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?Vs(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Er(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function yr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return E(t,this),(t=zs(t))._a?(e=t._isUTC?h(t._a):Vs(t._a),this._isDSTShifted=this.isValid()&&lr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function vr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=()=>{};var Sr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Dr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Cr(e,t){var s,r,n,i=e,o=null;return ar(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(o=Sr.exec(e))?(s="-"===o[1]?-1:1,i={y:0,d:ue(o[We])*s,h:ue(o[ze])*s,m:ue(o[Ze])*s,s:ue(o[Je])*s,ms:ue(cr(1e3*o[Ve]))*s}):(o=Dr.exec(e))?(s="-"===o[1]?-1:1,i={y:Gr(o[2],s),M:Gr(o[3],s),w:Gr(o[4],s),d:Gr(o[5],s),h:Gr(o[6],s),m:Gr(o[7],s),s:Gr(o[8],s)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(n=Ir(Vs(i.from),Vs(i.to)),(i={}).ms=n.milliseconds,i.M=n.months),r=new or(i),ar(e)&&a(e,"_locale")&&(r._locale=e._locale),ar(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Gr(e,t){var s=e&&parseFloat(e.replace(",","."));return(isNaN(s)?0:s)*t}function Or(e,t){var s={};return s.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(s.months,"M").isAfter(t)&&--s.months,s.milliseconds=+t-+e.clone().add(s.months,"M"),s}function Ir(e,t){var s;return e.isValid()&&t.isValid()?(t=gr(t,e),e.isBefore(t)?s=Or(e,t):((s=Or(t,e)).milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function Lr(e,t){return function(s,r){var n;return null===r||isNaN(+r)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=s,s=r,r=n),Rr(this,Cr(s,r),e),this}}function Rr(e,t,s,n){var i=t._milliseconds,o=cr(t._days),a=cr(t._months);e.isValid()&&(n=n??!0,a&<(e,pe(e,"Month")+a*s),o&&ge(e,"Date",pe(e,"Date")+o*s),i&&e._d.setTime(e._d.valueOf()+i*s),n&&r.updateOffset(e,o||a))}Cr.fn=or.prototype,Cr.invalid=ir;var Fr=Lr(1,"add"),Pr=Lr(-1,"subtract");function Br(e){return"string"==typeof e||e instanceof String}function xr(e){return v(e)||d(e)||Br(e)||u(e)||Nr(e)||Mr(e)||null==e}function Mr(e){var t,s,r=o(e)&&!c(e),n=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=i.length;for(t=0;t!u(t)&&Br(e))).length),t&&s}function Hr(e){var t,s,r=o(e)&&!c(e),n=!1,i=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;ts.valueOf():s.valueOf()9999?j(s,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):G(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",j(s,"Z")):j(s,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function en(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,s,r,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",r=i+'[")]',this.format(e+t+s+r)}function tn(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=j(this,e);return this.localeData().postformat(t)}function sn(e,t){return this.isValid()&&(v(e)&&e.isValid()||Vs(e).isValid())?Cr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rn(e){return this.from(Vs(),e)}function nn(e,t){return this.isValid()&&(v(e)&&e.isValid()||Vs(e).isValid())?Cr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function on(e){return this.to(Vs(),e)}function an(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bs(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ln(){return this._locale}var un=1e3,dn=60*un,pn=60*dn,gn=3506328*pn;function hn(e,t){return(e%t+t)%t}function mn(e,t,s){return e<100&&e>=0?new Date(e+400,t,s)-gn:new Date(e,t,s).valueOf()}function _n(e,t,s){return e<100&&e>=0?Date.UTC(e+400,t,s)-gn:Date.UTC(e,t,s)}function fn(e){var t,s;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?_n:mn,e){case"year":t=s(this.year(),0,1);break;case"quarter":t=s(this.year(),this.month()-this.month()%3,1);break;case"month":t=s(this.year(),this.month(),1);break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=s(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=hn(t+(this._isUTC?0:this.utcOffset()*dn),pn);break;case"minute":t=this._d.valueOf(),t-=hn(t,dn);break;case"second":t=this._d.valueOf(),t-=hn(t,un)}return this._d.setTime(t),r.updateOffset(this,!0),this}function bn(e){var t,s;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(s=this._isUTC?_n:mn,e){case"year":t=s(this.year()+1,0,1)-1;break;case"quarter":t=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=s(this.year(),this.month()+1,1)-1;break;case"week":t=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=s(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=pn-hn(t+(this._isUTC?0:this.utcOffset()*dn),pn)-1;break;case"minute":t=this._d.valueOf(),t+=dn-hn(t,dn)-1;break;case"second":t=this._d.valueOf(),t+=un-hn(t,un)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function An(){return this._d.valueOf()-6e4*(this._offset||0)}function wn(){return Math.floor(this.valueOf()/1e3)}function En(){return new Date(this.valueOf())}function yn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function vn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Tn(){return this.isValid()?this.toISOString():null}function kn(){return f(this)}function Sn(){return g({},_(this))}function Dn(){return _(this).overflow}function Cn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Gn(e,t){var s,n,i,o=this._eras||bs("en")._eras;for(s=0,n=o.length;s=0)return c[r]}function In(e,t){var s=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*s}function Ln(){var e,t,s,r=this.localeData().eras();for(e=0,t=r.length;e(i=vt(e,r,n))&&(t=i),qn.call(this,e,t,s,r,n))}function qn(e,t,s,r,n){var i=Et(e,t,s,r,n),o=At(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function $n(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}H("N",0,0,"eraAbbr"),H("NN",0,0,"eraAbbr"),H("NNN",0,0,"eraAbbr"),H("NNNN",0,0,"eraName"),H("NNNNN",0,0,"eraNarrow"),H("y",["y",1],"yo","eraYear"),H("y",["yy",2],0,"eraYear"),H("y",["yyy",3],0,"eraYear"),H("y",["yyyy",4],0,"eraYear"),Fe("N",Nn),Fe("NN",Nn),Fe("NNN",Nn),Fe("NNNN",Hn),Fe("NNNNN",Un),Ne(["N","NN","NNN","NNNN","NNNNN"],((e,t,s,r)=>{var n=s._locale.erasParse(e,r,s._strict);n?_(s).era=n:_(s).invalidEra=e})),Fe("y",Ce),Fe("yy",Ce),Fe("yyy",Ce),Fe("yyyy",Ce),Fe("yo",Yn),Ne(["y","yy","yyy","yyyy"],je),Ne(["yo"],((e,t,s,r)=>{var n;s._locale._eraYearOrdinalRegex&&(n=e.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?t[je]=s._locale.eraYearOrdinalParse(e,n):t[je]=parseInt(e,10)})),H(0,["gg",2],0,(function(){return this.weekYear()%100})),H(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Qn("gggg","weekYear"),Qn("ggggg","weekYear"),Qn("GGGG","isoWeekYear"),Qn("GGGGG","isoWeekYear"),se("weekYear","gg"),se("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Fe("G",Ge),Fe("g",Ge),Fe("GG",ye,be),Fe("gg",ye,be),Fe("GGGG",Se,we),Fe("gggg",Se,we),Fe("GGGGG",De,Ee),Fe("ggggg",De,Ee),He(["gggg","ggggg","GGGG","GGGGG"],((e,t,s,r)=>{t[r.substr(0,2)]=ue(e)})),He(["gg","GG"],((e,t,s,n)=>{t[n]=r.parseTwoDigitYear(e)})),H("Q",0,"Qo","quarter"),se("quarter","Q"),oe("quarter",7),Fe("Q",fe),Ne("Q",((e,t)=>{t[Qe]=3*(ue(e)-1)})),H("D",["DD",2],"Do","date"),se("date","D"),oe("date",9),Fe("D",ye),Fe("DD",ye,be),Fe("Do",((e,t)=>e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient)),Ne(["D","DD"],We),Ne("Do",((e,t)=>{t[We]=ue(e.match(ye)[0])}));var ei=de("Date",!0);function ti(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}H("DDD",["DDDD",3],"DDDo","dayOfYear"),se("dayOfYear","DDD"),oe("dayOfYear",4),Fe("DDD",ke),Fe("DDDD",Ae),Ne(["DDD","DDDD"],((e,t,s)=>{s._dayOfYear=ue(e)})),H("m",["mm",2],0,"minute"),se("minute","m"),oe("minute",14),Fe("m",ye),Fe("mm",ye,be),Ne(["m","mm"],Ze);var si=de("Minutes",!1);H("s",["ss",2],0,"second"),se("second","s"),oe("second",15),Fe("s",ye),Fe("ss",ye,be),Ne(["s","ss"],Je);var ri,ni,ii=de("Seconds",!1);for(H("S",0,0,(function(){return~~(this.millisecond()/100)})),H(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),H(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),H(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),H(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),H(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),H(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),se("millisecond","ms"),oe("millisecond",16),Fe("S",ke,fe),Fe("SS",ke,be),Fe("SSS",ke,Ae),ri="SSSS";ri.length<=9;ri+="S")Fe(ri,Ce);function oi(e,t){t[Ve]=ue(1e3*("0."+e))}for(ri="S";ri.length<=9;ri+="S")Ne(ri,oi);function ai(){return this._isUTC?"UTC":""}function ci(){return this._isUTC?"Coordinated Universal Time":""}ni=de("Milliseconds",!1),H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var li=y.prototype;function ui(e){return Vs(1e3*e)}function di(){return Vs.apply(null,arguments).parseZone()}function pi(e){return e}li.add=Fr,li.calendar=Yr,li.clone=jr,li.diff=Xr,li.endOf=bn,li.format=tn,li.from=sn,li.fromNow=rn,li.to=nn,li.toNow=on,li.get=he,li.invalidAt=Dn,li.isAfter=Qr,li.isBefore=Wr,li.isBetween=zr,li.isSame=Zr,li.isSameOrAfter=Jr,li.isSameOrBefore=Vr,li.isValid=kn,li.lang=cn,li.locale=an,li.localeData=ln,li.max=Ks,li.min=Xs,li.parsingFlags=Sn,li.set=me,li.startOf=fn,li.subtract=Pr,li.toArray=yn,li.toObject=vn,li.toDate=En,li.toISOString=$r,li.inspect=en,"undefined"!=typeof Symbol&&null!=Symbol.for&&(li[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),li.toJSON=Tn,li.toString=qr,li.unix=wn,li.valueOf=An,li.creationData=Cn,li.eraName=Ln,li.eraNarrow=Rn,li.eraAbbr=Fn,li.eraYear=Pn,li.year=_t,li.isLeapYear=ft,li.weekYear=Wn,li.isoWeekYear=zn,li.quarter=li.quarters=$n,li.month=ut,li.daysInMonth=dt,li.week=li.weeks=Gt,li.isoWeek=li.isoWeeks=Ot,li.weeksInYear=Vn,li.weeksInWeekYear=Xn,li.isoWeeksInYear=Zn,li.isoWeeksInISOWeekYear=Jn,li.date=ei,li.day=li.days=Wt,li.weekday=zt,li.isoWeekday=Zt,li.dayOfYear=ti,li.hour=li.hours=ns,li.minute=li.minutes=si,li.second=li.seconds=ii,li.millisecond=li.milliseconds=ni,li.utcOffset=mr,li.utc=fr,li.local=br,li.parseZone=Ar,li.hasAlignedHourOffset=wr,li.isDST=Er,li.isLocal=vr,li.isUtcOffset=Tr,li.isUtc=kr,li.isUTC=kr,li.zoneAbbr=ai,li.zoneName=ci,li.dates=k("dates accessor is deprecated. Use date instead.",ei),li.months=k("months accessor is deprecated. Use month instead",ut),li.years=k("years accessor is deprecated. Use year instead",_t),li.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_r),li.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",yr);var gi=L.prototype;function hi(e,t,s,r){var n=bs(),i=h().set(r,t);return n[s](i,e)}function mi(e,t,s){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return hi(e,t,s,"month");var r,n=[];for(r=0;r<12;r++)n[r]=hi(e,r,s,"month");return n}function _i(e,t,s,r){"boolean"==typeof e?(u(t)&&(s=t,t=void 0),t=t||""):(s=t=e,e=!1,u(t)&&(s=t,t=void 0),t=t||"");var n,i=bs(),o=e?i._week.dow:0,a=[];if(null!=s)return hi(t,(s+o)%7,r,"day");for(n=0;n<7;n++)a[n]=hi(t,(n+o)%7,r,"day");return a}function fi(e,t){return mi(e,t,"months")}function bi(e,t){return mi(e,t,"monthsShort")}function Ai(e,t,s){return _i(e,t,s,"weekdays")}function wi(e,t,s){return _i(e,t,s,"weekdaysShort")}function Ei(e,t,s){return _i(e,t,s,"weekdaysMin")}gi.calendar=F,gi.longDateFormat=z,gi.invalidDate=J,gi.ordinal=K,gi.preparse=pi,gi.postformat=pi,gi.relativeTime=$,gi.pastFuture=ee,gi.set=O,gi.eras=Gn,gi.erasParse=On,gi.erasConvertYear=In,gi.erasAbbrRegex=xn,gi.erasNameRegex=Bn,gi.erasNarrowRegex=Mn,gi.months=it,gi.monthsShort=ot,gi.monthsParse=ct,gi.monthsRegex=gt,gi.monthsShortRegex=pt,gi.week=Tt,gi.firstDayOfYear=Ct,gi.firstDayOfWeek=Dt,gi.weekdays=Ht,gi.weekdaysMin=Yt,gi.weekdaysShort=Ut,gi.weekdaysParse=Qt,gi.weekdaysRegex=Jt,gi.weekdaysShortRegex=Vt,gi.weekdaysMinRegex=Xt,gi.isPM=ss,gi.meridiem=is,ms("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:e=>{var t=e%10;return e+(1===ue(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",ms),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",bs);var yi=Math.abs;function vi(){var e=this._data;return this._milliseconds=yi(this._milliseconds),this._days=yi(this._days),this._months=yi(this._months),e.milliseconds=yi(e.milliseconds),e.seconds=yi(e.seconds),e.minutes=yi(e.minutes),e.hours=yi(e.hours),e.months=yi(e.months),e.years=yi(e.years),this}function Ti(e,t,s,r){var n=Cr(t,s);return e._milliseconds+=r*n._milliseconds,e._days+=r*n._days,e._months+=r*n._months,e._bubble()}function ki(e,t){return Ti(this,e,t,1)}function Si(e,t){return Ti(this,e,t,-1)}function Di(e){return e<0?Math.floor(e):Math.ceil(e)}function Ci(){var e,t,s,r,n,i=this._milliseconds,o=this._days,a=this._months,c=this._data;return i>=0&&o>=0&&a>=0||i<=0&&o<=0&&a<=0||(i+=864e5*Di(Oi(a)+o),o=0,a=0),c.milliseconds=i%1e3,e=le(i/1e3),c.seconds=e%60,t=le(e/60),c.minutes=t%60,s=le(t/60),c.hours=s%24,o+=le(s/24),a+=n=le(Gi(o)),o-=Di(Oi(n)),r=le(a/12),a%=12,c.days=o,c.months=a,c.years=r,this}function Gi(e){return 4800*e/146097}function Oi(e){return 146097*e/4800}function Ii(e){if(!this.isValid())return NaN;var t,s,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,s=this._months+Gi(t),e){case"month":return s;case"quarter":return s/3;case"year":return s/12}else switch(t=this._days+Math.round(Oi(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Li(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ue(this._months/12):NaN}function Ri(e){return function(){return this.as(e)}}var Fi=Ri("ms"),Pi=Ri("s"),Bi=Ri("m"),xi=Ri("h"),Mi=Ri("d"),Ni=Ri("w"),Hi=Ri("M"),Ui=Ri("Q"),Yi=Ri("y");function ji(){return Cr(this)}function Qi(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Wi(e){return function(){return this.isValid()?this._data[e]:NaN}}var zi=Wi("milliseconds"),Zi=Wi("seconds"),Ji=Wi("minutes"),Vi=Wi("hours"),Xi=Wi("days"),Ki=Wi("months"),qi=Wi("years");function $i(){return le(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function so(e,t,s,r,n){return n.relativeTime(t||1,!!s,e,r)}function ro(e,t,s,r){var n=Cr(e).abs(),i=eo(n.as("s")),o=eo(n.as("m")),a=eo(n.as("h")),c=eo(n.as("d")),l=eo(n.as("M")),u=eo(n.as("w")),d=eo(n.as("y")),p=i<=s.ss&&["s",i]||i0,p[4]=r,so.apply(null,p)}function no(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function io(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var s,r,n=!1,i=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(i=Object.assign({},to,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),r=ro(this,!n,i,s=this.localeData()),n&&(r=s.pastFuture(+this,r)),s.postformat(r)}var ao=Math.abs;function co(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,s,r,n,i,o,a,c=ao(this._milliseconds)/1e3,l=ao(this._days),u=ao(this._months),d=this.asSeconds();return d?(e=le(c/60),t=le(e/60),c%=60,e%=60,s=le(u/12),u%=12,r=c?c.toFixed(3).replace(/\.?0+$/,""):"",n=d<0?"-":"",i=co(this._months)!==co(d)?"-":"",o=co(this._days)!==co(d)?"-":"",a=co(this._milliseconds)!==co(d)?"-":"",n+"P"+(s?i+s+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||c?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(c?a+r+"S":"")):"P0D"}var uo=or.prototype;return uo.isValid=nr,uo.abs=vi,uo.add=ki,uo.subtract=Si,uo.as=Ii,uo.asMilliseconds=Fi,uo.asSeconds=Pi,uo.asMinutes=Bi,uo.asHours=xi,uo.asDays=Mi,uo.asWeeks=Ni,uo.asMonths=Hi,uo.asQuarters=Ui,uo.asYears=Yi,uo.valueOf=Li,uo._bubble=Ci,uo.clone=ji,uo.get=Qi,uo.milliseconds=zi,uo.seconds=Zi,uo.minutes=Ji,uo.hours=Vi,uo.days=Xi,uo.weeks=$i,uo.months=Ki,uo.years=qi,uo.humanize=oo,uo.toISOString=lo,uo.toString=lo,uo.toJSON=lo,uo.locale=an,uo.localeData=ln,uo.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),uo.lang=cn,H("X",0,0,"unix"),H("x",0,0,"valueOf"),Fe("x",Ge),Fe("X",Le),Ne("X",((e,t,s)=>{s._d=new Date(1e3*parseFloat(e))})),Ne("x",((e,t,s)=>{s._d=new Date(ue(e))})),r.version="2.29.4",n(Vs),r.fn=li,r.min=$s,r.max=er,r.now=tr,r.utc=h,r.unix=ui,r.months=fi,r.isDate=d,r.locale=ms,r.invalid=b,r.duration=Cr,r.isMoment=v,r.weekdays=Ai,r.parseZone=di,r.localeData=bs,r.isDuration=ar,r.monthsShort=bi,r.weekdaysMin=Ei,r.defineLocale=_s,r.updateLocale=fs,r.locales=As,r.weekdaysShort=wi,r.normalizeUnits=re,r.relativeTimeRounding=no,r.relativeTimeThreshold=io,r.calendarFormat=Ur,r.prototype=li,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(ho);var mo,_o=Oe(ho.exports);(e=>{e.success="succeeded",e.fail="failed"})(mo||(mo={}));const fo={operational:a("gist_status_connected"),degraded_performance:a("gist_status_degraded_performance"),partial_outage:a("gist_status_partial_outage"),major_outage:a("gist_status_major_outage")},bo="gistr_github_pat",Ao=e=>{localStorage.setItem(bo,e)},wo=()=>localStorage.getItem(bo),Eo=e=>{const{attributes:t}=Xr(e);return t.gists||[]},yo=(e,t)=>{const{body:s,attributes:r}=Xr(t),n=r.gists||[],i=n.find((t=>t.id===e.id));if(i){const t=[...n.filter((e=>e!==i)),e],o=Object.assign(Object.assign({},r),{gists:t});return Xn.stringify(s,o)}const o=[...n,e],a=Object.assign(Object.assign({},r),{gists:o});return Xn.stringify(s,a)},vo=e=>r(void 0,void 0,void 0,(function*(){const{token:t,gistArray:s,content:r}=e;try{const e=new go({auth:t}),n=yield e.rest.gists.update({gist_id:s.id,files:{[s.file]:{content:r}}});return{status:mo.success,gistArray:Object.assign(Object.assign({},s),{updated_at:n.data.updated_at,user:n.data.owner.login,revisions:n.data.history.length}),errorMessage:null}}catch(e){return{status:mo.fail,gistArray:s,errorMessage:e.message}}})),To=e=>r(void 0,void 0,void 0,(function*(){try{const{file:t,content:s,is_public:r,token:n}=e,i=new go({auth:n}),o=yield i.rest.gists.create({description:t,public:r,files:{[t]:{content:s}}});return{status:mo.success,gistArray:{file:t,is_public:r,id:o.data.id,url:o.data.html_url,user:o.data.owner.login,revisions:o.data.history.length,created_at:o.data.created_at,updated_at:o.data.updated_at},errorMessage:null}}catch(e){return{status:mo.fail,gistArray:null,errorMessage:e.message}}}));class ko extends e.SuggestModal{constructor(e,t,s,r,n){super(e),this.settings=t,this.gists=s,this.bAllowGistCreateNew=r,this.onSubmit=n}getSuggestions(){return this.bAllowGistCreateNew?this.gists.concat(null):this.gists}renderSuggestion(e,t){if(Object.is(e,null)){return void t.createEl("div",{text:"",cls:"gistr-suggest-create"}).createEl("div",{text:a("gist_btn_create_new")})}const s=e.is_public?a("lst_repotype_pub"):a("lst_repotype_pri");let r=_o(e.updated_at).format(this.settings.sy_save_list_datetime);const n=t.createEl("div",{text:"",cls:"gistr-suggest-container"});n.createEl("div",{text:"",cls:"gistr-suggest-icon"}).insertAdjacentHTML("afterbegin","");const i=n.createEl("div",{text:"",cls:"gistr-suggest-sub-container-l"});i.createEl("div",{text:e.file,cls:"gistr-suggest-sub-title"});n.createEl("div",{text:"",cls:"gistr-suggest-sub-container-r"}).createEl("div",{text:s,cls:"gistr-suggest-sub-scope"}),n.createEl("div",{text:"",cls:"gistr-suggest-clear"}),i.createEl("div",{text:"",cls:"gistr-suggest-clear"}),i.createEl("div",{text:`Created: ${r}`,cls:"gistr-suggest-sub-time"})}onChooseSuggestion(e){this.onSubmit(e).then((()=>this.close()))}}const So=t=>()=>r(void 0,void 0,void 0,(function*(){const{is_public:s,app:n,plugin:i}=t,o=wo(),c=a(s?"lst_repotype_pub":"lst_repotype_pri"),{sy_enable_autoupdate:l,sy_add_frontmatter:u,notitime:d}=yield ln(i);if(!o)return void new e.Notice(a("err_gist_token_missing"),1e3*d);if(!n.workspace.getActiveViewOfType(e.MarkdownView))return void new e.Notice(a("gist_upload_no_active_file"),1e3*d);const p=n.workspace.getActiveViewOfType(e.MarkdownView),g=p.file.name,h=p.editor,m=h.getValue(),_=i.settings.sy_save_list_showall&&Eo(m)||Eo(m).filter((e=>e.is_public===s)),f=u?m:Kr(m);if(_.length&&l)new ko(n,i.settings,_,!0,(t=>r(void 0,void 0,void 0,(function*(){let r=null;if(r=t?yield vo({gistArray:t,token:o,content:f}):yield To({file:g,content:f,token:o,is_public:s}),console.log(r),r.status===mo.fail){return r.errorMessage.toLowerCase().includes("not found")&&new e.Notice(a("gist_not_found"),1e3*d),void new e.Notice(a("gist_upload_fail_api",r.errorMessage),1e3*d)}navigator.clipboard.writeText(r.gistArray.url),new e.Notice(a("gist_copy_success_file",c),1e3*d);const n=yo(r.gistArray,m);console.log("GHGistGet -> Insert into editor"),h.setValue(n)})))).open();else{const t=yield To({file:g,content:f,token:o,is_public:s});console.log(t),t.status!==mo.success&&new e.Notice(a("gh_status_error_api",t.errorMessage)),navigator.clipboard.writeText(t.gistArray.url);const r=a(s?"lst_repotype_pub":"lst_repotype_pri");if(new e.Notice(a("gist_copy_success_file",r),1e3*d),l){const e=yo(t.gistArray,m);console.log("Create -> Insert into editor"),n.vault.modify(p.file,e),h.refresh()}}})),Do=(e,t)=>{var s,n;const i=document.createElement("webview");return i.setAttribute("partition","persist:"+e.profileKey),i.setAttribute("src",null!==(s=e.url)&&void 0!==s?s:tn),i.setAttribute("httpreferrer",null!==(n=e.url)&&void 0!==n?n:tn),i.setAttribute("crossorigin","anonymous"),i.setAttribute("disablewebsecurity","true"),i.setAttribute("allowpopups","true"),i.addClass("saturyn-webview"),e.userAgent&&""!==e.userAgent&&i.setAttribute("useragent",e.userAgent),i.addEventListener("dom-ready",(()=>r(void 0,void 0,void 0,(function*(){var s;e.zoom&&i.setZoomFactor(e.zoom),((null==e?void 0:e.css)||rn)&&(yield i.insertCSS(null!==(s=e.css)&&void 0!==s?s:rn)),(null==e?void 0:e.js)&&(yield i.executeJavaScript(e.js)),null==t||t.call(null)})))),i},Co=(e,t)=>{var s;const r=document.createElement("iframe");return r.setAttribute("allowpopups",""),r.setAttribute("credentialless","true"),r.setAttribute("crossorigin","anonymous"),r.setAttribute("src",null!==(s=e.url)&&void 0!==s?s:"about:blank"),r.setAttribute("sandbox","allow-popups allow-forms allow-modals allow-same-origin allow-scripts allow-presentation allow-top-navigation-by-user-activation"),r.setAttribute("allow","encrypted-media; fullscreen; oversized-images; picture-in-picture; sync-xhr; geolocation"),r.addClass("saturyn-iframe"),r.addEventListener("load",(()=>{var s,n,i;if(null==t||t.call(null),(null==e?void 0:e.css)||rn){const t=document.createElement("style");t.textContent=null!==(s=e.css)&&void 0!==s?s:rn,null===(n=r.contentDocument)||void 0===n||n.head.appendChild(t)}if(null==e?void 0:e.js){const t=document.createElement("script");t.textContent=e.js,null===(i=r.contentDocument)||void 0===i||i.head.appendChild(t)}})),r};class Go extends e.ItemView{constructor(t,s){super(t),this.bUseIframe=!1,this.bFrameReady=!1,this.navigation=!1,this.params=s,this.bUseIframe=e.Platform.isMobileApp,this.IframeCB=[]}addActions(){this.addAction("refresh-ccw","Reload",(()=>{var e;this.frame instanceof HTMLIFrameElement?null===(e=this.frame.contentWindow)||void 0===e||e.location.reload():this.frame.reload()})),this.addAction("home","Home page",(()=>{var e,t,s,r;this.frame instanceof HTMLIFrameElement?this.frame.src=null!==(t=null===(e=this.params)||void 0===e?void 0:e.url)&&void 0!==t?t:"about:blank":this.frame.loadURL(null!==(r=null===(s=this.params)||void 0===s?void 0:s.url)&&void 0!==r?r:"about:blank")}))}isWebviewFrame(){return this.frame instanceof HTMLIFrameElement}onload(){super.onload(),this.addActions(),this.contentEl.empty(),this.contentEl.addClass("saturyn-view");const e=()=>{this.bFrameReady||(this.bFrameReady=!0,this.IframeCB.forEach((e=>e())))};this.bUseIframe?this.frame=Co(this.params,e):this.frame=Do(this.params,e),this.contentEl.appendChild(this.frame)}onunload(){this.frame.remove(),super.onunload()}onPaneMenu(e,t){super.onPaneMenu(e,t),e.addItem((e=>{e.setTitle("Open in browser"),e.setIcon("globe"),e.onClick((()=>{this.frame instanceof HTMLIFrameElement?window.open(this.frame.src):window.open(this.frame.getURL())}))})),e.addItem((e=>{e.setTitle("Reload"),e.setIcon("refresh-ccw"),e.onClick((()=>{var e;this.frame instanceof HTMLIFrameElement?null===(e=this.frame.contentWindow)||void 0===e||e.location.reload():this.frame.reload()}))})),e.addItem((e=>{e.setTitle("Home"),e.setIcon("home"),e.onClick((()=>r(this,void 0,void 0,(function*(){var e,t,s,r;this.frame instanceof HTMLIFrameElement?this.frame.src=null!==(t=null===(e=this.params)||void 0===e?void 0:e.url)&&void 0!==t?t:"about:blank":yield this.frame.loadURL(null!==(r=null===(s=this.params)||void 0===s?void 0:s.url)&&void 0!==r?r:"about:blank")}))))}))}getViewType(){var e,t;return null!==(t=null===(e=this.params)||void 0===e?void 0:e.id)&&void 0!==t?t:"portal"}getDisplayText(){var e,t;return null!==(t=null===(e=this.params)||void 0===e?void 0:e.title)&&void 0!==t?t:"Portal"}getIcon(){var e,t,s;return(null===(e=this.params)||void 0===e?void 0:e.icon.startsWith("