@chatsystem/client 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +589 -590
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('._dot_spinner_qw18l_1{--uib-size: 2.8rem;--uib-speed: .9s;--uib-color: #183153;position:relative;display:flex;align-items:center;justify-content:flex-start;width:var(--uib-size);height:var(--uib-size)}._dot_spinner__dot_qw18l_13{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%}._dot_spinner__dot_qw18l_13:before{width:20%;height:20%;background-color:var(--uib-color);border-radius:50%;box-shadow:0 0 20px #121f354d;transform:scale(0);opacity:.5;animation:_pulse0112_qw18l_1 calc(var(--uib-speed) * 1.111) ease-in-out infinite;content:""}._dot_spinner__dot_qw18l_13:nth-child(2){transform:rotate(45deg)}._dot_spinner__dot_qw18l_13:nth-child(2):before{animation-delay:calc(var(--uib-speed) * -.875)}._dot_spinner__dot_qw18l_13:nth-child(3){transform:rotate(90deg)}._dot_spinner__dot_qw18l_13:nth-child(3):before{animation-delay:calc(var(--uib-speed) * -.75)}._dot_spinner__dot_qw18l_13:nth-child(4){transform:rotate(135deg)}._dot_spinner__dot_qw18l_13:nth-child(4):before{animation-delay:calc(var(--uib-speed) * -.625)}._dot_spinner__dot_qw18l_13:nth-child(5){transform:rotate(180deg)}._dot_spinner__dot_qw18l_13:nth-child(5):before{animation-delay:calc(var(--uib-speed) * -.5)}._dot_spinner__dot_qw18l_13:nth-child(6){transform:rotate(225deg)}._dot_spinner__dot_qw18l_13:nth-child(6):before{animation-delay:calc(var(--uib-speed) * -.375)}._dot_spinner__dot_qw18l_13:nth-child(7){transform:rotate(270deg)}._dot_spinner__dot_qw18l_13:nth-child(7):before{animation-delay:calc(var(--uib-speed) * -.25)}._dot_spinner__dot_qw18l_13:nth-child(8){transform:rotate(315deg)}._dot_spinner__dot_qw18l_13:nth-child(8):before{animation-delay:calc(var(--uib-speed) * -.125)}@keyframes _pulse0112_qw18l_1{0%,to{transform:scale(0);opacity:.5}50%{transform:scale(1);opacity:1}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-1\\.5{bottom:.375rem}.bottom-10{bottom:2.5rem}.left-0{left:0}.right-0{right:0}.right-10{right:2.5rem}.right-2{right:.5rem}.top-0{top:0}.z-\\[999999999\\]{z-index:999999999}.z-\\[99999999\\]{z-index:99999999}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.mr-3{margin-right:.75rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-12{height:3rem}.h-6{height:1.5rem}.h-8{height:2rem}.max-h-12{max-height:3rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.max-w-12{max-width:3rem}.max-w-\\[90\\%\\]{max-width:90%}.grow{flex-grow:1}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.resize{resize:both}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-scroll{overflow:scroll}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border,.border-\\[1px\\]{border-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-slate-400{--tw-border-opacity: 1;border-color:rgb(148 163 184 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.\\!bg-blue-700{--tw-bg-opacity: 1 !important;background-color:rgb(29 78 216 / var(--tw-bg-opacity))!important}.\\!bg-gray-400{--tw-bg-opacity: 1 !important;background-color:rgb(156 163 175 / var(--tw-bg-opacity))!important}.\\!bg-green-700{--tw-bg-opacity: 1 !important;background-color:rgb(21 128 61 / var(--tw-bg-opacity))!important}.\\!bg-red-700{--tw-bg-opacity: 1 !important;background-color:rgb(185 28 28 / var(--tw-bg-opacity))!important}.\\!bg-white{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity))!important}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity))}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity))}.bg-violet-700{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity))}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.pb-2{padding-bottom:.5rem}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow-\\[0_0px_4px_5px_rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-shadow: 0 0px 4px 5px rgba(0,0,0,.2);--tw-shadow-colored: 0 0px 4px 5px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\\:scale-110:hover{--tw-scale-x: 1.1;--tw-scale-y: 1.1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:\\!bg-blue-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(30 64 175 / var(--tw-bg-opacity))!important}.hover\\:\\!bg-blue-900:hover{--tw-bg-opacity: 1 !important;background-color:rgb(30 58 138 / var(--tw-bg-opacity))!important}.hover\\:\\!bg-green-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(22 101 52 / var(--tw-bg-opacity))!important}.hover\\:\\!bg-red-800:hover{--tw-bg-opacity: 1 !important;background-color:rgb(153 27 27 / var(--tw-bg-opacity))!important}.hover\\:\\!bg-slate-500:hover{--tw-bg-opacity: 1 !important;background-color:rgb(100 116 139 / var(--tw-bg-opacity))!important}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity))}.focus\\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(134 239 172 / var(--tw-ring-opacity))}.focus\\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(252 165 165 / var(--tw-ring-opacity))}.focus\\:ring-slate-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(203 213 225 / var(--tw-ring-opacity))}.enabled\\:bg-black:enabled{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.enabled\\:bg-white:enabled{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.disabled\\:opacity-10:disabled{opacity:.1}:is(.dark .dark\\:border-white){--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}:is(.dark .dark\\:bg-white){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}:is(.dark .dark\\:text-black){--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}:is(.dark .dark\\:hover\\:bg-white:hover){--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}:is(.dark .dark\\:focus\\:ring-blue-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 58 138 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-green-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(20 83 45 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(127 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\\:focus\\:ring-slate-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(15 23 42 / var(--tw-ring-opacity))}@media (min-width: 768px){.md\\:bottom-2{bottom:.5rem}.md\\:bottom-\\[110px\\]{bottom:110px}.md\\:left-auto{left:auto}.md\\:right-3{right:.75rem}.md\\:right-\\[40px\\]{right:40px}.md\\:top-auto{top:auto}.md\\:h-\\[600px\\]{height:600px}.md\\:w-\\[400px\\]{width:400px}}.menuTransition-enter{opacity:0;transform:scale(.9) translate(200px)}.menuTransition-enter-active{opacity:1;transform:translate(0);transition:opacity .3s,transform .3s}.menuTransition-exit{opacity:1}.menuTransition-exit-active{opacity:0;transform:scale(.5) translate(400px);transition:opacity .3s,transform .3s}p,li,textarea{font-size:14px}textarea::placeholder{font-size:14px}.widget{overflow-x:hidden}.widget ol>li{margin-top:10px;background-color:#0000001a;padding:.5rem 1rem 1rem;border-radius:.5rem}.widget ol>li>p:first-child,.widget ol>li>li:first-child,.widget h3,.widget h2{font-size:1.5rem;margin:1rem 0}.widget a{display:block;cursor:pointer;color:#00f;font-size:1.1rem;margin:1rem 0}.widget a:hover{text-decoration:underline}.widget img{display:block;margin:2rem 0;max-width:200px}.widget hr{margin:1.5rem 0}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
2
|
var uc = Object.defineProperty;
|
|
3
3
|
var lc = (e, t, n) => t in e ? uc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var
|
|
5
|
-
import * as
|
|
6
|
-
import Le, { useState as
|
|
4
|
+
var gt = (e, t, n) => lc(e, typeof t != "symbol" ? t + "" : t, n);
|
|
5
|
+
import * as He from "react";
|
|
6
|
+
import Le, { useState as Ue, useRef as nt, useEffect as ht, useCallback as Qt, useContext as Kt, createContext as cc, useMemo as Zr, forwardRef as fc } from "react";
|
|
7
7
|
import Dn from "react-dom";
|
|
8
8
|
var Ui = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9
9
|
function Po(e) {
|
|
@@ -139,7 +139,7 @@ function hc() {
|
|
|
139
139
|
function w() {
|
|
140
140
|
}
|
|
141
141
|
w.__reactDisabledLog = !0;
|
|
142
|
-
function
|
|
142
|
+
function J() {
|
|
143
143
|
{
|
|
144
144
|
if (j === 0) {
|
|
145
145
|
K = console.log, te = console.info, he = console.warn, ye = console.error, I = console.group, U = console.groupCollapsed, Z = console.groupEnd;
|
|
@@ -162,7 +162,7 @@ function hc() {
|
|
|
162
162
|
j++;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function ie() {
|
|
166
166
|
{
|
|
167
167
|
if (j--, j === 0) {
|
|
168
168
|
var D = {
|
|
@@ -197,39 +197,39 @@ function hc() {
|
|
|
197
197
|
j < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
200
|
+
var ee = m.ReactCurrentDispatcher, ae;
|
|
201
|
+
function ue(D, Y, Q) {
|
|
202
202
|
{
|
|
203
|
-
if (
|
|
203
|
+
if (ae === void 0)
|
|
204
204
|
try {
|
|
205
205
|
throw Error();
|
|
206
206
|
} catch (Ae) {
|
|
207
207
|
var ce = Ae.stack.trim().match(/\n( *(at )?)/);
|
|
208
|
-
|
|
208
|
+
ae = ce && ce[1] || "";
|
|
209
209
|
}
|
|
210
210
|
return `
|
|
211
|
-
` +
|
|
211
|
+
` + ae + D;
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
var
|
|
214
|
+
var se = !1, ne;
|
|
215
215
|
{
|
|
216
216
|
var we = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
-
|
|
217
|
+
ne = new we();
|
|
218
218
|
}
|
|
219
219
|
function X(D, Y) {
|
|
220
|
-
if (!D ||
|
|
220
|
+
if (!D || se)
|
|
221
221
|
return "";
|
|
222
222
|
{
|
|
223
|
-
var Q =
|
|
223
|
+
var Q = ne.get(D);
|
|
224
224
|
if (Q !== void 0)
|
|
225
225
|
return Q;
|
|
226
226
|
}
|
|
227
227
|
var ce;
|
|
228
|
-
|
|
228
|
+
se = !0;
|
|
229
229
|
var Ae = Error.prepareStackTrace;
|
|
230
230
|
Error.prepareStackTrace = void 0;
|
|
231
231
|
var Ce;
|
|
232
|
-
Ce =
|
|
232
|
+
Ce = ee.current, ee.current = null, J();
|
|
233
233
|
try {
|
|
234
234
|
if (Y) {
|
|
235
235
|
var Ee = function() {
|
|
@@ -242,29 +242,29 @@ function hc() {
|
|
|
242
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
243
243
|
try {
|
|
244
244
|
Reflect.construct(Ee, []);
|
|
245
|
-
} catch (
|
|
246
|
-
ce =
|
|
245
|
+
} catch (It) {
|
|
246
|
+
ce = It;
|
|
247
247
|
}
|
|
248
248
|
Reflect.construct(D, [], Ee);
|
|
249
249
|
} else {
|
|
250
250
|
try {
|
|
251
251
|
Ee.call();
|
|
252
|
-
} catch (
|
|
253
|
-
ce =
|
|
252
|
+
} catch (It) {
|
|
253
|
+
ce = It;
|
|
254
254
|
}
|
|
255
255
|
D.call(Ee.prototype);
|
|
256
256
|
}
|
|
257
257
|
} else {
|
|
258
258
|
try {
|
|
259
259
|
throw Error();
|
|
260
|
-
} catch (
|
|
261
|
-
ce =
|
|
260
|
+
} catch (It) {
|
|
261
|
+
ce = It;
|
|
262
262
|
}
|
|
263
263
|
D();
|
|
264
264
|
}
|
|
265
|
-
} catch (
|
|
266
|
-
if (
|
|
267
|
-
for (var ge =
|
|
265
|
+
} catch (It) {
|
|
266
|
+
if (It && ce && typeof It.stack == "string") {
|
|
267
|
+
for (var ge = It.stack.split(`
|
|
268
268
|
`), Ge = ce.stack.split(`
|
|
269
269
|
`), Pe = ge.length - 1, ke = Ge.length - 1; Pe >= 1 && ke >= 0 && ge[Pe] !== Ge[ke]; )
|
|
270
270
|
ke--;
|
|
@@ -275,65 +275,65 @@ function hc() {
|
|
|
275
275
|
if (Pe--, ke--, ke < 0 || ge[Pe] !== Ge[ke]) {
|
|
276
276
|
var rt = `
|
|
277
277
|
` + ge[Pe].replace(" at new ", " at ");
|
|
278
|
-
return D.displayName && rt.includes("<anonymous>") && (rt = rt.replace("<anonymous>", D.displayName)), typeof D == "function" &&
|
|
278
|
+
return D.displayName && rt.includes("<anonymous>") && (rt = rt.replace("<anonymous>", D.displayName)), typeof D == "function" && ne.set(D, rt), rt;
|
|
279
279
|
}
|
|
280
280
|
while (Pe >= 1 && ke >= 0);
|
|
281
281
|
break;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
} finally {
|
|
285
|
-
|
|
285
|
+
se = !1, ee.current = Ce, ie(), Error.prepareStackTrace = Ae;
|
|
286
286
|
}
|
|
287
|
-
var sn = D ? D.displayName || D.name : "", Hi = sn ?
|
|
288
|
-
return typeof D == "function" &&
|
|
287
|
+
var sn = D ? D.displayName || D.name : "", Hi = sn ? ue(sn) : "";
|
|
288
|
+
return typeof D == "function" && ne.set(D, Hi), Hi;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function $e(D, Y, Q) {
|
|
291
291
|
return X(D, !1);
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function We(D) {
|
|
294
294
|
var Y = D.prototype;
|
|
295
295
|
return !!(Y && Y.isReactComponent);
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Je(D, Y, Q) {
|
|
298
298
|
if (D == null)
|
|
299
299
|
return "";
|
|
300
300
|
if (typeof D == "function")
|
|
301
|
-
return X(D,
|
|
301
|
+
return X(D, We(D));
|
|
302
302
|
if (typeof D == "string")
|
|
303
|
-
return
|
|
303
|
+
return ue(D);
|
|
304
304
|
switch (D) {
|
|
305
305
|
case g:
|
|
306
|
-
return
|
|
306
|
+
return ue("Suspense");
|
|
307
307
|
case p:
|
|
308
|
-
return
|
|
308
|
+
return ue("SuspenseList");
|
|
309
309
|
}
|
|
310
310
|
if (typeof D == "object")
|
|
311
311
|
switch (D.$$typeof) {
|
|
312
312
|
case h:
|
|
313
|
-
return
|
|
313
|
+
return $e(D.render);
|
|
314
314
|
case u:
|
|
315
|
-
return
|
|
315
|
+
return Je(D.type, Y, Q);
|
|
316
316
|
case c: {
|
|
317
317
|
var ce = D, Ae = ce._payload, Ce = ce._init;
|
|
318
318
|
try {
|
|
319
|
-
return
|
|
319
|
+
return Je(Ce(Ae), Y, Q);
|
|
320
320
|
} catch {
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
return "";
|
|
325
325
|
}
|
|
326
|
-
var
|
|
326
|
+
var pt = Object.prototype.hasOwnProperty, ar = {}, Sn = m.ReactDebugCurrentFrame;
|
|
327
327
|
function Ut(D) {
|
|
328
328
|
if (D) {
|
|
329
|
-
var Y = D._owner, Q =
|
|
329
|
+
var Y = D._owner, Q = Je(D.type, D._source, Y ? Y.type : null);
|
|
330
330
|
Sn.setExtraStackFrame(Q);
|
|
331
331
|
} else
|
|
332
332
|
Sn.setExtraStackFrame(null);
|
|
333
333
|
}
|
|
334
334
|
function Yr(D, Y, Q, ce, Ae) {
|
|
335
335
|
{
|
|
336
|
-
var Ce = Function.call.bind(
|
|
336
|
+
var Ce = Function.call.bind(pt);
|
|
337
337
|
for (var Ee in D)
|
|
338
338
|
if (Ce(D, Ee)) {
|
|
339
339
|
var ge = void 0;
|
|
@@ -379,10 +379,10 @@ function hc() {
|
|
|
379
379
|
ref: !0,
|
|
380
380
|
__self: !0,
|
|
381
381
|
__source: !0
|
|
382
|
-
}, _e,
|
|
382
|
+
}, _e, Xe, ct;
|
|
383
383
|
ct = {};
|
|
384
384
|
function ft(D) {
|
|
385
|
-
if (
|
|
385
|
+
if (pt.call(D, "ref")) {
|
|
386
386
|
var Y = Object.getOwnPropertyDescriptor(D, "ref").get;
|
|
387
387
|
if (Y && Y.isReactWarning)
|
|
388
388
|
return !1;
|
|
@@ -390,7 +390,7 @@ function hc() {
|
|
|
390
390
|
return D.ref !== void 0;
|
|
391
391
|
}
|
|
392
392
|
function $t(D) {
|
|
393
|
-
if (
|
|
393
|
+
if (pt.call(D, "key")) {
|
|
394
394
|
var Y = Object.getOwnPropertyDescriptor(D, "key").get;
|
|
395
395
|
if (Y && Y.isReactWarning)
|
|
396
396
|
return !1;
|
|
@@ -414,10 +414,10 @@ function hc() {
|
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function wt(D, Y) {
|
|
418
418
|
{
|
|
419
419
|
var Q = function() {
|
|
420
|
-
|
|
420
|
+
Xe || (Xe = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Y));
|
|
421
421
|
};
|
|
422
422
|
Q.isReactWarning = !0, Object.defineProperty(D, "ref", {
|
|
423
423
|
get: Q,
|
|
@@ -459,7 +459,7 @@ function hc() {
|
|
|
459
459
|
var Ce, Ee = {}, ge = null, Ge = null;
|
|
460
460
|
Q !== void 0 && (q(Q), ge = "" + Q), $t(Y) && (q(Y.key), ge = "" + Y.key), ft(Y) && (Ge = Y.ref, jt(Y, Ae));
|
|
461
461
|
for (Ce in Y)
|
|
462
|
-
|
|
462
|
+
pt.call(Y, Ce) && !pe.hasOwnProperty(Ce) && (Ee[Ce] = Y[Ce]);
|
|
463
463
|
if (D && D.defaultProps) {
|
|
464
464
|
var Pe = D.defaultProps;
|
|
465
465
|
for (Ce in Pe)
|
|
@@ -467,7 +467,7 @@ function hc() {
|
|
|
467
467
|
}
|
|
468
468
|
if (ge || Ge) {
|
|
469
469
|
var ke = typeof D == "function" ? D.displayName || D.name || "Unknown" : D;
|
|
470
|
-
ge && Ye(Ee, ke), Ge &&
|
|
470
|
+
ge && Ye(Ee, ke), Ge && wt(Ee, ke);
|
|
471
471
|
}
|
|
472
472
|
return dt(D, ge, Ge, Ae, ce, oe.current, Ee);
|
|
473
473
|
}
|
|
@@ -475,7 +475,7 @@ function hc() {
|
|
|
475
475
|
var Xr = m.ReactCurrentOwner, Pi = m.ReactDebugCurrentFrame;
|
|
476
476
|
function an(D) {
|
|
477
477
|
if (D) {
|
|
478
|
-
var Y = D._owner, Q =
|
|
478
|
+
var Y = D._owner, Q = Je(D.type, D._source, Y ? Y.type : null);
|
|
479
479
|
Pi.setExtraStackFrame(Q);
|
|
480
480
|
} else
|
|
481
481
|
Pi.setExtraStackFrame(null);
|
|
@@ -763,33 +763,33 @@ function pc() {
|
|
|
763
763
|
}
|
|
764
764
|
function A(X) {
|
|
765
765
|
if (typeof X == "object" && X !== null) {
|
|
766
|
-
var
|
|
767
|
-
switch (
|
|
766
|
+
var $e = X.$$typeof;
|
|
767
|
+
switch ($e) {
|
|
768
768
|
case t:
|
|
769
|
-
var
|
|
770
|
-
switch (
|
|
769
|
+
var We = X.type;
|
|
770
|
+
switch (We) {
|
|
771
771
|
case h:
|
|
772
772
|
case g:
|
|
773
773
|
case r:
|
|
774
774
|
case s:
|
|
775
775
|
case a:
|
|
776
776
|
case u:
|
|
777
|
-
return
|
|
777
|
+
return We;
|
|
778
778
|
default:
|
|
779
|
-
var
|
|
780
|
-
switch (
|
|
779
|
+
var Je = We && We.$$typeof;
|
|
780
|
+
switch (Je) {
|
|
781
781
|
case i:
|
|
782
782
|
case p:
|
|
783
783
|
case d:
|
|
784
784
|
case l:
|
|
785
785
|
case o:
|
|
786
|
-
return
|
|
786
|
+
return Je;
|
|
787
787
|
default:
|
|
788
|
-
return
|
|
788
|
+
return $e;
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
791
|
case n:
|
|
792
|
-
return
|
|
792
|
+
return $e;
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
}
|
|
@@ -809,31 +809,31 @@ function pc() {
|
|
|
809
809
|
function w(X) {
|
|
810
810
|
return typeof X == "object" && X !== null && X.$$typeof === t;
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function J(X) {
|
|
813
813
|
return A(X) === p;
|
|
814
814
|
}
|
|
815
|
-
function
|
|
815
|
+
function ie(X) {
|
|
816
816
|
return A(X) === r;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function ee(X) {
|
|
819
819
|
return A(X) === d;
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function ae(X) {
|
|
822
822
|
return A(X) === l;
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function ue(X) {
|
|
825
825
|
return A(X) === n;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function se(X) {
|
|
828
828
|
return A(X) === s;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function ne(X) {
|
|
831
831
|
return A(X) === a;
|
|
832
832
|
}
|
|
833
833
|
function we(X) {
|
|
834
834
|
return A(X) === u;
|
|
835
835
|
}
|
|
836
|
-
Se.AsyncMode = v, Se.ConcurrentMode = S, Se.ContextConsumer = N, Se.ContextProvider = _, Se.Element = x, Se.ForwardRef = C, Se.Fragment = L, Se.Lazy = M, Se.Memo = B, Se.Portal = $, Se.Profiler = j, Se.StrictMode = K, Se.Suspense = te, Se.isAsyncMode = ye, Se.isConcurrentMode = I, Se.isContextConsumer = U, Se.isContextProvider = Z, Se.isElement = w, Se.isForwardRef =
|
|
836
|
+
Se.AsyncMode = v, Se.ConcurrentMode = S, Se.ContextConsumer = N, Se.ContextProvider = _, Se.Element = x, Se.ForwardRef = C, Se.Fragment = L, Se.Lazy = M, Se.Memo = B, Se.Portal = $, Se.Profiler = j, Se.StrictMode = K, Se.Suspense = te, Se.isAsyncMode = ye, Se.isConcurrentMode = I, Se.isContextConsumer = U, Se.isContextProvider = Z, Se.isElement = w, Se.isForwardRef = J, Se.isFragment = ie, Se.isLazy = ee, Se.isMemo = ae, Se.isPortal = ue, Se.isProfiler = se, Se.isStrictMode = ne, Se.isSuspense = we, Se.isValidElementType = y, Se.typeOf = A;
|
|
837
837
|
}()), Se;
|
|
838
838
|
}
|
|
839
839
|
process.env.NODE_ENV === "production" ? Ra.exports = mc() : Ra.exports = pc();
|
|
@@ -1004,33 +1004,33 @@ function Ec() {
|
|
|
1004
1004
|
function T(I) {
|
|
1005
1005
|
if (process.env.NODE_ENV !== "production")
|
|
1006
1006
|
var U = {}, Z = 0;
|
|
1007
|
-
function w(
|
|
1008
|
-
if (
|
|
1007
|
+
function w(ie, ee, ae, ue, se, ne, we) {
|
|
1008
|
+
if (ue = ue || c, ne = ne || ae, we !== n) {
|
|
1009
1009
|
if (h) {
|
|
1010
1010
|
var X = new Error(
|
|
1011
1011
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1012
1012
|
);
|
|
1013
1013
|
throw X.name = "Invariant Violation", X;
|
|
1014
1014
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
1015
|
-
var
|
|
1016
|
-
!U[
|
|
1015
|
+
var $e = ue + ":" + ae;
|
|
1016
|
+
!U[$e] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
1017
1017
|
Z < 3 && (s(
|
|
1018
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
1019
|
-
), U[
|
|
1018
|
+
"You are manually calling a React.PropTypes validation function for the `" + ne + "` prop on `" + ue + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
1019
|
+
), U[$e] = !0, Z++);
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
return
|
|
1022
|
+
return ee[ae] == null ? ie ? ee[ae] === null ? new f("The " + se + " `" + ne + "` is marked as required " + ("in `" + ue + "`, but its value is `null`.")) : new f("The " + se + " `" + ne + "` is marked as required in " + ("`" + ue + "`, but its value is `undefined`.")) : null : I(ee, ae, ue, se, ne);
|
|
1023
1023
|
}
|
|
1024
|
-
var
|
|
1025
|
-
return
|
|
1024
|
+
var J = w.bind(null, !1);
|
|
1025
|
+
return J.isRequired = w.bind(null, !0), J;
|
|
1026
1026
|
}
|
|
1027
1027
|
function m(I) {
|
|
1028
|
-
function U(Z, w,
|
|
1029
|
-
var
|
|
1030
|
-
if (
|
|
1031
|
-
var
|
|
1028
|
+
function U(Z, w, J, ie, ee, ae) {
|
|
1029
|
+
var ue = Z[w], se = K(ue);
|
|
1030
|
+
if (se !== I) {
|
|
1031
|
+
var ne = te(ue);
|
|
1032
1032
|
return new f(
|
|
1033
|
-
"Invalid " +
|
|
1033
|
+
"Invalid " + ie + " `" + ee + "` of type " + ("`" + ne + "` supplied to `" + J + "`, expected ") + ("`" + I + "`."),
|
|
1034
1034
|
{ expectedType: I }
|
|
1035
1035
|
);
|
|
1036
1036
|
}
|
|
@@ -1042,50 +1042,50 @@ function Ec() {
|
|
|
1042
1042
|
return T(o);
|
|
1043
1043
|
}
|
|
1044
1044
|
function y(I) {
|
|
1045
|
-
function U(Z, w,
|
|
1045
|
+
function U(Z, w, J, ie, ee) {
|
|
1046
1046
|
if (typeof I != "function")
|
|
1047
|
-
return new f("Property `" +
|
|
1048
|
-
var
|
|
1049
|
-
if (!Array.isArray(
|
|
1050
|
-
var
|
|
1051
|
-
return new f("Invalid " +
|
|
1047
|
+
return new f("Property `" + ee + "` of component `" + J + "` has invalid PropType notation inside arrayOf.");
|
|
1048
|
+
var ae = Z[w];
|
|
1049
|
+
if (!Array.isArray(ae)) {
|
|
1050
|
+
var ue = K(ae);
|
|
1051
|
+
return new f("Invalid " + ie + " `" + ee + "` of type " + ("`" + ue + "` supplied to `" + J + "`, expected an array."));
|
|
1052
1052
|
}
|
|
1053
|
-
for (var
|
|
1054
|
-
var
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1053
|
+
for (var se = 0; se < ae.length; se++) {
|
|
1054
|
+
var ne = I(ae, se, J, ie, ee + "[" + se + "]", n);
|
|
1055
|
+
if (ne instanceof Error)
|
|
1056
|
+
return ne;
|
|
1057
1057
|
}
|
|
1058
1058
|
return null;
|
|
1059
1059
|
}
|
|
1060
1060
|
return T(U);
|
|
1061
1061
|
}
|
|
1062
1062
|
function A() {
|
|
1063
|
-
function I(U, Z, w,
|
|
1064
|
-
var
|
|
1065
|
-
if (!i(
|
|
1066
|
-
var
|
|
1067
|
-
return new f("Invalid " +
|
|
1063
|
+
function I(U, Z, w, J, ie) {
|
|
1064
|
+
var ee = U[Z];
|
|
1065
|
+
if (!i(ee)) {
|
|
1066
|
+
var ae = K(ee);
|
|
1067
|
+
return new f("Invalid " + J + " `" + ie + "` of type " + ("`" + ae + "` supplied to `" + w + "`, expected a single ReactElement."));
|
|
1068
1068
|
}
|
|
1069
1069
|
return null;
|
|
1070
1070
|
}
|
|
1071
1071
|
return T(I);
|
|
1072
1072
|
}
|
|
1073
1073
|
function v() {
|
|
1074
|
-
function I(U, Z, w,
|
|
1075
|
-
var
|
|
1076
|
-
if (!e.isValidElementType(
|
|
1077
|
-
var
|
|
1078
|
-
return new f("Invalid " +
|
|
1074
|
+
function I(U, Z, w, J, ie) {
|
|
1075
|
+
var ee = U[Z];
|
|
1076
|
+
if (!e.isValidElementType(ee)) {
|
|
1077
|
+
var ae = K(ee);
|
|
1078
|
+
return new f("Invalid " + J + " `" + ie + "` of type " + ("`" + ae + "` supplied to `" + w + "`, expected a single ReactElement type."));
|
|
1079
1079
|
}
|
|
1080
1080
|
return null;
|
|
1081
1081
|
}
|
|
1082
1082
|
return T(I);
|
|
1083
1083
|
}
|
|
1084
1084
|
function S(I) {
|
|
1085
|
-
function U(Z, w,
|
|
1085
|
+
function U(Z, w, J, ie, ee) {
|
|
1086
1086
|
if (!(Z[w] instanceof I)) {
|
|
1087
|
-
var
|
|
1088
|
-
return new f("Invalid " +
|
|
1087
|
+
var ae = I.name || c, ue = ye(Z[w]);
|
|
1088
|
+
return new f("Invalid " + ie + " `" + ee + "` of type " + ("`" + ue + "` supplied to `" + J + "`, expected ") + ("instance of `" + ae + "`."));
|
|
1089
1089
|
}
|
|
1090
1090
|
return null;
|
|
1091
1091
|
}
|
|
@@ -1096,30 +1096,30 @@ function Ec() {
|
|
|
1096
1096
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
1097
1097
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1098
1098
|
) : s("Invalid argument supplied to oneOf, expected an array.")), o;
|
|
1099
|
-
function U(Z, w,
|
|
1100
|
-
for (var
|
|
1101
|
-
if (d(
|
|
1099
|
+
function U(Z, w, J, ie, ee) {
|
|
1100
|
+
for (var ae = Z[w], ue = 0; ue < I.length; ue++)
|
|
1101
|
+
if (d(ae, I[ue]))
|
|
1102
1102
|
return null;
|
|
1103
|
-
var
|
|
1104
|
-
var
|
|
1105
|
-
return
|
|
1103
|
+
var se = JSON.stringify(I, function(we, X) {
|
|
1104
|
+
var $e = te(X);
|
|
1105
|
+
return $e === "symbol" ? String(X) : X;
|
|
1106
1106
|
});
|
|
1107
|
-
return new f("Invalid " +
|
|
1107
|
+
return new f("Invalid " + ie + " `" + ee + "` of value `" + String(ae) + "` " + ("supplied to `" + J + "`, expected one of " + se + "."));
|
|
1108
1108
|
}
|
|
1109
1109
|
return T(U);
|
|
1110
1110
|
}
|
|
1111
1111
|
function _(I) {
|
|
1112
|
-
function U(Z, w,
|
|
1112
|
+
function U(Z, w, J, ie, ee) {
|
|
1113
1113
|
if (typeof I != "function")
|
|
1114
|
-
return new f("Property `" +
|
|
1115
|
-
var
|
|
1116
|
-
if (
|
|
1117
|
-
return new f("Invalid " +
|
|
1118
|
-
for (var
|
|
1119
|
-
if (r(
|
|
1120
|
-
var
|
|
1121
|
-
if (
|
|
1122
|
-
return
|
|
1114
|
+
return new f("Property `" + ee + "` of component `" + J + "` has invalid PropType notation inside objectOf.");
|
|
1115
|
+
var ae = Z[w], ue = K(ae);
|
|
1116
|
+
if (ue !== "object")
|
|
1117
|
+
return new f("Invalid " + ie + " `" + ee + "` of type " + ("`" + ue + "` supplied to `" + J + "`, expected an object."));
|
|
1118
|
+
for (var se in ae)
|
|
1119
|
+
if (r(ae, se)) {
|
|
1120
|
+
var ne = I(ae, se, J, ie, ee + "." + se, n);
|
|
1121
|
+
if (ne instanceof Error)
|
|
1122
|
+
return ne;
|
|
1123
1123
|
}
|
|
1124
1124
|
return null;
|
|
1125
1125
|
}
|
|
@@ -1135,39 +1135,39 @@ function Ec() {
|
|
|
1135
1135
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + he(Z) + " at index " + U + "."
|
|
1136
1136
|
), o;
|
|
1137
1137
|
}
|
|
1138
|
-
function w(
|
|
1139
|
-
for (var
|
|
1140
|
-
var we = I[
|
|
1138
|
+
function w(J, ie, ee, ae, ue) {
|
|
1139
|
+
for (var se = [], ne = 0; ne < I.length; ne++) {
|
|
1140
|
+
var we = I[ne], X = we(J, ie, ee, ae, ue, n);
|
|
1141
1141
|
if (X == null)
|
|
1142
1142
|
return null;
|
|
1143
|
-
X.data && r(X.data, "expectedType") &&
|
|
1143
|
+
X.data && r(X.data, "expectedType") && se.push(X.data.expectedType);
|
|
1144
1144
|
}
|
|
1145
|
-
var
|
|
1146
|
-
return new f("Invalid " +
|
|
1145
|
+
var $e = se.length > 0 ? ", expected one of type [" + se.join(", ") + "]" : "";
|
|
1146
|
+
return new f("Invalid " + ae + " `" + ue + "` supplied to " + ("`" + ee + "`" + $e + "."));
|
|
1147
1147
|
}
|
|
1148
1148
|
return T(w);
|
|
1149
1149
|
}
|
|
1150
1150
|
function C() {
|
|
1151
|
-
function I(U, Z, w,
|
|
1152
|
-
return $(U[Z]) ? null : new f("Invalid " +
|
|
1151
|
+
function I(U, Z, w, J, ie) {
|
|
1152
|
+
return $(U[Z]) ? null : new f("Invalid " + J + " `" + ie + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
|
|
1153
1153
|
}
|
|
1154
1154
|
return T(I);
|
|
1155
1155
|
}
|
|
1156
|
-
function L(I, U, Z, w,
|
|
1156
|
+
function L(I, U, Z, w, J) {
|
|
1157
1157
|
return new f(
|
|
1158
|
-
(I || "React class") + ": " + U + " type `" + Z + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
1158
|
+
(I || "React class") + ": " + U + " type `" + Z + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + J + "`."
|
|
1159
1159
|
);
|
|
1160
1160
|
}
|
|
1161
1161
|
function M(I) {
|
|
1162
|
-
function U(Z, w,
|
|
1163
|
-
var
|
|
1164
|
-
if (
|
|
1165
|
-
return new f("Invalid " +
|
|
1166
|
-
for (var
|
|
1167
|
-
var
|
|
1168
|
-
if (typeof
|
|
1169
|
-
return L(
|
|
1170
|
-
var we =
|
|
1162
|
+
function U(Z, w, J, ie, ee) {
|
|
1163
|
+
var ae = Z[w], ue = K(ae);
|
|
1164
|
+
if (ue !== "object")
|
|
1165
|
+
return new f("Invalid " + ie + " `" + ee + "` of type `" + ue + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
1166
|
+
for (var se in I) {
|
|
1167
|
+
var ne = I[se];
|
|
1168
|
+
if (typeof ne != "function")
|
|
1169
|
+
return L(J, ie, ee, se, te(ne));
|
|
1170
|
+
var we = ne(ae, se, J, ie, ee + "." + se, n);
|
|
1171
1171
|
if (we)
|
|
1172
1172
|
return we;
|
|
1173
1173
|
}
|
|
@@ -1176,21 +1176,21 @@ function Ec() {
|
|
|
1176
1176
|
return T(U);
|
|
1177
1177
|
}
|
|
1178
1178
|
function B(I) {
|
|
1179
|
-
function U(Z, w,
|
|
1180
|
-
var
|
|
1181
|
-
if (
|
|
1182
|
-
return new f("Invalid " +
|
|
1183
|
-
var
|
|
1184
|
-
for (var
|
|
1185
|
-
var we = I[
|
|
1186
|
-
if (r(I,
|
|
1187
|
-
return L(
|
|
1179
|
+
function U(Z, w, J, ie, ee) {
|
|
1180
|
+
var ae = Z[w], ue = K(ae);
|
|
1181
|
+
if (ue !== "object")
|
|
1182
|
+
return new f("Invalid " + ie + " `" + ee + "` of type `" + ue + "` " + ("supplied to `" + J + "`, expected `object`."));
|
|
1183
|
+
var se = t({}, Z[w], I);
|
|
1184
|
+
for (var ne in se) {
|
|
1185
|
+
var we = I[ne];
|
|
1186
|
+
if (r(I, ne) && typeof we != "function")
|
|
1187
|
+
return L(J, ie, ee, ne, te(we));
|
|
1188
1188
|
if (!we)
|
|
1189
1189
|
return new f(
|
|
1190
|
-
"Invalid " +
|
|
1190
|
+
"Invalid " + ie + " `" + ee + "` key `" + ne + "` supplied to `" + J + "`.\nBad object: " + JSON.stringify(Z[w], null, " ") + `
|
|
1191
1191
|
Valid keys: ` + JSON.stringify(Object.keys(I), null, " ")
|
|
1192
1192
|
);
|
|
1193
|
-
var X = we(
|
|
1193
|
+
var X = we(ae, ne, J, ie, ee + "." + ne, n);
|
|
1194
1194
|
if (X)
|
|
1195
1195
|
return X;
|
|
1196
1196
|
}
|
|
@@ -1220,8 +1220,8 @@ Valid keys: ` + JSON.stringify(Object.keys(I), null, " ")
|
|
|
1220
1220
|
return !1;
|
|
1221
1221
|
} else
|
|
1222
1222
|
for (; !(w = Z.next()).done; ) {
|
|
1223
|
-
var
|
|
1224
|
-
if (
|
|
1223
|
+
var J = w.value;
|
|
1224
|
+
if (J && !$(J[1]))
|
|
1225
1225
|
return !1;
|
|
1226
1226
|
}
|
|
1227
1227
|
} else
|
|
@@ -1359,7 +1359,7 @@ var Cc = process.env.NODE_ENV !== "production" ? fe.oneOfType([fe.number, fe.sha
|
|
|
1359
1359
|
const Bo = Le.createContext(null);
|
|
1360
1360
|
var Fo = function(t) {
|
|
1361
1361
|
return t.scrollTop;
|
|
1362
|
-
}, Mn = "unmounted", Vt = "exited", Yt = "entering", ln = "entered", wa = "exiting",
|
|
1362
|
+
}, Mn = "unmounted", Vt = "exited", Yt = "entering", ln = "entered", wa = "exiting", St = /* @__PURE__ */ function(e) {
|
|
1363
1363
|
ko(t, e);
|
|
1364
1364
|
function t(r, a) {
|
|
1365
1365
|
var s;
|
|
@@ -1487,8 +1487,8 @@ var Fo = function(t) {
|
|
|
1487
1487
|
);
|
|
1488
1488
|
}, t;
|
|
1489
1489
|
}(Le.Component);
|
|
1490
|
-
|
|
1491
|
-
|
|
1490
|
+
St.contextType = Bo;
|
|
1491
|
+
St.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
1492
1492
|
/**
|
|
1493
1493
|
* A React reference to DOM element that need to transition:
|
|
1494
1494
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -1659,7 +1659,7 @@ xt.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1659
1659
|
} : {};
|
|
1660
1660
|
function on() {
|
|
1661
1661
|
}
|
|
1662
|
-
|
|
1662
|
+
St.defaultProps = {
|
|
1663
1663
|
in: !1,
|
|
1664
1664
|
mountOnEnter: !1,
|
|
1665
1665
|
unmountOnExit: !1,
|
|
@@ -1673,11 +1673,11 @@ xt.defaultProps = {
|
|
|
1673
1673
|
onExiting: on,
|
|
1674
1674
|
onExited: on
|
|
1675
1675
|
};
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1676
|
+
St.UNMOUNTED = Mn;
|
|
1677
|
+
St.EXITED = Vt;
|
|
1678
|
+
St.ENTERING = Yt;
|
|
1679
|
+
St.ENTERED = ln;
|
|
1680
|
+
St.EXITING = wa;
|
|
1681
1681
|
var Nc = function(t, n) {
|
|
1682
1682
|
return t && n && n.split(" ").forEach(function(r) {
|
|
1683
1683
|
return xc(t, r);
|
|
@@ -1735,7 +1735,7 @@ var Nc = function(t, n) {
|
|
|
1735
1735
|
var a = this.props;
|
|
1736
1736
|
a.classNames;
|
|
1737
1737
|
var s = Do(a, ["classNames"]);
|
|
1738
|
-
return /* @__PURE__ */ Le.createElement(
|
|
1738
|
+
return /* @__PURE__ */ Le.createElement(St, Er({}, s, {
|
|
1739
1739
|
onEnter: this.onEnter,
|
|
1740
1740
|
onEntered: this.onEntered,
|
|
1741
1741
|
onEntering: this.onEntering,
|
|
@@ -1748,7 +1748,7 @@ var Nc = function(t, n) {
|
|
|
1748
1748
|
ui.defaultProps = {
|
|
1749
1749
|
classNames: ""
|
|
1750
1750
|
};
|
|
1751
|
-
ui.propTypes = process.env.NODE_ENV !== "production" ? Er({},
|
|
1751
|
+
ui.propTypes = process.env.NODE_ENV !== "production" ? Er({}, St.propTypes, {
|
|
1752
1752
|
/**
|
|
1753
1753
|
* The animation classNames applied to the component as it appears, enters,
|
|
1754
1754
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -1888,14 +1888,14 @@ function ot(e, t) {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
1890
1890
|
}
|
|
1891
|
-
var
|
|
1892
|
-
return
|
|
1891
|
+
var re = function() {
|
|
1892
|
+
return re = Object.assign || function(t) {
|
|
1893
1893
|
for (var n, r = 1, a = arguments.length; r < a; r++) {
|
|
1894
1894
|
n = arguments[r];
|
|
1895
1895
|
for (var s in n) Object.prototype.hasOwnProperty.call(n, s) && (t[s] = n[s]);
|
|
1896
1896
|
}
|
|
1897
1897
|
return t;
|
|
1898
|
-
},
|
|
1898
|
+
}, re.apply(this, arguments);
|
|
1899
1899
|
};
|
|
1900
1900
|
function wr(e, t) {
|
|
1901
1901
|
var n = {};
|
|
@@ -1905,7 +1905,7 @@ function wr(e, t) {
|
|
|
1905
1905
|
t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
|
|
1906
1906
|
return n;
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function yt(e, t, n) {
|
|
1909
1909
|
if (n || arguments.length === 2) for (var r = 0, a = t.length, s; r < a; r++)
|
|
1910
1910
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
1911
1911
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
@@ -2189,13 +2189,13 @@ function Uc(e) {
|
|
|
2189
2189
|
t.notation = "compact", t.compactDisplay = "long";
|
|
2190
2190
|
continue;
|
|
2191
2191
|
case "scientific":
|
|
2192
|
-
t =
|
|
2193
|
-
return
|
|
2192
|
+
t = re(re(re({}, t), { notation: "scientific" }), a.options.reduce(function(h, g) {
|
|
2193
|
+
return re(re({}, h), ns(g));
|
|
2194
2194
|
}, {}));
|
|
2195
2195
|
continue;
|
|
2196
2196
|
case "engineering":
|
|
2197
|
-
t =
|
|
2198
|
-
return
|
|
2197
|
+
t = re(re(re({}, t), { notation: "engineering" }), a.options.reduce(function(h, g) {
|
|
2198
|
+
return re(re({}, h), ns(g));
|
|
2199
2199
|
}, {}));
|
|
2200
2200
|
continue;
|
|
2201
2201
|
case "notation-simple":
|
|
@@ -2264,17 +2264,17 @@ function Uc(e) {
|
|
|
2264
2264
|
return p === "*" ? t.minimumFractionDigits = g.length : u && u[0] === "#" ? t.maximumFractionDigits = u.length : c && l ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + l.length) : (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length), "";
|
|
2265
2265
|
});
|
|
2266
2266
|
var s = a.options[0];
|
|
2267
|
-
s === "w" ? t =
|
|
2267
|
+
s === "w" ? t = re(re({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = re(re({}, t), ts(s)));
|
|
2268
2268
|
continue;
|
|
2269
2269
|
}
|
|
2270
2270
|
if (Qo.test(a.stem)) {
|
|
2271
|
-
t =
|
|
2271
|
+
t = re(re({}, t), ts(a.stem));
|
|
2272
2272
|
continue;
|
|
2273
2273
|
}
|
|
2274
2274
|
var o = Zo(a.stem);
|
|
2275
|
-
o && (t =
|
|
2275
|
+
o && (t = re(re({}, t), o));
|
|
2276
2276
|
var i = Hc(a.stem);
|
|
2277
|
-
i && (t =
|
|
2277
|
+
i && (t = re(re({}, t), i));
|
|
2278
2278
|
}
|
|
2279
2279
|
return t;
|
|
2280
2280
|
}
|
|
@@ -4076,7 +4076,7 @@ var nf = (
|
|
|
4076
4076
|
case "select": {
|
|
4077
4077
|
var y = this.clonePosition();
|
|
4078
4078
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
4079
|
-
return this.error(be.EXPECT_SELECT_ARGUMENT_OPTIONS, Te(y,
|
|
4079
|
+
return this.error(be.EXPECT_SELECT_ARGUMENT_OPTIONS, Te(y, re({}, y)));
|
|
4080
4080
|
this.bumpSpace();
|
|
4081
4081
|
var A = this.parseIdentifierIfPossible(), v = 0;
|
|
4082
4082
|
if (i !== "select" && A.value === "offset") {
|
|
@@ -4305,7 +4305,7 @@ function Fa(e) {
|
|
|
4305
4305
|
});
|
|
4306
4306
|
}
|
|
4307
4307
|
function of(e, t) {
|
|
4308
|
-
t === void 0 && (t = {}), t =
|
|
4308
|
+
t === void 0 && (t = {}), t = re({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
4309
4309
|
var n = new nf(e, t).parse();
|
|
4310
4310
|
if (n.err) {
|
|
4311
4311
|
var r = SyntaxError(be[n.err.kind]);
|
|
@@ -4313,7 +4313,7 @@ function of(e, t) {
|
|
|
4313
4313
|
}
|
|
4314
4314
|
return t != null && t.captureLocation || Fa(n.val), n.val;
|
|
4315
4315
|
}
|
|
4316
|
-
function
|
|
4316
|
+
function Et(e, t) {
|
|
4317
4317
|
var n = t && t.cache ? t.cache : hf, r = t && t.serializer ? t.serializer : df, a = t && t.strategy ? t.strategy : lf;
|
|
4318
4318
|
return a(e, {
|
|
4319
4319
|
cache: n,
|
|
@@ -4360,14 +4360,14 @@ var hf = {
|
|
|
4360
4360
|
create: function() {
|
|
4361
4361
|
return new ci();
|
|
4362
4362
|
}
|
|
4363
|
-
},
|
|
4363
|
+
}, Tt = {
|
|
4364
4364
|
variadic: cf,
|
|
4365
4365
|
monadic: ff
|
|
4366
|
-
},
|
|
4366
|
+
}, At;
|
|
4367
4367
|
(function(e) {
|
|
4368
4368
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
4369
|
-
})(
|
|
4370
|
-
var
|
|
4369
|
+
})(At || (At = {}));
|
|
4370
|
+
var Bt = (
|
|
4371
4371
|
/** @class */
|
|
4372
4372
|
function(e) {
|
|
4373
4373
|
ot(t, e);
|
|
@@ -4384,28 +4384,28 @@ var Mt = (
|
|
|
4384
4384
|
function(e) {
|
|
4385
4385
|
ot(t, e);
|
|
4386
4386
|
function t(n, r, a, s) {
|
|
4387
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(a).join('", "'), '"'),
|
|
4387
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(a).join('", "'), '"'), At.INVALID_VALUE, s) || this;
|
|
4388
4388
|
}
|
|
4389
4389
|
return t;
|
|
4390
|
-
}(
|
|
4390
|
+
}(Bt)
|
|
4391
4391
|
), mf = (
|
|
4392
4392
|
/** @class */
|
|
4393
4393
|
function(e) {
|
|
4394
4394
|
ot(t, e);
|
|
4395
4395
|
function t(n, r, a) {
|
|
4396
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
4396
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), At.INVALID_VALUE, a) || this;
|
|
4397
4397
|
}
|
|
4398
4398
|
return t;
|
|
4399
|
-
}(
|
|
4399
|
+
}(Bt)
|
|
4400
4400
|
), pf = (
|
|
4401
4401
|
/** @class */
|
|
4402
4402
|
function(e) {
|
|
4403
4403
|
ot(t, e);
|
|
4404
4404
|
function t(n, r) {
|
|
4405
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
4405
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), At.MISSING_VALUE, r) || this;
|
|
4406
4406
|
}
|
|
4407
4407
|
return t;
|
|
4408
|
-
}(
|
|
4408
|
+
}(Bt)
|
|
4409
4409
|
), qe;
|
|
4410
4410
|
(function(e) {
|
|
4411
4411
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -4503,9 +4503,9 @@ function hr(e, t, n, r, a, s, o) {
|
|
|
4503
4503
|
var y = p.options["=".concat(c)];
|
|
4504
4504
|
if (!y) {
|
|
4505
4505
|
if (!Intl.PluralRules)
|
|
4506
|
-
throw new
|
|
4506
|
+
throw new Bt(`Intl.PluralRules is not available in this environment.
|
|
4507
4507
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4508
|
-
`,
|
|
4508
|
+
`, At.MISSING_INTL_API, o);
|
|
4509
4509
|
var A = n.getPluralRules(t, { type: p.pluralType }).select(c - (p.offset || 0));
|
|
4510
4510
|
y = p.options[A] || p.options.other;
|
|
4511
4511
|
}
|
|
@@ -4518,14 +4518,14 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
4518
4518
|
return gf(i);
|
|
4519
4519
|
}
|
|
4520
4520
|
function bf(e, t) {
|
|
4521
|
-
return t ?
|
|
4522
|
-
return n[r] =
|
|
4521
|
+
return t ? re(re(re({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
4522
|
+
return n[r] = re(re({}, e[r]), t[r] || {}), n;
|
|
4523
4523
|
}, {})) : e;
|
|
4524
4524
|
}
|
|
4525
4525
|
function Ef(e, t) {
|
|
4526
4526
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
4527
4527
|
return n[r] = bf(e[r], t[r]), n;
|
|
4528
|
-
},
|
|
4528
|
+
}, re({}, e)) : e;
|
|
4529
4529
|
}
|
|
4530
4530
|
function oa(e) {
|
|
4531
4531
|
return {
|
|
@@ -4547,29 +4547,29 @@ function Tf(e) {
|
|
|
4547
4547
|
dateTime: {},
|
|
4548
4548
|
pluralRules: {}
|
|
4549
4549
|
}), {
|
|
4550
|
-
getNumberFormat:
|
|
4550
|
+
getNumberFormat: Et(function() {
|
|
4551
4551
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4552
4552
|
n[r] = arguments[r];
|
|
4553
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
4553
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, yt([void 0], n, !1)))();
|
|
4554
4554
|
}, {
|
|
4555
4555
|
cache: oa(e.number),
|
|
4556
|
-
strategy:
|
|
4556
|
+
strategy: Tt.variadic
|
|
4557
4557
|
}),
|
|
4558
|
-
getDateTimeFormat:
|
|
4558
|
+
getDateTimeFormat: Et(function() {
|
|
4559
4559
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4560
4560
|
n[r] = arguments[r];
|
|
4561
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
4561
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, yt([void 0], n, !1)))();
|
|
4562
4562
|
}, {
|
|
4563
4563
|
cache: oa(e.dateTime),
|
|
4564
|
-
strategy:
|
|
4564
|
+
strategy: Tt.variadic
|
|
4565
4565
|
}),
|
|
4566
|
-
getPluralRules:
|
|
4566
|
+
getPluralRules: Et(function() {
|
|
4567
4567
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
4568
4568
|
n[r] = arguments[r];
|
|
4569
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
4569
|
+
return new ((t = Intl.PluralRules).bind.apply(t, yt([void 0], n, !1)))();
|
|
4570
4570
|
}, {
|
|
4571
4571
|
cache: oa(e.pluralRules),
|
|
4572
|
-
strategy:
|
|
4572
|
+
strategy: Tt.variadic
|
|
4573
4573
|
})
|
|
4574
4574
|
};
|
|
4575
4575
|
}
|
|
@@ -4605,7 +4605,7 @@ var iu = (
|
|
|
4605
4605
|
var o = a || {};
|
|
4606
4606
|
o.formatters;
|
|
4607
4607
|
var i = wr(o, ["formatters"]);
|
|
4608
|
-
this.ast = e.__parse(t,
|
|
4608
|
+
this.ast = e.__parse(t, re(re({}, i), { locale: this.resolvedLocale }));
|
|
4609
4609
|
} else
|
|
4610
4610
|
this.ast = t;
|
|
4611
4611
|
if (!Array.isArray(this.ast))
|
|
@@ -4813,65 +4813,65 @@ function zt(e) {
|
|
|
4813
4813
|
}
|
|
4814
4814
|
function Sf(e) {
|
|
4815
4815
|
e === void 0 && (e = ou());
|
|
4816
|
-
var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, a =
|
|
4816
|
+
var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, a = Et(function() {
|
|
4817
4817
|
for (var i, h = [], g = 0; g < arguments.length; g++)
|
|
4818
4818
|
h[g] = arguments[g];
|
|
4819
|
-
return new ((i = Intl.DateTimeFormat).bind.apply(i,
|
|
4819
|
+
return new ((i = Intl.DateTimeFormat).bind.apply(i, yt([void 0], h, !1)))();
|
|
4820
4820
|
}, {
|
|
4821
4821
|
cache: zt(e.dateTime),
|
|
4822
|
-
strategy:
|
|
4823
|
-
}), s =
|
|
4822
|
+
strategy: Tt.variadic
|
|
4823
|
+
}), s = Et(function() {
|
|
4824
4824
|
for (var i, h = [], g = 0; g < arguments.length; g++)
|
|
4825
4825
|
h[g] = arguments[g];
|
|
4826
|
-
return new ((i = Intl.NumberFormat).bind.apply(i,
|
|
4826
|
+
return new ((i = Intl.NumberFormat).bind.apply(i, yt([void 0], h, !1)))();
|
|
4827
4827
|
}, {
|
|
4828
4828
|
cache: zt(e.number),
|
|
4829
|
-
strategy:
|
|
4830
|
-
}), o =
|
|
4829
|
+
strategy: Tt.variadic
|
|
4830
|
+
}), o = Et(function() {
|
|
4831
4831
|
for (var i, h = [], g = 0; g < arguments.length; g++)
|
|
4832
4832
|
h[g] = arguments[g];
|
|
4833
|
-
return new ((i = Intl.PluralRules).bind.apply(i,
|
|
4833
|
+
return new ((i = Intl.PluralRules).bind.apply(i, yt([void 0], h, !1)))();
|
|
4834
4834
|
}, {
|
|
4835
4835
|
cache: zt(e.pluralRules),
|
|
4836
|
-
strategy:
|
|
4836
|
+
strategy: Tt.variadic
|
|
4837
4837
|
});
|
|
4838
4838
|
return {
|
|
4839
4839
|
getDateTimeFormat: a,
|
|
4840
4840
|
getNumberFormat: s,
|
|
4841
|
-
getMessageFormat:
|
|
4842
|
-
return new iu(i, h, g,
|
|
4841
|
+
getMessageFormat: Et(function(i, h, g, p) {
|
|
4842
|
+
return new iu(i, h, g, re({ formatters: {
|
|
4843
4843
|
getNumberFormat: s,
|
|
4844
4844
|
getDateTimeFormat: a,
|
|
4845
4845
|
getPluralRules: o
|
|
4846
4846
|
} }, p || {}));
|
|
4847
4847
|
}, {
|
|
4848
4848
|
cache: zt(e.message),
|
|
4849
|
-
strategy:
|
|
4849
|
+
strategy: Tt.variadic
|
|
4850
4850
|
}),
|
|
4851
|
-
getRelativeTimeFormat:
|
|
4851
|
+
getRelativeTimeFormat: Et(function() {
|
|
4852
4852
|
for (var i = [], h = 0; h < arguments.length; h++)
|
|
4853
4853
|
i[h] = arguments[h];
|
|
4854
|
-
return new (t.bind.apply(t,
|
|
4854
|
+
return new (t.bind.apply(t, yt([void 0], i, !1)))();
|
|
4855
4855
|
}, {
|
|
4856
4856
|
cache: zt(e.relativeTime),
|
|
4857
|
-
strategy:
|
|
4857
|
+
strategy: Tt.variadic
|
|
4858
4858
|
}),
|
|
4859
4859
|
getPluralRules: o,
|
|
4860
|
-
getListFormat:
|
|
4860
|
+
getListFormat: Et(function() {
|
|
4861
4861
|
for (var i = [], h = 0; h < arguments.length; h++)
|
|
4862
4862
|
i[h] = arguments[h];
|
|
4863
|
-
return new (n.bind.apply(n,
|
|
4863
|
+
return new (n.bind.apply(n, yt([void 0], i, !1)))();
|
|
4864
4864
|
}, {
|
|
4865
4865
|
cache: zt(e.list),
|
|
4866
|
-
strategy:
|
|
4866
|
+
strategy: Tt.variadic
|
|
4867
4867
|
}),
|
|
4868
|
-
getDisplayNames:
|
|
4868
|
+
getDisplayNames: Et(function() {
|
|
4869
4869
|
for (var i = [], h = 0; h < arguments.length; h++)
|
|
4870
4870
|
i[h] = arguments[h];
|
|
4871
|
-
return new (r.bind.apply(r,
|
|
4871
|
+
return new (r.bind.apply(r, yt([void 0], i, !1)))();
|
|
4872
4872
|
}, {
|
|
4873
4873
|
cache: zt(e.displayNames),
|
|
4874
|
-
strategy:
|
|
4874
|
+
strategy: Tt.variadic
|
|
4875
4875
|
})
|
|
4876
4876
|
};
|
|
4877
4877
|
}
|
|
@@ -4883,20 +4883,20 @@ function fi(e, t, n, r) {
|
|
|
4883
4883
|
}
|
|
4884
4884
|
function or(e, t) {
|
|
4885
4885
|
return Object.keys(e).reduce(function(n, r) {
|
|
4886
|
-
return n[r] =
|
|
4886
|
+
return n[r] = re({ timeZone: t }, e[r]), n;
|
|
4887
4887
|
}, {});
|
|
4888
4888
|
}
|
|
4889
4889
|
function us(e, t) {
|
|
4890
|
-
var n = Object.keys(
|
|
4890
|
+
var n = Object.keys(re(re({}, e), t));
|
|
4891
4891
|
return n.reduce(function(r, a) {
|
|
4892
|
-
return r[a] =
|
|
4892
|
+
return r[a] = re(re({}, e[a] || {}), t[a] || {}), r;
|
|
4893
4893
|
}, {});
|
|
4894
4894
|
}
|
|
4895
4895
|
function ls(e, t) {
|
|
4896
4896
|
if (!t)
|
|
4897
4897
|
return e;
|
|
4898
4898
|
var n = iu.formats;
|
|
4899
|
-
return
|
|
4899
|
+
return re(re(re({}, n), e), { date: us(or(n.date, t), or(e.date || {}, t)), time: us(or(n.time, t), or(e.time || {}, t)) });
|
|
4900
4900
|
}
|
|
4901
4901
|
var Ha = function(e, t, n, r, a) {
|
|
4902
4902
|
var s = e.locale, o = e.formats, i = e.messages, h = e.defaultLocale, g = e.defaultFormats, p = e.fallbackOnEmptyString, u = e.onError, c = e.timeZone, l = e.defaultRichTextElements;
|
|
@@ -4913,7 +4913,7 @@ var Ha = function(e, t, n, r, a) {
|
|
|
4913
4913
|
return m[0].value;
|
|
4914
4914
|
if (!r && m && typeof m == "string" && !l)
|
|
4915
4915
|
return m.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
4916
|
-
if (r =
|
|
4916
|
+
if (r = re(re({}, l), r || {}), o = ls(o, c), g = ls(g, c), !m) {
|
|
4917
4917
|
if (p === !1 && m === "")
|
|
4918
4918
|
return m;
|
|
4919
4919
|
if ((!f || s && s.toLowerCase() !== h.toLowerCase()) && u(new vf(n, s)), f)
|
|
@@ -4926,7 +4926,7 @@ var Ha = function(e, t, n, r, a) {
|
|
|
4926
4926
|
return T;
|
|
4927
4927
|
}
|
|
4928
4928
|
try {
|
|
4929
|
-
var E = t.getMessageFormat(m, s, o,
|
|
4929
|
+
var E = t.getMessageFormat(m, s, o, re({ formatters: t }, a || {}));
|
|
4930
4930
|
return E.format(r);
|
|
4931
4931
|
} catch (y) {
|
|
4932
4932
|
u(new ua('Error formatting message: "'.concat(T, '", using ').concat(f ? "default message" : "id", " as fallback."), s, n, y));
|
|
@@ -4963,8 +4963,8 @@ var Ha = function(e, t, n, r, a) {
|
|
|
4963
4963
|
function Lr(e, t, n, r) {
|
|
4964
4964
|
var a = e.locale, s = e.formats, o = e.onError, i = e.timeZone;
|
|
4965
4965
|
r === void 0 && (r = {});
|
|
4966
|
-
var h = r.format, g =
|
|
4967
|
-
return t === "time" && !p.hour && !p.minute && !p.second && !p.timeStyle && !p.dateStyle && (p =
|
|
4966
|
+
var h = r.format, g = re(re({}, i && { timeZone: i }), h && fi(s, t, h, o)), p = en(r, uu, g);
|
|
4967
|
+
return t === "time" && !p.hour && !p.minute && !p.second && !p.timeStyle && !p.dateStyle && (p = re(re({}, p), { hour: "numeric", minute: "numeric" })), n(a, p);
|
|
4968
4968
|
}
|
|
4969
4969
|
function Cf(e, t) {
|
|
4970
4970
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
@@ -5029,9 +5029,9 @@ var wf = [
|
|
|
5029
5029
|
];
|
|
5030
5030
|
function Lf(e, t, n, r) {
|
|
5031
5031
|
var a = e.locale, s = e.onError, o = Intl.DisplayNames;
|
|
5032
|
-
o || s(new
|
|
5032
|
+
o || s(new Bt(`Intl.DisplayNames is not available in this environment.
|
|
5033
5033
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
5034
|
-
`,
|
|
5034
|
+
`, At.MISSING_INTL_API));
|
|
5035
5035
|
var i = en(r, wf);
|
|
5036
5036
|
try {
|
|
5037
5037
|
return t(a, i).of(n);
|
|
@@ -5058,9 +5058,9 @@ function lu(e, t, n, r) {
|
|
|
5058
5058
|
var a = e.locale, s = e.onError;
|
|
5059
5059
|
r === void 0 && (r = {});
|
|
5060
5060
|
var o = Intl.ListFormat;
|
|
5061
|
-
o || s(new
|
|
5061
|
+
o || s(new Bt(`Intl.ListFormat is not available in this environment.
|
|
5062
5062
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
5063
|
-
`,
|
|
5063
|
+
`, At.MISSING_INTL_API));
|
|
5064
5064
|
var i = en(r, Pf);
|
|
5065
5065
|
try {
|
|
5066
5066
|
var h = {}, g = n.map(function(p, u) {
|
|
@@ -5071,7 +5071,7 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
|
5071
5071
|
return String(p);
|
|
5072
5072
|
});
|
|
5073
5073
|
return t(a, i).formatToParts(g).map(function(p) {
|
|
5074
|
-
return p.type === "literal" ? p :
|
|
5074
|
+
return p.type === "literal" ? p : re(re({}, p), { value: h[p.value] || p.value });
|
|
5075
5075
|
});
|
|
5076
5076
|
} catch (p) {
|
|
5077
5077
|
s(new ut("Error formatting list.", a, p));
|
|
@@ -5081,9 +5081,9 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
|
5081
5081
|
var Mf = ["type"];
|
|
5082
5082
|
function Bf(e, t, n, r) {
|
|
5083
5083
|
var a = e.locale, s = e.onError;
|
|
5084
|
-
r === void 0 && (r = {}), Intl.PluralRules || s(new
|
|
5084
|
+
r === void 0 && (r = {}), Intl.PluralRules || s(new Bt(`Intl.PluralRules is not available in this environment.
|
|
5085
5085
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
5086
|
-
`,
|
|
5086
|
+
`, At.MISSING_INTL_API));
|
|
5087
5087
|
var o = en(r, Mf);
|
|
5088
5088
|
try {
|
|
5089
5089
|
return t(a, o).select(n);
|
|
@@ -5102,9 +5102,9 @@ function Hf(e, t, n) {
|
|
|
5102
5102
|
function Uf(e, t, n, r, a) {
|
|
5103
5103
|
a === void 0 && (a = {}), r || (r = "second");
|
|
5104
5104
|
var s = Intl.RelativeTimeFormat;
|
|
5105
|
-
s || e.onError(new
|
|
5105
|
+
s || e.onError(new Bt(`Intl.RelativeTimeFormat is not available in this environment.
|
|
5106
5106
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
5107
|
-
`,
|
|
5107
|
+
`, At.MISSING_INTL_API));
|
|
5108
5108
|
try {
|
|
5109
5109
|
return Hf(e, t, a).format(n, r);
|
|
5110
5110
|
} catch (o) {
|
|
@@ -5172,8 +5172,8 @@ Please consider using "@formatjs/cli" to pre-compile your messages for performan
|
|
|
5172
5172
|
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
|
5173
5173
|
}
|
|
5174
5174
|
function Gf(e, t) {
|
|
5175
|
-
var n = Sf(t), r =
|
|
5176
|
-
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new os('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(s, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new os('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(s, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new _f('"locale" was not configured, using "'.concat(s, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), Yf(r),
|
|
5175
|
+
var n = Sf(t), r = re(re({}, su), e), a = r.locale, s = r.defaultLocale, o = r.onError;
|
|
5176
|
+
return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new os('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(s, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new os('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(s, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new _f('"locale" was not configured, using "'.concat(s, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), Yf(r), re(re({}, r), {
|
|
5177
5177
|
formatters: n,
|
|
5178
5178
|
formatNumber: jf.bind(null, r, n.getNumberFormat),
|
|
5179
5179
|
formatNumberToParts: zf.bind(null, r, n.getNumberFormat),
|
|
@@ -5196,10 +5196,10 @@ function Gf(e, t) {
|
|
|
5196
5196
|
function fu(e) {
|
|
5197
5197
|
$o(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
|
5198
5198
|
}
|
|
5199
|
-
var du =
|
|
5199
|
+
var du = re(re({}, su), { textComponent: He.Fragment });
|
|
5200
5200
|
function qf(e) {
|
|
5201
5201
|
return function(t) {
|
|
5202
|
-
return e(
|
|
5202
|
+
return e(He.Children.toArray(t));
|
|
5203
5203
|
};
|
|
5204
5204
|
}
|
|
5205
5205
|
function Wf(e, t) {
|
|
@@ -5217,11 +5217,11 @@ function Wf(e, t) {
|
|
|
5217
5217
|
}
|
|
5218
5218
|
return !0;
|
|
5219
5219
|
}
|
|
5220
|
-
var di = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ =
|
|
5220
|
+
var di = typeof window < "u" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = He.createContext(null)) : He.createContext(null);
|
|
5221
5221
|
di.Consumer;
|
|
5222
5222
|
var Xf = di.Provider, Qf = Xf, Kf = di;
|
|
5223
5223
|
function Pr() {
|
|
5224
|
-
var e =
|
|
5224
|
+
var e = He.useContext(Kf);
|
|
5225
5225
|
return fu(e), e;
|
|
5226
5226
|
}
|
|
5227
5227
|
var Ua;
|
|
@@ -5247,8 +5247,8 @@ function Kn(e) {
|
|
|
5247
5247
|
), i = r[e](a, o);
|
|
5248
5248
|
if (typeof s == "function")
|
|
5249
5249
|
return s(i);
|
|
5250
|
-
var h = r.textComponent ||
|
|
5251
|
-
return
|
|
5250
|
+
var h = r.textComponent || He.Fragment;
|
|
5251
|
+
return He.createElement(h, null, i);
|
|
5252
5252
|
};
|
|
5253
5253
|
return t.displayName = Ua[e], t;
|
|
5254
5254
|
}
|
|
@@ -5261,15 +5261,15 @@ function mu(e) {
|
|
|
5261
5261
|
var fs = function(e, t, n, r) {
|
|
5262
5262
|
for (var a = [], s = 4; s < arguments.length; s++)
|
|
5263
5263
|
a[s - 4] = arguments[s];
|
|
5264
|
-
var o = mu(r), i = Ha.apply(void 0,
|
|
5264
|
+
var o = mu(r), i = Ha.apply(void 0, yt([
|
|
5265
5265
|
e,
|
|
5266
5266
|
t,
|
|
5267
5267
|
n,
|
|
5268
5268
|
o
|
|
5269
5269
|
], a, !1));
|
|
5270
|
-
return Array.isArray(i) ?
|
|
5270
|
+
return Array.isArray(i) ? He.Children.toArray(i) : i;
|
|
5271
5271
|
}, ds = function(e, t) {
|
|
5272
|
-
var n = e.defaultRichTextElements, r = wr(e, ["defaultRichTextElements"]), a = mu(n), s = Gf(
|
|
5272
|
+
var n = e.defaultRichTextElements, r = wr(e, ["defaultRichTextElements"]), a = mu(n), s = Gf(re(re(re({}, du), r), { defaultRichTextElements: a }), t), o = {
|
|
5273
5273
|
locale: s.locale,
|
|
5274
5274
|
timeZone: s.timeZone,
|
|
5275
5275
|
fallbackOnEmptyString: s.fallbackOnEmptyString,
|
|
@@ -5280,7 +5280,7 @@ var fs = function(e, t, n, r) {
|
|
|
5280
5280
|
onError: s.onError,
|
|
5281
5281
|
defaultRichTextElements: a
|
|
5282
5282
|
};
|
|
5283
|
-
return
|
|
5283
|
+
return re(re({}, s), {
|
|
5284
5284
|
formatMessage: fs.bind(
|
|
5285
5285
|
null,
|
|
5286
5286
|
o,
|
|
@@ -5326,9 +5326,9 @@ var Zf = (
|
|
|
5326
5326
|
prevConfig: o
|
|
5327
5327
|
};
|
|
5328
5328
|
}, t.prototype.render = function() {
|
|
5329
|
-
return fu(this.state.intl),
|
|
5329
|
+
return fu(this.state.intl), He.createElement(Qf, { value: this.state.intl }, this.props.children);
|
|
5330
5330
|
}, t.displayName = "IntlProvider", t.defaultProps = du, t;
|
|
5331
|
-
}(
|
|
5331
|
+
}(He.PureComponent)
|
|
5332
5332
|
);
|
|
5333
5333
|
Kn("formatDate");
|
|
5334
5334
|
Kn("formatTime");
|
|
@@ -5353,7 +5353,7 @@ const pu = () => {
|
|
|
5353
5353
|
chatlineLabelUserTranslation: n,
|
|
5354
5354
|
chatlineLabelAssistantTranslation: r
|
|
5355
5355
|
};
|
|
5356
|
-
}, Jf = (e) => /* @__PURE__ */
|
|
5356
|
+
}, Jf = (e) => /* @__PURE__ */ He.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ He.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z" })), ed = (e) => /* @__PURE__ */ He.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ He.createElement("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm7.48 7.16l-5.01-.43l-2-4.71c3.21.19 5.91 2.27 7.01 5.14zm-5.07 6.26L12 13.98l-2.39 1.44l.63-2.72l-2.11-1.83l2.78-.24L12 8.06l1.09 2.56l2.78.24l-2.11 1.83l.64 2.73zm-2.86-11.4l-2 4.72l-5.02.43c1.1-2.88 3.8-4.97 7.02-5.15zM4 12c0-.64.08-1.26.23-1.86l3.79 3.28l-1.11 4.75A7.982 7.982 0 0 1 4 12zm3.84 6.82L12 16.31l4.16 2.5A7.924 7.924 0 0 1 11.99 20c-1.52 0-2.94-.44-4.15-1.18zm9.25-.65l-1.11-4.75l3.79-3.28c.14.59.23 1.22.23 1.86c0 2.48-1.14 4.7-2.91 6.17z" }));
|
|
5357
5357
|
function hs(e) {
|
|
5358
5358
|
const t = [], n = String(e || "");
|
|
5359
5359
|
let r = n.indexOf(","), a = 0, s = !1;
|
|
@@ -5426,7 +5426,7 @@ lt.prototype.commaOrSpaceSeparated = !1;
|
|
|
5426
5426
|
lt.prototype.mustUseProperty = !1;
|
|
5427
5427
|
lt.prototype.defined = !1;
|
|
5428
5428
|
let sd = 0;
|
|
5429
|
-
const de = tn(), Me = tn(), Eu = tn(), G = tn(), Ie = tn(), hn = tn(),
|
|
5429
|
+
const de = tn(), Me = tn(), Eu = tn(), G = tn(), Ie = tn(), hn = tn(), et = tn();
|
|
5430
5430
|
function tn() {
|
|
5431
5431
|
return 2 ** ++sd;
|
|
5432
5432
|
}
|
|
@@ -5434,7 +5434,7 @@ const ja = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5434
5434
|
__proto__: null,
|
|
5435
5435
|
boolean: de,
|
|
5436
5436
|
booleanish: Me,
|
|
5437
|
-
commaOrSpaceSeparated:
|
|
5437
|
+
commaOrSpaceSeparated: et,
|
|
5438
5438
|
commaSeparated: hn,
|
|
5439
5439
|
number: G,
|
|
5440
5440
|
overloadedBoolean: Eu,
|
|
@@ -6102,7 +6102,7 @@ const Au = Tn({
|
|
|
6102
6102
|
},
|
|
6103
6103
|
transform: _u,
|
|
6104
6104
|
properties: {
|
|
6105
|
-
about:
|
|
6105
|
+
about: et,
|
|
6106
6106
|
accentHeight: G,
|
|
6107
6107
|
accumulate: null,
|
|
6108
6108
|
additive: null,
|
|
@@ -6214,7 +6214,7 @@ const Au = Tn({
|
|
|
6214
6214
|
k2: G,
|
|
6215
6215
|
k3: G,
|
|
6216
6216
|
k4: G,
|
|
6217
|
-
kernelMatrix:
|
|
6217
|
+
kernelMatrix: et,
|
|
6218
6218
|
kernelUnitLength: null,
|
|
6219
6219
|
keyPoints: null,
|
|
6220
6220
|
// SEMI_COLON_SEPARATED
|
|
@@ -6371,21 +6371,21 @@ const Au = Tn({
|
|
|
6371
6371
|
preserveAspectRatio: null,
|
|
6372
6372
|
primitiveUnits: null,
|
|
6373
6373
|
propagate: null,
|
|
6374
|
-
property:
|
|
6374
|
+
property: et,
|
|
6375
6375
|
r: null,
|
|
6376
6376
|
radius: null,
|
|
6377
6377
|
referrerPolicy: null,
|
|
6378
6378
|
refX: null,
|
|
6379
6379
|
refY: null,
|
|
6380
|
-
rel:
|
|
6381
|
-
rev:
|
|
6380
|
+
rel: et,
|
|
6381
|
+
rev: et,
|
|
6382
6382
|
renderingIntent: null,
|
|
6383
6383
|
repeatCount: null,
|
|
6384
6384
|
repeatDur: null,
|
|
6385
|
-
requiredExtensions:
|
|
6386
|
-
requiredFeatures:
|
|
6387
|
-
requiredFonts:
|
|
6388
|
-
requiredFormats:
|
|
6385
|
+
requiredExtensions: et,
|
|
6386
|
+
requiredFeatures: et,
|
|
6387
|
+
requiredFonts: et,
|
|
6388
|
+
requiredFormats: et,
|
|
6389
6389
|
resource: null,
|
|
6390
6390
|
restart: null,
|
|
6391
6391
|
result: null,
|
|
@@ -6413,7 +6413,7 @@ const Au = Tn({
|
|
|
6413
6413
|
strikethroughThickness: G,
|
|
6414
6414
|
string: null,
|
|
6415
6415
|
stroke: null,
|
|
6416
|
-
strokeDashArray:
|
|
6416
|
+
strokeDashArray: et,
|
|
6417
6417
|
strokeDashOffset: null,
|
|
6418
6418
|
strokeLineCap: null,
|
|
6419
6419
|
strokeLineJoin: null,
|
|
@@ -6427,7 +6427,7 @@ const Au = Tn({
|
|
|
6427
6427
|
syncMaster: null,
|
|
6428
6428
|
syncTolerance: null,
|
|
6429
6429
|
syncToleranceDefault: null,
|
|
6430
|
-
systemLanguage:
|
|
6430
|
+
systemLanguage: et,
|
|
6431
6431
|
tabIndex: G,
|
|
6432
6432
|
tableValues: null,
|
|
6433
6433
|
target: null,
|
|
@@ -6441,7 +6441,7 @@ const Au = Tn({
|
|
|
6441
6441
|
title: null,
|
|
6442
6442
|
transformBehavior: null,
|
|
6443
6443
|
type: null,
|
|
6444
|
-
typeOf:
|
|
6444
|
+
typeOf: et,
|
|
6445
6445
|
to: null,
|
|
6446
6446
|
transform: null,
|
|
6447
6447
|
transformOrigin: null,
|
|
@@ -6527,7 +6527,7 @@ const md = {
|
|
|
6527
6527
|
xLinkTitle: "xlinkTitle",
|
|
6528
6528
|
xLinkType: "xlinkType",
|
|
6529
6529
|
xmlnsXLink: "xmlnsXlink"
|
|
6530
|
-
}, Jn = bu([yu, Tu, Au, xu, ud], "html"),
|
|
6530
|
+
}, Jn = bu([yu, Tu, Au, xu, ud], "html"), Ft = bu([yu, Tu, Au, xu, ld], "svg");
|
|
6531
6531
|
function Es(e) {
|
|
6532
6532
|
const t = String(e || "").trim();
|
|
6533
6533
|
return t ? t.split(/[ \t\n\r\f]+/g) : [];
|
|
@@ -6636,7 +6636,7 @@ function Nd(e, t) {
|
|
|
6636
6636
|
}), n;
|
|
6637
6637
|
}
|
|
6638
6638
|
var As = Cu.default = Nd;
|
|
6639
|
-
const Od = As.default || As, kr = Iu("end"),
|
|
6639
|
+
const Od = As.default || As, kr = Iu("end"), Ct = Iu("start");
|
|
6640
6640
|
function Iu(e) {
|
|
6641
6641
|
return t;
|
|
6642
6642
|
function t(n) {
|
|
@@ -6650,7 +6650,7 @@ function Iu(e) {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
}
|
|
6652
6652
|
function Rd(e) {
|
|
6653
|
-
const t =
|
|
6653
|
+
const t = Ct(e), n = kr(e);
|
|
6654
6654
|
if (t && n)
|
|
6655
6655
|
return { start: t, end: n };
|
|
6656
6656
|
}
|
|
@@ -6783,7 +6783,7 @@ function Md(e, t) {
|
|
|
6783
6783
|
ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
|
|
6784
6784
|
passKeys: t.passKeys !== !1,
|
|
6785
6785
|
passNode: t.passNode || !1,
|
|
6786
|
-
schema: t.space === "svg" ?
|
|
6786
|
+
schema: t.space === "svg" ? Ft : Jn,
|
|
6787
6787
|
stylePropertyNameCase: t.stylePropertyNameCase || "dom",
|
|
6788
6788
|
tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
|
|
6789
6789
|
}, s = Ou(a, e, void 0);
|
|
@@ -6811,7 +6811,7 @@ function Ou(e, t, n) {
|
|
|
6811
6811
|
function Bd(e, t, n) {
|
|
6812
6812
|
const r = e.schema;
|
|
6813
6813
|
let a = r;
|
|
6814
|
-
t.tagName.toLowerCase() === "svg" && r.space === "html" && (a =
|
|
6814
|
+
t.tagName.toLowerCase() === "svg" && r.space === "html" && (a = Ft, e.schema = a), e.ancestors.push(t);
|
|
6815
6815
|
const s = wu(e, t.tagName, !1), o = Yd(e, t);
|
|
6816
6816
|
let i = gi(e, t);
|
|
6817
6817
|
return Dd.has(t.tagName) && (i = i.filter(function(h) {
|
|
@@ -6837,7 +6837,7 @@ function Hd(e, t) {
|
|
|
6837
6837
|
function Ud(e, t, n) {
|
|
6838
6838
|
const r = e.schema;
|
|
6839
6839
|
let a = r;
|
|
6840
|
-
t.name === "svg" && r.space === "html" && (a =
|
|
6840
|
+
t.name === "svg" && r.space === "html" && (a = Ft, e.schema = a), e.ancestors.push(t);
|
|
6841
6841
|
const s = t.name === null ? e.Fragment : wu(e, t.name, !0), o = Gd(e, t), i = gi(e, t);
|
|
6842
6842
|
return Ru(e, o, s, t), pi(o, i), e.ancestors.pop(), e.schema = r, e.create(t, s, o, n);
|
|
6843
6843
|
}
|
|
@@ -6867,7 +6867,7 @@ function zd(e, t, n) {
|
|
|
6867
6867
|
function Vd(e, t) {
|
|
6868
6868
|
return n;
|
|
6869
6869
|
function n(r, a, s, o) {
|
|
6870
|
-
const i = Array.isArray(s.children), h =
|
|
6870
|
+
const i = Array.isArray(s.children), h = Ct(r);
|
|
6871
6871
|
return t(
|
|
6872
6872
|
a,
|
|
6873
6873
|
s,
|
|
@@ -7105,7 +7105,7 @@ function bi(e) {
|
|
|
7105
7105
|
const n = Is.textContent;
|
|
7106
7106
|
return n.charCodeAt(n.length - 1) === 59 && e !== "semi" || n === t ? !1 : n;
|
|
7107
7107
|
}
|
|
7108
|
-
function
|
|
7108
|
+
function xt(e, t, n, r) {
|
|
7109
7109
|
const a = e.length;
|
|
7110
7110
|
let s = 0, o;
|
|
7111
7111
|
if (t < 0 ? t = -t > a ? 0 : a + t : t = t > a ? a : t, n = n > 0 ? n : 0, r.length < 1e4)
|
|
@@ -7115,7 +7115,7 @@ function At(e, t, n, r) {
|
|
|
7115
7115
|
o = r.slice(s, s + 1e4), o.unshift(t, 0), e.splice(...o), s += 1e4, t += 1e4;
|
|
7116
7116
|
}
|
|
7117
7117
|
function at(e, t) {
|
|
7118
|
-
return e.length > 0 ? (
|
|
7118
|
+
return e.length > 0 ? (xt(e, e.length, 0, t), e) : t;
|
|
7119
7119
|
}
|
|
7120
7120
|
const Ns = {}.hasOwnProperty;
|
|
7121
7121
|
function nh(e) {
|
|
@@ -7147,7 +7147,7 @@ function ah(e, t) {
|
|
|
7147
7147
|
const r = [];
|
|
7148
7148
|
for (; ++n < t.length; )
|
|
7149
7149
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
7150
|
-
|
|
7150
|
+
xt(e, 0, 0, r);
|
|
7151
7151
|
}
|
|
7152
7152
|
function Pu(e, t) {
|
|
7153
7153
|
const n = Number.parseInt(e, t);
|
|
@@ -7165,7 +7165,7 @@ function Pu(e, t) {
|
|
|
7165
7165
|
function mn(e) {
|
|
7166
7166
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
7167
7167
|
}
|
|
7168
|
-
const
|
|
7168
|
+
const vt = Ht(/[A-Za-z]/), tt = Ht(/[\dA-Za-z]/), ih = Ht(/[#-'*+\--9=?A-Z^-~]/);
|
|
7169
7169
|
function Va(e) {
|
|
7170
7170
|
return (
|
|
7171
7171
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -7173,18 +7173,18 @@ function Va(e) {
|
|
|
7173
7173
|
e !== null && (e < 32 || e === 127)
|
|
7174
7174
|
);
|
|
7175
7175
|
}
|
|
7176
|
-
const Ya =
|
|
7176
|
+
const Ya = Ht(/\d/), sh = Ht(/[\dA-Fa-f]/), oh = Ht(/[!-/:-@[-`{-~]/);
|
|
7177
7177
|
function le(e) {
|
|
7178
7178
|
return e !== null && e < -2;
|
|
7179
7179
|
}
|
|
7180
|
-
function
|
|
7180
|
+
function Ze(e) {
|
|
7181
7181
|
return e !== null && (e < 0 || e === 32);
|
|
7182
7182
|
}
|
|
7183
7183
|
function ve(e) {
|
|
7184
7184
|
return e === -2 || e === -1 || e === 32;
|
|
7185
7185
|
}
|
|
7186
|
-
const uh =
|
|
7187
|
-
function
|
|
7186
|
+
const uh = Ht(new RegExp("\\p{P}|\\p{S}", "u")), lh = Ht(/\s/);
|
|
7187
|
+
function Ht(e) {
|
|
7188
7188
|
return t;
|
|
7189
7189
|
function t(n) {
|
|
7190
7190
|
return n !== null && n > -1 && e.test(String.fromCharCode(n));
|
|
@@ -7196,7 +7196,7 @@ function yn(e) {
|
|
|
7196
7196
|
for (; ++n < e.length; ) {
|
|
7197
7197
|
const s = e.charCodeAt(n);
|
|
7198
7198
|
let o = "";
|
|
7199
|
-
if (s === 37 &&
|
|
7199
|
+
if (s === 37 && tt(e.charCodeAt(n + 1)) && tt(e.charCodeAt(n + 2)))
|
|
7200
7200
|
a = 2;
|
|
7201
7201
|
else if (s < 128)
|
|
7202
7202
|
/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s)) || (o = String.fromCharCode(s));
|
|
@@ -7290,7 +7290,7 @@ function hh(e) {
|
|
|
7290
7290
|
let N = A;
|
|
7291
7291
|
for (; N < t.events.length; )
|
|
7292
7292
|
t.events[N][1].end = Object.assign({}, S), N++;
|
|
7293
|
-
return
|
|
7293
|
+
return xt(
|
|
7294
7294
|
t.events,
|
|
7295
7295
|
v + 1,
|
|
7296
7296
|
0,
|
|
@@ -7371,7 +7371,7 @@ function hh(e) {
|
|
|
7371
7371
|
}
|
|
7372
7372
|
for (m(r), S = N; S < t.events.length; )
|
|
7373
7373
|
t.events[S][1].end = Object.assign({}, C), S++;
|
|
7374
|
-
|
|
7374
|
+
xt(
|
|
7375
7375
|
t.events,
|
|
7376
7376
|
_ + 1,
|
|
7377
7377
|
0,
|
|
@@ -7400,7 +7400,7 @@ function mh(e, t, n) {
|
|
|
7400
7400
|
);
|
|
7401
7401
|
}
|
|
7402
7402
|
function Rs(e) {
|
|
7403
|
-
if (e === null ||
|
|
7403
|
+
if (e === null || Ze(e) || lh(e))
|
|
7404
7404
|
return 1;
|
|
7405
7405
|
if (uh(e))
|
|
7406
7406
|
return 2;
|
|
@@ -7469,7 +7469,7 @@ function ph(e, t) {
|
|
|
7469
7469
|
]), e[n][1].end.offset - e[n][1].start.offset ? (p = 2, g = at(g, [
|
|
7470
7470
|
["enter", e[n][1], t],
|
|
7471
7471
|
["exit", e[n][1], t]
|
|
7472
|
-
])) : p = 0,
|
|
7472
|
+
])) : p = 0, xt(e, r - 1, n - r + 3, g), n = r + g.length - p - 2;
|
|
7473
7473
|
break;
|
|
7474
7474
|
}
|
|
7475
7475
|
}
|
|
@@ -7505,13 +7505,13 @@ function Eh(e, t, n) {
|
|
|
7505
7505
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(l), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), s;
|
|
7506
7506
|
}
|
|
7507
7507
|
function s(l) {
|
|
7508
|
-
return
|
|
7508
|
+
return vt(l) ? (e.consume(l), o) : g(l);
|
|
7509
7509
|
}
|
|
7510
7510
|
function o(l) {
|
|
7511
|
-
return l === 43 || l === 45 || l === 46 ||
|
|
7511
|
+
return l === 43 || l === 45 || l === 46 || tt(l) ? (r = 1, i(l)) : g(l);
|
|
7512
7512
|
}
|
|
7513
7513
|
function i(l) {
|
|
7514
|
-
return l === 58 ? (e.consume(l), r = 0, h) : (l === 43 || l === 45 || l === 46 ||
|
|
7514
|
+
return l === 58 ? (e.consume(l), r = 0, h) : (l === 43 || l === 45 || l === 46 || tt(l)) && r++ < 32 ? (e.consume(l), i) : (r = 0, g(l));
|
|
7515
7515
|
}
|
|
7516
7516
|
function h(l) {
|
|
7517
7517
|
return l === 62 ? (e.exit("autolinkProtocol"), e.enter("autolinkMarker"), e.consume(l), e.exit("autolinkMarker"), e.exit("autolink"), t) : l === null || l === 32 || l === 60 || Va(l) ? n(l) : (e.consume(l), h);
|
|
@@ -7520,13 +7520,13 @@ function Eh(e, t, n) {
|
|
|
7520
7520
|
return l === 64 ? (e.consume(l), p) : ih(l) ? (e.consume(l), g) : n(l);
|
|
7521
7521
|
}
|
|
7522
7522
|
function p(l) {
|
|
7523
|
-
return
|
|
7523
|
+
return tt(l) ? u(l) : n(l);
|
|
7524
7524
|
}
|
|
7525
7525
|
function u(l) {
|
|
7526
7526
|
return l === 46 ? (e.consume(l), r = 0, p) : l === 62 ? (e.exit("autolinkProtocol").type = "autolinkEmail", e.enter("autolinkMarker"), e.consume(l), e.exit("autolinkMarker"), e.exit("autolink"), t) : c(l);
|
|
7527
7527
|
}
|
|
7528
7528
|
function c(l) {
|
|
7529
|
-
if ((l === 45 ||
|
|
7529
|
+
if ((l === 45 || tt(l)) && r++ < 63) {
|
|
7530
7530
|
const d = l === 45 ? c : u;
|
|
7531
7531
|
return e.consume(l), d;
|
|
7532
7532
|
}
|
|
@@ -7613,7 +7613,7 @@ function xh(e, t, n) {
|
|
|
7613
7613
|
return e.enter("characterReference"), e.enter("characterReferenceMarker"), e.consume(u), e.exit("characterReferenceMarker"), h;
|
|
7614
7614
|
}
|
|
7615
7615
|
function h(u) {
|
|
7616
|
-
return u === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(u), e.exit("characterReferenceMarkerNumeric"), g) : (e.enter("characterReferenceValue"), s = 31, o =
|
|
7616
|
+
return u === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(u), e.exit("characterReferenceMarkerNumeric"), g) : (e.enter("characterReferenceValue"), s = 31, o = tt, p(u));
|
|
7617
7617
|
}
|
|
7618
7618
|
function g(u) {
|
|
7619
7619
|
return u === 88 || u === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(u), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), s = 6, o = sh, p) : (e.enter("characterReferenceValue"), s = 7, o = Ya, p(u));
|
|
@@ -7621,7 +7621,7 @@ function xh(e, t, n) {
|
|
|
7621
7621
|
function p(u) {
|
|
7622
7622
|
if (u === 59 && a) {
|
|
7623
7623
|
const c = e.exit("characterReferenceValue");
|
|
7624
|
-
return o ===
|
|
7624
|
+
return o === tt && !bi(r.sliceSerialize(c)) ? n(u) : (e.enter("characterReferenceMarker"), e.consume(u), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
|
|
7625
7625
|
}
|
|
7626
7626
|
return o(u) && a++ < s ? (e.consume(u), p) : n(u);
|
|
7627
7627
|
}
|
|
@@ -7818,7 +7818,7 @@ function Bu(e) {
|
|
|
7818
7818
|
else if (r[1]._container) {
|
|
7819
7819
|
for (s = n, a = void 0; s-- && (o = e[s], o[1].type === "lineEnding" || o[1].type === "lineEndingBlank"); )
|
|
7820
7820
|
o[0] === "enter" && (a && (e[a][1].type = "lineEndingBlank"), o[1].type = "lineEnding", a = s);
|
|
7821
|
-
a && (r[1].end = Object.assign({}, e[a][1].start), i = e.slice(a, n), i.unshift(r),
|
|
7821
|
+
a && (r[1].end = Object.assign({}, e[a][1].start), i = e.slice(a, n), i.unshift(r), xt(e, a, n - a + 1, i));
|
|
7822
7822
|
}
|
|
7823
7823
|
}
|
|
7824
7824
|
return !g;
|
|
@@ -7839,7 +7839,7 @@ function Dh(e, t) {
|
|
|
7839
7839
|
i[c][0] === "exit" && i[c - 1][0] === "enter" && i[c][1].type === i[c - 1][1].type && i[c][1].start.line !== i[c][1].end.line && (f = c + 1, T.push(f), l._tokenizer = void 0, l.previous = void 0, l = l.next);
|
|
7840
7840
|
for (o.events = [], l ? (l._tokenizer = void 0, l.previous = void 0) : T.pop(), c = T.length; c--; ) {
|
|
7841
7841
|
const m = i.slice(T[c], T[c + 1]), E = s.pop();
|
|
7842
|
-
h.unshift([E, E + m.length - 1]),
|
|
7842
|
+
h.unshift([E, E + m.length - 1]), xt(e, E, 2, m);
|
|
7843
7843
|
}
|
|
7844
7844
|
for (c = -1; ++c < h.length; )
|
|
7845
7845
|
g[d + h[c][0]] = d + h[c][1], d += h[c][1] - h[c][0] - 1;
|
|
@@ -7914,7 +7914,7 @@ function Fu(e, t, n, r, a, s, o, i, h) {
|
|
|
7914
7914
|
return m === 60 || m === 62 || m === 92 ? (e.consume(m), l) : l(m);
|
|
7915
7915
|
}
|
|
7916
7916
|
function f(m) {
|
|
7917
|
-
return !p && (m === null || m === 41 ||
|
|
7917
|
+
return !p && (m === null || m === 41 || Ze(m)) ? (e.exit("chunkString"), e.exit(i), e.exit(o), e.exit(r), t(m)) : p < g && m === 40 ? (e.consume(m), p++, f) : m === 41 ? (e.consume(m), p--, f) : m === null || m === 32 || m === 40 || Va(m) ? n(m) : (e.consume(m), m === 92 ? T : f);
|
|
7918
7918
|
}
|
|
7919
7919
|
function T(m) {
|
|
7920
7920
|
return m === 40 || m === 41 || m === 92 ? (e.consume(m), f) : f(m);
|
|
@@ -8008,7 +8008,7 @@ function jh(e, t, n) {
|
|
|
8008
8008
|
), l === 58 ? (e.enter("definitionMarker"), e.consume(l), e.exit("definitionMarker"), h) : n(l);
|
|
8009
8009
|
}
|
|
8010
8010
|
function h(l) {
|
|
8011
|
-
return
|
|
8011
|
+
return Ze(l) ? Un(e, g)(l) : g(l);
|
|
8012
8012
|
}
|
|
8013
8013
|
function g(l) {
|
|
8014
8014
|
return Fu(
|
|
@@ -8036,7 +8036,7 @@ function jh(e, t, n) {
|
|
|
8036
8036
|
function zh(e, t, n) {
|
|
8037
8037
|
return r;
|
|
8038
8038
|
function r(i) {
|
|
8039
|
-
return
|
|
8039
|
+
return Ze(i) ? Un(e, a)(i) : n(i);
|
|
8040
8040
|
}
|
|
8041
8041
|
function a(i) {
|
|
8042
8042
|
return Uu(
|
|
@@ -8084,7 +8084,7 @@ function qh(e, t) {
|
|
|
8084
8084
|
start: e[r][1].start,
|
|
8085
8085
|
end: e[n][1].end,
|
|
8086
8086
|
contentType: "text"
|
|
8087
|
-
},
|
|
8087
|
+
}, xt(e, r, n - r + 1, [
|
|
8088
8088
|
["enter", a, t],
|
|
8089
8089
|
["enter", s, t],
|
|
8090
8090
|
["exit", s, t],
|
|
@@ -8101,7 +8101,7 @@ function Wh(e, t, n) {
|
|
|
8101
8101
|
return e.enter("atxHeadingSequence"), o(p);
|
|
8102
8102
|
}
|
|
8103
8103
|
function o(p) {
|
|
8104
|
-
return p === 35 && r++ < 6 ? (e.consume(p), o) : p === null ||
|
|
8104
|
+
return p === 35 && r++ < 6 ? (e.consume(p), o) : p === null || Ze(p) ? (e.exit("atxHeadingSequence"), i(p)) : n(p);
|
|
8105
8105
|
}
|
|
8106
8106
|
function i(p) {
|
|
8107
8107
|
return p === 35 ? (e.enter("atxHeadingSequence"), h(p)) : p === null || le(p) ? (e.exit("atxHeading"), t(p)) : ve(p) ? Ne(e, i, "whitespace")(p) : (e.enter("atxHeadingText"), g(p));
|
|
@@ -8110,7 +8110,7 @@ function Wh(e, t, n) {
|
|
|
8110
8110
|
return p === 35 ? (e.consume(p), h) : (e.exit("atxHeadingSequence"), i(p));
|
|
8111
8111
|
}
|
|
8112
8112
|
function g(p) {
|
|
8113
|
-
return p === null || p === 35 ||
|
|
8113
|
+
return p === null || p === 35 || Ze(p) ? (e.exit("atxHeadingText"), i(p)) : (e.consume(p), g);
|
|
8114
8114
|
}
|
|
8115
8115
|
}
|
|
8116
8116
|
const Xh = [
|
|
@@ -8205,27 +8205,27 @@ function e0(e, t, n) {
|
|
|
8205
8205
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(w), u;
|
|
8206
8206
|
}
|
|
8207
8207
|
function u(w) {
|
|
8208
|
-
return w === 33 ? (e.consume(w), c) : w === 47 ? (e.consume(w), s = !0, f) : w === 63 ? (e.consume(w), a = 3, r.interrupt ? t : I) :
|
|
8208
|
+
return w === 33 ? (e.consume(w), c) : w === 47 ? (e.consume(w), s = !0, f) : w === 63 ? (e.consume(w), a = 3, r.interrupt ? t : I) : vt(w) ? (e.consume(w), o = String.fromCharCode(w), T) : n(w);
|
|
8209
8209
|
}
|
|
8210
8210
|
function c(w) {
|
|
8211
|
-
return w === 45 ? (e.consume(w), a = 2, l) : w === 91 ? (e.consume(w), a = 5, i = 0, d) :
|
|
8211
|
+
return w === 45 ? (e.consume(w), a = 2, l) : w === 91 ? (e.consume(w), a = 5, i = 0, d) : vt(w) ? (e.consume(w), a = 4, r.interrupt ? t : I) : n(w);
|
|
8212
8212
|
}
|
|
8213
8213
|
function l(w) {
|
|
8214
8214
|
return w === 45 ? (e.consume(w), r.interrupt ? t : I) : n(w);
|
|
8215
8215
|
}
|
|
8216
8216
|
function d(w) {
|
|
8217
|
-
const
|
|
8218
|
-
return w ===
|
|
8217
|
+
const J = "CDATA[";
|
|
8218
|
+
return w === J.charCodeAt(i++) ? (e.consume(w), i === J.length ? r.interrupt ? t : M : d) : n(w);
|
|
8219
8219
|
}
|
|
8220
8220
|
function f(w) {
|
|
8221
|
-
return
|
|
8221
|
+
return vt(w) ? (e.consume(w), o = String.fromCharCode(w), T) : n(w);
|
|
8222
8222
|
}
|
|
8223
8223
|
function T(w) {
|
|
8224
|
-
if (w === null || w === 47 || w === 62 ||
|
|
8225
|
-
const
|
|
8226
|
-
return !
|
|
8224
|
+
if (w === null || w === 47 || w === 62 || Ze(w)) {
|
|
8225
|
+
const J = w === 47, ie = o.toLowerCase();
|
|
8226
|
+
return !J && !s && Ds.includes(ie) ? (a = 1, r.interrupt ? t(w) : M(w)) : Xh.includes(o.toLowerCase()) ? (a = 6, J ? (e.consume(w), m) : r.interrupt ? t(w) : M(w)) : (a = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(w) : s ? E(w) : y(w));
|
|
8227
8227
|
}
|
|
8228
|
-
return w === 45 ||
|
|
8228
|
+
return w === 45 || tt(w) ? (e.consume(w), o += String.fromCharCode(w), T) : n(w);
|
|
8229
8229
|
}
|
|
8230
8230
|
function m(w) {
|
|
8231
8231
|
return w === 62 ? (e.consume(w), r.interrupt ? t : M) : n(w);
|
|
@@ -8234,10 +8234,10 @@ function e0(e, t, n) {
|
|
|
8234
8234
|
return ve(w) ? (e.consume(w), E) : C(w);
|
|
8235
8235
|
}
|
|
8236
8236
|
function y(w) {
|
|
8237
|
-
return w === 47 ? (e.consume(w), C) : w === 58 || w === 95 ||
|
|
8237
|
+
return w === 47 ? (e.consume(w), C) : w === 58 || w === 95 || vt(w) ? (e.consume(w), A) : ve(w) ? (e.consume(w), y) : C(w);
|
|
8238
8238
|
}
|
|
8239
8239
|
function A(w) {
|
|
8240
|
-
return w === 45 || w === 46 || w === 58 || w === 95 ||
|
|
8240
|
+
return w === 45 || w === 46 || w === 58 || w === 95 || tt(w) ? (e.consume(w), A) : v(w);
|
|
8241
8241
|
}
|
|
8242
8242
|
function v(w) {
|
|
8243
8243
|
return w === 61 ? (e.consume(w), S) : ve(w) ? (e.consume(w), v) : y(w);
|
|
@@ -8249,7 +8249,7 @@ function e0(e, t, n) {
|
|
|
8249
8249
|
return w === h ? (e.consume(w), h = null, x) : w === null || le(w) ? n(w) : (e.consume(w), N);
|
|
8250
8250
|
}
|
|
8251
8251
|
function _(w) {
|
|
8252
|
-
return w === null || w === 34 || w === 39 || w === 47 || w === 60 || w === 61 || w === 62 || w === 96 ||
|
|
8252
|
+
return w === null || w === 34 || w === 39 || w === 47 || w === 60 || w === 61 || w === 62 || w === 96 || Ze(w) ? v(w) : (e.consume(w), _);
|
|
8253
8253
|
}
|
|
8254
8254
|
function x(w) {
|
|
8255
8255
|
return w === 47 || w === 62 || ve(w) ? y(w) : n(w);
|
|
@@ -8288,10 +8288,10 @@ function e0(e, t, n) {
|
|
|
8288
8288
|
}
|
|
8289
8289
|
function he(w) {
|
|
8290
8290
|
if (w === 62) {
|
|
8291
|
-
const
|
|
8292
|
-
return Ds.includes(
|
|
8291
|
+
const J = o.toLowerCase();
|
|
8292
|
+
return Ds.includes(J) ? (e.consume(w), U) : M(w);
|
|
8293
8293
|
}
|
|
8294
|
-
return
|
|
8294
|
+
return vt(w) && o.length < 8 ? (e.consume(w), o += String.fromCharCode(w), he) : M(w);
|
|
8295
8295
|
}
|
|
8296
8296
|
function ye(w) {
|
|
8297
8297
|
return w === 93 ? (e.consume(w), I) : M(w);
|
|
@@ -8334,10 +8334,10 @@ function a0(e, t, n) {
|
|
|
8334
8334
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(I), h;
|
|
8335
8335
|
}
|
|
8336
8336
|
function h(I) {
|
|
8337
|
-
return I === 33 ? (e.consume(I), g) : I === 47 ? (e.consume(I), v) : I === 63 ? (e.consume(I), y) :
|
|
8337
|
+
return I === 33 ? (e.consume(I), g) : I === 47 ? (e.consume(I), v) : I === 63 ? (e.consume(I), y) : vt(I) ? (e.consume(I), _) : n(I);
|
|
8338
8338
|
}
|
|
8339
8339
|
function g(I) {
|
|
8340
|
-
return I === 45 ? (e.consume(I), p) : I === 91 ? (e.consume(I), s = 0, d) :
|
|
8340
|
+
return I === 45 ? (e.consume(I), p) : I === 91 ? (e.consume(I), s = 0, d) : vt(I) ? (e.consume(I), E) : n(I);
|
|
8341
8341
|
}
|
|
8342
8342
|
function p(I) {
|
|
8343
8343
|
return I === 45 ? (e.consume(I), l) : n(I);
|
|
@@ -8374,22 +8374,22 @@ function a0(e, t, n) {
|
|
|
8374
8374
|
return I === 62 ? K(I) : y(I);
|
|
8375
8375
|
}
|
|
8376
8376
|
function v(I) {
|
|
8377
|
-
return
|
|
8377
|
+
return vt(I) ? (e.consume(I), S) : n(I);
|
|
8378
8378
|
}
|
|
8379
8379
|
function S(I) {
|
|
8380
|
-
return I === 45 ||
|
|
8380
|
+
return I === 45 || tt(I) ? (e.consume(I), S) : N(I);
|
|
8381
8381
|
}
|
|
8382
8382
|
function N(I) {
|
|
8383
8383
|
return le(I) ? (o = N, te(I)) : ve(I) ? (e.consume(I), N) : K(I);
|
|
8384
8384
|
}
|
|
8385
8385
|
function _(I) {
|
|
8386
|
-
return I === 45 ||
|
|
8386
|
+
return I === 45 || tt(I) ? (e.consume(I), _) : I === 47 || I === 62 || Ze(I) ? x(I) : n(I);
|
|
8387
8387
|
}
|
|
8388
8388
|
function x(I) {
|
|
8389
|
-
return I === 47 ? (e.consume(I), K) : I === 58 || I === 95 ||
|
|
8389
|
+
return I === 47 ? (e.consume(I), K) : I === 58 || I === 95 || vt(I) ? (e.consume(I), C) : le(I) ? (o = x, te(I)) : ve(I) ? (e.consume(I), x) : K(I);
|
|
8390
8390
|
}
|
|
8391
8391
|
function C(I) {
|
|
8392
|
-
return I === 45 || I === 46 || I === 58 || I === 95 ||
|
|
8392
|
+
return I === 45 || I === 46 || I === 58 || I === 95 || tt(I) ? (e.consume(I), C) : L(I);
|
|
8393
8393
|
}
|
|
8394
8394
|
function L(I) {
|
|
8395
8395
|
return I === 61 ? (e.consume(I), M) : le(I) ? (o = L, te(I)) : ve(I) ? (e.consume(I), L) : x(I);
|
|
@@ -8401,10 +8401,10 @@ function a0(e, t, n) {
|
|
|
8401
8401
|
return I === a ? (e.consume(I), a = void 0, j) : I === null ? n(I) : le(I) ? (o = B, te(I)) : (e.consume(I), B);
|
|
8402
8402
|
}
|
|
8403
8403
|
function $(I) {
|
|
8404
|
-
return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 ||
|
|
8404
|
+
return I === null || I === 34 || I === 39 || I === 60 || I === 61 || I === 96 ? n(I) : I === 47 || I === 62 || Ze(I) ? x(I) : (e.consume(I), $);
|
|
8405
8405
|
}
|
|
8406
8406
|
function j(I) {
|
|
8407
|
-
return I === 47 || I === 62 ||
|
|
8407
|
+
return I === 47 || I === 62 || Ze(I) ? x(I) : n(I);
|
|
8408
8408
|
}
|
|
8409
8409
|
function K(I) {
|
|
8410
8410
|
return I === 62 ? (e.consume(I), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(I);
|
|
@@ -8485,7 +8485,7 @@ function l0(e, t) {
|
|
|
8485
8485
|
e[o - 2],
|
|
8486
8486
|
e[o - 1],
|
|
8487
8487
|
["exit", g, t]
|
|
8488
|
-
]), i = at(i, e.slice(o + 1)), i = at(i, [["exit", h, t]]),
|
|
8488
|
+
]), i = at(i, e.slice(o + 1)), i = at(i, [["exit", h, t]]), xt(e, s, e.length, i), e;
|
|
8489
8489
|
}
|
|
8490
8490
|
function c0(e, t, n) {
|
|
8491
8491
|
const r = this;
|
|
@@ -8537,7 +8537,7 @@ function f0(e, t, n) {
|
|
|
8537
8537
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(u), e.exit("resourceMarker"), a;
|
|
8538
8538
|
}
|
|
8539
8539
|
function a(u) {
|
|
8540
|
-
return
|
|
8540
|
+
return Ze(u) ? Un(e, s)(u) : s(u);
|
|
8541
8541
|
}
|
|
8542
8542
|
function s(u) {
|
|
8543
8543
|
return u === 41 ? p(u) : Fu(
|
|
@@ -8553,7 +8553,7 @@ function f0(e, t, n) {
|
|
|
8553
8553
|
)(u);
|
|
8554
8554
|
}
|
|
8555
8555
|
function o(u) {
|
|
8556
|
-
return
|
|
8556
|
+
return Ze(u) ? Un(e, h)(u) : p(u);
|
|
8557
8557
|
}
|
|
8558
8558
|
function i(u) {
|
|
8559
8559
|
return n(u);
|
|
@@ -8569,7 +8569,7 @@ function f0(e, t, n) {
|
|
|
8569
8569
|
)(u) : p(u);
|
|
8570
8570
|
}
|
|
8571
8571
|
function g(u) {
|
|
8572
|
-
return
|
|
8572
|
+
return Ze(u) ? Un(e, p)(u) : p(u);
|
|
8573
8573
|
}
|
|
8574
8574
|
function p(u) {
|
|
8575
8575
|
return u === 41 ? (e.enter("resourceMarker"), e.consume(u), e.exit("resourceMarker"), e.exit("resource"), t) : n(u);
|
|
@@ -8672,7 +8672,7 @@ function T0(e, t, n) {
|
|
|
8672
8672
|
return g === a ? (e.consume(g), r++, h) : (e.exit("thematicBreakSequence"), ve(g) ? Ne(e, i, "whitespace")(g) : i(g));
|
|
8673
8673
|
}
|
|
8674
8674
|
}
|
|
8675
|
-
const
|
|
8675
|
+
const Ke = {
|
|
8676
8676
|
name: "list",
|
|
8677
8677
|
tokenize: v0,
|
|
8678
8678
|
continuation: {
|
|
@@ -8744,7 +8744,7 @@ function A0(e, t, n) {
|
|
|
8744
8744
|
function o(i) {
|
|
8745
8745
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, Ne(
|
|
8746
8746
|
e,
|
|
8747
|
-
e.attempt(
|
|
8747
|
+
e.attempt(Ke, t, n),
|
|
8748
8748
|
"linePrefix",
|
|
8749
8749
|
r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
|
|
8750
8750
|
)(i);
|
|
@@ -9055,45 +9055,45 @@ function k0(e, t, n) {
|
|
|
9055
9055
|
// @ts-expect-error Looks like a construct.
|
|
9056
9056
|
Z([$])
|
|
9057
9057
|
) : U($);
|
|
9058
|
-
function U(
|
|
9059
|
-
return
|
|
9060
|
-
function
|
|
9061
|
-
const
|
|
9058
|
+
function U(ee) {
|
|
9059
|
+
return ae;
|
|
9060
|
+
function ae(ue) {
|
|
9061
|
+
const se = ue !== null && ee[ue], ne = ue !== null && ee.null, we = [
|
|
9062
9062
|
// To do: add more extension tests.
|
|
9063
9063
|
/* c8 ignore next 2 */
|
|
9064
|
-
...Array.isArray(
|
|
9065
|
-
...Array.isArray(
|
|
9064
|
+
...Array.isArray(se) ? se : se ? [se] : [],
|
|
9065
|
+
...Array.isArray(ne) ? ne : ne ? [ne] : []
|
|
9066
9066
|
];
|
|
9067
|
-
return Z(we)(
|
|
9067
|
+
return Z(we)(ue);
|
|
9068
9068
|
}
|
|
9069
9069
|
}
|
|
9070
|
-
function Z(
|
|
9071
|
-
return te =
|
|
9070
|
+
function Z(ee) {
|
|
9071
|
+
return te = ee, he = 0, ee.length === 0 ? K : w(ee[he]);
|
|
9072
9072
|
}
|
|
9073
|
-
function w(
|
|
9074
|
-
return
|
|
9075
|
-
function
|
|
9076
|
-
return I = x(), ye =
|
|
9073
|
+
function w(ee) {
|
|
9074
|
+
return ae;
|
|
9075
|
+
function ae(ue) {
|
|
9076
|
+
return I = x(), ye = ee, ee.partial || (g.currentConstruct = ee), ee.name && g.parser.constructs.disable.null.includes(ee.name) ? ie() : ee.tokenize.call(
|
|
9077
9077
|
// If we do have fields, create an object w/ `context` as its
|
|
9078
9078
|
// prototype.
|
|
9079
9079
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
9080
9080
|
M ? Object.assign(Object.create(g), M) : g,
|
|
9081
9081
|
h,
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
)(
|
|
9082
|
+
J,
|
|
9083
|
+
ie
|
|
9084
|
+
)(ue);
|
|
9085
9085
|
}
|
|
9086
9086
|
}
|
|
9087
|
-
function ee
|
|
9087
|
+
function J(ee) {
|
|
9088
9088
|
return L(ye, I), j;
|
|
9089
9089
|
}
|
|
9090
|
-
function
|
|
9090
|
+
function ie(ee) {
|
|
9091
9091
|
return I.restore(), ++he < te.length ? w(te[he]) : K;
|
|
9092
9092
|
}
|
|
9093
9093
|
}
|
|
9094
9094
|
}
|
|
9095
9095
|
function _(L, M) {
|
|
9096
|
-
L.resolveAll && !s.includes(L) && s.push(L), L.resolve &&
|
|
9096
|
+
L.resolveAll && !s.includes(L) && s.push(L), L.resolve && xt(
|
|
9097
9097
|
g.events,
|
|
9098
9098
|
M,
|
|
9099
9099
|
g.events.length - M,
|
|
@@ -9170,19 +9170,19 @@ function B0(e, t) {
|
|
|
9170
9170
|
return r.join("");
|
|
9171
9171
|
}
|
|
9172
9172
|
const F0 = {
|
|
9173
|
-
42:
|
|
9174
|
-
43:
|
|
9175
|
-
45:
|
|
9176
|
-
48:
|
|
9177
|
-
49:
|
|
9178
|
-
50:
|
|
9179
|
-
51:
|
|
9180
|
-
52:
|
|
9181
|
-
53:
|
|
9182
|
-
54:
|
|
9183
|
-
55:
|
|
9184
|
-
56:
|
|
9185
|
-
57:
|
|
9173
|
+
42: Ke,
|
|
9174
|
+
43: Ke,
|
|
9175
|
+
45: Ke,
|
|
9176
|
+
48: Ke,
|
|
9177
|
+
49: Ke,
|
|
9178
|
+
50: Ke,
|
|
9179
|
+
51: Ke,
|
|
9180
|
+
52: Ke,
|
|
9181
|
+
53: Ke,
|
|
9182
|
+
54: Ke,
|
|
9183
|
+
55: Ke,
|
|
9184
|
+
56: Ke,
|
|
9185
|
+
57: Ke,
|
|
9186
9186
|
62: Du
|
|
9187
9187
|
}, H0 = {
|
|
9188
9188
|
91: Uh
|
|
@@ -9325,14 +9325,14 @@ function tm(e) {
|
|
|
9325
9325
|
autolink: s(Sn),
|
|
9326
9326
|
autolinkProtocol: x,
|
|
9327
9327
|
autolinkEmail: x,
|
|
9328
|
-
atxHeading: s(
|
|
9329
|
-
blockQuote: s(
|
|
9328
|
+
atxHeading: s(We),
|
|
9329
|
+
blockQuote: s(se),
|
|
9330
9330
|
characterEscape: x,
|
|
9331
9331
|
characterReference: x,
|
|
9332
|
-
codeFenced: s(
|
|
9332
|
+
codeFenced: s(ne),
|
|
9333
9333
|
codeFencedFenceInfo: o,
|
|
9334
9334
|
codeFencedFenceMeta: o,
|
|
9335
|
-
codeIndented: s(
|
|
9335
|
+
codeIndented: s(ne, o),
|
|
9336
9336
|
codeText: s(we, o),
|
|
9337
9337
|
codeTextData: x,
|
|
9338
9338
|
data: x,
|
|
@@ -9341,12 +9341,12 @@ function tm(e) {
|
|
|
9341
9341
|
definitionDestinationString: o,
|
|
9342
9342
|
definitionLabelString: o,
|
|
9343
9343
|
definitionTitleString: o,
|
|
9344
|
-
emphasis: s(
|
|
9345
|
-
hardBreakEscape: s(
|
|
9346
|
-
hardBreakTrailing: s(
|
|
9347
|
-
htmlFlow: s(
|
|
9344
|
+
emphasis: s($e),
|
|
9345
|
+
hardBreakEscape: s(Je),
|
|
9346
|
+
hardBreakTrailing: s(Je),
|
|
9347
|
+
htmlFlow: s(pt, o),
|
|
9348
9348
|
htmlFlowData: x,
|
|
9349
|
-
htmlText: s(
|
|
9349
|
+
htmlText: s(pt, o),
|
|
9350
9350
|
htmlTextData: x,
|
|
9351
9351
|
image: s(ar),
|
|
9352
9352
|
label: o,
|
|
@@ -9360,7 +9360,7 @@ function tm(e) {
|
|
|
9360
9360
|
referenceString: o,
|
|
9361
9361
|
resourceDestinationString: o,
|
|
9362
9362
|
resourceTitleString: o,
|
|
9363
|
-
setextHeading: s(
|
|
9363
|
+
setextHeading: s(We),
|
|
9364
9364
|
strong: s(Cn),
|
|
9365
9365
|
thematicBreak: s(Wr)
|
|
9366
9366
|
},
|
|
@@ -9368,13 +9368,13 @@ function tm(e) {
|
|
|
9368
9368
|
atxHeading: h(),
|
|
9369
9369
|
atxHeadingSequence: v,
|
|
9370
9370
|
autolink: h(),
|
|
9371
|
-
autolinkEmail:
|
|
9372
|
-
autolinkProtocol:
|
|
9371
|
+
autolinkEmail: ue,
|
|
9372
|
+
autolinkProtocol: ae,
|
|
9373
9373
|
blockQuote: h(),
|
|
9374
9374
|
characterEscapeValue: C,
|
|
9375
|
-
characterReferenceMarkerHexadecimal:
|
|
9376
|
-
characterReferenceMarkerNumeric:
|
|
9377
|
-
characterReferenceValue:
|
|
9375
|
+
characterReferenceMarkerHexadecimal: ie,
|
|
9376
|
+
characterReferenceMarkerNumeric: ie,
|
|
9377
|
+
characterReferenceValue: ee,
|
|
9378
9378
|
codeFenced: h(T),
|
|
9379
9379
|
codeFencedFence: f,
|
|
9380
9380
|
codeFencedFenceInfo: l,
|
|
@@ -9404,7 +9404,7 @@ function tm(e) {
|
|
|
9404
9404
|
listOrdered: h(),
|
|
9405
9405
|
listUnordered: h(),
|
|
9406
9406
|
paragraph: h(),
|
|
9407
|
-
referenceString:
|
|
9407
|
+
referenceString: J,
|
|
9408
9408
|
resourceDestinationString: I,
|
|
9409
9409
|
resourceTitleString: U,
|
|
9410
9410
|
resource: Z,
|
|
@@ -9439,12 +9439,12 @@ function tm(e) {
|
|
|
9439
9439
|
if (H[_e][0] === "enter")
|
|
9440
9440
|
pe.push(_e);
|
|
9441
9441
|
else {
|
|
9442
|
-
const
|
|
9443
|
-
_e = a(H,
|
|
9442
|
+
const Xe = pe.pop();
|
|
9443
|
+
_e = a(H, Xe, _e);
|
|
9444
9444
|
}
|
|
9445
9445
|
for (_e = -1; ++_e < H.length; ) {
|
|
9446
|
-
const
|
|
9447
|
-
zu.call(
|
|
9446
|
+
const Xe = t[H[_e][0]];
|
|
9447
|
+
zu.call(Xe, H[_e][1].type) && Xe[H[_e][1].type].call(
|
|
9448
9448
|
Object.assign(
|
|
9449
9449
|
{
|
|
9450
9450
|
sliceSerialize: H[_e][2].sliceSerialize
|
|
@@ -9455,18 +9455,18 @@ function tm(e) {
|
|
|
9455
9455
|
);
|
|
9456
9456
|
}
|
|
9457
9457
|
if (oe.tokenStack.length > 0) {
|
|
9458
|
-
const
|
|
9459
|
-
(
|
|
9458
|
+
const Xe = oe.tokenStack[oe.tokenStack.length - 1];
|
|
9459
|
+
(Xe[1] || Bs).call(oe, void 0, Xe[0]);
|
|
9460
9460
|
}
|
|
9461
9461
|
for (q.position = {
|
|
9462
|
-
start:
|
|
9462
|
+
start: Lt(
|
|
9463
9463
|
H.length > 0 ? H[0][1].start : {
|
|
9464
9464
|
line: 1,
|
|
9465
9465
|
column: 1,
|
|
9466
9466
|
offset: 0
|
|
9467
9467
|
}
|
|
9468
9468
|
),
|
|
9469
|
-
end:
|
|
9469
|
+
end: Lt(
|
|
9470
9470
|
H.length > 0 ? H[H.length - 2][1].end : {
|
|
9471
9471
|
line: 1,
|
|
9472
9472
|
column: 1,
|
|
@@ -9478,7 +9478,7 @@ function tm(e) {
|
|
|
9478
9478
|
return q;
|
|
9479
9479
|
}
|
|
9480
9480
|
function a(H, q, oe) {
|
|
9481
|
-
let pe = q - 1, _e = -1,
|
|
9481
|
+
let pe = q - 1, _e = -1, Xe = !1, ct, ft, $t, jt;
|
|
9482
9482
|
for (; ++pe <= oe; ) {
|
|
9483
9483
|
const Ye = H[pe];
|
|
9484
9484
|
switch (Ye[1].type) {
|
|
@@ -9503,12 +9503,12 @@ function tm(e) {
|
|
|
9503
9503
|
}
|
|
9504
9504
|
if (!_e && Ye[0] === "enter" && Ye[1].type === "listItemPrefix" || _e === -1 && Ye[0] === "exit" && (Ye[1].type === "listUnordered" || Ye[1].type === "listOrdered")) {
|
|
9505
9505
|
if (ct) {
|
|
9506
|
-
let
|
|
9507
|
-
for (ft = void 0;
|
|
9508
|
-
const dt = H[
|
|
9506
|
+
let wt = pe;
|
|
9507
|
+
for (ft = void 0; wt--; ) {
|
|
9508
|
+
const dt = H[wt];
|
|
9509
9509
|
if (dt[1].type === "lineEnding" || dt[1].type === "lineEndingBlank") {
|
|
9510
9510
|
if (dt[0] === "exit") continue;
|
|
9511
|
-
ft && (H[ft][1].type = "lineEndingBlank",
|
|
9511
|
+
ft && (H[ft][1].type = "lineEndingBlank", Xe = !0), dt[1].type = "lineEnding", ft = wt;
|
|
9512
9512
|
} else if (!(dt[1].type === "linePrefix" || dt[1].type === "blockQuotePrefix" || dt[1].type === "blockQuotePrefixWhitespace" || dt[1].type === "blockQuoteMarker" || dt[1].type === "listItemIndent")) break;
|
|
9513
9513
|
}
|
|
9514
9514
|
$t && (!ft || $t < ft) && (ct._spread = !0), ct.end = Object.assign(
|
|
@@ -9517,18 +9517,18 @@ function tm(e) {
|
|
|
9517
9517
|
), H.splice(ft || pe, 0, ["exit", ct, Ye[2]]), pe++, oe++;
|
|
9518
9518
|
}
|
|
9519
9519
|
if (Ye[1].type === "listItemPrefix") {
|
|
9520
|
-
const
|
|
9520
|
+
const wt = {
|
|
9521
9521
|
type: "listItem",
|
|
9522
9522
|
_spread: !1,
|
|
9523
9523
|
start: Object.assign({}, Ye[1].start),
|
|
9524
9524
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
9525
9525
|
end: void 0
|
|
9526
9526
|
};
|
|
9527
|
-
ct =
|
|
9527
|
+
ct = wt, H.splice(pe, 0, ["enter", wt, Ye[2]]), pe++, oe++, $t = void 0, jt = !0;
|
|
9528
9528
|
}
|
|
9529
9529
|
}
|
|
9530
9530
|
}
|
|
9531
|
-
return H[q][1]._spread =
|
|
9531
|
+
return H[q][1]._spread = Xe, oe;
|
|
9532
9532
|
}
|
|
9533
9533
|
function s(H, q) {
|
|
9534
9534
|
return oe;
|
|
@@ -9544,7 +9544,7 @@ function tm(e) {
|
|
|
9544
9544
|
}
|
|
9545
9545
|
function i(H, q, oe) {
|
|
9546
9546
|
this.stack[this.stack.length - 1].children.push(H), this.stack.push(H), this.tokenStack.push([q, oe]), H.position = {
|
|
9547
|
-
start:
|
|
9547
|
+
start: Lt(q.start),
|
|
9548
9548
|
// @ts-expect-error: `end` will be patched later.
|
|
9549
9549
|
end: void 0
|
|
9550
9550
|
};
|
|
@@ -9565,7 +9565,7 @@ function tm(e) {
|
|
|
9565
9565
|
end: H.end
|
|
9566
9566
|
}) + "): it’s not open"
|
|
9567
9567
|
);
|
|
9568
|
-
oe.position.end =
|
|
9568
|
+
oe.position.end = Lt(H.end);
|
|
9569
9569
|
}
|
|
9570
9570
|
function p() {
|
|
9571
9571
|
return eh(this.stack.pop());
|
|
@@ -9633,20 +9633,20 @@ function tm(e) {
|
|
|
9633
9633
|
const oe = this.stack[this.stack.length - 1].children;
|
|
9634
9634
|
let pe = oe[oe.length - 1];
|
|
9635
9635
|
(!pe || pe.type !== "text") && (pe = qr(), pe.position = {
|
|
9636
|
-
start:
|
|
9636
|
+
start: Lt(H.start),
|
|
9637
9637
|
// @ts-expect-error: we’ll add `end` later.
|
|
9638
9638
|
end: void 0
|
|
9639
9639
|
}, oe.push(pe)), this.stack.push(pe);
|
|
9640
9640
|
}
|
|
9641
9641
|
function C(H) {
|
|
9642
9642
|
const q = this.stack.pop();
|
|
9643
|
-
q.value += this.sliceSerialize(H), q.position.end =
|
|
9643
|
+
q.value += this.sliceSerialize(H), q.position.end = Lt(H.end);
|
|
9644
9644
|
}
|
|
9645
9645
|
function L(H) {
|
|
9646
9646
|
const q = this.stack[this.stack.length - 1];
|
|
9647
9647
|
if (this.data.atHardBreak) {
|
|
9648
9648
|
const oe = q.children[q.children.length - 1];
|
|
9649
|
-
oe.position.end =
|
|
9649
|
+
oe.position.end = Lt(H.end), this.data.atHardBreak = void 0;
|
|
9650
9650
|
return;
|
|
9651
9651
|
}
|
|
9652
9652
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(q.type) && (x.call(this, H), C.call(this, H));
|
|
@@ -9710,16 +9710,16 @@ function tm(e) {
|
|
|
9710
9710
|
function w() {
|
|
9711
9711
|
this.data.referenceType = "collapsed";
|
|
9712
9712
|
}
|
|
9713
|
-
function
|
|
9713
|
+
function J(H) {
|
|
9714
9714
|
const q = this.resume(), oe = this.stack[this.stack.length - 1];
|
|
9715
9715
|
oe.label = q, oe.identifier = mn(
|
|
9716
9716
|
this.sliceSerialize(H)
|
|
9717
9717
|
).toLowerCase(), this.data.referenceType = "full";
|
|
9718
9718
|
}
|
|
9719
|
-
function
|
|
9719
|
+
function ie(H) {
|
|
9720
9720
|
this.data.characterReferenceType = H.type;
|
|
9721
9721
|
}
|
|
9722
|
-
function
|
|
9722
|
+
function ee(H) {
|
|
9723
9723
|
const q = this.sliceSerialize(H), oe = this.data.characterReferenceType;
|
|
9724
9724
|
let pe;
|
|
9725
9725
|
oe ? (pe = Pu(
|
|
@@ -9727,25 +9727,25 @@ function tm(e) {
|
|
|
9727
9727
|
oe === "characterReferenceMarkerNumeric" ? 10 : 16
|
|
9728
9728
|
), this.data.characterReferenceType = void 0) : pe = bi(q);
|
|
9729
9729
|
const _e = this.stack.pop();
|
|
9730
|
-
_e.value += pe, _e.position.end =
|
|
9730
|
+
_e.value += pe, _e.position.end = Lt(H.end);
|
|
9731
9731
|
}
|
|
9732
|
-
function
|
|
9732
|
+
function ae(H) {
|
|
9733
9733
|
C.call(this, H);
|
|
9734
9734
|
const q = this.stack[this.stack.length - 1];
|
|
9735
9735
|
q.url = this.sliceSerialize(H);
|
|
9736
9736
|
}
|
|
9737
|
-
function
|
|
9737
|
+
function ue(H) {
|
|
9738
9738
|
C.call(this, H);
|
|
9739
9739
|
const q = this.stack[this.stack.length - 1];
|
|
9740
9740
|
q.url = "mailto:" + this.sliceSerialize(H);
|
|
9741
9741
|
}
|
|
9742
|
-
function
|
|
9742
|
+
function se() {
|
|
9743
9743
|
return {
|
|
9744
9744
|
type: "blockquote",
|
|
9745
9745
|
children: []
|
|
9746
9746
|
};
|
|
9747
9747
|
}
|
|
9748
|
-
function
|
|
9748
|
+
function ne() {
|
|
9749
9749
|
return {
|
|
9750
9750
|
type: "code",
|
|
9751
9751
|
lang: null,
|
|
@@ -9768,13 +9768,13 @@ function tm(e) {
|
|
|
9768
9768
|
url: ""
|
|
9769
9769
|
};
|
|
9770
9770
|
}
|
|
9771
|
-
function
|
|
9771
|
+
function $e() {
|
|
9772
9772
|
return {
|
|
9773
9773
|
type: "emphasis",
|
|
9774
9774
|
children: []
|
|
9775
9775
|
};
|
|
9776
9776
|
}
|
|
9777
|
-
function
|
|
9777
|
+
function We() {
|
|
9778
9778
|
return {
|
|
9779
9779
|
type: "heading",
|
|
9780
9780
|
// @ts-expect-error `depth` will be set later.
|
|
@@ -9782,12 +9782,12 @@ function tm(e) {
|
|
|
9782
9782
|
children: []
|
|
9783
9783
|
};
|
|
9784
9784
|
}
|
|
9785
|
-
function
|
|
9785
|
+
function Je() {
|
|
9786
9786
|
return {
|
|
9787
9787
|
type: "break"
|
|
9788
9788
|
};
|
|
9789
9789
|
}
|
|
9790
|
-
function
|
|
9790
|
+
function pt() {
|
|
9791
9791
|
return {
|
|
9792
9792
|
type: "html",
|
|
9793
9793
|
value: ""
|
|
@@ -9850,7 +9850,7 @@ function tm(e) {
|
|
|
9850
9850
|
};
|
|
9851
9851
|
}
|
|
9852
9852
|
}
|
|
9853
|
-
function
|
|
9853
|
+
function Lt(e) {
|
|
9854
9854
|
return {
|
|
9855
9855
|
line: e.line,
|
|
9856
9856
|
column: e.column,
|
|
@@ -10158,7 +10158,7 @@ function Am(e, t) {
|
|
|
10158
10158
|
tagName: "tbody",
|
|
10159
10159
|
properties: {},
|
|
10160
10160
|
children: e.wrap(n, !0)
|
|
10161
|
-
}, i =
|
|
10161
|
+
}, i = Ct(t.children[1]), h = kr(t.children[t.children.length - 1]);
|
|
10162
10162
|
i && h && (o.position = { start: i, end: h }), a.push(o);
|
|
10163
10163
|
}
|
|
10164
10164
|
const s = {
|
|
@@ -10854,7 +10854,7 @@ function tp(e, t) {
|
|
|
10854
10854
|
a(null, o);
|
|
10855
10855
|
}
|
|
10856
10856
|
}
|
|
10857
|
-
const
|
|
10857
|
+
const bt = { basename: np, dirname: rp, extname: ap, join: ip, sep: "/" };
|
|
10858
10858
|
function np(e, t) {
|
|
10859
10859
|
if (t !== void 0 && typeof t != "string")
|
|
10860
10860
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -11060,7 +11060,7 @@ class Ju {
|
|
|
11060
11060
|
* Basename.
|
|
11061
11061
|
*/
|
|
11062
11062
|
get basename() {
|
|
11063
|
-
return typeof this.path == "string" ?
|
|
11063
|
+
return typeof this.path == "string" ? bt.basename(this.path) : void 0;
|
|
11064
11064
|
}
|
|
11065
11065
|
/**
|
|
11066
11066
|
* Set basename (including extname) (`'index.min.js'`).
|
|
@@ -11075,7 +11075,7 @@ class Ju {
|
|
|
11075
11075
|
* Nothing.
|
|
11076
11076
|
*/
|
|
11077
11077
|
set basename(t) {
|
|
11078
|
-
ba(t, "basename"), ga(t, "basename"), this.path =
|
|
11078
|
+
ba(t, "basename"), ga(t, "basename"), this.path = bt.join(this.dirname || "", t);
|
|
11079
11079
|
}
|
|
11080
11080
|
/**
|
|
11081
11081
|
* Get the parent path (example: `'~'`).
|
|
@@ -11084,7 +11084,7 @@ class Ju {
|
|
|
11084
11084
|
* Dirname.
|
|
11085
11085
|
*/
|
|
11086
11086
|
get dirname() {
|
|
11087
|
-
return typeof this.path == "string" ?
|
|
11087
|
+
return typeof this.path == "string" ? bt.dirname(this.path) : void 0;
|
|
11088
11088
|
}
|
|
11089
11089
|
/**
|
|
11090
11090
|
* Set the parent path (example: `'~'`).
|
|
@@ -11097,7 +11097,7 @@ class Ju {
|
|
|
11097
11097
|
* Nothing.
|
|
11098
11098
|
*/
|
|
11099
11099
|
set dirname(t) {
|
|
11100
|
-
eo(this.basename, "dirname"), this.path =
|
|
11100
|
+
eo(this.basename, "dirname"), this.path = bt.join(t || "", this.basename);
|
|
11101
11101
|
}
|
|
11102
11102
|
/**
|
|
11103
11103
|
* Get the extname (including dot) (example: `'.js'`).
|
|
@@ -11106,7 +11106,7 @@ class Ju {
|
|
|
11106
11106
|
* Extname.
|
|
11107
11107
|
*/
|
|
11108
11108
|
get extname() {
|
|
11109
|
-
return typeof this.path == "string" ?
|
|
11109
|
+
return typeof this.path == "string" ? bt.extname(this.path) : void 0;
|
|
11110
11110
|
}
|
|
11111
11111
|
/**
|
|
11112
11112
|
* Set the extname (including dot) (example: `'.js'`).
|
|
@@ -11127,7 +11127,7 @@ class Ju {
|
|
|
11127
11127
|
if (t.includes(".", 1))
|
|
11128
11128
|
throw new Error("`extname` cannot contain multiple dots");
|
|
11129
11129
|
}
|
|
11130
|
-
this.path =
|
|
11130
|
+
this.path = bt.join(this.dirname, this.stem + (t || ""));
|
|
11131
11131
|
}
|
|
11132
11132
|
/**
|
|
11133
11133
|
* Get the full path (example: `'~/index.min.js'`).
|
|
@@ -11160,7 +11160,7 @@ class Ju {
|
|
|
11160
11160
|
* Stem.
|
|
11161
11161
|
*/
|
|
11162
11162
|
get stem() {
|
|
11163
|
-
return typeof this.path == "string" ?
|
|
11163
|
+
return typeof this.path == "string" ? bt.basename(this.path, this.extname) : void 0;
|
|
11164
11164
|
}
|
|
11165
11165
|
/**
|
|
11166
11166
|
* Set the stem (basename w/o extname) (example: `'index.min'`).
|
|
@@ -11175,7 +11175,7 @@ class Ju {
|
|
|
11175
11175
|
* Nothing.
|
|
11176
11176
|
*/
|
|
11177
11177
|
set stem(t) {
|
|
11178
|
-
ba(t, "stem"), ga(t, "stem"), this.path =
|
|
11178
|
+
ba(t, "stem"), ga(t, "stem"), this.path = bt.join(this.dirname || "", t + (this.extname || ""));
|
|
11179
11179
|
}
|
|
11180
11180
|
// Normal prototypal methods.
|
|
11181
11181
|
/**
|
|
@@ -11389,9 +11389,9 @@ class Ju {
|
|
|
11389
11389
|
}
|
|
11390
11390
|
}
|
|
11391
11391
|
function ga(e, t) {
|
|
11392
|
-
if (e && e.includes(
|
|
11392
|
+
if (e && e.includes(bt.sep))
|
|
11393
11393
|
throw new Error(
|
|
11394
|
-
"`" + t + "` cannot be a path: did not expect `" +
|
|
11394
|
+
"`" + t + "` cannot be a path: did not expect `" + bt.sep + "`"
|
|
11395
11395
|
);
|
|
11396
11396
|
}
|
|
11397
11397
|
function ba(e, t) {
|
|
@@ -12184,7 +12184,7 @@ const Rp = [
|
|
|
12184
12184
|
"solidColor",
|
|
12185
12185
|
"textArea",
|
|
12186
12186
|
"textPath"
|
|
12187
|
-
], wp = el(Jn, "div"), Lp = el(
|
|
12187
|
+
], wp = el(Jn, "div"), Lp = el(Ft, "g", Rp);
|
|
12188
12188
|
function Pp(e) {
|
|
12189
12189
|
const t = String(e), n = [];
|
|
12190
12190
|
return { toOffset: a, toPoint: r };
|
|
@@ -12238,7 +12238,7 @@ function kp(e, t) {
|
|
|
12238
12238
|
{
|
|
12239
12239
|
file: n.file || void 0,
|
|
12240
12240
|
location: !1,
|
|
12241
|
-
schema: n.space === "svg" ?
|
|
12241
|
+
schema: n.space === "svg" ? Ft : Jn,
|
|
12242
12242
|
verbose: n.verbose || !1
|
|
12243
12243
|
},
|
|
12244
12244
|
e
|
|
@@ -12306,7 +12306,7 @@ function nl(e, t) {
|
|
|
12306
12306
|
}
|
|
12307
12307
|
function Mp(e, t) {
|
|
12308
12308
|
const n = e.schema;
|
|
12309
|
-
e.schema = t.namespaceURI === qt.svg ?
|
|
12309
|
+
e.schema = t.namespaceURI === qt.svg ? Ft : Jn;
|
|
12310
12310
|
let r = -1;
|
|
12311
12311
|
const a = {};
|
|
12312
12312
|
for (; ++r < t.attrs.length; ) {
|
|
@@ -12384,7 +12384,7 @@ function rl(e, t) {
|
|
|
12384
12384
|
const Fp = {}, Hp = {}.hasOwnProperty, al = rl("type", { handlers: { root: $p, element: Gp, text: Vp, comment: Yp, doctype: zp } });
|
|
12385
12385
|
function Up(e, t) {
|
|
12386
12386
|
const r = (t || Fp).space;
|
|
12387
|
-
return al(e, r === "svg" ?
|
|
12387
|
+
return al(e, r === "svg" ? Ft : Jn);
|
|
12388
12388
|
}
|
|
12389
12389
|
function $p(e, t) {
|
|
12390
12390
|
const n = {
|
|
@@ -12428,7 +12428,7 @@ function Yp(e) {
|
|
|
12428
12428
|
function Gp(e, t) {
|
|
12429
12429
|
const n = t;
|
|
12430
12430
|
let r = n;
|
|
12431
|
-
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r =
|
|
12431
|
+
e.type === "element" && e.tagName.toLowerCase() === "svg" && n.space === "html" && (r = Ft);
|
|
12432
12432
|
const a = [];
|
|
12433
12433
|
let s;
|
|
12434
12434
|
if (e.properties) {
|
|
@@ -12550,7 +12550,7 @@ var O;
|
|
|
12550
12550
|
(function(e) {
|
|
12551
12551
|
e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
|
|
12552
12552
|
})(O || (O = {}));
|
|
12553
|
-
const
|
|
12553
|
+
const Qe = {
|
|
12554
12554
|
DASH_DASH: "--",
|
|
12555
12555
|
CDATA_START: "[CDATA[",
|
|
12556
12556
|
DOCTYPE: "doctype",
|
|
@@ -12719,42 +12719,42 @@ function rg(e) {
|
|
|
12719
12719
|
var t;
|
|
12720
12720
|
return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : (t = tg.get(e)) !== null && t !== void 0 ? t : e;
|
|
12721
12721
|
}
|
|
12722
|
-
var
|
|
12722
|
+
var Fe;
|
|
12723
12723
|
(function(e) {
|
|
12724
12724
|
e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.EQUALS = 61] = "EQUALS", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.LOWER_Z = 122] = "LOWER_Z", e[e.UPPER_A = 65] = "UPPER_A", e[e.UPPER_F = 70] = "UPPER_F", e[e.UPPER_Z = 90] = "UPPER_Z";
|
|
12725
|
-
})(
|
|
12725
|
+
})(Fe || (Fe = {}));
|
|
12726
12726
|
const ag = 32;
|
|
12727
|
-
var
|
|
12727
|
+
var Mt;
|
|
12728
12728
|
(function(e) {
|
|
12729
12729
|
e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE";
|
|
12730
|
-
})(
|
|
12730
|
+
})(Mt || (Mt = {}));
|
|
12731
12731
|
function Za(e) {
|
|
12732
|
-
return e >=
|
|
12732
|
+
return e >= Fe.ZERO && e <= Fe.NINE;
|
|
12733
12733
|
}
|
|
12734
12734
|
function ig(e) {
|
|
12735
|
-
return e >=
|
|
12735
|
+
return e >= Fe.UPPER_A && e <= Fe.UPPER_F || e >= Fe.LOWER_A && e <= Fe.LOWER_F;
|
|
12736
12736
|
}
|
|
12737
12737
|
function sg(e) {
|
|
12738
|
-
return e >=
|
|
12738
|
+
return e >= Fe.UPPER_A && e <= Fe.UPPER_Z || e >= Fe.LOWER_A && e <= Fe.LOWER_Z || Za(e);
|
|
12739
12739
|
}
|
|
12740
12740
|
function og(e) {
|
|
12741
|
-
return e ===
|
|
12741
|
+
return e === Fe.EQUALS || sg(e);
|
|
12742
12742
|
}
|
|
12743
|
-
var
|
|
12743
|
+
var Be;
|
|
12744
12744
|
(function(e) {
|
|
12745
12745
|
e[e.EntityStart = 0] = "EntityStart", e[e.NumericStart = 1] = "NumericStart", e[e.NumericDecimal = 2] = "NumericDecimal", e[e.NumericHex = 3] = "NumericHex", e[e.NamedEntity = 4] = "NamedEntity";
|
|
12746
|
-
})(
|
|
12747
|
-
var
|
|
12746
|
+
})(Be || (Be = {}));
|
|
12747
|
+
var Rt;
|
|
12748
12748
|
(function(e) {
|
|
12749
12749
|
e[e.Legacy = 0] = "Legacy", e[e.Strict = 1] = "Strict", e[e.Attribute = 2] = "Attribute";
|
|
12750
|
-
})(
|
|
12750
|
+
})(Rt || (Rt = {}));
|
|
12751
12751
|
class cl {
|
|
12752
12752
|
constructor(t, n, r) {
|
|
12753
|
-
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state =
|
|
12753
|
+
this.decodeTree = t, this.emitCodePoint = n, this.errors = r, this.state = Be.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = Rt.Strict;
|
|
12754
12754
|
}
|
|
12755
12755
|
/** Resets the instance to make it reusable. */
|
|
12756
12756
|
startEntity(t) {
|
|
12757
|
-
this.decodeMode = t, this.state =
|
|
12757
|
+
this.decodeMode = t, this.state = Be.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
12758
12758
|
}
|
|
12759
12759
|
/**
|
|
12760
12760
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -12769,15 +12769,15 @@ class cl {
|
|
|
12769
12769
|
*/
|
|
12770
12770
|
write(t, n) {
|
|
12771
12771
|
switch (this.state) {
|
|
12772
|
-
case
|
|
12773
|
-
return t.charCodeAt(n) ===
|
|
12774
|
-
case
|
|
12772
|
+
case Be.EntityStart:
|
|
12773
|
+
return t.charCodeAt(n) === Fe.NUM ? (this.state = Be.NumericStart, this.consumed += 1, this.stateNumericStart(t, n + 1)) : (this.state = Be.NamedEntity, this.stateNamedEntity(t, n));
|
|
12774
|
+
case Be.NumericStart:
|
|
12775
12775
|
return this.stateNumericStart(t, n);
|
|
12776
|
-
case
|
|
12776
|
+
case Be.NumericDecimal:
|
|
12777
12777
|
return this.stateNumericDecimal(t, n);
|
|
12778
|
-
case
|
|
12778
|
+
case Be.NumericHex:
|
|
12779
12779
|
return this.stateNumericHex(t, n);
|
|
12780
|
-
case
|
|
12780
|
+
case Be.NamedEntity:
|
|
12781
12781
|
return this.stateNamedEntity(t, n);
|
|
12782
12782
|
}
|
|
12783
12783
|
}
|
|
@@ -12791,7 +12791,7 @@ class cl {
|
|
|
12791
12791
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
12792
12792
|
*/
|
|
12793
12793
|
stateNumericStart(t, n) {
|
|
12794
|
-
return n >= t.length ? -1 : (t.charCodeAt(n) | ag) ===
|
|
12794
|
+
return n >= t.length ? -1 : (t.charCodeAt(n) | ag) === Fe.LOWER_X ? (this.state = Be.NumericHex, this.consumed += 1, this.stateNumericHex(t, n + 1)) : (this.state = Be.NumericDecimal, this.stateNumericDecimal(t, n));
|
|
12795
12795
|
}
|
|
12796
12796
|
addToNumericResult(t, n, r, a) {
|
|
12797
12797
|
if (n !== r) {
|
|
@@ -12856,11 +12856,11 @@ class cl {
|
|
|
12856
12856
|
var r;
|
|
12857
12857
|
if (this.consumed <= n)
|
|
12858
12858
|
return (r = this.errors) === null || r === void 0 || r.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
12859
|
-
if (t ===
|
|
12859
|
+
if (t === Fe.SEMI)
|
|
12860
12860
|
this.consumed += 1;
|
|
12861
|
-
else if (this.decodeMode ===
|
|
12861
|
+
else if (this.decodeMode === Rt.Strict)
|
|
12862
12862
|
return 0;
|
|
12863
|
-
return this.emitCodePoint(rg(this.result), this.consumed), this.errors && (t !==
|
|
12863
|
+
return this.emitCodePoint(rg(this.result), this.consumed), this.errors && (t !== Fe.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
|
|
12864
12864
|
}
|
|
12865
12865
|
/**
|
|
12866
12866
|
* Parses a named entity.
|
|
@@ -12873,18 +12873,18 @@ class cl {
|
|
|
12873
12873
|
*/
|
|
12874
12874
|
stateNamedEntity(t, n) {
|
|
12875
12875
|
const { decodeTree: r } = this;
|
|
12876
|
-
let a = r[this.treeIndex], s = (a &
|
|
12876
|
+
let a = r[this.treeIndex], s = (a & Mt.VALUE_LENGTH) >> 14;
|
|
12877
12877
|
for (; n < t.length; n++, this.excess++) {
|
|
12878
12878
|
const o = t.charCodeAt(n);
|
|
12879
12879
|
if (this.treeIndex = ug(r, a, this.treeIndex + Math.max(1, s), o), this.treeIndex < 0)
|
|
12880
12880
|
return this.result === 0 || // If we are parsing an attribute
|
|
12881
|
-
this.decodeMode ===
|
|
12881
|
+
this.decodeMode === Rt.Attribute && // We shouldn't have consumed any characters after the entity,
|
|
12882
12882
|
(s === 0 || // And there should be no invalid characters.
|
|
12883
12883
|
og(o)) ? 0 : this.emitNotTerminatedNamedEntity();
|
|
12884
|
-
if (a = r[this.treeIndex], s = (a &
|
|
12885
|
-
if (o ===
|
|
12884
|
+
if (a = r[this.treeIndex], s = (a & Mt.VALUE_LENGTH) >> 14, s !== 0) {
|
|
12885
|
+
if (o === Fe.SEMI)
|
|
12886
12886
|
return this.emitNamedEntityData(this.treeIndex, s, this.consumed + this.excess);
|
|
12887
|
-
this.decodeMode !==
|
|
12887
|
+
this.decodeMode !== Rt.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
|
|
12888
12888
|
}
|
|
12889
12889
|
}
|
|
12890
12890
|
return -1;
|
|
@@ -12896,7 +12896,7 @@ class cl {
|
|
|
12896
12896
|
*/
|
|
12897
12897
|
emitNotTerminatedNamedEntity() {
|
|
12898
12898
|
var t;
|
|
12899
|
-
const { result: n, decodeTree: r } = this, a = (r[n] &
|
|
12899
|
+
const { result: n, decodeTree: r } = this, a = (r[n] & Mt.VALUE_LENGTH) >> 14;
|
|
12900
12900
|
return this.emitNamedEntityData(n, a, this.consumed), (t = this.errors) === null || t === void 0 || t.missingSemicolonAfterCharacterReference(), this.consumed;
|
|
12901
12901
|
}
|
|
12902
12902
|
/**
|
|
@@ -12910,7 +12910,7 @@ class cl {
|
|
|
12910
12910
|
*/
|
|
12911
12911
|
emitNamedEntityData(t, n, r) {
|
|
12912
12912
|
const { decodeTree: a } = this;
|
|
12913
|
-
return this.emitCodePoint(n === 1 ? a[t] & ~
|
|
12913
|
+
return this.emitCodePoint(n === 1 ? a[t] & ~Mt.VALUE_LENGTH : a[t + 1], r), n === 3 && this.emitCodePoint(a[t + 2], r), r;
|
|
12914
12914
|
}
|
|
12915
12915
|
/**
|
|
12916
12916
|
* Signal to the parser that the end of the input was reached.
|
|
@@ -12922,15 +12922,15 @@ class cl {
|
|
|
12922
12922
|
end() {
|
|
12923
12923
|
var t;
|
|
12924
12924
|
switch (this.state) {
|
|
12925
|
-
case
|
|
12926
|
-
return this.result !== 0 && (this.decodeMode !==
|
|
12927
|
-
case
|
|
12925
|
+
case Be.NamedEntity:
|
|
12926
|
+
return this.result !== 0 && (this.decodeMode !== Rt.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
12927
|
+
case Be.NumericDecimal:
|
|
12928
12928
|
return this.emitNumericEntity(0, 2);
|
|
12929
|
-
case
|
|
12929
|
+
case Be.NumericHex:
|
|
12930
12930
|
return this.emitNumericEntity(0, 3);
|
|
12931
|
-
case
|
|
12931
|
+
case Be.NumericStart:
|
|
12932
12932
|
return (t = this.errors) === null || t === void 0 || t.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
12933
|
-
case
|
|
12933
|
+
case Be.EntityStart:
|
|
12934
12934
|
return 0;
|
|
12935
12935
|
}
|
|
12936
12936
|
}
|
|
@@ -12958,7 +12958,7 @@ function fl(e) {
|
|
|
12958
12958
|
};
|
|
12959
12959
|
}
|
|
12960
12960
|
function ug(e, t, n, r) {
|
|
12961
|
-
const a = (t &
|
|
12961
|
+
const a = (t & Mt.BRANCH_LENGTH) >> 7, s = t & Mt.JUMP_TABLE;
|
|
12962
12962
|
if (a === 0)
|
|
12963
12963
|
return s !== 0 && r === s ? n : -1;
|
|
12964
12964
|
if (s) {
|
|
@@ -13240,11 +13240,11 @@ function Bn(e) {
|
|
|
13240
13240
|
function dg(e) {
|
|
13241
13241
|
return e >= O.LATIN_SMALL_A && e <= O.LATIN_SMALL_Z;
|
|
13242
13242
|
}
|
|
13243
|
-
function
|
|
13243
|
+
function Pt(e) {
|
|
13244
13244
|
return dg(e) || Bn(e);
|
|
13245
13245
|
}
|
|
13246
13246
|
function co(e) {
|
|
13247
|
-
return
|
|
13247
|
+
return Pt(e) || fg(e);
|
|
13248
13248
|
}
|
|
13249
13249
|
function fr(e) {
|
|
13250
13250
|
return e + 32;
|
|
@@ -13466,7 +13466,7 @@ class mg {
|
|
|
13466
13466
|
}
|
|
13467
13467
|
// Character reference helpers
|
|
13468
13468
|
_startCharacterReference() {
|
|
13469
|
-
this.returnState = this.state, this.state = R.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ?
|
|
13469
|
+
this.returnState = this.state, this.state = R.CHARACTER_REFERENCE, this.entityStartPos = this.preprocessor.pos, this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute() ? Rt.Attribute : Rt.Legacy);
|
|
13470
13470
|
}
|
|
13471
13471
|
_isCharacterReferenceInAttribute() {
|
|
13472
13472
|
return this.returnState === R.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === R.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === R.ATTRIBUTE_VALUE_UNQUOTED;
|
|
@@ -13881,7 +13881,7 @@ class mg {
|
|
|
13881
13881
|
// Tag open state
|
|
13882
13882
|
//------------------------------------------------------------------
|
|
13883
13883
|
_stateTagOpen(t) {
|
|
13884
|
-
if (
|
|
13884
|
+
if (Pt(t))
|
|
13885
13885
|
this._createStartTagToken(), this.state = R.TAG_NAME, this._stateTagName(t);
|
|
13886
13886
|
else
|
|
13887
13887
|
switch (t) {
|
|
@@ -13908,7 +13908,7 @@ class mg {
|
|
|
13908
13908
|
// End tag open state
|
|
13909
13909
|
//------------------------------------------------------------------
|
|
13910
13910
|
_stateEndTagOpen(t) {
|
|
13911
|
-
if (
|
|
13911
|
+
if (Pt(t))
|
|
13912
13912
|
this._createEndTagToken(), this.state = R.TAG_NAME, this._stateTagName(t);
|
|
13913
13913
|
else
|
|
13914
13914
|
switch (t) {
|
|
@@ -13964,7 +13964,7 @@ class mg {
|
|
|
13964
13964
|
// RCDATA end tag open state
|
|
13965
13965
|
//------------------------------------------------------------------
|
|
13966
13966
|
_stateRcdataEndTagOpen(t) {
|
|
13967
|
-
|
|
13967
|
+
Pt(t) ? (this.state = R.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(t)) : (this._emitChars("</"), this.state = R.RCDATA, this._stateRcdata(t));
|
|
13968
13968
|
}
|
|
13969
13969
|
handleSpecialEndTag(t) {
|
|
13970
13970
|
if (!this.preprocessor.startsWith(this.lastStartTagName, !1))
|
|
@@ -13998,7 +13998,7 @@ class mg {
|
|
|
13998
13998
|
// RAWTEXT end tag open state
|
|
13999
13999
|
//------------------------------------------------------------------
|
|
14000
14000
|
_stateRawtextEndTagOpen(t) {
|
|
14001
|
-
|
|
14001
|
+
Pt(t) ? (this.state = R.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(t)) : (this._emitChars("</"), this.state = R.RAWTEXT, this._stateRawtext(t));
|
|
14002
14002
|
}
|
|
14003
14003
|
// RAWTEXT end tag name state
|
|
14004
14004
|
//------------------------------------------------------------------
|
|
@@ -14024,7 +14024,7 @@ class mg {
|
|
|
14024
14024
|
// Script data end tag open state
|
|
14025
14025
|
//------------------------------------------------------------------
|
|
14026
14026
|
_stateScriptDataEndTagOpen(t) {
|
|
14027
|
-
|
|
14027
|
+
Pt(t) ? (this.state = R.SCRIPT_DATA_END_TAG_NAME, this._stateScriptDataEndTagName(t)) : (this._emitChars("</"), this.state = R.SCRIPT_DATA, this._stateScriptData(t));
|
|
14028
14028
|
}
|
|
14029
14029
|
// Script data end tag name state
|
|
14030
14030
|
//------------------------------------------------------------------
|
|
@@ -14120,12 +14120,12 @@ class mg {
|
|
|
14120
14120
|
// Script data escaped less-than sign state
|
|
14121
14121
|
//------------------------------------------------------------------
|
|
14122
14122
|
_stateScriptDataEscapedLessThanSign(t) {
|
|
14123
|
-
t === O.SOLIDUS ? this.state = R.SCRIPT_DATA_ESCAPED_END_TAG_OPEN :
|
|
14123
|
+
t === O.SOLIDUS ? this.state = R.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Pt(t) ? (this._emitChars("<"), this.state = R.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(t)) : (this._emitChars("<"), this.state = R.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
14124
14124
|
}
|
|
14125
14125
|
// Script data escaped end tag open state
|
|
14126
14126
|
//------------------------------------------------------------------
|
|
14127
14127
|
_stateScriptDataEscapedEndTagOpen(t) {
|
|
14128
|
-
|
|
14128
|
+
Pt(t) ? (this.state = R.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(t)) : (this._emitChars("</"), this.state = R.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
14129
14129
|
}
|
|
14130
14130
|
// Script data escaped end tag name state
|
|
14131
14131
|
//------------------------------------------------------------------
|
|
@@ -14135,9 +14135,9 @@ class mg {
|
|
|
14135
14135
|
// Script data double escape start state
|
|
14136
14136
|
//------------------------------------------------------------------
|
|
14137
14137
|
_stateScriptDataDoubleEscapeStart(t) {
|
|
14138
|
-
if (this.preprocessor.startsWith(
|
|
14138
|
+
if (this.preprocessor.startsWith(Qe.SCRIPT, !1) && fo(this.preprocessor.peek(Qe.SCRIPT.length))) {
|
|
14139
14139
|
this._emitCodePoint(t);
|
|
14140
|
-
for (let n = 0; n <
|
|
14140
|
+
for (let n = 0; n < Qe.SCRIPT.length; n++)
|
|
14141
14141
|
this._emitCodePoint(this._consume());
|
|
14142
14142
|
this.state = R.SCRIPT_DATA_DOUBLE_ESCAPED;
|
|
14143
14143
|
} else this._ensureHibernation() || (this.state = R.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(t));
|
|
@@ -14226,9 +14226,9 @@ class mg {
|
|
|
14226
14226
|
// Script data double escape end state
|
|
14227
14227
|
//------------------------------------------------------------------
|
|
14228
14228
|
_stateScriptDataDoubleEscapeEnd(t) {
|
|
14229
|
-
if (this.preprocessor.startsWith(
|
|
14229
|
+
if (this.preprocessor.startsWith(Qe.SCRIPT, !1) && fo(this.preprocessor.peek(Qe.SCRIPT.length))) {
|
|
14230
14230
|
this._emitCodePoint(t);
|
|
14231
|
-
for (let n = 0; n <
|
|
14231
|
+
for (let n = 0; n < Qe.SCRIPT.length; n++)
|
|
14232
14232
|
this._emitCodePoint(this._consume());
|
|
14233
14233
|
this.state = R.SCRIPT_DATA_ESCAPED;
|
|
14234
14234
|
} else this._ensureHibernation() || (this.state = R.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(t));
|
|
@@ -14497,7 +14497,7 @@ class mg {
|
|
|
14497
14497
|
// Markup declaration open state
|
|
14498
14498
|
//------------------------------------------------------------------
|
|
14499
14499
|
_stateMarkupDeclarationOpen(t) {
|
|
14500
|
-
this._consumeSequenceIfMatch(
|
|
14500
|
+
this._consumeSequenceIfMatch(Qe.DASH_DASH, !0) ? (this._createCommentToken(Qe.DASH_DASH.length + 1), this.state = R.COMMENT_START) : this._consumeSequenceIfMatch(Qe.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(Qe.DOCTYPE.length + 1), this.state = R.DOCTYPE) : this._consumeSequenceIfMatch(Qe.CDATA_START, !0) ? this.inForeignNode ? this.state = R.CDATA_SECTION : (this._err(F.cdataInHtmlContent), this._createCommentToken(Qe.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = R.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(F.incorrectlyOpenedComment), this._createCommentToken(2), this.state = R.BOGUS_COMMENT, this._stateBogusComment(t));
|
|
14501
14501
|
}
|
|
14502
14502
|
// Comment start state
|
|
14503
14503
|
//------------------------------------------------------------------
|
|
@@ -14762,7 +14762,7 @@ class mg {
|
|
|
14762
14762
|
break;
|
|
14763
14763
|
}
|
|
14764
14764
|
default:
|
|
14765
|
-
this._consumeSequenceIfMatch(
|
|
14765
|
+
this._consumeSequenceIfMatch(Qe.PUBLIC, !1) ? this.state = R.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(Qe.SYSTEM, !1) ? this.state = R.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(F.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = R.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
|
|
14766
14766
|
}
|
|
14767
14767
|
}
|
|
14768
14768
|
// After DOCTYPE public keyword state
|
|
@@ -15385,11 +15385,11 @@ class _g {
|
|
|
15385
15385
|
}
|
|
15386
15386
|
}
|
|
15387
15387
|
const va = 3;
|
|
15388
|
-
var
|
|
15388
|
+
var _t;
|
|
15389
15389
|
(function(e) {
|
|
15390
15390
|
e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element";
|
|
15391
|
-
})(
|
|
15392
|
-
const go = { type:
|
|
15391
|
+
})(_t || (_t = {}));
|
|
15392
|
+
const go = { type: _t.Marker };
|
|
15393
15393
|
class vg {
|
|
15394
15394
|
constructor(t) {
|
|
15395
15395
|
this.treeAdapter = t, this.entries = [], this.bookmark = null;
|
|
@@ -15401,7 +15401,7 @@ class vg {
|
|
|
15401
15401
|
const r = [], a = n.length, s = this.treeAdapter.getTagName(t), o = this.treeAdapter.getNamespaceURI(t);
|
|
15402
15402
|
for (let i = 0; i < this.entries.length; i++) {
|
|
15403
15403
|
const h = this.entries[i];
|
|
15404
|
-
if (h.type ===
|
|
15404
|
+
if (h.type === _t.Marker)
|
|
15405
15405
|
break;
|
|
15406
15406
|
const { element: g } = h;
|
|
15407
15407
|
if (this.treeAdapter.getTagName(g) === s && this.treeAdapter.getNamespaceURI(g) === o) {
|
|
@@ -15430,7 +15430,7 @@ class vg {
|
|
|
15430
15430
|
}
|
|
15431
15431
|
pushElement(t, n) {
|
|
15432
15432
|
this._ensureNoahArkCondition(t), this.entries.unshift({
|
|
15433
|
-
type:
|
|
15433
|
+
type: _t.Element,
|
|
15434
15434
|
element: t,
|
|
15435
15435
|
token: n
|
|
15436
15436
|
});
|
|
@@ -15438,7 +15438,7 @@ class vg {
|
|
|
15438
15438
|
insertElementAfterBookmark(t, n) {
|
|
15439
15439
|
const r = this.entries.indexOf(this.bookmark);
|
|
15440
15440
|
this.entries.splice(r, 0, {
|
|
15441
|
-
type:
|
|
15441
|
+
type: _t.Element,
|
|
15442
15442
|
element: t,
|
|
15443
15443
|
token: n
|
|
15444
15444
|
});
|
|
@@ -15458,14 +15458,14 @@ class vg {
|
|
|
15458
15458
|
}
|
|
15459
15459
|
//Search
|
|
15460
15460
|
getElementEntryInScopeWithTagName(t) {
|
|
15461
|
-
const n = this.entries.find((r) => r.type ===
|
|
15462
|
-
return n && n.type ===
|
|
15461
|
+
const n = this.entries.find((r) => r.type === _t.Marker || this.treeAdapter.getTagName(r.element) === t);
|
|
15462
|
+
return n && n.type === _t.Element ? n : null;
|
|
15463
15463
|
}
|
|
15464
15464
|
getElementEntry(t) {
|
|
15465
|
-
return this.entries.find((n) => n.type ===
|
|
15465
|
+
return this.entries.find((n) => n.type === _t.Element && n.element === t);
|
|
15466
15466
|
}
|
|
15467
15467
|
}
|
|
15468
|
-
const
|
|
15468
|
+
const Dt = {
|
|
15469
15469
|
//Node construction
|
|
15470
15470
|
createDocument() {
|
|
15471
15471
|
return {
|
|
@@ -15530,7 +15530,7 @@ const Pt = {
|
|
|
15530
15530
|
systemId: r,
|
|
15531
15531
|
parentNode: null
|
|
15532
15532
|
};
|
|
15533
|
-
|
|
15533
|
+
Dt.appendChild(e, s);
|
|
15534
15534
|
}
|
|
15535
15535
|
},
|
|
15536
15536
|
setDocumentMode(e, t) {
|
|
@@ -15548,16 +15548,16 @@ const Pt = {
|
|
|
15548
15548
|
insertText(e, t) {
|
|
15549
15549
|
if (e.childNodes.length > 0) {
|
|
15550
15550
|
const n = e.childNodes[e.childNodes.length - 1];
|
|
15551
|
-
if (
|
|
15551
|
+
if (Dt.isTextNode(n)) {
|
|
15552
15552
|
n.value += t;
|
|
15553
15553
|
return;
|
|
15554
15554
|
}
|
|
15555
15555
|
}
|
|
15556
|
-
|
|
15556
|
+
Dt.appendChild(e, Dt.createTextNode(t));
|
|
15557
15557
|
},
|
|
15558
15558
|
insertTextBefore(e, t, n) {
|
|
15559
15559
|
const r = e.childNodes[e.childNodes.indexOf(n) - 1];
|
|
15560
|
-
r &&
|
|
15560
|
+
r && Dt.isTextNode(r) ? r.value += t : Dt.insertBefore(e, Dt.createTextNode(t), n);
|
|
15561
15561
|
},
|
|
15562
15562
|
adoptAttributes(e, t) {
|
|
15563
15563
|
const n = new Set(e.attrs.map((r) => r.name));
|
|
@@ -15930,7 +15930,7 @@ const Vg = {
|
|
|
15930
15930
|
}, Tl = /* @__PURE__ */ new Set([b.TABLE, b.TBODY, b.TFOOT, b.THEAD, b.TR]), To = {
|
|
15931
15931
|
scriptingEnabled: !0,
|
|
15932
15932
|
sourceCodeLocationInfo: !1,
|
|
15933
|
-
treeAdapter:
|
|
15933
|
+
treeAdapter: Dt,
|
|
15934
15934
|
onParseError: null
|
|
15935
15935
|
};
|
|
15936
15936
|
class yo {
|
|
@@ -16198,7 +16198,7 @@ class yo {
|
|
|
16198
16198
|
_reconstructActiveFormattingElements() {
|
|
16199
16199
|
const t = this.activeFormattingElements.entries.length;
|
|
16200
16200
|
if (t) {
|
|
16201
|
-
const n = this.activeFormattingElements.entries.findIndex((a) => a.type ===
|
|
16201
|
+
const n = this.activeFormattingElements.entries.findIndex((a) => a.type === _t.Marker || this.openElements.contains(a.element)), r = n < 0 ? t - 1 : n - 1;
|
|
16202
16202
|
for (let a = r; a >= 0; a--) {
|
|
16203
16203
|
const s = this.activeFormattingElements.entries[a];
|
|
16204
16204
|
this._insertElement(s.token, this.treeAdapter.getNamespaceURI(s.element)), s.element = this.openElements.current;
|
|
@@ -18191,7 +18191,7 @@ function kl(e, t) {
|
|
|
18191
18191
|
stitches: !1,
|
|
18192
18192
|
options: t || {}
|
|
18193
18193
|
};
|
|
18194
|
-
r(e, a), An(a,
|
|
18194
|
+
r(e, a), An(a, Ct());
|
|
18195
18195
|
const s = n ? a.parser.document : a.parser.getFragment(), o = kp(s, {
|
|
18196
18196
|
// To do: support `space`?
|
|
18197
18197
|
file: a.options.file
|
|
@@ -18227,7 +18227,7 @@ function C1(e, t) {
|
|
|
18227
18227
|
chars: e.value,
|
|
18228
18228
|
location: nr(e)
|
|
18229
18229
|
};
|
|
18230
|
-
An(t,
|
|
18230
|
+
An(t, Ct(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
18231
18231
|
}
|
|
18232
18232
|
function I1(e, t) {
|
|
18233
18233
|
const n = {
|
|
@@ -18238,7 +18238,7 @@ function I1(e, t) {
|
|
|
18238
18238
|
systemId: "",
|
|
18239
18239
|
location: nr(e)
|
|
18240
18240
|
};
|
|
18241
|
-
An(t,
|
|
18241
|
+
An(t, Ct(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
18242
18242
|
}
|
|
18243
18243
|
function N1(e, t) {
|
|
18244
18244
|
t.stitches = !0;
|
|
@@ -18258,10 +18258,10 @@ function Bl(e, t) {
|
|
|
18258
18258
|
data: n,
|
|
18259
18259
|
location: nr(e)
|
|
18260
18260
|
};
|
|
18261
|
-
An(t,
|
|
18261
|
+
An(t, Ct(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
18262
18262
|
}
|
|
18263
18263
|
function O1(e, t) {
|
|
18264
|
-
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Fl(t,
|
|
18264
|
+
if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Fl(t, Ct(e)), t.parser.tokenizer.write(e.value, !1), t.parser.tokenizer._runParsingLoop(), t.parser.tokenizer.state === 72 || t.parser.tokenizer.state === 78) {
|
|
18265
18265
|
t.parser.tokenizer.preprocessor.lastChunkWritten = !0;
|
|
18266
18266
|
const n = t.parser.tokenizer._consume();
|
|
18267
18267
|
t.parser.tokenizer._callState(n);
|
|
@@ -18300,7 +18300,7 @@ function Fl(e, t) {
|
|
|
18300
18300
|
function w1(e, t) {
|
|
18301
18301
|
const n = e.tagName.toLowerCase();
|
|
18302
18302
|
if (t.parser.tokenizer.state === De.PLAINTEXT) return;
|
|
18303
|
-
An(t,
|
|
18303
|
+
An(t, Ct(e));
|
|
18304
18304
|
const r = t.parser.openElements.current;
|
|
18305
18305
|
let a = "namespaceURI" in r ? r.namespaceURI : qt.html;
|
|
18306
18306
|
a === qt.html && n === "svg" && (a = qt.svg);
|
|
@@ -18346,7 +18346,7 @@ function P1(e) {
|
|
|
18346
18346
|
return !!(t && (t.type === "doctype" || t.type === "element" && t.tagName.toLowerCase() === "html"));
|
|
18347
18347
|
}
|
|
18348
18348
|
function nr(e) {
|
|
18349
|
-
const t =
|
|
18349
|
+
const t = Ct(e) || {
|
|
18350
18350
|
line: void 0,
|
|
18351
18351
|
column: void 0,
|
|
18352
18352
|
offset: void 0
|
|
@@ -18389,7 +18389,7 @@ const M1 = ({ userType: e, content: t }) => {
|
|
|
18389
18389
|
] });
|
|
18390
18390
|
};
|
|
18391
18391
|
function B1(e, t, n) {
|
|
18392
|
-
let [r, a] =
|
|
18392
|
+
let [r, a] = Ue(e || t), s = nt(e !== void 0), o = e !== void 0;
|
|
18393
18393
|
ht(() => {
|
|
18394
18394
|
let g = s.current;
|
|
18395
18395
|
g !== o && console.warn(`WARN: A component changed from ${g ? "controlled" : "uncontrolled"} to ${o ? "controlled" : "uncontrolled"}.`), s.current = o;
|
|
@@ -18420,7 +18420,7 @@ const xr = {
|
|
|
18420
18420
|
}, Hl = /* @__PURE__ */ Le.createContext(xr), F1 = /* @__PURE__ */ Le.createContext(!1);
|
|
18421
18421
|
let H1 = !!(typeof window < "u" && window.document && window.document.createElement), xa = /* @__PURE__ */ new WeakMap();
|
|
18422
18422
|
function U1(e = !1) {
|
|
18423
|
-
let t = Kt(Hl), n =
|
|
18423
|
+
let t = Kt(Hl), n = nt(null);
|
|
18424
18424
|
if (n.current === null && !e) {
|
|
18425
18425
|
var r, a;
|
|
18426
18426
|
let s = (a = Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || a === void 0 || (r = a.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
|
|
@@ -18442,7 +18442,7 @@ function $1(e) {
|
|
|
18442
18442
|
return e || `${r}-${n}`;
|
|
18443
18443
|
}
|
|
18444
18444
|
function j1(e) {
|
|
18445
|
-
let t = Le.useId(), [n] =
|
|
18445
|
+
let t = Le.useId(), [n] = Ue(q1()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${xr.prefix}`;
|
|
18446
18446
|
return e || `${r}-${t}`;
|
|
18447
18447
|
}
|
|
18448
18448
|
const z1 = typeof Le.useId == "function" ? j1 : $1;
|
|
@@ -18475,7 +18475,7 @@ function W1() {
|
|
|
18475
18475
|
const rn = typeof document < "u" ? Le.useLayoutEffect : () => {
|
|
18476
18476
|
};
|
|
18477
18477
|
function Xt(e) {
|
|
18478
|
-
const t =
|
|
18478
|
+
const t = nt(null);
|
|
18479
18479
|
return rn(() => {
|
|
18480
18480
|
t.current = e;
|
|
18481
18481
|
}, [
|
|
@@ -18486,7 +18486,7 @@ function Xt(e) {
|
|
|
18486
18486
|
}, []);
|
|
18487
18487
|
}
|
|
18488
18488
|
function X1(e) {
|
|
18489
|
-
let [t, n] =
|
|
18489
|
+
let [t, n] = Ue(e), r = nt(null), a = Xt(() => {
|
|
18490
18490
|
if (!r.current) return;
|
|
18491
18491
|
let o = r.current.next();
|
|
18492
18492
|
if (o.done) {
|
|
@@ -18508,7 +18508,7 @@ function X1(e) {
|
|
|
18508
18508
|
}
|
|
18509
18509
|
let Q1 = !!(typeof window < "u" && window.document && window.document.createElement), Sr = /* @__PURE__ */ new Map();
|
|
18510
18510
|
function Cr(e) {
|
|
18511
|
-
let [t, n] =
|
|
18511
|
+
let [t, n] = Ue(e), r = nt(null), a = z1(t), s = Qt((o) => {
|
|
18512
18512
|
r.current = o;
|
|
18513
18513
|
}, []);
|
|
18514
18514
|
return Q1 && Sr.set(a, s), rn(() => {
|
|
@@ -18700,7 +18700,7 @@ function mE(e) {
|
|
|
18700
18700
|
return e.mozInputSource === 0 && e.isTrusted ? !0 : cE() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
|
|
18701
18701
|
}
|
|
18702
18702
|
function pE(e, t, n) {
|
|
18703
|
-
let r =
|
|
18703
|
+
let r = nt(t), a = Xt(() => {
|
|
18704
18704
|
n && n(r.current);
|
|
18705
18705
|
});
|
|
18706
18706
|
ht(() => {
|
|
@@ -18739,7 +18739,7 @@ class bE {
|
|
|
18739
18739
|
}
|
|
18740
18740
|
}
|
|
18741
18741
|
function EE(e) {
|
|
18742
|
-
let t =
|
|
18742
|
+
let t = nt({
|
|
18743
18743
|
isFocused: !1,
|
|
18744
18744
|
observer: null
|
|
18745
18745
|
});
|
|
@@ -18965,7 +18965,7 @@ function OE(e) {
|
|
|
18965
18965
|
return r;
|
|
18966
18966
|
}
|
|
18967
18967
|
function RE(e, t) {
|
|
18968
|
-
let { focusProps: n } = TE(e), { keyboardProps: r } = SE(e), a = Nr(n, r), s = OE(t), o = e.isDisabled ? {} : s, i =
|
|
18968
|
+
let { focusProps: n } = TE(e), { keyboardProps: r } = SE(e), a = Nr(n, r), s = OE(t), o = e.isDisabled ? {} : s, i = nt(e.autoFocus);
|
|
18969
18969
|
return ht(() => {
|
|
18970
18970
|
i.current && t.current && CE(t.current), i.current = !1;
|
|
18971
18971
|
}, [
|
|
@@ -19095,17 +19095,17 @@ function BE(e) {
|
|
|
19095
19095
|
let p = Kt(kE), u = Zr(() => r ? Array.isArray(r) ? r.flatMap((C) => ai(p[C])) : ai(p[r]) : [], [
|
|
19096
19096
|
p,
|
|
19097
19097
|
r
|
|
19098
|
-
]), [c, l] =
|
|
19098
|
+
]), [c, l] = Ue(p), [d, f] = Ue(!1);
|
|
19099
19099
|
p !== c && (l(p), f(!1));
|
|
19100
19100
|
let T = Zr(() => wo(d ? [] : u), [
|
|
19101
19101
|
d,
|
|
19102
19102
|
u
|
|
19103
|
-
]), m =
|
|
19103
|
+
]), m = nt(Pn), [E, y] = Ue(Pn), A = nt(Pn), v = () => {
|
|
19104
19104
|
if (!S) return;
|
|
19105
19105
|
N(!1);
|
|
19106
19106
|
let C = g || s || m.current;
|
|
19107
19107
|
Sa(C, A.current) || (A.current = C, y(C));
|
|
19108
|
-
}, [S, N] =
|
|
19108
|
+
}, [S, N] = Ue(!1);
|
|
19109
19109
|
return ht(v), {
|
|
19110
19110
|
realtimeValidation: h || T || g || s || Pn,
|
|
19111
19111
|
displayValidation: i === "native" ? h || T || E : h || T || g || s || E,
|
|
@@ -19263,7 +19263,7 @@ function $E(e, t) {
|
|
|
19263
19263
|
};
|
|
19264
19264
|
}
|
|
19265
19265
|
const jE = (e) => e.charCodeAt(e.length - 1) === 10, zE = (e) => {
|
|
19266
|
-
const [t, n] =
|
|
19266
|
+
const [t, n] = Ue(""), r = () => {
|
|
19267
19267
|
c.current && (c.current.style.height = c.current.scrollHeight + "px");
|
|
19268
19268
|
}, a = () => {
|
|
19269
19269
|
c.current && (c.current.style.height = "48px");
|
|
@@ -19278,7 +19278,7 @@ const jE = (e) => e.charCodeAt(e.length - 1) === 10, zE = (e) => {
|
|
|
19278
19278
|
isLoadingStream: g,
|
|
19279
19279
|
LoadingComponent: p,
|
|
19280
19280
|
onPressLoadingButton: u
|
|
19281
|
-
} = e, c =
|
|
19281
|
+
} = e, c = nt(null), { labelProps: l, inputProps: d } = $E(
|
|
19282
19282
|
{
|
|
19283
19283
|
...e,
|
|
19284
19284
|
inputElementType: "textarea"
|
|
@@ -19389,9 +19389,9 @@ const jE = (e) => e.charCodeAt(e.length - 1) === 10, zE = (e) => {
|
|
|
19389
19389
|
constructor() {
|
|
19390
19390
|
}
|
|
19391
19391
|
};
|
|
19392
|
-
|
|
19392
|
+
gt(dn, "getApiUrl", () => process.env.NODE_ENV === "development" ? "http://localhost:3001" : "https://www.api.chatsystem.ai"), gt(dn, "getHeaders", ({ contentType: t = "text/plain" }) => ({
|
|
19393
19393
|
"Content-Type": t
|
|
19394
|
-
})),
|
|
19394
|
+
})), gt(dn, "getFetchConfig", ({
|
|
19395
19395
|
contentType: t = "text/plain",
|
|
19396
19396
|
httpVerb: n = "GET",
|
|
19397
19397
|
body: r,
|
|
@@ -19593,12 +19593,12 @@ const WE = "languageSettings", ql = Le.createContext({
|
|
|
19593
19593
|
var Wl = /* @__PURE__ */ ((e) => (e.GET_DISCUSSION_ID = "/id", e))(Wl || {});
|
|
19594
19594
|
const KE = (e) => !!e.startsWith("/"), ZE = (e, t) => e === Wl.GET_DISCUSSION_ID ? t ? `Votre ID de discussion est ${t}` : "Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas." : `La commande ${e} n'est pas prise en compte.`;
|
|
19595
19595
|
var Fn = /* @__PURE__ */ ((e) => (e.OUTPUT_STREAM_TEXT_TYPE = "text", e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE = "number_of_steps", e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE = "current_step_number", e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE = "current_step_name", e))(Fn || {});
|
|
19596
|
-
const
|
|
19596
|
+
const Ot = class Ot {
|
|
19597
19597
|
constructor() {
|
|
19598
19598
|
}
|
|
19599
19599
|
};
|
|
19600
19600
|
// exemple of coming inputs : {"content":"","type":"text"}{"content":"Salut","type":"text"}
|
|
19601
|
-
|
|
19601
|
+
gt(Ot, "transformStringifiedObjectIntoArrayOfObjects", (t) => {
|
|
19602
19602
|
const r = t.split("}").map(
|
|
19603
19603
|
(o) => o.startsWith("{") ? o += "}" : null
|
|
19604
19604
|
), a = r.filter((o) => !!o);
|
|
@@ -19611,26 +19611,26 @@ pt(Nt, "transformStringifiedObjectIntoArrayOfObjects", (t) => {
|
|
|
19611
19611
|
console.warn("Could not parse the objects. Objects received :"), console.warn("Initial objects :", t), console.warn("objectsCompleted :", r), console.warn("objectsCleaned :", a);
|
|
19612
19612
|
}
|
|
19613
19613
|
return s;
|
|
19614
|
-
}),
|
|
19614
|
+
}), gt(Ot, "isObjectOutputstreamTextDTO", (t) => t.type === Fn.OUTPUT_STREAM_TEXT_TYPE), gt(Ot, "isObjectOutputstreamLoadingNumberOfStepsDTO", (t) => t.type === Fn.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE), gt(Ot, "isObjectOutputstreamLoadingCurrentStepNumberDTO", (t) => t.type === Fn.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE), gt(Ot, "isObjectOutputstreamLoadingCurrentStepNameDTO", (t) => t.type === Fn.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE), gt(Ot, "containsObjectWithLastAnswerToTrue", (t) => {
|
|
19615
19615
|
for (const n of t)
|
|
19616
|
-
if (
|
|
19616
|
+
if (Ot.isObjectOutputstreamTextDTO(n) && n.isLastAnswer)
|
|
19617
19617
|
return !0;
|
|
19618
19618
|
return !1;
|
|
19619
19619
|
});
|
|
19620
|
-
let
|
|
19621
|
-
const JE = "_dot_spinner_qw18l_1", eT = "_dot_spinner__dot_qw18l_13", tT = "_pulse0112_qw18l_1",
|
|
19620
|
+
let kt = Ot;
|
|
19621
|
+
const JE = "_dot_spinner_qw18l_1", eT = "_dot_spinner__dot_qw18l_13", tT = "_pulse0112_qw18l_1", Nt = {
|
|
19622
19622
|
dot_spinner: JE,
|
|
19623
19623
|
dot_spinner__dot: eT,
|
|
19624
19624
|
pulse0112: tT
|
|
19625
|
-
}, nT = () => /* @__PURE__ */ W.jsxs("div", { className:
|
|
19626
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19627
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19628
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19629
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19630
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19631
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19632
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19633
|
-
/* @__PURE__ */ W.jsx("div", { className:
|
|
19625
|
+
}, nT = () => /* @__PURE__ */ W.jsxs("div", { className: Nt.dot_spinner, children: [
|
|
19626
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19627
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19628
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19629
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19630
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19631
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19632
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot }),
|
|
19633
|
+
/* @__PURE__ */ W.jsx("div", { className: Nt.dot_spinner__dot })
|
|
19634
19634
|
] }), Xl = () => {
|
|
19635
19635
|
const e = Pr(), t = e.formatMessage({
|
|
19636
19636
|
defaultMessage: "Search",
|
|
@@ -19741,13 +19741,13 @@ const JE = "_dot_spinner_qw18l_1", eT = "_dot_spinner__dot_qw18l_13", tT = "_pul
|
|
|
19741
19741
|
let Ca = new AbortController();
|
|
19742
19742
|
const Kl = ({ appToken: e }) => {
|
|
19743
19743
|
e || console.log("Dev - Admin settings");
|
|
19744
|
-
const t =
|
|
19744
|
+
const t = nt(null), { placeholderTranslation: n } = pu(), { conversation: r, setConversation: a } = Kt(
|
|
19745
19745
|
Ql
|
|
19746
|
-
), [s, o] =
|
|
19746
|
+
), [s, o] = Ue("notLoading"), [i, h] = Ue(null), { defaultStartingStep: g } = Xl(), [p, u] = Ue(
|
|
19747
19747
|
null
|
|
19748
|
-
), [c, l] =
|
|
19748
|
+
), [c, l] = Ue(
|
|
19749
19749
|
g
|
|
19750
|
-
), [d, f] =
|
|
19750
|
+
), [d, f] = Ue(
|
|
19751
19751
|
null
|
|
19752
19752
|
), { appCurrentLang: T } = Kt(ql), m = (v) => {
|
|
19753
19753
|
a((S) => [
|
|
@@ -19798,39 +19798,39 @@ const Kl = ({ appToken: e }) => {
|
|
|
19798
19798
|
start(U) {
|
|
19799
19799
|
return Z();
|
|
19800
19800
|
function Z() {
|
|
19801
|
-
return L == null ? void 0 : L.read().then((
|
|
19802
|
-
const
|
|
19803
|
-
|
|
19801
|
+
return L == null ? void 0 : L.read().then((w) => {
|
|
19802
|
+
const { done: J, value: ie } = w, ee = M.decode(ie), ae = kt.transformStringifiedObjectIntoArrayOfObjects(
|
|
19803
|
+
ee
|
|
19804
19804
|
);
|
|
19805
|
-
|
|
19806
|
-
for (const
|
|
19807
|
-
if (
|
|
19808
|
-
const { content:
|
|
19809
|
-
te && te !==
|
|
19810
|
-
const
|
|
19811
|
-
return
|
|
19812
|
-
...
|
|
19813
|
-
content:
|
|
19814
|
-
}, [...
|
|
19805
|
+
kt.containsObjectWithLastAnswerToTrue(ae) && o("loadingFinalAnswer");
|
|
19806
|
+
for (const se of ae)
|
|
19807
|
+
if (kt.isObjectOutputstreamTextDTO(se)) {
|
|
19808
|
+
const { content: ne, isLastAnswer: we, streamSourceUuid: X } = se;
|
|
19809
|
+
te && te !== X && (B += '<span style="display:block;height:1rem;"></span>'), te = X, we && (K = !0), U.enqueue(ne), QE(ne) ? ($ += ne, B += $, $ = "", j = !1) : j || XE(ne) ? ($ += ne, j = !0) : B += ne, a(($e) => {
|
|
19810
|
+
const We = [...$e], Je = We.length - 1, pt = We[Je];
|
|
19811
|
+
return We[Je] = {
|
|
19812
|
+
...pt,
|
|
19813
|
+
content: pt.content = B
|
|
19814
|
+
}, [...We];
|
|
19815
19815
|
});
|
|
19816
|
-
} else if (
|
|
19817
|
-
|
|
19816
|
+
} else if (kt.isObjectOutputstreamLoadingCurrentStepNumberDTO(
|
|
19817
|
+
se
|
|
19818
19818
|
)) {
|
|
19819
|
-
const { content:
|
|
19820
|
-
U.enqueue(
|
|
19821
|
-
} else if (
|
|
19822
|
-
|
|
19819
|
+
const { content: ne } = se;
|
|
19820
|
+
U.enqueue(ne), f(ne);
|
|
19821
|
+
} else if (kt.isObjectOutputstreamLoadingCurrentStepNameDTO(
|
|
19822
|
+
se
|
|
19823
19823
|
)) {
|
|
19824
|
-
const { content:
|
|
19825
|
-
U.enqueue(
|
|
19826
|
-
} else if (
|
|
19827
|
-
|
|
19824
|
+
const { content: ne } = se;
|
|
19825
|
+
U.enqueue(ne), l(ne);
|
|
19826
|
+
} else if (kt.isObjectOutputstreamLoadingNumberOfStepsDTO(
|
|
19827
|
+
se
|
|
19828
19828
|
)) {
|
|
19829
|
-
const { content:
|
|
19830
|
-
U.enqueue(
|
|
19829
|
+
const { content: ne } = se;
|
|
19830
|
+
U.enqueue(ne), u(ne);
|
|
19831
19831
|
} else
|
|
19832
|
-
console.warn(`Object not handled - ${
|
|
19833
|
-
if (E(),
|
|
19832
|
+
console.warn(`Object not handled - ${se}`);
|
|
19833
|
+
if (E(), J && K) {
|
|
19834
19834
|
U.close(), o("notLoading"), l(g), f(null);
|
|
19835
19835
|
return;
|
|
19836
19836
|
}
|
|
@@ -19931,7 +19931,7 @@ const Kl = ({ appToken: e }) => {
|
|
|
19931
19931
|
}
|
|
19932
19932
|
)
|
|
19933
19933
|
), sT = ({ isWidgetOpen: e, appToken: t }) => {
|
|
19934
|
-
const n =
|
|
19934
|
+
const n = nt(null);
|
|
19935
19935
|
return /* @__PURE__ */ W.jsx("div", { children: /* @__PURE__ */ W.jsx(
|
|
19936
19936
|
ui,
|
|
19937
19937
|
{
|
|
@@ -19943,7 +19943,7 @@ const Kl = ({ appToken: e }) => {
|
|
|
19943
19943
|
children: /* @__PURE__ */ W.jsx(iT, { ref: n, props: { appToken: t } })
|
|
19944
19944
|
}
|
|
19945
19945
|
) });
|
|
19946
|
-
}, oT = (e) => /* @__PURE__ */
|
|
19946
|
+
}, oT = (e) => /* @__PURE__ */ He.createElement("svg", { width: "800px", height: "800px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ He.createElement("path", { d: "M7 9H17M7 13H17M21 20L17.6757 18.3378C17.4237 18.2118 17.2977 18.1488 17.1656 18.1044C17.0484 18.065 16.9277 18.0365 16.8052 18.0193C16.6672 18 16.5263 18 16.2446 18H6.2C5.07989 18 4.51984 18 4.09202 17.782C3.71569 17.5903 3.40973 17.2843 3.21799 16.908C3 16.4802 3 15.9201 3 14.8V7.2C3 6.07989 3 5.51984 3.21799 5.09202C3.40973 4.71569 3.71569 4.40973 4.09202 4.21799C4.51984 4 5.0799 4 6.2 4H17.8C18.9201 4 19.4802 4 19.908 4.21799C20.2843 4.40973 20.5903 4.71569 20.782 5.09202C21 5.51984 21 6.0799 21 7.2V20Z", stroke: "#000000", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round" })), uT = (e) => /* @__PURE__ */ He.createElement("svg", { fill: "#000000", height: "800px", width: "800px", id: "Layer_1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: "0 0 330 330", xmlSpace: "preserve", ...e }, /* @__PURE__ */ He.createElement("path", { id: "XMLID_102_", d: "M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z" })), lT = ({
|
|
19947
19947
|
isWidgetOpen: e,
|
|
19948
19948
|
setIsWidgetOpen: t
|
|
19949
19949
|
}) => /* @__PURE__ */ W.jsxs(
|
|
@@ -19980,7 +19980,7 @@ const Kl = ({ appToken: e }) => {
|
|
|
19980
19980
|
WE
|
|
19981
19981
|
)), r && (e == null ? void 0 : e[r]) !== void 0 ? n = e[r] : (n = e[t], n.isDefault = !0), n;
|
|
19982
19982
|
}, fT = (e, t) => {
|
|
19983
|
-
const [n, r] =
|
|
19983
|
+
const [n, r] = Ue(e[t]), a = (s) => {
|
|
19984
19984
|
Object.keys(e).includes(s == null ? void 0 : s.locale) ? r(s) : r(e[je.ENGLISH]);
|
|
19985
19985
|
};
|
|
19986
19986
|
return ht(() => {
|
|
@@ -19993,7 +19993,7 @@ const Kl = ({ appToken: e }) => {
|
|
|
19993
19993
|
}, dT = (e) => Object.values(je).includes(e), hT = (e) => dT(e) ? e : (console.log(
|
|
19994
19994
|
`Language ${e} not handled for now. Using ${je.ENGLISH}.`
|
|
19995
19995
|
), je.ENGLISH), mT = (e) => {
|
|
19996
|
-
const t = En.getApiUrl(), [n, r] =
|
|
19996
|
+
const t = En.getApiUrl(), [n, r] = Ue([]);
|
|
19997
19997
|
return ht(() => {
|
|
19998
19998
|
const a = En.getFetchConfig({
|
|
19999
19999
|
httpVerb: "GET",
|
|
@@ -20001,7 +20001,6 @@ const Kl = ({ appToken: e }) => {
|
|
|
20001
20001
|
});
|
|
20002
20002
|
fetch(`${t}/ai/initialText/${e}`, a).then(
|
|
20003
20003
|
async (s) => {
|
|
20004
|
-
console.log("DID FETCH");
|
|
20005
20004
|
const o = await s.text();
|
|
20006
20005
|
r([
|
|
20007
20006
|
{
|
|
@@ -20053,7 +20052,7 @@ function Lo({
|
|
|
20053
20052
|
displayMode: t = "bubble"
|
|
20054
20053
|
/* BUBBLE */
|
|
20055
20054
|
}) {
|
|
20056
|
-
const [n, r] =
|
|
20055
|
+
const [n, r] = Ue(!1);
|
|
20057
20056
|
e || console.warn(
|
|
20058
20057
|
"appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC"
|
|
20059
20058
|
);
|
|
@@ -20396,16 +20395,16 @@ var Zl = { exports: {} };
|
|
|
20396
20395
|
}
|
|
20397
20396
|
const te = K.ref ? K.ref.resolve(_, x, C) : _, he = K.is ? [K] : K.switch, ye = M.length;
|
|
20398
20397
|
for (let I = 0; I < he.length; ++I) {
|
|
20399
|
-
const { is: U, then: Z, otherwise: w } = he[I],
|
|
20400
|
-
if (U.$_match(te, x.nest(U, `${
|
|
20398
|
+
const { is: U, then: Z, otherwise: w } = he[I], J = `${j}${K.switch ? "." + I : ""}`;
|
|
20399
|
+
if (U.$_match(te, x.nest(U, `${J}.is`), C)) {
|
|
20401
20400
|
if (Z) {
|
|
20402
|
-
const
|
|
20403
|
-
L.push(
|
|
20401
|
+
const ie = x.localize([...x.path, `${J}.then`], x.ancestors, x.schemas), { schema: ee, id: ae } = Z._generate(_, ie, C);
|
|
20402
|
+
L.push(ee), M.push(`${J}.then${ae ? `(${ae})` : ""}`);
|
|
20404
20403
|
break;
|
|
20405
20404
|
}
|
|
20406
20405
|
} else if (w) {
|
|
20407
|
-
const
|
|
20408
|
-
L.push(
|
|
20406
|
+
const ie = x.localize([...x.path, `${J}.otherwise`], x.ancestors, x.schemas), { schema: ee, id: ae } = w._generate(_, ie, C);
|
|
20407
|
+
L.push(ee), M.push(`${J}.otherwise${ae ? `(${ae})` : ""}`);
|
|
20409
20408
|
break;
|
|
20410
20409
|
}
|
|
20411
20410
|
}
|
|
@@ -23107,8 +23106,8 @@ var Zl = { exports: {} };
|
|
|
23107
23106
|
p.ipv4address = "(?:" + E + "\\.){3}" + E;
|
|
23108
23107
|
const y = c + "{1,4}", A = "(?:" + y + ":" + y + "|" + p.ipv4address + ")", v = "(?:" + y + ":){6}" + A, S = "::(?:" + y + ":){5}" + A, N = "(?:" + y + ")?::(?:" + y + ":){4}" + A, _ = "(?:(?:" + y + ":){0,1}" + y + ")?::(?:" + y + ":){3}" + A, x = "(?:(?:" + y + ":){0,2}" + y + ")?::(?:" + y + ":){2}" + A, C = "(?:(?:" + y + ":){0,3}" + y + ")?::" + y + ":" + A, L = "(?:(?:" + y + ":){0,4}" + y + ")?::" + A, M = "(?:(?:" + y + ":){0,5}" + y + ")?::" + y, B = "(?:(?:" + y + ":){0,6}" + y + ")?::";
|
|
23109
23108
|
p.ipv4Cidr = "(?:\\d|[1-2]\\d|3[0-2])", p.ipv6Cidr = "(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])", p.ipv6address = "(?:" + v + "|" + S + "|" + N + "|" + _ + "|" + x + "|" + C + "|" + L + "|" + M + "|" + B + ")", p.ipvFuture = "v" + c + "+\\.[" + l + d + ":]+", p.scheme = "[a-zA-Z][a-zA-Z\\d+-\\.]*", p.schemeRegex = new RegExp(p.scheme);
|
|
23110
|
-
const $ = "[" + l + f + d + ":]*", j = "[" + l + f + d + "]{1,255}", K = "(?:\\[(?:" + p.ipv6address + "|" + p.ipvFuture + ")\\]|" + p.ipv4address + "|" + j + ")", te = "(?:" + $ + "@)?" + K + "(?::\\d*)?", he = "(?:" + $ + "@)?(" + K + ")(?::\\d*)?", ye = m + "*", I = m + "+", U = "(?:\\/" + ye + ")*", Z = "\\/(?:" + I + U + ")?", w = I + U,
|
|
23111
|
-
return p.hierPart = "(?:(?:\\/\\/" + te + U + ")|" + Z + "|" + w + "|" +
|
|
23109
|
+
const $ = "[" + l + f + d + ":]*", j = "[" + l + f + d + "]{1,255}", K = "(?:\\[(?:" + p.ipv6address + "|" + p.ipvFuture + ")\\]|" + p.ipv4address + "|" + j + ")", te = "(?:" + $ + "@)?" + K + "(?::\\d*)?", he = "(?:" + $ + "@)?(" + K + ")(?::\\d*)?", ye = m + "*", I = m + "+", U = "(?:\\/" + ye + ")*", Z = "\\/(?:" + I + U + ")?", w = I + U, J = "[" + l + f + d + "@]+" + U, ie = "(?:\\/\\/\\/" + ye + U + ")";
|
|
23110
|
+
return p.hierPart = "(?:(?:\\/\\/" + te + U + ")|" + Z + "|" + w + "|" + ie + ")", p.hierPartCapture = "(?:(?:\\/\\/" + he + U + ")|" + Z + "|" + w + ")", p.relativeRef = "(?:(?:\\/\\/" + te + U + ")|" + Z + "|" + J + "|)", p.relativeRefCapture = "(?:(?:\\/\\/" + he + U + ")|" + Z + "|" + J + "|)", p.query = "[" + T + "\\/\\?]*(?=#|$)", p.queryWithSquareBrackets = "[" + T + "\\[\\]\\/\\?]*(?=#|$)", p.fragment = "[" + T + "\\/\\?]*", p;
|
|
23112
23111
|
} };
|
|
23113
23112
|
g.rfc3986 = g.generate(), s.ip = { v4Cidr: g.rfc3986.ipv4Cidr, v6Cidr: g.rfc3986.ipv6Cidr, ipv4: g.rfc3986.ipv4address, ipv6: g.rfc3986.ipv6address, ipvfuture: g.rfc3986.ipvFuture }, g.createRegex = function(p) {
|
|
23114
23113
|
const u = g.rfc3986, c = "(?:\\?" + (p.allowQuerySquareBrackets ? u.queryWithSquareBrackets : u.query) + ")?(?:#" + u.fragment + ")?", l = p.domain ? u.relativeRefCapture : u.relativeRef;
|