Files
StudyDiary/.obsidian/plugins/obsidian-markmind/main.js

42 lines
3.8 MiB
JavaScript
Raw Normal View History

2025-10-25 20:35:10 +08:00
"use strict";var t=Object.defineProperty,e=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(e,i,n)=>i in e?t(e,i,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[i]=n,h=(t,e)=>{for(var i in e||(e={}))o.call(e,i)&&a(t,i,e[i]);if(s)for(var i of s(e))r.call(e,i)&&a(t,i,e[i]);return t},l=(t,n)=>e(t,i(n)),d=require("obsidian"),c=require("electron"),u=require("fs"),p=require("crypto"),m=require("path");function f(t){if(t&&t.__esModule)return t;var e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return t&&Object.keys(t).forEach((function(i){if("default"!==i){var n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:function(){return t[i]}})}})),e.default=t,Object.freeze(e)}var g=f(c),v=f(u),A=f(p),y=f(m);var x={"Open as mindmap board":"Open as mindmap","Create new mindmap":"Create new mindmap","New mindmap board":"New mindmap board","Untitled mindmap":"Untitled mindmap","Open as markdown":"Open as markdown","Sub title":"Sub title","Export to opml":"Export to opml","Export to image":"Export to image","Canvas size":"Canvas size","Canvas size desc":"Width and height of the canvas","Canvas background":"Canvas background","Canvas background desc":"Background color of canvas","Max level of node to markdown head":"Max level of node to create a Heading","Max level of node to markdown head desc":"Specify which Node Level creates a seperate Heading instead of a List-Item","Font size":"Font Size","Font size desc":"Specify the Font Size","Mind map layout direct":"Mindmap Layout","Mind map layout direct desc":"Specify the direction the nodes are placed in your Mindmap",Right:"Right",Left:"Left",Centered:"Centered","Open PDF File":"Open PDF file...","Save Image error,Please try again":"Save image error,please try again","Creating Rect Annotate":"Creating rect annotate...","Cancel Create Rect Annotate":"Cancel create rect annotate","File Is Not Exist":"File is not exist","Open File Error":"Open file error","PDF Cannot Open More Instances":"PDF reader cannot open more instances","Create Rect Annotate":"Created rect annotate","Stroke Array":"Stroke Color","Stroke Array Desc":"Node link color base on this value or random color","PDFJs Plugin Path":"PDF reader path","PDFJs Plugin Path Desc":"If you want to use PDF annotation,You need download pdf js plugin and set up this value","Andriod pdfjs Plugin Path":"Andriod pdf reader path","Ios pdfjs Plugin Path":"Ios pdf reader path","Mac pdfjs Plugin Path":"Mac pdfjs Plugin Path","PDF Path":"PDF store path","PDF Annotate Path":"PDF annotate store path","PDF Image Path":"Image store path of PDF rect annotate","Miss PDF Reader Path":"Miss PDF plugin path,you need download Pdf js plugin,and set up value of PDF reader path","Please Use Rich Mode":"Please change yaml mindmap-plugin basic to rich","The probation period has ended":"The probation period has ended or active code has expired",Rect:"Rect",Circle:"Circle",Pointer:"Pointer","Show MindMap":"Show mind map","Hide MindMap":"Hide mind map","Open Protocol":"Support protocol","Open Protocol Desc":"Support protocol like 'obsidian://{protocol name}' for function of jump to pdf annotate",Protocol:"Protocol","Protocol Desc":"Protocol name",Open:"Open",Close:"Close","Open as outline":"Open as outline","Show Annotate":"Show annotate","Annotation save type":"PDF annotation save type","Annotation save type desc":"The type of save pdf annotation,there are two file types:`annos` and `md`,`annos` as default,`annos` is `json` file in fact ","Export annotate pdf":"Export annotate pdf","Export annotate pdf tip":"This is a time-consuming operation. Please wait patiently","Export annotate pdf success":"Export pdf success","Export annotate pdf error":"Export pdf error","Active Code":"Active code","Active Code Desc":"You can active markmind by use this value. Web site:<https://www.markmind.net>","Active error":"Active code error","Active success":"Active success","Annotate PDF":"Annotate PDF","Ann
/*!
* Vue.js v2.7.16
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/var E=Object.freeze({}),C=Array.isArray;function k(t){return null==t}function I(t){return null!=t}function B(t){return!0===t}function D(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function M(t){return"function"==typeof t}function N(t){return null!==t&&"object"==typeof t}var S=Object.prototype.toString;function L(t){return"[object Object]"===S.call(t)}function P(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function F(t){return I(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function T(t){return null==t?"":Array.isArray(t)||L(t)&&t.toString===S?JSON.stringify(t,z,2):String(t)}function z(t,e){return e&&e.__v_isRef?e.value:e}function Q(t){var e=parseFloat(t);return isNaN(e)?t:e}function R(t,e){for(var i=Object.create(null),n=t.split(","),s=0;s<n.length;s++)i[n[s]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}R("slot,component",!0);var O=R("key,ref,slot,slot-scope,is");function U(t,e){var i=t.length;if(i){if(e===t[i-1])return void(t.length=i-1);var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var j=Object.prototype.hasOwnProperty;function H(t,e){return j.call(t,e)}function G(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}var J=/-(\w)/g,Z=G((function(t){return t.replace(J,(function(t,e){return e?e.toUpperCase():""}))})),W=G((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),K=/\B([A-Z])/g,q=G((function(t){return t.replace(K,"-$1").toLowerCase()})),Y=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i};function X(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function V(t,e){for(var i in e)t[i]=e[i];return t}function _(t){for(var e={},i=0;i<t.length;i++)t[i]&&V(e,t[i]);return e}function tt(t,e,i){}var et=function(t,e,i){return!1},it=function(t){return t};function nt(t,e){if(t===e)return!0;var i=N(t),n=N(e);if(!i||!n)return!i&&!n&&String(t)===String(e);try{var s=Array.isArray(t),o=Array.isArray(e);if(s&&o)return t.length===e.length&&t.every((function(t,i){return nt(t,e[i])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(s||o)return!1;var r=Object.keys(t),a=Object.keys(e);return r.length===a.length&&r.every((function(i){return nt(t[i],e[i])}))}catch(h){return!1}}function st(t,e){for(var i=0;i<t.length;i++)if(nt(t[i],e))return i;return-1}function ot(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}function rt(t,e){return t===e?0===t&&1/t!=1/e:t==t||e==e}var at="data-server-rendered",ht=["component","directive","filter"],lt=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],dt={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:et,isReservedAttr:et,isUnknownElement:et,getTagNamespace:tt,parsePlatformTagName:it,mustUseProp:et,async:!0,_lifecycleHooks:lt};function ct(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function ut(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}var pt=new RegExp("[^".concat(/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/.source,".$_\\d]")),mt="__proto__"in{},ft="undefined"!=typeof window,gt=ft&&window.navigator.userAgent.toLowerCase(),vt=gt&&/msie|trident/.test(gt),At=gt&&gt.indexOf("msie 9.0")>0,yt=gt&&gt.indexOf("edge/")>0;gt&&gt.indexOf("android");var xt=gt&&/iphone|ipad|ipod|ios/.test(gt);gt&&/chrome\/\d+/.test(gt),gt&&/phantomjs/.test(gt);var wt,bt=gt&&gt.match(/firefox\/(\d+)/),Et={}.watch,Ct=!1;if(ft)try{var kt={};Object.defineProperty(kt,"passive",{get:function(){Ct=!0}}),window.addEventListener("te
/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/Zd.exports=function t(e,i,n){function s(r,a){if(!i[r]){if(!e[r]){var h="function"==typeof require&&require;if(!a&&h)return h(r,!0);if(o)return o(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var d=i[r]={exports:{}};e[r][0].call(d.exports,(function(t){return s(e[r][1][t]||t)}),d,d.exports,t,e,i,n)}return i[r].exports}for(var o="function"==typeof require&&require,r=0;r<n.length;r++)s(n[r]);return s}({1:[function(t,e,i){var n=t("./utils"),s=t("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(t){for(var e,i,s,r,a,h,l,d=[],c=0,u=t.length,p=u,m="string"!==n.getTypeOf(t);c<t.length;)p=u-c,s=m?(e=t[c++],i=c<u?t[c++]:0,c<u?t[c++]:0):(e=t.charCodeAt(c++),i=c<u?t.charCodeAt(c++):0,c<u?t.charCodeAt(c++):0),r=e>>2,a=(3&e)<<4|i>>4,h=1<p?(15&i)<<2|s>>6:64,l=2<p?63&s:64,d.push(o.charAt(r)+o.charAt(a)+o.charAt(h)+o.charAt(l));return d.join("")},i.decode=function(t){var e,i,n,r,a,h,l=0,d=0,c="data:";if(t.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var u,p=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===o.charAt(64)&&p--,t.charAt(t.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(u=s.uint8array?new Uint8Array(0|p):new Array(0|p);l<t.length;)e=o.indexOf(t.charAt(l++))<<2|(r=o.indexOf(t.charAt(l++)))>>4,i=(15&r)<<4|(a=o.indexOf(t.charAt(l++)))>>2,n=(3&a)<<6|(h=o.indexOf(t.charAt(l++))),u[d++]=e,64!==a&&(u[d++]=i),64!==h&&(u[d++]=n);return u}},{"./support":30,"./utils":32}],2:[function(t,e,i){var n=t("./external"),s=t("./stream/DataWorker"),o=t("./stream/Crc32Probe"),r=t("./stream/DataLengthProbe");function a(t,e,i,n,s){this.compressedSize=t,this.uncompressedSize=e,this.crc32=i,this.compression=n,this.compressedContent=s}a.prototype={getContentWorker:function(){var t=new s(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new s(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(t,e,i){return t.pipe(new o).pipe(new r("uncompressedSize")).pipe(e.compressWorker(i)).pipe(new r("compressedSize")).withStreamInfo("compression",e)},e.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,i){var n=t("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},i.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,i){var n=t("./utils"),s=function(){for(var t,e=[],i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[i]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==n.getTypeOf(t)?function(t,e,i,n){var o=s,r=0+i;t^=-1;for(var a=0;a<r;a++)t=t>>>8^o[255&(t^e[a])];return~t}(0|e,t,t.length):function(t,e,i,n){var o=s,r=0+i;t^=-1;for(var a=0;a<r;a++)t=t>>>8^o[255&(t^e.charCodeAt(a))];return~t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(t,e,i){var n;n="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:n}},{lie:37}],7:[function(t,e,i){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,s=t("pako"),o=t("./utils"),r=t("./stream/GenericWorker"),a=n?"uint8array":"array";function h(t,e){r.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}i
/*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*/_d="undefined"!=typeof window?window:bl,$d=function(t,e){var i=[],n=Object.getPrototypeOf,s=i.slice,o=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},r=i.push,a=i.indexOf,h={},l=h.toString,d=h.hasOwnProperty,c=d.toString,u=c.call(Object),p={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},f=function(t){return null!=t&&t===t.window},g=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function A(t,e,i){var n,s,o=(i=i||g).createElement("script");if(o.text=t,e)for(n in v)(s=e[n]||e.getAttribute&&e.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function y(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[l.call(t)]||"object":typeof t}var x="3.7.1",w=/HTML$/i,b=function(t,e){return new b.fn.init(t,e)};function E(t){var e=!!t&&"length"in t&&t.length,i=y(t);return!m(t)&&!f(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}b.fn=b.prototype={jquery:x,constructor:b,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=b.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return b.each(this,t)},map:function(t){return this.pushStack(b.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(b.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(b.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},b.extend=b.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,h=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||m(r)||(r={}),a===h&&(r=this,a--);a<h;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&r!==n&&(l&&n&&(b.isPlainObject(n)||(s=Array.isArray(n)))?(i=r[e],o=s&&!Array.isArray(i)?[]:s||b.isPlainObject(i)?i:{},s=!1,r[e]=b.extend(l,o,n)):void 0!==n&&(r[e]=n));return r},b.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==l.call(t)||(e=n(t))&&("function"!=typeof(i=d.call(e,"constructor")&&e.constructor)||c.call(i)!==u))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){A(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(E(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,s=t.nodeType;if(!s)for(;e=t[n++];)i+=b.text(e);return 1===s||11===s?t.textContent:9===s?t.documentElement.textContent:3===s||4===s?t.nodeValue:i},makeArray:function(t,e){var i=e||[];return null!=t&&(E(Object(t))?b.merge(i,"string"==typeof t?[t]:t):r.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:a.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!w.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,r=0,a=[];if(E(t))for(n=t.length;r<n;r++)null!=(s=e(t[r],r,i))&&a.push(s);else for(r in t)null!=(s=e(t[r],r,i))&&a.push(s);return o(a)},guid:1,support:p}),"function"==typeof Symbol&&(b.fn[Symbol.iterator]=i[Symbol.iterator]),b.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){h["[object "+e+"]"]=e.toLowerCase()}));var k=i.pop,I=i.sort,B=i.splice,D="[\\x20\\t\\r\\n\\f]",M=new RegExp("^"+D+"+|((?
/*! markmap-common v0.1.5 | MIT License */class o{constructor(){this.listeners=[]}tap(t){return this.listeners.push(t),()=>this.revoke(t)}revoke(t){const e=this.listeners.indexOf(t);e>=0&&this.listeners.splice(e,1)}revokeAll(){this.listeners.splice(0)}call(...t){for(const e of this.listeners)e(...t)}}function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}function a(t){return t.replace(/[&<"]/g,(t=>({"&":"&amp;","<":"&lt;",'"':"&quot;"}[t])))}function h(t,e){return`<${t}${e?Object.entries(e).map((([t,e])=>{if(null!=e&&!1!==e)return t=` ${a(t)}`,!0===e?t:`${t}="${a(e)}"`})).filter(Boolean).join(""):""}>`}function l(t,e,i){return null==e?h(t,i):h(t,i)+(e||"")+`</${t}>`}function d(t,e){return t.map((t=>{if("script"===t.type)return l("script","",t.data);if("iife"===t.type){const{fn:i,getParams:n}=t.data;return l("script",function(t,e){const i=e.map((t=>"function"==typeof t?t.toString():JSON.stringify(null!=t?t:null))).join(",");return`(${t.toString()})(${i})`}(i,(null==n?void 0:n(e))||[]).replace(/<(\/script>)/g,"\\x3c$2"))}return""}))}function c(t,e,i){const n=document.createElement(t);return e&&Object.entries(e).forEach((([t,e])=>{n[t]=e})),i&&Object.entries(i).forEach((([t,e])=>{n.setAttribute(t,e)})),n}Math.random().toString(36).slice(2,8);const u=function(t){const e={};return function(...i){const n=`${i[0]}`;let s=e[n];return s||(s={value:t(...i)},e[n]=s),s.value}}((t=>{document.head.append(c("link",{rel:"preload",as:"script",href:t}))}));function p(t,e){if("script"===t.type)return new Promise(((e,i)=>{var n;document.head.append(c("script",r({},t.data,{onload:e,onerror:i}))),null!=(n=t.data)&&n.src||e()}));if("iife"===t.type){const{fn:i,getParams:n}=t.data;i(...(null==n?void 0:n(e))||[])}}async function m(t,e){const i=t.filter((t=>{var e;return"script"===t.type&&(null==(e=t.data)?void 0:e.src)}));i.length>1&&i.forEach((t=>u(t.data.src))),e=r({getMarkmap:()=>window.markmap},e);for(const n of t)await p(n,e)}const f=["https://cdn.jsdelivr.net/npm/d3@6.6.0","https://cdn.jsdelivr.net/npm/markmap-view@0.2.6"].map((t=>({type:"script",data:{src:t}})));var g={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",b
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var uk=function(t,e){return(uk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)},pk=function(){return(pk=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var s in e=arguments[i])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)};function mk(t,e,i){if(i||2===arguments.length)for(var n,s=0,o=e.length;s<o;s++)!n&&s in e||(n||(n=Array.prototype.slice.call(e,0,s)),n[s]=e[s]);return t.concat(n||Array.prototype.slice.call(e))}var fk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,gk=Object.keys,vk=Array.isArray;function Ak(t,e){return"object"!=typeof e||gk(e).forEach((function(i){t[i]=e[i]})),t}"undefined"==typeof Promise||fk.Promise||(fk.Promise=Promise);var yk=Object.getPrototypeOf,xk={}.hasOwnProperty;function wk(t,e){return xk.call(t,e)}function bk(t,e){"function"==typeof e&&(e=e(yk(t))),("undefined"==typeof Reflect?gk:Reflect.ownKeys)(e).forEach((function(i){Ck(t,i,e[i])}))}var Ek=Object.defineProperty;function Ck(t,e,i,n){Ek(t,e,Ak(i&&wk(i,"get")&&"function"==typeof i.get?{get:i.get,set:i.set,configurable:!0}:{value:i,configurable:!0,writable:!0},n))}function kk(t){return{from:function(e){return t.prototype=Object.create(e.prototype),Ck(t.prototype,"constructor",t),{extend:bk.bind(null,t.prototype)}}}}var Ik=Object.getOwnPropertyDescriptor;function Bk(t,e){var i;return Ik(t,e)||(i=yk(t))&&Bk(i,e)}var Dk=[].slice;function Mk(t,e,i){return Dk.call(t,e,i)}function Nk(t,e){return e(t)}function Sk(t){if(!t)throw new Error("Assertion Failed")}function Lk(t){fk.setImmediate?setImmediate(t):setTimeout(t,0)}function Pk(t,e){return t.reduce((function(t,i,n){var s=e(i,n);return s&&(t[s[0]]=s[1]),t}),{})}function Fk(t,e){if("string"==typeof e&&wk(t,e))return t[e];if(!e)return t;if("string"!=typeof e){for(var i=[],n=0,s=e.length;n<s;++n){var o=Fk(t,e[n]);i.push(o)}return i}var r=e.indexOf(".");if(-1!==r){var a=t[e.substr(0,r)];return null==a?void 0:Fk(a,e.substr(r+1))}}function Tk(t,e,i){if(t&&void 0!==e&&(!("isFrozen"in Object)||!Object.isFrozen(t)))if("string"!=typeof e&&"length"in e){Sk("string"!=typeof i&&"length"in i);for(var n=0,s=e.length;n<s;++n)Tk(t,e[n],i[n])}else{var o=e.indexOf(".");if(-1!==o){var r=e.substr(0,o),a=e.substr(o+1);if(""===a)void 0===i?vk(t)&&!isNaN(parseInt(r))?t.splice(r,1):delete t[r]:t[r]=i;else{var h=t[r];h&&wk(t,r)||(h=t[r]={}),Tk(h,a,i)}}else void 0===i?vk(t)&&!isNaN(parseInt(e))?t.splice(e,1):delete t[e]:t[e]=i}}function zk(t){var e={};for(var i in t)wk(t,i)&&(e[i]=t[i]);return e}var Qk=[].concat;function Rk(t){return Qk.apply([],t)}var Ok="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Rk([8,16,32,64].map((function(t){return["Int","Uint","Float"].map((function(e){return e+t+"Array"}))})))).filter((function(t){return fk[t]})),Uk=new Set(Ok.map((function(t){return fk[t]})));function jk(t){var e={};for(var i in t)if(wk(t,i)){var n=t[i];e[i]=!n||"object"!=typeof n||Uk.has(n.constructor)?n:jk(n)}return e}var Hk=null;function Gk(t){Hk=new WeakMap;var e=Jk(t);return Hk=null,e}function Jk(t){if(!t||"object"!=typeof t)return t;var e=Hk.get(t);if(e)return e;if(vk(t)){e=[],Hk.set(t,e);for(var i=0,n=t.length;i<n;++i)e.push(Jk(t[i]))}else if(Uk.has(t.constructor))e=t;else{var s=yk(t);for(var o in e=s===Object.prototype?{}:Object.create(s),Hk.set(t,e),t)wk(t,o)&&(e[o]=Jk(t[o]))}return e}var Zk={}.toString;function Wk(t){return Zk.call(t).slice(8,-1)}var Kk="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",qk="symbol"==typeof Kk?function(t){var e;return null!=t&&(e=t[Kk])&&e.apply(t)}:function(){return null};function Yk(t,e){var i=t.indexOf(e);return i>=0&&t.splice(i,1),i>=0}var Xk={};function Vk(t){var e,
/* nosourcemap */