From 04439d26e4b46b6269fa901866030f10cab8c006 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Fri, 18 Apr 2025 01:34:27 -0400 Subject: [PATCH] [+] Obsidian dotfiles --- content/posts/.obsidian/.gitignore | 2 + content/posts/.obsidian/appearance.json | 11 + .../posts/.obsidian/community-plugins.json | 6 + content/posts/.obsidian/core-plugins.json | 32 + content/posts/.obsidian/graph.json | 22 + content/posts/.obsidian/hotkeys.json | 1 + .../.obsidian/plugins/image-captions/main.js | 95 + .../plugins/image-captions/manifest.json | 11 + .../plugins/image-captions/styles.css | 20 + .../data.json | 20 + .../main.js | 293 +++ .../manifest.json | 11 + .../plugins/obsidian-export-image/main.js | 175 ++ .../obsidian-export-image/manifest.json | 11 + .../plugins/obsidian-export-image/styles.css | 249 ++ .../plugins/table-editor-obsidian/data.json | 6 + .../plugins/table-editor-obsidian/main.js | 236 ++ .../table-editor-obsidian/manifest.json | 17 + .../plugins/table-editor-obsidian/styles.css | 78 + .../posts/.obsidian/snippet-src/hydev.sass | 28 + content/posts/.obsidian/snippets/hydev.css | 31 + .../.obsidian/themes/Minimal/manifest.json | 8 + .../posts/.obsidian/themes/Minimal/theme.css | 2223 +++++++++++++++++ 23 files changed, 3586 insertions(+) create mode 100644 content/posts/.obsidian/.gitignore create mode 100644 content/posts/.obsidian/appearance.json create mode 100644 content/posts/.obsidian/community-plugins.json create mode 100644 content/posts/.obsidian/core-plugins.json create mode 100644 content/posts/.obsidian/graph.json create mode 100644 content/posts/.obsidian/hotkeys.json create mode 100644 content/posts/.obsidian/plugins/image-captions/main.js create mode 100644 content/posts/.obsidian/plugins/image-captions/manifest.json create mode 100644 content/posts/.obsidian/plugins/image-captions/styles.css create mode 100644 content/posts/.obsidian/plugins/obsidian-custom-attachment-location/data.json create mode 100644 content/posts/.obsidian/plugins/obsidian-custom-attachment-location/main.js create mode 100644 content/posts/.obsidian/plugins/obsidian-custom-attachment-location/manifest.json create mode 100644 content/posts/.obsidian/plugins/obsidian-export-image/main.js create mode 100644 content/posts/.obsidian/plugins/obsidian-export-image/manifest.json create mode 100644 content/posts/.obsidian/plugins/obsidian-export-image/styles.css create mode 100644 content/posts/.obsidian/plugins/table-editor-obsidian/data.json create mode 100644 content/posts/.obsidian/plugins/table-editor-obsidian/main.js create mode 100644 content/posts/.obsidian/plugins/table-editor-obsidian/manifest.json create mode 100644 content/posts/.obsidian/plugins/table-editor-obsidian/styles.css create mode 100644 content/posts/.obsidian/snippet-src/hydev.sass create mode 100644 content/posts/.obsidian/snippets/hydev.css create mode 100644 content/posts/.obsidian/themes/Minimal/manifest.json create mode 100644 content/posts/.obsidian/themes/Minimal/theme.css diff --git a/content/posts/.obsidian/.gitignore b/content/posts/.obsidian/.gitignore new file mode 100644 index 0000000..4bccb61 --- /dev/null +++ b/content/posts/.obsidian/.gitignore @@ -0,0 +1,2 @@ +app.json +workspace.json \ No newline at end of file diff --git a/content/posts/.obsidian/appearance.json b/content/posts/.obsidian/appearance.json new file mode 100644 index 0000000..b995c0b --- /dev/null +++ b/content/posts/.obsidian/appearance.json @@ -0,0 +1,11 @@ +{ + "accentColor": "#ef6b7f", + "monospaceFontFamily": "Sarasa Mono SC", + "cssTheme": "Minimal", + "enabledCssSnippets": [ + "hydev" + ], + "textFontFamily": "", + "baseFontSize": 18, + "theme": "obsidian" +} \ No newline at end of file diff --git a/content/posts/.obsidian/community-plugins.json b/content/posts/.obsidian/community-plugins.json new file mode 100644 index 0000000..e4c1c93 --- /dev/null +++ b/content/posts/.obsidian/community-plugins.json @@ -0,0 +1,6 @@ +[ + "image-captions", + "obsidian-custom-attachment-location", + "obsidian-export-image", + "table-editor-obsidian" +] \ No newline at end of file diff --git a/content/posts/.obsidian/core-plugins.json b/content/posts/.obsidian/core-plugins.json new file mode 100644 index 0000000..b5e935a --- /dev/null +++ b/content/posts/.obsidian/core-plugins.json @@ -0,0 +1,32 @@ +{ + "file-explorer": true, + "global-search": true, + "switcher": true, + "graph": true, + "backlink": true, + "outgoing-link": true, + "tag-pane": true, + "page-preview": true, + "daily-notes": true, + "templates": true, + "note-composer": true, + "command-palette": true, + "slash-command": false, + "editor-status": true, + "starred": false, + "markdown-importer": false, + "zk-prefixer": false, + "random-note": false, + "outline": true, + "word-count": true, + "slides": false, + "audio-recorder": false, + "workspaces": false, + "file-recovery": true, + "publish": false, + "sync": false, + "canvas": true, + "bookmarks": true, + "properties": false, + "webviewer": false +} \ No newline at end of file diff --git a/content/posts/.obsidian/graph.json b/content/posts/.obsidian/graph.json new file mode 100644 index 0000000..989d397 --- /dev/null +++ b/content/posts/.obsidian/graph.json @@ -0,0 +1,22 @@ +{ + "collapse-filter": true, + "search": "", + "showTags": false, + "showAttachments": false, + "hideUnresolved": false, + "showOrphans": true, + "collapse-color-groups": true, + "colorGroups": [], + "collapse-display": true, + "showArrow": false, + "textFadeMultiplier": 0, + "nodeSizeMultiplier": 1, + "lineSizeMultiplier": 1, + "collapse-forces": true, + "centerStrength": 0.518713248970312, + "repelStrength": 10, + "linkStrength": 1, + "linkDistance": 250, + "scale": 0.28165328146789437, + "close": false +} \ No newline at end of file diff --git a/content/posts/.obsidian/hotkeys.json b/content/posts/.obsidian/hotkeys.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/content/posts/.obsidian/hotkeys.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/content/posts/.obsidian/plugins/image-captions/main.js b/content/posts/.obsidian/plugins/image-captions/main.js new file mode 100644 index 0000000..22e64ac --- /dev/null +++ b/content/posts/.obsidian/plugins/image-captions/main.js @@ -0,0 +1,95 @@ +/* +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin +*/ + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// src/main.ts +var main_exports = {}; +__export(main_exports, { + default: () => ImageCaptions +}); +module.exports = __toCommonJS(main_exports); +var import_obsidian = require("obsidian"); +var ImageCaptions = class extends import_obsidian.Plugin { + async onload() { + this.registerMarkdownPostProcessor(externalImageProcessor()); + this.observer = new MutationObserver((mutations) => { + mutations.forEach((rec) => { + if (rec.type === "childList") { + rec.target.querySelectorAll(".image-embed").forEach((imageEmbedContainer) => { + var _a; + const img = imageEmbedContainer.querySelector("img"); + let captionText = imageEmbedContainer.getAttribute("alt") || ""; + const width = imageEmbedContainer.getAttribute("width") || ""; + if (captionText === imageEmbedContainer.getAttribute("src")) { + captionText = ""; + } + if (!img) + return; + const figure = imageEmbedContainer.querySelector("figure"); + const figCaption = imageEmbedContainer.querySelector("figcaption"); + if (figure || ((_a = img.parentElement) == null ? void 0 : _a.nodeName) === "FIGURE") { + if (figCaption && captionText) { + figCaption.innerText = captionText; + } else if (!captionText) { + imageEmbedContainer.appendChild(img); + figure == null ? void 0 : figure.remove(); + } + } else { + if (captionText && captionText !== imageEmbedContainer.getAttribute("src")) { + insertFigureWithCaption(img, imageEmbedContainer, captionText); + } + } + if (width) { + img.setAttribute("width", width); + } else { + img.removeAttribute("width"); + } + }); + } + }); + }); + this.observer.observe(document.body, { subtree: true, childList: true }); + } + onunload() { + this.observer.disconnect(); + } +}; +function externalImageProcessor() { + return (el) => { + el.findAll("img:not(.emoji)").forEach((img) => { + const captionText = img.getAttribute("alt"); + const parent = img.parentElement; + if (parent && (parent == null ? void 0 : parent.nodeName) !== "FIGURE" && captionText && captionText !== img.getAttribute("src")) { + insertFigureWithCaption(img, parent, captionText); + } + }); + }; +} +function insertFigureWithCaption(imageEl, outerEl, captionText) { + const figure = outerEl.createEl("figure"); + figure.addClass("image-captions-figure"); + figure.appendChild(imageEl); + figure.createEl("figcaption", { + text: captionText, + cls: "image-captions-caption" + }); +} diff --git a/content/posts/.obsidian/plugins/image-captions/manifest.json b/content/posts/.obsidian/plugins/image-captions/manifest.json new file mode 100644 index 0000000..a3abdcb --- /dev/null +++ b/content/posts/.obsidian/plugins/image-captions/manifest.json @@ -0,0 +1,11 @@ +{ + "id": "image-captions", + "name": "Image Captions", + "version": "1.0.7", + "minAppVersion": "0.15.0", + "description": "Adds captions to images when there is alt-text specified", + "author": "Alan Grainger", + "authorUrl": "https://github.com/alangrainger", + "fundingUrl": "https://ko-fi.com/alan_", + "isDesktopOnly": false +} diff --git a/content/posts/.obsidian/plugins/image-captions/styles.css b/content/posts/.obsidian/plugins/image-captions/styles.css new file mode 100644 index 0000000..67df9f7 --- /dev/null +++ b/content/posts/.obsidian/plugins/image-captions/styles.css @@ -0,0 +1,20 @@ +.image-captions-figure { + margin: 0; + padding: 2px; + width: fit-content; + border-radius: 2px; +} + +.image-captions-caption { + margin: -5px 0 0 0; + padding: 3px 5px; + text-align: center; +} + +.theme-dark .image-captions-figure { + background: #303030; +} + +.theme-light .image-captions-figure { + background: #ebebeb; +} diff --git a/content/posts/.obsidian/plugins/obsidian-custom-attachment-location/data.json b/content/posts/.obsidian/plugins/obsidian-custom-attachment-location/data.json new file mode 100644 index 0000000..0e0f6c3 --- /dev/null +++ b/content/posts/.obsidian/plugins/obsidian-custom-attachment-location/data.json @@ -0,0 +1,20 @@ +{ + "attachmentFolderPath": "./Assets/${filename}", + "attachmentRenameMode": "Only pasted images", + "customTokensStr": "", + "duplicateNameSeparator": " ", + "excludePaths": [], + "generatedAttachmentFilename": "${date:YYYY-MM-DD HH-mm}", + "includePaths": [], + "jpegQuality": 0.8, + "shouldConvertPastedImagesToJpeg": false, + "shouldDeleteOrphanAttachments": false, + "shouldKeepEmptyAttachmentFolders": false, + "shouldRenameAttachmentFiles": true, + "shouldRenameAttachmentFolder": true, + "shouldRenameAttachmentsToLowerCase": false, + "shouldRenameCollectedAttachments": false, + "specialCharacters": "#^[]|*\\<>:?", + "specialCharactersReplacement": "-", + "warningVersion": "7.2.6" +} \ No newline at end of file diff --git a/content/posts/.obsidian/plugins/obsidian-custom-attachment-location/main.js b/content/posts/.obsidian/plugins/obsidian-custom-attachment-location/main.js new file mode 100644 index 0000000..e028e6b --- /dev/null +++ b/content/posts/.obsidian/plugins/obsidian-custom-attachment-location/main.js @@ -0,0 +1,293 @@ +/* +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin +*/ + +(function initCjs() { + const globalThisRecord = globalThis; + globalThisRecord["__name"] ??= name; + const originalRequire = require; + if (originalRequire && !originalRequire.__isPatched) { + require = Object.assign( + (id) => requirePatched(id), + originalRequire, + { + __isPatched: true + } + ); + } + const newFuncs = { + __extractDefault: () => extractDefault, + process: () => { + const browserProcess = { + browser: true, + cwd: () => "/", + env: {}, + platform: "android" + }; + return browserProcess; + } + }; + for (const key of Object.keys(newFuncs)) { + globalThisRecord[key] ??= newFuncs[key]?.(); + } + function name(obj) { + return obj; + } + function extractDefault(module2) { + return module2 && module2.__esModule && module2.default ? module2.default : module2; + } + function requirePatched(id) { + const module2 = originalRequire?.(id); + if (module2) { + return extractDefault(module2); + } + if (id === "process" || id === "node:process") { + console.error(`Module not found: ${id}. Fake process object is returned instead.`); + return globalThis.process; + } + console.error(`Module not found: ${id}. Empty object is returned instead.`); + return {}; + } +})(); + +"use strict";var ey=Object.create;var Oi=Object.defineProperty;var ty=Object.getOwnPropertyDescriptor;var ny=Object.getOwnPropertyNames;var ry=Object.getPrototypeOf,iy=Object.prototype.hasOwnProperty;var V=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Wu=(t,e)=>{for(var n in e)Oi(t,n,{get:e[n],enumerable:!0})},zu=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ny(e))!iy.call(t,s)&&s!==n&&Oi(t,s,{get:()=>e[s],enumerable:!(r=ty(e,s))||r.enumerable});return t};var ze=(t,e,n)=>(n=t!=null?ey(ry(t)):{},zu(e||!t||!t.__esModule?Oi(n,"default",{value:t,enumerable:!0}):n,t)),sy=t=>zu(Oi({},"__esModule",{value:!0}),t);var zt=V((Ko,qn)=>{(function(t,e){typeof Ko=="object"&&typeof qn<"u"?qn.exports=e():typeof define=="function"&&define.amd?define(e):t.moment=e()})(Ko,function(){"use strict";var t;function e(){return t.apply(null,arguments)}function n(i){t=i}function r(i){return i instanceof Array||Object.prototype.toString.call(i)==="[object Array]"}function s(i){return i!=null&&Object.prototype.toString.call(i)==="[object Object]"}function o(i,a){return Object.prototype.hasOwnProperty.call(i,a)}function l(i){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(i).length===0;var a;for(a in i)if(o(i,a))return!1;return!0}function u(i){return i===void 0}function f(i){return typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]"}function h(i){return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}function m(i,a){var c=[],d,y=i.length;for(d=0;d>>0,d;for(d=0;d0)for(c=0;c=0;return(k?c?"+":"":"-")+Math.pow(10,Math.max(0,y)).toString().substr(1)+d}var Ge=/(\[[^\[]*\])|(\\)?([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,Pe={},Re={};function b(i,a,c,d){var y=d;typeof d=="string"&&(y=function(){return this[d]()}),i&&(Re[i]=y),a&&(Re[a[0]]=function(){return me(y.apply(this,arguments),a[1],a[2])}),c&&(Re[c]=function(){return this.localeData().ordinal(y.apply(this,arguments),i)})}function $e(i){return i.match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"")}function Rt(i){var a=i.match(Ge),c,d;for(c=0,d=a.length;c=0&&x.test(i);)i=i.replace(x,d),x.lastIndex=0,c-=1;return i}var Ce={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 xn(i){var a=this._longDateFormat[i],c=this._longDateFormat[i.toUpperCase()];return a||!c?a:(this._longDateFormat[i]=c.match(Ge).map(function(d){return d==="MMMM"||d==="MM"||d==="DD"||d==="dddd"?d.slice(1):d}).join(""),this._longDateFormat[i])}var pt="Invalid date";function Ot(){return this._invalidDate}var tn="%d",Ar=/\d{1,2}/;function To(i){return this._ordinal.replace("%d",i)}var mi={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 pi(i,a,c,d){var y=this._relativeTime[c];return ue(y)?y(i,a,c,d):y.replace(/%d/i,i)}function gi(i,a){var c=this._relativeTime[i>0?"future":"past"];return ue(c)?c(a):c.replace(/%s/i,a)}var wi={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ye(i){return typeof i=="string"?wi[i]||wi[i.toLowerCase()]:void 0}function Yn(i){var a={},c,d;for(d in i)o(i,d)&&(c=Ye(d),c&&(a[c]=i[d]));return a}var _o={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Fo(i){var a=[],c;for(c in i)o(i,c)&&a.push({unit:c,priority:_o[c]});return a.sort(function(d,y){return d.priority-y.priority}),a}var yi=/\d/,Be=/\d\d/,bi=/\d{3}/,S=/\d{4}/,R=/[+-]?\d{6}/,O=/\d\d?/,Z=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,gt=/\d{1,4}/,Xe=/[+-]?\d{1,6}/,at=/\d+/,Et=/[+-]?\d+/,Ve=/Z|[+-]\d\d:?\d\d/gi,wt=/Z|[+-]\d\d(?::?\d\d)?/gi,yt=/[+-]?\d+(\.\d{1,3})?/,Sr=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Bn=/^[1-9]\d?/,Io=/^([1-9]\d|\d)/,ki;ki={};function N(i,a,c){ki[i]=ue(a)?a:function(d,y){return d&&c?c:a}}function xp(i,a){return o(ki,i)?ki[i](a._strict,a._locale):new RegExp(Ep(i))}function Ep(i){return Dt(i.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,c,d,y,k){return c||d||y||k}))}function Dt(i){return i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function lt(i){return i<0?Math.ceil(i)||0:Math.floor(i)}function Q(i){var a=+i,c=0;return a!==0&&isFinite(a)&&(c=lt(a)),c}var Po={};function le(i,a){var c,d=a,y;for(typeof i=="string"&&(i=[i]),f(a)&&(d=function(k,v){v[a]=Q(k)}),y=i.length,c=0;c68?1900:2e3)};var ru=Vn("FullYear",!0);function Sp(){return xi(this.year())}function Vn(i,a){return function(c){return c!=null?(iu(this,i,c),e.updateOffset(this,a),this):Fr(this,i)}}function Fr(i,a){if(!i.isValid())return NaN;var c=i._d,d=i._isUTC;switch(a){case"Milliseconds":return d?c.getUTCMilliseconds():c.getMilliseconds();case"Seconds":return d?c.getUTCSeconds():c.getSeconds();case"Minutes":return d?c.getUTCMinutes():c.getMinutes();case"Hours":return d?c.getUTCHours():c.getHours();case"Date":return d?c.getUTCDate():c.getDate();case"Day":return d?c.getUTCDay():c.getDay();case"Month":return d?c.getUTCMonth():c.getMonth();case"FullYear":return d?c.getUTCFullYear():c.getFullYear();default:return NaN}}function iu(i,a,c){var d,y,k,v,D;if(!(!i.isValid()||isNaN(c))){switch(d=i._d,y=i._isUTC,a){case"Milliseconds":return void(y?d.setUTCMilliseconds(c):d.setMilliseconds(c));case"Seconds":return void(y?d.setUTCSeconds(c):d.setSeconds(c));case"Minutes":return void(y?d.setUTCMinutes(c):d.setMinutes(c));case"Hours":return void(y?d.setUTCHours(c):d.setHours(c));case"Date":return void(y?d.setUTCDate(c):d.setDate(c));case"FullYear":break;default:return}k=c,v=i.month(),D=i.date(),D=D===29&&v===1&&!xi(k)?28:D,y?d.setUTCFullYear(k,v,D):d.setFullYear(k,v,D)}}function Tp(i){return i=Ye(i),ue(this[i])?this[i]():this}function _p(i,a){if(typeof i=="object"){i=Yn(i);var c=Fo(i),d,y=c.length;for(d=0;d=0?(D=new Date(i+400,a,c,d,y,k,v),isFinite(D.getFullYear())&&D.setFullYear(i)):D=new Date(i,a,c,d,y,k,v),D}function Ir(i){var a,c;return i<100&&i>=0?(c=Array.prototype.slice.call(arguments),c[0]=i+400,a=new Date(Date.UTC.apply(null,c)),isFinite(a.getUTCFullYear())&&a.setUTCFullYear(i)):a=new Date(Date.UTC.apply(null,arguments)),a}function Ei(i,a,c){var d=7+a-c,y=(7+Ir(i,0,d).getUTCDay()-a)%7;return-y+d-1}function cu(i,a,c,d,y){var k=(7+c-d)%7,v=Ei(i,d,y),D=1+7*(a-1)+k+v,U,ee;return D<=0?(U=i-1,ee=_r(U)+D):D>_r(i)?(U=i+1,ee=D-_r(i)):(U=i,ee=D),{year:U,dayOfYear:ee}}function Pr(i,a,c){var d=Ei(i.year(),a,c),y=Math.floor((i.dayOfYear()-d-1)/7)+1,k,v;return y<1?(v=i.year()-1,k=y+Nt(v,a,c)):y>Nt(i.year(),a,c)?(k=y-Nt(i.year(),a,c),v=i.year()+1):(v=i.year(),k=y),{week:k,year:v}}function Nt(i,a,c){var d=Ei(i,a,c),y=Ei(i+1,a,c);return(_r(i)-d+y)/7}b("w",["ww",2],"wo","week"),b("W",["WW",2],"Wo","isoWeek"),N("w",O,Bn),N("ww",O,Be),N("W",O,Bn),N("WW",O,Be),Tr(["w","ww","W","WW"],function(i,a,c,d){a[d.substr(0,1)]=Q(i)});function Vp(i){return Pr(i,this._week.dow,this._week.doy).week}var Wp={dow:0,doy:6};function zp(){return this._week.dow}function Up(){return this._week.doy}function Hp(i){var a=this.localeData().week(this);return i==null?a:this.add((i-a)*7,"d")}function jp(i){var a=Pr(this,1,4).week;return i==null?a:this.add((i-a)*7,"d")}b("d",0,"do","day"),b("dd",0,0,function(i){return this.localeData().weekdaysMin(this,i)}),b("ddd",0,0,function(i){return this.localeData().weekdaysShort(this,i)}),b("dddd",0,0,function(i){return this.localeData().weekdays(this,i)}),b("e",0,0,"weekday"),b("E",0,0,"isoWeekday"),N("d",O),N("e",O),N("E",O),N("dd",function(i,a){return a.weekdaysMinRegex(i)}),N("ddd",function(i,a){return a.weekdaysShortRegex(i)}),N("dddd",function(i,a){return a.weekdaysRegex(i)}),Tr(["dd","ddd","dddd"],function(i,a,c,d){var y=c._locale.weekdaysParse(i,d,c._strict);y!=null?a.d=y:E(c).invalidWeekday=i}),Tr(["d","e","E"],function(i,a,c,d){a[d]=Q(i)});function qp(i,a){return typeof i!="string"?i:isNaN(i)?(i=a.weekdaysParse(i),typeof i=="number"?i:null):parseInt(i,10)}function Gp(i,a){return typeof i=="string"?a.weekdaysParse(i)%7||7:isNaN(i)?null:i}function Oo(i,a){return i.slice(a,7).concat(i.slice(0,a))}var Xp="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fu="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Kp="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Jp=Sr,Zp=Sr,Qp=Sr;function eg(i,a){var c=r(this._weekdays)?this._weekdays:this._weekdays[i&&i!==!0&&this._weekdays.isFormat.test(a)?"format":"standalone"];return i===!0?Oo(c,this._week.dow):i?c[i.day()]:c}function tg(i){return i===!0?Oo(this._weekdaysShort,this._week.dow):i?this._weekdaysShort[i.day()]:this._weekdaysShort}function ng(i){return i===!0?Oo(this._weekdaysMin,this._week.dow):i?this._weekdaysMin[i.day()]:this._weekdaysMin}function rg(i,a,c){var d,y,k,v=i.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],d=0;d<7;++d)k=g([2e3,1]).day(d),this._minWeekdaysParse[d]=this.weekdaysMin(k,"").toLocaleLowerCase(),this._shortWeekdaysParse[d]=this.weekdaysShort(k,"").toLocaleLowerCase(),this._weekdaysParse[d]=this.weekdays(k,"").toLocaleLowerCase();return c?a==="dddd"?(y=ge.call(this._weekdaysParse,v),y!==-1?y:null):a==="ddd"?(y=ge.call(this._shortWeekdaysParse,v),y!==-1?y:null):(y=ge.call(this._minWeekdaysParse,v),y!==-1?y:null):a==="dddd"?(y=ge.call(this._weekdaysParse,v),y!==-1||(y=ge.call(this._shortWeekdaysParse,v),y!==-1)?y:(y=ge.call(this._minWeekdaysParse,v),y!==-1?y:null)):a==="ddd"?(y=ge.call(this._shortWeekdaysParse,v),y!==-1||(y=ge.call(this._weekdaysParse,v),y!==-1)?y:(y=ge.call(this._minWeekdaysParse,v),y!==-1?y:null)):(y=ge.call(this._minWeekdaysParse,v),y!==-1||(y=ge.call(this._weekdaysParse,v),y!==-1)?y:(y=ge.call(this._shortWeekdaysParse,v),y!==-1?y:null))}function ig(i,a,c){var d,y,k;if(this._weekdaysParseExact)return rg.call(this,i,a,c);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),d=0;d<7;d++){if(y=g([2e3,1]).day(d),c&&!this._fullWeekdaysParse[d]&&(this._fullWeekdaysParse[d]=new RegExp("^"+this.weekdays(y,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[d]=new RegExp("^"+this.weekdaysShort(y,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[d]=new RegExp("^"+this.weekdaysMin(y,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[d]||(k="^"+this.weekdays(y,"")+"|^"+this.weekdaysShort(y,"")+"|^"+this.weekdaysMin(y,""),this._weekdaysParse[d]=new RegExp(k.replace(".",""),"i")),c&&a==="dddd"&&this._fullWeekdaysParse[d].test(i))return d;if(c&&a==="ddd"&&this._shortWeekdaysParse[d].test(i))return d;if(c&&a==="dd"&&this._minWeekdaysParse[d].test(i))return d;if(!c&&this._weekdaysParse[d].test(i))return d}}function sg(i){if(!this.isValid())return i!=null?this:NaN;var a=Fr(this,"Day");return i!=null?(i=qp(i,this.localeData()),this.add(i-a,"d")):a}function og(i){if(!this.isValid())return i!=null?this:NaN;var a=(this.day()+7-this.localeData()._week.dow)%7;return i==null?a:this.add(i-a,"d")}function ag(i){if(!this.isValid())return i!=null?this:NaN;if(i!=null){var a=Gp(i,this.localeData());return this.day(this.day()%7?a:a-7)}else return this.day()||7}function lg(i){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Do.call(this),i?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Jp),this._weekdaysStrictRegex&&i?this._weekdaysStrictRegex:this._weekdaysRegex)}function ug(i){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Do.call(this),i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zp),this._weekdaysShortStrictRegex&&i?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cg(i){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Do.call(this),i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qp),this._weekdaysMinStrictRegex&&i?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Do(){function i(We,Wt){return Wt.length-We.length}var a=[],c=[],d=[],y=[],k,v,D,U,ee;for(k=0;k<7;k++)v=g([2e3,1]).day(k),D=Dt(this.weekdaysMin(v,"")),U=Dt(this.weekdaysShort(v,"")),ee=Dt(this.weekdays(v,"")),a.push(D),c.push(U),d.push(ee),y.push(D),y.push(U),y.push(ee);a.sort(i),c.sort(i),d.sort(i),y.sort(i),this._weekdaysRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Lo(){return this.hours()%12||12}function fg(){return this.hours()||24}b("H",["HH",2],0,"hour"),b("h",["hh",2],0,Lo),b("k",["kk",2],0,fg),b("hmm",0,0,function(){return""+Lo.apply(this)+me(this.minutes(),2)}),b("hmmss",0,0,function(){return""+Lo.apply(this)+me(this.minutes(),2)+me(this.seconds(),2)}),b("Hmm",0,0,function(){return""+this.hours()+me(this.minutes(),2)}),b("Hmmss",0,0,function(){return""+this.hours()+me(this.minutes(),2)+me(this.seconds(),2)});function du(i,a){b(i,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),a)})}du("a",!0),du("A",!1);function hu(i,a){return a._meridiemParse}N("a",hu),N("A",hu),N("H",O,Io),N("h",O,Bn),N("k",O,Bn),N("HH",O,Be),N("hh",O,Be),N("kk",O,Be),N("hmm",Z),N("hmmss",ae),N("Hmm",Z),N("Hmmss",ae),le(["H","HH"],ve),le(["k","kk"],function(i,a,c){var d=Q(i);a[ve]=d===24?0:d}),le(["a","A"],function(i,a,c){c._isPm=c._locale.isPM(i),c._meridiem=i}),le(["h","hh"],function(i,a,c){a[ve]=Q(i),E(c).bigHour=!0}),le("hmm",function(i,a,c){var d=i.length-2;a[ve]=Q(i.substr(0,d)),a[bt]=Q(i.substr(d)),E(c).bigHour=!0}),le("hmmss",function(i,a,c){var d=i.length-4,y=i.length-2;a[ve]=Q(i.substr(0,d)),a[bt]=Q(i.substr(d,2)),a[Mt]=Q(i.substr(y)),E(c).bigHour=!0}),le("Hmm",function(i,a,c){var d=i.length-2;a[ve]=Q(i.substr(0,d)),a[bt]=Q(i.substr(d))}),le("Hmmss",function(i,a,c){var d=i.length-4,y=i.length-2;a[ve]=Q(i.substr(0,d)),a[bt]=Q(i.substr(d,2)),a[Mt]=Q(i.substr(y))});function dg(i){return(i+"").toLowerCase().charAt(0)==="p"}var hg=/[ap]\.?m?\.?/i,mg=Vn("Hours",!0);function pg(i,a,c){return i>11?c?"pm":"PM":c?"am":"AM"}var mu={calendar:ie,longDateFormat:Ce,invalidDate:pt,ordinal:tn,dayOfMonthOrdinalParse:Ar,relativeTime:mi,months:Ip,monthsShort:su,week:Wp,weekdays:Xp,weekdaysMin:Kp,weekdaysShort:fu,meridiemParse:hg},de={},Rr={},Or;function gg(i,a){var c,d=Math.min(i.length,a.length);for(c=0;c0;){if(y=Ci(k.slice(0,c).join("-")),y)return y;if(d&&d.length>=c&&gg(k,d)>=c-1)break;c--}a++}return Or}function yg(i){return!!(i&&i.match("^[^/\\\\]*$"))}function Ci(i){var a=null,c;if(de[i]===void 0&&typeof qn<"u"&&qn&&qn.exports&&yg(i))try{a=Or._abbr,c=require,c("./locale/"+i),nn(a)}catch{de[i]=null}return de[i]}function nn(i,a){var c;return i&&(u(a)?c=$t(i):c=Mo(i,a),c?Or=c:typeof console<"u"&&console.warn&&console.warn("Locale "+i+" not found. Did you forget to load it?")),Or._abbr}function Mo(i,a){if(a!==null){var c,d=mu;if(a.abbr=i,de[i]!=null)oe("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."),d=de[i]._config;else if(a.parentLocale!=null)if(de[a.parentLocale]!=null)d=de[a.parentLocale]._config;else if(c=Ci(a.parentLocale),c!=null)d=c._config;else return Rr[a.parentLocale]||(Rr[a.parentLocale]=[]),Rr[a.parentLocale].push({name:i,config:a}),null;return de[i]=new j(Y(d,a)),Rr[i]&&Rr[i].forEach(function(y){Mo(y.name,y.config)}),nn(i),de[i]}else return delete de[i],null}function bg(i,a){if(a!=null){var c,d,y=mu;de[i]!=null&&de[i].parentLocale!=null?de[i].set(Y(de[i]._config,a)):(d=Ci(i),d!=null&&(y=d._config),a=Y(y,a),d==null&&(a.abbr=i),c=new j(a),c.parentLocale=de[i],de[i]=c),nn(i)}else de[i]!=null&&(de[i].parentLocale!=null?(de[i]=de[i].parentLocale,i===nn()&&nn(i)):de[i]!=null&&delete de[i]);return de[i]}function $t(i){var a;if(i&&i._locale&&i._locale._abbr&&(i=i._locale._abbr),!i)return Or;if(!r(i)){if(a=Ci(i),a)return a;i=[i]}return wg(i)}function kg(){return z(de)}function No(i){var a,c=i._a;return c&&E(i).overflow===-2&&(a=c[Lt]<0||c[Lt]>11?Lt:c[Ct]<1||c[Ct]>Ro(c[De],c[Lt])?Ct:c[ve]<0||c[ve]>24||c[ve]===24&&(c[bt]!==0||c[Mt]!==0||c[En]!==0)?ve:c[bt]<0||c[bt]>59?bt:c[Mt]<0||c[Mt]>59?Mt:c[En]<0||c[En]>999?En:-1,E(i)._overflowDayOfYear&&(aCt)&&(a=Ct),E(i)._overflowWeeks&&a===-1&&(a=vp),E(i)._overflowWeekday&&a===-1&&(a=Ap),E(i).overflow=a),i}var xg=/^\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)?)?$/,Eg=/^\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)?)?$/,Cg=/Z|[+-]\d\d(?::?\d\d)?/,vi=[["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]],$o=[["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/]],vg=/^\/?Date\((-?\d+)/i,Ag=/^(?:(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}))$/,Sg={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function gu(i){var a,c,d=i._i,y=xg.exec(d)||Eg.exec(d),k,v,D,U,ee=vi.length,We=$o.length;if(y){for(E(i).iso=!0,a=0,c=ee;a_r(v)||i._dayOfYear===0)&&(E(i)._overflowDayOfYear=!0),c=Ir(v,0,i._dayOfYear),i._a[Lt]=c.getUTCMonth(),i._a[Ct]=c.getUTCDate()),a=0;a<3&&i._a[a]==null;++a)i._a[a]=d[a]=y[a];for(;a<7;a++)i._a[a]=d[a]=i._a[a]==null?a===2?1:0:i._a[a];i._a[ve]===24&&i._a[bt]===0&&i._a[Mt]===0&&i._a[En]===0&&(i._nextDay=!0,i._a[ve]=0),i._d=(i._useUTC?Ir:Bp).apply(null,d),k=i._useUTC?i._d.getUTCDay():i._d.getDay(),i._tzm!=null&&i._d.setUTCMinutes(i._d.getUTCMinutes()-i._tzm),i._nextDay&&(i._a[ve]=24),i._w&&typeof i._w.d<"u"&&i._w.d!==k&&(E(i).weekdayMismatch=!0)}}function Dg(i){var a,c,d,y,k,v,D,U,ee;a=i._w,a.GG!=null||a.W!=null||a.E!=null?(k=1,v=4,c=Wn(a.GG,i._a[De],Pr(ce(),1,4).year),d=Wn(a.W,1),y=Wn(a.E,1),(y<1||y>7)&&(U=!0)):(k=i._locale._week.dow,v=i._locale._week.doy,ee=Pr(ce(),k,v),c=Wn(a.gg,i._a[De],ee.year),d=Wn(a.w,ee.week),a.d!=null?(y=a.d,(y<0||y>6)&&(U=!0)):a.e!=null?(y=a.e+k,(a.e<0||a.e>6)&&(U=!0)):y=k),d<1||d>Nt(c,k,v)?E(i)._overflowWeeks=!0:U!=null?E(i)._overflowWeekday=!0:(D=cu(c,d,y,k,v),i._a[De]=D.year,i._dayOfYear=D.dayOfYear)}e.ISO_8601=function(){},e.RFC_2822=function(){};function Bo(i){if(i._f===e.ISO_8601){gu(i);return}if(i._f===e.RFC_2822){wu(i);return}i._a=[],E(i).empty=!0;var a=""+i._i,c,d,y,k,v,D=a.length,U=0,ee,We;for(y=kn(i._f,i._locale).match(Ge)||[],We=y.length,c=0;c0&&E(i).unusedInput.push(v),a=a.slice(a.indexOf(d)+d.length),U+=d.length),Re[k]?(d?E(i).empty=!1:E(i).unusedTokens.push(k),Cp(k,d,i)):i._strict&&!d&&E(i).unusedTokens.push(k);E(i).charsLeftOver=D-U,a.length>0&&E(i).unusedInput.push(a),i._a[ve]<=12&&E(i).bigHour===!0&&i._a[ve]>0&&(E(i).bigHour=void 0),E(i).parsedDateParts=i._a.slice(0),E(i).meridiem=i._meridiem,i._a[ve]=Lg(i._locale,i._a[ve],i._meridiem),ee=E(i).era,ee!==null&&(i._a[De]=i._locale.erasConvertYear(ee,i._a[De])),Yo(i),No(i)}function Lg(i,a,c){var d;return c==null?a:i.meridiemHour!=null?i.meridiemHour(a,c):(i.isPM!=null&&(d=i.isPM(c),d&&a<12&&(a+=12),!d&&a===12&&(a=0)),a)}function Mg(i){var a,c,d,y,k,v,D=!1,U=i._f.length;if(U===0){E(i).invalidFormat=!0,i._d=new Date(NaN);return}for(y=0;ythis?this:i:C()});function ku(i,a){var c,d;if(a.length===1&&r(a[0])&&(a=a[0]),!a.length)return ce();for(c=a[0],d=1;dthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function r0(){if(!u(this._isDSTShifted))return this._isDSTShifted;var i={},a;return W(i,this),i=yu(i),i._a?(a=i._isUTC?g(i._a):ce(i._a),this._isDSTShifted=this.isValid()&&Gg(i._a,a.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function i0(){return this.isValid()?!this._isUTC:!1}function s0(){return this.isValid()?this._isUTC:!1}function Eu(){return this.isValid()?this._isUTC&&this._offset===0:!1}var o0=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,a0=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kt(i,a){var c=i,d=null,y,k,v;return Si(i)?c={ms:i._milliseconds,d:i._days,M:i._months}:f(i)||!isNaN(+i)?(c={},a?c[a]=+i:c.milliseconds=+i):(d=o0.exec(i))?(y=d[1]==="-"?-1:1,c={y:0,d:Q(d[Ct])*y,h:Q(d[ve])*y,m:Q(d[bt])*y,s:Q(d[Mt])*y,ms:Q(Vo(d[En]*1e3))*y}):(d=a0.exec(i))?(y=d[1]==="-"?-1:1,c={y:Cn(d[2],y),M:Cn(d[3],y),w:Cn(d[4],y),d:Cn(d[5],y),h:Cn(d[6],y),m:Cn(d[7],y),s:Cn(d[8],y)}):c==null?c={}:typeof c=="object"&&("from"in c||"to"in c)&&(v=l0(ce(c.from),ce(c.to)),c={},c.ms=v.milliseconds,c.M=v.months),k=new Ai(c),Si(i)&&o(i,"_locale")&&(k._locale=i._locale),Si(i)&&o(i,"_isValid")&&(k._isValid=i._isValid),k}kt.fn=Ai.prototype,kt.invalid=qg;function Cn(i,a){var c=i&&parseFloat(i.replace(",","."));return(isNaN(c)?0:c)*a}function Cu(i,a){var c={};return c.months=a.month()-i.month()+(a.year()-i.year())*12,i.clone().add(c.months,"M").isAfter(a)&&--c.months,c.milliseconds=+a-+i.clone().add(c.months,"M"),c}function l0(i,a){var c;return i.isValid()&&a.isValid()?(a=zo(a,i),i.isBefore(a)?c=Cu(i,a):(c=Cu(a,i),c.milliseconds=-c.milliseconds,c.months=-c.months),c):{milliseconds:0,months:0}}function vu(i,a){return function(c,d){var y,k;return d!==null&&!isNaN(+d)&&(oe(a,"moment()."+a+"(period, number) is deprecated. Please use moment()."+a+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),k=c,c=d,d=k),y=kt(c,d),Au(this,y,i),this}}function Au(i,a,c,d){var y=a._milliseconds,k=Vo(a._days),v=Vo(a._months);i.isValid()&&(d=d??!0,v&&au(i,Fr(i,"Month")+v*c),k&&iu(i,"Date",Fr(i,"Date")+k*c),y&&i._d.setTime(i._d.valueOf()+y*c),d&&e.updateOffset(i,k||v))}var u0=vu(1,"add"),c0=vu(-1,"subtract");function Su(i){return typeof i=="string"||i instanceof String}function f0(i){return A(i)||h(i)||Su(i)||f(i)||h0(i)||d0(i)||i===null||i===void 0}function d0(i){var a=s(i)&&!l(i),c=!1,d=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],y,k,v=d.length;for(y=0;yc.valueOf():c.valueOf()9999?en(c,a?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ue(Date.prototype.toISOString)?a?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",en(c,"Z")):en(c,a?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function T0(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var i="moment",a="",c,d,y,k;return this.isLocal()||(i=this.utcOffset()===0?"moment.utc":"moment.parseZone",a="Z"),c="["+i+'("]',d=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",y="-MM-DD[T]HH:mm:ss.SSS",k=a+'[")]',this.format(c+d+y+k)}function _0(i){i||(i=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var a=en(this,i);return this.localeData().postformat(a)}function F0(i,a){return this.isValid()&&(A(i)&&i.isValid()||ce(i).isValid())?kt({to:this,from:i}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function I0(i){return this.from(ce(),i)}function P0(i,a){return this.isValid()&&(A(i)&&i.isValid()||ce(i).isValid())?kt({from:this,to:i}).locale(this.locale()).humanize(!a):this.localeData().invalidDate()}function R0(i){return this.to(ce(),i)}function Tu(i){var a;return i===void 0?this._locale._abbr:(a=$t(i),a!=null&&(this._locale=a),this)}var _u=K("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(i){return i===void 0?this.localeData():this.locale(i)});function Fu(){return this._locale}var _i=1e3,zn=60*_i,Fi=60*zn,Iu=(365*400+97)*24*Fi;function Un(i,a){return(i%a+a)%a}function Pu(i,a,c){return i<100&&i>=0?new Date(i+400,a,c)-Iu:new Date(i,a,c).valueOf()}function Ru(i,a,c){return i<100&&i>=0?Date.UTC(i+400,a,c)-Iu:Date.UTC(i,a,c)}function O0(i){var a,c;if(i=Ye(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Ru:Pu,i){case"year":a=c(this.year(),0,1);break;case"quarter":a=c(this.year(),this.month()-this.month()%3,1);break;case"month":a=c(this.year(),this.month(),1);break;case"week":a=c(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":a=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":a=c(this.year(),this.month(),this.date());break;case"hour":a=this._d.valueOf(),a-=Un(a+(this._isUTC?0:this.utcOffset()*zn),Fi);break;case"minute":a=this._d.valueOf(),a-=Un(a,zn);break;case"second":a=this._d.valueOf(),a-=Un(a,_i);break}return this._d.setTime(a),e.updateOffset(this,!0),this}function D0(i){var a,c;if(i=Ye(i),i===void 0||i==="millisecond"||!this.isValid())return this;switch(c=this._isUTC?Ru:Pu,i){case"year":a=c(this.year()+1,0,1)-1;break;case"quarter":a=c(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":a=c(this.year(),this.month()+1,1)-1;break;case"week":a=c(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":a=c(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":a=c(this.year(),this.month(),this.date()+1)-1;break;case"hour":a=this._d.valueOf(),a+=Fi-Un(a+(this._isUTC?0:this.utcOffset()*zn),Fi)-1;break;case"minute":a=this._d.valueOf(),a+=zn-Un(a,zn)-1;break;case"second":a=this._d.valueOf(),a+=_i-Un(a,_i)-1;break}return this._d.setTime(a),e.updateOffset(this,!0),this}function L0(){return this._d.valueOf()-(this._offset||0)*6e4}function M0(){return Math.floor(this.valueOf()/1e3)}function N0(){return new Date(this.valueOf())}function $0(){var i=this;return[i.year(),i.month(),i.date(),i.hour(),i.minute(),i.second(),i.millisecond()]}function Y0(){var i=this;return{years:i.year(),months:i.month(),date:i.date(),hours:i.hours(),minutes:i.minutes(),seconds:i.seconds(),milliseconds:i.milliseconds()}}function B0(){return this.isValid()?this.toISOString():null}function V0(){return T(this)}function W0(){return p({},E(this))}function z0(){return E(this).overflow}function U0(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}b("N",0,0,"eraAbbr"),b("NN",0,0,"eraAbbr"),b("NNN",0,0,"eraAbbr"),b("NNNN",0,0,"eraName"),b("NNNNN",0,0,"eraNarrow"),b("y",["y",1],"yo","eraYear"),b("y",["yy",2],0,"eraYear"),b("y",["yyy",3],0,"eraYear"),b("y",["yyyy",4],0,"eraYear"),N("N",Ho),N("NN",Ho),N("NNN",Ho),N("NNNN",tw),N("NNNNN",nw),le(["N","NN","NNN","NNNN","NNNNN"],function(i,a,c,d){var y=c._locale.erasParse(i,d,c._strict);y?E(c).era=y:E(c).invalidEra=i}),N("y",at),N("yy",at),N("yyy",at),N("yyyy",at),N("yo",rw),le(["y","yy","yyy","yyyy"],De),le(["yo"],function(i,a,c,d){var y;c._locale._eraYearOrdinalRegex&&(y=i.match(c._locale._eraYearOrdinalRegex)),c._locale.eraYearOrdinalParse?a[De]=c._locale.eraYearOrdinalParse(i,y):a[De]=parseInt(i,10)});function H0(i,a){var c,d,y,k=this._eras||$t("en")._eras;for(c=0,d=k.length;c=0)return k[d]}function q0(i,a){var c=i.since<=i.until?1:-1;return a===void 0?e(i.since).year():e(i.since).year()+(a-i.offset)*c}function G0(){var i,a,c,d=this.localeData().eras();for(i=0,a=d.length;ik&&(a=k),cw.call(this,i,a,c,d,y))}function cw(i,a,c,d,y){var k=cu(i,a,c,d,y),v=Ir(k.year,0,k.dayOfYear);return this.year(v.getUTCFullYear()),this.month(v.getUTCMonth()),this.date(v.getUTCDate()),this}b("Q",0,"Qo","quarter"),N("Q",yi),le("Q",function(i,a){a[Lt]=(Q(i)-1)*3});function fw(i){return i==null?Math.ceil((this.month()+1)/3):this.month((i-1)*3+this.month()%3)}b("D",["DD",2],"Do","date"),N("D",O,Bn),N("DD",O,Be),N("Do",function(i,a){return i?a._dayOfMonthOrdinalParse||a._ordinalParse:a._dayOfMonthOrdinalParseLenient}),le(["D","DD"],Ct),le("Do",function(i,a){a[Ct]=Q(i.match(O)[0])});var Du=Vn("Date",!0);b("DDD",["DDDD",3],"DDDo","dayOfYear"),N("DDD",Oe),N("DDDD",bi),le(["DDD","DDDD"],function(i,a,c){c._dayOfYear=Q(i)});function dw(i){var a=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"d")}b("m",["mm",2],0,"minute"),N("m",O,Io),N("mm",O,Be),le(["m","mm"],bt);var hw=Vn("Minutes",!1);b("s",["ss",2],0,"second"),N("s",O,Io),N("ss",O,Be),le(["s","ss"],Mt);var mw=Vn("Seconds",!1);b("S",0,0,function(){return~~(this.millisecond()/100)}),b(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),b(0,["SSS",3],0,"millisecond"),b(0,["SSSS",4],0,function(){return this.millisecond()*10}),b(0,["SSSSS",5],0,function(){return this.millisecond()*100}),b(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),b(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),b(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),b(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),N("S",Oe,yi),N("SS",Oe,Be),N("SSS",Oe,bi);var rn,Lu;for(rn="SSSS";rn.length<=9;rn+="S")N(rn,at);function pw(i,a){a[En]=Q(("0."+i)*1e3)}for(rn="S";rn.length<=9;rn+="S")le(rn,pw);Lu=Vn("Milliseconds",!1),b("z",0,0,"zoneAbbr"),b("zz",0,0,"zoneName");function gw(){return this._isUTC?"UTC":""}function ww(){return this._isUTC?"Coordinated Universal Time":""}var P=H.prototype;P.add=u0,P.calendar=g0,P.clone=w0,P.diff=v0,P.endOf=D0,P.format=_0,P.from=F0,P.fromNow=I0,P.to=P0,P.toNow=R0,P.get=Tp,P.invalidAt=z0,P.isAfter=y0,P.isBefore=b0,P.isBetween=k0,P.isSame=x0,P.isSameOrAfter=E0,P.isSameOrBefore=C0,P.isValid=V0,P.lang=_u,P.locale=Tu,P.localeData=Fu,P.max=Vg,P.min=Bg,P.parsingFlags=W0,P.set=_p,P.startOf=O0,P.subtract=c0,P.toArray=$0,P.toObject=Y0,P.toDate=N0,P.toISOString=S0,P.inspect=T0,typeof Symbol<"u"&&Symbol.for!=null&&(P[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),P.toJSON=B0,P.toString=A0,P.unix=M0,P.valueOf=L0,P.creationData=U0,P.eraName=G0,P.eraNarrow=X0,P.eraAbbr=K0,P.eraYear=J0,P.year=ru,P.isLeapYear=Sp,P.weekYear=iw,P.isoWeekYear=sw,P.quarter=P.quarters=fw,P.month=lu,P.daysInMonth=Np,P.week=P.weeks=Hp,P.isoWeek=P.isoWeeks=jp,P.weeksInYear=lw,P.weeksInWeekYear=uw,P.isoWeeksInYear=ow,P.isoWeeksInISOWeekYear=aw,P.date=Du,P.day=P.days=sg,P.weekday=og,P.isoWeekday=ag,P.dayOfYear=dw,P.hour=P.hours=mg,P.minute=P.minutes=hw,P.second=P.seconds=mw,P.millisecond=P.milliseconds=Lu,P.utcOffset=Kg,P.utc=Zg,P.local=Qg,P.parseZone=e0,P.hasAlignedHourOffset=t0,P.isDST=n0,P.isLocal=i0,P.isUtcOffset=s0,P.isUtc=Eu,P.isUTC=Eu,P.zoneAbbr=gw,P.zoneName=ww,P.dates=K("dates accessor is deprecated. Use date instead.",Du),P.months=K("months accessor is deprecated. Use month instead",lu),P.years=K("years accessor is deprecated. Use year instead",ru),P.zone=K("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Jg),P.isDSTShifted=K("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",r0);function yw(i){return ce(i*1e3)}function bw(){return ce.apply(null,arguments).parseZone()}function Mu(i){return i}var se=j.prototype;se.calendar=he,se.longDateFormat=xn,se.invalidDate=Ot,se.ordinal=To,se.preparse=Mu,se.postformat=Mu,se.relativeTime=pi,se.pastFuture=gi,se.set=re,se.eras=H0,se.erasParse=j0,se.erasConvertYear=q0,se.erasAbbrRegex=Q0,se.erasNameRegex=Z0,se.erasNarrowRegex=ew,se.months=Op,se.monthsShort=Dp,se.monthsParse=Mp,se.monthsRegex=Yp,se.monthsShortRegex=$p,se.week=Vp,se.firstDayOfYear=Up,se.firstDayOfWeek=zp,se.weekdays=eg,se.weekdaysMin=ng,se.weekdaysShort=tg,se.weekdaysParse=ig,se.weekdaysRegex=lg,se.weekdaysShortRegex=ug,se.weekdaysMinRegex=cg,se.isPM=dg,se.meridiem=pg;function Pi(i,a,c,d){var y=$t(),k=g().set(d,a);return y[c](k,i)}function Nu(i,a,c){if(f(i)&&(a=i,i=void 0),i=i||"",a!=null)return Pi(i,a,c,"month");var d,y=[];for(d=0;d<12;d++)y[d]=Pi(i,d,c,"month");return y}function qo(i,a,c,d){typeof i=="boolean"?(f(a)&&(c=a,a=void 0),a=a||""):(a=i,c=a,i=!1,f(a)&&(c=a,a=void 0),a=a||"");var y=$t(),k=i?y._week.dow:0,v,D=[];if(c!=null)return Pi(a,(c+k)%7,d,"day");for(v=0;v<7;v++)D[v]=Pi(a,(v+k)%7,d,"day");return D}function kw(i,a){return Nu(i,a,"months")}function xw(i,a){return Nu(i,a,"monthsShort")}function Ew(i,a,c){return qo(i,a,c,"weekdays")}function Cw(i,a,c){return qo(i,a,c,"weekdaysShort")}function vw(i,a,c){return qo(i,a,c,"weekdaysMin")}nn("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:function(i){var a=i%10,c=Q(i%100/10)===1?"th":a===1?"st":a===2?"nd":a===3?"rd":"th";return i+c}}),e.lang=K("moment.lang is deprecated. Use moment.locale instead.",nn),e.langData=K("moment.langData is deprecated. Use moment.localeData instead.",$t);var Yt=Math.abs;function Aw(){var i=this._data;return this._milliseconds=Yt(this._milliseconds),this._days=Yt(this._days),this._months=Yt(this._months),i.milliseconds=Yt(i.milliseconds),i.seconds=Yt(i.seconds),i.minutes=Yt(i.minutes),i.hours=Yt(i.hours),i.months=Yt(i.months),i.years=Yt(i.years),this}function $u(i,a,c,d){var y=kt(a,c);return i._milliseconds+=d*y._milliseconds,i._days+=d*y._days,i._months+=d*y._months,i._bubble()}function Sw(i,a){return $u(this,i,a,1)}function Tw(i,a){return $u(this,i,a,-1)}function Yu(i){return i<0?Math.floor(i):Math.ceil(i)}function _w(){var i=this._milliseconds,a=this._days,c=this._months,d=this._data,y,k,v,D,U;return i>=0&&a>=0&&c>=0||i<=0&&a<=0&&c<=0||(i+=Yu(Go(c)+a)*864e5,a=0,c=0),d.milliseconds=i%1e3,y=lt(i/1e3),d.seconds=y%60,k=lt(y/60),d.minutes=k%60,v=lt(k/60),d.hours=v%24,a+=lt(v/24),U=lt(Bu(a)),c+=U,a-=Yu(Go(U)),D=lt(c/12),c%=12,d.days=a,d.months=c,d.years=D,this}function Bu(i){return i*4800/146097}function Go(i){return i*146097/4800}function Fw(i){if(!this.isValid())return NaN;var a,c,d=this._milliseconds;if(i=Ye(i),i==="month"||i==="quarter"||i==="year")switch(a=this._days+d/864e5,c=this._months+Bu(a),i){case"month":return c;case"quarter":return c/3;case"year":return c/12}else switch(a=this._days+Math.round(Go(this._months)),i){case"week":return a/7+d/6048e5;case"day":return a+d/864e5;case"hour":return a*24+d/36e5;case"minute":return a*1440+d/6e4;case"second":return a*86400+d/1e3;case"millisecond":return Math.floor(a*864e5)+d;default:throw new Error("Unknown unit "+i)}}function Bt(i){return function(){return this.as(i)}}var Vu=Bt("ms"),Iw=Bt("s"),Pw=Bt("m"),Rw=Bt("h"),Ow=Bt("d"),Dw=Bt("w"),Lw=Bt("M"),Mw=Bt("Q"),Nw=Bt("y"),$w=Vu;function Yw(){return kt(this)}function Bw(i){return i=Ye(i),this.isValid()?this[i+"s"]():NaN}function vn(i){return function(){return this.isValid()?this._data[i]:NaN}}var Vw=vn("milliseconds"),Ww=vn("seconds"),zw=vn("minutes"),Uw=vn("hours"),Hw=vn("days"),jw=vn("months"),qw=vn("years");function Gw(){return lt(this.days()/7)}var Vt=Math.round,Hn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xw(i,a,c,d,y){return y.relativeTime(a||1,!!c,i,d)}function Kw(i,a,c,d){var y=kt(i).abs(),k=Vt(y.as("s")),v=Vt(y.as("m")),D=Vt(y.as("h")),U=Vt(y.as("d")),ee=Vt(y.as("M")),We=Vt(y.as("w")),Wt=Vt(y.as("y")),sn=k<=c.ss&&["s",k]||k0,sn[4]=d,Xw.apply(null,sn)}function Jw(i){return i===void 0?Vt:typeof i=="function"?(Vt=i,!0):!1}function Zw(i,a){return Hn[i]===void 0?!1:a===void 0?Hn[i]:(Hn[i]=a,i==="s"&&(Hn.ss=a-1),!0)}function Qw(i,a){if(!this.isValid())return this.localeData().invalidDate();var c=!1,d=Hn,y,k;return typeof i=="object"&&(a=i,i=!1),typeof i=="boolean"&&(c=i),typeof a=="object"&&(d=Object.assign({},Hn,a),a.s!=null&&a.ss==null&&(d.ss=a.s-1)),y=this.localeData(),k=Kw(this,!c,d,y),c&&(k=y.pastFuture(+this,k)),y.postformat(k)}var Xo=Math.abs;function jn(i){return(i>0)-(i<0)||+i}function Ri(){if(!this.isValid())return this.localeData().invalidDate();var i=Xo(this._milliseconds)/1e3,a=Xo(this._days),c=Xo(this._months),d,y,k,v,D=this.asSeconds(),U,ee,We,Wt;return D?(d=lt(i/60),y=lt(d/60),i%=60,d%=60,k=lt(c/12),c%=12,v=i?i.toFixed(3).replace(/\.?0+$/,""):"",U=D<0?"-":"",ee=jn(this._months)!==jn(D)?"-":"",We=jn(this._days)!==jn(D)?"-":"",Wt=jn(this._milliseconds)!==jn(D)?"-":"",U+"P"+(k?ee+k+"Y":"")+(c?ee+c+"M":"")+(a?We+a+"D":"")+(y||d||i?"T":"")+(y?Wt+y+"H":"")+(d?Wt+d+"M":"")+(i?Wt+v+"S":"")):"P0D"}var ne=Ai.prototype;ne.isValid=jg,ne.abs=Aw,ne.add=Sw,ne.subtract=Tw,ne.as=Fw,ne.asMilliseconds=Vu,ne.asSeconds=Iw,ne.asMinutes=Pw,ne.asHours=Rw,ne.asDays=Ow,ne.asWeeks=Dw,ne.asMonths=Lw,ne.asQuarters=Mw,ne.asYears=Nw,ne.valueOf=$w,ne._bubble=_w,ne.clone=Yw,ne.get=Bw,ne.milliseconds=Vw,ne.seconds=Ww,ne.minutes=zw,ne.hours=Uw,ne.days=Hw,ne.weeks=Gw,ne.months=jw,ne.years=qw,ne.humanize=Qw,ne.toISOString=Ri,ne.toString=Ri,ne.toJSON=Ri,ne.locale=Tu,ne.localeData=Fu,ne.toIsoString=K("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ri),ne.lang=_u,b("X",0,0,"unix"),b("x",0,0,"valueOf"),N("x",Et),N("X",yt),le("X",function(i,a,c){c._d=new Date(parseFloat(i)*1e3)}),le("x",function(i,a,c){c._d=new Date(Q(i))});return e.version="2.30.1",n(ce),e.fn=P,e.min=Wg,e.max=zg,e.now=Ug,e.utc=g,e.unix=yw,e.months=kw,e.isDate=h,e.locale=nn,e.invalid=C,e.duration=kt,e.isMoment=A,e.weekdays=Ew,e.parseZone=bw,e.localeData=$t,e.isDuration=Si,e.monthsShort=xw,e.weekdaysMin=vw,e.defineLocale=Mo,e.updateLocale=bg,e.locales=kg,e.weekdaysShort=Cw,e.normalizeUnits=Ye,e.relativeTimeRounding=Jw,e.relativeTimeThreshold=Zw,e.calendarFormat=p0,e.prototype=P,e.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"},e})});var Ku=V((wA,Xu)=>{"use strict";function At(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function Gu(t,e){for(var n="",r=0,s=-1,o=0,l,u=0;u<=t.length;++u){if(u2){var f=n.lastIndexOf("/");if(f!==n.length-1){f===-1?(n="",r=0):(n=n.slice(0,f),r=n.length-1-n.lastIndexOf("/")),s=u,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,s=u,o=0;continue}}e&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+t.slice(s+1,u):n=t.slice(s+1,u),r=u-s-1;s=u,o=0}else l===46&&o!==-1?++o:o=-1}return n}function fy(t,e){var n=e.dir||e.root,r=e.base||(e.name||"")+(e.ext||"");return n?n===e.root?n+r:n+t+r:r}var Gn={resolve:function(){for(var e="",n=!1,r,s=arguments.length-1;s>=-1&&!n;s--){var o;s>=0?o=arguments[s]:(r===void 0&&(r=process.cwd()),o=r),At(o),o.length!==0&&(e=o+"/"+e,n=o.charCodeAt(0)===47)}return e=Gu(e,!n),n?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(At(e),e.length===0)return".";var n=e.charCodeAt(0)===47,r=e.charCodeAt(e.length-1)===47;return e=Gu(e,!n),e.length===0&&!n&&(e="."),e.length>0&&r&&(e+="/"),n?"/"+e:e},isAbsolute:function(e){return At(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,n=0;n0&&(e===void 0?e=r:e+="/"+r)}return e===void 0?".":Gn.normalize(e)},relative:function(e,n){if(At(e),At(n),e===n||(e=Gn.resolve(e),n=Gn.resolve(n),e===n))return"";for(var r=1;rh){if(n.charCodeAt(l+p)===47)return n.slice(l+p+1);if(p===0)return n.slice(l+p)}else o>h&&(e.charCodeAt(r+p)===47?m=p:p===0&&(m=0));break}var g=e.charCodeAt(r+p),w=n.charCodeAt(l+p);if(g!==w)break;g===47&&(m=p)}var E="";for(p=r+m+1;p<=s;++p)(p===s||e.charCodeAt(p)===47)&&(E.length===0?E+="..":E+="/..");return E.length>0?E+n.slice(l+m):(l+=m,n.charCodeAt(l)===47&&++l,n.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(At(e),e.length===0)return".";for(var n=e.charCodeAt(0),r=n===47,s=-1,o=!0,l=e.length-1;l>=1;--l)if(n=e.charCodeAt(l),n===47){if(!o){s=l;break}}else o=!1;return s===-1?r?"/":".":r&&s===1?"//":e.slice(0,s)},basename:function(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');At(e);var r=0,s=-1,o=!0,l;if(n!==void 0&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var u=n.length-1,f=-1;for(l=e.length-1;l>=0;--l){var h=e.charCodeAt(l);if(h===47){if(!o){r=l+1;break}}else f===-1&&(o=!1,f=l+1),u>=0&&(h===n.charCodeAt(u)?--u===-1&&(s=l):(u=-1,s=f))}return r===s?s=f:s===-1&&(s=e.length),e.slice(r,s)}else{for(l=e.length-1;l>=0;--l)if(e.charCodeAt(l)===47){if(!o){r=l+1;break}}else s===-1&&(o=!1,s=l+1);return s===-1?"":e.slice(r,s)}},extname:function(e){At(e);for(var n=-1,r=0,s=-1,o=!0,l=0,u=e.length-1;u>=0;--u){var f=e.charCodeAt(u);if(f===47){if(!o){r=u+1;break}continue}s===-1&&(o=!1,s=u+1),f===46?n===-1?n=u:l!==1&&(l=1):n!==-1&&(l=-1)}return n===-1||s===-1||l===0||l===1&&n===s-1&&n===r+1?"":e.slice(n,s)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return fy("/",e)},parse:function(e){At(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return n;var r=e.charCodeAt(0),s=r===47,o;s?(n.root="/",o=1):o=0;for(var l=-1,u=0,f=-1,h=!0,m=e.length-1,p=0;m>=o;--m){if(r=e.charCodeAt(m),r===47){if(!h){u=m+1;break}continue}f===-1&&(h=!1,f=m+1),r===46?l===-1?l=m:p!==1&&(p=1):l!==-1&&(p=-1)}return l===-1||f===-1||p===0||p===1&&l===f-1&&l===u+1?f!==-1&&(u===0&&s?n.base=n.name=e.slice(1,f):n.base=n.name=e.slice(u,f)):(u===0&&s?(n.name=e.slice(1,l),n.base=e.slice(1,f)):(n.name=e.slice(u,l),n.base=e.slice(u,f)),n.ext=e.slice(l,f)),u>0?n.dir=e.slice(0,u-1):s&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};Gn.posix=Gn;Xu.exports=Gn});var bc=V((rS,yc)=>{var er=1e3,tr=er*60,nr=tr*60,_n=nr*24,xy=_n*7,Ey=_n*365.25;yc.exports=function(t,e){e=e||{};var n=typeof t;if(n==="string"&&t.length>0)return Cy(t);if(n==="number"&&isFinite(t))return e.long?Ay(t):vy(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function Cy(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*Ey;case"weeks":case"week":case"w":return n*xy;case"days":case"day":case"d":return n*_n;case"hours":case"hour":case"hrs":case"hr":case"h":return n*nr;case"minutes":case"minute":case"mins":case"min":case"m":return n*tr;case"seconds":case"second":case"secs":case"sec":case"s":return n*er;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function vy(t){var e=Math.abs(t);return e>=_n?Math.round(t/_n)+"d":e>=nr?Math.round(t/nr)+"h":e>=tr?Math.round(t/tr)+"m":e>=er?Math.round(t/er)+"s":t+"ms"}function Ay(t){var e=Math.abs(t);return e>=_n?Bi(t,e,_n,"day"):e>=nr?Bi(t,e,nr,"hour"):e>=tr?Bi(t,e,tr,"minute"):e>=er?Bi(t,e,er,"second"):t+" ms"}function Bi(t,e,n,r){var s=e>=n*1.5;return Math.round(t/n)+" "+r+(s?"s":"")}});var aa=V((iS,kc)=>{function Sy(t){n.debug=n,n.default=n,n.coerce=f,n.disable=l,n.enable=s,n.enabled=u,n.humanize=bc(),n.destroy=h,Object.keys(t).forEach(m=>{n[m]=t[m]}),n.names=[],n.skips=[],n.formatters={};function e(m){let p=0;for(let g=0;g{if(A==="%%")return"%";W++;let K=n.formatters[te];if(typeof K=="function"){let J=T[W];A=K.call(C,J),T.splice(W,1),W--}return A}),n.formatArgs.call(C,T),(C.log||n.log).apply(C,T)}return F.namespace=m,F.useColors=n.useColors(),F.color=n.selectColor(m),F.extend=r,F.destroy=n.destroy,Object.defineProperty(F,"enabled",{enumerable:!0,configurable:!1,get:()=>g!==null?g:(w!==n.namespaces&&(w=n.namespaces,E=n.enabled(m)),E),set:T=>{g=T}}),typeof n.init=="function"&&n.init(F),F}function r(m,p){let g=n(this.namespace+(typeof p>"u"?":":p)+m);return g.log=this.log,g}function s(m){n.save(m),n.namespaces=m,n.names=[],n.skips=[];let p=(typeof m=="string"?m:"").trim().replace(" ",",").split(",").filter(Boolean);for(let g of p)g[0]==="-"?n.skips.push(g.slice(1)):n.names.push(g)}function o(m,p){let g=0,w=0,E=-1,F=0;for(;g"-"+p)].join(",");return n.enable(""),m}function u(m){for(let p of n.skips)if(o(m,p))return!1;for(let p of n.names)if(o(m,p))return!0;return!1}function f(m){return m instanceof Error?m.stack||m.message:m}function h(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}kc.exports=Sy});var xc=V((rt,Vi)=>{rt.formatArgs=_y;rt.save=Fy;rt.load=Iy;rt.useColors=Ty;rt.storage=Py();rt.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();rt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Ty(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function _y(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Vi.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let n=0,r=0;t[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(n++,s==="%c"&&(r=n))}),t.splice(r,0,e)}rt.log=console.debug||console.log||(()=>{});function Fy(t){try{t?rt.storage.setItem("debug",t):rt.storage.removeItem("debug")}catch{}}function Iy(){let t;try{t=rt.storage.getItem("debug")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function Py(){try{return localStorage}catch{}}Vi.exports=aa()(rt);var{formatters:Ry}=Vi.exports;Ry.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var Cc=V((sS,Ec)=>{"use strict";Ec.exports=(t,e=process.argv)=>{let n=t.startsWith("-")?"":t.length===1?"-":"--",r=e.indexOf(n+t),s=e.indexOf("--");return r!==-1&&(s===-1||r{"use strict";var Oy=require("os"),vc=require("tty"),ft=Cc(),{env:Te}=process,un;ft("no-color")||ft("no-colors")||ft("color=false")||ft("color=never")?un=0:(ft("color")||ft("colors")||ft("color=true")||ft("color=always"))&&(un=1);"FORCE_COLOR"in Te&&(Te.FORCE_COLOR==="true"?un=1:Te.FORCE_COLOR==="false"?un=0:un=Te.FORCE_COLOR.length===0?1:Math.min(parseInt(Te.FORCE_COLOR,10),3));function la(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function ua(t,e){if(un===0)return 0;if(ft("color=16m")||ft("color=full")||ft("color=truecolor"))return 3;if(ft("color=256"))return 2;if(t&&!e&&un===void 0)return 0;let n=un||0;if(Te.TERM==="dumb")return n;if(process.platform==="win32"){let r=Oy.release().split(".");return Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in Te)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(r=>r in Te)||Te.CI_NAME==="codeship"?1:n;if("TEAMCITY_VERSION"in Te)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Te.TEAMCITY_VERSION)?1:0;if(Te.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Te){let r=parseInt((Te.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Te.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Te.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Te.TERM)||"COLORTERM"in Te?1:n}function Dy(t){let e=ua(t,t&&t.isTTY);return la(e)}Ac.exports={supportsColor:Dy,stdout:la(ua(!0,vc.isatty(1))),stderr:la(ua(!0,vc.isatty(2)))}});var _c=V((_e,zi)=>{var Ly=require("tty"),Wi=require("util");_e.init=Wy;_e.log=Yy;_e.formatArgs=Ny;_e.save=By;_e.load=Vy;_e.useColors=My;_e.destroy=Wi.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");_e.colors=[6,2,3,4,5,1];try{let t=Sc();t&&(t.stderr||t).level>=2&&(_e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}_e.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let n=e.substring(6).toLowerCase().replace(/_([a-z])/g,(s,o)=>o.toUpperCase()),r=process.env[e];return/^(yes|on|true|enabled)$/i.test(r)?r=!0:/^(no|off|false|disabled)$/i.test(r)?r=!1:r==="null"?r=null:r=Number(r),t[n]=r,t},{});function My(){return"colors"in _e.inspectOpts?!!_e.inspectOpts.colors:Ly.isatty(process.stderr.fd)}function Ny(t){let{namespace:e,useColors:n}=this;if(n){let r=this.color,s="\x1B[3"+(r<8?r:"8;5;"+r),o=` ${s};1m${e} \x1B[0m`;t[0]=o+t[0].split(` +`).join(` +`+o),t.push(s+"m+"+zi.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$y()+e+" "+t[0]}function $y(){return _e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Yy(...t){return process.stderr.write(Wi.formatWithOptions(_e.inspectOpts,...t)+` +`)}function By(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Vy(){return process.env.DEBUG}function Wy(t){t.inspectOpts={};let e=Object.keys(_e.inspectOpts);for(let n=0;ne.trim()).join(" ")};Tc.O=function(t){return this.inspectOpts.colors=this.useColors,Wi.inspect(t,this.inspectOpts)}});var Fc=V((aS,ca)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ca.exports=xc():ca.exports=_c()});var Vc=V((Ki,Bc)=>{(function(t,e){typeof Ki=="object"&&typeof Bc<"u"?e(Ki):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.compareVersions={}))})(Ki,function(t){"use strict";let e=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,n=T=>{if(typeof T!="string")throw new TypeError("Invalid argument expected string");let C=T.match(e);if(!C)throw new Error(`Invalid argument not valid semver ('${T}' received)`);return C.shift(),C},r=T=>T==="*"||T==="x"||T==="X",s=T=>{let C=parseInt(T,10);return isNaN(C)?T:C},o=(T,C)=>typeof T!=typeof C?[String(T),String(C)]:[T,C],l=(T,C)=>{if(r(T)||r(C))return 0;let[_,I]=o(s(T),s(C));return _>I?1:_{for(let _=0;_{let _=n(T),I=n(C),W=_.pop(),H=I.pop(),A=u(_,I);return A!==0?A:W&&H?u(W.split("."),H.split(".")):W||H?W?-1:1:0},h=(T,C,_)=>{g(_);let I=f(T,C);return m[_].includes(I)},m={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},p=Object.keys(m),g=T=>{if(typeof T!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof T}`);if(p.indexOf(T)===-1)throw new Error(`Invalid operator, expected one of ${p.join("|")}`)},w=(T,C)=>{if(C=C.replace(/([><=]+)\s+/g,"$1"),C.includes("||"))return C.split("||").some(ie=>w(T,ie));if(C.includes(" - ")){let[ie,he]=C.split(" - ",2);return w(T,`>=${ie} <=${he}`)}else if(C.includes(" "))return C.trim().replace(/\s{2,}/g," ").split(" ").every(ie=>w(T,ie));let _=C.match(/^([<>=~^]+)/),I=_?_[1]:"=";if(I!=="^"&&I!=="~")return h(T,C,I);let[W,H,A,,te]=n(T),[K,J,oe,,ue]=n(C),re=[W,H,A],Y=[K,J??"x",oe??"x"];if(ue&&(!te||u(re,Y)!==0||u(te.split("."),ue.split("."))===-1))return!1;let j=Y.findIndex(ie=>ie!=="0")+1,z=I==="~"?2:j>1?j:1;return!(u(re.slice(0,z),Y.slice(0,z))!==0||u(re.slice(z),Y.slice(z))===-1)},E=T=>typeof T=="string"&&/^[v\d]/.test(T)&&e.test(T),F=T=>typeof T=="string"&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(T);t.compare=h,t.compareVersions=f,t.satisfies=w,t.validate=E,t.validateStrict=F})});var dd=V((MI,fd)=>{"use strict";var bs=Object.prototype.hasOwnProperty,cd=Object.prototype.toString,id=Object.defineProperty,sd=Object.getOwnPropertyDescriptor,od=function(e){return typeof Array.isArray=="function"?Array.isArray(e):cd.call(e)==="[object Array]"},ad=function(e){if(!e||cd.call(e)!=="[object Object]")return!1;var n=bs.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&bs.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;var s;for(s in e);return typeof s>"u"||bs.call(e,s)},ld=function(e,n){id&&n.name==="__proto__"?id(e,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):e[n.name]=n.newValue},ud=function(e,n){if(n==="__proto__")if(bs.call(e,n)){if(sd)return sd(e,n).value}else return;return e[n]};fd.exports=function t(){var e,n,r,s,o,l,u=arguments[0],f=1,h=arguments.length,m=!1;for(typeof u=="boolean"&&(m=u,u=arguments[1]||{},f=2),(u==null||typeof u!="object"&&typeof u!="function")&&(u={});f{var qx="2.0.0",Gx=Number.MAX_SAFE_INTEGER||9007199254740991,Xx=16,Kx=250,Jx=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Xd.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Xx,MAX_SAFE_BUILD_LENGTH:Kx,MAX_SAFE_INTEGER:Gx,RELEASE_TYPES:Jx,SEMVER_SPEC_VERSION:qx,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var si=V((YR,Kd)=>{var Zx=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Kd.exports=Zx});var br=V((It,Jd)=>{var{MAX_SAFE_COMPONENT_LENGTH:Cl,MAX_SAFE_BUILD_LENGTH:Qx,MAX_LENGTH:eE}=ii(),tE=si();It=Jd.exports={};var nE=It.re=[],rE=It.safeRe=[],L=It.src=[],iE=It.safeSrc=[],M=It.t={},sE=0,vl="[a-zA-Z0-9-]",oE=[["\\s",1],["\\d",eE],[vl,Qx]],aE=t=>{for(let[e,n]of oE)t=t.split(`${e}*`).join(`${e}{0,${n}}`).split(`${e}+`).join(`${e}{1,${n}}`);return t},X=(t,e,n)=>{let r=aE(e),s=sE++;tE(t,s,e),M[t]=s,L[s]=e,iE[s]=r,nE[s]=new RegExp(e,n?"g":void 0),rE[s]=new RegExp(r,n?"g":void 0)};X("NUMERICIDENTIFIER","0|[1-9]\\d*");X("NUMERICIDENTIFIERLOOSE","\\d+");X("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${vl}*`);X("MAINVERSION",`(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})`);X("MAINVERSIONLOOSE",`(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})`);X("PRERELEASEIDENTIFIER",`(?:${L[M.NUMERICIDENTIFIER]}|${L[M.NONNUMERICIDENTIFIER]})`);X("PRERELEASEIDENTIFIERLOOSE",`(?:${L[M.NUMERICIDENTIFIERLOOSE]}|${L[M.NONNUMERICIDENTIFIER]})`);X("PRERELEASE",`(?:-(${L[M.PRERELEASEIDENTIFIER]}(?:\\.${L[M.PRERELEASEIDENTIFIER]})*))`);X("PRERELEASELOOSE",`(?:-?(${L[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[M.PRERELEASEIDENTIFIERLOOSE]})*))`);X("BUILDIDENTIFIER",`${vl}+`);X("BUILD",`(?:\\+(${L[M.BUILDIDENTIFIER]}(?:\\.${L[M.BUILDIDENTIFIER]})*))`);X("FULLPLAIN",`v?${L[M.MAINVERSION]}${L[M.PRERELEASE]}?${L[M.BUILD]}?`);X("FULL",`^${L[M.FULLPLAIN]}$`);X("LOOSEPLAIN",`[v=\\s]*${L[M.MAINVERSIONLOOSE]}${L[M.PRERELEASELOOSE]}?${L[M.BUILD]}?`);X("LOOSE",`^${L[M.LOOSEPLAIN]}$`);X("GTLT","((?:<|>)?=?)");X("XRANGEIDENTIFIERLOOSE",`${L[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);X("XRANGEIDENTIFIER",`${L[M.NUMERICIDENTIFIER]}|x|X|\\*`);X("XRANGEPLAIN",`[v=\\s]*(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:${L[M.PRERELEASE]})?${L[M.BUILD]}?)?)?`);X("XRANGEPLAINLOOSE",`[v=\\s]*(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:${L[M.PRERELEASELOOSE]})?${L[M.BUILD]}?)?)?`);X("XRANGE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAIN]}$`);X("XRANGELOOSE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAINLOOSE]}$`);X("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Cl}})(?:\\.(\\d{1,${Cl}}))?(?:\\.(\\d{1,${Cl}}))?`);X("COERCE",`${L[M.COERCEPLAIN]}(?:$|[^\\d])`);X("COERCEFULL",L[M.COERCEPLAIN]+`(?:${L[M.PRERELEASE]})?(?:${L[M.BUILD]})?(?:$|[^\\d])`);X("COERCERTL",L[M.COERCE],!0);X("COERCERTLFULL",L[M.COERCEFULL],!0);X("LONETILDE","(?:~>?)");X("TILDETRIM",`(\\s*)${L[M.LONETILDE]}\\s+`,!0);It.tildeTrimReplace="$1~";X("TILDE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAIN]}$`);X("TILDELOOSE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAINLOOSE]}$`);X("LONECARET","(?:\\^)");X("CARETTRIM",`(\\s*)${L[M.LONECARET]}\\s+`,!0);It.caretTrimReplace="$1^";X("CARET",`^${L[M.LONECARET]}${L[M.XRANGEPLAIN]}$`);X("CARETLOOSE",`^${L[M.LONECARET]}${L[M.XRANGEPLAINLOOSE]}$`);X("COMPARATORLOOSE",`^${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]})$|^$`);X("COMPARATOR",`^${L[M.GTLT]}\\s*(${L[M.FULLPLAIN]})$|^$`);X("COMPARATORTRIM",`(\\s*)${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]}|${L[M.XRANGEPLAIN]})`,!0);It.comparatorTrimReplace="$1$2$3";X("HYPHENRANGE",`^\\s*(${L[M.XRANGEPLAIN]})\\s+-\\s+(${L[M.XRANGEPLAIN]})\\s*$`);X("HYPHENRANGELOOSE",`^\\s*(${L[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[M.XRANGEPLAINLOOSE]})\\s*$`);X("STAR","(<|>)?=?\\s*\\*");X("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");X("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Os=V((BR,Zd)=>{var lE=Object.freeze({loose:!0}),uE=Object.freeze({}),cE=t=>t?typeof t!="object"?lE:t:uE;Zd.exports=cE});var Al=V((VR,th)=>{var Qd=/^[0-9]+$/,eh=(t,e)=>{let n=Qd.test(t),r=Qd.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:teh(e,t);th.exports={compareIdentifiers:eh,rcompareIdentifiers:fE}});var Ne=V((WR,sh)=>{var Ds=si(),{MAX_LENGTH:nh,MAX_SAFE_INTEGER:Ls}=ii(),{safeRe:rh,safeSrc:ih,t:Ms}=br(),dE=Os(),{compareIdentifiers:kr}=Al(),Sl=class t{constructor(e,n){if(n=dE(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>nh)throw new TypeError(`version is longer than ${nh} characters`);Ds("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let r=e.trim().match(n.loose?rh[Ms.LOOSE]:rh[Ms.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>Ls||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ls||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ls||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(n===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(n){let o=[n,s];r===!1&&(o=[n]),kr(this.prerelease[0],n)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};sh.exports=Sl});var Mn=V((zR,ah)=>{var oh=Ne(),hE=(t,e,n=!1)=>{if(t instanceof oh)return t;try{return new oh(t,e)}catch(r){if(!n)return null;throw r}};ah.exports=hE});var uh=V((UR,lh)=>{var mE=Mn(),pE=(t,e)=>{let n=mE(t,e);return n?n.version:null};lh.exports=pE});var fh=V((HR,ch)=>{var gE=Mn(),wE=(t,e)=>{let n=gE(t.trim().replace(/^[=v]+/,""),e);return n?n.version:null};ch.exports=wE});var mh=V((jR,hh)=>{var dh=Ne(),yE=(t,e,n,r,s)=>{typeof n=="string"&&(s=r,r=n,n=void 0);try{return new dh(t instanceof dh?t.version:t,n).inc(e,r,s).version}catch{return null}};hh.exports=yE});var wh=V((qR,gh)=>{var ph=Mn(),bE=(t,e)=>{let n=ph(t,null,!0),r=ph(e,null,!0),s=n.compare(r);if(s===0)return null;let o=s>0,l=o?n:r,u=o?r:n,f=!!l.prerelease.length;if(!!u.prerelease.length&&!f){if(!u.patch&&!u.minor)return"major";if(u.compareMain(l)===0)return u.minor&&!u.patch?"minor":"patch"}let m=f?"pre":"";return n.major!==r.major?m+"major":n.minor!==r.minor?m+"minor":n.patch!==r.patch?m+"patch":"prerelease"};gh.exports=bE});var bh=V((GR,yh)=>{var kE=Ne(),xE=(t,e)=>new kE(t,e).major;yh.exports=xE});var xh=V((XR,kh)=>{var EE=Ne(),CE=(t,e)=>new EE(t,e).minor;kh.exports=CE});var Ch=V((KR,Eh)=>{var vE=Ne(),AE=(t,e)=>new vE(t,e).patch;Eh.exports=AE});var Ah=V((JR,vh)=>{var SE=Mn(),TE=(t,e)=>{let n=SE(t,e);return n&&n.prerelease.length?n.prerelease:null};vh.exports=TE});var ht=V((ZR,Th)=>{var Sh=Ne(),_E=(t,e,n)=>new Sh(t,n).compare(new Sh(e,n));Th.exports=_E});var Fh=V((QR,_h)=>{var FE=ht(),IE=(t,e,n)=>FE(e,t,n);_h.exports=IE});var Ph=V((eO,Ih)=>{var PE=ht(),RE=(t,e)=>PE(t,e,!0);Ih.exports=RE});var Ns=V((tO,Oh)=>{var Rh=Ne(),OE=(t,e,n)=>{let r=new Rh(t,n),s=new Rh(e,n);return r.compare(s)||r.compareBuild(s)};Oh.exports=OE});var Lh=V((nO,Dh)=>{var DE=Ns(),LE=(t,e)=>t.sort((n,r)=>DE(n,r,e));Dh.exports=LE});var Nh=V((rO,Mh)=>{var ME=Ns(),NE=(t,e)=>t.sort((n,r)=>ME(r,n,e));Mh.exports=NE});var oi=V((iO,$h)=>{var $E=ht(),YE=(t,e,n)=>$E(t,e,n)>0;$h.exports=YE});var $s=V((sO,Yh)=>{var BE=ht(),VE=(t,e,n)=>BE(t,e,n)<0;Yh.exports=VE});var Tl=V((oO,Bh)=>{var WE=ht(),zE=(t,e,n)=>WE(t,e,n)===0;Bh.exports=zE});var _l=V((aO,Vh)=>{var UE=ht(),HE=(t,e,n)=>UE(t,e,n)!==0;Vh.exports=HE});var Ys=V((lO,Wh)=>{var jE=ht(),qE=(t,e,n)=>jE(t,e,n)>=0;Wh.exports=qE});var Bs=V((uO,zh)=>{var GE=ht(),XE=(t,e,n)=>GE(t,e,n)<=0;zh.exports=XE});var Fl=V((cO,Uh)=>{var KE=Tl(),JE=_l(),ZE=oi(),QE=Ys(),eC=$s(),tC=Bs(),nC=(t,e,n,r)=>{switch(e){case"===":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t===n;case"!==":return typeof t=="object"&&(t=t.version),typeof n=="object"&&(n=n.version),t!==n;case"":case"=":case"==":return KE(t,n,r);case"!=":return JE(t,n,r);case">":return ZE(t,n,r);case">=":return QE(t,n,r);case"<":return eC(t,n,r);case"<=":return tC(t,n,r);default:throw new TypeError(`Invalid operator: ${e}`)}};Uh.exports=nC});var jh=V((fO,Hh)=>{var rC=Ne(),iC=Mn(),{safeRe:Vs,t:Ws}=br(),sC=(t,e)=>{if(t instanceof rC)return t;if(typeof t=="number"&&(t=String(t)),typeof t!="string")return null;e=e||{};let n=null;if(!e.rtl)n=t.match(e.includePrerelease?Vs[Ws.COERCEFULL]:Vs[Ws.COERCE]);else{let f=e.includePrerelease?Vs[Ws.COERCERTLFULL]:Vs[Ws.COERCERTL],h;for(;(h=f.exec(t))&&(!n||n.index+n[0].length!==t.length);)(!n||h.index+h[0].length!==n.index+n[0].length)&&(n=h),f.lastIndex=h.index+h[1].length+h[2].length;f.lastIndex=-1}if(n===null)return null;let r=n[2],s=n[3]||"0",o=n[4]||"0",l=e.includePrerelease&&n[5]?`-${n[5]}`:"",u=e.includePrerelease&&n[6]?`+${n[6]}`:"";return iC(`${r}.${s}.${o}${l}${u}`,e)};Hh.exports=sC});var Gh=V((dO,qh)=>{var Il=class{constructor(){this.max=1e3,this.map=new Map}get(e){let n=this.map.get(e);if(n!==void 0)return this.map.delete(e),this.map.set(e,n),n}delete(e){return this.map.delete(e)}set(e,n){if(!this.delete(e)&&n!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,n)}return this}};qh.exports=Il});var mt=V((hO,Zh)=>{var oC=/\s+/g,Pl=class t{constructor(e,n){if(n=lC(n),e instanceof t)return e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease?e:new t(e.raw,n);if(e instanceof Rl)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=e.trim().replace(oC," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(r=>r.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let r=this.set[0];if(this.set=this.set.filter(s=>!Kh(s[0])),this.set.length===0)this.set=[r];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&pC(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let n=this.set[e];for(let r=0;r0&&(this.formatted+=" "),this.formatted+=n[r].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let r=((this.options.includePrerelease&&hC)|(this.options.loose&&mC))+":"+e,s=Xh.get(r);if(s)return s;let o=this.options.loose,l=o?Qe[je.HYPHENRANGELOOSE]:Qe[je.HYPHENRANGE];e=e.replace(l,AC(this.options.includePrerelease)),fe("hyphen replace",e),e=e.replace(Qe[je.COMPARATORTRIM],cC),fe("comparator trim",e),e=e.replace(Qe[je.TILDETRIM],fC),fe("tilde trim",e),e=e.replace(Qe[je.CARETTRIM],dC),fe("caret trim",e);let u=e.split(" ").map(p=>gC(p,this.options)).join(" ").split(/\s+/).map(p=>vC(p,this.options));o&&(u=u.filter(p=>(fe("loose invalid filter",p,this.options),!!p.match(Qe[je.COMPARATORLOOSE])))),fe("range list",u);let f=new Map,h=u.map(p=>new Rl(p,this.options));for(let p of h){if(Kh(p))return[p];f.set(p.value,p)}f.size>1&&f.has("")&&f.delete("");let m=[...f.values()];return Xh.set(r,m),m}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(r=>Jh(r,n)&&e.set.some(s=>Jh(s,n)&&r.every(o=>s.every(l=>o.intersects(l,n)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new uC(e,this.options)}catch{return!1}for(let n=0;nt.value==="<0.0.0-0",pC=t=>t.value==="",Jh=(t,e)=>{let n=!0,r=t.slice(),s=r.pop();for(;n&&r.length;)n=r.every(o=>s.intersects(o,e)),s=r.pop();return n},gC=(t,e)=>(fe("comp",t,e),t=bC(t,e),fe("caret",t),t=wC(t,e),fe("tildes",t),t=xC(t,e),fe("xrange",t),t=CC(t,e),fe("stars",t),t),qe=t=>!t||t.toLowerCase()==="x"||t==="*",wC=(t,e)=>t.trim().split(/\s+/).map(n=>yC(n,e)).join(" "),yC=(t,e)=>{let n=e.loose?Qe[je.TILDELOOSE]:Qe[je.TILDE];return t.replace(n,(r,s,o,l,u)=>{fe("tilde",t,r,s,o,l,u);let f;return qe(s)?f="":qe(o)?f=`>=${s}.0.0 <${+s+1}.0.0-0`:qe(l)?f=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:u?(fe("replaceTilde pr",u),f=`>=${s}.${o}.${l}-${u} <${s}.${+o+1}.0-0`):f=`>=${s}.${o}.${l} <${s}.${+o+1}.0-0`,fe("tilde return",f),f})},bC=(t,e)=>t.trim().split(/\s+/).map(n=>kC(n,e)).join(" "),kC=(t,e)=>{fe("caret",t,e);let n=e.loose?Qe[je.CARETLOOSE]:Qe[je.CARET],r=e.includePrerelease?"-0":"";return t.replace(n,(s,o,l,u,f)=>{fe("caret",t,s,o,l,u,f);let h;return qe(o)?h="":qe(l)?h=`>=${o}.0.0${r} <${+o+1}.0.0-0`:qe(u)?o==="0"?h=`>=${o}.${l}.0${r} <${o}.${+l+1}.0-0`:h=`>=${o}.${l}.0${r} <${+o+1}.0.0-0`:f?(fe("replaceCaret pr",f),o==="0"?l==="0"?h=`>=${o}.${l}.${u}-${f} <${o}.${l}.${+u+1}-0`:h=`>=${o}.${l}.${u}-${f} <${o}.${+l+1}.0-0`:h=`>=${o}.${l}.${u}-${f} <${+o+1}.0.0-0`):(fe("no pr"),o==="0"?l==="0"?h=`>=${o}.${l}.${u}${r} <${o}.${l}.${+u+1}-0`:h=`>=${o}.${l}.${u}${r} <${o}.${+l+1}.0-0`:h=`>=${o}.${l}.${u} <${+o+1}.0.0-0`),fe("caret return",h),h})},xC=(t,e)=>(fe("replaceXRanges",t,e),t.split(/\s+/).map(n=>EC(n,e)).join(" ")),EC=(t,e)=>{t=t.trim();let n=e.loose?Qe[je.XRANGELOOSE]:Qe[je.XRANGE];return t.replace(n,(r,s,o,l,u,f)=>{fe("xRange",t,r,s,o,l,u,f);let h=qe(o),m=h||qe(l),p=m||qe(u),g=p;return s==="="&&g&&(s=""),f=e.includePrerelease?"-0":"",h?s===">"||s==="<"?r="<0.0.0-0":r="*":s&&g?(m&&(l=0),u=0,s===">"?(s=">=",m?(o=+o+1,l=0,u=0):(l=+l+1,u=0)):s==="<="&&(s="<",m?o=+o+1:l=+l+1),s==="<"&&(f="-0"),r=`${s+o}.${l}.${u}${f}`):m?r=`>=${o}.0.0${f} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${l}.0${f} <${o}.${+l+1}.0-0`),fe("xRange return",r),r})},CC=(t,e)=>(fe("replaceStars",t,e),t.trim().replace(Qe[je.STAR],"")),vC=(t,e)=>(fe("replaceGTE0",t,e),t.trim().replace(Qe[e.includePrerelease?je.GTE0PRE:je.GTE0],"")),AC=t=>(e,n,r,s,o,l,u,f,h,m,p,g)=>(qe(r)?n="":qe(s)?n=`>=${r}.0.0${t?"-0":""}`:qe(o)?n=`>=${r}.${s}.0${t?"-0":""}`:l?n=`>=${n}`:n=`>=${n}${t?"-0":""}`,qe(h)?f="":qe(m)?f=`<${+h+1}.0.0-0`:qe(p)?f=`<${h}.${+m+1}.0-0`:g?f=`<=${h}.${m}.${p}-${g}`:t?f=`<${h}.${m}.${+p+1}-0`:f=`<=${f}`,`${n} ${f}`.trim()),SC=(t,e,n)=>{for(let r=0;r0){let s=t[r].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var ai=V((mO,im)=>{var li=Symbol("SemVer ANY"),Ll=class t{static get ANY(){return li}constructor(e,n){if(n=Qh(n),e instanceof t){if(e.loose===!!n.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),Dl("comparator",e,n),this.options=n,this.loose=!!n.loose,this.parse(e),this.semver===li?this.value="":this.value=this.operator+this.semver.version,Dl("comp",this)}parse(e){let n=this.options.loose?em[tm.COMPARATORLOOSE]:em[tm.COMPARATOR],r=e.match(n);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new nm(r[2],this.options.loose):this.semver=li}toString(){return this.value}test(e){if(Dl("Comparator.test",e,this.options.loose),this.semver===li||e===li)return!0;if(typeof e=="string")try{e=new nm(e,this.options)}catch{return!1}return Ol(e,this.operator,this.semver,this.options)}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new rm(e.value,n).test(this.value):e.operator===""?e.value===""?!0:new rm(this.value,n).test(e.semver):(n=Qh(n),n.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||Ol(this.semver,"<",e.semver,n)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||Ol(this.semver,">",e.semver,n)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};im.exports=Ll;var Qh=Os(),{safeRe:em,t:tm}=br(),Ol=Fl(),Dl=si(),nm=Ne(),rm=mt()});var ui=V((pO,sm)=>{var TC=mt(),_C=(t,e,n)=>{try{e=new TC(e,n)}catch{return!1}return e.test(t)};sm.exports=_C});var am=V((gO,om)=>{var FC=mt(),IC=(t,e)=>new FC(t,e).set.map(n=>n.map(r=>r.value).join(" ").trim().split(" "));om.exports=IC});var um=V((wO,lm)=>{var PC=Ne(),RC=mt(),OC=(t,e,n)=>{let r=null,s=null,o=null;try{o=new RC(e,n)}catch{return null}return t.forEach(l=>{o.test(l)&&(!r||s.compare(l)===-1)&&(r=l,s=new PC(r,n))}),r};lm.exports=OC});var fm=V((yO,cm)=>{var DC=Ne(),LC=mt(),MC=(t,e,n)=>{let r=null,s=null,o=null;try{o=new LC(e,n)}catch{return null}return t.forEach(l=>{o.test(l)&&(!r||s.compare(l)===1)&&(r=l,s=new DC(r,n))}),r};cm.exports=MC});var mm=V((bO,hm)=>{var Ml=Ne(),NC=mt(),dm=oi(),$C=(t,e)=>{t=new NC(t,e);let n=new Ml("0.0.0");if(t.test(n)||(n=new Ml("0.0.0-0"),t.test(n)))return n;n=null;for(let r=0;r{let u=new Ml(l.semver.version);switch(l.operator){case">":u.prerelease.length===0?u.patch++:u.prerelease.push(0),u.raw=u.format();case"":case">=":(!o||dm(u,o))&&(o=u);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${l.operator}`)}}),o&&(!n||dm(n,o))&&(n=o)}return n&&t.test(n)?n:null};hm.exports=$C});var gm=V((kO,pm)=>{var YC=mt(),BC=(t,e)=>{try{return new YC(t,e).range||"*"}catch{return null}};pm.exports=BC});var zs=V((xO,km)=>{var VC=Ne(),bm=ai(),{ANY:WC}=bm,zC=mt(),UC=ui(),wm=oi(),ym=$s(),HC=Bs(),jC=Ys(),qC=(t,e,n,r)=>{t=new VC(t,r),e=new zC(e,r);let s,o,l,u,f;switch(n){case">":s=wm,o=HC,l=ym,u=">",f=">=";break;case"<":s=ym,o=jC,l=wm,u="<",f="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(UC(t,e,r))return!1;for(let h=0;h{w.semver===WC&&(w=new bm(">=0.0.0")),p=p||w,g=g||w,s(w.semver,p.semver,r)?p=w:l(w.semver,g.semver,r)&&(g=w)}),p.operator===u||p.operator===f||(!g.operator||g.operator===u)&&o(t,g.semver))return!1;if(g.operator===f&&l(t,g.semver))return!1}return!0};km.exports=qC});var Em=V((EO,xm)=>{var GC=zs(),XC=(t,e,n)=>GC(t,e,">",n);xm.exports=XC});var vm=V((CO,Cm)=>{var KC=zs(),JC=(t,e,n)=>KC(t,e,"<",n);Cm.exports=JC});var Tm=V((vO,Sm)=>{var Am=mt(),ZC=(t,e,n)=>(t=new Am(t,n),e=new Am(e,n),t.intersects(e,n));Sm.exports=ZC});var Fm=V((AO,_m)=>{var QC=ui(),ev=ht();_m.exports=(t,e,n)=>{let r=[],s=null,o=null,l=t.sort((m,p)=>ev(m,p,n));for(let m of l)QC(m,e,n)?(o=m,s||(s=m)):(o&&r.push([s,o]),o=null,s=null);s&&r.push([s,null]);let u=[];for(let[m,p]of r)m===p?u.push(m):!p&&m===l[0]?u.push("*"):p?m===l[0]?u.push(`<=${p}`):u.push(`${m} - ${p}`):u.push(`>=${m}`);let f=u.join(" || "),h=typeof e.raw=="string"?e.raw:String(e);return f.length{var Im=mt(),$l=ai(),{ANY:Nl}=$l,ci=ui(),Yl=ht(),tv=(t,e,n={})=>{if(t===e)return!0;t=new Im(t,n),e=new Im(e,n);let r=!1;e:for(let s of t.set){for(let o of e.set){let l=rv(s,o,n);if(r=r||l!==null,l)continue e}if(r)return!1}return!0},nv=[new $l(">=0.0.0-0")],Pm=[new $l(">=0.0.0")],rv=(t,e,n)=>{if(t===e)return!0;if(t.length===1&&t[0].semver===Nl){if(e.length===1&&e[0].semver===Nl)return!0;n.includePrerelease?t=nv:t=Pm}if(e.length===1&&e[0].semver===Nl){if(n.includePrerelease)return!0;e=Pm}let r=new Set,s,o;for(let w of t)w.operator===">"||w.operator===">="?s=Rm(s,w,n):w.operator==="<"||w.operator==="<="?o=Om(o,w,n):r.add(w.semver);if(r.size>1)return null;let l;if(s&&o){if(l=Yl(s.semver,o.semver,n),l>0)return null;if(l===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let w of r){if(s&&!ci(w,String(s),n)||o&&!ci(w,String(o),n))return null;for(let E of e)if(!ci(w,String(E),n))return!1;return!0}let u,f,h,m,p=o&&!n.includePrerelease&&o.semver.prerelease.length?o.semver:!1,g=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let w of e){if(m=m||w.operator===">"||w.operator===">=",h=h||w.operator==="<"||w.operator==="<=",s){if(g&&w.semver.prerelease&&w.semver.prerelease.length&&w.semver.major===g.major&&w.semver.minor===g.minor&&w.semver.patch===g.patch&&(g=!1),w.operator===">"||w.operator===">="){if(u=Rm(s,w,n),u===w&&u!==s)return!1}else if(s.operator===">="&&!ci(s.semver,String(w),n))return!1}if(o){if(p&&w.semver.prerelease&&w.semver.prerelease.length&&w.semver.major===p.major&&w.semver.minor===p.minor&&w.semver.patch===p.patch&&(p=!1),w.operator==="<"||w.operator==="<="){if(f=Om(o,w,n),f===w&&f!==o)return!1}else if(o.operator==="<="&&!ci(o.semver,String(w),n))return!1}if(!w.operator&&(o||s)&&l!==0)return!1}return!(s&&h&&!o&&l!==0||o&&m&&!s&&l!==0||g||p)},Rm=(t,e,n)=>{if(!t)return e;let r=Yl(t.semver,e.semver,n);return r>0?t:r<0||e.operator===">"&&t.operator===">="?e:t},Om=(t,e,n)=>{if(!t)return e;let r=Yl(t.semver,e.semver,n);return r<0?t:r>0||e.operator==="<"&&t.operator==="<="?e:t};Dm.exports=tv});var Ym=V((TO,$m)=>{var Bl=br(),Mm=ii(),iv=Ne(),Nm=Al(),sv=Mn(),ov=uh(),av=fh(),lv=mh(),uv=wh(),cv=bh(),fv=xh(),dv=Ch(),hv=Ah(),mv=ht(),pv=Fh(),gv=Ph(),wv=Ns(),yv=Lh(),bv=Nh(),kv=oi(),xv=$s(),Ev=Tl(),Cv=_l(),vv=Ys(),Av=Bs(),Sv=Fl(),Tv=jh(),_v=ai(),Fv=mt(),Iv=ui(),Pv=am(),Rv=um(),Ov=fm(),Dv=mm(),Lv=gm(),Mv=zs(),Nv=Em(),$v=vm(),Yv=Tm(),Bv=Fm(),Vv=Lm();$m.exports={parse:sv,valid:ov,clean:av,inc:lv,diff:uv,major:cv,minor:fv,patch:dv,prerelease:hv,compare:mv,rcompare:pv,compareLoose:gv,compareBuild:wv,sort:yv,rsort:bv,gt:kv,lt:xv,eq:Ev,neq:Cv,gte:vv,lte:Av,cmp:Sv,coerce:Tv,Comparator:_v,Range:Fv,satisfies:Iv,toComparators:Pv,maxSatisfying:Rv,minSatisfying:Ov,minVersion:Dv,validRange:Lv,outside:Mv,gtr:Nv,ltr:$v,intersects:Yv,simplifyRange:Bv,subset:Vv,SemVer:iv,re:Bl.re,src:Bl.src,tokens:Bl.t,SEMVER_SPEC_VERSION:Mm.SEMVER_SPEC_VERSION,RELEASE_TYPES:Mm.RELEASE_TYPES,compareIdentifiers:Nm.compareIdentifiers,rcompareIdentifiers:Nm.rcompareIdentifiers}});var cA={};Wu(cA,{default:()=>uA});module.exports=sy(cA);var tu=require("electron"),nu=ze(zt(),1),bp=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function oy(t){return await new Promise(e=>{let n=new FileReader;n.addEventListener("loadend",r),n.readAsDataURL(t);function r(){e(n.result)}})}async function Uu(t,e){let n=await oy(t);return new Promise(r=>{let s=new Image;s.addEventListener("load",o),s.src=n;function o(){let l=document.createElement("canvas"),u=l.getContext("2d");if(!u)throw new Error("Could not get 2D context.");let f=s.width,h=s.height;l.width=f,l.height=h,u.fillStyle="#fff",u.fillRect(0,0,f,h),u.save();let m=.5;u.translate(f*m,h*m),u.drawImage(s,0,0,f,h,-f*m,-h*m,f,h),u.restore();let p=l.toDataURL("image/jpeg",e),g=ay(p);r(g)}})}function ay(t){let n=t.split(";base64,")[1];if(!n)throw new Error("Invalid data URL");let r=window.atob(n),s=r.length,o=new Uint8Array(s);for(let l=0;l"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function Jo(t,e){let n=0;for(let r=0;r"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var St=class{eventRefsMap=new Map;off(e,n){let r=this.eventRefsMap.get(e);r&&(Jo(r,s=>s.callback!==n),r.length===0&&this.eventRefsMap.delete(e))}offref(e){let n=this.eventRefsMap.get(e.name);n&&(Jo(n,r=>r!==e),n.length===0&&this.eventRefsMap.delete(e.name))}on(e,n,r){let s=this.eventRefsMap.get(e);s||(s=[],this.eventRefsMap.set(e,s));let o={asyncEvents:this,callback:n,name:e,thisArg:r};return s.push(o),o}once(e,n,r){let s=this.on(e,n,r),o=this.on(e,()=>{this.offref(s),this.offref(o)});return s}trigger(e,...n){let r=this.eventRefsMap.get(e)??[];for(let s of r.slice())this.tryTrigger(s,n)}async triggerAsync(e,...n){let r=this.eventRefsMap.get(e)??[];for(let s of r.slice())await this.tryTriggerAsync(s,n)}tryTrigger(e,n){try{e.callback.apply(e.thisArg,n)}catch(r){setTimeout(()=>{throw r},0)}}async tryTriggerAsync(e,n){try{await e.callback.call(e.thisArg,...n)}catch(r){setTimeout(()=>{throw r},0)}}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Qo="asyncError",Zo=`Error stack: +`,Mi="An unhandled error occurred executing async operation",Li=new St;Li.on(Qo,dy);function Ni(t){Li.trigger(Qo,t)}function Ju(t){return ea(t).map(e=>" ".repeat(e.level)+(e.message.startsWith(Zo)?e.message.slice(Zo.length):e.message)).join(` +`)}function An(t=0){return(new Error().stack??"").split(` +`).slice(t+2).join(` +`)}function Lr(t,e){e??=globalThis.console;let n=ea(t);for(let r of n)r.shouldClearAnsiSequence?e.error(`\x1B[0m${r.message}\x1B[0m`):e.error(r.message)}function Zu(t){let e=Li.on(Qo,t);return()=>{Li.offref(e)}}function Ht(t){throw t}function dy(t){Lr(t)}function ea(t,e=0,n=[]){if(t===void 0)return n;if(!(t instanceof Error)){let s;return t===null?s="(null)":typeof t=="string"?s=t:s=JSON.stringify(t)??"undefined",n.push({level:e,message:s}),n}let r=`${t.name}: ${t.message}`;if(n.push({level:e,message:r,shouldClearAnsiSequence:!0}),t.stack){let s=t.stack.startsWith(r)?t.stack.slice(r.length+1):t.stack;n.push({level:e,message:`${Zo}${s}`})}return t.cause!==void 0&&(n.push({level:e,message:"Caused by:"}),ea(t.cause,e+1,n)),n}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function Xn(t){return t.replaceAll(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Qu(t){try{return new RegExp(t),!0}catch{return!1}}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function Sn(t,...e){return hy(t)?await t(...e):t}function hy(t){return typeof t=="function"}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var my={"\n":"\\n","\r":"\\r"," ":"\\t","\b":"\\b","\f":"\\f","'":"\\'",'"':'\\"',"\\":"\\\\"},py={};for(let[t,e]of Object.entries(my))py[e]=t;function ec(t,e,n,r){return r??=n,t.slice(0,n)+e+t.slice(r)}function Mr(t){return Ae(t,/\u00A0|\u202F/g," ").normalize("NFC")}function Ae(t,e,n){return typeof n>"u"?t:(e instanceof RegExp&&!e.global&&(e=new RegExp(e.source,`${e.flags}g`)),typeof n=="string"?t.replaceAll(e,n):t.replaceAll(e,(r,...s)=>{let l=typeof s.at(-1)=="object",u=l?s.length-2:s.length-1,f={groups:l?s.at(-1):void 0,offset:s.at(u-1),source:s.at(u),substring:r},h=s.slice(0,u-1);return n(f,...h)??f.substring}))}async function tc(t,e,n){if(typeof n=="string")return Ae(t,e,n);let r=[];Ae(t,e,(o,...l)=>(r.push(Sn(n,o,...l)),""));let s=await Promise.all(r);return Ae(t,e,o=>s.shift()??o.substring)}function $i(t,e,n){if(t.endsWith(e))return t.slice(0,-e.length);if(n)throw new Error(`String ${t} does not end with suffix ${e}`);return t}function Kn(t,e,n){if(t.startsWith(e))return t.slice(e.length);if(n)throw new Error(`String ${t} does not start with prefix ${e}`);return t}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var gy=/[a-zA-Z]:\/[^:]*$/,Tt=ta.default.posix,PA=Tt.delimiter,RA=ta.default.posix.sep,pe=Tt.basename,be=Tt.dirname,Se=Tt.extname,OA=Tt.format;var ke=Tt.join,DA=Tt.normalize,LA=Tt.parse,Jn=Tt.relative;function an(t,e){return e?`${t}.${e}`:t}function nc(...t){let e=Tt.resolve(...t);return e=wy(e),gy.exec(e)?.[0]??e}function wy(t){return Ae(t,"\\","/")}var jt=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var ic="md",yy="canvas";function sc(t,e,n){if(ct(e))return e.extension===n;if(typeof e=="string"){let r=Ke(t,e);return r?r.extension===n:Se(e).slice(1)===n}return!1}function Tn(t,e,n){if(e===null)return null;if(oc(e))return e;let r=rc(t,e,n);if(r)return r;let s=lc(e);return s===e?null:rc(t,s,n)}function Le(t,e,n,r){let s=Ke(t,e,r);if(!s)if(n)s=qu(t,e);else throw new Error(`File not found: ${e}`);return s}function Ke(t,e,n){let r=Tn(t,e,n);return ct(r)?r:null}function Nr(t,e,n,r){let s=_t(t,e,r);if(!s)if(n)s=Di(t,e);else throw new Error(`Folder not found: ${e}`);return s}function _t(t,e,n){let r=Tn(t,e,n);return na(r)?r:null}function we(t,e){if(oc(e))return e.path;let n=Tn(t,e);return n?n.path:lc(e)}function oc(t){return t instanceof jt.TAbstractFile}function qt(t,e){return sc(t,e,yy)}function ct(t){return t instanceof jt.TFile}function na(t){return t instanceof jt.TFolder}function Gt(t,e){return sc(t,e,ic)}function Je(t,e){return Gt(t,e)||qt(t,e)}function ac(t,e){return Gt(t,e)?$i(e.path,`.${ic}`):e.path}function rc(t,e,n){return n?t.vault.getAbstractFileByPathInsensitive(e):t.vault.getAbstractFileByPath(e)}function lc(t){return(0,jt.normalizePath)(nc("/",t))}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function by(t,e,n){let r=we(t,e),s=we(t,n),o=Le(t,s,!0),l=Se(r),u=pe(r,l),f=t.vault.getAvailablePathForAttachments;return f.isExtended?f(u,l.slice(1),o,!0):await ra(t,u,l.slice(1),o,!0)}async function Zn(t,e){return ut(await by(t,"DUMMY_FILE.pdf",e))}async function ra(t,e,n,r,s){let o=t.vault.getConfig("attachmentFolderPath"),l=o==="."||o==="./",u=null;o.startsWith("./")&&(u=Kn(o,"./")),l?o=r?r.parent?.path??"":"":u&&(o=(r?r.parent?.getParentPrefix()??"":"")+u),o=Mr(uc(o)),e=Mr(uc(e));let f=_t(t,o,!0);!f&&u&&(s?f=Nr(t,o,!0):f=await t.vault.createFolder(o));let h=f?.getParentPrefix()??"";return t.vault.getAvailablePath(h+e,n)}async function ia(t,e){let n=await Zn(t,e),r=await Zn(t,ke(be(e),"DUMMY_FILE.md"));return n!==r}function uc(t){return t=Ae(t,/(?:[\\/])+/g,"/"),t=Ae(t,/^\/+|\/+$/g,""),t||"/"}var hc=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var B=(t=>(t.AlertModal="alert-modal",t.CancelButton="cancel-button",t.CheckboxComponent="checkbox-component",t.ConfirmModal="confirm-modal",t.DateComponent="date-component",t.DateTimeComponent="datetime-component",t.EmailComponent="email-component",t.FileComponent="file-component",t.LibraryName="obsidian-dev-utils",t.MonthComponent="month-component",t.MultipleDropdownComponent="multiple-dropdown-component",t.MultipleEmailComponent="multiple-email-component",t.MultipleFileComponent="multiple-file-component",t.MultipleTextComponent="multiple-text-component",t.NumberComponent="number-component",t.OkButton="ok-button",t.PluginSettingsTab="plugin-settings-tab",t.PromptModal="prompt-modal",t.SelectItemModal="select-item-modal",t.TextBox="text-box",t.TimeComponent="time-component",t.TriStateCheckboxComponent="tri-state-checkbox-component",t.TypedDropdownComponent="typed-dropdown-component",t.TypedMultipleDropdownComponent="typed-multiple-dropdown-component",t.UrlComponent="url-component",t.WeekComponent="week-component",t))(B||{});var dc=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var sa="__no-plugin-id-initialized__",cc=sa;function xe(){return cc}function fc(t){t&&(cc=t)}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var ln=class extends dc.Modal{constructor(e,n,r){super(e.app),this.resolve=n,this.containerEl.addClass(B.LibraryName,xe(),r),e.cssClass&&this.containerEl.addClass(e.cssClass)}};async function Qn(t){return await new Promise(e=>{t(e).open()})}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var oa=class extends ln{options;constructor(e,n){super(e,n,B.AlertModal);let r={app:e.app,cssClass:"",message:e.message,okButtonText:"OK",title:""};this.options={...r,...e}}onClose(){super.onClose(),this.resolve()}onOpen(){super.onOpen(),this.titleEl.setText(this.options.title),this.contentEl.createEl("p",{text:this.options.message});let e=new hc.ButtonComponent(this.contentEl);e.setButtonText(this.options.okButtonText),e.setCta(),e.onClick(this.close.bind(this)),e.setClass(B.OkButton)}};async function mc(t){await Qn(e=>new oa(t,e))}function pc(t,e){let n=Object.keys(e).map(r=>ky(t,r,e[r]));return n.length===1?n[0]:function(){n.forEach(r=>r())}}function ky(t,e,n){let r=t[e],s=t.hasOwnProperty(e),o=s?r:function(){return Object.getPrototypeOf(t)[e].apply(this,arguments)},l=n(o);return r&&Object.setPrototypeOf(l,r),Object.setPrototypeOf(u,l),t[e]=u,f;function u(...h){return l===o&&t[e]===u&&f(),l.apply(this,h)}function f(){t[e]===u&&(s?t[e]=o:delete t[e]),l!==o&&(l=o,Object.setPrototypeOf(u,r||Function))}}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function gc(t,e){return pc(t,e)}async function wc(t,e,n){let r=gc(t,e);try{return await n()}finally{r()}}function Yi(t,e,n){let r=gc(e,n),s=!1;function o(){if(!s)try{r()}finally{s=!0}}return t.register(o),r}var Zi=require("obsidian");var ha=ze(Fc(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var fa="26.1.2",Ui="obsidian-dev-utils",Ic=`.obsidian-dev-utils input[type=url] { + height: var(--input-height); +} +.obsidian-dev-utils input[type=month], +.obsidian-dev-utils input[type=time], +.obsidian-dev-utils input[type=url], +.obsidian-dev-utils input[type=week] { + -webkit-app-region: no-drag; + background: var(--background-modifier-form-field); + border: var(--input-border-width) solid var(--background-modifier-border); + color: var(--text-normal); + font-family: inherit; + padding: var(--size-4-1) var(--size-4-2); + font-size: var(--font-ui-small); + border-radius: var(--input-radius); + outline: none; +} +@media (hover: hover) { + .obsidian-dev-utils input[type=month]:hover, + .obsidian-dev-utils input[type=time]:hover, + .obsidian-dev-utils input[type=url]:hover, + .obsidian-dev-utils input[type=week]:hover { + border-color: var(--background-modifier-border-hover); + transition: box-shadow 0.15s ease-in-out, border 0.15s ease-in-out; + } +} +.obsidian-dev-utils input[type=month]:active, .obsidian-dev-utils input[type=month]:focus, +.obsidian-dev-utils input[type=time]:active, +.obsidian-dev-utils input[type=time]:focus, +.obsidian-dev-utils input[type=url]:active, +.obsidian-dev-utils input[type=url]:focus, +.obsidian-dev-utils input[type=week]:active, +.obsidian-dev-utils input[type=week]:focus { + border-color: var(--background-modifier-border-focus); + transition: box-shadow 0.15s ease-in-out, border 0.15s ease-in-out; +} +.obsidian-dev-utils input[type=month]:active, .obsidian-dev-utils input[type=month]:focus, .obsidian-dev-utils input[type=month]:focus-visible, +.obsidian-dev-utils input[type=time]:active, +.obsidian-dev-utils input[type=time]:focus, +.obsidian-dev-utils input[type=time]:focus-visible, +.obsidian-dev-utils input[type=url]:active, +.obsidian-dev-utils input[type=url]:focus, +.obsidian-dev-utils input[type=url]:focus-visible, +.obsidian-dev-utils input[type=week]:active, +.obsidian-dev-utils input[type=week]:focus, +.obsidian-dev-utils input[type=week]:focus-visible { + box-shadow: 0 0 0 2px var(--background-modifier-border-focus); +} +.obsidian-dev-utils input[type=month]::placeholder, +.obsidian-dev-utils input[type=time]::placeholder, +.obsidian-dev-utils input[type=url]::placeholder, +.obsidian-dev-utils input[type=week]::placeholder { + color: var(--text-faint); +} +.mod-rtl input[type=month], +.mod-rtl input[type=time], +.mod-rtl input[type=week], +.is-rtl input[type=month], +.is-rtl input[type=time], +.is-rtl input[type=week], +.rtl input[type=month], +.rtl input[type=time], +.rtl input[type=week] { + direction: rtl; +} +.mod-rtl input[type=month]::-webkit-calendar-picker-indicator, +.mod-rtl input[type=time]::-webkit-calendar-picker-indicator, +.mod-rtl input[type=week]::-webkit-calendar-picker-indicator, +.is-rtl input[type=month]::-webkit-calendar-picker-indicator, +.is-rtl input[type=time]::-webkit-calendar-picker-indicator, +.is-rtl input[type=week]::-webkit-calendar-picker-indicator, +.rtl input[type=month]::-webkit-calendar-picker-indicator, +.rtl input[type=time]::-webkit-calendar-picker-indicator, +.rtl input[type=week]::-webkit-calendar-picker-indicator { + right: var(--size-4-1); + left: auto; +} + +.obsidian-dev-utils input[type=month], +.obsidian-dev-utils input[type=time], +.obsidian-dev-utils input[type=week] { + font-variant-numeric: tabular-nums; + position: relative; +} +.obsidian-dev-utils input[type=month]::-webkit-datetime-edit-text, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-text, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-text { + color: var(--text-faint); + padding-inline-end: 0; +} +.obsidian-dev-utils input[type=month]::-webkit-calendar-picker-indicator, +.obsidian-dev-utils input[type=time]::-webkit-calendar-picker-indicator, +.obsidian-dev-utils input[type=week]::-webkit-calendar-picker-indicator { + position: absolute; + left: var(--size-4-1); + right: auto; + opacity: 0.5; +} +.obsidian-dev-utils input[type=month]::-webkit-datetime-edit-month-field:active, .obsidian-dev-utils input[type=month]::-webkit-datetime-edit-month-field:focus, .obsidian-dev-utils input[type=month]::-webkit-datetime-edit-day-field:active, .obsidian-dev-utils input[type=month]::-webkit-datetime-edit-day-field:focus, .obsidian-dev-utils input[type=month]::-webkit-datetime-edit-year-field:active, .obsidian-dev-utils input[type=month]::-webkit-datetime-edit-year-field:focus, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-month-field:active, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-month-field:focus, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-day-field:active, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-day-field:focus, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-year-field:active, +.obsidian-dev-utils input[type=time]::-webkit-datetime-edit-year-field:focus, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-month-field:active, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-month-field:focus, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-day-field:active, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-day-field:focus, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-year-field:active, +.obsidian-dev-utils input[type=week]::-webkit-datetime-edit-year-field:focus { + background-color: var(--text-selection); + color: var(--text-normal); + cursor: text; +} +.mod-rtl .obsidian-dev-utils input[type=month], .is-rtl .obsidian-dev-utils input[type=month], .rtl .obsidian-dev-utils input[type=month], +.mod-rtl .obsidian-dev-utils input[type=time], +.is-rtl .obsidian-dev-utils input[type=time], +.rtl .obsidian-dev-utils input[type=time], +.mod-rtl .obsidian-dev-utils input[type=week], +.is-rtl .obsidian-dev-utils input[type=week], +.rtl .obsidian-dev-utils input[type=week] { + direction: rtl; +} +.mod-rtl .obsidian-dev-utils input[type=month]::-webkit-calendar-picker-indicator, .is-rtl .obsidian-dev-utils input[type=month]::-webkit-calendar-picker-indicator, .rtl .obsidian-dev-utils input[type=month]::-webkit-calendar-picker-indicator, +.mod-rtl .obsidian-dev-utils input[type=time]::-webkit-calendar-picker-indicator, +.is-rtl .obsidian-dev-utils input[type=time]::-webkit-calendar-picker-indicator, +.rtl .obsidian-dev-utils input[type=time]::-webkit-calendar-picker-indicator, +.mod-rtl .obsidian-dev-utils input[type=week]::-webkit-calendar-picker-indicator, +.is-rtl .obsidian-dev-utils input[type=week]::-webkit-calendar-picker-indicator, +.rtl .obsidian-dev-utils input[type=week]::-webkit-calendar-picker-indicator { + left: auto; + right: var(--size-4-1); +} + +body:not(.is-ios):not(.is-android) .obsidian-dev-utils input[type=month], +body:not(.is-ios):not(.is-android) .obsidian-dev-utils input[type=time], +body:not(.is-ios):not(.is-android) .obsidian-dev-utils input[type=week] { + padding-inline-start: var(--size-4-6); +} + +.obsidian-dev-utils input[type=time]::-webkit-calendar-picker-indicator { + margin-inline-start: 0; +} + +.obsidian-dev-utils.modal-container .ok-button { + margin-right: 10px; + margin-top: 20px; +} + +.obsidian-dev-utils .multiple-dropdown-component select, +.obsidian-dev-utils .multiple-dropdown-component select:focus, +.obsidian-dev-utils .multiple-dropdown-component .dropdown { + height: auto; + padding-top: 3px; +} +.obsidian-dev-utils .multiple-dropdown-component select option:checked, +.obsidian-dev-utils .multiple-dropdown-component select:focus option:checked, +.obsidian-dev-utils .multiple-dropdown-component .dropdown option:checked { + background-color: #1967d2; + color: #fff; +} + +.obsidian-dev-utils.prompt-modal .text-box { + width: 100%; +} + +.obsidian-dev-utils.tri-state-checkbox-component input[type=checkbox]:indeterminate { + appearance: checkbox; +} + +.obsidian-dev-utils :invalid { + box-shadow: 0 0 0 2px var(--text-error); +} + +/*# sourceMappingURL=data:application/json;charset=utf-8,%7B%22version%22:3,%22sourceRoot%22:%22%22,%22sources%22:%5B%22../src/styles/input.scss%22,%22../src/styles/input-time.scss%22,%22../src/styles/modal-container.scss%22,%22../src/styles/multiple-dropdown-component.scss%22,%22../src/styles/prompt-modal.scss%22,%22../src/styles/tri-state-checkbox-component.scss%22,%22../src/styles/validation.scss%22%5D,%22names%22:%5B%5D,%22mappings%22:%22AACE;EACE;;AAGF;AAAA;AAAA;AAAA;EAIE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAGE;EACE;AAAA;AAAA;AAAA;IACE;IACA,YACE;;;AAMR;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA,YACE;;AAIJ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AAGF;AAAA;AAAA;AAAA;EACE;;AASE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGE;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;;AC5DV;AAAA;AAAA;EAGE;EACA;;AAEA;AAAA;AAAA;EACE;EACA;;AAGF;AAAA;AAAA;EACE;EACA;EACA;EACA;;AAMA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAEE;EACA;EACA;;AAIK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EAGP;;AAEA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;EACE;EACA;;;AAKF;AAAA;AAAA;EACE;;;AAMJ;EACE;;;AChDF;EACE;EACA;;;ACFF;AAAA;AAAA;EAGE;EACA;;AAEA;AAAA;AAAA;EACE;EACA;;;ACRJ;EACE;;;ACDF;EACE;;;ACFJ;EACE%22,%22file%22:%22styles.css%22,%22sourcesContent%22:%5B%22.obsidian-dev-utils%20%7B%5Cn%20%20input%5Btype='url'%5D%20%7B%5Cn%20%20%20%20height:%20var(--input-height)%5Cn%20%20%7D%5Cn%5Cn%20%20input%5Btype='month'%5D,%5Cn%20%20input%5Btype='time'%5D,%5Cn%20%20input%5Btype='url'%5D,%5Cn%20%20input%5Btype='week'%5D%20%7B%5Cn%20%20%20%20-webkit-app-region:%20no-drag;%5Cn%20%20%20%20background:%20var(--background-modifier-form-field);%5Cn%20%20%20%20border:%20var(--input-border-width)%20solid%20var(--background-modifier-border);%5Cn%20%20%20%20color:%20var(--text-normal);%5Cn%20%20%20%20font-family:%20inherit;%5Cn%20%20%20%20padding:%20var(--size-4-1)%20var(--size-4-2);%5Cn%20%20%20%20font-size:%20var(--font-ui-small);%5Cn%20%20%20%20border-radius:%20var(--input-radius);%5Cn%20%20%20%20outline:%20none;%5Cn%5Cn%20%20%20%20@at-root%20%7B%5Cn%20%20%20%20%20%20@media%20(hover:%20hover)%20%7B%5Cn%20%20%20%20%20%20%20%20&:hover%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20border-color:%20var(--background-modifier-border-hover);%5Cn%20%20%20%20%20%20%20%20%20%20transition:%5Cn%20%20%20%20%20%20%20%20%20%20%20%20box-shadow%200.15s%20ease-in-out,%5Cn%20%20%20%20%20%20%20%20%20%20%20%20border%200.15s%20ease-in-out;%5Cn%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20&:active,%5Cn%20%20%20%20&:focus%20%7B%5Cn%20%20%20%20%20%20border-color:%20var(--background-modifier-border-focus);%5Cn%20%20%20%20%20%20transition:%5Cn%20%20%20%20%20%20%20%20box-shadow%200.15s%20ease-in-out,%5Cn%20%20%20%20%20%20%20%20border%200.15s%20ease-in-out;%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20&:active,%5Cn%20%20%20%20&:focus,%5Cn%20%20%20%20&:focus-visible%20%7B%5Cn%20%20%20%20%20%20box-shadow:%200%200%200%202px%20var(--background-modifier-border-focus);%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20&::placeholder%20%7B%5Cn%20%20%20%20%20%20color:%20var(--text-faint);%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%5Cn%20%20@at-root%20%7B%5Cn%20%20%20%20.mod-rtl,%5Cn%20%20%20%20.is-rtl,%5Cn%20%20%20%20.rtl%20%7B%5Cn%20%20%20%20%20%20&%20%7B%5Cn%20%20%20%20%20%20%20%20input%5Btype='month'%5D,%5Cn%20%20%20%20%20%20%20%20input%5Btype='time'%5D,%5Cn%20%20%20%20%20%20%20%20input%5Btype='week'%5D%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20direction:%20rtl;%5Cn%5Cn%20%20%20%20%20%20%20%20%20%20&::-webkit-calendar-picker-indicator%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20right:%20var(--size-4-1);%5Cn%20%20%20%20%20%20%20%20%20%20%20%20left:%20auto;%5Cn%20%20%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%22,%22.obsidian-dev-utils%20%7B%5Cn%20%20input%5Btype='month'%5D,%5Cn%20%20input%5Btype='time'%5D,%5Cn%20%20input%5Btype='week'%5D%20%7B%5Cn%20%20%20%20font-variant-numeric:%20tabular-nums;%5Cn%20%20%20%20position:%20relative;%5Cn%5Cn%20%20%20%20&::-webkit-datetime-edit-text%20%7B%5Cn%20%20%20%20%20%20color:%20var(--text-faint);%5Cn%20%20%20%20%20%20padding-inline-end:%200;%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20&::-webkit-calendar-picker-indicator%20%7B%5Cn%20%20%20%20%20%20position:%20absolute;%5Cn%20%20%20%20%20%20left:%20var(--size-4-1);%5Cn%20%20%20%20%20%20right:%20auto;%5Cn%20%20%20%20%20%20opacity:%200.5;%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20&::-webkit-datetime-edit-month-field,%5Cn%20%20%20%20&::-webkit-datetime-edit-day-field,%5Cn%20%20%20%20&::-webkit-datetime-edit-year-field%20%7B%5Cn%20%20%20%20%20%20&:active,%5Cn%20%20%20%20%20%20&:focus%20%7B%5Cn%20%20%20%20%20%20%20%20background-color:%20var(--text-selection);%5Cn%20%20%20%20%20%20%20%20color:%20var(--text-normal);%5Cn%20%20%20%20%20%20%20%20cursor:%20text;%5Cn%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20@at-root%20.mod-rtl%20&,%5Cn%20%20%20%20%20%20.is-rtl%20&,%5Cn%20%20%20%20%20%20.rtl%20&%20%7B%5Cn%20%20%20%20%20%20direction:%20rtl;%5Cn%5Cn%20%20%20%20%20%20&::-webkit-calendar-picker-indicator%20%7B%5Cn%20%20%20%20%20%20%20%20left:%20auto;%5Cn%20%20%20%20%20%20%20%20right:%20var(--size-4-1);%5Cn%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%5Cn%20%20%20%20@at-root%20%7B%5Cn%20%20%20%20%20%20body:not(.is-ios):not(.is-android)%20&%20%7B%5Cn%20%20%20%20%20%20%20%20padding-inline-start:%20var(--size-4-6);%5Cn%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%5Cn%20%20input%5Btype='time'%5D%20%7B%5Cn%20%20%20%20&::-webkit-calendar-picker-indicator%20%7B%5Cn%20%20%20%20%20%20margin-inline-start:%200;%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%22,%22.obsidian-dev-utils%20%7B%5Cn%20%20&.modal-container%20%7B%5Cn%20%20%20%20.ok-button%20%7B%5Cn%20%20%20%20%20%20margin-right:%2010px;%5Cn%20%20%20%20%20%20margin-top:%2020px;%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%22,%22.obsidian-dev-utils%20%7B%5Cn%20%20.multiple-dropdown-component%20%7B%5Cn%20%20%20%20select,%5Cn%20%20%20%20select:focus,%5Cn%20%20%20%20.dropdown%20%7B%5Cn%20%20%20%20%20%20height:%20auto;%5Cn%20%20%20%20%20%20padding-top:%203px;%5Cn%5Cn%20%20%20%20%20%20option:checked%20%7B%5Cn%20%20%20%20%20%20%20%20background-color:%20%231967d2;%5Cn%20%20%20%20%20%20%20%20color:%20%23fff;%5Cn%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%22,%22.obsidian-dev-utils%20%7B%5Cn%20%20&.prompt-modal%20%7B%5Cn%20%20%20%20.text-box%20%7B%5Cn%20%20%20%20%20%20width:%20100%25;%5Cn%20%20%20%20%7D%5Cn%20%20%7D%5Cn%7D%5Cn%22,%22.obsidian-dev-utils%20%7B%5Cr%5Cn%20%20&.tri-state-checkbox-component%20%7B%5Cr%5Cn%20%20%20%20input%5Btype='checkbox'%5D:indeterminate%20%7B%5Cr%5Cn%20%20%20%20%20%20appearance:%20checkbox;%5Cr%5Cn%20%20%20%20%7D%5Cr%5Cn%20%20%7D%5Cr%5Cn%7D%5Cr%5Cn%22,%22.obsidian-dev-utils%20%7B%5Cn%20%20:invalid%20%7B%5Cn%20%20%20%20box-shadow:%200%200%200%202px%20var(--text-error);%5Cn%20%20%7D%5Cn%7D%5Cn%22%5D%7D */ +`;(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function Xt(){}async function it(){}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var da=class{constructor(e){this.value=e}};function Pc(){try{return globalThis.require("obsidian/app")}catch{return globalThis.app??Ht(new Error("Obsidian app not found"))}}function cn(t,e,n){let r=t;return r.obsidianDevUtilsState??={},r.obsidianDevUtilsState[e]??=new da(n)}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Rc=",",Hi="-";function Oc(){return{disable:zy,enable:Uy,get:qi,set:$r}}function ji(t,e=0){let n=rr()(t);return n.log=(r,...s)=>{Hy(t,e,r,...s)},n.printStackTrace=(r,s)=>{Mc(t,r,s)},n}function Ze(t){let e=xe(),n=e===sa?"":`${e}:`;return ji(`${n}${Ui}:${t}`)}function Dc(t){let e=rr().enabled(t),n=e?"enabled":"disabled",r=e?"disable":"enable",s=qi();$r(t),ji(t)(`Debug messages for plugin ${t} are ${n}. See https://github.com/mnaoumov/obsidian-dev-utils/?tab=readme-ov-file#debugging how to ${r} them.`),$r(s)}function zy(t){let e=new Set(qi());for(let n of Yr(t)){if(n.startsWith(Hi))continue;let r=Hi+n;e.has(n)&&e.delete(n),e.add(r)}$r(Array.from(e))}function Uy(t){let e=new Set(qi());for(let n of Yr(t)){if(!n.startsWith(Hi)){let r=Hi+n;e.has(r)&&e.delete(r)}e.add(n)}$r(Array.from(e))}function qi(){return Yr(rr().load()??"")}function rr(){if(typeof window>"u")return ha.default;let t=Pc();return cn(t,"debug",ha.default).value}function Lc(){return typeof window<"u"}function Hy(t,e,n,...r){if(!rr().enabled(t))return;let l=(new Error().stack?.split(` +`)??[])[4+e]??"";console.debug(n,...r),Lc()&&Mc(t,l,"Debug message caller")}function Mc(t,e,n){let r=rr()(t);if(!r.enabled)return;e||(e="(unavailable)"),(n??"")||(n="Caller stack trace"),r(n);let s=Lc()?`StackTraceFakeError +`:"";console.debug(`${s}${e}`)}function $r(t){rr().enable(Yr(t).join(Rc))}function Yr(t){return typeof t=="string"?t.split(Rc).filter(Boolean):t.flatMap(Yr)}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function ma(t){let e=new Error(Mi);try{await t()}catch(n){e.cause=n,Ni(e)}}function fn(t){return(...e)=>{Kt(()=>t(...e))}}function Kt(t){ma(t)}function Nc(t,e=0){setTimeout(fn(async()=>await t()),e)}async function Br(t,e,n){let r=Ze("Async:retryWithTimeout");n??=An(1);let o={...{retryDelayInMilliseconds:100,shouldRetryOnError:!1,timeoutInMilliseconds:5e3},...e};await pa(o.timeoutInMilliseconds,async()=>{let l=0;for(;;){o.abortSignal?.throwIfAborted(),l++;let u;try{u=await t()}catch(f){if(!o.shouldRetryOnError||f.__terminateRetry)throw f;Lr(f),u=!1}if(u){l>1&&(r(`Retry completed successfully after ${l.toString()} attempts`),r.printStackTrace(n));return}r(`Retry attempt ${l.toString()} completed unsuccessfully. Trying again in ${o.retryDelayInMilliseconds.toString()} milliseconds`,{fn:t}),r.printStackTrace(n),await $c(o.retryDelayInMilliseconds)}})}async function pa(t,e){let n=!0,r=null,s=performance.now();if(await Promise.race([o(),l()]),n)throw new Error("Timed out");return r;async function o(){r=await e(),n=!1;let u=performance.now()-s;Ze("Async:runWithTimeout")(`Execution time: ${u.toString()} milliseconds`,{fn:e})}async function l(){if(!n||(await $c(t),!n))return;let u=performance.now()-s;console.warn(`Timed out in ${u.toString()} milliseconds`,{fn:e});let f=Ze("Async:runWithTimeout:timeout");f.enabled&&(f(`The execution is not terminated because debugger ${f.namespace} is enabled. See https://github.com/mnaoumov/obsidian-dev-utils/?tab=readme-ov-file#debugging for more information`),await l())}}async function $c(t){await new Promise(e=>{setTimeout(e,t)})}var Yc=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Gi=class extends Yc.Component{registerAsyncEvent(e){Xi(this,e)}};function Xi(t,e){t.register(()=>{e.asyncEvents.offref(e)})}var zc=ze(Vc(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Wc=`${Ui}-styles`;function Uc(t,e){fc(e),Dc(e);let n=cn(t,"lastLibraryVersion","0.0.0");if((0,zc.compareVersions)(fa,n.value)<=0)return;n.value=fa;let r=jy();r.DEBUG=Oc(),document.head.querySelector(`#${Wc}`)?.remove(),document.head.createEl("style",{attr:{id:Wc},text:Ic})}function jy(){return window}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Ji=class extends Zi.Plugin{events=new St;get abortSignal(){return this._abortSignal}get settings(){return this.settingsManager.settingsWrapper.safeSettings}get settingsManager(){if(!this._settingsManager)throw new Error("Settings manager not defined");return this._settingsManager}get settingsTab(){if(!this._settingsTab)throw new Error("Settings tab not defined");return this._settingsTab}_abortSignal;_settingsManager=null;_settingsTab=null;lifecycleEventNames=new Set;notice;consoleDebug(e,...n){ji(this.manifest.id,1)(e,...n)}async onExternalSettingsChange(){await super.onExternalSettingsChange?.(),await this._settingsManager?.loadFromFile(!1)}async onload(){await super.onload(),await this.onloadImpl(),Nc(this.afterLoad.bind(this))}onunload(){super.onunload(),Kt(async()=>{try{await this.onunloadImpl()}finally{await this.triggerLifecycleEvent("unload")}})}async waitForLifecycleEvent(e){this.lifecycleEventNames.has(e)||await new Promise(n=>{this.events.once(e,()=>{n()})})}createSettingsManager(){return null}createSettingsTab(){return null}async onLayoutReady(){await it()}async onloadImpl(){Uc(this.app,this.manifest.id),this.register(Zu(()=>{this.showNotice("An unhandled error occurred. Please check the console for more information.")})),this._settingsManager=this.createSettingsManager(),this._settingsManager&&(Xi(this,this._settingsManager.on("loadSettings",this.onLoadSettings.bind(this))),Xi(this,this._settingsManager.on("saveSettings",this.onSaveSettings.bind(this)))),await this._settingsManager?.loadFromFile(!0),this._settingsTab=this.createSettingsTab(),this._settingsTab&&this.addSettingTab(this._settingsTab);let e=new AbortController;this._abortSignal=e.signal,this.register(()=>{e.abort()})}async onLoadSettings(e,n){await it()}async onSaveSettings(e,n,r){await it()}async onunloadImpl(){await it()}showNotice(e){this.notice&&this.notice.hide(),this.notice=new Zi.Notice(`${this.manifest.name} +${e}`)}async afterLoad(){await this.triggerLifecycleEvent("load"),this.app.workspace.onLayoutReady(fn(this.onLayoutReadyBase.bind(this)))}async onLayoutReadyBase(){try{await this.onLayoutReady()}finally{await this.triggerLifecycleEvent("layoutReady")}}async triggerLifecycleEvent(e){this.lifecycleEventNames.add(e),await this.events.triggerAsync(e)}};var Hd=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Hc=".";function dn(t,e){if(t===e)return!0;if(typeof t!="object"||typeof e!="object"||t===null||e===null)return!1;let n=ir(t),r=ir(e);if(n.length!==r.length)return!1;let s=t,o=e;for(let l of n)if(!r.includes(l)||!dn(s[l],o[l]))return!1;return!0}function ir(t){let e=[],n=t;for(;n;){let r=Object.getOwnPropertyDescriptors(n);for(let[s,o]of Object.entries(r)){if(s==="__proto__"||typeof o.value=="function")continue;let l=typeof o.get=="function",u=typeof o.set=="function";if(l||u){l&&u&&e.push(s);continue}o.enumerable&&o.writable&&e.push(s)}n=Object.getPrototypeOf(n)}return e.sort()}function sr(t,e){let n=t,r=e.split(Hc);for(let s of r){if(n===void 0)return;n=n[s]}return n}function jc(t,e,n){let r=new Error(`Property path ${e} not found`),s=t,o=e.split(Hc);for(let u of o.slice(0,-1)){if(s===void 0)throw r;s=s[u]}let l=o.at(-1);if(s===void 0||l===void 0)throw r;s[l]=n}function or(t,e={}){let n={functionHandlingMode:"exclude",maxDepth:-1,shouldCatchToJSONErrors:!1,shouldHandleCircularReferences:!1,shouldHandleErrors:!1,shouldHandleUndefined:!1,shouldSortKeys:!1,space:2,tokenSubstitutions:{circularReference:ga("CircularReference"),maxDepthLimitReached:ga("MaxDepthLimitReached"),toJSONFailed:ga("ToJSONFailed")}},r={...n,...e,tokenSubstitutions:{...n.tokenSubstitutions,...e.tokenSubstitutions}};r.maxDepth===-1&&(r.maxDepth=1/0);let s=[],l=Qi(t,"",0,!0,r,s,new WeakSet),u=JSON.stringify(l,null,r.space)??"";return u=Ae(u,/"\[\[(?[A-Za-z]+)(?\d*)\]\]"/g,(f,h,m)=>qy({functionTexts:s,index:m?parseInt(m,10):0,key:h,substitutions:r.tokenSubstitutions})),u}function qy(t){switch(t.key){case"CircularReference":return t.substitutions.circularReference;case"Function":return t.functionTexts[t.index]??Ht(new Error(`Function with index ${t.index.toString()} not found`));case"MaxDepthLimitReached":return t.substitutions.maxDepthLimitReached;case"MaxDepthLimitReachedArray":return`Array(${t.index.toString()})`;case"ToJSONFailed":return t.substitutions.toJSONFailed;case"Undefined":return"undefined";default:break}}function Gy(t,e,n,r,s,o){return e>r.maxDepth?ar("MaxDepthLimitReachedArray",t.length):t.map((l,u)=>Qi(l,u.toString(),e+1,n,r,s,o))}function Xy(t,e,n){if(n.shouldHandleCircularReferences)return ar("CircularReference");let r=t.constructor.name||"Object";throw new TypeError(`Converting circular structure to JSON +--> starting at object with constructor '${r}' +--- property '${e}' closes the circle`)}function Ky(t,e,n){if(n.functionHandlingMode==="exclude")return;let r=e.length,s=n.functionHandlingMode==="full"?t.toString():`function ${t.name||"anonymous"}() { /* ... */ }`;return e.push(s),ar("Function",r)}function Jy(t,e,n,r,s,o,l){if(l.has(t))return Xy(t,e,s);if(l.add(t),r){let u=Qy(t,e,n,s,o,l);if(u!==void 0)return u}return Array.isArray(t)?Gy(t,n,r,s,o,l):n>s.maxDepth?ar("MaxDepthLimitReached"):t instanceof Error&&s.shouldHandleErrors?Ju(t):Zy(t,n,r,s,o,l)}function Zy(t,e,n,r,s,o){let l=Object.entries(t);return r.shouldSortKeys&&l.sort(([u],[f])=>u.localeCompare(f)),Object.fromEntries(l.map(([u,f])=>[u,Qi(f,u,e+1,n,r,s,o)]))}function ga(t){return`{ "[[${t}]]": null }`}function ar(t,e){return`[[${t}${e?.toString()??""}]]`}function Qi(t,e,n,r,s,o,l){return t===void 0?n===0||s.shouldHandleUndefined?ar("Undefined"):void 0:typeof t=="function"?Ky(t,o,s):typeof t!="object"||t===null?t:Jy(t,e,n,r,s,o,l)}function Qy(t,e,n,r,s,o){let l=t.toJSON;if(typeof l=="function")try{let u=l.call(t,e);return Qi(u,e,n,!1,r,s,o)}catch(u){if(r.shouldCatchToJSONErrors)return ar("ToJSONFailed");throw u}}var Fs=require("obsidian");var eb={};function Fn(t,e){let n=e||eb,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Gc(t,r,s)}function Gc(t,e,n){if(tb(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return qc(t.children,e,n)}return Array.isArray(t)?qc(t,e,n):""}function qc(t,e,n){let r=[],s=-1;for(;++ss?0:s+e:e=e>s?s:e,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(e,n),t.splice(...l);else for(n&&t.splice(e,n);o0?(Ie(t,t.length,0,e),t):e}var Kc={}.hasOwnProperty;function Jc(t){let e={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"\uFFFD":String.fromCodePoint(n)}function Jt(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var st=hn(/[A-Za-z]/),He=hn(/[\dA-Za-z]/),Zc=hn(/[#-'*+\--9=?A-Z^-~]/);function Vr(t){return t!==null&&(t<32||t===127)}var Wr=hn(/\d/),Qc=hn(/[\dA-Fa-f]/),ef=hn(/[!-/:-@[-`{-~]/);function $(t){return t!==null&&t<-2}function ye(t){return t!==null&&(t<0||t===32)}function q(t){return t===-2||t===-1||t===32}var tf=hn(/\p{P}|\p{S}/u),nf=hn(/\s/);function hn(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function G(t,e,n,r){let s=r?r-1:Number.POSITIVE_INFINITY,o=0;return l;function l(f){return q(f)?(t.enter(n),u(f)):e(f)}function u(f){return q(f)&&o++l))return;let te=e.events.length,K=te,J,oe;for(;K--;)if(e.events[K][0]==="exit"&&e.events[K][1].type==="chunkFlow"){if(J){oe=e.events[K][1].end;break}J=!0}for(C(r),A=te;AI;){let H=n[W];e.containerState=H[1],H[0].exit.call(e,t)}n.length=I}function _(){s.write([null]),o=void 0,s=void 0,e.containerState._closeFlow=void 0}}function ob(t,e,n){return G(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ur(t){if(t===null||ye(t)||nf(t))return 1;if(tf(t))return 2}function cr(t,e,n){let r=[],s=-1;for(;++s1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;let p={...t[r][1].end},g={...t[n][1].start};af(p,-f),af(g,f),l={type:f>1?"strongSequence":"emphasisSequence",start:p,end:{...t[r][1].end}},u={type:f>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:g},o={type:f>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},s={type:f>1?"strong":"emphasis",start:{...l.start},end:{...u.end}},t[r][1].end={...l.start},t[n][1].start={...u.end},h=[],t[r][1].end.offset-t[r][1].start.offset&&(h=Ue(h,[["enter",t[r][1],e],["exit",t[r][1],e]])),h=Ue(h,[["enter",s,e],["enter",l,e],["exit",l,e],["enter",o,e]]),h=Ue(h,cr(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),h=Ue(h,[["exit",o,e],["enter",u,e],["exit",u,e],["exit",s,e]]),t[n][1].end.offset-t[n][1].start.offset?(m=2,h=Ue(h,[["enter",t[n][1],e],["exit",t[n][1],e]])):m=0,Ie(t,r-1,n-r+3,h),n=r+h.length-m-2;break}}for(n=-1;++n0&&q(A)?G(t,_,"linePrefix",o+1)(A):_(A)}function _(A){return A===null||$(A)?t.check(lf,F,W)(A):(t.enter("codeFlowValue"),I(A))}function I(A){return A===null||$(A)?(t.exit("codeFlowValue"),_(A)):(t.consume(A),I)}function W(A){return t.exit("codeFenced"),e(A)}function H(A,te,K){let J=0;return oe;function oe(z){return A.enter("lineEnding"),A.consume(z),A.exit("lineEnding"),ue}function ue(z){return A.enter("codeFencedFence"),q(z)?G(A,re,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):re(z)}function re(z){return z===u?(A.enter("codeFencedFenceSequence"),Y(z)):K(z)}function Y(z){return z===u?(J++,A.consume(z),Y):J>=l?(A.exit("codeFencedFenceSequence"),q(z)?G(A,j,"whitespace")(z):j(z)):K(z)}function j(z){return z===null||$(z)?(A.exit("codeFencedFence"),te(z)):K(z)}}}function wb(t,e,n){let r=this;return s;function s(l){return l===null?n(l):(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):e(l)}}var Ur={name:"codeIndented",tokenize:bb},yb={partial:!0,tokenize:kb};function bb(t,e,n){let r=this;return s;function s(h){return t.enter("codeIndented"),G(t,o,"linePrefix",5)(h)}function o(h){let m=r.events[r.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?l(h):n(h)}function l(h){return h===null?f(h):$(h)?t.attempt(yb,l,f)(h):(t.enter("codeFlowValue"),u(h))}function u(h){return h===null||$(h)?(t.exit("codeFlowValue"),l(h)):(t.consume(h),u)}function f(h){return t.exit("codeIndented"),e(h)}}function kb(t,e,n){let r=this;return s;function s(l){return r.parser.lazy[r.now().line]?n(l):$(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),s):G(t,o,"linePrefix",5)(l)}function o(l){let u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?e(l):$(l)?s(l):n(l)}}var ya={name:"codeText",previous:Eb,resolve:xb,tokenize:Cb};function xb(t){let e=t.length-4,n=3,r,s;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){let s=n||0;this.setCursor(Math.trunc(e));let o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return r&&Hr(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Hr(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Hr(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?e(l):t.interrupt(r.parser.constructs.flow,n,e)(l)}}function as(t,e,n,r,s,o,l,u,f){let h=f||Number.POSITIVE_INFINITY,m=0;return p;function p(C){return C===60?(t.enter(r),t.enter(s),t.enter(o),t.consume(C),t.exit(o),g):C===null||C===32||C===41||Vr(C)?n(C):(t.enter(r),t.enter(l),t.enter(u),t.enter("chunkString",{contentType:"string"}),F(C))}function g(C){return C===62?(t.enter(o),t.consume(C),t.exit(o),t.exit(s),t.exit(r),e):(t.enter(u),t.enter("chunkString",{contentType:"string"}),w(C))}function w(C){return C===62?(t.exit("chunkString"),t.exit(u),g(C)):C===null||C===60||$(C)?n(C):(t.consume(C),C===92?E:w)}function E(C){return C===60||C===62||C===92?(t.consume(C),w):w(C)}function F(C){return!m&&(C===null||C===41||ye(C))?(t.exit("chunkString"),t.exit(u),t.exit(l),t.exit(r),e(C)):m999||w===null||w===91||w===93&&!f||w===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(w):w===93?(t.exit(o),t.enter(s),t.consume(w),t.exit(s),t.exit(r),e):$(w)?(t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),m):(t.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||w===91||w===93||$(w)||u++>999?(t.exit("chunkString"),m(w)):(t.consume(w),f||(f=!q(w)),w===92?g:p)}function g(w){return w===91||w===92||w===93?(t.consume(w),u++,p):p(w)}}function us(t,e,n,r,s,o){let l;return u;function u(g){return g===34||g===39||g===40?(t.enter(r),t.enter(s),t.consume(g),t.exit(s),l=g===40?41:g,f):n(g)}function f(g){return g===l?(t.enter(s),t.consume(g),t.exit(s),t.exit(r),e):(t.enter(o),h(g))}function h(g){return g===l?(t.exit(o),f(l)):g===null?n(g):$(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),G(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),m(g))}function m(g){return g===l||g===null||$(g)?(t.exit("chunkString"),h(g)):(t.consume(g),g===92?p:m)}function p(g){return g===l||g===92?(t.consume(g),m):m(g)}}function In(t,e){let n;return r;function r(s){return $(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),n=!0,r):q(s)?G(t,r,n?"linePrefix":"lineSuffix")(s):e(s)}}var ka={name:"definition",tokenize:Ib},Fb={partial:!0,tokenize:Pb};function Ib(t,e,n){let r=this,s;return o;function o(w){return t.enter("definition"),l(w)}function l(w){return ls.call(r,t,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function u(w){return s=Jt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),w===58?(t.enter("definitionMarker"),t.consume(w),t.exit("definitionMarker"),f):n(w)}function f(w){return ye(w)?In(t,h)(w):h(w)}function h(w){return as(t,m,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function m(w){return t.attempt(Fb,p,p)(w)}function p(w){return q(w)?G(t,g,"whitespace")(w):g(w)}function g(w){return w===null||$(w)?(t.exit("definition"),r.parser.defined.push(s),e(w)):n(w)}}function Pb(t,e,n){return r;function r(u){return ye(u)?In(t,s)(u):n(u)}function s(u){return us(t,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return q(u)?G(t,l,"whitespace")(u):l(u)}function l(u){return u===null||$(u)?e(u):n(u)}}var xa={name:"hardBreakEscape",tokenize:Rb};function Rb(t,e,n){return r;function r(o){return t.enter("hardBreakEscape"),t.consume(o),s}function s(o){return $(o)?(t.exit("hardBreakEscape"),e(o)):n(o)}}var Ea={name:"headingAtx",resolve:Ob,tokenize:Db};function Ob(t,e){let n=t.length-2,r=3,s,o;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(s={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},o={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},Ie(t,r,n-r+1,[["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e]])),t}function Db(t,e,n){let r=0;return s;function s(m){return t.enter("atxHeading"),o(m)}function o(m){return t.enter("atxHeadingSequence"),l(m)}function l(m){return m===35&&r++<6?(t.consume(m),l):m===null||ye(m)?(t.exit("atxHeadingSequence"),u(m)):n(m)}function u(m){return m===35?(t.enter("atxHeadingSequence"),f(m)):m===null||$(m)?(t.exit("atxHeading"),e(m)):q(m)?G(t,u,"whitespace")(m):(t.enter("atxHeadingText"),h(m))}function f(m){return m===35?(t.consume(m),f):(t.exit("atxHeadingSequence"),u(m))}function h(m){return m===null||m===35||ye(m)?(t.exit("atxHeadingText"),u(m)):(t.consume(m),h)}}var uf=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ca=["pre","script","style","textarea"];var va={concrete:!0,name:"htmlFlow",resolveTo:Nb,tokenize:$b},Lb={partial:!0,tokenize:Bb},Mb={partial:!0,tokenize:Yb};function Nb(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function $b(t,e,n){let r=this,s,o,l,u,f;return h;function h(b){return m(b)}function m(b){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(b),p}function p(b){return b===33?(t.consume(b),g):b===47?(t.consume(b),o=!0,F):b===63?(t.consume(b),s=3,r.interrupt?e:x):st(b)?(t.consume(b),l=String.fromCharCode(b),T):n(b)}function g(b){return b===45?(t.consume(b),s=2,w):b===91?(t.consume(b),s=5,u=0,E):st(b)?(t.consume(b),s=4,r.interrupt?e:x):n(b)}function w(b){return b===45?(t.consume(b),r.interrupt?e:x):n(b)}function E(b){let $e="CDATA[";return b===$e.charCodeAt(u++)?(t.consume(b),u===$e.length?r.interrupt?e:re:E):n(b)}function F(b){return st(b)?(t.consume(b),l=String.fromCharCode(b),T):n(b)}function T(b){if(b===null||b===47||b===62||ye(b)){let $e=b===47,Rt=l.toLowerCase();return!$e&&!o&&Ca.includes(Rt)?(s=1,r.interrupt?e(b):re(b)):uf.includes(l.toLowerCase())?(s=6,$e?(t.consume(b),C):r.interrupt?e(b):re(b)):(s=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(b):o?_(b):I(b))}return b===45||He(b)?(t.consume(b),l+=String.fromCharCode(b),T):n(b)}function C(b){return b===62?(t.consume(b),r.interrupt?e:re):n(b)}function _(b){return q(b)?(t.consume(b),_):oe(b)}function I(b){return b===47?(t.consume(b),oe):b===58||b===95||st(b)?(t.consume(b),W):q(b)?(t.consume(b),I):oe(b)}function W(b){return b===45||b===46||b===58||b===95||He(b)?(t.consume(b),W):H(b)}function H(b){return b===61?(t.consume(b),A):q(b)?(t.consume(b),H):I(b)}function A(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(t.consume(b),f=b,te):q(b)?(t.consume(b),A):K(b)}function te(b){return b===f?(t.consume(b),f=null,J):b===null||$(b)?n(b):(t.consume(b),te)}function K(b){return b===null||b===34||b===39||b===47||b===60||b===61||b===62||b===96||ye(b)?H(b):(t.consume(b),K)}function J(b){return b===47||b===62||q(b)?I(b):n(b)}function oe(b){return b===62?(t.consume(b),ue):n(b)}function ue(b){return b===null||$(b)?re(b):q(b)?(t.consume(b),ue):n(b)}function re(b){return b===45&&s===2?(t.consume(b),ie):b===60&&s===1?(t.consume(b),he):b===62&&s===4?(t.consume(b),Pe):b===63&&s===3?(t.consume(b),x):b===93&&s===5?(t.consume(b),Ge):$(b)&&(s===6||s===7)?(t.exit("htmlFlowData"),t.check(Lb,Re,Y)(b)):b===null||$(b)?(t.exit("htmlFlowData"),Y(b)):(t.consume(b),re)}function Y(b){return t.check(Mb,j,Re)(b)}function j(b){return t.enter("lineEnding"),t.consume(b),t.exit("lineEnding"),z}function z(b){return b===null||$(b)?Y(b):(t.enter("htmlFlowData"),re(b))}function ie(b){return b===45?(t.consume(b),x):re(b)}function he(b){return b===47?(t.consume(b),l="",me):re(b)}function me(b){if(b===62){let $e=l.toLowerCase();return Ca.includes($e)?(t.consume(b),Pe):re(b)}return st(b)&&l.length<8?(t.consume(b),l+=String.fromCharCode(b),me):re(b)}function Ge(b){return b===93?(t.consume(b),x):re(b)}function x(b){return b===62?(t.consume(b),Pe):b===45&&s===2?(t.consume(b),x):re(b)}function Pe(b){return b===null||$(b)?(t.exit("htmlFlowData"),Re(b)):(t.consume(b),Pe)}function Re(b){return t.exit("htmlFlow"),e(b)}}function Yb(t,e,n){let r=this;return s;function s(l){return $(l)?(t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):e(l)}}function Bb(t,e,n){return r;function r(s){return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),t.attempt(mn,e,n)}}var Aa={name:"htmlText",tokenize:Vb};function Vb(t,e,n){let r=this,s,o,l;return u;function u(x){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(x),f}function f(x){return x===33?(t.consume(x),h):x===47?(t.consume(x),H):x===63?(t.consume(x),I):st(x)?(t.consume(x),K):n(x)}function h(x){return x===45?(t.consume(x),m):x===91?(t.consume(x),o=0,E):st(x)?(t.consume(x),_):n(x)}function m(x){return x===45?(t.consume(x),w):n(x)}function p(x){return x===null?n(x):x===45?(t.consume(x),g):$(x)?(l=p,he(x)):(t.consume(x),p)}function g(x){return x===45?(t.consume(x),w):p(x)}function w(x){return x===62?ie(x):x===45?g(x):p(x)}function E(x){let Pe="CDATA[";return x===Pe.charCodeAt(o++)?(t.consume(x),o===Pe.length?F:E):n(x)}function F(x){return x===null?n(x):x===93?(t.consume(x),T):$(x)?(l=F,he(x)):(t.consume(x),F)}function T(x){return x===93?(t.consume(x),C):F(x)}function C(x){return x===62?ie(x):x===93?(t.consume(x),C):F(x)}function _(x){return x===null||x===62?ie(x):$(x)?(l=_,he(x)):(t.consume(x),_)}function I(x){return x===null?n(x):x===63?(t.consume(x),W):$(x)?(l=I,he(x)):(t.consume(x),I)}function W(x){return x===62?ie(x):I(x)}function H(x){return st(x)?(t.consume(x),A):n(x)}function A(x){return x===45||He(x)?(t.consume(x),A):te(x)}function te(x){return $(x)?(l=te,he(x)):q(x)?(t.consume(x),te):ie(x)}function K(x){return x===45||He(x)?(t.consume(x),K):x===47||x===62||ye(x)?J(x):n(x)}function J(x){return x===47?(t.consume(x),ie):x===58||x===95||st(x)?(t.consume(x),oe):$(x)?(l=J,he(x)):q(x)?(t.consume(x),J):ie(x)}function oe(x){return x===45||x===46||x===58||x===95||He(x)?(t.consume(x),oe):ue(x)}function ue(x){return x===61?(t.consume(x),re):$(x)?(l=ue,he(x)):q(x)?(t.consume(x),ue):J(x)}function re(x){return x===null||x===60||x===61||x===62||x===96?n(x):x===34||x===39?(t.consume(x),s=x,Y):$(x)?(l=re,he(x)):q(x)?(t.consume(x),re):(t.consume(x),j)}function Y(x){return x===s?(t.consume(x),s=void 0,z):x===null?n(x):$(x)?(l=Y,he(x)):(t.consume(x),Y)}function j(x){return x===null||x===34||x===39||x===60||x===61||x===96?n(x):x===47||x===62||ye(x)?J(x):(t.consume(x),j)}function z(x){return x===47||x===62||ye(x)?J(x):n(x)}function ie(x){return x===62?(t.consume(x),t.exit("htmlTextData"),t.exit("htmlText"),e):n(x)}function he(x){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(x),t.exit("lineEnding"),me}function me(x){return q(x)?G(t,Ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):Ge(x)}function Ge(x){return t.enter("htmlTextData"),l(x)}}var Pn={name:"labelEnd",resolveAll:Hb,resolveTo:jb,tokenize:qb},Wb={tokenize:Gb},zb={tokenize:Xb},Ub={tokenize:Kb};function Hb(t){let e=-1,n=[];for(;++e=3&&(h===null||$(h))?(t.exit("thematicBreak"),e(h)):n(h)}function f(h){return h===s?(t.consume(h),r++,f):(t.exit("thematicBreakSequence"),q(h)?G(t,u,"whitespace")(h):u(h))}}var Me={continuation:{tokenize:ik},exit:ok,name:"list",tokenize:rk},tk={partial:!0,tokenize:ak},nk={partial:!0,tokenize:sk};function rk(t,e,n){let r=this,s=r.events[r.events.length-1],o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,l=0;return u;function u(w){let E=r.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||w===r.containerState.marker:Wr(w)){if(r.containerState.type||(r.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),w===42||w===45?t.check(Rn,n,h)(w):h(w);if(!r.interrupt||w===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),f(w)}return n(w)}function f(w){return Wr(w)&&++l<10?(t.consume(w),f):(!r.interrupt||l<2)&&(r.containerState.marker?w===r.containerState.marker:w===41||w===46)?(t.exit("listItemValue"),h(w)):n(w)}function h(w){return t.enter("listItemMarker"),t.consume(w),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||w,t.check(mn,r.interrupt?n:m,t.attempt(tk,g,p))}function m(w){return r.containerState.initialBlankLine=!0,o++,g(w)}function p(w){return q(w)?(t.enter("listItemPrefixWhitespace"),t.consume(w),t.exit("listItemPrefixWhitespace"),g):n(w)}function g(w){return r.containerState.size=o+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(w)}}function ik(t,e,n){let r=this;return r.containerState._closeFlow=void 0,t.check(mn,s,o);function s(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,G(t,e,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!q(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(nk,e,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,G(t,t.attempt(Me,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function sk(t,e,n){let r=this;return G(t,s,"listItemIndent",r.containerState.size+1);function s(o){let l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?e(o):n(o)}}function ok(t){t.exit(this.containerState.type)}function ak(t,e,n){let r=this;return G(t,s,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){let l=r.events[r.events.length-1];return!q(o)&&l&&l[1].type==="listItemPrefixWhitespace"?e(o):n(o)}}var cs={name:"setextUnderline",resolveTo:lk,tokenize:uk};function lk(t,e){let n=t.length,r,s,o;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(s=n)}else t[n][1].type==="content"&&t.splice(n,1),!o&&t[n][1].type==="definition"&&(o=n);let l={type:"setextHeading",start:{...t[s][1].start},end:{...t[t.length-1][1].end}};return t[s][1].type="setextHeadingText",o?(t.splice(s,0,["enter",l,e]),t.splice(o+1,0,["exit",t[r][1],e]),t[r][1].end={...t[o][1].end}):t[r][1]=l,t.push(["exit",l,e]),t}function uk(t,e,n){let r=this,s;return o;function o(h){let m=r.events.length,p;for(;m--;)if(r.events[m][1].type!=="lineEnding"&&r.events[m][1].type!=="linePrefix"&&r.events[m][1].type!=="content"){p=r.events[m][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||p)?(t.enter("setextHeadingLine"),s=h,l(h)):n(h)}function l(h){return t.enter("setextHeadingLineSequence"),u(h)}function u(h){return h===s?(t.consume(h),u):(t.exit("setextHeadingLineSequence"),q(h)?G(t,f,"lineSuffix")(h):f(h))}function f(h){return h===null||$(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}var cf={tokenize:ck};function ck(t){let e=this,n=t.attempt(mn,r,t.attempt(this.parser.constructs.flowInitial,s,G(t,t.attempt(this.parser.constructs.flow,s,t.attempt(ba,s)),"linePrefix")));return n;function r(o){if(o===null){t.consume(o);return}return t.enter("lineEndingBlank"),t.consume(o),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function s(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),e.currentConstruct=void 0,n}}var ff={resolveAll:pf()},df=mf("string"),hf=mf("text");function mf(t){return{resolveAll:pf(t==="text"?fk:void 0),tokenize:e};function e(n){let r=this,s=this.parser.constructs[t],o=n.attempt(s,l,u);return l;function l(m){return h(m)?o(m):u(m)}function u(m){if(m===null){n.consume(m);return}return n.enter("data"),n.consume(m),f}function f(m){return h(m)?(n.exit("data"),o(m)):(n.consume(m),f)}function h(m){if(m===null)return!0;let p=s[m],g=-1;if(p)for(;++gbk,contentInitial:()=>hk,disable:()=>kk,document:()=>dk,flow:()=>pk,flowInitial:()=>mk,insideSpan:()=>yk,string:()=>gk,text:()=>wk});var dk={42:Me,43:Me,45:Me,48:Me,49:Me,50:Me,51:Me,52:Me,53:Me,54:Me,55:Me,56:Me,57:Me,62:ts},hk={91:ka},mk={[-2]:Ur,[-1]:Ur,32:Ur},pk={35:Ea,42:Rn,45:[cs,Rn],60:va,61:cs,95:Rn,96:is,126:is},gk={38:rs,92:ns},wk={[-5]:jr,[-4]:jr,[-3]:jr,33:Sa,38:rs,42:zr,60:[wa,Aa],91:Ta,92:[xa,ns],93:Pn,95:zr,96:ya},yk={null:[zr,ff]},bk={null:[42,95]},kk={null:[]};function gf(t,e,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},s={},o=[],l=[],u=[],f=!0,h={attempt:J(te),check:J(K),consume:W,enter:H,exit:A,interrupt:J(K,{interrupt:!0})},m={code:null,containerState:{},defineSkip:C,events:[],now:T,parser:t,previous:null,sliceSerialize:E,sliceStream:F,write:w},p=e.tokenize.call(m,h),g;return e.resolveAll&&o.push(e),m;function w(Y){return l=Ue(l,Y),_(),l[l.length-1]!==null?[]:(oe(e,0),m.events=cr(o,m.events,m),m.events)}function E(Y,j){return Ek(F(Y),j)}function F(Y){return xk(l,Y)}function T(){let{_bufferIndex:Y,_index:j,line:z,column:ie,offset:he}=r;return{_bufferIndex:Y,_index:j,line:z,column:ie,offset:he}}function C(Y){s[Y.line]=Y.column,re()}function _(){let Y;for(;r._index-1){let u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(t[s].slice(0,o))}return l}function Ek(t,e){let n=-1,r=[],s;for(;++n0){let Oe=O.tokenStack[O.tokenStack.length-1];(Oe[1]||kf).call(O,void 0,Oe[0])}for(R.position={start:gn(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:gn(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},ae=-1;++ae "),o.shift(2);let l=n.indentLines(n.containerFlow(t,o.current()),Fk);return s(),l}function Fk(t,e,n){return">"+(n?"":" ")+t}function ds(t,e){return Tf(t,e.inConstruct,!0)&&!Tf(t,e.notInConstruct,!1)}function Tf(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let r=-1;for(;++rl&&(l=o):o=1,s=r+e.length,r=n.indexOf(e,s);return l}function qr(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function Ff(t){let e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function If(t,e,n,r){let s=Ff(n),o=t.value||"",l=s==="`"?"GraveAccent":"Tilde";if(qr(t,n)){let p=n.enter("codeIndented"),g=n.indentLines(o,Ik);return p(),g}let u=n.createTracker(r),f=s.repeat(Math.max(_f(o,s)+1,3)),h=n.enter("codeFenced"),m=u.move(f);if(t.lang){let p=n.enter(`codeFencedLang${l}`);m+=u.move(n.safe(t.lang,{before:m,after:" ",encode:["`"],...u.current()})),p()}if(t.lang&&t.meta){let p=n.enter(`codeFencedMeta${l}`);m+=u.move(" "),m+=u.move(n.safe(t.meta,{before:m,after:` +`,encode:["`"],...u.current()})),p()}return m+=u.move(` +`),o&&(m+=u.move(o+` +`)),m+=u.move(f),h(),m}function Ik(t,e,n){return(n?"":" ")+t}function dr(t){let e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function Pf(t,e,n,r){let s=dr(n),o=s==='"'?"Quote":"Apostrophe",l=n.enter("definition"),u=n.enter("label"),f=n.createTracker(r),h=f.move("[");return h+=f.move(n.safe(n.associationId(t),{before:h,after:"]",...f.current()})),h+=f.move("]: "),u(),!t.url||/[\0- \u007F]/.test(t.url)?(u=n.enter("destinationLiteral"),h+=f.move("<"),h+=f.move(n.safe(t.url,{before:h,after:">",...f.current()})),h+=f.move(">")):(u=n.enter("destinationRaw"),h+=f.move(n.safe(t.url,{before:h,after:t.title?" ":` +`,...f.current()}))),u(),t.title&&(u=n.enter(`title${o}`),h+=f.move(" "+s),h+=f.move(n.safe(t.title,{before:h,after:s,...f.current()})),h+=f.move(s),u()),l(),h}function Rf(t){let e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function ot(t){return"&#x"+t.toString(16).toUpperCase()+";"}function hr(t,e,n){let r=ur(t),s=ur(e);return r===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ma.peek=Pk;function Ma(t,e,n,r){let s=Rf(n),o=n.enter("emphasis"),l=n.createTracker(r),u=l.move(s),f=l.move(n.containerPhrasing(t,{after:s,before:u,...l.current()})),h=f.charCodeAt(0),m=hr(r.before.charCodeAt(r.before.length-1),h,s);m.inside&&(f=ot(h)+f.slice(1));let p=f.charCodeAt(f.length-1),g=hr(r.after.charCodeAt(0),p,s);g.inside&&(f=f.slice(0,-1)+ot(p));let w=l.move(s);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:m.outside},u+f+w}function Pk(t,e,n){return n.options.emphasis||"*"}var mr=function(t){if(t==null)return Lk;if(typeof t=="function")return hs(t);if(typeof t=="object")return Array.isArray(t)?Rk(t):Ok(t);if(typeof t=="string")return Dk(t);throw new Error("Expected function, string, or object as test")};function Rk(t){let e=[],n=-1;for(;++n":""))+")"})}return g;function g(){let w=Df,E,F,T;if((!e||o(f,h,m[m.length-1]||void 0))&&(w=Nk(n(f,m)),w[0]===On))return w;if("children"in f&&f.children){let C=f;if(C.children&&w[0]!==ps)for(F=(r?C.children.length:-1)+l,T=m.concat(C);F>-1&&F",...f.current()})),h+=f.move(">")):(u=n.enter("destinationRaw"),h+=f.move(n.safe(t.url,{before:h,after:t.title?" ":")",...f.current()}))),u(),t.title&&(u=n.enter(`title${o}`),h+=f.move(" "+s),h+=f.move(n.safe(t.title,{before:h,after:s,...f.current()})),h+=f.move(s),u()),h+=f.move(")"),l(),h}function Yk(){return"!"}Va.peek=Bk;function Va(t,e,n,r){let s=t.referenceType,o=n.enter("imageReference"),l=n.enter("label"),u=n.createTracker(r),f=u.move("!["),h=n.safe(t.alt,{before:f,after:"]",...u.current()});f+=u.move(h+"]["),l();let m=n.stack;n.stack=[],l=n.enter("reference");let p=n.safe(n.associationId(t),{before:f,after:"]",...u.current()});return l(),n.stack=m,o(),s==="full"||!h||h!==p?f+=u.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=u.move("]"),f}function Bk(){return"!"}Wa.peek=Vk;function Wa(t,e,n){let r=t.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(r);)s+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o\u007F]/.test(t.url))}Ua.peek=Wk;function Ua(t,e,n,r){let s=dr(n),o=s==='"'?"Quote":"Apostrophe",l=n.createTracker(r),u,f;if(za(t,n)){let m=n.stack;n.stack=[],u=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(t,{before:p,after:">",...l.current()})),p+=l.move(">"),u(),n.stack=m,p}u=n.enter("link"),f=n.enter("label");let h=l.move("[");return h+=l.move(n.containerPhrasing(t,{before:h,after:"](",...l.current()})),h+=l.move("]("),f(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(f=n.enter("destinationLiteral"),h+=l.move("<"),h+=l.move(n.safe(t.url,{before:h,after:">",...l.current()})),h+=l.move(">")):(f=n.enter("destinationRaw"),h+=l.move(n.safe(t.url,{before:h,after:t.title?" ":")",...l.current()}))),f(),t.title&&(f=n.enter(`title${o}`),h+=l.move(" "+s),h+=l.move(n.safe(t.title,{before:h,after:s,...l.current()})),h+=l.move(s),f()),h+=l.move(")"),u(),h}function Wk(t,e,n){return za(t,n)?"<":"["}Ha.peek=zk;function Ha(t,e,n,r){let s=t.referenceType,o=n.enter("linkReference"),l=n.enter("label"),u=n.createTracker(r),f=u.move("["),h=n.containerPhrasing(t,{before:f,after:"]",...u.current()});f+=u.move(h+"]["),l();let m=n.stack;n.stack=[],l=n.enter("reference");let p=n.safe(n.associationId(t),{before:f,after:"]",...u.current()});return l(),n.stack=m,o(),s==="full"||!h||h!==p?f+=u.move(p+"]"):s==="shortcut"?f=f.slice(0,-1):f+=u.move("]"),f}function zk(){return"["}function pr(t){let e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function Mf(t){let e=pr(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Nf(t){let e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function ws(t){let e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function $f(t,e,n,r){let s=n.enter("list"),o=n.bulletCurrent,l=t.ordered?Nf(n):pr(n),u=t.ordered?l==="."?")":".":Mf(n),f=e&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!t.ordered){let m=t.children?t.children[0]:void 0;if((l==="*"||l==="-")&&m&&(!m.children||!m.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(f=!0),ws(n)===l&&m){let p=-1;for(;++p-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+o);let l=o.length+1;(s==="tab"||s==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(l=Math.ceil(l/4)*4);let u=n.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);let f=n.enter("listItem"),h=n.indentLines(n.containerFlow(t,u.current()),m);return f(),h;function m(p,g,w){return g?(w?"":" ".repeat(l))+p:(w?o:o+" ".repeat(l-o.length))+p}}function Vf(t,e,n,r){let s=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(t,r);return o(),s(),l}var ja=mr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Wf(t,e,n,r){return(t.children.some(function(l){return ja(l)})?n.containerPhrasing:n.containerFlow).call(n,t,r)}function zf(t){let e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}qa.peek=Uk;function qa(t,e,n,r){let s=zf(n),o=n.enter("strong"),l=n.createTracker(r),u=l.move(s+s),f=l.move(n.containerPhrasing(t,{after:s,before:u,...l.current()})),h=f.charCodeAt(0),m=hr(r.before.charCodeAt(r.before.length-1),h,s);m.inside&&(f=ot(h)+f.slice(1));let p=f.charCodeAt(f.length-1),g=hr(r.after.charCodeAt(0),p,s);g.inside&&(f=f.slice(0,-1)+ot(p));let w=l.move(s+s);return o(),n.attentionEncodeSurroundingInfo={after:g.outside,before:m.outside},u+f+w}function Uk(t,e,n){return n.options.strong||"*"}function Uf(t,e,n,r){return n.safe(t.value,r)}function Hf(t){let e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function jf(t,e,n){let r=(ws(n)+(n.options.ruleSpaces?" ":"")).repeat(Hf(n));return n.options.ruleSpaces?r.slice(0,-1):r}var qf={blockquote:Sf,break:La,code:If,definition:Pf,emphasis:Ma,hardBreak:La,heading:Lf,html:Ya,image:Ba,imageReference:Va,inlineCode:Wa,link:Ua,linkReference:Ha,list:$f,listItem:Bf,paragraph:Vf,root:Wf,strong:qa,text:Uf,thematicBreak:jf};var Gf=[Hk];function Hk(t,e,n,r){if(e.type==="code"&&qr(e,r)&&(t.type==="list"||t.type===e.type&&qr(t,r)))return!1;if("spread"in n&&typeof n.spread=="boolean")return t.type==="paragraph"&&(t.type===e.type||e.type==="definition"||e.type==="heading"&&gs(e,r))?void 0:n.spread?1:0}var Dn=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],Xf=[{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:` +`,inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:Dn},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:`(?:[\r +]|$)`},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:Dn},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:`(?:[ \r +*])`},{character:"*",inConstruct:"phrasing",notInConstruct:Dn},{atBreak:!0,character:"+",after:`(?:[ \r +])`},{atBreak:!0,character:"-",after:`(?:[ \r +-])`},{atBreak:!0,before:"\\d+",character:".",after:`(?:[ \r +]|$)`},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:Dn},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:Dn},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:Dn},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:Dn},{atBreak:!0,character:"~"}];function Kf(t){return t.label||!t.identifier?t.label||"":fs(t.identifier)}function Jf(t){if(!t._compiled){let e=(t.atBreak?"[\\r\\n][\\t ]*":"")+(t.before?"(?:"+t.before+")":"");t._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(t.character)?"\\":"")+t.character+(t.after?"(?:"+t.after+")":""),"g")}return t._compiled}function Zf(t,e,n){let r=e.indexStack,s=t.children||[],o=[],l=-1,u=n.before,f;r.push(-1);let h=e.createTracker(n);for(;++l0&&(u==="\r"||u===` +`)&&m.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),u=" ",h=e.createTracker(n),h.move(o.join("")));let g=e.handle(m,t,e,{...h.current(),after:p,before:u});f&&f===g.slice(0,1)&&(g=ot(f.charCodeAt(0))+g.slice(1));let w=e.attentionEncodeSurroundingInfo;e.attentionEncodeSurroundingInfo=void 0,f=void 0,w&&(o.length>0&&w.before&&u===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+ot(u.charCodeAt(0))),w.after&&(f=p)),h.move(g),o.push(g),u=g.slice(-1)}return r.pop(),o.join("")}function Qf(t,e,n){let r=e.indexStack,s=t.children||[],o=e.createTracker(n),l=[],u=-1;for(r.push(-1);++u + +`}return` + +`}var qk=/\r?\n|\r/g;function ed(t,e){let n=[],r=0,s=0,o;for(;o=qk.exec(t);)l(t.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,s++;return l(t.slice(r)),n.join("");function l(u){n.push(e(u,s,!u))}}function nd(t,e,n){let r=(n.before||"")+(e||"")+(n.after||""),s=[],o=[],l={},u=-1;for(;++u=h||m+1l.length,f;u&&l.push(s);try{f=t.apply(this,l)}catch(h){let m=h;if(u&&n)throw m;return s(m)}u||(f&&f.then&&typeof f.then=="function"?f.then(o,s):f instanceof Error?s(f):o(f))}function s(l,...u){n||(n=!0,e(l,...u))}function o(l){s(null,l)}}var Fe=class extends Error{constructor(e,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let s="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof e=="string"?s=e:!o.cause&&e&&(l=!0,s=e.message,o.cause=e),!o.ruleId&&!o.source&&typeof r=="string"){let f=r.indexOf(":");f===-1?o.ruleId=r:(o.source=r.slice(0,f),o.ruleId=r.slice(f+1))}if(!o.place&&o.ancestors&&o.ancestors){let f=o.ancestors[o.ancestors.length-1];f&&(o.place=f.position)}let u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file,this.message=s,this.line=u?u.line:void 0,this.name=pn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}};Fe.prototype.file="";Fe.prototype.name="";Fe.prototype.reason="";Fe.prototype.message="";Fe.prototype.stack="";Fe.prototype.column=void 0;Fe.prototype.line=void 0;Fe.prototype.ancestors=void 0;Fe.prototype.cause=void 0;Fe.prototype.fatal=void 0;Fe.prototype.place=void 0;Fe.prototype.ruleId=void 0;Fe.prototype.source=void 0;var dt=ze(require("node:path"),1);var Ja=ze(require("node:process"),1);var Za=require("node:url");function ks(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}var Qa=["history","path","basename","stem","extname","dirname"],Xr=class{constructor(e){let n;e?ks(e)?n={path:e}:typeof e=="string"||tx(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":Ja.default.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r0){let[w,...E]=m,F=r[g][1];Gr(F)&&Gr(w)&&(w=(0,Es.default)(!0,F,w)),r[g]=[h,w,...E]}}}},ol=new sl().freeze();function nl(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function rl(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function il(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function gd(t){if(!Gr(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function wd(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function xs(t){return rx(t)?t:new Xr(t)}function rx(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function ix(t){return typeof t=="string"||sx(t)}function sx(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}var yd=ol().use(fr).use(ys).freeze();var ll={d:(t,e)=>{for(var n in e)ll.o(e,n)&&!ll.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},ul={};ll.d(ul,{Z:()=>ux,$:()=>Ed});var gr={horizontalTab:-2,virtualSpace:-1,nul:0,eof:null,space:32};function bd(t){return t{t.exports=function(e){var n,r;return e._compiled||(n=e.before?"(?:"+e.before+")":"",r=e.after?"(?:"+e.after+")":"",e.atBreak&&(n="[\\r\\n][\\t ]*"+n),e._compiled=new RegExp((n?"("+n+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(r||""),"g")),e._compiled}},112:t=>{function e(n,r,s){var o;if(!r)return s;for(typeof r=="string"&&(r=[r]),o=-1;++o{t.exports=function(u,f,h){for(var m,p,g,w,E,F,T,C,_=(h.before||"")+(f||"")+(h.after||""),I=[],W=[],H={},A=-1;++A=C||g+1{var e=t&&t.__esModule?()=>t.default:()=>t;return Ft.d(e,{a:e}),e},Ft.d=(t,e)=>{for(var n in e)Ft.o(e,n)&&!Ft.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},Ft.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var cl={};(()=>{function t(s={}){let o=s.permalinks||[],l=s.pageResolver||(g=>[g.replace(/ /g,"_").toLowerCase()]),u=s.newClassName||"new",f=s.wikiLinkClassName||"internal",h=s.hrefTemplate||(g=>`#/page/${g}`),m;function p(g){return g[g.length-1]}return{enter:{wikiLink:function(g){m={type:"wikiLink",value:null,data:{alias:null,permalink:null,exists:null}},this.enter(m,g)}},exit:{wikiLinkTarget:function(g){let w=this.sliceSerialize(g);p(this.stack).value=w},wikiLinkAlias:function(g){let w=this.sliceSerialize(g);p(this.stack).data.alias=w},wikiLink:function(g){this.exit(g);let w=m,E=l(w.value),F=E.find(W=>o.indexOf(W)!==-1),T=F!==void 0,C;C=T?F:E[0]||"";let _=w.value;w.data.alias&&(_=w.data.alias);let I=f;T||(I+=" "+u),w.data.alias=_,w.data.permalink=C,w.data.exists=T,w.data.hName="a",w.data.hProperties={className:I,href:h(C)},w.data.hChildren=[{type:"text",value:_}]}}}}Ft.d(cl,{V:()=>t,x:()=>r});var e=Ft(113),n=Ft.n(e);function r(s={}){let o=s.aliasDivider||":";return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]},{character:"]",inConstruct:["label","reference"]}],handlers:{wikiLink:function(l,u,f){let h=f.enter("wikiLink"),m=n()(f,l.value,{before:"[",after:"]"}),p=n()(f,l.data.alias,{before:"[",after:"]"}),g;return g=p!==m?`[[${m}${o}${p}]]`:`[[${m}]]`,h(),g}}}}})();var ax=cl.V,lx=cl.x,xd=!1;function Ed(t={}){let e=this.data();function n(r,s){e[r]?e[r].push(s):e[r]=[s]}!xd&&(this.Parser&&this.Parser.prototype&&this.Parser.prototype.blockTokenizers||this.Compiler&&this.Compiler.prototype&&this.Compiler.prototype.visitors)&&(xd=!0,console.warn("[remark-wiki-link] Warning: please upgrade to remark 13 to use this plugin")),n("micromarkExtensions",function(){var r=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).aliasDivider||":",s="]]";return{text:{91:{tokenize:function(o,l,u){var f,h,m=0,p=0,g=0;return function(_){return _!=="[[".charCodeAt(p)?u(_):(o.enter("wikiLink"),o.enter("wikiLinkMarker"),w(_))};function w(_){return p===2?(o.exit("wikiLinkMarker"),function(I){return al(I)||I===gr.eof?u(I):(o.enter("wikiLinkData"),o.enter("wikiLinkTarget"),E(I))}(_)):_!=="[[".charCodeAt(p)?u(_):(o.consume(_),p++,w)}function E(_){return _===r.charCodeAt(m)?f?(o.exit("wikiLinkTarget"),o.enter("wikiLinkAliasMarker"),F(_)):u(_):_===s.charCodeAt(g)?f?(o.exit("wikiLinkTarget"),o.exit("wikiLinkData"),o.enter("wikiLinkMarker"),C(_)):u(_):al(_)||_===gr.eof?u(_):(bd(_)||(f=!0),o.consume(_),E)}function F(_){return m===r.length?(o.exit("wikiLinkAliasMarker"),o.enter("wikiLinkAlias"),T(_)):_!==r.charCodeAt(m)?u(_):(o.consume(_),m++,F)}function T(_){return _===s.charCodeAt(g)?h?(o.exit("wikiLinkAlias"),o.exit("wikiLinkData"),o.enter("wikiLinkMarker"),C(_)):u(_):al(_)||_===gr.eof?u(_):(bd(_)||(h=!0),o.consume(_),T)}function C(_){return g===2?(o.exit("wikiLinkMarker"),o.exit("wikiLink"),l(_)):_!==s.charCodeAt(g)?u(_):(o.consume(_),g++,C)}}}}}}(t)),n("fromMarkdownExtensions",ax(t)),n("toMarkdownExtensions",lx(t))}var ux=Ed,gP=ul.Z,Cd=ul.$;(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function fl(t){try{return!t.includes("://")||t.trim()!==t?!1:(new URL(t),!0)}catch{return!1}}var Ln=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function Cs(t){let e=(0,Ln.getFrontMatterInfo)(t);return(0,Ln.parseYaml)(e.frontmatter)??{}}function vd(t,e){let n=(0,Ln.getFrontMatterInfo)(t);if(Object.keys(e).length===0)return t.slice(n.contentStart);let r=(0,Ln.stringifyYaml)(e);return n.exists?ec(t,r,n.from,n.to):`--- +${r}--- +${t}`}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function dl(t){return Ad(t)&&t.type==="file"}function Ad(t){return vt(t)&&!!t.isCanvas}function cx(t){return Ad(t)&&t.type==="text"}function wr(t,e){if(on(t))return{endIndex:t.position.end.offset,newContent:e,oldContent:t.original,startIndex:t.position.start.offset};if(dl(t))return{isCanvas:!0,newContent:e,nodeIndex:t.nodeIndex,oldContent:t.original,type:"file"};if(cx(t))return{isCanvas:!0,newContent:e,nodeIndex:t.nodeIndex,oldContent:t.original,originalReference:t.originalReference,type:"text"};if(vt(t))return{frontmatterKey:t.key,newContent:e,oldContent:t.original};throw new Error("Unknown link type")}function Sd(t){return t.sort((e,n)=>vt(e)&&vt(n)?e.key.localeCompare(n.key):on(e)&&on(n)?e.position.start.offset-n.position.start.offset:vt(e)?1:-1)}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function Td(t,e,n){let r=Le(t,e),s=ut(n);await vs(t,s);let o=_d(t,n);try{await t.vault.copy(r,o)}catch(l){if(!await t.vault.exists(o))throw l}return o}async function vs(t,e){if(await t.vault.adapter.exists(e))return!1;try{return await t.vault.createFolder(e),!0}catch(n){if(!await t.vault.exists(e))throw n;return!0}}function _d(t,e){let n=Se(e);return t.vault.getAvailablePath(ke(be(e),pe(e,n)),n.slice(1))}function hl(t,e,n){let r=we(t,e);if(t.vault.adapter.insensitive){let s=be(n),o=pe(n),l;for(;l=_t(t,s,!0),!l;)o=ke(pe(s),o),s=be(s);n=ke(l.getParentPrefix(),o)}return r.toLowerCase()===n.toLowerCase()?n:_d(t,n)}async function ml(t,e){let n=await pl(t,we(t,e));return n.files.length===0&&n.folders.length===0}async function pl(t,e){let n=we(t,e),r={files:[],folders:[]};if((await t.vault.adapter.stat(n))?.type!=="folder")return r;try{return await t.vault.adapter.list(n)}catch(s){if(await t.vault.exists(n))throw s;return r}}async function As(t,e,n,r={}){let o={...{shouldFailOnMissingFile:!0},...r};await Br(async()=>{let l=await gl(t,e);if(l===null)return m();let u=await Sn(n,l);if(u===null)return!1;let f=!0;if(!await Fd(t,e,async p=>{await t.vault.process(p,g=>g!==l?(console.warn("Content has changed since it was read. Retrying...",{actualContent:g,expectedContent:l,path:p.path}),f=!1,g):u)}))return m();return f;function m(){if(o.shouldFailOnMissingFile){let p=we(t,e);throw new Error(`File '${p}' not found`)}return!0}},o)}async function gl(t,e){let n=null;return await Fd(t,e,async r=>{n=await t.vault.read(r)}),n}async function Ss(t,e,n){let r=Le(t,e,!1,!0),s=hl(t,e,n);if(r.path.toLowerCase()===s.toLowerCase())return r.path!==n&&await t.vault.rename(r,s),s;let o=ut(s);await vs(t,o);try{await t.vault.rename(r,s)}catch(l){if(!await t.vault.exists(s)||await t.vault.exists(r.path))throw l}return s}async function Fd(t,e,n){let r=we(t,e),s=Ke(t,r);if(!s||s.deleted)return!1;try{return await n(s),!0}catch(o){if(s=Ke(t,r),!s||s.deleted)return!1;throw o}}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function wl(t,e,n){let r=await Sn(n),s={},o=!1;try{s=Cs(t)}catch(h){console.error(new Error(`Frontmatter parsing failed in ${e}`,{cause:h})),o=!0}for(let h of r)if(Zt(h)){let m=t.slice(h.startIndex,h.endIndex);if(m!==h.oldContent)return console.warn("Content mismatch",{actualContent:m,endIndex:h.endIndex,expectedContent:h.oldContent,path:e,startIndex:h.startIndex}),null}else if(Ts(h)){let m=sr(s,h.frontmatterKey);if(m!==h.oldContent)return console.warn("Content mismatch",{actualContent:m,expectedContent:h.oldContent,frontmatterKey:h.frontmatterKey,path:e}),null}r.sort((h,m)=>Zt(h)&&Zt(m)?h.startIndex-m.startIndex:Ts(h)&&Ts(m)?h.frontmatterKey.localeCompare(m.frontmatterKey):Zt(h)?-1:1),r=r.filter((h,m)=>h.oldContent===h.newContent?!1:m===0?!0:!dn(h,r[m-1]));for(let h=1;hm.startIndex)return console.warn("Overlapping changes",{change:m,previousChange:p}),null}let l="",u=0,f=!1;for(let h of r)Zt(h)?(l+=t.slice(u,h.startIndex),l+=h.newContent,u=h.endIndex):Ts(h)&&(o?console.error(`Cannot apply frontmatter change in ${e}, because frontmatter parsing failed`,{change:h}):(jc(s,h.frontmatterKey,h.newContent),f=!0));return l+=t.slice(u),f&&(l=vd(l,s)),l}async function _s(t,e,n,r={}){await As(t,e,async s=>qt(t,e)?hx(s,we(t,e),n):await wl(s,we(t,e),n),r)}function Kr(t){return!!t.isCanvas}function fx(t){return Kr(t)&&t.type==="file"}function dx(t){return Kr(t)&&t.type==="text"}function Zt(t){return t.startIndex!==void 0}function Ts(t){return t.frontmatterKey!==void 0}async function hx(t,e,n){let r=await Sn(n),s=mx(t),o=new Map;for(let l of r){if(!Kr(l))return console.warn("Only canvas changes are supported for canvas files",{change:l,path:e}),null;let u=s.nodes[l.nodeIndex];if(!u)return console.warn("Node not found",{nodeIndex:l.nodeIndex,path:e}),null;if(fx(l)){if(u.file!==l.oldContent)return console.warn("Content mismatch",{actualContent:u.file,expectedContent:l.oldContent,nodeIndex:l.nodeIndex,path:e,type:"file"}),null;u.file=l.newContent}else if(dx(l)){let f=o.get(l.nodeIndex);f||(f=[],o.set(l.nodeIndex,f)),f.push(l)}}for(let[l,u]of o.entries()){let f=s.nodes[l];if(!f)return console.warn("Node not found",{nodeIndex:l,path:e}),null;if(typeof f.text!="string")return console.warn("Node text is not a string",{nodeIndex:l,path:e}),null;let h=u.map(m=>wr(m.originalReference,m.newContent));f.text=await wl(f.text,`${e}.node${l.toString()}.VIRTUAL_FILE.md`,h)}return JSON.stringify(s,null," ")}function mx(t){let e;try{e=JSON.parse(t)}catch{e=null}return(e===null||typeof e!="object")&&(e={}),e}var Id=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function px(t){for(let[e,n]of Object.entries(t.metadataCache.fileCache))n.hash&&(t.metadataCache.metadataCache[n.hash]||await Jr(t,e))}function wn(t){let e=[];return t.links&&e.push(...t.links),t.embeds&&e.push(...t.embeds),t.frontmatterLinks&&e.push(...t.frontmatterLinks),Sd(e),e=e.filter((n,r)=>{if(r===0)return!0;let s=e[r-1];return s?on(n)&&on(s)?n.position.start.offset!==s.position.start.offset:vt(n)&&vt(s)?n.key!==s.key:!0:!0}),e}function yl(t,e){let n=Le(t,e,!0);return Zr(t,n,()=>t.metadataCache.getBacklinksForFile(n))}async function Qt(t,e,n={}){let r=t.metadataCache.getBacklinksForFile.safe;if(r)return r(e);let s=null;return await Br(async()=>{let o=Le(t,e);await px(t),s=yl(t,o);for(let l of s.keys()){let u=Ke(t,l);if(!u)return!1;await Pd(t,u);let f=await gl(t,u);if(!f)return!1;let h=Cs(f),m=s.get(l);if(!m)return!1;for(let p of m){let g;if(on(p))g=f.slice(p.position.start.offset,p.position.end.offset);else if(vt(p)){let w=sr(h,p.key);if(typeof w!="string")return!1;g=w}else return!0;if(g!==p.original)return!1}}return!0},n),s}async function Jr(t,e,n={}){let r=Ze("MetadataCache:getCacheSafe"),s=null;return await Br(async()=>{let o=Ke(t,e);if(!o||o.deleted)return s=null,!0;await Pd(t,o);let l=t.metadataCache.getFileInfo(o.path),u=await t.vault.adapter.stat(o.path);return l?u?o.stat.mtime{for(let s of n)delete t.vault.fileMap[s];ct(e)&&t.metadataCache.uniqueFileLookup.remove(e.name.toLowerCase(),e)}}function Zr(t,e,n){let r=gx(t,e);try{return n()}finally{r()}}async function Pd(t,e){if(!Gt(t,e))return;let n=we(t,e);for(let r of t.workspace.getLeavesOfType("markdown"))r.view instanceof Id.MarkdownView&&r.view.file?.path===n&&await r.view.save()}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function Rd(t){return t.vault.getConfig("newLinkFormat")==="relative"}function Od(t){return!t.vault.getConfig("useMarkdownLinks")}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var yx="\\|",bx=/[\\\x00\x08\x0B\x0C\x0E-\x1F ]/g,kx=/[\\[\]<>_*~=`$]/g,Dd=/(?{let s=await Jr(t,e);return await Ix(s,qt(t,e),n)},r)}function yr(t,e,n){let{linkPath:r}=Md(e.link);return t.metadataCache.getFirstLinkpathDest(r,we(t,n))}function Ex(t){let{app:e}=t,r=(e.fileManager.generateMarkdownLink.defaultOptionsFn??(()=>({})))();t={...{isEmptyEmbedAliasAllowed:!0},...r,...t};let o=Le(e,t.targetPathOrFile,t.isNonExistingFileAllowed);return Zr(e,o,()=>Tx(t))}function Qr(t){let e=Ox(t);if(e)return e;let n="!",r=t.startsWith(n);r&&(t=Kn(t,n));let o=yd().use(fr).use(Cd,{aliasDivider:Ld}).parse(t);if(o.children.length!==1)return null;let l=o.children[0];if(l?.type!=="paragraph"||l.children.length!==1)return null;let u=l.children[0];if(u?.position?.start.offset!==0||u.position.end.offset!==t.length)return null;switch(u.type){case"link":return Rx(u,t,r);case"wikiLink":return Dx(u,t,r);default:return null}}function Cx(t){let{app:e,displayText:n,isWikilink:r,newSourcePathOrFile:s,oldSourcePathOrFile:o,oldTargetPath:l,targetPathOrFile:u}=t;if(r===!1)return!1;if(!n)return!0;let f=Le(e,u,!0),h=we(e,s),m=we(e,o??s),p=be(h),g=be(m),w=new Set;for(let F of[f.path,l]){if(!F)continue;let T=we(e,F);w.add(T),w.add(pe(T)),w.add(Jn(p,T)),w.add(Jn(g,T))}for(let F of[m,h])w.add(e.metadataCache.fileToLinktext(f,F,!1));let E=Ae((0,Fs.normalizePath)(n.split(" > ")[0]??""),/^\.\//g,"").toLowerCase();for(let F of w){if(F.toLowerCase()===E)return!0;let T=be(F),C=pe(F,Se(F));if(ke(T,C).toLowerCase()===E)return!0}return!1}function Md(t){let e=(0,Fs.parseLinktext)(Mr(t));return{linkPath:e.path,subpath:e.subpath}}function vx(t){return Qr(t)?.hasAngleBrackets??!1}function Nd(t){return Qr(t)?.isEmbed??!1}function Ax(t){return Qr(t)?.url.startsWith("./")??!1}function $d(t){return Qr(t)?.isWikilink??!1}function ei(t){let{app:e,link:n,newSourcePathOrFile:r,newTargetPathOrFile:s,oldSourcePathOrFile:o,oldTargetPathOrFile:l,shouldForceMarkdownLinks:u,shouldUpdateFilenameAlias:f}=t;if(!s)return n.original;let h=Le(e,s,!0),m=we(e,l??s),p=$d(n.original)&&u!==!0,{subpath:g}=Md(n.link),w=!f;if(qt(e,r)&&dl(n))return h.path+g;let E;if(p){let T=Qr(n.original);T?.alias&&(E=T.alias,w=!0)}return E??=Cx({app:e,displayText:n.displayText,isWikilink:p,newSourcePathOrFile:r,oldSourcePathOrFile:o,oldTargetPath:m,targetPathOrFile:h})?void 0:n.displayText,w||(E===pe(m,Se(m))?E=h.basename:E===pe(m)&&(E=h.name)),Ex({alias:E,app:e,isWikilink:u?!1:void 0,originalLink:n.original,sourcePathOrFile:r,subpath:g,targetPathOrFile:h})}async function Yd(t){let{app:e,newSourcePathOrFile:n,oldSourcePathOrFile:r,shouldForceMarkdownLinks:s,shouldUpdateEmbedOnlyLinks:o,shouldUpdateFilenameAlias:l}=t;qt(e,n)&&!e.internalPlugins.getEnabledPluginById(Ut.Canvas)||await bl(e,n,u=>{let f=Nd(u.original);if(!(o!==void 0&&o!==f))return xx({app:e,link:u,newSourcePathOrFile:n,oldSourcePathOrFile:r,shouldForceMarkdownLinks:s,shouldUpdateFilenameAlias:l})},t)}function Sx(t,e,n,r,s){let o;return e.path===n&&r?o=r:s.shouldForceRelativePath?o=Jn(be(n),s.isWikilink?ac(t,e):e.path)+r:o=t.metadataCache.fileToLinktext(e,n,s.isWikilink)+r,s.shouldForceRelativePath&&s.shouldUseLeadingDot&&!o.startsWith(".")&&!o.startsWith("#")&&(o=`./${o}`),o}function Tx(t){let{app:e}=t,n=Le(e,t.targetPathOrFile,t.isNonExistingFileAllowed),r=we(e,t.sourcePathOrFile),s=t.subpath??"",o=Px(t,n),l=Sx(e,n,r,s,o);return o.isWikilink?Fx(l,t.alias,o.isEmbed):_x(l,n,t,o)}function _x(t,e,n,r){let{app:s}=n,o=r.isEmbed?"!":"",l=r.shouldUseAngleBrackets?`<${t}>`:Ae(t,bx,({substring:h})=>encodeURIComponent(h)),u=n.alias??"";!u&&(!r.isEmbed||!n.isEmptyEmbedAliasAllowed)&&(u=!n.shouldIncludeAttachmentExtensionToEmbedAlias||Gt(s,e)?e.basename:e.name);let f=Ae(u,kx,"\\$&");return`${o}[${f}](${l})`}function Fx(t,e,n){let r=n?"!":"",s=e??"";if(s&&s.toLowerCase()===t.toLowerCase())return`${r}[[${s}]]`;let o=s?`|${s}`:"";return`${r}[[${t}${o}]]`}async function Ix(t,e,n){if(!t)return[];let r=[],s=(t.sections??[]).filter(o=>o.type==="table").map(o=>({end:o.position.end.offset,start:o.position.start.offset}));for(let o of wn(t)){let l=await n(o);if(l===void 0)continue;let u=wr(o,l);e?Kr(u)?r.push(u):console.warn("Unsupported file change",u):(Lx(u,s)&&(u.newContent=u.newContent.replaceAll(Dd,yx)),r.push(u))}return r}function Px(t,e){let{app:n}=t;return{isEmbed:t.isEmbed??(t.originalLink?Nd(t.originalLink):void 0)??!Gt(n,e),isWikilink:t.isWikilink??(t.originalLink?$d(t.originalLink):void 0)??Od(n),shouldForceRelativePath:t.shouldForceRelativePath??Rd(n),shouldUseAngleBrackets:t.shouldUseAngleBrackets??(t.originalLink?vx(t.originalLink):void 0)??!1,shouldUseLeadingDot:t.shouldUseLeadingDot??(t.originalLink?Ax(t.originalLink):void 0)??!1}}function Rx(t,e,n){let r="<",s="](",o=")",l=t.children[0],u=e.slice((l?.position?.end.offset??1)+s.length,(t.position?.end.offset??0)-o.length),f=e.startsWith(r)||u.startsWith(r),h=fl(t.url),m=t.url;if(!h&&!f)try{m=decodeURIComponent(m)}catch(p){console.error(`Failed to decode URL ${m}`,p)}return{alias:l?.value,hasAngleBrackets:f,isEmbed:n,isExternal:h,isWikilink:!1,title:t.title??void 0,url:m}}function Ox(t){return fl(t)?{isEmbed:!1,isExternal:!0,isWikilink:!1,url:t}:null}function Dx(t,e,n){return{alias:e.includes(Ld)?t.data.alias:void 0,isEmbed:n,isExternal:!1,isWikilink:!0,url:t.value}}function Lx(t,e){return!Zt(t)||!Dd.test(t.newContent)?!1:e.some(n=>n.start<=t.startIndex&&t.endIndex<=n.end)}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function Bd(t,e,n){let r=Ze("Logger:invokeAsyncAndLog"),s=performance.now();n??=An(1),r(`${t}:start`,{fn:e,timestampStart:s}),r.printStackTrace(n);try{await e();let o=performance.now();r(`${t}:end`,{duration:o-s,fn:e,timestampEnd:o,timestampStart:s}),r.printStackTrace(n)}catch(o){let l=performance.now();throw r(`${t}:error`,{duration:l-s,error:o,fn:e,timestampEnd:l,timestampStart:s}),r.printStackTrace(n),o}}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function yn(t,e,n,r){r??=An(1),Kt(()=>Mx(t,e,n,r))}async function Mx(t,e,n,r){n??=6e4,r??=An(1);let o=Vd(t).value;o.items.push({fn:e,stackTrace:r,timeoutInMilliseconds:n}),o.promise=o.promise.then(()=>Wd(t)),await o.promise}function Vd(t){return cn(t,"queue",{items:[],promise:Promise.resolve()})}async function Wd(t){let e=Vd(t).value,n=e.items[0];n&&(await ma(()=>pa(n.timeoutInMilliseconds,()=>Bd(Wd.name,n.fn,n.stackTrace))),e.items.shift())}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function Is(t,e){let n=_t(t,e);for(;n;){if(!await ml(t,n))return;let r=n.parent;await ti(t,n.path),n=r}}async function ti(t,e,n,r,s){let o=Tn(t,e);if(!o)return!1;let l=ct(o)||(s??!0);if(ct(o)){let u=await Qt(t,o);n&&u.clear(n),u.count()!==0&&(r&&new Notice(`Attachment ${o.path} is still used by other notes. It will not be deleted.`),l=!1)}else if(na(o)){let u=await pl(t,o);for(let f of[...u.files,...u.folders])l&&=await ti(t,f,n,r);l&&=await ml(t,o)}if(l)try{await t.fileManager.trashFile(o)}catch(u){await t.vault.exists(o.path)&&(Lr(new Error(`Failed to delete ${o.path}`,{cause:u})),l=!1)}return l}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var kl=new Map,ni=new Set,Ps=new Map;function jd(t,e){let n=Rs(t.app),r=t.manifest.id;n.set(r,e),Ud(t.app),t.register(()=>{n.delete(r),Ud(t.app)});let s=t.app;t.registerEvent(s.vault.on("delete",o=>{Vx(t,o)})),t.registerEvent(s.vault.on("rename",(o,l)=>{Hx(t,o,l)})),t.registerEvent(s.metadataCache.on("deleted",(o,l)=>{zx(t,o,l)}))}async function Nx(t,e,n,r,s){let o=Ps.get(e);if(o){Ps.delete(e);for(let l of o)await xl(t,l.oldPath,n,r,s,l.combinedBacklinksMap)}}async function $x(t,e,n,r,s){if(r.set(e,n),!Je(t,e))return;let o=ri(t),l=await Zn(t,e),u=o.shouldRenameAttachmentFolder?await Zn(t,n):l,f=_t(t,l);if(!f||l===u&&!o.shouldRenameAttachmentFiles)return;let h=[];if(await ia(t,e))Hd.Vault.recurseChildren(f,g=>{ct(g)&&h.push(g)});else for(let g of s){let w=yr(t,g,e);w&&w.path.startsWith(l)&&(await Qt(t,w)).keys().length===1&&h.push(w)}let m=pe(e,Se(e)),p=pe(n,Se(n));for(let g of h){if(Je(t,g))continue;let w=Jn(l,g.path),E=ke(u,be(w)),F=o.shouldRenameAttachmentFiles?Ae(g.basename,m,p):g.basename,T=ke(E,an(F,g.extension));if(g.path!==T){if(o.shouldDeleteConflictingAttachments){let C=Ke(t,T);C&&await t.fileManager.trashFile(C)}else T=t.vault.getAvailablePath(ke(E,F),g.extension);r.set(g.path,T)}}}function Rs(t){return cn(t,"renameDeleteHandlersMap",new Map).value}function ri(t){let e=Rs(t),n=Array.from(e.values()).reverse(),r={};for(let s of n){let o=s();r.shouldDeleteConflictingAttachments||=o.shouldDeleteConflictingAttachments??!1,r.shouldDeleteEmptyFolders||=o.shouldDeleteEmptyFolders??!1,r.shouldHandleDeletions||=o.shouldHandleDeletions??!1,r.shouldHandleRenames||=o.shouldHandleRenames??!1,r.shouldRenameAttachmentFiles||=o.shouldRenameAttachmentFiles??!1,r.shouldRenameAttachmentFolder||=o.shouldRenameAttachmentFolder??!1,r.shouldUpdateFilenameAliases||=o.shouldUpdateFilenameAliases??!1;let l=r.isPathIgnored;r.isPathIgnored=u=>l?.(u)??o.isPathIgnored?.(u)??!1}return r}async function Yx(t,e,n,r,s){if(!t.vault.adapter.insensitive||e.toLowerCase()!==n.toLowerCase())return!1;let o=ke(be(n),`__temp__${pe(n)}`);return await Gd(t,n,o),await xl(t,e,o,r,s),await t.vault.rename(Le(t,o),n),!0}async function Bx(t,e){if(Ze("RenameDeleteHandler:handleDelete")(`Handle Delete ${e}`),!Je(t,e))return;let n=ri(t);if(!n.shouldHandleDeletions||n.isPathIgnored?.(e))return;let r=kl.get(e);if(kl.delete(e),r){let l=wn(r);for(let u of l){let f=yr(t,u,e);f&&(Je(t,f)||await ti(t,f,e,n.shouldDeleteEmptyFolders))}}let s=await Zn(t,e),o=_t(t,s);o&&await ia(t,e)&&await ti(t,o,e,!1,n.shouldDeleteEmptyFolders)}function Vx(t,e){let n=t.app;if(!El(t))return;let r=e.path;yn(n,()=>Bx(n,r))}function Wx(t,e,n){let r=ri(t);r.isPathIgnored?.(e.path)||r.shouldHandleDeletions&&Gt(t,e)&&n&&kl.set(e.path,n)}function zx(t,e,n){El(t)&&Wx(t.app,e,n)}function Ux(t,e,n){let r=qd(e,n);if(Ze("RenameDeleteHandler:handleRename")(`Handle Rename ${r}`),ni.has(r)){ni.delete(r);return}let s=ri(t);if(!s.shouldHandleRenames||s.isPathIgnored?.(e)||s.isPathIgnored?.(n))return;let o=t.metadataCache.getCache(e)??t.metadataCache.getCache(n),l=o?wn(o):[],u=yl(t,e).data;yn(t,()=>xl(t,e,n,u,l))}async function xl(t,e,n,r,s,o){await Nx(t,e,n,r,s),await jx(t,e,n,r,s),!await Yx(t,e,n,r,s)&&await wc(t.fileManager,{updateAllLinks:()=>it},async()=>{try{let l=new Map;await $x(t,e,n,l,s);let u=new Map;zd(r,l,u,e);for(let m of l.keys()){if(m===e)continue;let p=(await Qt(t,m)).data;zd(p,l,u,m)}let f=new Set;for(let[m,p]of l.entries()){if(m===e)continue;let g=await Gd(t,m,p);l.set(m,g),f.add(be(m))}let h=ri(t);if(h.shouldDeleteEmptyFolders)for(let m of f)await Is(t,m);for(let[m,p]of Array.from(u.entries()).concat(Array.from(o?.entries()??[])))await bl(t,m,g=>{let w=p.get(or(g));if(!w)return;let E=l.get(w);if(E)return ei({app:t,link:g,newSourcePathOrFile:m,newTargetPathOrFile:E,oldTargetPathOrFile:w,shouldUpdateFilenameAlias:h.shouldUpdateFilenameAliases})},{shouldFailOnMissingFile:!1});if(Je(t,n)&&await Yd({app:t,newSourcePathOrFile:n,oldSourcePathOrFile:e,shouldFailOnMissingFile:!1,shouldUpdateFilenameAlias:h.shouldUpdateFilenameAliases}),!Ke(t,n)){let m=Ps.get(n);m||(m=[],Ps.set(n,m)),m.push({combinedBacklinksMap:u,oldPath:e})}}finally{let l=Array.from(ni);yn(t,()=>{for(let u of l)ni.delete(u)})}})}function Hx(t,e,n){if(!El(t)||!ct(e))return;let r=e.path;Ux(t.app,n,r)}function zd(t,e,n,r){for(let[s,o]of t.entries()){let l=e.get(s)??s,u=n.get(l)??new Map;n.set(l,u);for(let f of o)u.set(or(f),r)}}function Ud(t){let e=Rs(t);Ze("RenameDeleteHandler:logRegisteredHandlers")(`Plugins with registered rename/delete handlers: ${JSON.stringify(Array.from(e.keys()))}`)}function qd(t,e){return`${t} -> ${e}`}async function jx(t,e,n,r,s){let o=t.metadataCache.getCache(e)??t.metadataCache.getCache(n),l=o?wn(o):[],u=Le(t,e,!0),f=new Map;await Zr(t,u,async()=>{f=(await Qt(t,u)).data});for(let h of l)s.includes(h)||s.push(h);for(let[h,m]of f.entries()){let p=r.get(h);p||(p=[],r.set(h,p));for(let g of m)p.includes(g)||p.push(g)}}async function Gd(t,e,n){if(n=hl(t,e,n),e===n)return n;let r=qd(e,n);return ni.add(r),n=await Ss(t,e,n),n}function El(t){let e=t.app,n=t.manifest.id,r=Rs(e);return Array.from(r.keys())[0]===n}var kp=ze(Ym(),1);var Nn=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function et(t,e){t.createEl("strong",{cls:"markdown-rendered code"},n=>{n.createEl("code",{text:e})})}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();async function Bm(t){let e=t.items,n=0,r=new Notice("",0),o=sleep(t.noticeMinTimeoutInMilliseconds??2e3),l=createEl("progress");if(l.max=e.length,t.shouldShowProgressBar){let u=createFragment();t.progressBarTitle&&u.appendText(t.progressBarTitle),u.appendChild(l),r.setMessage(u)}for(let u of e){if(t.abortSignal?.aborted){r.hide();return}n++;let f=`# ${n.toString()} / ${e.length.toString()}`,h=t.buildNoticeMessage(u,f);t.shouldShowProgressBar||r.setMessage(h),Ze("Loop")(h);let m=new Error(Mi);try{await t.processItem(u)}catch(p){if(console.error("Error processing item",u),!t.shouldContinueOnError)throw r.hide(),p;m.cause=p,Ni(m)}l.value++}await o,r.hide()}var Vl=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Wl=class extends ln{isConfirmed=!1;options;constructor(e,n){super(e,n,B.ConfirmModal);let r={app:e.app,cancelButtonText:"Cancel",cssClass:"",message:e.message,okButtonText:"OK",title:""};this.options={...r,...e}}onClose(){super.onClose(),this.resolve(this.isConfirmed)}onOpen(){super.onOpen(),this.titleEl.setText(this.options.title),this.contentEl.createEl("p",{text:this.options.message});let e=new Vl.ButtonComponent(this.contentEl);e.setButtonText(this.options.okButtonText),e.setCta(),e.onClick(()=>{this.isConfirmed=!0,this.close()}),e.setClass(B.OkButton);let n=new Vl.ButtonComponent(this.contentEl);n.setButtonText(this.options.cancelButtonText),n.onClick(this.close.bind(this)),n.setClass(B.CancelButton)}};async function Vm(t){return await Qn(e=>new Wl(t,e))}var jm=require("obsidian");var Ul=ze(zt(),1);var fi=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var zl=class extends ln{isOkClicked=!1;options;value;constructor(e,n){super(e,n,B.PromptModal);let r={app:e.app,cancelButtonText:"Cancel",defaultValue:"",okButtonText:"OK",placeholder:"",title:"",valueValidator:Xt};this.options={...r,...e},this.value=e.defaultValue??""}onClose(){super.onClose(),this.resolve(this.isOkClicked?this.value:null)}onOpen(){super.onOpen(),this.titleEl.setText(this.options.title);let e=new fi.TextComponent(this.contentEl),n=e.inputEl,r=async()=>{let l=await this.options.valueValidator(n.value);n.setCustomValidity(l??""),n.reportValidity()};e.setValue(this.value),e.setPlaceholder(this.options.placeholder),n.addClass(B.TextBox),e.onChange(l=>{this.value=l}),n.addEventListener("keydown",l=>{l.key==="Enter"?this.handleOk(l,e):l.key==="Escape"&&this.close()}),n.addEventListener("input",fn(r)),n.addEventListener("focus",fn(r)),Kt(r);let s=new fi.ButtonComponent(this.contentEl);s.setButtonText(this.options.okButtonText),s.setCta(),s.onClick(l=>{this.handleOk(l,e)}),s.setClass(B.OkButton);let o=new fi.ButtonComponent(this.contentEl);o.setButtonText(this.options.cancelButtonText),o.onClick(this.close.bind(this)),o.setClass(B.CancelButton)}handleOk(e,n){e.preventDefault(),n.inputEl.checkValidity()&&(this.isOkClicked=!0,this.close())}};async function Wm(t){return await Qn(e=>new zl(t,e))}var Wv=/^\.{3,}$/,zv=/[. ]+$/,Hl=/[\\/:*?"<>|]/,di=/\${(?.+?)(?::(?.+?))?}/g;function jl(t){let e=new Map;try{let n=new Function("exports",t),r={};n(r);for(let[s,o]of Object.entries(r))e.set(s,o);return e}catch(n){throw new Error("Error initializing custom token formatters",{cause:n})}}function Uv(t){return(0,Ul.default)().format(t)}function zm(t,e,n,r){let s=Ke(t,e);return s?(0,Ul.default)(r(s)).format(n):""}function Hv(){return ql("0123456789")}function jv(){return ql("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ")}function qv(){return ql("ABCDEFGHIJKLMNOPQRSTUVWXYZ")}function Gv(){return crypto.randomUUID()}function Xv(t,e,n){let r=Ke(t,e);if(!r)return"";let s=t.metadataCache.getFileCache(r);if(!s?.frontmatter)return"";let o=sr(s.frontmatter,n)??"";return String(o)}var xt=class t{constructor(e,n,r=""){this.app=e;this.filePath=n;this.originalCopiedFileName=r;this.fileName=pe(n,Se(n)),this.folderName=pe(be(n)),this.folderPath=be(n);let s=Se(r);this.originalCopiedFileName=pe(r,s),this.originalCopiedFileExtension=s.slice(1)}static formatters=new Map;static{this.registerCustomFormatters("")}fileName;folderName;folderPath;originalCopiedFileExtension;static isRegisteredToken(e){return t.formatters.has(e.toLowerCase())}static registerCustomFormatters(e){this.formatters.clear(),this.registerFormatter("date",(r,s)=>Uv(s)),this.registerFormatter("fileCreationDate",(r,s)=>zm(r.app,r.filePath,s,o=>o.stat.ctime)),this.registerFormatter("fileModificationDate",(r,s)=>zm(r.app,r.filePath,s,o=>o.stat.mtime)),this.registerFormatter("fileName",r=>r.fileName),this.registerFormatter("filePath",r=>r.filePath),this.registerFormatter("folderName",r=>r.folderName),this.registerFormatter("folderPath",r=>r.folderPath),this.registerFormatter("frontmatter",(r,s)=>Xv(r.app,r.filePath,s)),this.registerFormatter("originalCopiedFileExtension",r=>r.originalCopiedFileExtension),this.registerFormatter("originalCopiedFileName",r=>r.originalCopiedFileName),this.registerFormatter("prompt",r=>r.prompt()),this.registerFormatter("randomDigit",()=>Hv()),this.registerFormatter("randomDigitOrLetter",()=>jv()),this.registerFormatter("randomLetter",()=>qv()),this.registerFormatter("uuid",()=>Gv());let n=jl(e)??new Map;for(let[r,s]of n.entries())this.registerFormatter(r,s)}static registerFormatter(e,n){this.formatters.set(e.toLowerCase(),n)}async fillTemplate(e){return await tc(e,di,async(n,r,s)=>{let o=t.formatters.get(r.toLowerCase());if(!o)throw new Error(`Invalid token: ${r}`);try{return String(await o(this,s)??"")}catch(l){throw new Error(`Error formatting token \${${r}}`,{cause:l})}})}async prompt(){let e=await Wm({app:this.app,defaultValue:this.originalCopiedFileName,title:"Provide a value for ${prompt} template",valueValidator:n=>Us(n,!1)});if(e===null)throw new Error("Prompt cancelled");return e}};function Us(t,e=!0){if(e){t=Um(t);let n=Hm(t);if(n)return`Unknown token: ${n}`}else if(t.match(di))return"Tokens are not allowed in file name";return t==="."||t===".."?"":t?Hl.test(t)?`File name "${t}" contains invalid symbols`:Wv.test(t)?`File name "${t}" contains more than two dots`:zv.test(t)?`File name "${t}" contains trailing dots or spaces`:"":"File name is empty"}function hi(t,e=!0){if(e){t=Um(t);let r=Hm(t);if(r)return`Unknown token: ${r}`}else if(t.match(di))return"Tokens are not allowed in path";if(t=Kn(t,"/"),t=$i(t,"/"),t==="")return"";let n=t.split("/");for(let r of n){let s=Us(r);if(s)return s}return""}function ql(t){return t[Math.floor(Math.random()*t.length)]??""}function Um(t){return Ae(t,di,(e,n)=>`\${${n}}`)}function Hm(t){let e=t.matchAll(di);for(let n of e){let r=n[1]??"";if(!xt.isRegisteredToken(r))return r}return null}async function Hs(t,e,n){return await Jv(t,new xt(t.app,e,n))}async function js(t,e){return await qm(t,t.settings.generatedAttachmentFilename,e)}function Kv(t,e){if(!t.settings.specialCharacters)return e;e=e.replace(t.settings.specialCharactersRegExp,t.settings.specialCharactersReplacement);let n=Xn(t.settings.specialCharactersReplacement);return e=e.replace(new RegExp(`${n}{2,}`,"g"),t.settings.specialCharactersReplacement),e}async function Jv(t,e){return await qm(t,t.settings.attachmentFolderPath,e)}async function qm(t,e,n){let r=await n.fillTemplate(e),s=hi(r,!1);if(s)throw new Error(`Resolved path ${r} is invalid: ${s}`);return t.settings.shouldRenameAttachmentsToLowerCase&&(r=r.toLowerCase()),r=Kv(t,r),(r.startsWith("./")||r.startsWith("../"))&&(r=ke(n.folderPath,r)),r=(0,jm.normalizePath)(r),r}async function Gm(t,e,n,r){let s=t.app;n??=e.path,r??=()=>!0;let o=new Nn.Notice(`Collecting attachments for ${e.path}`),l=new Map,u=qt(s,e);await _s(s,e,async()=>{let f=await Jr(s,e);if(!f)return[];let h=u?await Zv(s,e):wn(f),m=[];for(let p of h){let g=await Qv(t,p,e.path,n);if(!g||!r(g.oldAttachmentPath))continue;if((await Qt(s,g.oldAttachmentPath)).count()>1?g.newAttachmentPath=await Td(s,g.oldAttachmentPath,g.newAttachmentPath):(g.newAttachmentPath=await Ss(s,g.oldAttachmentPath,g.newAttachmentPath),await Is(s,be(g.oldAttachmentPath))),l.set(g.oldAttachmentPath,g.newAttachmentPath),!u){let E=ei({app:s,link:p,newSourcePathOrFile:e,newTargetPathOrFile:g.newAttachmentPath,oldTargetPathOrFile:g.oldAttachmentPath});m.push(wr(p,E))}}return m}),u&&await As(s,e,f=>{let h=JSON.parse(f);for(let m of h.nodes){if(m.type!=="file")continue;let p=l.get(m.file);p&&(m.file=p)}return or(h)}),o.hide()}function Xm(t,e){let n=t.app.workspace.getActiveFile();return Je(t.app,n)?(e||yn(t.app,()=>qs(t,n?.parent??Ht(new Error("Parent folder not found")))),!0):!1}function Km(t,e){let n=t.app.workspace.getActiveFile();if(!n||!Je(t.app,n))return!1;if(!e){if(t.settings.isPathIgnored(n.path))return new Nn.Notice("Note path is ignored"),!0;yn(t.app,()=>Gm(t,n))}return!0}function Jm(t){yn(t.app,()=>qs(t,t.app.vault.getRoot()))}async function qs(t,e){if(!await Vm({app:t.app,message:createFragment(r=>{r.appendText("Do you want to collect attachments for all notes in folder: "),et(r,e.path),r.appendText(" and all its subfolders?"),r.createEl("br"),r.appendText("This operation cannot be undone.")}),title:createFragment(r=>{(0,Nn.setIcon)(r.createSpan(),"lucide-alert-triangle"),r.appendText(" Collect attachments in folder")})}))return;t.consoleDebug(`Collect attachments in folder: ${e.path}`);let n=[];Nn.Vault.recurseChildren(e,r=>{Je(t.app,r)&&n.push(r)}),n.sort((r,s)=>r.path.localeCompare(s.path)),await Bm({abortSignal:t.abortSignal,buildNoticeMessage:(r,s)=>`Collecting attachments ${s} - ${r.path}`,items:n,processItem:async r=>{t.settings.isPathIgnored(r.path)||await Gm(t,r)},progressBarTitle:"Custom Attachment Location: Collecting attachments...",shouldContinueOnError:!0,shouldShowProgressBar:!0})}async function Zv(t,e){return(await t.vault.readJson(e.path)).nodes.filter(s=>s.type==="file").map(s=>s.file).map(s=>({link:s,original:s,position:{end:{col:0,line:0,loc:0,offset:0},start:{col:0,line:0,loc:0,offset:0}}}))}async function Qv(t,e,n,r){let s=t.app,o=yr(s,e,r);if(!o||Je(t.app,o))return null;let l=o.path,u=o.name,f=pe(r,Se(r)),h=pe(n,Se(n)),m;t.settings.shouldRenameCollectedAttachments?m=an(await js(t,new xt(t.app,n,o.name)),o.extension):t.settings.shouldRenameAttachmentFiles?m=u.replaceAll(f,h):m=u;let p=await Hs(t,n,m),g=ke(p,m);return l===g?null:{newAttachmentPath:g,oldAttachmentPath:l}}var Zm=/(?:)/,Qm=/$./,xr=(r=>(r.None="None",r.OnlyPastedImages="Only pasted images",r.All="All",r))(xr||{}),Gs=class{attachmentFolderPath="./assets/${filename}";attachmentRenameMode="Only pasted images";duplicateNameSeparator=" ";generatedAttachmentFilename="file-${date:YYYYMMDDHHmmssSSS}";jpegQuality=.8;shouldConvertPastedImagesToJpeg=!1;shouldDeleteOrphanAttachments=!1;shouldKeepEmptyAttachmentFolders=!1;shouldRenameAttachmentFiles=!1;shouldRenameAttachmentFolder=!0;shouldRenameAttachmentsToLowerCase=!1;shouldRenameCollectedAttachments=!1;specialCharacters="#^[]|*\\<>:?";specialCharactersReplacement="-";warningVersion="0.0.0";get customTokensStr(){return this._customTokensStr}set customTokensStr(e){this._customTokensStr=e,xt.registerCustomFormatters(this._customTokensStr)}get excludePaths(){return this._excludePaths}set excludePaths(e){this._excludePaths=e.filter(Boolean),this._excludePathsRegExp=ep(this._excludePaths,Qm)}get includePaths(){return this._includePaths}set includePaths(e){this._includePaths=e.filter(Boolean),this._includePathsRegExp=ep(this._includePaths,Zm)}get specialCharactersRegExp(){return new RegExp(`[${Xn(this.specialCharacters)}]`,"g")}_customTokensStr="";_excludePaths=[];_excludePathsRegExp=Qm;_includePaths=[];_includePathsRegExp=Zm;isPathIgnored(e){return!this._includePathsRegExp.test(e)||this._excludePathsRegExp.test(e)}};function ep(t,e){if(t.length===0)return e;let n=t.map(r=>r.startsWith("/")&&r.endsWith("/")?r.slice(1,-1):`^${Xn(r)}`).map(r=>`(${r})`).join("|");return new RegExp(n)}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var bn=class{getTransformer(e){if(e===this.id)return this;throw new Error(`Transformer with id ${e} not found`)}transformObjectRecursively(e){return this.transformValueRecursively(e,"")}getTransformerId(e,n){return this.canTransform(e,n)?this.id:null}transformValueRecursively(e,n){let r=this.getTransformerId(e,n);if(r){let l=this.transformValue(e,n);return l===void 0?void 0:{__transformerId:r,transformedValue:l}}if(e===null)return null;if(typeof e!="object")return e;if(Array.isArray(e))return e.map((l,u)=>this.transformValueRecursively(l,u.toString()));let s=e;if(s.__transformerId)return this.getTransformer(s.__transformerId).restoreValue(s.transformedValue,n);let o={};for(let l of ir(e)){let u=e[l],f=this.transformValueRecursively(u,l);o[l]=f}return o}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Er=class extends bn{};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Xs=class extends Er{get id(){return"date"}canTransform(e){return e instanceof Date}restoreValue(e){return new Date(e)}transformValue(e){return e.toISOString()}};var tp=ze(zt(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Ks=class extends Er{get id(){return"duration"}canTransform(e){let n=e??{};return!!n.asHours&&!!n.asMinutes&&!!n.asSeconds&&!!n.asMilliseconds}restoreValue(e){return(0,tp.duration)(e)}transformValue(e){return e.toISOString()}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Js=class extends bn{constructor(e){super(),this.transformers=e}get id(){return"group"}canTransform(e,n){return this.getFirstTransformerThatCanTransform(e,n)!==null}getTransformer(e){return this.transformers.find(n=>n.id===e)??Ht(`No transformer with id ${e} found`)}transformValue(e,n){let r=this.getFirstTransformerThatCanTransform(e,n);if(r===null)throw new Error("No transformer can transform the value");return r.transformValue(e,n)}getTransformerId(e,n){let r=this.getFirstTransformerThatCanTransform(e,n);return r===null?null:r.id}restoreValue(){throw new Error("GroupTransformer does not support restoring values")}getFirstTransformerThatCanTransform(e,n){return this.transformers.find(r=>r.canTransform(e,n))??null}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var eA="_",Zs=class extends bn{get id(){return"skip-private-property"}canTransform(e,n){return n.startsWith(eA)}transformValue(){}restoreValue(){throw new Error("SkipPrivatePropertyTransformer does not support restoring values")}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var tA=new Js([new Zs,new Xs,new Ks]),Qs=class extends St{constructor(e){super(),this.plugin=e,this.app=e.app,this.defaultSettings=this.createDefaultSettings(),this.currentSettingsWrapper=this.createDefaultSettingsWrapper(),this.lastSavedSettingsWrapper=this.createDefaultSettingsWrapper(),this.propertyNames=ir(this.currentSettingsWrapper.settings),this.registerValidators()}app;defaultSettings;get settingsWrapper(){return this.currentSettingsWrapper}currentSettingsWrapper;lastSavedSettingsWrapper;propertyNames;validators=new Map;async editAndSave(e,n){await this.edit(e),await this.saveToFile(n)}async ensureSafe(e){let n=await this.validate(e);for(let r of this.propertyNames)n[r]&&(e[r]=this.defaultSettings[r])}async getSafeCopy(e){let n=await this.cloneSettings(e);return await this.ensureSafe(n),n}async loadFromFile(e){let n=await this.plugin.loadData();if(this.lastSavedSettingsWrapper=this.createDefaultSettingsWrapper(),this.currentSettingsWrapper=this.createDefaultSettingsWrapper(),n==null)return;if(typeof n!="object"){console.error(`Invalid settings from data.json. Expected Object, got: ${typeof n}`);return}let r=n,s=await this.rawRecordToSettings(r),o=await this.validate(s);for(let u of this.propertyNames)this.setPropertyImpl(u,s[u],o[u]);this.lastSavedSettingsWrapper=await this.cloneSettingsWrapper(this.currentSettingsWrapper);let l=await this.settingsToRawRecord(this.currentSettingsWrapper.settings);dn(l,n)||await this.saveToFileImpl(),await this.triggerAsync("loadSettings",this.currentSettingsWrapper,e)}on(e,n,r){return super.on(e,n,r)}async saveToFile(e){dn(this.lastSavedSettingsWrapper.settings,this.currentSettingsWrapper.settings)||(await this.saveToFileImpl(),await this.triggerAsync("saveSettings",this.currentSettingsWrapper,this.lastSavedSettingsWrapper,e),this.lastSavedSettingsWrapper=await this.cloneSettingsWrapper(this.currentSettingsWrapper))}async setProperty(e,n){return await this.edit(r=>{r[e]=n}),this.currentSettingsWrapper.validationMessages[e]}async validate(e){let n={};for(let[r,s]of this.validators.entries()){let o=await s(e[r],e);o&&(n[r]=o)}return n}getTransformer(){return tA}async onLoadRecord(e){await it()}async onSavingRecord(e){await it()}registerValidator(e,n){this.validators.set(e,n)}registerValidators(){}async cloneSettings(e){let n=await this.settingsToRawRecord(e),r=JSON.stringify(n),s=JSON.parse(r);return await this.rawRecordToSettings(s)}async cloneSettingsWrapper(e){return{safeSettings:await this.cloneSettings(e.safeSettings),settings:await this.cloneSettings(e.settings),validationMessages:{...e.validationMessages}}}createDefaultSettingsWrapper(){return{safeSettings:this.createDefaultSettings(),settings:this.createDefaultSettings(),validationMessages:{}}}async edit(e){try{await e(this.currentSettingsWrapper.settings)}finally{let n=await this.validate(this.currentSettingsWrapper.settings);for(let r of this.propertyNames){let s=n[r]??"";this.currentSettingsWrapper.validationMessages[r]=s,this.currentSettingsWrapper.safeSettings[r]=s?this.defaultSettings[r]:this.currentSettingsWrapper.settings[r]}}}isValidPropertyName(e){return typeof e!="string"?!1:this.propertyNames.includes(e)}async rawRecordToSettings(e){e=this.getTransformer().transformObjectRecursively(e),await this.onLoadRecord(e);let n=this.createDefaultSettings();for(let[r,s]of Object.entries(e)){if(!this.isValidPropertyName(r)){console.warn(`Unknown property: ${r}`);continue}typeof s!=typeof this.defaultSettings[r]&&console.warn("Possible invalid value type. It might lead to an unexpected behavior of the plugin. There is also a chance it is a false-negative warning, as we are unable to determine the exact type of the value in runtime.",{defaultValue:this.defaultSettings[r],propertyName:r,value:s}),n[r]=s}return n}async saveToFileImpl(){await this.plugin.saveData(await this.settingsToRawRecord(this.currentSettingsWrapper.settings))}setPropertyImpl(e,n,r){this.currentSettingsWrapper.settings[e]=n,this.currentSettingsWrapper.validationMessages[e]=r??"",this.currentSettingsWrapper.safeSettings[e]=r?this.defaultSettings[e]:n}async settingsToRawRecord(e){let n={};for(let r of this.propertyNames)n[r]=e[r];return await this.onSavingRecord(n),this.getTransformer().transformObjectRecursively(n)}};var eo=class extends Qs{createDefaultSettings(){return new Gs}async onLoadRecord(e){await super.onLoadRecord(e);let n=e,r=n.dateTimeFormat??"YYYYMMDDHHmmssSSS";n.attachmentFolderPath=np(n.attachmentFolderPath??"",r),n.generatedAttachmentFilename=np(n.generatedAttachmentFilename??n.pastedFileName??n.pastedImageFileName??"file-${date}",r),n.replaceWhitespace!==void 0&&(n.whitespaceReplacement=n.replaceWhitespace?"-":""),n.autoRenameFiles!==void 0&&(n.shouldRenameAttachmentFiles=n.autoRenameFiles),n.autoRenameFolder!==void 0&&(n.shouldRenameAttachmentFolder=n.autoRenameFolder),n.deleteOrphanAttachments!==void 0&&(n.shouldDeleteOrphanAttachments=n.deleteOrphanAttachments),n.keepEmptyAttachmentFolders!==void 0&&(n.shouldKeepEmptyAttachmentFolders=n.keepEmptyAttachmentFolders),n.renameCollectedFiles!==void 0&&(n.shouldRenameCollectedAttachments=n.renameCollectedFiles),n.toLowerCase!==void 0&&(n.shouldRenameAttachmentsToLowerCase=n.toLowerCase),n.convertImagesToJpeg!==void 0&&(n.shouldConvertPastedImagesToJpeg=n.convertImagesToJpeg),n.whitespaceReplacement&&(n.specialCharacters=`${n.specialCharacters??""} `,n.specialCharactersReplacement=n.whitespaceReplacement)}registerValidators(){this.registerValidator("attachmentFolderPath",e=>hi(e)),this.registerValidator("generatedAttachmentFilename",e=>hi(e)),this.registerValidator("specialCharacters",e=>{if(e.includes("/"))return"Special characters must not contain /"}),this.registerValidator("specialCharactersReplacement",e=>{if(Hl.exec(e))return"Special character replacement must not contain invalid filename path characters."}),this.registerValidator("duplicateNameSeparator",e=>Us(`filename${e}1`,!1)),this.registerValidator("includePaths",e=>rp(e)),this.registerValidator("excludePaths",e=>rp(e)),this.registerValidator("customTokensStr",e=>{nA(e)})}};function np(t,e){return t.replaceAll("${date}",`\${date:${e}}`)}function nA(t){if(jl(t)===null)return"Invalid custom tokens code"}function rp(t){for(let e of t)if(e.startsWith("/")&&e.endsWith("/")){let n=e.slice(1,-1);if(!Qu(n))return`Invalid regular expression ${e}`}}var yp=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function ip(t,e){let n=Object.keys(t).find(r=>t[r]===e);if(n===void 0)throw new Error(`Invalid enum value: ${e}`);return n}function sp(t,e){let n=t[e];if(n===void 0)throw new Error(`Invalid enum key: ${e}`);return n}var Cr=require("obsidian");var op=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Gl=class{constructor(e){this.abstractTextComponent=e}empty(){this.abstractTextComponent.setValue("")}isEmpty(){return this.abstractTextComponent.getValue()===""}setPlaceholderValue(e){return this.abstractTextComponent.setPlaceholder(e),this}};function ap(t){return rA(t)?t:t instanceof op.AbstractTextComponent?new Gl(t):null}function rA(t){let e=t;return typeof e.setPlaceholderValue=="function"&&typeof e.isEmpty=="function"}var Pt=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var $n=class{constructor(e){this.validatorEl=e}};function lp(t){return iA(t)?t:t instanceof Pt.DropdownComponent?new $n(t.selectEl):t instanceof Pt.SliderComponent?new $n(t.sliderEl):t instanceof Pt.TextAreaComponent?new $n(t.inputEl):t instanceof Pt.TextComponent?new $n(t.inputEl):t instanceof Pt.ToggleComponent?new $n(t.toggleEl.find("input[type=checkbox]")):null}function iA(t){return!!t.validatorEl}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();function up(t){return t.validationMessage!==void 0}(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Xl="PluginSettingsTab",to=class extends Cr.PluginSettingTab{constructor(e){super(e.app,e),this.plugin=e,this.containerEl.addClass(B.LibraryName,xe(),B.PluginSettingsTab),this.saveSettingsDebounced=(0,Cr.debounce)(fn(()=>this.plugin.settingsManager.saveToFile(Xl)),this.saveSettingsDebounceTimeoutInMilliseconds),this.asyncEventsComponent=new Gi,this.asyncEvents=new St}get isOpen(){return this._isOpen}get saveSettingsDebounceTimeoutInMilliseconds(){return 2e3}_isOpen=!1;asyncEvents;asyncEventsComponent;saveSettingsDebounced;get pluginSettings(){return this.plugin.settingsManager.settingsWrapper.settings}bind(e,n,r){let o={...{componentToPluginSettingsValueConverter:p=>p,onChanged:Xt,pluginSettingsToComponentValueConverter:p=>p,shouldResetSettingWhenComponentIsEmpty:!1,shouldShowValidationMessage:!0},...r},l=lp(e)?.validatorEl,u=ap(e),f=this.pluginSettings[n],h=this.plugin.settingsManager.defaultSettings[n];return u?.setPlaceholderValue(o.pluginSettingsToComponentValueConverter(h)),this.asyncEventsComponent.registerAsyncEvent(this.on("validationMessageChanged",(p,g)=>{n===p&&m(g)})),u&&o.shouldResetSettingWhenComponentIsEmpty&&dn(f,h)?u.empty():e.setValue(o.pluginSettingsToComponentValueConverter(f)),e.onChange(async p=>{let g=this.pluginSettings[n],w,E;if(u?.isEmpty()&&o.shouldResetSettingWhenComponentIsEmpty)w=h,E="";else{let F=o.componentToPluginSettingsValueConverter(p);up(F)?E=F.validationMessage:(w=F,E=await this.plugin.settingsManager.setProperty(n,w))}m(E),w!==void 0&&await o.onChanged(w,g),this.saveSettingsDebounced()}),l?.addEventListener("focus",()=>{m()}),l?.addEventListener("blur",()=>{m()}),m(this.plugin.settingsManager.settingsWrapper.validationMessages[n]),e;function m(p){l&&(p===""&&(l.setCustomValidity(""),l.checkValidity(),p=l.validationMessage),p!==void 0&&(l.setCustomValidity(p),(0,Cr.setTooltip)(l,p)),l.isActiveElement()&&o.shouldShowValidationMessage&&l.reportValidity())}}display(){this._isOpen=!0,this.asyncEventsComponent.load(),this.asyncEventsComponent.registerAsyncEvent(this.plugin.settingsManager.on("loadSettings",this.onLoadSettings.bind(this))),this.asyncEventsComponent.registerAsyncEvent(this.plugin.settingsManager.on("saveSettings",this.onSaveSettings.bind(this)))}hide(){super.hide(),this.saveSettingsDebounced.cancel(),this.containerEl.empty(),this._isOpen=!1,this.asyncEventsComponent.unload(),this.asyncEventsComponent.load(),Kt(()=>this.plugin.settingsManager.saveToFile(Xl))}show(){this.app.setting.openTab(this)}async onLoadSettings(e,n){this.refresh(),await it()}on(e,n,r){return this.asyncEvents.on(e,n,r)}async onSaveSettings(e,n,r){if(r===Xl){for(let[s,o]of Object.entries(e.validationMessages))await this.asyncEvents.triggerAsync("validationMessageChanged",s,o);return}this.refresh()}refresh(){this.containerEl.empty(),this.display()}};var wp=require("obsidian");var cp=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var no=class extends cp.ValueComponent{inputEl;get validatorEl(){return this.inputEl}changeCallback;constructor(e){super(),e.addClass(B.LibraryName,xe(),B.CheckboxComponent),this.inputEl=e.createEl("input",{type:"checkbox"}),this.inputEl.addEventListener("change",this.onChanged.bind(this))}getValue(){return this.inputEl.checked}onChange(e){return this.changeCallback=e,this}onChanged(){this.changeCallback?.(this.getValue())}setDisabled(e){return super.setDisabled(e),this.inputEl.disabled=e,this}setValue(e){return this.inputEl.checked=e,this}};var Kl=ze(zt(),1);var ro=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var tt=class extends ro.ValueComponent{inputEl;get validatorEl(){return this.inputEl}textComponent;constructor(e,n,r){super(),this.textComponent=new ro.TextComponent(e),this.inputEl=this.textComponent.inputEl,this.inputEl.type=n,e.addClass(B.LibraryName,xe(),r)}empty(){this.textComponent.setValue("")}getValue(){return this.valueFromString(this.textComponent.getValue())}isEmpty(){return this.textComponent.getValue()===""}onChange(e){return this.textComponent.onChange(()=>e(this.getValue())),this}onChanged(){this.textComponent.onChanged()}setDisabled(e){return super.setDisabled(e),this.textComponent.setDisabled(e),this}setPlaceholder(e){return this.textComponent.setPlaceholder(e),this}setPlaceholderValue(e){return this.setPlaceholder(this.valueToString(e)),this}setValue(e){return this.textComponent.setValue(this.valueToString(e)),this}valueToString(e){return String(e)}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var nt=class extends tt{setMax(e){return this.inputEl.max=this.valueToString(e),this}setMin(e){return this.inputEl.min=this.valueToString(e),this}setStep(e){return this.inputEl.step=e.toString(),this}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var fp="YYYY-MM-DD",io=class extends nt{constructor(e){super(e,"date",B.DateComponent)}valueFromString(e){return(0,Kl.default)(e,fp).toDate()}valueToString(e){return(0,Kl.default)(e).format(fp)}};var Jl=ze(zt(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var dp="YYYY-MM-DDTHH:mm",so=class extends nt{constructor(e){super(e,"datetime-local",B.DateTimeComponent)}valueFromString(e){return(0,Jl.default)(e,dp).toDate()}valueToString(e){return(0,Jl.default)(e).format(dp)}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var oo=class extends tt{constructor(e){super(e,"email",B.EmailComponent)}valueFromString(e){return e}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var ao=class extends tt{constructor(e){super(e,"file",B.FileComponent)}getValue(){return this.inputEl.files?.[0]??null}valueFromString(){return this.getValue()}valueToString(e){return e?.name??""}};var Zl=ze(zt(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var hp="YYYY-MM",lo=class extends nt{constructor(e){super(e,"month",B.MonthComponent)}valueFromString(e){let n=(0,Zl.default)(e,hp);if(!n.isValid())throw new Error("Invalid month");return{month:n.month()+1,year:n.year()}}valueToString(e){return(0,Zl.default)().year(e.year).month(e.month-1).format(hp)}};var uo=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var vr=class extends uo.ValueComponent{get validatorEl(){return this.dropdownComponent.selectEl}dropdownComponent;constructor(e){super(),this.dropdownComponent=new uo.DropdownComponent(e),this.dropdownComponent.selectEl.multiple=!0,e.addClass(B.LibraryName,xe(),B.MultipleDropdownComponent)}addOption(e,n){return this.dropdownComponent.addOption(e,n),this}addOptions(e){return this.dropdownComponent.addOptions(e),this}getValue(){return Array.from(this.dropdownComponent.selectEl.selectedOptions).map(e=>e.value)}onChange(e){return this.dropdownComponent.onChange(()=>e(this.getValue())),this}setDisabled(e){return super.setDisabled(e),this.dropdownComponent.setDisabled(e),this}setValue(e){for(let n of Array.from(this.dropdownComponent.selectEl.options))n.selected=e.includes(n.value);return this}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var co=class extends tt{constructor(e){super(e,"email",B.MultipleEmailComponent),this.inputEl.multiple=!0}valueFromString(e){return e.split(",").map(n=>n.trim())}valueToString(e){return e.join(", ")}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var fo=class extends tt{constructor(e){super(e,"file",B.MultipleFileComponent),this.inputEl.multiple=!0}getValue(){return Array.from(this.inputEl.files??[])}valueFromString(){return this.getValue()}valueToString(e){return e[0]?.name??""}};var mo=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var ho=class extends mo.ValueComponent{get validatorEl(){return this.textAreaComponent.inputEl}textAreaComponent;constructor(e){super(),this.textAreaComponent=new mo.TextAreaComponent(e),e.addClass(B.LibraryName,xe(),B.MultipleTextComponent)}empty(){this.textAreaComponent.setValue("")}getValue(){return this.textAreaComponent.getValue().split(` +`)}isEmpty(){return this.textAreaComponent.getValue()===""}onChange(e){return this.textAreaComponent.onChange(()=>e(this.getValue())),this}setDisabled(e){return super.setDisabled(e),this.textAreaComponent.setDisabled(e),this}setPlaceholder(e){return this.textAreaComponent.setPlaceholder(e),this}setPlaceholderValue(e){return this.setPlaceholder(this.valueToString(e)),this}setValue(e){return this.textAreaComponent.setValue(this.valueToString(e)),this}valueToString(e){return e.join(` +`)}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var po=class extends nt{constructor(e){super(e,"number",B.NumberComponent)}valueFromString(e){return parseInt(e,10)}};var wo=ze(zt(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var go=class extends nt{constructor(e){super(e,"time",B.TimeComponent)}valueFromString(e){return(0,wo.duration)(e)}valueToString(e){let n;return e.milliseconds()>0?n="HH:mm:ss.SSS":e.seconds()>0?n="HH:mm:ss":n="HH:mm",(0,wo.utc)(e.asMilliseconds()).format(n)}};var mp=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var yo=class extends mp.ValueComponent{inputEl;get validatorEl(){return this.inputEl}changeCallback;constructor(e){super(),e.addClass(B.LibraryName,xe(),B.TriStateCheckboxComponent),this.inputEl=e.createEl("input",{type:"checkbox"}),this.inputEl.addEventListener("change",this.onChanged.bind(this))}getValue(){return this.inputEl.indeterminate?null:this.inputEl.checked}onChange(e){return this.changeCallback=e,this}onChanged(){this.changeCallback?.(this.getValue())}setDisabled(e){return super.setDisabled(e),this.inputEl.disabled=e,this}setValue(e){return this.inputEl.indeterminate=e===null,this.inputEl.checked=e??!1,this}};var ko=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var bo=class extends ko.ValueComponent{get validatorEl(){return this.dropdownComponent.selectEl}dropdownComponent;values=[];constructor(e){super(),this.dropdownComponent=new ko.DropdownComponent(e),e.addClass(B.LibraryName,xe(),B.TypedDropdownComponent)}addOption(e,n){let r=this.values.indexOf(e);return r===-1&&(this.values.push(e),r=this.values.length-1),this.dropdownComponent.addOption(r.toString(),n),this}addOptions(e){for(let[n,r]of e.entries())this.addOption(n,r);return this}getValue(){return this.values[this.dropdownComponent.selectEl.selectedIndex]??null}onChange(e){return this.dropdownComponent.onChange(()=>e(this.getValue())),this}setDisabled(e){return super.setDisabled(e),this.dropdownComponent.setDisabled(e),this}setValue(e){let n=e===null?-1:this.values.indexOf(e);return this.dropdownComponent.selectEl.selectedIndex=n,this}};var pp=require("obsidian");(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var xo=class extends pp.ValueComponent{get validatorEl(){return this.multipleDropdownComponent.validatorEl}multipleDropdownComponent;values=[];constructor(e){super(),this.multipleDropdownComponent=new vr(e),e.addClass(B.LibraryName,xe(),B.TypedMultipleDropdownComponent)}addOption(e,n){let r=this.values.indexOf(e);return r===-1&&(this.values.push(e),r=this.values.length-1),this.multipleDropdownComponent.addOption(r.toString(),n),this}addOptions(e){for(let[n,r]of e.entries())this.addOption(n,r);return this}getValue(){return this.multipleDropdownComponent.getValue().map(n=>parseInt(n,10)).map(n=>this.values[n]).filter(n=>n!==void 0)}onChange(e){return this.multipleDropdownComponent.onChange(()=>e(this.getValue())),this}setDisabled(e){return super.setDisabled(e),this.multipleDropdownComponent.setDisabled(e),this}setValue(e){let n=e.map(r=>this.values.indexOf(r)).filter(r=>r!==-1);return this.multipleDropdownComponent.setValue(n.map(r=>r.toString())),this}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Eo=class extends tt{constructor(e){super(e,"url",B.UrlComponent)}valueFromString(e){return e}};var Ql=ze(zt(),1);(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var gp="YYYY-[W]WW",Co=class extends nt{constructor(e){super(e,"week",B.WeekComponent)}valueFromString(e){let n=(0,Ql.default)(e,gp);if(!n.isValid())throw new Error("Invalid week");return{weekNumber:n.isoWeek(),year:n.year()}}valueToString(e){return(0,Ql.default)().year(e.year).isoWeek(e.weekNumber).format(gp)}};(function(){if(globalThis.process)return;let e={browser:!0,cwd:__name(()=>"/","cwd"),env:{},platform:"android"};globalThis.process=e})();var Ee=class extends wp.Setting{addCheckbox(e){return this.addComponent(no,e)}addComponent(e,n){let r=new e(this.controlEl);return this.components.push(r),n(r),this}addDate(e){return this.addComponent(io,e)}addDateTime(e){return this.addComponent(so,e)}addEmail(e){return this.addComponent(oo,e)}addFile(e){return this.addComponent(ao,e)}addMonth(e){return this.addComponent(lo,e)}addMultipleDropdown(e){return this.addComponent(vr,e)}addMultipleEmail(e){return this.addComponent(co,e)}addMultipleFile(e){return this.addComponent(fo,e)}addMultipleText(e){return this.addComponent(ho,e)}addNumber(e){return this.addComponent(po,e)}addTime(e){return this.addComponent(go,e)}addTriStateCheckbox(e){return this.addComponent(yo,e)}addTypedDropdown(e){return this.addComponent(bo,e)}addTypedMultipleDropdown(e){return this.addComponent(xo,e)}addUrl(e){return this.addComponent(Eo,e)}addWeek(e){return this.addComponent(Co,e)}};var vo="\u2423",Ao=class extends to{display(){super.display(),this.containerEl.empty(),new Ee(this.containerEl).setName("Location for new attachments").setDesc(createFragment(e=>{e.appendText("Start with "),et(e,"."),e.appendText(" to use relative path."),e.createEl("br"),e.appendText("See available "),e.createEl("a",{href:"https://github.com/RainCat1998/obsidian-custom-attachment-location?tab=readme-ov-file#tokens",text:"tokens"}),e.appendChild(createEl("br")),e.appendText("Dot-folders like "),et(e,".attachments"),e.appendText(" are not recommended, because Obsidian doesn't track them. You might need to use "),e.createEl("a",{href:"https://github.com/polyipseity/obsidian-show-hidden-files/",text:"Show Hidden Files"}),e.appendText(" Plugin to manage them.")})).addText(e=>this.bind(e,"attachmentFolderPath",{componentToPluginSettingsValueConverter(n){return(0,yp.normalizePath)(n)},pluginSettingsToComponentValueConverter(n){return n}})),new Ee(this.containerEl).setName("Generated attachment filename").setDesc(createFragment(e=>{e.appendText("See available "),e.createEl("a",{href:"https://github.com/RainCat1998/obsidian-custom-attachment-location?tab=readme-ov-file#tokens",text:"tokens"})})).addText(e=>{this.bind(e,"generatedAttachmentFilename")}),new Ee(this.containerEl).setName("Attachment rename mode").addDropdown(e=>{e.addOptions(xr),this.bind(e,"attachmentRenameMode",{componentToPluginSettingsValueConverter:n=>sp(xr,n),pluginSettingsToComponentValueConverter:n=>ip(xr,n)})}),new Ee(this.containerEl).setName("Should rename attachment folder").setDesc(createFragment(e=>{e.appendText("When renaming md files, automatically rename attachment folder if folder name contains "),et(e,"${filename}"),e.appendText(".")})).addToggle(e=>{this.bind(e,"shouldRenameAttachmentFolder")}),new Ee(this.containerEl).setName("Should rename attachment files").setDesc(createFragment(e=>{e.appendText("When renaming md files, automatically rename attachment files if file name contains "),et(e,"${filename}"),e.appendText(".")})).addToggle(e=>{this.bind(e,"shouldRenameAttachmentFiles")}),new Ee(this.containerEl).setName("Special characters").setDesc(createFragment(e=>{e.appendText("Special characters in attachment folder and file name to be replaced or removed."),e.createEl("br"),e.appendText("Leave blank to preserve special characters.")})).addText(e=>{this.bind(e,"specialCharacters",{componentToPluginSettingsValueConverter:n=>n.replaceAll(vo,""),pluginSettingsToComponentValueConverter:n=>n.replaceAll(" ",vo),shouldResetSettingWhenComponentIsEmpty:!1}),e.inputEl.addEventListener("input",()=>{e.inputEl.value=eu(e.inputEl.value)})}),new Ee(this.containerEl).setName("Special characters replacement").setDesc(createFragment(e=>{e.appendText("Replacement string for special characters in attachment folder and file name."),e.createEl("br"),e.appendText("Leave blank to remove special characters.")})).addText(e=>{this.bind(e,"specialCharactersReplacement",{shouldResetSettingWhenComponentIsEmpty:!1})}),new Ee(this.containerEl).setName("Should rename attachments to lowercase").setDesc("Automatically set all characters in folder name and pasted image name to be lowercase.").addToggle(e=>{this.bind(e,"shouldRenameAttachmentsToLowerCase")}),new Ee(this.containerEl).setName("Should convert pasted images to JPEG").setDesc("Paste images from clipboard converting them to JPEG.").addToggle(e=>{this.bind(e,"shouldConvertPastedImagesToJpeg")}),new Ee(this.containerEl).setName("JPEG Quality").setDesc("The smaller the quality, the greater the compression ratio.").addDropdown(e=>{e.addOptions(sA()),this.bind(e,"jpegQuality",{componentToPluginSettingsValueConverter:n=>Number(n),pluginSettingsToComponentValueConverter:n=>n.toString()})}),new Ee(this.containerEl).setName("Should rename collected attachments").setDesc(createFragment(e=>{e.appendText("If enabled, attachments processed via "),et(e,"Collect attachments"),e.appendText(" commands will be renamed according to the "),et(e,"Pasted File Name"),e.appendText(" setting.")})).addToggle(e=>{this.bind(e,"shouldRenameCollectedAttachments")}),new Ee(this.containerEl).setName("Duplicate name separator").setDesc(createFragment(e=>{e.appendText("When you are pasting/dragging a file with the same name as an existing file, this separator will be added to the file name."),e.appendChild(createEl("br")),e.appendText("E.g., when you are dragging file "),et(e,"existingFile.pdf"),e.appendText(", it will be renamed to "),et(e,"existingFile 1.pdf"),e.appendText(", "),et(e,"existingFile 2.pdf"),e.appendText(", etc, getting the first name available.")})).addText(e=>{this.bind(e,"duplicateNameSeparator",{componentToPluginSettingsValueConverter:n=>n.replaceAll(vo," "),pluginSettingsToComponentValueConverter:eu}),e.inputEl.addEventListener("input",()=>{e.inputEl.value=eu(e.inputEl.value)})}),new Ee(this.containerEl).setName("Should keep empty attachment folders").setDesc("If enabled, empty attachment folders will be preserved, useful for source control purposes.").addToggle(e=>{this.bind(e,"shouldKeepEmptyAttachmentFolders")}),new Ee(this.containerEl).setName("Should delete orphan attachments").setDesc("If enabled, when the note is deleted, its orphan attachments are deleted as well.").addToggle(e=>{this.bind(e,"shouldDeleteOrphanAttachments")}),new Ee(this.containerEl).setName("Include paths").setDesc(createFragment(e=>{e.appendText("Include notes from the following paths"),e.createEl("br"),e.appendText("Insert each path on a new line"),e.createEl("br"),e.appendText("You can use path string or "),et(e,"/regular expression/"),e.createEl("br"),e.appendText("If the setting is empty, all notes are included")})).addMultipleText(e=>{this.bind(e,"includePaths")}),new Ee(this.containerEl).setName("Exclude paths").setDesc(createFragment(e=>{e.appendText("Exclude notes from the following paths"),e.createEl("br"),e.appendText("Insert each path on a new line"),e.createEl("br"),e.appendText("You can use path string or "),et(e,"/regular expression/"),e.createEl("br"),e.appendText("If the setting is empty, no notes are excluded")})).addMultipleText(e=>{this.bind(e,"excludePaths")}),new Ee(this.containerEl).setName("Custom tokens").setDesc(createFragment(e=>{e.appendText("Custom tokens to be used in the attachment folder path and pasted file name."),e.appendChild(createEl("br")),e.appendText("See "),e.createEl("a",{href:"https://github.com/RainCat1998/obsidian-custom-attachment-location?tab=readme-ov-file#custom-tokens",text:"documentation"}),e.appendText(" for more information.")})).addTextArea(e=>{this.bind(e,"customTokensStr")})}};function sA(){let e={};for(let n=1;n<=10;n++){let r=(n/10).toFixed(1);e[r]=r}return e}function eu(t){return t.replaceAll(" ",vo)}var oA=/Pasted image (?\d{14})/,aA="YYYYMMDDHHmmss",lA=10,So=class extends Ji{createSettingsManager(){return new eo(this)}createSettingsTab(){return new Ao(this)}async onLayoutReady(){Yi(this,this.app.vault,{getAvailablePath:()=>this.getAvailablePath.bind(this),getAvailablePathForAttachments:()=>{let e={isExtended:!0};return Object.assign(this.getAvailablePathForAttachments.bind(this),e)}}),tu.webUtils&&Yi(this,tu.webUtils,{getPathForFile:e=>n=>this.getPathForFile(n,e)}),(0,kp.compare)(this.settings.warningVersion,"7.0.0")<0&&(this.settings.customTokensStr&&await mc({app:this.app,message:createFragment(e=>{e.appendText("In plugin version 7.0.0, the format for custom tokens has changed. Please update your custom tokens accordingly. Refer to the "),e.createEl("a",{href:"https://github.com/RainCat1998/obsidian-custom-attachment-location?tab=readme-ov-file#custom-tokens",text:"documentation"}),e.appendText(" for more information.")})}),await this.settingsManager.editAndSave(e=>{e.warningVersion=this.manifest.version}))}async onloadImpl(){await super.onloadImpl(),jd(this,()=>({isPathIgnored:n=>this.settings.isPathIgnored(n),shouldDeleteEmptyFolders:!this.settings.shouldKeepEmptyAttachmentFolders,shouldHandleDeletions:this.settings.shouldDeleteOrphanAttachments,shouldHandleRenames:!0,shouldRenameAttachmentFiles:this.settings.shouldRenameAttachmentFiles,shouldRenameAttachmentFolder:this.settings.shouldRenameAttachmentFolder,shouldUpdateFilenameAliases:!0})),this.addCommand({checkCallback:e=>Km(this,e),id:"collect-attachments-current-note",name:"Collect attachments in current note"}),this.addCommand({checkCallback:e=>Xm(this,e),id:"collect-attachments-current-folder",name:"Collect attachments in current folder"}),this.addCommand({callback:()=>{Jm(this)},id:"collect-attachments-entire-vault",name:"Collect attachments in entire vault"}),this.registerEvent(this.app.workspace.on("file-menu",this.handleFileMenu.bind(this))),Yi(this,this.app,{saveAttachment:e=>(n,r,s)=>this.saveAttachment(e,n,r,s)})}getAvailablePath(e,n){let r=0;for(;;){let s=an(r===0?e:`${e}${this.settings.duplicateNameSeparator}${r.toString()}`,n);if(!Tn(this.app,s,!0))return s;r++}}async getAvailablePathForAttachments(e,n,r,s){let o;if(!r||!Je(this.app,r))o=await ra(this.app,e,n,r,!0);else{let l=await Hs(this,r.path,an(e,n));o=this.app.vault.getAvailablePath(ke(l,e),n)}if(!s){let l=ut(o);await this.app.vault.exists(l)||(await vs(this.app,l),this.settings.shouldKeepEmptyAttachmentFolders&&await this.app.vault.create(ke(l,".gitkeep"),""))}return o}getPathForFile(e,n){return e.path||n(e)}handleFileMenu(e,n){n instanceof bp.TFolder&&e.addItem(r=>{r.setTitle("Collect attachments in folder").setIcon("download").onClick(()=>qs(this,n))})}async saveAttachment(e,n,r,s){let o=this.app.workspace.getActiveFile();if(!o||this.settings.isPathIgnored(o.path))return e.call(this.app,n,r,s);let l=!1,u=oA.exec(n);if(u){let h=u.groups?.Timestamp;if(h){let m=(0,nu.default)(h,aA);m.isValid()&&(0,nu.default)().diff(m,"seconds")()=>(e&&(t=e(e=0)),t);var Ce=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),bE=(e,t)=>{for(var r in t)Gv(e,r,{get:t[r],enumerable:!0})},CE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ez(t))!Uz.call(e,i)&&i!==r&&Gv(e,i,{get:()=>t[i],enumerable:!(n=Sz(t,i))||n.enumerable});return e};var yr=(e,t,r)=>(r=e!=null?xz(Fz(e)):{},CE(t||!e||!e.__esModule?Gv(r,"default",{value:e,enumerable:!0}):r,e)),_z=e=>CE(Gv({},"__esModule",{value:!0}),e);var x3=Ce(Hr=>{"use strict";var VB=Symbol.for("react.transitional.element"),w9=Symbol.for("react.portal"),y9=Symbol.for("react.fragment"),B9=Symbol.for("react.strict_mode"),b9=Symbol.for("react.profiler"),C9=Symbol.for("react.consumer"),x9=Symbol.for("react.context"),S9=Symbol.for("react.forward_ref"),E9=Symbol.for("react.suspense"),F9=Symbol.for("react.memo"),v3=Symbol.for("react.lazy"),h3=Symbol.iterator;function U9(e){return e===null||typeof e!="object"?null:(e=h3&&e[h3]||e["@@iterator"],typeof e=="function"?e:null)}var w3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y3=Object.assign,B3={};function zd(e,t,r){this.props=e,this.context=t,this.refs=B3,this.updater=r||w3}zd.prototype.isReactComponent={};zd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function b3(){}b3.prototype=zd.prototype;function GB(e,t,r){this.props=e,this.context=t,this.refs=B3,this.updater=r||w3}var WB=GB.prototype=new b3;WB.constructor=GB;y3(WB,zd.prototype);WB.isPureReactComponent=!0;var d3=Array.isArray,Ei={H:null,A:null,T:null,S:null},C3=Object.prototype.hasOwnProperty;function YB(e,t,r,n,i,A){return r=A.ref,{$$typeof:VB,type:e,key:t,ref:r!==void 0?r:null,props:A}}function _9(e,t){return YB(e.type,t,void 0,void 0,void 0,e.props)}function XB(e){return typeof e=="object"&&e!==null&&e.$$typeof===VB}function Q9(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var p3=/\/+/g;function KB(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Q9(""+e.key):t.toString(36)}function g3(){}function T9(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(g3,g3):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pd(e,t,r,n,i){var A=typeof e;(A==="undefined"||A==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(A){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case VB:case w9:a=!0;break;case v3:return a=e._init,Pd(a(e._payload),t,r,n,i)}}if(a)return i=i(e),a=n===""?"."+KB(e,0):n,d3(i)?(r="",a!=null&&(r=a.replace(p3,"$&/")+"/"),Pd(i,t,r,"",function(c){return c})):i!=null&&(XB(i)&&(i=_9(i,r+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(p3,"$&/")+"/")+a)),t.push(i)),1;a=0;var s=n===""?".":n+":";if(d3(e))for(var l=0;l{"use strict";S3.exports=x3()});var O3=Ce(zn=>{"use strict";function eb(e,t){var r=e.length;e.push(t);e:for(;0>>1,i=e[n];if(0>>1;nJv(s,r))lJv(c,s)?(e[n]=c,e[l]=r,n=l):(e[n]=s,e[a]=r,n=a);else if(lJv(c,r))e[n]=c,e[l]=r,n=l;else break e}}return t}function Jv(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}zn.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(E3=performance,zn.unstable_now=function(){return E3.now()}):(ZB=Date,F3=ZB.now(),zn.unstable_now=function(){return ZB.now()-F3});var E3,ZB,F3,su=[],Af=[],N9=1,_o=null,Qa=3,t1=!1,bh=!1,s0=!1,Q3=typeof setTimeout=="function"?setTimeout:null,T3=typeof clearTimeout=="function"?clearTimeout:null,U3=typeof setImmediate<"u"?setImmediate:null;function $v(e){for(var t=bl(Af);t!==null;){if(t.callback===null)e1(Af);else if(t.startTime<=e)e1(Af),t.sortIndex=t.expirationTime,eb(su,t);else break;t=bl(Af)}}function tb(e){if(s0=!1,$v(e),!bh)if(bl(su)!==null)bh=!0,rb();else{var t=bl(Af);t!==null&&nb(tb,t.startTime-e)}}var r1=!1,o0=-1,L3=5,k3=-1;function N3(){return!(zn.unstable_now()-k3e&&N3());){var n=_o.callback;if(typeof n=="function"){_o.callback=null,Qa=_o.priorityLevel;var i=n(_o.expirationTime<=e);if(e=zn.unstable_now(),typeof i=="function"){_o.callback=i,$v(e),t=!0;break t}_o===bl(su)&&e1(su),$v(e)}else e1(su);_o=bl(su)}if(_o!==null)t=!0;else{var A=bl(Af);A!==null&&nb(tb,A.startTime-e),t=!1}}break e}finally{_o=null,Qa=r,t1=!1}t=void 0}}finally{t?a0():r1=!1}}}var a0;typeof U3=="function"?a0=function(){U3(JB)}:typeof MessageChannel<"u"?($B=new MessageChannel,_3=$B.port2,$B.port1.onmessage=JB,a0=function(){_3.postMessage(null)}):a0=function(){Q3(JB,0)};var $B,_3;function rb(){r1||(r1=!0,a0())}function nb(e,t){o0=Q3(function(){e(zn.unstable_now())},t)}zn.unstable_IdlePriority=5;zn.unstable_ImmediatePriority=1;zn.unstable_LowPriority=4;zn.unstable_NormalPriority=3;zn.unstable_Profiling=null;zn.unstable_UserBlockingPriority=2;zn.unstable_cancelCallback=function(e){e.callback=null};zn.unstable_continueExecution=function(){bh||t1||(bh=!0,rb())};zn.unstable_forceFrameRate=function(e){0>e||125n?(e.sortIndex=r,eb(Af,e),bl(su)===null&&e===bl(Af)&&(s0?(T3(o0),o0=-1):s0=!0,nb(tb,r-n))):(e.sortIndex=i,eb(su,e),bh||t1||(bh=!0,rb())),e};zn.unstable_shouldYield=N3;zn.unstable_wrapCallback=function(e){var t=Qa;return function(){var r=Qa;Qa=t;try{return e.apply(this,arguments)}finally{Qa=r}}}});var D3=Ce((fue,I3)=>{"use strict";I3.exports=O3()});var M3=Ce(ns=>{"use strict";var O9=_a();function H3(e){var t="https://react.dev/errors/"+e;if(1{"use strict";function R3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R3)}catch(e){console.error(e)}}R3(),P3.exports=M3()});var DQ=Ce(b2=>{"use strict";var OA=D3(),sU=_a(),H9=z3();function pt(e){var t="https://react.dev/errors/"+e;if(1)":-1i||l[n]!==c[i]){var d=` +`+l[n].replace(" at new "," at ");return e.displayName&&d.includes("")&&(d=d.replace("",e.displayName)),d}while(1<=n&&0<=i);break}}}finally{Ab=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?w0(r):""}function q9(e){switch(e.tag){case 26:case 27:case 5:return w0(e.type);case 16:return w0("Lazy");case 13:return w0("Suspense");case 19:return w0("SuspenseList");case 0:case 15:return e=ab(e.type,!1),e;case 11:return e=ab(e.type.render,!1),e;case 1:return e=ab(e.type,!0),e;default:return""}}function K3(e){try{var t="";do t+=q9(e),e=e.return;while(e);return t}catch(r){return` +Error generating stack: `+r.message+` +`+r.stack}}function Cp(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function fU(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function V3(e){if(Cp(e)!==e)throw Error(pt(188))}function j9(e){var t=e.alternate;if(!t){if(t=Cp(e),t===null)throw Error(pt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var A=i.alternate;if(A===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===A.child){for(A=i.child;A;){if(A===r)return V3(i),e;if(A===n)return V3(i),t;A=A.sibling}throw Error(pt(188))}if(r.return!==n.return)r=i,n=A;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=A;break}if(s===n){a=!0,n=i,r=A;break}s=s.sibling}if(!a){for(s=A.child;s;){if(s===r){a=!0,r=A,n=i;break}if(s===n){a=!0,n=A,r=i;break}s=s.sibling}if(!a)throw Error(pt(189))}}if(r.alternate!==n)throw Error(pt(190))}if(r.tag!==3)throw Error(pt(188));return r.stateNode.current===r?e:t}function hU(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=hU(e),t!==null)return t;e=e.sibling}return null}var y0=Array.isArray,ci=H9.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_h={pending:!1,data:null,method:null,action:null},Mb=[],Xd=-1;function du(e){return{current:e}}function XA(e){0>Xd||(e.current=Mb[Xd],Mb[Xd]=null,Xd--)}function gi(e,t){Xd++,Mb[Xd]=e.current,e.current=t}var uu=du(null),H0=du(null),mf=du(null),N1=du(null);function O1(e,t){switch(gi(mf,t),gi(H0,e),gi(uu,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?WF(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=WF(e),t=SQ(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}XA(uu),gi(uu,t)}function dp(){XA(uu),XA(H0),XA(mf)}function Rb(e){e.memoizedState!==null&&gi(N1,e);var t=uu.current,r=SQ(t,e.type);t!==r&&(gi(H0,e),gi(uu,r))}function I1(e){H0.current===e&&(XA(uu),XA(H0)),N1.current===e&&(XA(N1),Y0._currentValue=_h)}var Pb=Object.prototype.hasOwnProperty,Q5=OA.unstable_scheduleCallback,sb=OA.unstable_cancelCallback,K9=OA.unstable_shouldYield,V9=OA.unstable_requestPaint,cu=OA.unstable_now,G9=OA.unstable_getCurrentPriorityLevel,dU=OA.unstable_ImmediatePriority,pU=OA.unstable_UserBlockingPriority,D1=OA.unstable_NormalPriority,W9=OA.unstable_LowPriority,gU=OA.unstable_IdlePriority,Y9=OA.log,X9=OA.unstable_setDisableYieldValue,$0=null,eo=null;function Z9(e){if(eo&&typeof eo.onCommitFiberRoot=="function")try{eo.onCommitFiberRoot($0,e,void 0,(e.current.flags&128)===128)}catch{}}function pf(e){if(typeof Y9=="function"&&X9(e),eo&&typeof eo.setStrictMode=="function")try{eo.setStrictMode($0,e)}catch{}}var to=Math.clz32?Math.clz32:eq,J9=Math.log,$9=Math.LN2;function eq(e){return e>>>=0,e===0?32:31-(J9(e)/$9|0)|0}var A1=128,a1=4194304;function xh(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function o2(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,A=e.pingedLanes,a=e.warmLanes;e=e.finishedLanes!==0;var s=r&134217727;return s!==0?(r=s&~i,r!==0?n=xh(r):(A&=s,A!==0?n=xh(A):e||(a=s&~a,a!==0&&(n=xh(a))))):(s=r&~i,s!==0?n=xh(s):A!==0?n=xh(A):e||(a=r&~a,a!==0&&(n=xh(a)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,a=t&-t,i>=a||i===32&&(a&4194176)!==0)?t:n}function em(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function tq(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mU(){var e=A1;return A1<<=1,(A1&4194176)===0&&(A1=128),e}function vU(){var e=a1;return a1<<=1,(a1&62914560)===0&&(a1=4194304),e}function ob(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function tm(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function rq(e,t,r,n,i,A){var a=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(r=a&~r;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),aq=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),W3={},Y3={};function sq(e){return Pb.call(Y3,e)?!0:Pb.call(W3,e)?!1:aq.test(e)?Y3[e]=!0:(W3[e]=!0,!1)}function b1(e,t,r){if(sq(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function s1(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function lc(e,t,r,n){if(n===null)e.removeAttribute(r);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+n)}}function ko(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function SU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oq(e){var t=SU(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,A=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,A.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function H1(e){e._valueTracker||(e._valueTracker=oq(e))}function EU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=SU(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function M1(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var lq=/[\n"\\]/g;function Io(e){return e.replace(lq,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qb(e,t,r,n,i,A,a,s){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ko(t)):e.value!==""+ko(t)&&(e.value=""+ko(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?jb(e,a,ko(t)):r!=null?jb(e,a,ko(r)):n!=null&&e.removeAttribute("value"),i==null&&A!=null&&(e.defaultChecked=!!A),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+ko(s):e.removeAttribute("name")}function FU(e,t,r,n,i,A,a,s){if(A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"&&(e.type=A),t!=null||r!=null){if(!(A!=="submit"&&A!=="reset"||t!=null))return;r=r!=null?""+ko(r):"",t=t!=null?""+ko(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}n=n??i,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=s?e.checked:!!n,e.defaultChecked=!!n,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a)}function jb(e,t,r){t==="number"&&M1(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function sp(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i=C0),rF=" ",nF=!1;function NU(e,t){switch(e){case"keyup":return Dq.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function OU(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jd=!1;function Mq(e,t){switch(e){case"compositionend":return OU(t);case"keypress":return t.which!==32?null:(nF=!0,rF);case"textInput":return e=t.data,e===rF&&nF?null:e;default:return null}}function Rq(e,t){if(Jd)return e==="compositionend"||!I5&&NU(e,t)?(e=LU(),x1=N5=gf=null,Jd=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sF(r)}}function MU(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?MU(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RU(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=M1(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=M1(e.document)}return t}function D5(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wq(e,t){var r=RU(t);t=e.focusedElem;var n=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&MU(t.ownerDocument.documentElement,t)){if(n!==null&&D5(t)){if(e=n.start,r=n.end,r===void 0&&(r=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(r,t.value.length);else if(r=(e=t.ownerDocument||document)&&e.defaultView||window,r.getSelection){r=r.getSelection();var i=t.textContent.length,A=Math.min(n.start,i);n=n.end===void 0?A:Math.min(n.end,i),!r.extend&&A>n&&(i=n,n=A,A=i),i=oF(t,A);var a=oF(t,n);i&&a&&(r.rangeCount!==1||r.anchorNode!==i.node||r.anchorOffset!==i.offset||r.focusNode!==a.node||r.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),r.removeAllRanges(),A>n?(r.addRange(e),r.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),r.addRange(e)))}}for(e=[],r=t;r=r.parentNode;)r.nodeType===1&&e.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t=document.documentMode,$d=null,Gb=null,S0=null,Wb=!1;function lF(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Wb||$d==null||$d!==M1(n)||(n=$d,"selectionStart"in n&&D5(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),S0&&z0(S0,n)||(S0=n,n=t2(Gb,"onSelect"),0>=a,i-=a,mc=1<<32-to(t)+i|r<W?(he=P,P=null):he=P.sibling;var V=v(x,P,T[W],R);if(V===null){P===null&&(P=he);break}e&&P&&V.alternate===null&&t(x,P),F=A(V,F,W),ae===null?Y=V:ae.sibling=V,ae=V,P=he}if(W===T.length)return r(x,P),vn&&Sh(x,W),Y;if(P===null){for(;WW?(he=P,P=null):he=P.sibling;var M=v(x,P,V.value,R);if(M===null){P===null&&(P=he);break}e&&P&&M.alternate===null&&t(x,P),F=A(M,F,W),ae===null?Y=M:ae.sibling=M,ae=M,P=he}if(V.done)return r(x,P),vn&&Sh(x,W),Y;if(P===null){for(;!V.done;W++,V=T.next())V=g(x,V.value,R),V!==null&&(F=A(V,F,W),ae===null?Y=V:ae.sibling=V,ae=V);return vn&&Sh(x,W),Y}for(P=n(P);!V.done;W++,V=T.next())V=f(P,x,W,V.value,R),V!==null&&(e&&V.alternate!==null&&P.delete(V.key===null?W:V.key),F=A(V,F,W),ae===null?Y=V:ae.sibling=V,ae=V);return e&&P.forEach(function(_){return t(x,_)}),vn&&Sh(x,W),Y}function Q(x,F,T,R){if(typeof T=="object"&&T!==null&&T.type===Yd&&T.key===null&&(T=T.props.children),typeof T=="object"&&T!==null){switch(T.$$typeof){case i1:e:{for(var Y=T.key;F!==null;){if(F.key===Y){if(Y=T.type,Y===Yd){if(F.tag===7){r(x,F.sibling),R=i(F,T.props.children),R.return=x,x=R;break e}}else if(F.elementType===Y||typeof Y=="object"&&Y!==null&&Y.$$typeof===lf&&gF(Y)===F.type){r(x,F.sibling),R=i(F,T.props),h0(R,T),R.return=x,x=R;break e}r(x,F);break}else t(x,F);F=F.sibling}T.type===Yd?(R=Lh(T.props.children,x.mode,R,T.key),R.return=x,x=R):(R=Q1(T.type,T.key,T.props,null,x.mode,R),h0(R,T),R.return=x,x=R)}return a(x);case v0:e:{for(Y=T.key;F!==null;){if(F.key===Y)if(F.tag===4&&F.stateNode.containerInfo===T.containerInfo&&F.stateNode.implementation===T.implementation){r(x,F.sibling),R=i(F,T.children||[]),R.return=x,x=R;break e}else{r(x,F);break}else t(x,F);F=F.sibling}R=Fb(T,x.mode,R),R.return=x,x=R}return a(x);case lf:return Y=T._init,T=Y(T._payload),Q(x,F,T,R)}if(y0(T))return S(x,F,T,R);if(u0(T)){if(Y=u0(T),typeof Y!="function")throw Error(pt(150));return T=Y.call(T),C(x,F,T,R)}if(typeof T.then=="function")return Q(x,F,f1(T),R);if(T.$$typeof===gc)return Q(x,F,d1(x,T),R);h1(x,T)}return typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint"?(T=""+T,F!==null&&F.tag===6?(r(x,F.sibling),R=i(F,T),R.return=x,x=R):(r(x,F),R=Eb(T,x.mode,R),R.return=x,x=R),a(x)):r(x,F)}return function(x,F,T,R){try{j0=0;var Y=Q(x,F,T,R);return lp=null,Y}catch(P){if(P===E0)throw P;var ae=Ho(29,P,null,x.mode);return ae.lanes=R,ae.return=x,ae}finally{}}}var Ih=ZU(!0),JU=ZU(!1),mp=du(null),q1=du(0);function mF(e,t){e=Sc,gi(q1,e),gi(mp,t),Sc=e|t.baseLanes}function Zb(){gi(q1,Sc),gi(mp,mp.current)}function z5(){Sc=q1.current,XA(mp),XA(q1)}var Ro=du(null),fu=null;function cf(e){var t=e.alternate;gi(NA,NA.current&1),gi(Ro,e),fu===null&&(t===null||mp.current!==null||t.memoizedState!==null)&&(fu=e)}function $U(e){if(e.tag===22){if(gi(NA,NA.current),gi(Ro,e),fu===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(fu=e)}}else ff(e)}function ff(){gi(NA,NA.current),gi(Ro,Ro.current)}function wc(e){XA(Ro),fu===e&&(fu=null),XA(NA)}var NA=du(0);function j1(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $q=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},ej=OA.unstable_scheduleCallback,tj=OA.unstable_NormalPriority,kA={$$typeof:gc,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function q5(){return{controller:new $q,data:new Map,refCount:0}}function im(e){e.refCount--,e.refCount===0&&ej(tj,function(){e.controller.abort()})}var U0=null,Jb=0,vp=0,up=null;function rj(e,t){if(U0===null){var r=U0=[];Jb=0,vp=fC(),up={status:"pending",value:void 0,then:function(n){r.push(n)}}}return Jb++,t.then(vF,vF),t}function vF(){if(--Jb===0&&U0!==null){up!==null&&(up.status="fulfilled");var e=U0;U0=null,vp=0,up=null;for(var t=0;tA?A:8;var a=Qr.T,s={};Qr.T=s,rC(e,!1,t,r);try{var l=i(),c=Qr.S;if(c!==null&&c(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=nj(l,n);_0(e,t,d,ro(e))}else _0(e,t,n,ro(e))}catch(g){_0(e,t,{then:function(){},status:"rejected",reason:g},ro())}finally{ci.p=A,Qr.T=a}}function oj(){}function t5(e,t,r,n){if(e.tag!==5)throw Error(pt(476));var i=E_(e).queue;S_(e,i,t,_h,r===null?oj:function(){return F_(e),r(n)})}function E_(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_h,baseState:_h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cc,lastRenderedState:_h},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cc,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function F_(e){var t=E_(e).next.queue;_0(e,t,{},ro())}function tC(){return La(Y0)}function U_(){return gA().memoizedState}function __(){return gA().memoizedState}function lj(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=ro();e=vf(r);var n=wf(t,e,r);n!==null&&(As(n,t,r),T0(n,t,r)),t={cache:q5()},e.payload=t;return}t=t.return}}function uj(e,t,r){var n=ro();r={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},m2(e)?T_(t,r):(r=M5(e,t,r,n),r!==null&&(As(r,e,n),L_(r,t,n)))}function Q_(e,t,r){var n=ro();_0(e,t,r,n)}function _0(e,t,r,n){var i={lane:n,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(m2(e))T_(t,i);else{var A=e.alternate;if(e.lanes===0&&(A===null||A.lanes===0)&&(A=t.lastRenderedReducer,A!==null))try{var a=t.lastRenderedState,s=A(a,r);if(i.hasEagerState=!0,i.eagerState=s,no(s,a))return h2(e,t,i,0),ei===null&&f2(),!1}catch{}finally{}if(r=M5(e,t,i,n),r!==null)return As(r,e,n),L_(r,t,n),!0}return!1}function rC(e,t,r,n){if(n={lane:2,revertLane:fC(),action:n,hasEagerState:!1,eagerState:null,next:null},m2(e)){if(t)throw Error(pt(479))}else t=M5(e,r,n,2),t!==null&&As(t,e,2)}function m2(e){var t=e.alternate;return e===zr||t!==null&&t===zr}function T_(e,t){cp=K1=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function L_(e,t,r){if((r&4194176)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,yU(e,r)}}var hu={readContext:La,use:p2,useCallback:$i,useContext:$i,useEffect:$i,useImperativeHandle:$i,useLayoutEffect:$i,useInsertionEffect:$i,useMemo:$i,useReducer:$i,useRef:$i,useState:$i,useDebugValue:$i,useDeferredValue:$i,useTransition:$i,useSyncExternalStore:$i,useId:$i};hu.useCacheRefresh=$i;hu.useMemoCache=$i;hu.useHostTransitionStatus=$i;hu.useFormState=$i;hu.useActionState=$i;hu.useOptimistic=$i;var qh={readContext:La,use:p2,useCallback:function(e,t){return xs().memoizedState=[e,t===void 0?null:t],e},useContext:La,useEffect:bF,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,U1(4194308,4,y_.bind(null,t,e),r)},useLayoutEffect:function(e,t){return U1(4194308,4,e,t)},useInsertionEffect:function(e,t){U1(4,2,e,t)},useMemo:function(e,t){var r=xs();t=t===void 0?null:t;var n=e();if(Dh){pf(!0);try{e()}finally{pf(!1)}}return r.memoizedState=[n,t],n},useReducer:function(e,t,r){var n=xs();if(r!==void 0){var i=r(t);if(Dh){pf(!0);try{r(t)}finally{pf(!1)}}}else i=t;return n.memoizedState=n.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},n.queue=e,e=e.dispatch=uj.bind(null,zr,e),[n.memoizedState,e]},useRef:function(e){var t=xs();return e={current:e},t.memoizedState=e},useState:function(e){e=$b(e);var t=e.queue,r=Q_.bind(null,zr,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:$5,useDeferredValue:function(e,t){var r=xs();return eC(r,e,t)},useTransition:function(){var e=$b(!1);return e=S_.bind(null,zr,e.queue,!0,!1),xs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var n=zr,i=xs();if(vn){if(r===void 0)throw Error(pt(407));r=r()}else{if(r=t(),ei===null)throw Error(pt(349));(un&60)!==0||i_(n,t,r)}i.memoizedState=r;var A={value:r,getSnapshot:t};return i.queue=A,bF(a_.bind(null,n,A,e),[e]),n.flags|=2048,wp(9,A_.bind(null,n,A,r,t),{destroy:void 0},null),r},useId:function(){var e=xs(),t=ei.identifierPrefix;if(vn){var r=vc,n=mc;r=(n&~(1<<32-to(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=V1++,0 title"))),fa(A,n,r),A[Ta]=e,WA(A),n=A;break e;case"link":var a=eU("link","href",i).get(n+(r.href||""));if(a){for(var s=0;s<\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?e.multiple=!0:n.size&&(e.size=n.size);break;default:e=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r)}}e[Ta]=t,e[Ss]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(fa(e,r,n),r){case"button":case"input":case"select":case"textarea":e=!!n.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&fc(t)}}return Fi(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&fc(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(pt(166));if(e=mf.current,f0(t)){if(e=t.stateNode,r=t.memoizedProps,n=null,i=is,i!==null)switch(i.tag){case 27:case 5:n=i.memoizedProps}e[Ta]=t,e=!!(e.nodeValue===r||n!==null&&n.suppressHydrationWarning===!0||xQ(e.nodeValue,r)),e||Oh(t)}else e=r2(e).createTextNode(n),e[Ta]=t,t.stateNode=e}return Fi(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=f0(t),n!==null&&n.dehydrated!==null){if(e===null){if(!i)throw Error(pt(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(pt(317));i[Ta]=t}else nm(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fi(t),i=!1}else xl!==null&&(m5(xl),xl=null),i=!0;if(!i)return t.flags&256?(wc(t),t):(wc(t),null)}if(wc(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=n!==null,e=e!==null&&e.memoizedState!==null,r){n=t.child,i=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(i=n.alternate.memoizedState.cachePool.pool);var A=null;n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(A=n.memoizedState.cachePool.pool),A!==i&&(n.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),p1(t,t.updateQueue),Fi(t),null;case 4:return dp(),e===null&&hC(t.stateNode.containerInfo),Fi(t),null;case 10:return Bc(t.type),Fi(t),null;case 19:if(XA(NA),i=t.memoizedState,i===null)return Fi(t),null;if(n=(t.flags&128)!==0,A=i.rendering,A===null)if(n)p0(i,!1);else{if(Pi!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(A=j1(e),A!==null){for(t.flags|=128,p0(i,!1),e=A.updateQueue,t.updateQueue=e,p1(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)oQ(r,e),r=r.sibling;return gi(NA,NA.current&1|2),t.child}e=e.sibling}i.tail!==null&&cu()>Z1&&(t.flags|=128,n=!0,p0(i,!1),t.lanes=4194304)}else{if(!n)if(e=j1(A),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,p1(t,e),p0(i,!0),i.tail===null&&i.tailMode==="hidden"&&!A.alternate&&!vn)return Fi(t),null}else 2*cu()-i.renderingStartTime>Z1&&r!==536870912&&(t.flags|=128,n=!0,p0(i,!1),t.lanes=4194304);i.isBackwards?(A.sibling=t.child,t.child=A):(e=i.last,e!==null?e.sibling=A:t.child=A,i.last=A)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=cu(),t.sibling=null,e=NA.current,gi(NA,n?e&1|2:e&1),t):(Fi(t),null);case 22:case 23:return wc(t),z5(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(r&536870912)!==0&&(t.flags&128)===0&&(Fi(t),t.subtreeFlags&6&&(t.flags|=8192)):Fi(t),r=t.updateQueue,r!==null&&p1(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==r&&(t.flags|=2048),e!==null&&XA(Th),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Bc(kA),Fi(t),null;case 25:return null}throw Error(pt(156,t.tag))}function mj(e,t){switch(P5(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Bc(kA),dp(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return I1(t),null;case 13:if(wc(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(pt(340));nm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return XA(NA),null;case 4:return dp(),null;case 10:return Bc(t.type),null;case 22:case 23:return wc(t),z5(),e!==null&&XA(Th),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Bc(kA),null;case 25:return null;default:return null}}function uQ(e,t){switch(P5(t),t.tag){case 3:Bc(kA),dp();break;case 26:case 27:case 5:I1(t);break;case 4:dp();break;case 13:wc(t);break;case 19:XA(NA);break;case 10:Bc(t.type);break;case 22:case 23:wc(t),z5(),e!==null&&XA(Th);break;case 24:Bc(kA)}}var vj={getCacheForType:function(e){var t=La(kA),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},wj=typeof WeakMap=="function"?WeakMap:Map,Ui=0,ei=null,Gr=null,un=0,$n=0,Js=null,dc=!1,Ep=!1,oC=!1,Sc=0,Pi=0,Uf=0,kh=0,lC=0,Mo=0,yp=0,O0=null,lu=null,h5=!1,uC=0,Z1=1/0,J1=null,Bf=null,g1=!1,Eh=null,I0=0,d5=0,p5=null,D0=0,g5=null;function ro(){if((Ui&2)!==0&&un!==0)return un&-un;if(Qr.T!==null){var e=vp;return e!==0?e:fC()}return bU()}function cQ(){Mo===0&&(Mo=(un&536870912)===0||vn?mU():536870912);var e=Ro.current;return e!==null&&(e.flags|=32),Mo}function As(e,t,r){(e===ei&&$n===2||e.cancelPendingCommit!==null)&&(Bp(e,0),pc(e,un,Mo,!1)),tm(e,r),((Ui&2)===0||e!==ei)&&(e===ei&&((Ui&2)===0&&(kh|=r),Pi===4&&pc(e,un,Mo,!1)),pu(e))}function fQ(e,t,r){if((Ui&6)!==0)throw Error(pt(327));var n=!r&&(t&60)===0&&(t&e.expiredLanes)===0||em(e,t),i=n?bj(e,t):Ub(e,t,!0),A=n;do{if(i===0){Ep&&!n&&pc(e,t,0,!1);break}else if(i===6)pc(e,t,0,!dc);else{if(r=e.current.alternate,A&&!yj(r)){i=Ub(e,t,!1),A=!1;continue}if(i===2){if(A=t,e.errorRecoveryDisabledLanes&A)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var s=e;i=O0;var l=s.current.memoizedState.isDehydrated;if(l&&(Bp(s,a).flags|=256),a=Ub(s,a,!1),a!==2){if(oC&&!l){s.errorRecoveryDisabledLanes|=A,kh|=A,i=4;break e}A=lu,lu=i,A!==null&&m5(A)}i=a}if(A=!1,i!==2)continue}}if(i===1){Bp(e,0),pc(e,t,0,!0);break}e:{switch(n=e,i){case 0:case 1:throw Error(pt(345));case 4:if((t&4194176)===t){pc(n,t,Mo,!dc);break e}break;case 2:lu=null;break;case 3:case 5:break;default:throw Error(pt(329))}if(n.finishedWork=r,n.finishedLanes=t,(t&62914560)===t&&(A=uC+300-cu(),10r?32:r,Qr.T=null,Eh===null)var A=!1;else{r=p5,p5=null;var a=Eh,s=I0;if(Eh=null,I0=0,(Ui&6)!==0)throw Error(pt(331));var l=Ui;if(Ui|=4,aQ(a.current),nQ(a,a.current,s,r),Ui=l,om(0,!1),eo&&typeof eo.onPostCommitFiberRoot=="function")try{eo.onPostCommitFiberRoot($0,a)}catch{}A=!0}return A}finally{ci.p=i,Qr.T=n,vQ(e,t)}}return!1}function RF(e,t,r){t=Do(r,t),t=n5(e.stateNode,t,2),e=wf(e,t,2),e!==null&&(tm(e,2),pu(e))}function qn(e,t,r){if(e.tag===3)RF(e,e,r);else for(;t!==null;){if(t.tag===3){RF(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Bf===null||!Bf.has(n))){e=Do(r,e),r=I_(2),n=wf(t,r,2),n!==null&&(D_(r,n,t,e),tm(n,2),pu(n));break}}t=t.return}}function _b(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new wj;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(oC=!0,i.add(r),e=Sj.bind(null,e,t,r),t.then(e,e))}function Sj(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ei===e&&(un&r)===r&&(Pi===4||Pi===3&&(un&62914560)===un&&300>cu()-uC?(Ui&2)===0&&Bp(e,0):lC|=r,yp===un&&(yp=0)),pu(e)}function wQ(e,t){t===0&&(t=vU()),e=Sf(e,t),e!==null&&(tm(e,t),pu(e))}function Ej(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),wQ(e,r)}function Fj(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(pt(314))}n!==null&&n.delete(t),wQ(e,r)}function Uj(e,t){return Q5(e,t)}var $1=null,Wd=null,w5=!1,e2=!1,Qb=!1,Nh=0;function pu(e){e!==Wd&&e.next===null&&(Wd===null?$1=Wd=e:Wd=Wd.next=e),e2=!0,w5||(w5=!0,Qj(_j))}function om(e,t){if(!Qb&&e2){Qb=!0;do for(var r=!1,n=$1;n!==null;){if(!t)if(e!==0){var i=n.pendingLanes;if(i===0)var A=0;else{var a=n.suspendedLanes,s=n.pingedLanes;A=(1<<31-to(42|e)+1)-1,A&=i&~(a&~s),A=A&201326677?A&201326677|1:A?A|2:0}A!==0&&(r=!0,PF(n,A))}else A=un,A=o2(n,n===ei?A:0),(A&3)===0||em(n,A)||(r=!0,PF(n,A));n=n.next}while(r);Qb=!1}}function _j(){e2=w5=!1;var e=0;Nh!==0&&(Ij()&&(e=Nh),Nh=0);for(var t=cu(),r=null,n=$1;n!==null;){var i=n.next,A=yQ(n,t);A===0?(n.next=null,r===null?$1=i:r.next=i,i===null&&(Wd=r)):(r=n,(e!==0||(A&3)!==0)&&(e2=!0)),n=i}om(e,!1)}function yQ(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,A=e.pendingLanes&-62914561;0"u"?null:document;function UQ(e,t,r){var n=Fp;if(n&&typeof t=="string"&&t){var i=Io(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof r=="string"&&(i+='[crossorigin="'+r+'"]'),ZF.has(i)||(ZF.add(i),e={rel:e,crossOrigin:r,href:t},n.querySelector(i)===null&&(t=n.createElement("link"),fa(t,"link",e),WA(t),n.head.appendChild(t)))}}function jj(e){Ec.D(e),UQ("dns-prefetch",e,null)}function Kj(e,t){Ec.C(e,t),UQ("preconnect",e,t)}function Vj(e,t,r){Ec.L(e,t,r);var n=Fp;if(n&&e&&t){var i='link[rel="preload"][as="'+Io(t)+'"]';t==="image"&&r&&r.imageSrcSet?(i+='[imagesrcset="'+Io(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(i+='[imagesizes="'+Io(r.imageSizes)+'"]')):i+='[href="'+Io(e)+'"]';var A=i;switch(t){case"style":A=bp(e);break;case"script":A=Up(e)}Po.has(A)||(e=fi({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Po.set(A,e),n.querySelector(i)!==null||t==="style"&&n.querySelector(lm(A))||t==="script"&&n.querySelector(um(A))||(t=n.createElement("link"),fa(t,"link",e),WA(t),n.head.appendChild(t)))}}function Gj(e,t){Ec.m(e,t);var r=Fp;if(r&&e){var n=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Io(n)+'"][href="'+Io(e)+'"]',A=i;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":A=Up(e)}if(!Po.has(A)&&(e=fi({rel:"modulepreload",href:e},t),Po.set(A,e),r.querySelector(i)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(um(A)))return}n=r.createElement("link"),fa(n,"link",e),WA(n),r.head.appendChild(n)}}}function Wj(e,t,r){Ec.S(e,t,r);var n=Fp;if(n&&e){var i=ap(n).hoistableStyles,A=bp(e);t=t||"default";var a=i.get(A);if(!a){var s={loading:0,preload:null};if(a=n.querySelector(lm(A)))s.loading=5;else{e=fi({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Po.get(A))&&dC(e,r);var l=a=n.createElement("link");WA(l),fa(l,"link",e),l._p=new Promise(function(c,d){l.onload=c,l.onerror=d}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,T1(a,t,n)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(A,a)}}}function Yj(e,t){Ec.X(e,t);var r=Fp;if(r&&e){var n=ap(r).hoistableScripts,i=Up(e),A=n.get(i);A||(A=r.querySelector(um(i)),A||(e=fi({src:e,async:!0},t),(t=Po.get(i))&&pC(e,t),A=r.createElement("script"),WA(A),fa(A,"link",e),r.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},n.set(i,A))}}function Xj(e,t){Ec.M(e,t);var r=Fp;if(r&&e){var n=ap(r).hoistableScripts,i=Up(e),A=n.get(i);A||(A=r.querySelector(um(i)),A||(e=fi({src:e,async:!0,type:"module"},t),(t=Po.get(i))&&pC(e,t),A=r.createElement("script"),WA(A),fa(A,"link",e),r.head.appendChild(A)),A={type:"script",instance:A,count:1,state:null},n.set(i,A))}}function JF(e,t,r,n){var i=(i=mf.current)?n2(i):null;if(!i)throw Error(pt(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=bp(r.href),r=ap(i).hoistableStyles,n=r.get(t),n||(n={type:"style",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=bp(r.href);var A=ap(i).hoistableStyles,a=A.get(e);if(a||(i=i.ownerDocument||i,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},A.set(e,a),(A=i.querySelector(lm(e)))&&!A._p&&(a.instance=A,a.state.loading=5),Po.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Po.set(e,r),A||Zj(i,e,r,a.state))),t&&n===null)throw Error(pt(528,""));return a}if(t&&n!==null)throw Error(pt(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Up(r),r=ap(i).hoistableScripts,n=r.get(t),n||(n={type:"script",instance:null,count:0,state:null},r.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(pt(444,e))}}function bp(e){return'href="'+Io(e)+'"'}function lm(e){return'link[rel="stylesheet"]['+e+"]"}function _Q(e){return fi({},e,{"data-precedence":e.precedence,precedence:null})}function Zj(e,t,r,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),fa(t,"link",r),WA(t),e.head.appendChild(t))}function Up(e){return'[src="'+Io(e)+'"]'}function um(e){return"script[async]"+e}function $F(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+Io(r.href)+'"]');if(n)return t.instance=n,WA(n),n;var i=fi({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),WA(n),fa(n,"style",i),T1(n,r.precedence,e),t.instance=n;case"stylesheet":i=bp(r.href);var A=e.querySelector(lm(i));if(A)return t.state.loading|=4,t.instance=A,WA(A),A;n=_Q(r),(i=Po.get(i))&&dC(n,i),A=(e.ownerDocument||e).createElement("link"),WA(A);var a=A;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),fa(A,"link",n),t.state.loading|=4,T1(A,r.precedence,e),t.instance=A;case"script":return A=Up(r.src),(i=e.querySelector(um(A)))?(t.instance=i,WA(i),i):(n=r,(i=Po.get(A))&&(n=fi({},r),pC(n,i)),e=e.ownerDocument||e,i=e.createElement("script"),WA(i),fa(i,"link",n),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(pt(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,T1(n,r.precedence,e));return t.instance}function T1(e,t,r){for(var n=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=n.length?n[n.length-1]:null,A=i,a=0;a title"):null)}function Jj(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function QQ(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var W0=null;function $j(){}function eK(e,t,r){if(W0===null)throw Error(pt(475));var n=W0;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var i=bp(r.href),A=e.querySelector(lm(i));if(A){e=A._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(n.count++,n=i2.bind(n),e.then(n,n)),t.state.loading|=4,t.instance=A,WA(A);return}A=e.ownerDocument||e,r=_Q(r),(i=Po.get(i))&&dC(r,i),A=A.createElement("link"),WA(A);var a=A;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),fa(A,"link",r),t.instance=A}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(n.count++,t=i2.bind(n),e.addEventListener("load",t),e.addEventListener("error",t))}}function tK(){if(W0===null)throw Error(pt(475));var e=W0;return e.stylesheets&&e.count===0&&S5(e,e.stylesheets),0{"use strict";function HQ(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HQ)}catch(e){console.error(e)}}HQ(),MQ.exports=DQ()});var RQ=Ce((yC,BC)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof yC<"u"?t():(t(),e.FileSaver={})})(yC,function(){"use strict";function e(s,l){return typeof l>"u"?l={autoBom:!1}:typeof l!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),l={autoBom:!l}),l.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(s.type)?new Blob(["\uFEFF",s],{type:s.type}):s}function t(s,l,c){var d=new XMLHttpRequest;d.open("GET",s),d.responseType="blob",d.onload=function(){a(d.response,l,c)},d.onerror=function(){console.error("could not download file")},d.send()}function r(s){var l=new XMLHttpRequest;l.open("HEAD",s,!1);try{l.send()}catch{}return 200<=l.status&&299>=l.status}function n(s){try{s.dispatchEvent(new MouseEvent("click"))}catch{var l=document.createEvent("MouseEvents");l.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),s.dispatchEvent(l)}}var i=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,A=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=i.saveAs||(typeof window!="object"||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!A?function(s,l,c){var d=i.URL||i.webkitURL,g=document.createElement("a");l=l||s.name||"download",g.download=l,g.rel="noopener",typeof s=="string"?(g.href=s,g.origin===location.origin?n(g):r(g.href)?t(s,l,c):n(g,g.target="_blank")):(g.href=d.createObjectURL(s),setTimeout(function(){d.revokeObjectURL(g.href)},4e4),setTimeout(function(){n(g)},0))}:"msSaveOrOpenBlob"in navigator?function(s,l,c){if(l=l||s.name||"download",typeof s!="string")navigator.msSaveOrOpenBlob(e(s,c),l);else if(r(s))t(s,l,c);else{var d=document.createElement("a");d.href=s,d.target="_blank",setTimeout(function(){n(d)})}}:function(s,l,c,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof s=="string")return t(s,l,c);var g=s.type==="application/octet-stream",v=/constructor/i.test(i.HTMLElement)||i.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||g&&v||A)&&typeof FileReader<"u"){var S=new FileReader;S.onloadend=function(){var x=S.result;x=f?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=x:location=x,d=null},S.readAsDataURL(s)}else{var C=i.URL||i.webkitURL,Q=C.createObjectURL(s);d?d.location=Q:location.href=Q,d=null,setTimeout(function(){C.revokeObjectURL(Q)},4e4)}});i.saveAs=a.saveAs=a,typeof BC<"u"&&(BC.exports=a)})});function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}var C2=tf(()=>{});var eT=Ce((TC,LC)=>{(function(e,t){typeof TC=="object"&&typeof LC<"u"?LC.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.html2canvas=t())})(TC,function(){"use strict";var e=function(m,p){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var L in w)Object.prototype.hasOwnProperty.call(w,L)&&(y[L]=w[L])},e(m,p)};function t(m,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");e(m,p);function y(){this.constructor=m}m.prototype=p===null?Object.create(p):(y.prototype=p.prototype,new y)}var r=function(){return r=Object.assign||function(p){for(var y,w=1,L=arguments.length;w0&&H[H.length-1])&&(De[0]===6||De[0]===2)){y=0;continue}if(De[0]===3&&(!H||De[1]>H[0]&&De[1]=55296&&L<=56319&&y>10)+55296,$%1024+56320)),(L+1===y||w.length>16384)&&(H+=String.fromCharCode.apply(String,w),w.length=0)}return H},g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v=typeof Uint8Array>"u"?[]:new Uint8Array(256),f=0;f"u"?[]:new Uint8Array(256),Q=0;Q>4,qe[L++]=($&15)<<4|ue>>2,qe[L++]=(ue&3)<<6|le&63;return De},F=function(m){for(var p=m.length,y=[],w=0;w>R,he=1<>R,_=W+M,ie=_,oe=32,ge=ie+oe,Fe=65536>>Y,Be=1<=0){if(p<55296||p>56319&&p<=65535)return y=this.index[p>>R],y=(y<>R)],y=(y<>Y),y=this.index[y],y+=p>>R&de,y=this.index[y],y=(y<"u"?[]:new Uint8Array(256),ce=0;ceSe?(L.push(!0),ue-=Se):L.push(!1),["normal","auto","loose"].indexOf(p)!==-1&&[8208,8211,12316,12448].indexOf(H)!==-1)return w.push($),y.push(Ze);if(ue===Xe||ue===ve){if($===0)return w.push($),y.push(Jt);var le=y[$-1];return $A.indexOf(le)===-1?(w.push(w[$-1]),y.push(le)):(w.push($),y.push(Jt))}if(w.push($),ue===di)return y.push(p==="strict"?At:Yr);if(ue===iA||ue===Mt)return y.push(Jt);if(ue===AA)return H>=131072&&H<=196605||H>=196608&&H<=262141?y.push(Yr):y.push(Jt);y.push(ue)}),[w,y,L]},sA=function(m,p,y,w){var L=w[y];if(Array.isArray(m)?m.indexOf(L)!==-1:m===L)for(var H=y;H<=w.length;){H++;var $=w[H];if($===p)return!0;if($!==I)break}if(L===I)for(var H=y;H>0;){H--;var ue=w[H];if(Array.isArray(m)?m.indexOf(ue)!==-1:m===ue)for(var le=y;le<=w.length;){le++;var $=w[le];if($===p)return!0;if($!==I)break}if(ue!==I)break}return!1},BA=function(m,p){for(var y=m;y>=0;){var w=p[y];if(w===I)y--;else return w}return 0},xn=function(m,p,y,w,L){if(y[w]===0)return Ar;var H=w-1;if(Array.isArray(L)&&L[H]===!0)return Ar;var $=H-1,ue=H+1,le=p[H],De=$>=0?p[$]:0,qe=p[ue];if(le===Ee&&qe===tt)return Ar;if(wi.indexOf(le)!==-1)return aA;if(wi.indexOf(qe)!==-1||Ra.indexOf(qe)!==-1)return Ar;if(BA(H,p)===_e)return vi;if(Tn.get(m[H])===ve||(le===gr||le===Cn)&&Tn.get(m[ue])===ve||le===Ue||qe===Ue||le===G||[I,Qe,Re].indexOf(le)===-1&&qe===G||[We,ot,Et,Ct,Rt].indexOf(qe)!==-1||BA(H,p)===Bt||sA(ct,Bt,H,p)||sA([We,ot],At,H,p)||sA(Pe,Pe,H,p))return Ar;if(le===I)return vi;if(le===ct||qe===ct)return Ar;if(qe===Ze||le===Ze)return vi;if([Qe,Re,At].indexOf(qe)!==-1||le===we||De===$r&&ea.indexOf(le)!==-1||le===Rt&&qe===$r||qe===Je||br.indexOf(qe)!==-1&&le===xe||br.indexOf(le)!==-1&&qe===xe||le===bt&&[Yr,gr,Cn].indexOf(qe)!==-1||[Yr,gr,Cn].indexOf(le)!==-1&&qe===Ut||br.indexOf(le)!==-1&&DA.indexOf(qe)!==-1||DA.indexOf(le)!==-1&&br.indexOf(qe)!==-1||[bt,Ut].indexOf(le)!==-1&&(qe===xe||[Bt,Re].indexOf(qe)!==-1&&p[ue+1]===xe)||[Bt,Re].indexOf(le)!==-1&&qe===xe||le===xe&&[xe,Rt,Ct].indexOf(qe)!==-1)return Ar;if([xe,Rt,Ct,We,ot].indexOf(qe)!==-1)for(var Ge=H;Ge>=0;){var at=p[Ge];if(at===xe)return Ar;if([Rt,Ct].indexOf(at)!==-1)Ge--;else break}if([bt,Ut].indexOf(qe)!==-1)for(var Ge=[We,ot].indexOf(le)!==-1?$:H;Ge>=0;){var at=p[Ge];if(at===xe)return Ar;if([Rt,Ct].indexOf(at)!==-1)Ge--;else break}if(Gt===le&&[Gt,ar,cr,Fr].indexOf(qe)!==-1||[ar,cr].indexOf(le)!==-1&&[ar,Vn].indexOf(qe)!==-1||[Vn,Fr].indexOf(le)!==-1&&qe===Vn||yA.indexOf(le)!==-1&&[Je,Ut].indexOf(qe)!==-1||yA.indexOf(qe)!==-1&&le===bt||br.indexOf(le)!==-1&&br.indexOf(qe)!==-1||le===Ct&&br.indexOf(qe)!==-1||br.concat(xe).indexOf(le)!==-1&&qe===Bt&&Xt.indexOf(m[ue])===-1||br.concat(xe).indexOf(qe)!==-1&&le===ot)return Ar;if(le===Mn&&qe===Mn){for(var Ot=y[H],St=1;Ot>0&&(Ot--,p[Ot]===Mn);)St++;if(St%2!==0)return Ar}return le===gr&&qe===Cn?Ar:vi},Qs=function(m,p){p||(p={lineBreak:"normal",wordBreak:"normal"});var y=ta(m,p.lineBreak),w=y[0],L=y[1],H=y[2];(p.wordBreak==="break-all"||p.wordBreak==="break-word")&&(L=L.map(function(ue){return[xe,Jt,iA].indexOf(ue)!==-1?Yr:ue}));var $=p.wordBreak==="keep-all"?H.map(function(ue,le){return ue&&m[le]>=19968&&m[le]<=40959}):void 0;return[w,L,$]},dn=function(){function m(p,y,w,L){this.codePoints=p,this.required=y===aA,this.start=w,this.end=L}return m.prototype.slice=function(){return d.apply(void 0,this.codePoints.slice(this.start,this.end))},m}(),Ts=function(m,p){var y=c(m),w=Qs(y,p),L=w[0],H=w[1],$=w[2],ue=y.length,le=0,De=0;return{next:function(){if(De>=ue)return{done:!0,value:null};for(var qe=Ar;De=Va&&m<=57},$o=function(m){return m>=55296&&m<=57343},pn=function(m){return Qn(m)||m>=pa&&m<=zA||m>=co&&m<=Xr},zt=function(m){return m>=co&&m<=fo},Le=function(m){return m>=pa&&m<=ho},gt=function(m){return zt(m)||Le(m)},xt=function(m){return m>=lo},er=function(m){return m===HA||m===ha||m===Yo},yn=function(m){return gt(m)||xt(m)||m===os},on=function(m){return yn(m)||Qn(m)||m===ii},Ln=function(m){return m>=Pl&&m<=nr||m===Jo||m>=zl&&m<=xA||m===ql},Rn=function(m,p){return m!==za?!1:p!==HA},Bn=function(m,p,y){return m===ii?yn(p)||Rn(p,y):yn(m)?!0:!!(m===za&&Rn(m,p))},ra=function(m,p,y){return m===Ai||m===ii?Qn(p)?!0:p===CA&&Qn(y):Qn(m===CA?p:m)},Ti=function(m){var p=0,y=1;(m[p]===Ai||m[p]===ii)&&(m[p]===ii&&(y=-1),p++);for(var w=[];Qn(m[p]);)w.push(m[p++]);var L=w.length?parseInt(d.apply(void 0,w),10):0;m[p]===CA&&p++;for(var H=[];Qn(m[p]);)H.push(m[p++]);var $=H.length,ue=$?parseInt(d.apply(void 0,H),10):0;(m[p]===SA||m[p]===Yi)&&p++;var le=1;(m[p]===Ai||m[p]===ii)&&(m[p]===ii&&(le=-1),p++);for(var De=[];Qn(m[p]);)De.push(m[p++]);var qe=De.length?parseInt(d.apply(void 0,De),10):0;return y*(L+ue*Math.pow(10,-$))*Math.pow(10,le*qe)},jl={type:2},oA={type:3},Ic={type:4},el={type:13},ga={type:8},po={type:21},Kl={type:9},Sn={type:10},na={type:11},Os={type:12},Eu={type:14},ia={type:23},Fu={type:1},E={type:25},q={type:24},me={type:26},Te={type:27},Ke={type:28},it={type:29},vt={type:31},kt={type:32},Vt=function(){function m(){this._value=[]}return m.prototype.write=function(p){this._value=this._value.concat(c(p))},m.prototype.read=function(){for(var p=[],y=this.consumeToken();y!==kt;)p.push(y),y=this.consumeToken();return p},m.prototype.consumeToken=function(){var p=this.consumeCodePoint();switch(p){case bA:return this.consumeStringToken(bA);case ja:var y=this.peekCodePoint(0),w=this.peekCodePoint(1),L=this.peekCodePoint(2);if(on(y)||Rn(w,L)){var H=Bn(y,w,L)?as:en,$=this.consumeName();return{type:5,value:$,flags:H}}break;case Ka:if(this.peekCodePoint(0)===qa)return this.consumeCodePoint(),el;break;case MA:return this.consumeStringToken(MA);case ss:return jl;case da:return oA;case PA:if(this.peekCodePoint(0)===qa)return this.consumeCodePoint(),Eu;break;case Ai:if(ra(p,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(p),this.consumeNumericToken();break;case uo:return Ic;case ii:var ue=p,le=this.peekCodePoint(0),De=this.peekCodePoint(1);if(ra(ue,le,De))return this.reconsumeCodePoint(p),this.consumeNumericToken();if(Bn(ue,le,De))return this.reconsumeCodePoint(p),this.consumeIdentLikeToken();if(le===ii&&De===Gn)return this.consumeCodePoint(),this.consumeCodePoint(),q;break;case CA:if(ra(p,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(p),this.consumeNumericToken();break;case Ls:if(this.peekCodePoint(0)===PA)for(this.consumeCodePoint();;){var qe=this.consumeCodePoint();if(qe===PA&&(qe=this.consumeCodePoint(),qe===Ls))return this.consumeToken();if(qe===Qi)return this.consumeToken()}break;case Rl:return me;case Mr:return Te;case RA:if(this.peekCodePoint(0)===Vi&&this.peekCodePoint(1)===ii&&this.peekCodePoint(2)===ii)return this.consumeCodePoint(),this.consumeCodePoint(),E;break;case ls:var Ge=this.peekCodePoint(0),at=this.peekCodePoint(1),Ot=this.peekCodePoint(2);if(Bn(Ge,at,Ot)){var $=this.consumeName();return{type:7,value:$}}break;case Xo:return Ke;case za:if(Rn(p,this.peekCodePoint(0)))return this.reconsumeCodePoint(p),this.consumeIdentLikeToken();break;case Zo:return it;case us:if(this.peekCodePoint(0)===qa)return this.consumeCodePoint(),ga;break;case oo:return na;case ks:return Os;case tn:case fs:var St=this.peekCodePoint(0),Nt=this.peekCodePoint(1);return St===Ai&&(pn(Nt)||Nt===Gi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(p),this.consumeIdentLikeToken();case Wi:if(this.peekCodePoint(0)===qa)return this.consumeCodePoint(),Kl;if(this.peekCodePoint(0)===Wi)return this.consumeCodePoint(),po;break;case cs:if(this.peekCodePoint(0)===qa)return this.consumeCodePoint(),Sn;break;case Qi:return kt}return er(p)?(this.consumeWhiteSpace(),vt):Qn(p)?(this.reconsumeCodePoint(p),this.consumeNumericToken()):yn(p)?(this.reconsumeCodePoint(p),this.consumeIdentLikeToken()):{type:6,value:d(p)}},m.prototype.consumeCodePoint=function(){var p=this._value.shift();return typeof p>"u"?-1:p},m.prototype.reconsumeCodePoint=function(p){this._value.unshift(p)},m.prototype.peekCodePoint=function(p){return p>=this._value.length?-1:this._value[p]},m.prototype.consumeUnicodeRangeToken=function(){for(var p=[],y=this.consumeCodePoint();pn(y)&&p.length<6;)p.push(y),y=this.consumeCodePoint();for(var w=!1;y===Gi&&p.length<6;)p.push(y),y=this.consumeCodePoint(),w=!0;if(w){var L=parseInt(d.apply(void 0,p.map(function(le){return le===Gi?Va:le})),16),H=parseInt(d.apply(void 0,p.map(function(le){return le===Gi?zA:le})),16);return{type:30,start:L,end:H}}var $=parseInt(d.apply(void 0,p),16);if(this.peekCodePoint(0)===ii&&pn(this.peekCodePoint(1))){this.consumeCodePoint(),y=this.consumeCodePoint();for(var ue=[];pn(y)&&ue.length<6;)ue.push(y),y=this.consumeCodePoint();var H=parseInt(d.apply(void 0,ue),16);return{type:30,start:$,end:H}}else return{type:30,start:$,end:$}},m.prototype.consumeIdentLikeToken=function(){var p=this.consumeName();return p.toLowerCase()==="url"&&this.peekCodePoint(0)===ss?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===ss?(this.consumeCodePoint(),{type:19,value:p}):{type:20,value:p}},m.prototype.consumeUrlToken=function(){var p=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qi)return{type:22,value:""};var y=this.peekCodePoint(0);if(y===MA||y===bA){var w=this.consumeStringToken(this.consumeCodePoint());return w.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Qi||this.peekCodePoint(0)===da)?(this.consumeCodePoint(),{type:22,value:w.value}):(this.consumeBadUrlRemnants(),ia)}for(;;){var L=this.consumeCodePoint();if(L===Qi||L===da)return{type:22,value:d.apply(void 0,p)};if(er(L))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Qi||this.peekCodePoint(0)===da?(this.consumeCodePoint(),{type:22,value:d.apply(void 0,p)}):(this.consumeBadUrlRemnants(),ia);if(L===bA||L===MA||L===ss||Ln(L))return this.consumeBadUrlRemnants(),ia;if(L===za)if(Rn(L,this.peekCodePoint(0)))p.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ia;else p.push(L)}},m.prototype.consumeWhiteSpace=function(){for(;er(this.peekCodePoint(0));)this.consumeCodePoint()},m.prototype.consumeBadUrlRemnants=function(){for(;;){var p=this.consumeCodePoint();if(p===da||p===Qi)return;Rn(p,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},m.prototype.consumeStringSlice=function(p){for(var y=5e4,w="";p>0;){var L=Math.min(y,p);w+=d.apply(void 0,this._value.splice(0,L)),p-=L}return this._value.shift(),w},m.prototype.consumeStringToken=function(p){var y="",w=0;do{var L=this._value[w];if(L===Qi||L===void 0||L===p)return y+=this.consumeStringSlice(w),{type:0,value:y};if(L===HA)return this._value.splice(0,w),Fu;if(L===za){var H=this._value[w+1];H!==Qi&&H!==void 0&&(H===HA?(y+=this.consumeStringSlice(w),w=-1,this._value.shift()):Rn(L,H)&&(y+=this.consumeStringSlice(w),y+=d(this.consumeEscapedCodePoint()),w=-1))}w++}while(!0)},m.prototype.consumeNumber=function(){var p=[],y=Pa,w=this.peekCodePoint(0);for((w===Ai||w===ii)&&p.push(this.consumeCodePoint());Qn(this.peekCodePoint(0));)p.push(this.consumeCodePoint());w=this.peekCodePoint(0);var L=this.peekCodePoint(1);if(w===CA&&Qn(L))for(p.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Wo;Qn(this.peekCodePoint(0));)p.push(this.consumeCodePoint());w=this.peekCodePoint(0),L=this.peekCodePoint(1);var H=this.peekCodePoint(2);if((w===SA||w===Yi)&&((L===Ai||L===ii)&&Qn(H)||Qn(L)))for(p.push(this.consumeCodePoint(),this.consumeCodePoint()),y=Wo;Qn(this.peekCodePoint(0));)p.push(this.consumeCodePoint());return[Ti(p),y]},m.prototype.consumeNumericToken=function(){var p=this.consumeNumber(),y=p[0],w=p[1],L=this.peekCodePoint(0),H=this.peekCodePoint(1),$=this.peekCodePoint(2);if(Bn(L,H,$)){var ue=this.consumeName();return{type:15,number:y,flags:w,unit:ue}}return L===wn?(this.consumeCodePoint(),{type:16,number:y,flags:w}):{type:17,number:y,flags:w}},m.prototype.consumeEscapedCodePoint=function(){var p=this.consumeCodePoint();if(pn(p)){for(var y=d(p);pn(this.peekCodePoint(0))&&y.length<6;)y+=d(this.consumeCodePoint());er(this.peekCodePoint(0))&&this.consumeCodePoint();var w=parseInt(y,16);return w===0||$o(w)||w>1114111?Ns:w}return p===Qi?Ns:p},m.prototype.consumeName=function(){for(var p="";;){var y=this.consumeCodePoint();if(on(y))p+=d(y);else if(Rn(y,this.peekCodePoint(0)))p+=d(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(y),p}},m}(),sr=function(){function m(p){this._tokens=p}return m.create=function(p){var y=new Vt;return y.write(p),new m(y.read())},m.parseValue=function(p){return m.create(p).parseComponentValue()},m.parseValues=function(p){return m.create(p).parseComponentValues()},m.prototype.parseComponentValue=function(){for(var p=this.consumeToken();p.type===31;)p=this.consumeToken();if(p.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(p);var y=this.consumeComponentValue();do p=this.consumeToken();while(p.type===31);if(p.type===32)return y;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},m.prototype.parseComponentValues=function(){for(var p=[];;){var y=this.consumeComponentValue();if(y.type===32)return p;p.push(y),p.push()}},m.prototype.consumeComponentValue=function(){var p=this.consumeToken();switch(p.type){case 11:case 28:case 2:return this.consumeSimpleBlock(p.type);case 19:return this.consumeFunction(p)}return p},m.prototype.consumeSimpleBlock=function(p){for(var y={type:p,values:[]},w=this.consumeToken();;){if(w.type===32||Xi(w,p))return y;this.reconsumeToken(w),y.values.push(this.consumeComponentValue()),w=this.consumeToken()}},m.prototype.consumeFunction=function(p){for(var y={name:p.value,values:[],type:18};;){var w=this.consumeToken();if(w.type===32||w.type===3)return y;this.reconsumeToken(w),y.values.push(this.consumeComponentValue())}},m.prototype.consumeToken=function(){var p=this._tokens.shift();return typeof p>"u"?kt:p},m.prototype.reconsumeToken=function(p){this._tokens.unshift(p)},m}(),tr=function(m){return m.type===15},Cr=function(m){return m.type===17},Zt=function(m){return m.type===20},kn=function(m){return m.type===0},Wn=function(m,p){return Zt(m)&&m.value===p},Li=function(m){return m.type!==31},Rr=function(m){return m.type!==31&&m.type!==4},Yn=function(m){var p=[],y=[];return m.forEach(function(w){if(w.type===4){if(y.length===0)throw new Error("Error parsing function args, zero tokens for arg");p.push(y),y=[];return}w.type!==31&&y.push(w)}),y.length&&p.push(y),p},Xi=function(m,p){return p===11&&m.type===12||p===28&&m.type===29?!0:p===2&&m.type===3},ki=function(m){return m.type===17||m.type===15},Nn=function(m){return m.type===16||ki(m)},Vl=function(m){return m.length>1?[m[0],m[1]]:[m[0]]},ai={type:17,number:0,flags:Pa},go={type:16,number:50,flags:Pa},ma={type:16,number:100,flags:Pa},Is=function(m,p,y){var w=m[0],L=m[1];return[Nr(w,p),Nr(typeof L<"u"?L:w,y)]},Nr=function(m,p){if(m.type===16)return m.number/100*p;if(tr(m))switch(m.unit){case"rem":case"em":return 16*m.number;case"px":default:return m.number}return m.number},Ni="deg",tl="grad",Ds="rad",mo="turn",EA={name:"angle",parse:function(m,p){if(p.type===15)switch(p.unit){case Ni:return Math.PI*p.number/180;case tl:return Math.PI/200*p.number;case Ds:return p.number;case mo:return Math.PI*2*p.number}throw new Error("Unsupported angle type")}},Oi=function(m){return m.type===15&&(m.unit===Ni||m.unit===tl||m.unit===Ds||m.unit===mo)},Dc=function(m){var p=m.filter(Zt).map(function(y){return y.value}).join(" ");switch(p){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ai,ai];case"to top":case"bottom":return lA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ai,ma];case"to right":case"left":return lA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ma,ma];case"to bottom":case"top":return lA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ma,ai];case"to left":case"right":return lA(270)}return 0},lA=function(m){return Math.PI*m/180},Ga={name:"color",parse:function(m,p){if(p.type===18){var y=UA[p.name];if(typeof y>"u")throw new Error('Attempting to parse an unsupported color function "'+p.name+'"');return y(m,p.values)}if(p.type===5){if(p.value.length===3){var w=p.value.substring(0,1),L=p.value.substring(1,2),H=p.value.substring(2,3);return va(parseInt(w+w,16),parseInt(L+L,16),parseInt(H+H,16),1)}if(p.value.length===4){var w=p.value.substring(0,1),L=p.value.substring(1,2),H=p.value.substring(2,3),$=p.value.substring(3,4);return va(parseInt(w+w,16),parseInt(L+L,16),parseInt(H+H,16),parseInt($+$,16)/255)}if(p.value.length===6){var w=p.value.substring(0,2),L=p.value.substring(2,4),H=p.value.substring(4,6);return va(parseInt(w,16),parseInt(L,16),parseInt(H,16),1)}if(p.value.length===8){var w=p.value.substring(0,2),L=p.value.substring(2,4),H=p.value.substring(4,6),$=p.value.substring(6,8);return va(parseInt(w,16),parseInt(L,16),parseInt(H,16),parseInt($,16)/255)}}if(p.type===20){var ue=He[p.value.toUpperCase()];if(typeof ue<"u")return ue}return He.TRANSPARENT}},On=function(m){return(255&m)===0},jr=function(m){var p=255&m,y=255&m>>8,w=255&m>>16,L=255&m>>24;return p<255?"rgba("+L+","+w+","+y+","+p/255+")":"rgb("+L+","+w+","+y+")"},va=function(m,p,y,w){return(m<<24|p<<16|y<<8|Math.round(w*255)<<0)>>>0},Uu=function(m,p){if(m.type===17)return m.number;if(m.type===16){var y=p===3?1:255;return p===3?m.number/100*y:Math.round(m.number/100*y)}return 0},Hs=function(m,p){var y=p.filter(Rr);if(y.length===3){var w=y.map(Uu),L=w[0],H=w[1],$=w[2];return va(L,H,$,1)}if(y.length===4){var ue=y.map(Uu),L=ue[0],H=ue[1],$=ue[2],le=ue[3];return va(L,H,$,le)}return 0};function Ms(m,p,y){return y<0&&(y+=1),y>=1&&(y-=1),y<1/6?(p-m)*y*6+m:y<1/2?p:y<2/3?(p-m)*6*(2/3-y)+m:m}var FA=function(m,p){var y=p.filter(Rr),w=y[0],L=y[1],H=y[2],$=y[3],ue=(w.type===17?lA(w.number):EA.parse(m,w))/(Math.PI*2),le=Nn(L)?L.number/100:0,De=Nn(H)?H.number/100:0,qe=typeof $<"u"&&Nn($)?Nr($,1):1;if(le===0)return va(De*255,De*255,De*255,1);var Ge=De<=.5?De*(le+1):De+le-De*le,at=De*2-Ge,Ot=Ms(at,Ge,ue+1/3),St=Ms(at,Ge,ue),Nt=Ms(at,Ge,ue-1/3);return va(Ot*255,St*255,Nt*255,qe)},UA={hsl:FA,hsla:FA,rgb:Hs,rgba:Hs},yi=function(m,p){return Ga.parse(m,sr.create(p).parseComponentValue())},He={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},nt={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(m,p){return p.map(function(y){if(Zt(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$e={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Tt=function(m,p){var y=Ga.parse(m,p[0]),w=p[1];return w&&Nn(w)?{color:y,stop:w}:{color:y,stop:null}},Pt=function(m,p){var y=m[0],w=m[m.length-1];y.stop===null&&(y.stop=ai),w.stop===null&&(w.stop=ma);for(var L=[],H=0,$=0;$H?L.push(le):L.push(H),H=le}else L.push(null)}for(var De=null,$=0;$$.optimumDistance)?{optimumCorner:ue,optimumDistance:qe}:$},{optimumDistance:L?1/0:-1/0,optimumCorner:null}).optimumCorner},Hc=function(m,p,y,w,L){var H=0,$=0;switch(m.size){case 0:m.shape===0?H=$=Math.min(Math.abs(p),Math.abs(p-w),Math.abs(y),Math.abs(y-L)):m.shape===1&&(H=Math.min(Math.abs(p),Math.abs(p-w)),$=Math.min(Math.abs(y),Math.abs(y-L)));break;case 2:if(m.shape===0)H=$=Math.min(ir(p,y),ir(p,y-L),ir(p-w,y),ir(p-w,y-L));else if(m.shape===1){var ue=Math.min(Math.abs(y),Math.abs(y-L))/Math.min(Math.abs(p),Math.abs(p-w)),le=Rs(w,L,p,y,!0),De=le[0],qe=le[1];H=ir(De-p,(qe-y)/ue),$=ue*H}break;case 1:m.shape===0?H=$=Math.max(Math.abs(p),Math.abs(p-w),Math.abs(y),Math.abs(y-L)):m.shape===1&&(H=Math.max(Math.abs(p),Math.abs(p-w)),$=Math.max(Math.abs(y),Math.abs(y-L)));break;case 3:if(m.shape===0)H=$=Math.max(ir(p,y),ir(p,y-L),ir(p-w,y),ir(p-w,y-L));else if(m.shape===1){var ue=Math.max(Math.abs(y),Math.abs(y-L))/Math.max(Math.abs(p),Math.abs(p-w)),Ge=Rs(w,L,p,y,!1),De=Ge[0],qe=Ge[1];H=ir(De-p,(qe-y)/ue),$=ue*H}break}return Array.isArray(m.size)&&(H=Nr(m.size[0],w),$=m.size.length===2?Nr(m.size[1],L):H),[H,$]},uA=function(m,p){var y=lA(180),w=[];return Yn(p).forEach(function(L,H){if(H===0){var $=L[0];if($.type===20&&$.value==="to"){y=Dc(L);return}else if(Oi($)){y=EA.parse(m,$);return}}var ue=Tt(m,L);w.push(ue)}),{angle:y,stops:w,type:1}},Aa=function(m,p){var y=lA(180),w=[];return Yn(p).forEach(function(L,H){if(H===0){var $=L[0];if($.type===20&&["top","left","right","bottom"].indexOf($.value)!==-1){y=Dc(L);return}else if(Oi($)){y=(EA.parse(m,$)+lA(270))%lA(360);return}}var ue=Tt(m,L);w.push(ue)}),{angle:y,stops:w,type:1}},rl=function(m,p){var y=lA(180),w=[],L=1,H=0,$=3,ue=[];return Yn(p).forEach(function(le,De){var qe=le[0];if(De===0){if(Zt(qe)&&qe.value==="linear"){L=1;return}else if(Zt(qe)&&qe.value==="radial"){L=2;return}}if(qe.type===18){if(qe.name==="from"){var Ge=Ga.parse(m,qe.values[0]);w.push({stop:ai,color:Ge})}else if(qe.name==="to"){var Ge=Ga.parse(m,qe.values[0]);w.push({stop:ma,color:Ge})}else if(qe.name==="color-stop"){var at=qe.values.filter(Rr);if(at.length===2){var Ge=Ga.parse(m,at[1]),Ot=at[0];Cr(Ot)&&w.push({stop:{type:16,number:Ot.number*100,flags:Ot.flags},color:Ge})}}}}),L===1?{angle:(y+lA(180))%lA(360),stops:w,type:L}:{size:$,shape:H,stops:w,position:ue,type:L}},qA="closest-side",Wa="farthest-side",hs="closest-corner",Or="farthest-corner",Ps="circle",nl="ellipse",cA="cover",aa="contain",En=function(m,p){var y=0,w=3,L=[],H=[];return Yn(p).forEach(function($,ue){var le=!0;if(ue===0){var De=!1;le=$.reduce(function(Ge,at){if(De)if(Zt(at))switch(at.value){case"center":return H.push(go),Ge;case"top":case"left":return H.push(ai),Ge;case"right":case"bottom":return H.push(ma),Ge}else(Nn(at)||ki(at))&&H.push(at);else if(Zt(at))switch(at.value){case Ps:return y=0,!1;case nl:return y=1,!1;case"at":return De=!0,!1;case qA:return w=0,!1;case cA:case Wa:return w=1,!1;case aa:case hs:return w=2,!1;case Or:return w=3,!1}else if(ki(at)||Nn(at))return Array.isArray(w)||(w=[]),w.push(at),!1;return Ge},le)}if(le){var qe=Tt(m,$);L.push(qe)}}),{size:w,shape:y,stops:L,position:H,type:2}},fn=function(m,p){var y=0,w=3,L=[],H=[];return Yn(p).forEach(function($,ue){var le=!0;if(ue===0?le=$.reduce(function(qe,Ge){if(Zt(Ge))switch(Ge.value){case"center":return H.push(go),!1;case"top":case"left":return H.push(ai),!1;case"right":case"bottom":return H.push(ma),!1}else if(Nn(Ge)||ki(Ge))return H.push(Ge),!1;return qe},le):ue===1&&(le=$.reduce(function(qe,Ge){if(Zt(Ge))switch(Ge.value){case Ps:return y=0,!1;case nl:return y=1,!1;case aa:case qA:return w=0,!1;case Wa:return w=1,!1;case hs:return w=2,!1;case cA:case Or:return w=3,!1}else if(ki(Ge)||Nn(Ge))return Array.isArray(w)||(w=[]),w.push(Ge),!1;return qe},le)),le){var De=Tt(m,$);L.push(De)}}),{size:w,shape:y,stops:L,position:H,type:2}},In=function(m){return m.type===1},Fn=function(m){return m.type===2},jA={name:"image",parse:function(m,p){if(p.type===22){var y={url:p.value,type:0};return m.cache.addImage(p.value),y}if(p.type===18){var w=ds[p.name];if(typeof w>"u")throw new Error('Attempting to parse an unsupported image function "'+p.name+'"');return w(m,p.values)}throw new Error("Unsupported image type "+p.type)}};function Gl(m){return!(m.type===20&&m.value==="none")&&(m.type!==18||!!ds[m.name])}var ds={"linear-gradient":uA,"-moz-linear-gradient":Aa,"-ms-linear-gradient":Aa,"-o-linear-gradient":Aa,"-webkit-linear-gradient":Aa,"radial-gradient":En,"-moz-radial-gradient":fn,"-ms-radial-gradient":fn,"-o-radial-gradient":fn,"-webkit-radial-gradient":fn,"-webkit-gradient":rl},_u={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(m,p){if(p.length===0)return[];var y=p[0];return y.type===20&&y.value==="none"?[]:p.filter(function(w){return Rr(w)&&Gl(w)}).map(function(w){return jA.parse(m,w)})}},Mc={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(m,p){return p.map(function(y){if(Zt(y))switch(y.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},il={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(m,p){return Yn(p).map(function(y){return y.filter(Nn)}).map(Vl)}},KA={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(m,p){return Yn(p).map(function(y){return y.filter(Zt).map(function(w){return w.value}).join(" ")}).map(fA)}},fA=function(m){switch(m){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},_A;(function(m){m.AUTO="auto",m.CONTAIN="contain",m.COVER="cover"})(_A||(_A={}));var Al={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(m,p){return Yn(p).map(function(y){return y.filter(ud)})}},ud=function(m){return Zt(m)||Nn(m)},al=function(m){return{name:"border-"+m+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Rc=al("top"),Wl=al("right"),Qu=al("bottom"),Tu=al("left"),Yl=function(m){return{name:"border-radius-"+m,initialValue:"0 0",prefix:!1,type:1,parse:function(p,y){return Vl(y.filter(Nn))}}},Lu=Yl("top-left"),Gf=Yl("top-right"),wg=Yl("bottom-right"),Bi=Yl("bottom-left"),pi=function(m){return{name:"border-"+m+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(p,y){switch(y){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},yg=pi("top"),Bg=pi("right"),cd=pi("bottom"),bg=pi("left"),Xl=function(m){return{name:"border-"+m+"-width",initialValue:"0",type:0,prefix:!1,parse:function(p,y){return tr(y)?y.number:0}}},sl=Xl("top"),ku=Xl("right"),ps=Xl("bottom"),Nu=Xl("left"),Ou={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Iu={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(m,p){switch(p){case"rtl":return 1;case"ltr":default:return 0}}},Zl={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(m,p){return p.filter(Zt).reduce(function(y,w){return y|Cg(w.value)},0)}},Cg=function(m){switch(m){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xg={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(m,p){switch(p){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Sg={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(m,p){return p.type===20&&p.value==="normal"?0:p.type===17||p.type===15?p.number:0}},Ya;(function(m){m.NORMAL="normal",m.STRICT="strict"})(Ya||(Ya={}));var Xa={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,p){switch(p){case"strict":return Ya.STRICT;case"normal":default:return Ya.NORMAL}}},wa={name:"line-height",initialValue:"normal",prefix:!1,type:4},Jl=function(m,p){return Zt(m)&&m.value==="normal"?1.2*p:m.type===17?p*m.number:Nn(m)?Nr(m,p):p},Wf={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(m,p){return p.type===20&&p.value==="none"?null:jA.parse(m,p)}},te={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(m,p){switch(p){case"inside":return 0;case"outside":default:return 1}}},bi={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(m,p){switch(p){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},ol=function(m){return{name:"margin-"+m,initialValue:"0",prefix:!1,type:4}},ya=ol("top"),Tr=ol("right"),fd=ol("bottom"),hd=ol("left"),dd={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(m,p){return p.filter(Zt).map(function(y){switch(y.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ll={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(m,p){switch(p){case"break-word":return"break-word";case"normal":default:return"normal"}}},ul=function(m){return{name:"padding-"+m,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Pc=ul("top"),Du=ul("right"),Yf=ul("bottom"),pd=ul("left"),zs={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(m,p){switch(p){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},gd={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(m,p){switch(p){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Eg={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(m,p){return p.length===1&&Wn(p[0],"none")?[]:Yn(p).map(function(y){for(var w={color:He.TRANSPARENT,offsetX:ai,offsetY:ai,blur:ai},L=0,H=0;H"u")throw new Error('Attempting to parse an unsupported transform function "'+p.name+'"');return y(p.values)}return null}},_g=function(m){var p=m.filter(function(y){return y.type===17}).map(function(y){return y.number});return p.length===6?p:null},qs=function(m){var p=m.filter(function(le){return le.type===17}).map(function(le){return le.number}),y=p[0],w=p[1];p[2],p[3];var L=p[4],H=p[5];p[6],p[7],p[8],p[9],p[10],p[11];var $=p[12],ue=p[13];return p[14],p[15],p.length===16?[y,w,L,H,$,ue]:null},Qg={matrix:_g,matrix3d:qs},Xf={type:16,number:50,flags:Pa},zc=[Xf,Xf],Tg={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(m,p){var y=p.filter(Nn);return y.length!==2?zc:[y[0],y[1]]}},Lg={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(m,p){switch(p){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ba;(function(m){m.NORMAL="normal",m.BREAK_ALL="break-all",m.KEEP_ALL="keep-all"})(Ba||(Ba={}));for(var h={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(m,p){switch(p){case"break-all":return Ba.BREAK_ALL;case"keep-all":return Ba.KEEP_ALL;case"normal":default:return Ba.NORMAL}}},B={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(m,p){if(p.type===20)return{auto:!0,order:0};if(Cr(p))return{auto:!1,order:p.number};throw new Error("Invalid z-index number parsed")}},U={name:"time",parse:function(m,p){if(p.type===15)switch(p.unit.toLowerCase()){case"s":return 1e3*p.number;case"ms":return p.number}throw new Error("Unsupported time type")}},O={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(m,p){return Cr(p)?p.number:1}},z={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},J={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(m,p){return p.filter(Zt).map(function(y){switch(y.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(y){return y!==0})}},ee={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(m,p){var y=[],w=[];return p.forEach(function(L){switch(L.type){case 20:case 0:y.push(L.value);break;case 17:y.push(L.number.toString());break;case 4:w.push(y.join(" ")),y.length=0;break}}),y.length&&w.push(y.join(" ")),w.map(function(L){return L.indexOf(" ")===-1?L:"'"+L+"'"})}},re={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ae={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(m,p){if(Cr(p))return p.number;if(Zt(p))switch(p.value){case"bold":return 700;case"normal":default:return 400}return 400}},fe={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(m,p){return p.filter(Zt).map(function(y){return y.value})}},Oe={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(m,p){switch(p){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},je=function(m,p){return(m&p)!==0},Ye={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(m,p){if(p.length===0)return[];var y=p[0];return y.type===20&&y.value==="none"?[]:p}},ze={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(m,p){if(p.length===0)return null;var y=p[0];if(y.type===20&&y.value==="none")return null;for(var w=[],L=p.filter(Li),H=0;H1?1:0],this.overflowWrap=mt(p,ll,y.overflowWrap),this.paddingTop=mt(p,Pc,y.paddingTop),this.paddingRight=mt(p,Du,y.paddingRight),this.paddingBottom=mt(p,Yf,y.paddingBottom),this.paddingLeft=mt(p,pd,y.paddingLeft),this.paintOrder=mt(p,dt,y.paintOrder),this.position=mt(p,gd,y.position),this.textAlign=mt(p,zs,y.textAlign),this.textDecorationColor=mt(p,z,(w=y.textDecorationColor)!==null&&w!==void 0?w:y.color),this.textDecorationLine=mt(p,J,(L=y.textDecorationLine)!==null&&L!==void 0?L:y.textDecoration),this.textShadow=mt(p,Eg,y.textShadow),this.textTransform=mt(p,Fg,y.textTransform),this.transform=mt(p,Ug,y.transform),this.transformOrigin=mt(p,Tg,y.transformOrigin),this.visibility=mt(p,Lg,y.visibility),this.webkitTextStrokeColor=mt(p,lt,y.webkitTextStrokeColor),this.webkitTextStrokeWidth=mt(p,Ft,y.webkitTextStrokeWidth),this.wordBreak=mt(p,h,y.wordBreak),this.zIndex=mt(p,B,y.zIndex)}return m.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},m.prototype.isTransparent=function(){return On(this.backgroundColor)},m.prototype.isTransformed=function(){return this.transform!==null},m.prototype.isPositioned=function(){return this.position!==0},m.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},m.prototype.isFloating=function(){return this.float!==0},m.prototype.isInlineLevel=function(){return je(this.display,4)||je(this.display,33554432)||je(this.display,268435456)||je(this.display,536870912)||je(this.display,67108864)||je(this.display,134217728)},m}(),Yt=function(){function m(p,y){this.content=mt(p,Ye,y.content),this.quotes=mt(p,Ie,y.quotes)}return m}(),Lt=function(){function m(p,y){this.counterIncrement=mt(p,ze,y.counterIncrement),this.counterReset=mt(p,ut,y.counterReset)}return m}(),mt=function(m,p,y){var w=new Vt,L=y!==null&&typeof y<"u"?y.toString():p.initialValue;w.write(L);var H=new sr(w.read());switch(p.type){case 2:var $=H.parseComponentValue();return p.parse(m,Zt($)?$.value:p.initialValue);case 0:return p.parse(m,H.parseComponentValue());case 1:return p.parse(m,H.parseComponentValues());case 4:return H.parseComponentValue();case 3:switch(p.format){case"angle":return EA.parse(m,H.parseComponentValue());case"color":return Ga.parse(m,H.parseComponentValue());case"image":return jA.parse(m,H.parseComponentValue());case"length":var ue=H.parseComponentValue();return ki(ue)?ue:ai;case"length-percentage":var le=H.parseComponentValue();return Nn(le)?le:ai;case"time":return U.parse(m,H.parseComponentValue())}break}},Ir="data-html2canvas-debug",qr=function(m){var p=m.getAttribute(Ir);switch(p){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ur=function(m,p){var y=qr(m);return y===1||p===y},xr=function(){function m(p,y){if(this.context=p,this.textNodes=[],this.elements=[],this.flags=0,Ur(y,3))debugger;this.styles=new _t(p,window.getComputedStyle(y,null)),Yc(y)&&(this.styles.animationDuration.some(function(w){return w>0})&&(y.style.animationDuration="0s"),this.styles.transform!==null&&(y.style.transform="none")),this.bounds=s(this.context,y),Ur(y,4)&&(this.flags|=16)}return m}(),gn="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",dr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wr=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ci=0;Ci>4,qe[L++]=($&15)<<4|ue>>2,qe[L++]=(ue&3)<<6|le&63;return De},Pn=function(m){for(var p=m.length,y=[],w=0;w>Xn,ba=1<>Xn,Za=Ii+Di,cl=Za,gs=32,js=cl+gs,Zn=65536>>oi,Zf=1<=0){if(p<55296||p>56319&&p<=65535)return y=this.index[p>>Xn],y=(y<>Xn)],y=(y<>oi),y=this.index[y],y+=p>>Xn&$l,y=this.index[y],y=(y<"u"?[]:new Uint8Array(256),Ks=0;Ks=55296&&L<=56319&&y>10)+55296,$%1024+56320)),(L+1===y||w.length>16384)&&(H+=String.fromCharCode.apply(String,w),w.length=0)}return H},Vc=fl(gn),sa="\xD7",wo="\xF7",mr=function(m){return Vc.get(m)},qu=function(m,p,y){var w=y-2,L=p[w],H=p[y-1],$=p[y];if(H===vo&&$===jc)return sa;if(H===vo||H===jc||H===hl||$===vo||$===jc||$===hl)return wo;if(H===dl&&[dl,tu,Pu,ms].indexOf($)!==-1||(H===Pu||H===tu)&&($===tu||$===eh)||(H===ms||H===eh)&&$===eh||$===md||$===Mu||$===Ru||H===$f)return sa;if(H===md&&$===th){for(;L===Mu;)L=p[--w];if(L===th)return sa}if(H===rh&&$===rh){for(var ue=0;L===rh;)ue++,L=p[--w];if(ue%2===0)return sa}return wo},vd=function(m){var p=Kc(m),y=p.length,w=0,L=0,H=p.map(mr);return{next:function(){if(w>=y)return{done:!0,value:null};for(var $=sa;w$.x||qe.y>$.y;return $=qe,De===0?!0:Ge});return m.body.removeChild(p),ue},nh=function(){return typeof new Image().crossOrigin<"u"},xi=function(){return typeof new XMLHttpRequest().responseType=="string"},yd=function(m){var p=new Image,y=m.createElement("canvas"),w=y.getContext("2d");if(!w)return!1;p.src="data:image/svg+xml,";try{w.drawImage(p,0,0),y.toDataURL()}catch{return!1}return!0},ru=function(m){return m[0]===0&&m[1]===255&&m[2]===0&&m[3]===255},ih=function(m){var p=m.createElement("canvas"),y=100;p.width=y,p.height=y;var w=p.getContext("2d");if(!w)return Promise.reject(!1);w.fillStyle="rgb(0, 255, 0)",w.fillRect(0,0,y,y);var L=new Image,H=p.toDataURL();L.src=H;var $=Vu(y,y,0,0,L);return w.fillStyle="red",w.fillRect(0,0,y,y),yo($).then(function(ue){w.drawImage(ue,0,0);var le=w.getImageData(0,0,y,y).data;w.fillStyle="red",w.fillRect(0,0,y,y);var De=m.createElement("div");return De.style.backgroundImage="url("+H+")",De.style.height=y+"px",ru(le)?yo(Vu(y,y,0,0,De)):Promise.reject(!1)}).then(function(ue){return w.drawImage(ue,0,0),ru(w.getImageData(0,0,y,y).data)}).catch(function(){return!1})},Vu=function(m,p,y,w,L){var H="http://www.w3.org/2000/svg",$=document.createElementNS(H,"svg"),ue=document.createElementNS(H,"foreignObject");return $.setAttributeNS(null,"width",m.toString()),$.setAttributeNS(null,"height",p.toString()),ue.setAttributeNS(null,"width","100%"),ue.setAttributeNS(null,"height","100%"),ue.setAttributeNS(null,"x",y.toString()),ue.setAttributeNS(null,"y",w.toString()),ue.setAttributeNS(null,"externalResourcesRequired","true"),$.appendChild(ue),ue.appendChild(L),$},yo=function(m){return new Promise(function(p,y){var w=new Image;w.onload=function(){return p(w)},w.onerror=y,w.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(m))})},hn={get SUPPORT_RANGE_BOUNDS(){var m=Ku(document);return Object.defineProperty(hn,"SUPPORT_RANGE_BOUNDS",{value:m}),m},get SUPPORT_WORD_BREAKING(){var m=hn.SUPPORT_RANGE_BOUNDS&&wd(document);return Object.defineProperty(hn,"SUPPORT_WORD_BREAKING",{value:m}),m},get SUPPORT_SVG_DRAWING(){var m=yd(document);return Object.defineProperty(hn,"SUPPORT_SVG_DRAWING",{value:m}),m},get SUPPORT_FOREIGNOBJECT_DRAWING(){var m=typeof Array.from=="function"&&typeof window.fetch=="function"?ih(document):Promise.resolve(!1);return Object.defineProperty(hn,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:m}),m},get SUPPORT_CORS_IMAGES(){var m=nh();return Object.defineProperty(hn,"SUPPORT_CORS_IMAGES",{value:m}),m},get SUPPORT_RESPONSE_TYPE(){var m=xi();return Object.defineProperty(hn,"SUPPORT_RESPONSE_TYPE",{value:m}),m},get SUPPORT_CORS_XHR(){var m="withCredentials"in new XMLHttpRequest;return Object.defineProperty(hn,"SUPPORT_CORS_XHR",{value:m}),m},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var m=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(hn,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:m}),m}},oa=function(){function m(p,y){this.text=p,this.bounds=y}return m}(),Ah=function(m,p,y,w){var L=Yu(p,y),H=[],$=0;return L.forEach(function(ue){if(y.textDecorationLine.length||ue.trim().length>0)if(hn.SUPPORT_RANGE_BOUNDS){var le=Gu(w,$,ue.length).getClientRects();if(le.length>1){var De=Bo(ue),qe=0;De.forEach(function(at){H.push(new oa(at,a.fromDOMRectList(m,Gu(w,qe+$,at.length).getClientRects()))),qe+=at.length})}else H.push(new oa(ue,a.fromDOMRectList(m,le)))}else{var Ge=w.splitText(ue.length);H.push(new oa(ue,ah(m,w))),w=Ge}else hn.SUPPORT_RANGE_BOUNDS||(w=w.splitText(ue.length));$+=ue.length}),H},ah=function(m,p){var y=p.ownerDocument;if(y){var w=y.createElement("html2canvaswrapper");w.appendChild(p.cloneNode(!0));var L=p.parentNode;if(L){L.replaceChild(w,p);var H=s(m,w);return w.firstChild&&L.replaceChild(w.firstChild,w),H}}return a.EMPTY},Gu=function(m,p,y){var w=m.ownerDocument;if(!w)throw new Error("Node has no owner document");var L=w.createRange();return L.setStart(m,p),L.setEnd(m,p+y),L},Bo=function(m){if(hn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var p=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(p.segment(m)).map(function(y){return y.segment})}return ju(m)},Wu=function(m,p){if(hn.SUPPORT_NATIVE_TEXT_SEGMENTATION){var y=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(y.segment(m)).map(function(w){return w.segment})}return vs(m,p)},Yu=function(m,p){return p.letterSpacing!==0?Bo(m):Wu(m,p)},Ja=[32,160,4961,65792,65793,4153,4241],vs=function(m,p){for(var y=Ts(m,{lineBreak:p.lineBreak,wordBreak:p.overflowWrap==="break-word"?"break-word":p.wordBreak}),w=[],L,H=function(){if(L.value){var $=L.value.slice(),ue=c($),le="";ue.forEach(function(De){Ja.indexOf(De)===-1?le+=d(De):(le.length&&w.push(le),w.push(d(De)),le="")}),le.length&&w.push(le)}};!(L=y.next()).done;)H();return w},QA=function(){function m(p,y,w){this.text=Gc(y.data,w.textTransform),this.textBounds=Ah(p,this.text,w,y)}return m}(),Gc=function(m,p){switch(p){case 1:return m.toLowerCase();case 3:return m.replace(ws,sh);case 2:return m.toUpperCase();default:return m}},ws=/(^|\s|:|-|\(|\))([a-z])/g,sh=function(m,p,y){return m.length>0?p+y.toUpperCase():m},oh=function(m){t(p,m);function p(y,w){var L=m.call(this,y,w)||this;return L.src=w.currentSrc||w.src,L.intrinsicWidth=w.naturalWidth,L.intrinsicHeight=w.naturalHeight,L.context.cache.addImage(L.src),L}return p}(xr),nu=function(m){t(p,m);function p(y,w){var L=m.call(this,y,w)||this;return L.canvas=w,L.intrinsicWidth=w.width,L.intrinsicHeight=w.height,L}return p}(xr),Wc=function(m){t(p,m);function p(y,w){var L=m.call(this,y,w)||this,H=new XMLSerializer,$=s(y,w);return w.setAttribute("width",$.width+"px"),w.setAttribute("height",$.height+"px"),L.svg="data:image/svg+xml,"+encodeURIComponent(H.serializeToString(w)),L.intrinsicWidth=w.width.baseVal.value,L.intrinsicHeight=w.height.baseVal.value,L.context.cache.addImage(L.svg),L}return p}(xr),hv=function(m){t(p,m);function p(y,w){var L=m.call(this,y,w)||this;return L.value=w.value,L}return p}(xr),kg=function(m){t(p,m);function p(y,w){var L=m.call(this,y,w)||this;return L.start=w.start,L.reversed=typeof w.reversed=="boolean"&&w.reversed===!0,L}return p}(xr),dv=[{type:15,flags:0,unit:"px",number:3}],pv=[{type:16,flags:0,number:50}],zy=function(m){return m.width>m.height?new a(m.left+(m.width-m.height)/2,m.top,m.height,m.height):m.width0)y.textNodes.push(new QA(m,L,y.styles));else if(Ju(L))if(qg(L)&&L.assignedNodes)L.assignedNodes().forEach(function(ue){return Bd(m,ue,y,w)});else{var $=Ig(m,L);$.styles.isVisible()&&(ch(L,$,w)?$.flags|=4:qy($.styles)&&($.flags|=2),vv.indexOf(L.tagName)!==-1&&($.flags|=8),y.elements.push($),L.slot,L.shadowRoot?Bd(m,L.shadowRoot,$,w):!hh(L)&&!Mg(L)&&!Sd(L)&&Bd(m,L,$,w))}},Ig=function(m,p){return Pg(p)?new oh(m,p):Rg(p)?new nu(m,p):Mg(p)?new Wc(m,p):bd(p)?new hv(m,p):Hg(p)?new kg(m,p):Cd(p)?new Ng(m,p):Sd(p)?new uh(m,p):hh(p)?new Xu(m,p):zg(p)?new Og(m,p):new xr(m,p)},Zu=function(m,p){var y=Ig(m,p);return y.flags|=4,Bd(m,p,y,y),y},ch=function(m,p,y){return p.styles.isPositionedWithZIndex()||p.styles.opacity<1||p.styles.isTransformed()||Xc(m)&&y.styles.isTransparent()},qy=function(m){return m.isPositioned()||m.isFloating()},Dg=function(m){return m.nodeType===Node.TEXT_NODE},Ju=function(m){return m.nodeType===Node.ELEMENT_NODE},Yc=function(m){return Ju(m)&&typeof m.style<"u"&&!fh(m)},fh=function(m){return typeof m.className=="object"},bd=function(m){return m.tagName==="LI"},Hg=function(m){return m.tagName==="OL"},Cd=function(m){return m.tagName==="INPUT"},jy=function(m){return m.tagName==="HTML"},Mg=function(m){return m.tagName==="svg"},Xc=function(m){return m.tagName==="BODY"},Rg=function(m){return m.tagName==="CANVAS"},xd=function(m){return m.tagName==="VIDEO"},Pg=function(m){return m.tagName==="IMG"},zg=function(m){return m.tagName==="IFRAME"},Co=function(m){return m.tagName==="STYLE"},wv=function(m){return m.tagName==="SCRIPT"},hh=function(m){return m.tagName==="TEXTAREA"},Sd=function(m){return m.tagName==="SELECT"},qg=function(m){return m.tagName==="SLOT"},yv=function(m){return m.tagName.indexOf("-")>0},Ky=function(){function m(){this.counters={}}return m.prototype.getCounterValue=function(p){var y=this.counters[p];return y&&y.length?y[y.length-1]:1},m.prototype.getCounterValues=function(p){var y=this.counters[p];return y||[]},m.prototype.pop=function(p){var y=this;p.forEach(function(w){return y.counters[w].pop()})},m.prototype.parse=function(p){var y=this,w=p.counterIncrement,L=p.counterReset,H=!0;w!==null&&w.forEach(function(ue){var le=y.counters[ue.counter];le&&ue.increment!==0&&(H=!1,le.length||le.push(1),le[Math.max(0,le.length-1)]+=ue.increment)});var $=[];return H&&L.forEach(function(ue){var le=y.counters[ue.counter];$.push(ue.counter),le||(le=y.counters[ue.counter]=[]),le.push(ue.reset)}),$},m}(),xo={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Ed={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},jg={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Kg={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},pl=function(m,p,y,w,L,H){return my?dh(m,L,H.length>0):w.integers.reduce(function($,ue,le){for(;m>=ue;)m-=ue,$+=w.values[le];return $},"")+H},$u=function(m,p,y,w){var L="";do y||m--,L=w(m)+L,m/=p;while(m*p>=p);return L},Dt=function(m,p,y,w,L){var H=y-p+1;return(m<0?"-":"")+($u(Math.abs(m),H,w,function($){return d(Math.floor($%H)+p)})+L)},So=function(m,p,y){y===void 0&&(y=". ");var w=p.length;return $u(Math.abs(m),w,!1,function(L){return p[Math.floor(L%w)]})+y},iu=1,Sa=2,Au=4,ec=8,Eo=function(m,p,y,w,L,H){if(m<-9999||m>9999)return dh(m,4,L.length>0);var $=Math.abs(m),ue=L;if($===0)return p[0]+ue;for(var le=0;$>0&&le<=4;le++){var De=$%10;De===0&&je(H,iu)&&ue!==""?ue=p[De]+ue:De>1||De===1&&le===0||De===1&&le===1&&je(H,Sa)||De===1&&le===1&&je(H,Au)&&m>100||De===1&&le>1&&je(H,ec)?ue=p[De]+(le>0?y[le-1]:"")+ue:De===1&&le>0&&(ue=y[le-1]+ue),$=Math.floor($/10)}return(m<0?w:"")+ue},LA="\u5341\u767E\u5343\u842C",Bv="\u62FE\u4F70\u4EDF\u842C",bv="\u30DE\u30A4\u30CA\u30B9",Fd="\uB9C8\uC774\uB108\uC2A4",dh=function(m,p,y){var w=y?". ":"",L=y?"\u3001":"",H=y?", ":"",$=y?" ":"";switch(p){case 0:return"\u2022"+$;case 1:return"\u25E6"+$;case 2:return"\u25FE"+$;case 5:var ue=Dt(m,48,57,!0,w);return ue.length<4?"0"+ue:ue;case 4:return So(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",L);case 6:return pl(m,1,3999,xo,3,w).toLowerCase();case 7:return pl(m,1,3999,xo,3,w);case 8:return Dt(m,945,969,!1,w);case 9:return Dt(m,97,122,!1,w);case 10:return Dt(m,65,90,!1,w);case 11:return Dt(m,1632,1641,!0,w);case 12:case 49:return pl(m,1,9999,Ed,3,w);case 35:return pl(m,1,9999,Ed,3,w).toLowerCase();case 13:return Dt(m,2534,2543,!0,w);case 14:case 30:return Dt(m,6112,6121,!0,w);case 15:return So(m,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",L);case 16:return So(m,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",L);case 17:case 48:return Eo(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",LA,"\u8CA0",L,Sa|Au|ec);case 47:return Eo(m,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Bv,"\u8CA0",L,iu|Sa|Au|ec);case 42:return Eo(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",LA,"\u8D1F",L,Sa|Au|ec);case 41:return Eo(m,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Bv,"\u8D1F",L,iu|Sa|Au|ec);case 26:return Eo(m,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",bv,L,0);case 25:return Eo(m,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",bv,L,iu|Sa|Au);case 31:return Eo(m,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",Fd,H,iu|Sa|Au);case 33:return Eo(m,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",Fd,H,0);case 32:return Eo(m,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",Fd,H,iu|Sa|Au);case 18:return Dt(m,2406,2415,!0,w);case 20:return pl(m,1,19999,Kg,3,w);case 21:return Dt(m,2790,2799,!0,w);case 22:return Dt(m,2662,2671,!0,w);case 22:return pl(m,1,10999,jg,3,w);case 23:return So(m,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return So(m,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Dt(m,3302,3311,!0,w);case 28:return So(m,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",L);case 29:return So(m,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",L);case 34:return Dt(m,3792,3801,!0,w);case 37:return Dt(m,6160,6169,!0,w);case 38:return Dt(m,4160,4169,!0,w);case 39:return Dt(m,2918,2927,!0,w);case 40:return Dt(m,1776,1785,!0,w);case 43:return Dt(m,3046,3055,!0,w);case 44:return Dt(m,3174,3183,!0,w);case 45:return Dt(m,3664,3673,!0,w);case 46:return Dt(m,3872,3881,!0,w);case 3:default:return Dt(m,48,57,!0,w)}},Vg="data-html2canvas-ignore",Cv=function(){function m(p,y,w){if(this.context=p,this.options=w,this.scrolledElements=[],this.referenceElement=y,this.counters=new Ky,this.quoteDepth=0,!y.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(y.ownerDocument.documentElement,!1)}return m.prototype.toIFrame=function(p,y){var w=this,L=Vy(p,y);if(!L.contentWindow)return Promise.reject("Unable to find iframe window");var H=p.defaultView.pageXOffset,$=p.defaultView.pageYOffset,ue=L.contentWindow,le=ue.document,De=Gg(L).then(function(){return n(w,void 0,void 0,function(){var qe,Ge;return i(this,function(at){switch(at.label){case 0:return this.scrolledElements.forEach(mh),ue&&(ue.scrollTo(y.left,y.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ue.scrollY!==y.top||ue.scrollX!==y.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ue.scrollX-y.left,ue.scrollY-y.top,0,0))),qe=this.options.onclone,Ge=this.clonedReferenceElement,typeof Ge>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:le.fonts&&le.fonts.ready?[4,le.fonts.ready]:[3,2];case 1:at.sent(),at.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,la(le)]:[3,4];case 3:at.sent(),at.label=4;case 4:return typeof qe=="function"?[2,Promise.resolve().then(function(){return qe(le,Ge)}).then(function(){return L})]:[2,L]}})})});return le.open(),le.write(Wy(document.doctype)+""),Yy(this.referenceElement.ownerDocument,H,$),le.replaceChild(le.adoptNode(this.documentElement),le.documentElement),le.close(),De},m.prototype.createElementClone=function(p){if(Ur(p,2))debugger;if(Rg(p))return this.createCanvasClone(p);if(xd(p))return this.createVideoClone(p);if(Co(p))return this.createStyleClone(p);var y=p.cloneNode(!1);return Pg(y)&&(Pg(p)&&p.currentSrc&&p.currentSrc!==p.src&&(y.src=p.currentSrc,y.srcset=""),y.loading==="lazy"&&(y.loading="eager")),yv(y)?this.createCustomElementClone(y):y},m.prototype.createCustomElementClone=function(p){var y=document.createElement("html2canvascustomelement");return gh(p.style,y),y},m.prototype.createStyleClone=function(p){try{var y=p.sheet;if(y&&y.cssRules){var w=[].slice.call(y.cssRules,0).reduce(function(H,$){return $&&typeof $.cssText=="string"?H+$.cssText:H},""),L=p.cloneNode(!1);return L.textContent=w,L}}catch(H){if(this.context.logger.error("Unable to access cssRules property",H),H.name!=="SecurityError")throw H}return p.cloneNode(!1)},m.prototype.createCanvasClone=function(p){var y;if(this.options.inlineImages&&p.ownerDocument){var w=p.ownerDocument.createElement("img");try{return w.src=p.toDataURL(),w}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",p)}}var L=p.cloneNode(!1);try{L.width=p.width,L.height=p.height;var H=p.getContext("2d"),$=L.getContext("2d");if($)if(!this.options.allowTaint&&H)$.putImageData(H.getImageData(0,0,p.width,p.height),0,0);else{var ue=(y=p.getContext("webgl2"))!==null&&y!==void 0?y:p.getContext("webgl");if(ue){var le=ue.getContextAttributes();le?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",p)}$.drawImage(p,0,0)}return L}catch{this.context.logger.info("Unable to clone canvas as it is tainted",p)}return L},m.prototype.createVideoClone=function(p){var y=p.ownerDocument.createElement("canvas");y.width=p.offsetWidth,y.height=p.offsetHeight;var w=y.getContext("2d");try{return w&&(w.drawImage(p,0,0,y.width,y.height),this.options.allowTaint||w.getImageData(0,0,y.width,y.height)),y}catch{this.context.logger.info("Unable to clone video as it is tainted",p)}var L=p.ownerDocument.createElement("canvas");return L.width=p.offsetWidth,L.height=p.offsetHeight,L},m.prototype.appendChildNode=function(p,y,w){(!Ju(y)||!wv(y)&&!y.hasAttribute(Vg)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(y)))&&(!this.options.copyStyles||!Ju(y)||!Co(y))&&p.appendChild(this.cloneNode(y,w))},m.prototype.cloneChildNodes=function(p,y,w){for(var L=this,H=p.shadowRoot?p.shadowRoot.firstChild:p.firstChild;H;H=H.nextSibling)if(Ju(H)&&qg(H)&&typeof H.assignedNodes=="function"){var $=H.assignedNodes();$.length&&$.forEach(function(ue){return L.appendChildNode(y,ue,w)})}else this.appendChildNode(y,H,w)},m.prototype.cloneNode=function(p,y){if(Dg(p))return document.createTextNode(p.data);if(!p.ownerDocument)return p.cloneNode(!1);var w=p.ownerDocument.defaultView;if(w&&Ju(p)&&(Yc(p)||fh(p))){var L=this.createElementClone(p);L.style.transitionProperty="none";var H=w.getComputedStyle(p),$=w.getComputedStyle(p,":before"),ue=w.getComputedStyle(p,":after");this.referenceElement===p&&Yc(L)&&(this.clonedReferenceElement=L),Xc(L)&&Xy(L);var le=this.counters.parse(new Lt(this.context,H)),De=this.resolvePseudoContent(p,L,$,ph.BEFORE);yv(p)&&(y=!0),xd(p)||this.cloneChildNodes(p,L,y),De&&L.insertBefore(De,L.firstChild);var qe=this.resolvePseudoContent(p,L,ue,ph.AFTER);return qe&&L.appendChild(qe),this.counters.pop(le),(H&&(this.options.copyStyles||fh(p))&&!zg(p)||y)&&gh(H,L),(p.scrollTop!==0||p.scrollLeft!==0)&&this.scrolledElements.push([L,p.scrollLeft,p.scrollTop]),(hh(p)||Sd(p))&&(hh(L)||Sd(L))&&(L.value=p.value),L}return p.cloneNode(!1)},m.prototype.resolvePseudoContent=function(p,y,w,L){var H=this;if(w){var $=w.content,ue=y.ownerDocument;if(!(!ue||!$||$==="none"||$==="-moz-alt-content"||w.display==="none")){this.counters.parse(new Lt(this.context,w));var le=new Yt(this.context,w),De=ue.createElement("html2canvaspseudoelement");gh(w,De),le.content.forEach(function(Ge){if(Ge.type===0)De.appendChild(ue.createTextNode(Ge.value));else if(Ge.type===22){var at=ue.createElement("img");at.src=Ge.value,at.style.opacity="1",De.appendChild(at)}else if(Ge.type===18){if(Ge.name==="attr"){var Ot=Ge.values.filter(Zt);Ot.length&&De.appendChild(ue.createTextNode(p.getAttribute(Ot[0].value)||""))}else if(Ge.name==="counter"){var St=Ge.values.filter(Rr),Nt=St[0],Sr=St[1];if(Nt&&Zt(Nt)){var Kt=H.counters.getCounterValue(Nt.value),qt=Sr&&Zt(Sr)?bi.parse(H.context,Sr.value):3;De.appendChild(ue.createTextNode(dh(Kt,qt,!1)))}}else if(Ge.name==="counters"){var ln=Ge.values.filter(Rr),Nt=ln[0],_r=ln[1],Sr=ln[2];if(Nt&&Zt(Nt)){var fr=H.counters.getCounterValues(Nt.value),Ht=Sr&&Zt(Sr)?bi.parse(H.context,Sr.value):3,Zr=_r&&_r.type===0?_r.value:"",Jr=fr.map(function(Ea){return dh(Ea,Ht,!1)}).join(Zr);De.appendChild(ue.createTextNode(Jr))}}}else if(Ge.type===20)switch(Ge.value){case"open-quote":De.appendChild(ue.createTextNode(Me(le.quotes,H.quoteDepth++,!0)));break;case"close-quote":De.appendChild(ue.createTextNode(Me(le.quotes,--H.quoteDepth,!1)));break;default:De.appendChild(ue.createTextNode(Ge.value))}}),De.className=Wg+" "+Yg;var qe=L===ph.BEFORE?" "+Wg:" "+Yg;return fh(y)?y.className.baseValue+=qe:y.className+=qe,De}}},m.destroy=function(p){return p.parentNode?(p.parentNode.removeChild(p),!0):!1},m}(),ph;(function(m){m[m.BEFORE=0]="BEFORE",m[m.AFTER=1]="AFTER"})(ph||(ph={}));var Vy=function(m,p){var y=m.createElement("iframe");return y.className="html2canvas-container",y.style.visibility="hidden",y.style.position="fixed",y.style.left="-10000px",y.style.top="0px",y.style.border="0",y.width=p.width.toString(),y.height=p.height.toString(),y.scrolling="no",y.setAttribute(Vg,"true"),m.body.appendChild(y),y},gl=function(m){return new Promise(function(p){if(m.complete){p();return}if(!m.src){p();return}m.onload=p,m.onerror=p})},la=function(m){return Promise.all([].slice.call(m.images,0).map(gl))},Gg=function(m){return new Promise(function(p,y){var w=m.contentWindow;if(!w)return y("No window assigned for iframe");var L=w.document;w.onload=m.onload=function(){w.onload=m.onload=null;var H=setInterval(function(){L.body.childNodes.length>0&&L.readyState==="complete"&&(clearInterval(H),p(m))},50)}})},Gy=["all","d","content"],gh=function(m,p){for(var y=m.length-1;y>=0;y--){var w=m.item(y);Gy.indexOf(w)===-1&&p.style.setProperty(w,m.getPropertyValue(w))}return p},Wy=function(m){var p="";return m&&(p+=""),p},Yy=function(m,p,y){m&&m.defaultView&&(p!==m.defaultView.pageXOffset||y!==m.defaultView.pageYOffset)&&m.defaultView.scrollTo(p,y)},mh=function(m){var p=m[0],y=m[1],w=m[2];p.scrollLeft=y,p.scrollTop=w},xv=":before",Sv=":after",Wg="___html2canvas___pseudoelement_before",Yg="___html2canvas___pseudoelement_after",Ev=`{ + content: "" !important; + display: none !important; +}`,Xy=function(m){Fv(m,"."+Wg+xv+Ev+` + .`+Yg+Sv+Ev)},Fv=function(m,p){var y=m.ownerDocument;if(y){var w=y.createElement("style");w.textContent=p,m.appendChild(w)}},Xg=function(){function m(){}return m.getOrigin=function(p){var y=m._link;return y?(y.href=p,y.href=y.href,y.protocol+y.hostname+y.port):"about:blank"},m.isSameOrigin=function(p){return m.getOrigin(p)===m._origin},m.setContext=function(p){m._link=p.document.createElement("a"),m._origin=m.getOrigin(p.location.href)},m._origin="about:blank",m}(),Zy=function(){function m(p,y){this.context=p,this._options=y,this._cache={}}return m.prototype.addImage=function(p){var y=Promise.resolve();return this.has(p)||(Zc(p)||Jg(p))&&(this._cache[p]=this.loadImage(p)).catch(function(){}),y},m.prototype.match=function(p){return this._cache[p]},m.prototype.loadImage=function(p){return n(this,void 0,void 0,function(){var y,w,L,H,$=this;return i(this,function(ue){switch(ue.label){case 0:return y=Xg.isSameOrigin(p),w=!Ud(p)&&this._options.useCORS===!0&&hn.SUPPORT_CORS_IMAGES&&!y,L=!Ud(p)&&!y&&!Zc(p)&&typeof this._options.proxy=="string"&&hn.SUPPORT_CORS_XHR&&!w,!y&&this._options.allowTaint===!1&&!Ud(p)&&!Zc(p)&&!L&&!w?[2]:(H=p,L?[4,this.proxy(H)]:[3,2]);case 1:H=ue.sent(),ue.label=2;case 2:return this.context.logger.debug("Added image "+p.substring(0,256)),[4,new Promise(function(le,De){var qe=new Image;qe.onload=function(){return le(qe)},qe.onerror=De,(_v(H)||w)&&(qe.crossOrigin="anonymous"),qe.src=H,qe.complete===!0&&setTimeout(function(){return le(qe)},500),$._options.imageTimeout>0&&setTimeout(function(){return De("Timed out ("+$._options.imageTimeout+"ms) loading image")},$._options.imageTimeout)})];case 3:return[2,ue.sent()]}})})},m.prototype.has=function(p){return typeof this._cache[p]<"u"},m.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},m.prototype.proxy=function(p){var y=this,w=this._options.proxy;if(!w)throw new Error("No proxy defined");var L=p.substring(0,256);return new Promise(function(H,$){var ue=hn.SUPPORT_RESPONSE_TYPE?"blob":"text",le=new XMLHttpRequest;le.onload=function(){if(le.status===200)if(ue==="text")H(le.response);else{var Ge=new FileReader;Ge.addEventListener("load",function(){return H(Ge.result)},!1),Ge.addEventListener("error",function(at){return $(at)},!1),Ge.readAsDataURL(le.response)}else $("Failed to proxy resource "+L+" with status code "+le.status)},le.onerror=$;var De=w.indexOf("?")>-1?"&":"?";if(le.open("GET",""+w+De+"url="+encodeURIComponent(p)+"&responseType="+ue),ue!=="text"&&le instanceof XMLHttpRequest&&(le.responseType=ue),y._options.imageTimeout){var qe=y._options.imageTimeout;le.timeout=qe,le.ontimeout=function(){return $("Timed out ("+qe+"ms) proxying "+L)}}le.send()})},m}(),Zg=/^data:image\/svg\+xml/i,Uv=/^data:image\/.*;base64,/i,vh=/^data:image\/.*/i,Jg=function(m){return hn.SUPPORT_SVG_DRAWING||!Qv(m)},Ud=function(m){return vh.test(m)},_v=function(m){return Uv.test(m)},Zc=function(m){return m.substr(0,4)==="blob"},Qv=function(m){return m.substr(-3).toLowerCase()==="svg"||Zg.test(m)},Qt=function(){function m(p,y){this.type=0,this.x=p,this.y=y}return m.prototype.add=function(p,y){return new m(this.x+p,this.y+y)},m}(),ys=function(m,p,y){return new Qt(m.x+(p.x-m.x)*y,m.y+(p.y-m.y)*y)},_d=function(){function m(p,y,w,L){this.type=1,this.start=p,this.startControl=y,this.endControl=w,this.end=L}return m.prototype.subdivide=function(p,y){var w=ys(this.start,this.startControl,p),L=ys(this.startControl,this.endControl,p),H=ys(this.endControl,this.end,p),$=ys(w,L,p),ue=ys(L,H,p),le=ys($,ue,p);return y?new m(this.start,w,$,le):new m(le,ue,H,this.end)},m.prototype.add=function(p,y){return new m(this.start.add(p,y),this.startControl.add(p,y),this.endControl.add(p,y),this.end.add(p,y))},m.prototype.reverse=function(){return new m(this.end,this.endControl,this.startControl,this.start)},m}(),$a=function(m){return m.type===1},Jy=function(){function m(p){var y=p.styles,w=p.bounds,L=Is(y.borderTopLeftRadius,w.width,w.height),H=L[0],$=L[1],ue=Is(y.borderTopRightRadius,w.width,w.height),le=ue[0],De=ue[1],qe=Is(y.borderBottomRightRadius,w.width,w.height),Ge=qe[0],at=qe[1],Ot=Is(y.borderBottomLeftRadius,w.width,w.height),St=Ot[0],Nt=Ot[1],Sr=[];Sr.push((H+le)/w.width),Sr.push((St+Ge)/w.width),Sr.push(($+Nt)/w.height),Sr.push((De+at)/w.height);var Kt=Math.max.apply(Math,Sr);Kt>1&&(H/=Kt,$/=Kt,le/=Kt,De/=Kt,Ge/=Kt,at/=Kt,St/=Kt,Nt/=Kt);var qt=w.width-le,ln=w.height-at,_r=w.width-Ge,fr=w.height-Nt,Ht=y.borderTopWidth,Zr=y.borderRightWidth,Jr=y.borderBottomWidth,pr=y.borderLeftWidth,Hi=Nr(y.paddingTop,p.bounds.width),Ea=Nr(y.paddingRight,p.bounds.width),es=Nr(y.paddingBottom,p.bounds.width),Un=Nr(y.paddingLeft,p.bounds.width);this.topLeftBorderDoubleOuterBox=H>0||$>0?Jn(w.left+pr/3,w.top+Ht/3,H-pr/3,$-Ht/3,mn.TOP_LEFT):new Qt(w.left+pr/3,w.top+Ht/3),this.topRightBorderDoubleOuterBox=H>0||$>0?Jn(w.left+qt,w.top+Ht/3,le-Zr/3,De-Ht/3,mn.TOP_RIGHT):new Qt(w.left+w.width-Zr/3,w.top+Ht/3),this.bottomRightBorderDoubleOuterBox=Ge>0||at>0?Jn(w.left+_r,w.top+ln,Ge-Zr/3,at-Jr/3,mn.BOTTOM_RIGHT):new Qt(w.left+w.width-Zr/3,w.top+w.height-Jr/3),this.bottomLeftBorderDoubleOuterBox=St>0||Nt>0?Jn(w.left+pr/3,w.top+fr,St-pr/3,Nt-Jr/3,mn.BOTTOM_LEFT):new Qt(w.left+pr/3,w.top+w.height-Jr/3),this.topLeftBorderDoubleInnerBox=H>0||$>0?Jn(w.left+pr*2/3,w.top+Ht*2/3,H-pr*2/3,$-Ht*2/3,mn.TOP_LEFT):new Qt(w.left+pr*2/3,w.top+Ht*2/3),this.topRightBorderDoubleInnerBox=H>0||$>0?Jn(w.left+qt,w.top+Ht*2/3,le-Zr*2/3,De-Ht*2/3,mn.TOP_RIGHT):new Qt(w.left+w.width-Zr*2/3,w.top+Ht*2/3),this.bottomRightBorderDoubleInnerBox=Ge>0||at>0?Jn(w.left+_r,w.top+ln,Ge-Zr*2/3,at-Jr*2/3,mn.BOTTOM_RIGHT):new Qt(w.left+w.width-Zr*2/3,w.top+w.height-Jr*2/3),this.bottomLeftBorderDoubleInnerBox=St>0||Nt>0?Jn(w.left+pr*2/3,w.top+fr,St-pr*2/3,Nt-Jr*2/3,mn.BOTTOM_LEFT):new Qt(w.left+pr*2/3,w.top+w.height-Jr*2/3),this.topLeftBorderStroke=H>0||$>0?Jn(w.left+pr/2,w.top+Ht/2,H-pr/2,$-Ht/2,mn.TOP_LEFT):new Qt(w.left+pr/2,w.top+Ht/2),this.topRightBorderStroke=H>0||$>0?Jn(w.left+qt,w.top+Ht/2,le-Zr/2,De-Ht/2,mn.TOP_RIGHT):new Qt(w.left+w.width-Zr/2,w.top+Ht/2),this.bottomRightBorderStroke=Ge>0||at>0?Jn(w.left+_r,w.top+ln,Ge-Zr/2,at-Jr/2,mn.BOTTOM_RIGHT):new Qt(w.left+w.width-Zr/2,w.top+w.height-Jr/2),this.bottomLeftBorderStroke=St>0||Nt>0?Jn(w.left+pr/2,w.top+fr,St-pr/2,Nt-Jr/2,mn.BOTTOM_LEFT):new Qt(w.left+pr/2,w.top+w.height-Jr/2),this.topLeftBorderBox=H>0||$>0?Jn(w.left,w.top,H,$,mn.TOP_LEFT):new Qt(w.left,w.top),this.topRightBorderBox=le>0||De>0?Jn(w.left+qt,w.top,le,De,mn.TOP_RIGHT):new Qt(w.left+w.width,w.top),this.bottomRightBorderBox=Ge>0||at>0?Jn(w.left+_r,w.top+ln,Ge,at,mn.BOTTOM_RIGHT):new Qt(w.left+w.width,w.top+w.height),this.bottomLeftBorderBox=St>0||Nt>0?Jn(w.left,w.top+fr,St,Nt,mn.BOTTOM_LEFT):new Qt(w.left,w.top+w.height),this.topLeftPaddingBox=H>0||$>0?Jn(w.left+pr,w.top+Ht,Math.max(0,H-pr),Math.max(0,$-Ht),mn.TOP_LEFT):new Qt(w.left+pr,w.top+Ht),this.topRightPaddingBox=le>0||De>0?Jn(w.left+Math.min(qt,w.width-Zr),w.top+Ht,qt>w.width+Zr?0:Math.max(0,le-Zr),Math.max(0,De-Ht),mn.TOP_RIGHT):new Qt(w.left+w.width-Zr,w.top+Ht),this.bottomRightPaddingBox=Ge>0||at>0?Jn(w.left+Math.min(_r,w.width-pr),w.top+Math.min(ln,w.height-Jr),Math.max(0,Ge-Zr),Math.max(0,at-Jr),mn.BOTTOM_RIGHT):new Qt(w.left+w.width-Zr,w.top+w.height-Jr),this.bottomLeftPaddingBox=St>0||Nt>0?Jn(w.left+pr,w.top+Math.min(fr,w.height-Jr),Math.max(0,St-pr),Math.max(0,Nt-Jr),mn.BOTTOM_LEFT):new Qt(w.left+pr,w.top+w.height-Jr),this.topLeftContentBox=H>0||$>0?Jn(w.left+pr+Un,w.top+Ht+Hi,Math.max(0,H-(pr+Un)),Math.max(0,$-(Ht+Hi)),mn.TOP_LEFT):new Qt(w.left+pr+Un,w.top+Ht+Hi),this.topRightContentBox=le>0||De>0?Jn(w.left+Math.min(qt,w.width+pr+Un),w.top+Ht+Hi,qt>w.width+pr+Un?0:le-pr+Un,De-(Ht+Hi),mn.TOP_RIGHT):new Qt(w.left+w.width-(Zr+Ea),w.top+Ht+Hi),this.bottomRightContentBox=Ge>0||at>0?Jn(w.left+Math.min(_r,w.width-(pr+Un)),w.top+Math.min(ln,w.height+Ht+Hi),Math.max(0,Ge-(Zr+Ea)),at-(Jr+es),mn.BOTTOM_RIGHT):new Qt(w.left+w.width-(Zr+Ea),w.top+w.height-(Jr+es)),this.bottomLeftContentBox=St>0||Nt>0?Jn(w.left+pr+Un,w.top+fr,Math.max(0,St-(pr+Un)),Nt-(Jr+es),mn.BOTTOM_LEFT):new Qt(w.left+pr+Un,w.top+w.height-(Jr+es))}return m}(),mn;(function(m){m[m.TOP_LEFT=0]="TOP_LEFT",m[m.TOP_RIGHT=1]="TOP_RIGHT",m[m.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",m[m.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(mn||(mn={}));var Jn=function(m,p,y,w,L){var H=4*((Math.sqrt(2)-1)/3),$=y*H,ue=w*H,le=m+y,De=p+w;switch(L){case mn.TOP_LEFT:return new _d(new Qt(m,De),new Qt(m,De-ue),new Qt(le-$,p),new Qt(le,p));case mn.TOP_RIGHT:return new _d(new Qt(m,p),new Qt(m+$,p),new Qt(le,De-ue),new Qt(le,De));case mn.BOTTOM_RIGHT:return new _d(new Qt(le,p),new Qt(le,p+ue),new Qt(m+$,De),new Qt(m,De));case mn.BOTTOM_LEFT:default:return new _d(new Qt(le,De),new Qt(le-$,De),new Qt(m,p+ue),new Qt(m,p))}},Qd=function(m){return[m.topLeftBorderBox,m.topRightBorderBox,m.bottomRightBorderBox,m.bottomLeftBorderBox]},$y=function(m){return[m.topLeftContentBox,m.topRightContentBox,m.bottomRightContentBox,m.bottomLeftContentBox]},Td=function(m){return[m.topLeftPaddingBox,m.topRightPaddingBox,m.bottomRightPaddingBox,m.bottomLeftPaddingBox]},eB=function(){function m(p,y,w){this.offsetX=p,this.offsetY=y,this.matrix=w,this.type=0,this.target=6}return m}(),Ld=function(){function m(p,y){this.path=p,this.target=y,this.type=1}return m}(),tB=function(){function m(p){this.opacity=p,this.type=2,this.target=6}return m}(),rB=function(m){return m.type===0},Tv=function(m){return m.type===1},Lv=function(m){return m.type===2},$g=function(m,p){return m.length===p.length?m.some(function(y,w){return y===p[w]}):!1},kv=function(m,p,y,w,L){return m.map(function(H,$){switch($){case 0:return H.add(p,y);case 1:return H.add(p+w,y);case 2:return H.add(p+w,y+L);case 3:return H.add(p,y+L)}return H})},Nv=function(){function m(p){this.element=p,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return m}(),Ov=function(){function m(p,y){if(this.container=p,this.parent=y,this.effects=[],this.curves=new Jy(this.container),this.container.styles.opacity<1&&this.effects.push(new tB(this.container.styles.opacity)),this.container.styles.transform!==null){var w=this.container.bounds.left+this.container.styles.transformOrigin[0].number,L=this.container.bounds.top+this.container.styles.transformOrigin[1].number,H=this.container.styles.transform;this.effects.push(new eB(w,L,H))}if(this.container.styles.overflowX!==0){var $=Qd(this.curves),ue=Td(this.curves);$g($,ue)?this.effects.push(new Ld($,6)):(this.effects.push(new Ld($,2)),this.effects.push(new Ld(ue,4)))}}return m.prototype.getEffects=function(p){for(var y=[2,3].indexOf(this.container.styles.position)===-1,w=this.parent,L=this.effects.slice(0);w;){var H=w.effects.filter(function(le){return!Tv(le)});if(y||w.container.styles.position!==0||!w.parent){if(L.unshift.apply(L,H),y=[2,3].indexOf(w.container.styles.position)===-1,w.container.styles.overflowX!==0){var $=Qd(w.curves),ue=Td(w.curves);$g($,ue)||L.unshift(new Ld(ue,6))}}else L.unshift.apply(L,H);w=w.parent}return L.filter(function(le){return je(le.target,p)})},m}(),e0=function(m,p,y,w){m.container.elements.forEach(function(L){var H=je(L.flags,4),$=je(L.flags,2),ue=new Ov(L,m);je(L.styles.display,2048)&&w.push(ue);var le=je(L.flags,8)?[]:w;if(H||$){var De=H||L.styles.isPositioned()?y:p,qe=new Nv(ue);if(L.styles.isPositioned()||L.styles.opacity<1||L.styles.isTransformed()){var Ge=L.styles.zIndex.order;if(Ge<0){var at=0;De.negativeZIndex.some(function(St,Nt){return Ge>St.element.container.styles.zIndex.order?(at=Nt,!1):at>0}),De.negativeZIndex.splice(at,0,qe)}else if(Ge>0){var Ot=0;De.positiveZIndex.some(function(St,Nt){return Ge>=St.element.container.styles.zIndex.order?(Ot=Nt+1,!1):Ot>0}),De.positiveZIndex.splice(Ot,0,qe)}else De.zeroOrAutoZIndexOrTransformedOrOpacity.push(qe)}else L.styles.isFloating()?De.nonPositionedFloats.push(qe):De.nonPositionedInlineLevel.push(qe);e0(ue,qe,H?qe:y,le)}else L.styles.isInlineLevel()?p.inlineLevel.push(ue):p.nonInlineLevel.push(ue),e0(ue,p,y,le);je(L.flags,8)&&t0(L,le)})},t0=function(m,p){for(var y=m instanceof kg?m.start:1,w=m instanceof kg?m.reversed:!1,L=0;L"u"?m[0]:y},lB=function(m,p,y,w,L){var H=p[0],$=p[1],ue=y[0],le=y[1];switch(m){case 2:return[new Qt(Math.round(w.left),Math.round(w.top+$)),new Qt(Math.round(w.left+w.width),Math.round(w.top+$)),new Qt(Math.round(w.left+w.width),Math.round(le+w.top+$)),new Qt(Math.round(w.left),Math.round(le+w.top+$))];case 3:return[new Qt(Math.round(w.left+H),Math.round(w.top)),new Qt(Math.round(w.left+H+ue),Math.round(w.top)),new Qt(Math.round(w.left+H+ue),Math.round(w.height+w.top)),new Qt(Math.round(w.left+H),Math.round(w.height+w.top))];case 1:return[new Qt(Math.round(w.left+H),Math.round(w.top+$)),new Qt(Math.round(w.left+H+ue),Math.round(w.top+$)),new Qt(Math.round(w.left+H+ue),Math.round(w.top+$+le)),new Qt(Math.round(w.left+H),Math.round(w.top+$+le))];default:return[new Qt(Math.round(L.left),Math.round(L.top)),new Qt(Math.round(L.left+L.width),Math.round(L.top)),new Qt(Math.round(L.left+L.width),Math.round(L.height+L.top)),new Qt(Math.round(L.left),Math.round(L.height+L.top))]}},uB="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Mv="Hidden Text",cB=function(){function m(p){this._data={},this._document=p}return m.prototype.parseMetrics=function(p,y){var w=this._document.createElement("div"),L=this._document.createElement("img"),H=this._document.createElement("span"),$=this._document.body;w.style.visibility="hidden",w.style.fontFamily=p,w.style.fontSize=y,w.style.margin="0",w.style.padding="0",w.style.whiteSpace="nowrap",$.appendChild(w),L.src=uB,L.width=1,L.height=1,L.style.margin="0",L.style.padding="0",L.style.verticalAlign="baseline",H.style.fontFamily=p,H.style.fontSize=y,H.style.margin="0",H.style.padding="0",H.appendChild(this._document.createTextNode(Mv)),w.appendChild(H),w.appendChild(L);var ue=L.offsetTop-H.offsetTop+2;w.removeChild(H),w.appendChild(this._document.createTextNode(Mv)),w.style.lineHeight="normal",L.style.verticalAlign="super";var le=L.offsetTop-w.offsetTop+2;return $.removeChild(w),{baseline:ue,middle:le}},m.prototype.getMetrics=function(p,y){var w=p+" "+y;return typeof this._data[w]>"u"&&(this._data[w]=this.parseMetrics(p,y)),this._data[w]},m}(),Rv=function(){function m(p,y){this.context=p,this.options=y}return m}(),fB=1e4,hB=function(m){t(p,m);function p(y,w){var L=m.call(this,y,w)||this;return L._activeEffects=[],L.canvas=w.canvas?w.canvas:document.createElement("canvas"),L.ctx=L.canvas.getContext("2d"),w.canvas||(L.canvas.width=Math.floor(w.width*w.scale),L.canvas.height=Math.floor(w.height*w.scale),L.canvas.style.width=w.width+"px",L.canvas.style.height=w.height+"px"),L.fontMetrics=new cB(document),L.ctx.scale(L.options.scale,L.options.scale),L.ctx.translate(-w.x,-w.y),L.ctx.textBaseline="bottom",L._activeEffects=[],L.context.logger.debug("Canvas renderer initialized ("+w.width+"x"+w.height+") with scale "+w.scale),L}return p.prototype.applyEffects=function(y){for(var w=this;this._activeEffects.length;)this.popEffect();y.forEach(function(L){return w.applyEffect(L)})},p.prototype.applyEffect=function(y){this.ctx.save(),Lv(y)&&(this.ctx.globalAlpha=y.opacity),rB(y)&&(this.ctx.translate(y.offsetX,y.offsetY),this.ctx.transform(y.matrix[0],y.matrix[1],y.matrix[2],y.matrix[3],y.matrix[4],y.matrix[5]),this.ctx.translate(-y.offsetX,-y.offsetY)),Tv(y)&&(this.path(y.path),this.ctx.clip()),this._activeEffects.push(y)},p.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},p.prototype.renderStack=function(y){return n(this,void 0,void 0,function(){var w;return i(this,function(L){switch(L.label){case 0:return w=y.element.container.styles,w.isVisible()?[4,this.renderStackContent(y)]:[3,2];case 1:L.sent(),L.label=2;case 2:return[2]}})})},p.prototype.renderNode=function(y){return n(this,void 0,void 0,function(){return i(this,function(w){switch(w.label){case 0:if(je(y.container.flags,16))debugger;return y.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(y)]:[3,3];case 1:return w.sent(),[4,this.renderNodeContent(y)];case 2:w.sent(),w.label=3;case 3:return[2]}})})},p.prototype.renderTextWithLetterSpacing=function(y,w,L){var H=this;if(w===0)this.ctx.fillText(y.text,y.bounds.left,y.bounds.top+L);else{var $=Bo(y.text);$.reduce(function(ue,le){return H.ctx.fillText(le,ue,y.bounds.top+L),ue+H.ctx.measureText(le).width},y.bounds.left)}},p.prototype.createFontStyle=function(y){var w=y.fontVariant.filter(function($){return $==="normal"||$==="small-caps"}).join(""),L=vB(y.fontFamily).join(", "),H=tr(y.fontSize)?""+y.fontSize.number+y.fontSize.unit:y.fontSize.number+"px";return[[y.fontStyle,w,y.fontWeight,H,L].join(" "),L,H]},p.prototype.renderTextNode=function(y,w){return n(this,void 0,void 0,function(){var L,H,$,ue,le,De,qe,Ge,at=this;return i(this,function(Ot){return L=this.createFontStyle(w),H=L[0],$=L[1],ue=L[2],this.ctx.font=H,this.ctx.direction=w.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",le=this.fontMetrics.getMetrics($,ue),De=le.baseline,qe=le.middle,Ge=w.paintOrder,y.textBounds.forEach(function(St){Ge.forEach(function(Nt){switch(Nt){case 0:at.ctx.fillStyle=jr(w.color),at.renderTextWithLetterSpacing(St,w.letterSpacing,De);var Sr=w.textShadow;Sr.length&&St.text.trim().length&&(Sr.slice(0).reverse().forEach(function(Kt){at.ctx.shadowColor=jr(Kt.color),at.ctx.shadowOffsetX=Kt.offsetX.number*at.options.scale,at.ctx.shadowOffsetY=Kt.offsetY.number*at.options.scale,at.ctx.shadowBlur=Kt.blur.number,at.renderTextWithLetterSpacing(St,w.letterSpacing,De)}),at.ctx.shadowColor="",at.ctx.shadowOffsetX=0,at.ctx.shadowOffsetY=0,at.ctx.shadowBlur=0),w.textDecorationLine.length&&(at.ctx.fillStyle=jr(w.textDecorationColor||w.color),w.textDecorationLine.forEach(function(Kt){switch(Kt){case 1:at.ctx.fillRect(St.bounds.left,Math.round(St.bounds.top+De),St.bounds.width,1);break;case 2:at.ctx.fillRect(St.bounds.left,Math.round(St.bounds.top),St.bounds.width,1);break;case 3:at.ctx.fillRect(St.bounds.left,Math.ceil(St.bounds.top+qe),St.bounds.width,1);break}}));break;case 1:w.webkitTextStrokeWidth&&St.text.trim().length&&(at.ctx.strokeStyle=jr(w.webkitTextStrokeColor),at.ctx.lineWidth=w.webkitTextStrokeWidth,at.ctx.lineJoin=window.chrome?"miter":"round",at.ctx.strokeText(St.text,St.bounds.left,St.bounds.top+De)),at.ctx.strokeStyle="",at.ctx.lineWidth=0,at.ctx.lineJoin="miter";break}})}),[2]})})},p.prototype.renderReplacedElement=function(y,w,L){if(L&&y.intrinsicWidth>0&&y.intrinsicHeight>0){var H=Nd(y),$=Td(w);this.path($),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(L,0,0,y.intrinsicWidth,y.intrinsicHeight,H.left,H.top,H.width,H.height),this.ctx.restore()}},p.prototype.renderNodeContent=function(y){return n(this,void 0,void 0,function(){var w,L,H,$,ue,le,qt,qt,De,qe,Ge,at,_r,Ot,St,fr,Nt,Sr,Kt,qt,ln,_r,fr;return i(this,function(Ht){switch(Ht.label){case 0:this.applyEffects(y.getEffects(4)),w=y.container,L=y.curves,H=w.styles,$=0,ue=w.textNodes,Ht.label=1;case 1:return $0&&hA>0&&(Jr=H.ctx.createPattern(fr,"repeat"),H.renderRepeat(Hi,Jr,Fa,Ua))):Fn(qe)&&(pr=r0(y,w,[null,null,null]),Hi=pr[0],Ea=pr[1],es=pr[2],Un=pr[3],hA=pr[4],ml=qe.position.length===0?[go]:qe.position,Fa=Nr(ml[0],Un),Ua=Nr(ml[ml.length-1],hA),tc=Hc(qe,Fa,Ua,Un,hA),Fo=tc[0],Vs=tc[1],Fo>0&&Vs>0&&(rc=H.ctx.createRadialGradient(Ea+Fa,es+Ua,0,Ea+Fa,es+Ua,Fo),Pt(qe.stops,Fo*2).forEach(function(wh){return rc.addColorStop(wh.stop,jr(wh.color))}),H.path(Hi),H.ctx.fillStyle=rc,Fo!==Vs?(nc=y.bounds.left+.5*y.bounds.width,vl=y.bounds.top+.5*y.bounds.height,ic=Vs/Fo,wl=1/ic,H.ctx.save(),H.ctx.translate(nc,vl),H.ctx.transform(1,0,0,ic,0,0),H.ctx.translate(-nc,-vl),H.ctx.fillRect(Ea,wl*(es-vl)+vl,Un,hA*wl),H.ctx.restore()):H.ctx.fill())),$c.label=6;case 6:return w--,[2]}})},H=this,$=0,ue=y.styles.backgroundImage.slice(0).reverse(),De.label=1;case 1:return $0?qe.style!==2?[3,5]:[4,this.renderDashedDottedBorder(qe.color,qe.width,ue,y.curves,2)]:[3,11]):[3,13];case 4:return at.sent(),[3,11];case 5:return qe.style!==3?[3,7]:[4,this.renderDashedDottedBorder(qe.color,qe.width,ue,y.curves,3)];case 6:return at.sent(),[3,11];case 7:return qe.style!==4?[3,9]:[4,this.renderDoubleBorder(qe.color,qe.width,ue,y.curves)];case 8:return at.sent(),[3,11];case 9:return[4,this.renderSolidBorder(qe.color,ue,y.curves)];case 10:at.sent(),at.label=11;case 11:ue++,at.label=12;case 12:return le++,[3,3];case 13:return[2]}})})},p.prototype.renderDashedDottedBorder=function(y,w,L,H,$){return n(this,void 0,void 0,function(){var ue,le,De,qe,Ge,at,Ot,St,Nt,Sr,Kt,qt,ln,_r,fr,Ht,fr,Ht;return i(this,function(Zr){return this.ctx.save(),ue=aB(H,L),le=Iv(H,L),$===2&&(this.path(le),this.ctx.clip()),$a(le[0])?(De=le[0].start.x,qe=le[0].start.y):(De=le[0].x,qe=le[0].y),$a(le[1])?(Ge=le[1].end.x,at=le[1].end.y):(Ge=le[1].x,at=le[1].y),L===0||L===2?Ot=Math.abs(De-Ge):Ot=Math.abs(qe-at),this.ctx.beginPath(),$===3?this.formatPath(ue):this.formatPath(le.slice(0,2)),St=w<3?w*3:w*2,Nt=w<3?w*2:w,$===3&&(St=w,Nt=w),Sr=!0,Ot<=St*2?Sr=!1:Ot<=St*2+Nt?(Kt=Ot/(2*St+Nt),St*=Kt,Nt*=Kt):(qt=Math.floor((Ot+Nt)/(St+Nt)),ln=(Ot-qt*St)/(qt-1),_r=(Ot-(qt+1)*St)/qt,Nt=_r<=0||Math.abs(Nt-ln){(function(e,t){typeof kC=="object"&&typeof NC<"u"?NC.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.DOMPurify=t())})(kC,function(){"use strict";function e(Je){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(At){return typeof At}:function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},e(Je)}function t(Je,At){return t=Object.setPrototypeOf||function(ct,Ct){return ct.__proto__=Ct,ct},t(Je,At)}function r(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function n(Je,At,Bt){return r()?n=Reflect.construct:n=function(Ct,xe,Ut){var bt=[null];bt.push.apply(bt,xe);var Rt=Function.bind.apply(Ct,bt),Mt=new Rt;return Ut&&t(Mt,Ut.prototype),Mt},n.apply(null,arguments)}function i(Je){return A(Je)||a(Je)||s(Je)||c()}function A(Je){if(Array.isArray(Je))return l(Je)}function a(Je){if(typeof Symbol<"u"&&Je[Symbol.iterator]!=null||Je["@@iterator"]!=null)return Array.from(Je)}function s(Je,At){if(Je){if(typeof Je=="string")return l(Je,At);var Bt=Object.prototype.toString.call(Je).slice(8,-1);if(Bt==="Object"&&Je.constructor&&(Bt=Je.constructor.name),Bt==="Map"||Bt==="Set")return Array.from(Je);if(Bt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Bt))return l(Je,At)}}function l(Je,At){(At==null||At>Je.length)&&(At=Je.length);for(var Bt=0,ct=new Array(At);Bt1?Bt-1:0),Ct=1;Ct/gm),_e=Q(/\${[\w\W]*}/gm),G=Q(/^data-[\-\w.\u00B7-\uFFFF]+$/),I=Q(/^aria-[\-\w]+$/),ve=Q(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Pe=Q(/^(?:\w+script|data):/i),Qe=Q(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),we=Q(/^html$/i),Re=Q(/^[a-z][.\w]*(-[.\w]+)+$/i),Ze=function(){return typeof window>"u"?null:window},We=function(At,Bt){if(e(At)!=="object"||typeof At.createPolicy!="function")return null;var ct=null,Ct="data-tt-policy-suffix";Bt.currentScript&&Bt.currentScript.hasAttribute(Ct)&&(ct=Bt.currentScript.getAttribute(Ct));var xe="dompurify"+(ct?"#"+ct:"");try{return At.createPolicy(xe,{createHTML:function(bt){return bt},createScriptURL:function(bt){return bt}})}catch{return console.warn("TrustedTypes policy "+xe+" could not be created."),null}};function ot(){var Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ze(),At=function(Le){return ot(Le)};if(At.version="2.5.8",At.removed=[],!Je||!Je.document||Je.document.nodeType!==9)return At.isSupported=!1,At;var Bt=Je.document,ct=Je.document,Ct=Je.DocumentFragment,xe=Je.HTMLTemplateElement,Ut=Je.Node,bt=Je.Element,Rt=Je.NodeFilter,Mt=Je.NamedNodeMap,Jt=Mt===void 0?Je.NamedNodeMap||Je.MozNamedAttrMap:Mt,di=Je.HTMLFormElement,gr=Je.DOMParser,Cn=Je.trustedTypes,cr=bt.prototype,Fr=Z(cr,"cloneNode"),$r=Z(cr,"nextSibling"),Yr=Z(cr,"childNodes"),Gt=Z(cr,"parentNode");if(typeof xe=="function"){var ar=ct.createElement("template");ar.content&&ar.content.ownerDocument&&(ct=ar.content.ownerDocument)}var Vn=We(Cn,Bt),Mn=Vn?Vn.createHTML(""):"",iA=ct,AA=iA.implementation,Xt=iA.createNodeIterator,aA=iA.createDocumentFragment,Ar=iA.getElementsByTagName,vi=Bt.importNode,Tn={};try{Tn=X(ct).documentMode?ct.documentMode:{}}catch{}var br={};At.isSupported=typeof Gt=="function"&&AA&&AA.createHTMLDocument!==void 0&&Tn!==9;var wi=N,Ra=Ue,DA=_e,$A=G,yA=I,ea=Pe,ta=Qe,sA=Re,BA=ve,xn=null,Qs=de({},[].concat(i(ke),i(D),i(K),i(ce),i(Se))),dn=null,Ts=de({},[].concat(i(ye),i(Ee),i(tt),i(Xe))),en=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),as=null,Pa=null,Wo=!0,HA=!0,Ls=!1,za=!0,ha=!1,Yo=!0,bA=!1,qa=!1,ja=!1,Ka=!1,wn=!1,MA=!1,ss=!0,da=!1,os="user-content-",ii=!0,Vi=!1,RA={},Gn=null,ls=de({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Xo=null,Zo=de({},["audio","video","img","source","image","track"]),us=null,oo=de({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Gi="http://www.w3.org/1998/Math/MathML",ks="http://www.w3.org/2000/svg",Wi="http://www.w3.org/1999/xhtml",cs=Wi,lo=!1,Ns=null,PA=de({},[Gi,ks,Wi],he),Ai,uo=["application/xhtml+xml","text/html"],Rl="text/html",Mr,CA=null,Pl=ct.createElement("form"),nr=function(Le){return Le instanceof RegExp||Le instanceof Function},Jo=function(Le){CA&&CA===Le||((!Le||e(Le)!=="object")&&(Le={}),Le=X(Le),Ai=uo.indexOf(Le.PARSER_MEDIA_TYPE)===-1?Ai=Rl:Ai=Le.PARSER_MEDIA_TYPE,Mr=Ai==="application/xhtml+xml"?he:W,xn="ALLOWED_TAGS"in Le?de({},Le.ALLOWED_TAGS,Mr):Qs,dn="ALLOWED_ATTR"in Le?de({},Le.ALLOWED_ATTR,Mr):Ts,Ns="ALLOWED_NAMESPACES"in Le?de({},Le.ALLOWED_NAMESPACES,he):PA,us="ADD_URI_SAFE_ATTR"in Le?de(X(oo),Le.ADD_URI_SAFE_ATTR,Mr):oo,Xo="ADD_DATA_URI_TAGS"in Le?de(X(Zo),Le.ADD_DATA_URI_TAGS,Mr):Zo,Gn="FORBID_CONTENTS"in Le?de({},Le.FORBID_CONTENTS,Mr):ls,as="FORBID_TAGS"in Le?de({},Le.FORBID_TAGS,Mr):{},Pa="FORBID_ATTR"in Le?de({},Le.FORBID_ATTR,Mr):{},RA="USE_PROFILES"in Le?Le.USE_PROFILES:!1,Wo=Le.ALLOW_ARIA_ATTR!==!1,HA=Le.ALLOW_DATA_ATTR!==!1,Ls=Le.ALLOW_UNKNOWN_PROTOCOLS||!1,za=Le.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ha=Le.SAFE_FOR_TEMPLATES||!1,Yo=Le.SAFE_FOR_XML!==!1,bA=Le.WHOLE_DOCUMENT||!1,Ka=Le.RETURN_DOM||!1,wn=Le.RETURN_DOM_FRAGMENT||!1,MA=Le.RETURN_TRUSTED_TYPE||!1,ja=Le.FORCE_BODY||!1,ss=Le.SANITIZE_DOM!==!1,da=Le.SANITIZE_NAMED_PROPS||!1,ii=Le.KEEP_CONTENT!==!1,Vi=Le.IN_PLACE||!1,BA=Le.ALLOWED_URI_REGEXP||BA,cs=Le.NAMESPACE||Wi,en=Le.CUSTOM_ELEMENT_HANDLING||{},Le.CUSTOM_ELEMENT_HANDLING&&nr(Le.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(en.tagNameCheck=Le.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Le.CUSTOM_ELEMENT_HANDLING&&nr(Le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(en.attributeNameCheck=Le.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Le.CUSTOM_ELEMENT_HANDLING&&typeof Le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(en.allowCustomizedBuiltInElements=Le.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ha&&(HA=!1),wn&&(Ka=!0),RA&&(xn=de({},i(Se)),dn=[],RA.html===!0&&(de(xn,ke),de(dn,ye)),RA.svg===!0&&(de(xn,D),de(dn,Ee),de(dn,Xe)),RA.svgFilters===!0&&(de(xn,K),de(dn,Ee),de(dn,Xe)),RA.mathMl===!0&&(de(xn,ce),de(dn,tt),de(dn,Xe))),Le.ADD_TAGS&&(xn===Qs&&(xn=X(xn)),de(xn,Le.ADD_TAGS,Mr)),Le.ADD_ATTR&&(dn===Ts&&(dn=X(dn)),de(dn,Le.ADD_ATTR,Mr)),Le.ADD_URI_SAFE_ATTR&&de(us,Le.ADD_URI_SAFE_ATTR,Mr),Le.FORBID_CONTENTS&&(Gn===ls&&(Gn=X(Gn)),de(Gn,Le.FORBID_CONTENTS,Mr)),ii&&(xn["#text"]=!0),bA&&de(xn,["html","head","body"]),xn.table&&(de(xn,["tbody"]),delete as.tbody),C&&C(Le),CA=Le)},zl=de({},["mi","mo","mn","ms","mtext"]),xA=de({},["annotation-xml"]),ql=de({},["title","style","font","a","script"]),Qi=de({},D);de(Qi,K),de(Qi,ne);var Va=de({},ce);de(Va,pe);var co=function(Le){var gt=Gt(Le);(!gt||!gt.tagName)&&(gt={namespaceURI:cs,tagName:"template"});var xt=W(Le.tagName),er=W(gt.tagName);return Ns[Le.namespaceURI]?Le.namespaceURI===ks?gt.namespaceURI===Wi?xt==="svg":gt.namespaceURI===Gi?xt==="svg"&&(er==="annotation-xml"||zl[er]):!!Qi[xt]:Le.namespaceURI===Gi?gt.namespaceURI===Wi?xt==="math":gt.namespaceURI===ks?xt==="math"&&xA[er]:!!Va[xt]:Le.namespaceURI===Wi?gt.namespaceURI===ks&&!xA[er]||gt.namespaceURI===Gi&&!zl[er]?!1:!Va[xt]&&(ql[xt]||!Qi[xt]):!!(Ai==="application/xhtml+xml"&&Ns[Le.namespaceURI]):!1},Yi=function(Le){P(At.removed,{element:Le});try{Le.parentNode.removeChild(Le)}catch{try{Le.outerHTML=Mn}catch{Le.remove()}}},Xr=function(Le,gt){try{P(At.removed,{attribute:gt.getAttributeNode(Le),from:gt})}catch{P(At.removed,{attribute:null,from:gt})}if(gt.removeAttribute(Le),Le==="is"&&!dn[Le])if(Ka||wn)try{Yi(gt)}catch{}else try{gt.setAttribute(Le,"")}catch{}},tn=function(Le){var gt,xt;if(ja)Le=""+Le;else{var er=V(Le,/^[\r\n\t ]+/);xt=er&&er[0]}Ai==="application/xhtml+xml"&&cs===Wi&&(Le=''+Le+"");var yn=Vn?Vn.createHTML(Le):Le;if(cs===Wi)try{gt=new gr().parseFromString(yn,Ai)}catch{}if(!gt||!gt.documentElement){gt=AA.createDocument(cs,"template",null);try{gt.documentElement.innerHTML=lo?Mn:yn}catch{}}var on=gt.body||gt.documentElement;return Le&&xt&&on.insertBefore(ct.createTextNode(xt),on.childNodes[0]||null),cs===Wi?Ar.call(gt,bA?"html":"body")[0]:bA?gt.documentElement:on},fo=function(Le){return Xt.call(Le.ownerDocument||Le,Le,Rt.SHOW_ELEMENT|Rt.SHOW_COMMENT|Rt.SHOW_TEXT|Rt.SHOW_PROCESSING_INSTRUCTION|Rt.SHOW_CDATA_SECTION,null,!1)},pa=function(Le){return Le instanceof di&&(typeof Le.nodeName!="string"||typeof Le.textContent!="string"||typeof Le.removeChild!="function"||!(Le.attributes instanceof Jt)||typeof Le.removeAttribute!="function"||typeof Le.setAttribute!="function"||typeof Le.namespaceURI!="string"||typeof Le.insertBefore!="function"||typeof Le.hasChildNodes!="function")},SA=function(Le){return e(Ut)==="object"?Le instanceof Ut:Le&&e(Le)==="object"&&typeof Le.nodeType=="number"&&typeof Le.nodeName=="string"},zA=function(Le,gt,xt){br[Le]&&Y(br[Le],function(er){er.call(At,gt,xt,CA)})},fs=function(Le){var gt;if(zA("beforeSanitizeElements",Le,null),pa(Le)||oe(/[\u0080-\uFFFF]/,Le.nodeName))return Yi(Le),!0;var xt=Mr(Le.nodeName);if(zA("uponSanitizeElement",Le,{tagName:xt,allowedTags:xn}),Le.hasChildNodes()&&!SA(Le.firstElementChild)&&(!SA(Le.content)||!SA(Le.content.firstElementChild))&&oe(/<[/\w]/g,Le.innerHTML)&&oe(/<[/\w]/g,Le.textContent)||xt==="select"&&oe(/