@harbour-enterprises/superdoc 0.8.29 → 0.8.31
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/chunks/__vite-browser-external-ChNNClnV.cjs +1 -0
- package/dist/chunks/__vite-browser-external-YbutIfMq.es.js +7 -0
- package/dist/chunks/empty-DBAFSQIv.cjs +1 -0
- package/dist/chunks/empty-GlqisfcO.es.js +4 -0
- package/dist/chunks/{eventemitter3-BJmh1qdq.es.js → eventemitter3-C2H8juPb.es.js} +1 -1
- package/dist/chunks/{eventemitter3-DS1WPZxT.cjs → eventemitter3-D38HWRLP.cjs} +1 -1
- package/dist/chunks/index-BXKGjuVW.cjs +1 -0
- package/dist/chunks/index-ByK1C9Ha.cjs +1 -0
- package/dist/chunks/index-CqRwYOdx.cjs +1 -0
- package/dist/chunks/index-DjLrg1eZ.es.js +1676 -0
- package/dist/chunks/index-Dwr47WtL.es.js +230 -0
- package/dist/chunks/index-dZKHAFXF.es.js +42 -0
- package/dist/chunks/jszip-ChlzEvf9.cjs +6 -0
- package/dist/chunks/jszip-DSGi1sNe.es.js +1071 -0
- package/dist/chunks/{super-editor.es-DOk_Y-T9.cjs → super-editor.es-DW8rMUBO.cjs} +86 -86
- package/dist/chunks/{@harbour-enterprises/super-editor-D1Xk5Yrd.es.js → super-editor.es-DiQ6ytI2.es.js} +6577 -6290
- package/dist/chunks/url-6Xu7gR4T.cjs +6 -0
- package/dist/chunks/url-BxDGAI6E.es.js +1475 -0
- package/dist/chunks/{vue-BEXwSXMc.es.js → vue-BDbTsTMu.es.js} +32 -32
- package/dist/chunks/xml-js-BAML2_fM.es.js +1757 -0
- package/dist/chunks/xml-js-zhwNEV5e.cjs +10 -0
- package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts +3 -0
- package/dist/components/PdfViewer/helpers/pdfjs-worker.d.ts.map +1 -0
- package/dist/components/PdfViewer/pdfjs.d.ts +3 -0
- package/dist/components/PdfViewer/pdfjs.d.ts.map +1 -0
- package/dist/core/SuperDoc.d.ts.map +1 -1
- package/dist/images/altText_add.svg +3 -0
- package/dist/images/altText_done.svg +3 -0
- package/dist/images/annotation-check.svg +11 -0
- package/dist/images/annotation-comment.svg +16 -0
- package/dist/images/annotation-help.svg +26 -0
- package/dist/images/annotation-insert.svg +10 -0
- package/dist/images/annotation-key.svg +11 -0
- package/dist/images/annotation-newparagraph.svg +11 -0
- package/dist/images/annotation-noicon.svg +7 -0
- package/dist/images/annotation-note.svg +42 -0
- package/dist/images/annotation-paperclip.svg +6 -0
- package/dist/images/annotation-paragraph.svg +16 -0
- package/dist/images/annotation-pushpin.svg +7 -0
- package/dist/images/cursor-editorFreeHighlight.svg +6 -0
- package/dist/images/cursor-editorFreeText.svg +3 -0
- package/dist/images/cursor-editorInk.svg +4 -0
- package/dist/images/cursor-editorTextHighlight.svg +8 -0
- package/dist/images/editor-toolbar-delete.svg +5 -0
- package/dist/images/loading-icon.gif +0 -0
- package/dist/images/toolbarButton-editorHighlight.svg +6 -0
- package/dist/images/toolbarButton-menuArrow.svg +3 -0
- package/dist/style.css +9 -9
- package/dist/super-editor/chunks/{converter-14D5Azcr.js → converter-BE8UkEHA.js} +13 -13
- package/dist/super-editor/chunks/{docx-zipper-DgX4zdaV.js → docx-zipper-B7iW1WqK.js} +1 -1
- package/dist/super-editor/chunks/{editor-CPMoG7gE.js → editor-D7e-8Caj.js} +3275 -2988
- package/dist/super-editor/chunks/{toolbar-BDRxH8WI.js → toolbar-C_A0zvKt.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor.es.js +7 -7
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts +3 -0
- package/dist/super-editor/tests/e2e/test-app/dist/assets/index-DJbCKw0t.d.ts.map +1 -0
- package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts +3 -0
- package/dist/super-editor/tests/playwright/playwright-test/dist/assets/index-CRixhnI8.d.ts.map +1 -0
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +9 -9
- package/dist/superdoc.cjs +451 -161
- package/dist/superdoc.es.js +27781 -6827
- package/dist/superdoc.umd.js +4061 -3777
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/jszip-B3_nOU0X.es.js +0 -1028
- package/dist/chunks/jszip-O1Upj8hc.cjs +0 -6
- package/dist/chunks/xml-js-B-IG5FIb.cjs +0 -1
- package/dist/chunks/xml-js-DTu9DyCb.es.js +0 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const ne=require("./jszip-ChlzEvf9.cjs"),ie=require("./xml-js-zhwNEV5e.cjs"),Hr=require("./__vite-browser-external-ChNNClnV.cjs");var Ae={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ae.exports;(function(r,e){(function(t){var n=e&&!e.nodeType&&e,a=r&&!r.nodeType&&r,i=typeof ne.commonjsGlobal=="object"&&ne.commonjsGlobal;(i.global===i||i.window===i||i.self===i)&&(t=i);var f,o=2147483647,l=36,s=1,c=26,m=38,u=700,d=72,g=128,I="-",S=/^xn--/,F=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=l-s,b=Math.floor,O=String.fromCharCode,N;function T(h){throw new RangeError(p[h])}function $(h,v){for(var w=h.length,E=[];w--;)E[w]=v(h[w]);return E}function D(h,v){var w=h.split("@"),E="";w.length>1&&(E=w[0]+"@",h=w[1]),h=h.replace(y,".");var C=h.split("."),U=$(C,v).join(".");return E+U}function K(h){for(var v=[],w=0,E=h.length,C,U;w<E;)C=h.charCodeAt(w++),C>=55296&&C<=56319&&w<E?(U=h.charCodeAt(w++),(U&64512)==56320?v.push(((C&1023)<<10)+(U&1023)+65536):(v.push(C),w--)):v.push(C);return v}function k(h){return $(h,function(v){var w="";return v>65535&&(v-=65536,w+=O(v>>>10&1023|55296),v=56320|v&1023),w+=O(v),w}).join("")}function _(h){return h-48<10?h-22:h-65<26?h-65:h-97<26?h-97:l}function q(h,v){return h+22+75*(h<26)-((v!=0)<<5)}function M(h,v,w){var E=0;for(h=w?b(h/u):h>>1,h+=b(h/v);h>x*c>>1;E+=l)h=b(h/x);return b(E+(x+1)*h/(h+m))}function W(h){var v=[],w=h.length,E,C=0,U=g,L=d,B,G,V,Y,P,z,Q,re,fe;for(B=h.lastIndexOf(I),B<0&&(B=0),G=0;G<B;++G)h.charCodeAt(G)>=128&&T("not-basic"),v.push(h.charCodeAt(G));for(V=B>0?B+1:0;V<w;){for(Y=C,P=1,z=l;V>=w&&T("invalid-input"),Q=_(h.charCodeAt(V++)),(Q>=l||Q>b((o-C)/P))&&T("overflow"),C+=Q*P,re=z<=L?s:z>=L+c?c:z-L,!(Q<re);z+=l)fe=l-re,P>b(o/fe)&&T("overflow"),P*=fe;E=v.length+1,L=M(C-Y,E,Y==0),b(C/E)>o-U&&T("overflow"),U+=b(C/E),C%=E,v.splice(C++,0,U)}return k(v)}function ee(h){var v,w,E,C,U,L,B,G,V,Y,P,z=[],Q,re,fe,De;for(h=K(h),Q=h.length,v=g,w=0,U=d,L=0;L<Q;++L)P=h[L],P<128&&z.push(O(P));for(E=C=z.length,C&&z.push(I);E<Q;){for(B=o,L=0;L<Q;++L)P=h[L],P>=v&&P<B&&(B=P);for(re=E+1,B-v>b((o-w)/re)&&T("overflow"),w+=(B-v)*re,v=B,L=0;L<Q;++L)if(P=h[L],P<v&&++w>o&&T("overflow"),P==v){for(G=w,V=l;Y=V<=U?s:V>=U+c?c:V-U,!(G<Y);V+=l)De=G-Y,fe=l-Y,z.push(O(q(Y+De%fe,0))),G=b(De/fe);z.push(O(q(G,0))),U=M(w,re,E==C),w=0,++E}++w,++v}return z.join("")}function Re(h){return D(h,function(v){return S.test(v)?W(v.slice(4).toLowerCase()):v})}function be(h){return D(h,function(v){return F.test(v)?"xn--"+ee(v):v})}if(f={version:"1.4.1",ucs2:{decode:K,encode:k},decode:W,encode:ee,toASCII:be,toUnicode:Re},n&&a)if(r.exports==n)a.exports=f;else for(N in f)f.hasOwnProperty(N)&&(n[N]=f[N]);else t.punycode=f})(ne.commonjsGlobal)})(Ae,Ae.exports);var Kr=Ae.exports;const kr=ne.getDefaultExportFromCjs(Kr),Gr=ne.getAugmentedNamespace(Hr.__viteBrowserExternal);var Ze=typeof Map=="function"&&Map.prototype,Le=Object.getOwnPropertyDescriptor&&Ze?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Te=Ze&&Le&&typeof Le.get=="function"?Le.get:null,er=Ze&&Map.prototype.forEach,Xe=typeof Set=="function"&&Set.prototype,Fe=Object.getOwnPropertyDescriptor&&Xe?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$e=Xe&&Fe&&typeof Fe.get=="function"?Fe.get:null,rr=Xe&&Set.prototype.forEach,Qr=typeof WeakMap=="function"&&WeakMap.prototype,de=Qr?WeakMap.prototype.has:null,Vr=typeof WeakSet=="function"&&WeakSet.prototype,me=Vr?WeakSet.prototype.has:null,Jr=typeof WeakRef=="function"&&WeakRef.prototype,tr=Jr?WeakRef.prototype.deref:null,Zr=Boolean.prototype.valueOf,Xr=Object.prototype.toString,Yr=Function.prototype.toString,jr=String.prototype.match,Ye=String.prototype.slice,te=String.prototype.replace,et=String.prototype.toUpperCase,nr=String.prototype.toLowerCase,gr=RegExp.prototype.test,ar=Array.prototype.concat,X=Array.prototype.join,rt=Array.prototype.slice,ir=Math.floor,Be=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Me=Object.getOwnPropertySymbols,ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,pe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ve=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===pe||!0)?Symbol.toStringTag:null,wr=Object.prototype.propertyIsEnumerable,or=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function fr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||gr.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-ir(-r):ir(r);if(n!==r){var a=String(n),i=Ye.call(e,a.length+1);return te.call(a,t,"$&_")+"."+te.call(te.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return te.call(e,t,"$&_")}var He=Gr,lr=He.custom,ur=xr(lr)?lr:null,Sr={__proto__:null,double:'"',single:"'"},tt={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Ce=function r(e,t,n,a){var i=t||{};if(j(i,"quoteStyle")&&!j(Sr,i.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=j(i,"customInspect")?i.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Er(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var l=String(e);return o?fr(e,l):l}if(typeof e=="bigint"){var s=String(e)+"n";return o?fr(e,s):s}var c=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=c&&c>0&&typeof e=="object")return Ke(e)?"[Array]":"[Object]";var m=St(i,n);if(typeof a>"u")a=[];else if(Or(a,e)>=0)return"[Circular]";function u(_,q,M){if(q&&(a=rt.call(a),a.push(q)),M){var W={depth:i.depth};return j(i,"quoteStyle")&&(W.quoteStyle=i.quoteStyle),r(_,W,n+1,a)}return r(_,i,n+1,a)}if(typeof e=="function"&&!sr(e)){var d=ct(e),g=xe(e,u);return"[Function"+(d?": "+d:" (anonymous)")+"]"+(g.length>0?" { "+X.call(g,", ")+" }":"")}if(xr(e)){var I=pe?te.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ze.call(e);return typeof e=="object"&&!pe?ye(I):I}if(vt(e)){for(var S="<"+nr.call(String(e.nodeName)),F=e.attributes||[],y=0;y<F.length;y++)S+=" "+F[y].name+"="+br(nt(F[y].value),"double",i);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+nr.call(String(e.nodeName))+">",S}if(Ke(e)){if(e.length===0)return"[]";var p=xe(e,u);return m&&!wt(p)?"["+ke(p,m)+"]":"[ "+X.call(p,", ")+" ]"}if(it(e)){var x=xe(e,u);return!("cause"in Error.prototype)&&"cause"in e&&!wr.call(e,"cause")?"{ ["+String(e)+"] "+X.call(ar.call("[cause]: "+u(e.cause),x),", ")+" }":x.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+X.call(x,", ")+" }"}if(typeof e=="object"&&f){if(ur&&typeof e[ur]=="function"&&He)return He(e,{depth:c-n});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(ht(e)){var b=[];return er&&er.call(e,function(_,q){b.push(u(q,e,!0)+" => "+u(_,e))}),cr("Map",Te.call(e),b,m)}if(dt(e)){var O=[];return rr&&rr.call(e,function(_){O.push(u(_,e))}),cr("Set",$e.call(e),O,m)}if(pt(e))return Pe("WeakMap");if(mt(e))return Pe("WeakSet");if(yt(e))return Pe("WeakRef");if(ft(e))return ye(u(Number(e)));if(ut(e))return ye(u(Be.call(e)));if(lt(e))return ye(Zr.call(e));if(ot(e))return ye(u(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof ne.commonjsGlobal<"u"&&e===ne.commonjsGlobal)return"{ [object globalThis] }";if(!at(e)&&!sr(e)){var N=xe(e,u),T=or?or(e)===Object.prototype:e instanceof Object||e.constructor===Object,$=e instanceof Object?"":"null prototype",D=!T&&ve&&Object(e)===e&&ve in e?Ye.call(oe(e),8,-1):$?"Object":"",K=T||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",k=K+(D||$?"["+X.call(ar.call([],D||[],$||[]),": ")+"] ":"");return N.length===0?k+"{}":m?k+"{"+ke(N,m)+"}":k+"{ "+X.call(N,", ")+" }"}return String(e)};function br(r,e,t){var n=t.quoteStyle||e,a=Sr[n];return a+r+a}function nt(r){return te.call(String(r),/"/g,""")}function se(r){return!ve||!(typeof r=="object"&&(ve in r||typeof r[ve]<"u"))}function Ke(r){return oe(r)==="[object Array]"&&se(r)}function at(r){return oe(r)==="[object Date]"&&se(r)}function sr(r){return oe(r)==="[object RegExp]"&&se(r)}function it(r){return oe(r)==="[object Error]"&&se(r)}function ot(r){return oe(r)==="[object String]"&&se(r)}function ft(r){return oe(r)==="[object Number]"&&se(r)}function lt(r){return oe(r)==="[object Boolean]"&&se(r)}function xr(r){if(pe)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!ze)return!1;try{return ze.call(r),!0}catch{}return!1}function ut(r){if(!r||typeof r!="object"||!Be)return!1;try{return Be.call(r),!0}catch{}return!1}var st=Object.prototype.hasOwnProperty||function(r){return r in this};function j(r,e){return st.call(r,e)}function oe(r){return Xr.call(r)}function ct(r){if(r.name)return r.name;var e=jr.call(Yr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Or(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function ht(r){if(!Te||!r||typeof r!="object")return!1;try{Te.call(r);try{$e.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function pt(r){if(!de||!r||typeof r!="object")return!1;try{de.call(r,de);try{me.call(r,me)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function yt(r){if(!tr||!r||typeof r!="object")return!1;try{return tr.call(r),!0}catch{}return!1}function dt(r){if(!$e||!r||typeof r!="object")return!1;try{$e.call(r);try{Te.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function mt(r){if(!me||!r||typeof r!="object")return!1;try{me.call(r,me);try{de.call(r,de)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function vt(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Er(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Er(Ye.call(r,0,e.maxStringLength),e)+n}var a=tt[e.quoteStyle||"single"];a.lastIndex=0;var i=te.call(te.call(r,a,"\\$1"),/[\x00-\x1f]/g,gt);return br(i,"single",e)}function gt(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+et.call(e.toString(16))}function ye(r){return"Object("+r+")"}function Pe(r){return r+" { ? }"}function cr(r,e,t,n){var a=n?ke(t,n):X.call(t,", ");return r+" ("+e+") {"+a+"}"}function wt(r){for(var e=0;e<r.length;e++)if(Or(r[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function St(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=X.call(Array(r.indent+1)," ");else return null;return{base:t,prev:X.call(Array(e+1),t)}}function ke(r,e){if(r.length===0)return"";var t=`
|
|
3
|
+
`+e.prev+e.base;return t+X.call(r,","+t)+`
|
|
4
|
+
`+e.prev}function xe(r,e){var t=Ke(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=j(r,a)?e(r[a],r):""}var i=typeof Me=="function"?Me(r):[],f;if(pe){f={};for(var o=0;o<i.length;o++)f["$"+i[o]]=i[o]}for(var l in r)j(r,l)&&(t&&String(Number(l))===l&&l<r.length||pe&&f["$"+l]instanceof Symbol||(gr.call(/[^\w$]/,l)?n.push(e(l,r)+": "+e(r[l],r)):n.push(l+": "+e(r[l],r))));if(typeof Me=="function")for(var s=0;s<i.length;s++)wr.call(r,i[s])&&n.push("["+e(i[s])+"]: "+e(r[i[s]],r));return n}var bt=Ce,xt=ie.type,Ie=function(r,e,t){for(var n=r,a;(a=n.next)!=null;n=a)if(a.key===e)return n.next=a.next,t||(a.next=r.next,r.next=a),a},Ot=function(r,e){if(r){var t=Ie(r,e);return t&&t.value}},Et=function(r,e,t){var n=Ie(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},At=function(r,e){return r?!!Ie(r,e):!1},Tt=function(r,e){if(r)return Ie(r,e,!0)},$t=function(){var e,t={assert:function(n){if(!t.has(n))throw new xt("Side channel does not contain "+bt(n))},delete:function(n){var a=e&&e.next,i=Tt(e,n);return i&&a&&a===i&&(e=void 0),!!i},get:function(n){return Ot(e,n)},has:function(n){return At(e,n)},set:function(n,a){e||(e={next:void 0}),Et(e,n,a)}};return t},Ct=ie.getIntrinsic,we=ie.callBound,It=Ce,_t=ie.type,hr=Ct("%Map%",!0),Rt=we("Map.prototype.get",!0),Dt=we("Map.prototype.set",!0),Lt=we("Map.prototype.has",!0),Ft=we("Map.prototype.delete",!0),Mt=we("Map.prototype.size",!0),Ar=!!hr&&function(){var e,t={assert:function(n){if(!t.has(n))throw new _t("Side channel does not contain "+It(n))},delete:function(n){if(e){var a=Ft(e,n);return Mt(e)===0&&(e=void 0),a}return!1},get:function(n){if(e)return Rt(e,n)},has:function(n){return e?Lt(e,n):!1},set:function(n,a){e||(e=new hr),Dt(e,n,a)}};return t},Pt=ie.getIntrinsic,_e=ie.callBound,Nt=Ce,Oe=Ar,qt=ie.type,ce=Pt("%WeakMap%",!0),Ut=_e("WeakMap.prototype.get",!0),Wt=_e("WeakMap.prototype.set",!0),Bt=_e("WeakMap.prototype.has",!0),zt=_e("WeakMap.prototype.delete",!0),Ht=ce?function(){var e,t,n={assert:function(a){if(!n.has(a))throw new qt("Side channel does not contain "+Nt(a))},delete:function(a){if(ce&&a&&(typeof a=="object"||typeof a=="function")){if(e)return zt(e,a)}else if(Oe&&t)return t.delete(a);return!1},get:function(a){return ce&&a&&(typeof a=="object"||typeof a=="function")&&e?Ut(e,a):t&&t.get(a)},has:function(a){return ce&&a&&(typeof a=="object"||typeof a=="function")&&e?Bt(e,a):!!t&&t.has(a)},set:function(a,i){ce&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new ce),Wt(e,a,i)):Oe&&(t||(t=Oe()),t.set(a,i))}};return n}:Oe,Kt=ie.type,kt=Ce,Gt=$t,Qt=Ar,Vt=Ht,Jt=Vt||Qt||Gt,Zt=function(){var e,t={assert:function(n){if(!t.has(n))throw new Kt("Side channel does not contain "+kt(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,a){e||(e=Jt()),e.set(n,a)}};return t},Xt=String.prototype.replace,Yt=/%20/g,Ne={RFC1738:"RFC1738",RFC3986:"RFC3986"},je={default:Ne.RFC3986,formatters:{RFC1738:function(r){return Xt.call(r,Yt,"+")},RFC3986:function(r){return String(r)}},RFC1738:Ne.RFC1738,RFC3986:Ne.RFC3986},jt=je,qe=Object.prototype.hasOwnProperty,le=Array.isArray,J=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),en=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(le(n)){for(var a=[],i=0;i<n.length;++i)typeof n[i]<"u"&&a.push(n[i]);t.obj[t.prop]=a}}},Tr=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},rn=function r(e,t,n){if(!t)return e;if(typeof t!="object"&&typeof t!="function"){if(le(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!qe.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var a=e;return le(e)&&!le(t)&&(a=Tr(e,n)),le(e)&&le(t)?(t.forEach(function(i,f){if(qe.call(e,f)){var o=e[f];o&&typeof o=="object"&&i&&typeof i=="object"?e[f]=r(o,i,n):e.push(i)}else e[f]=i}),e):Object.keys(t).reduce(function(i,f){var o=t[f];return qe.call(i,f)?i[f]=r(i[f],o,n):i[f]=o,i},a)},tn=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},nn=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Ue=1024,an=function(e,t,n,a,i){if(e.length===0)return e;var f=e;if(typeof e=="symbol"?f=Symbol.prototype.toString.call(e):typeof e!="string"&&(f=String(e)),n==="iso-8859-1")return escape(f).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var o="",l=0;l<f.length;l+=Ue){for(var s=f.length>=Ue?f.slice(l,l+Ue):f,c=[],m=0;m<s.length;++m){var u=s.charCodeAt(m);if(u===45||u===46||u===95||u===126||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===jt.RFC1738&&(u===40||u===41)){c[c.length]=s.charAt(m);continue}if(u<128){c[c.length]=J[u];continue}if(u<2048){c[c.length]=J[192|u>>6]+J[128|u&63];continue}if(u<55296||u>=57344){c[c.length]=J[224|u>>12]+J[128|u>>6&63]+J[128|u&63];continue}m+=1,u=65536+((u&1023)<<10|s.charCodeAt(m)&1023),c[c.length]=J[240|u>>18]+J[128|u>>12&63]+J[128|u>>6&63]+J[128|u&63]}o+=c.join("")}return o},on=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var i=t[a],f=i.obj[i.prop],o=Object.keys(f),l=0;l<o.length;++l){var s=o[l],c=f[s];typeof c=="object"&&c!==null&&n.indexOf(c)===-1&&(t.push({obj:f,prop:s}),n.push(c))}return en(t),e},fn=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},ln=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},un=function(e,t){return[].concat(e,t)},sn=function(e,t){if(le(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},$r={arrayToObject:Tr,assign:tn,combine:un,compact:on,decode:nn,encode:an,isBuffer:ln,isRegExp:fn,maybeMap:sn,merge:rn},Cr=Zt,Ee=$r,ge=je,cn=Object.prototype.hasOwnProperty,Ir={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Z=Array.isArray,hn=Array.prototype.push,_r=function(r,e){hn.apply(r,Z(e)?e:[e])},pn=Date.prototype.toISOString,pr=ge.default,R={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Ee.encode,encodeValuesOnly:!1,filter:void 0,format:pr,formatter:ge.formatters[pr],indices:!1,serializeDate:function(e){return pn.call(e)},skipNulls:!1,strictNullHandling:!1},yn=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},We={},dn=function r(e,t,n,a,i,f,o,l,s,c,m,u,d,g,I,S,F,y){for(var p=e,x=y,b=0,O=!1;(x=x.get(We))!==void 0&&!O;){var N=x.get(e);if(b+=1,typeof N<"u"){if(N===b)throw new RangeError("Cyclic object value");O=!0}typeof x.get(We)>"u"&&(b=0)}if(typeof c=="function"?p=c(t,p):p instanceof Date?p=d(p):n==="comma"&&Z(p)&&(p=Ee.maybeMap(p,function(h){return h instanceof Date?d(h):h})),p===null){if(f)return s&&!S?s(t,R.encoder,F,"key",g):t;p=""}if(yn(p)||Ee.isBuffer(p)){if(s){var T=S?t:s(t,R.encoder,F,"key",g);return[I(T)+"="+I(s(p,R.encoder,F,"value",g))]}return[I(t)+"="+I(String(p))]}var $=[];if(typeof p>"u")return $;var D;if(n==="comma"&&Z(p))S&&s&&(p=Ee.maybeMap(p,s)),D=[{value:p.length>0?p.join(",")||null:void 0}];else if(Z(c))D=c;else{var K=Object.keys(p);D=m?K.sort(m):K}var k=l?String(t).replace(/\./g,"%2E"):String(t),_=a&&Z(p)&&p.length===1?k+"[]":k;if(i&&Z(p)&&p.length===0)return _+"[]";for(var q=0;q<D.length;++q){var M=D[q],W=typeof M=="object"&&M&&typeof M.value<"u"?M.value:p[M];if(!(o&&W===null)){var ee=u&&l?String(M).replace(/\./g,"%2E"):String(M),Re=Z(p)?typeof n=="function"?n(_,ee):_:_+(u?"."+ee:"["+ee+"]");y.set(e,b);var be=Cr();be.set(We,y),_r($,r(W,Re,n,a,i,f,o,l,n==="comma"&&S&&Z(p)?null:s,c,m,u,d,g,I,S,F,be))}}return $},mn=function(e){if(!e)return R;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys<"u"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||R.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=ge.default;if(typeof e.format<"u"){if(!cn.call(ge.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=ge.formatters[n],i=R.filter;(typeof e.filter=="function"||Z(e.filter))&&(i=e.filter);var f;if(e.arrayFormat in Ir?f=e.arrayFormat:"indices"in e?f=e.indices?"indices":"repeat":f=R.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var o=typeof e.allowDots>"u"?e.encodeDotInKeys===!0?!0:R.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:R.addQueryPrefix,allowDots:o,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:R.allowEmptyArrays,arrayFormat:f,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:R.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter>"u"?R.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:R.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:R.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:R.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:R.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:R.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:R.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:R.strictNullHandling}},vn=function(r,e){var t=r,n=mn(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):Z(n.filter)&&(i=n.filter,a=i);var f=[];if(typeof t!="object"||t===null)return"";var o=Ir[n.arrayFormat],l=o==="comma"&&n.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var s=Cr(),c=0;c<a.length;++c){var m=a[c],u=t[m];n.skipNulls&&u===null||_r(f,dn(u,m,o,l,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s))}var d=f.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),d.length>0?g+d:""},ue=$r,Ge=Object.prototype.hasOwnProperty,yr=Array.isArray,A={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:ue.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},gn=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Rr=function(r,e,t){if(r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1)return r.split(",");if(e.throwOnLimitExceeded&&t>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return r},wn="utf8=%26%2310003%3B",Sn="utf8=%E2%9C%93",bn=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var i=t.parameterLimit===1/0?void 0:t.parameterLimit,f=a.split(t.delimiter,t.throwOnLimitExceeded?i+1:i);if(t.throwOnLimitExceeded&&f.length>i)throw new RangeError("Parameter limit exceeded. Only "+i+" parameter"+(i===1?"":"s")+" allowed.");var o=-1,l,s=t.charset;if(t.charsetSentinel)for(l=0;l<f.length;++l)f[l].indexOf("utf8=")===0&&(f[l]===Sn?s="utf-8":f[l]===wn&&(s="iso-8859-1"),o=l,l=f.length);for(l=0;l<f.length;++l)if(l!==o){var c=f[l],m=c.indexOf("]="),u=m===-1?c.indexOf("="):m+1,d,g;u===-1?(d=t.decoder(c,A.decoder,s,"key"),g=t.strictNullHandling?null:""):(d=t.decoder(c.slice(0,u),A.decoder,s,"key"),g=ue.maybeMap(Rr(c.slice(u+1),t,yr(n[d])?n[d].length:0),function(S){return t.decoder(S,A.decoder,s,"value")})),g&&t.interpretNumericEntities&&s==="iso-8859-1"&&(g=gn(String(g))),c.indexOf("[]=")>-1&&(g=yr(g)?[g]:g);var I=Ge.call(n,d);I&&t.duplicates==="combine"?n[d]=ue.combine(n[d],g):(!I||t.duplicates==="last")&&(n[d]=g)}return n},xn=function(r,e,t,n){var a=0;if(r.length>0&&r[r.length-1]==="[]"){var i=r.slice(0,-1).join("");a=Array.isArray(e)&&e[i]?e[i].length:0}for(var f=n?e:Rr(e,t,a),o=r.length-1;o>=0;--o){var l,s=r[o];if(s==="[]"&&t.parseArrays)l=t.allowEmptyArrays&&(f===""||t.strictNullHandling&&f===null)?[]:ue.combine([],f);else{l=t.plainObjects?{__proto__:null}:{};var c=s.charAt(0)==="["&&s.charAt(s.length-1)==="]"?s.slice(1,-1):s,m=t.decodeDotInKeys?c.replace(/%2E/g,"."):c,u=parseInt(m,10);!t.parseArrays&&m===""?l={0:f}:!isNaN(u)&&s!==m&&String(u)===m&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(l=[],l[u]=f):m!=="__proto__"&&(l[m]=f)}f=l}return f},On=function(e,t,n,a){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,f=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,l=n.depth>0&&f.exec(i),s=l?i.slice(0,l.index):i,c=[];if(s){if(!n.plainObjects&&Ge.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var m=0;n.depth>0&&(l=o.exec(i))!==null&&m<n.depth;){if(m+=1,!n.plainObjects&&Ge.call(Object.prototype,l[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(l[1])}if(l){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+i.slice(l.index)+"]")}return xn(c,t,n,a)}},En=function(e){if(!e)return A;if(typeof e.allowEmptyArrays<"u"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys<"u"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder<"u"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded<"u"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=typeof e.charset>"u"?A.charset:e.charset,n=typeof e.duplicates>"u"?A.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof e.allowDots>"u"?e.decodeDotInKeys===!0?!0:A.allowDots:!!e.allowDots;return{allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:A.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:A.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:A.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:A.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:A.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:A.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:A.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:A.decoder,delimiter:typeof e.delimiter=="string"||ue.isRegExp(e.delimiter)?e.delimiter:A.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:A.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:A.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:A.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:A.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:A.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},An=function(r,e){var t=En(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?{__proto__:null}:{};for(var n=typeof r=="string"?bn(r,t):r,a=t.plainObjects?{__proto__:null}:{},i=Object.keys(n),f=0;f<i.length;++f){var o=i[f],l=On(o,n[o],t,typeof r=="string");a=ue.merge(a,l,t)}return t.allowSparse===!0?a:ue.compact(a)},Tn=vn,$n=An,Cn=je,In={formats:Cn,parse:$n,stringify:Tn};const _n=ne.getDefaultExportFromCjs(In);var Rn=kr;function H(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Dn=/^([a-z0-9.+-]+:)/i,Ln=/:[0-9]*$/,Fn=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,Mn=["<",">",'"',"`"," ","\r",`
|
|
5
|
+
`," "],Pn=["{","}","|","\\","^","`"].concat(Mn),Qe=["'"].concat(Pn),dr=["%","/","?",";","#"].concat(Qe),mr=["/","?","#"],Nn=255,vr=/^[+a-z0-9A-Z_-]{0,63}$/,qn=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Un={javascript:!0,"javascript:":!0},Ve={javascript:!0,"javascript:":!0},he={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Je=_n;function Se(r,e,t){if(r&&typeof r=="object"&&r instanceof H)return r;var n=new H;return n.parse(r,e,t),n}H.prototype.parse=function(r,e,t){if(typeof r!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof r);var n=r.indexOf("?"),a=n!==-1&&n<r.indexOf("#")?"?":"#",i=r.split(a),f=/\\/g;i[0]=i[0].replace(f,"/"),r=i.join(a);var o=r;if(o=o.trim(),!t&&r.split("#").length===1){var l=Fn.exec(o);if(l)return this.path=o,this.href=o,this.pathname=l[1],l[2]?(this.search=l[2],e?this.query=Je.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var s=Dn.exec(o);if(s){s=s[0];var c=s.toLowerCase();this.protocol=c,o=o.substr(s.length)}if(t||s||o.match(/^\/\/[^@/]+@[^@/]+/)){var m=o.substr(0,2)==="//";m&&!(s&&Ve[s])&&(o=o.substr(2),this.slashes=!0)}if(!Ve[s]&&(m||s&&!he[s])){for(var u=-1,d=0;d<mr.length;d++){var g=o.indexOf(mr[d]);g!==-1&&(u===-1||g<u)&&(u=g)}var I,S;u===-1?S=o.lastIndexOf("@"):S=o.lastIndexOf("@",u),S!==-1&&(I=o.slice(0,S),o=o.slice(S+1),this.auth=decodeURIComponent(I)),u=-1;for(var d=0;d<dr.length;d++){var g=o.indexOf(dr[d]);g!==-1&&(u===-1||g<u)&&(u=g)}u===-1&&(u=o.length),this.host=o.slice(0,u),o=o.slice(u),this.parseHost(),this.hostname=this.hostname||"";var F=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!F)for(var y=this.hostname.split(/\./),d=0,p=y.length;d<p;d++){var x=y[d];if(x&&!x.match(vr)){for(var b="",O=0,N=x.length;O<N;O++)x.charCodeAt(O)>127?b+="x":b+=x[O];if(!b.match(vr)){var T=y.slice(0,d),$=y.slice(d+1),D=x.match(qn);D&&(T.push(D[1]),$.unshift(D[2])),$.length&&(o="/"+$.join(".")+o),this.hostname=T.join(".");break}}}this.hostname.length>Nn?this.hostname="":this.hostname=this.hostname.toLowerCase(),F||(this.hostname=Rn.toASCII(this.hostname));var K=this.port?":"+this.port:"",k=this.hostname||"";this.host=k+K,this.href+=this.host,F&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),o[0]!=="/"&&(o="/"+o))}if(!Un[c])for(var d=0,p=Qe.length;d<p;d++){var _=Qe[d];if(o.indexOf(_)!==-1){var q=encodeURIComponent(_);q===_&&(q=escape(_)),o=o.split(_).join(q)}}var M=o.indexOf("#");M!==-1&&(this.hash=o.substr(M),o=o.slice(0,M));var W=o.indexOf("?");if(W!==-1?(this.search=o.substr(W),this.query=o.substr(W+1),e&&(this.query=Je.parse(this.query)),o=o.slice(0,W)):e&&(this.search="",this.query={}),o&&(this.pathname=o),he[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var K=this.pathname||"",ee=this.search||"";this.path=K+ee}return this.href=this.format(),this};function Wn(r){return typeof r=="string"&&(r=Se(r)),r instanceof H?r.format():H.prototype.format.call(r)}H.prototype.format=function(){var r=this.auth||"";r&&(r=encodeURIComponent(r),r=r.replace(/%3A/i,":"),r+="@");var e=this.protocol||"",t=this.pathname||"",n=this.hash||"",a=!1,i="";this.host?a=r+this.host:this.hostname&&(a=r+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(i=Je.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var f=this.search||i&&"?"+i||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||he[e])&&a!==!1?(a="//"+(a||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):a||(a=""),n&&n.charAt(0)!=="#"&&(n="#"+n),f&&f.charAt(0)!=="?"&&(f="?"+f),t=t.replace(/[?#]/g,function(o){return encodeURIComponent(o)}),f=f.replace("#","%23"),e+a+t+f+n};function Bn(r,e){return Se(r,!1,!0).resolve(e)}H.prototype.resolve=function(r){return this.resolveObject(Se(r,!1,!0)).format()};function zn(r,e){return r?Se(r,!1,!0).resolveObject(e):e}H.prototype.resolveObject=function(r){if(typeof r=="string"){var e=new H;e.parse(r,!1,!0),r=e}for(var t=new H,n=Object.keys(this),a=0;a<n.length;a++){var i=n[a];t[i]=this[i]}if(t.hash=r.hash,r.href==="")return t.href=t.format(),t;if(r.slashes&&!r.protocol){for(var f=Object.keys(r),o=0;o<f.length;o++){var l=f[o];l!=="protocol"&&(t[l]=r[l])}return he[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(r.protocol&&r.protocol!==t.protocol){if(!he[r.protocol]){for(var s=Object.keys(r),c=0;c<s.length;c++){var m=s[c];t[m]=r[m]}return t.href=t.format(),t}if(t.protocol=r.protocol,!r.host&&!Ve[r.protocol]){for(var p=(r.pathname||"").split("/");p.length&&!(r.host=p.shift()););r.host||(r.host=""),r.hostname||(r.hostname=""),p[0]!==""&&p.unshift(""),p.length<2&&p.unshift(""),t.pathname=p.join("/")}else t.pathname=r.pathname;if(t.search=r.search,t.query=r.query,t.host=r.host||"",t.auth=r.auth,t.hostname=r.hostname||r.host,t.port=r.port,t.pathname||t.search){var u=t.pathname||"",d=t.search||"";t.path=u+d}return t.slashes=t.slashes||r.slashes,t.href=t.format(),t}var g=t.pathname&&t.pathname.charAt(0)==="/",I=r.host||r.pathname&&r.pathname.charAt(0)==="/",S=I||g||t.host&&r.pathname,F=S,y=t.pathname&&t.pathname.split("/")||[],p=r.pathname&&r.pathname.split("/")||[],x=t.protocol&&!he[t.protocol];if(x&&(t.hostname="",t.port=null,t.host&&(y[0]===""?y[0]=t.host:y.unshift(t.host)),t.host="",r.protocol&&(r.hostname=null,r.port=null,r.host&&(p[0]===""?p[0]=r.host:p.unshift(r.host)),r.host=null),S=S&&(p[0]===""||y[0]==="")),I)t.host=r.host||r.host===""?r.host:t.host,t.hostname=r.hostname||r.hostname===""?r.hostname:t.hostname,t.search=r.search,t.query=r.query,y=p;else if(p.length)y||(y=[]),y.pop(),y=y.concat(p),t.search=r.search,t.query=r.query;else if(r.search!=null){if(x){t.host=y.shift(),t.hostname=t.host;var b=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;b&&(t.auth=b.shift(),t.hostname=b.shift(),t.host=t.hostname)}return t.search=r.search,t.query=r.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!y.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var O=y.slice(-1)[0],N=(t.host||r.host||y.length>1)&&(O==="."||O==="..")||O==="",T=0,$=y.length;$>=0;$--)O=y[$],O==="."?y.splice($,1):O===".."?(y.splice($,1),T++):T&&(y.splice($,1),T--);if(!S&&!F)for(;T--;T)y.unshift("..");S&&y[0]!==""&&(!y[0]||y[0].charAt(0)!=="/")&&y.unshift(""),N&&y.join("/").substr(-1)!=="/"&&y.push("");var D=y[0]===""||y[0]&&y[0].charAt(0)==="/";if(x){t.hostname=D?"":y.length?y.shift():"",t.host=t.hostname;var b=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;b&&(t.auth=b.shift(),t.hostname=b.shift(),t.host=t.hostname)}return S=S||t.host&&y.length,S&&!D&&y.unshift(""),y.length>0?t.pathname=y.join("/"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=r.auth||t.auth,t.slashes=t.slashes||r.slashes,t.href=t.format(),t};H.prototype.parseHost=function(){var r=this.host,e=Ln.exec(r);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),r=r.substr(0,r.length-e.length)),r&&(this.hostname=r)};var Hn=Se,Kn=Bn,Dr=zn,kn=Wn,Gn=H;function Qn(r,e){for(var t=0,n=r.length-1;n>=0;n--){var a=r[n];a==="."?r.splice(n,1):a===".."?(r.splice(n,1),t++):t&&(r.splice(n,1),t--)}if(e)for(;t--;t)r.unshift("..");return r}function Vn(){for(var r="",e=!1,t=arguments.length-1;t>=-1&&!e;t--){var n=t>=0?arguments[t]:"/";if(typeof n!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!n)continue;r=n+"/"+r,e=n.charAt(0)==="/"}return r=Qn(Jn(r.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+r||"."}function Jn(r,e){if(r.filter)return r.filter(e);for(var t=[],n=0;n<r.length;n++)e(r[n],n,r)&&t.push(r[n]);return t}var Lr=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),Zn=kn,Fr=Hn,Mr=Kn,Pr=Gn,ae=Lr.URL,Nr=Lr.URLSearchParams,Xn=/%/g,Yn=/\\/g,jn=/\n/g,ea=/\r/g,ra=/\t/g,ta=47;function na(r){var e=r??null;return!!(e!==null&&e?.href&&e?.origin)}function aa(r){if(r.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var e=r.pathname,t=0;t<e.length;t++)if(e[t]==="%"){var n=e.codePointAt(t+2)|32;if(e[t+1]==="2"&&n===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(e)}function ia(r){return r.includes("%")&&(r=r.replace(Xn,"%25")),r.includes("\\")&&(r=r.replace(Yn,"%5C")),r.includes(`
|
|
6
|
+
`)&&(r=r.replace(jn,"%0A")),r.includes("\r")&&(r=r.replace(ea,"%0D")),r.includes(" ")&&(r=r.replace(ra,"%09")),r}var qr=function(e){if(typeof e>"u")throw new TypeError('The "domain" argument must be specified');return new ae("http://"+e).hostname},Ur=function(e){if(typeof e>"u")throw new TypeError('The "domain" argument must be specified');return new ae("http://"+e).hostname},Wr=function(e){var t=new ae("file://"),n=Vn(e),a=e.charCodeAt(e.length-1);return a===ta&&n[n.length-1]!=="/"&&(n+="/"),t.pathname=ia(n),t},Br=function(e){if(!na(e)&&typeof e!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof e+" ("+e+")");var t=new ae(e);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return aa(t)},zr=function(e,t){var n,a,i,f;if(t===void 0&&(t={}),!(e instanceof ae))return Zn(e);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var o=(n=t.auth)!=null?n:!0,l=(a=t.fragment)!=null?a:!0,s=(i=t.search)!=null?i:!0;(f=t.unicode)!=null;var c=new ae(e.toString());return o||(c.username="",c.password=""),l||(c.hash=""),s||(c.search=""),c.toString()},oa={format:zr,parse:Fr,resolve:Mr,resolveObject:Dr,Url:Pr,URL:ae,URLSearchParams:Nr,domainToASCII:qr,domainToUnicode:Ur,pathToFileURL:Wr,fileURLToPath:Br};const fa=Object.freeze(Object.defineProperty({__proto__:null,URL:ae,URLSearchParams:Nr,Url:Pr,default:oa,domainToASCII:qr,domainToUnicode:Ur,fileURLToPath:Br,format:zr,parse:Fr,pathToFileURL:Wr,resolve:Mr,resolveObject:Dr},Symbol.toStringTag,{value:"Module"}));exports.url=fa;
|