UNPKG

pdf-parse-test

Version:

Pure TypeScript, cross-platform module for extracting text, images, and tabular data from PDFs. Run directly in your browser or in Node!

1 lines 479 kB
(function(et,it){typeof exports=="object"&&typeof module<"u"?it(exports):typeof define=="function"&&define.amd?define(["exports"],it):(et=typeof globalThis<"u"?globalThis:et||self,it(et.PdfParse={}))})(this,(function(et){"use strict";var Tn=et=>{throw TypeError(et)};var di=(et,it,q)=>it.has(et)||Tn("Cannot "+q);var dt=(et,it,q)=>(di(et,it,"read from private field"),q?q.call(et):it.get(et)),qt=(et,it,q)=>it.has(et)?Tn("Cannot add the same private member more than once"):it instanceof WeakSet?it.add(et):it.set(et,q),Ft=(et,it,q,V)=>(di(et,it,"write to private field"),V?V.call(et,q):it.set(et,q),q),te=(et,it,q)=>(di(et,it,"access private method"),q);var Cn=(et,it,q,V)=>({set _(Nt){Ft(et,it,Nt,q)},get _(){return dt(et,it,V)}});var le,Xt,ae,ve,ws,ye,be,Dt,Ss,Pn,Rn,qe,Le,xs;var it=typeof document<"u"?document.currentScript:null;class q{static tolerance=2;static applyTransform(t,e){const s=t[0]*e[0]+t[1]*e[2]+e[4],i=t[0]*e[1]+t[1]*e[3]+e[5];return[s,i]}}class V extends q{x;y;constructor(t,e){super(),this.x=t,this.y=e}equal(t){return t.x===this.x&&t.y===this.y}transform(t){const e=q.applyTransform([this.x,this.y],t);return this.x=e[0],this.y=e[1],this}}var Nt=(h=>(h[h.None=0]="None",h[h.Horizontal=1]="Horizontal",h[h.Vertical=2]="Vertical",h))(Nt||{});class bt extends q{from;to;direction=0;length=0;intersections=[];gaps=[];constructor(t,e){super(),this.from=t,this.to=e,this.init()}init(){let t=this.from,e=this.to;if(Math.abs(t.y-e.y)<q.tolerance){if(this.direction=1,e.y=t.y,t.x>e.x){const s=t;t=e,e=s}this.length=e.x-t.x}else if(Math.abs(t.x-e.x)<q.tolerance){if(this.direction=2,e.x=t.x,t.y>e.y){const s=t;t=e,e=s}this.length=e.y-t.y}this.from=t,this.to=e}_valid=void 0;get valid(){return this._valid===void 0&&(this._valid=this.direction!==0&&this.length>q.tolerance),this._valid}get normalized(){return this.direction===1?new bt(new V(this.from.x-q.tolerance,this.from.y),new V(this.to.x+q.tolerance,this.from.y)):this.direction===2?new bt(new V(this.from.x,this.from.y-q.tolerance),new V(this.from.x,this.to.y+q.tolerance)):this}addGap(t){this.gaps.push(t)}containsPoint(t){return this.direction===2?this.from.x===t.x&&t.y>=this.from.y&&t.y<=this.to.y:this.direction===1?this.from.y===t.y&&t.x>=this.from.x&&t.x<=this.to.x:!1}addIntersectionPoint(t){for(const e of this.intersections)if(e.equal(t))return;this.intersections.push(t)}intersection(t){let e;if(!this.valid||!t.valid)return e;const s=this.normalized,i=t.normalized;if(this.direction===1&&t.direction===2){const n=i.from.x,r=s.from.y;if(n>s.from.x&&n<s.to.x&&r>i.from.y&&r<i.to.y){const o=new V(n,r);this.addIntersectionPoint(o),t.addIntersectionPoint(o),e=o}}else if(this.direction===2&&t.direction===1){const n=s.from.x,r=i.from.y;if(n>i.from.x&&n<i.to.x&&r>s.from.y&&r<s.to.y){const o=new V(n,r);this.addIntersectionPoint(o),t.addIntersectionPoint(o),e=o}}return e}transform(t){const e=this.from.transform(t),s=this.to.transform(t),i=Math.min(e.x,s.x),n=Math.min(e.y,s.y),r=Math.abs(e.x-s.x),a=Math.abs(e.y-s.y);return this.from=new V(i,n),this.to=new V(i+r,n+a),this.init(),this}}class In{minXY;maxXY;rows;rowPivots;colPivots;constructor(t,e,s,i){this.minXY=t,this.maxXY=e,this.rows=[],this.rowPivots=s,this.colPivots=i}findCell(t,e){if(t>=this.minXY.x&&e>=this.minXY.y&&t<=this.maxXY.x&&e<=this.maxXY.y){for(const s of this.rows)for(const i of s)if(i.minXY.x<=t&&i.minXY.y<=e&&i.maxXY.x>=t&&i.maxXY.y>=e)return i}}get cellCount(){return this.rows.reduce((t,e)=>t+e.length,0)}get rowCount(){return this.rows.length}check(){const t=(this.colPivots.length-1)*(this.rowPivots.length-1);let e=0;for(const s of this.rows)for(const i of s){const n=(i.colspan||1)*(i.rowspan||1);e+=n}return t===e}toArray(){const t=[];for(const e of this.rows){const s=[];for(const i of e){let n=i.text.join("");n=n.replace(/^[\s]+|[\s]+$/g,""),n=n.trim(),s.push(n)}t.push(s)}return t}}class ui{hLines=[];vLines=[];constructor(t){t.direction===Nt.Horizontal?this.hLines.push(t):t.direction===Nt.Vertical&&this.vLines.push(t)}get isValid(){return this.hLines.length+this.vLines.length>4}get rowPivots(){const t=new Set;for(const e of this.hLines)t.add(e.from.y);return[...t].sort((e,s)=>e-s)}get colPivots(){const t=new Set;for(const e of this.vLines)t.add(e.from.x);return[...t].sort((e,s)=>e-s)}add(t){if(this.intersection(t)){if(t.direction===Nt.Horizontal)return this.hLines.push(t),!0;if(t.direction===Nt.Vertical)return this.vLines.push(t),!0}return!1}intersection(t){let e=!1;if(!t.valid)return e;if(t.direction===Nt.Horizontal)for(const s of this.vLines)t.intersection(s)&&(e=!0);else if(t.direction===Nt.Vertical)for(const s of this.hLines)t.intersection(s)&&(e=!0);return e}getSameHorizontal(t){const e=[t],s=[];for(;this.hLines.length>0;){const i=this.hLines.shift();i&&(i.from.y===t.from.y?e.push(i):s.push(i))}return this.hLines=s,e}getSameVertical(t){const e=[t],s=[];for(;this.vLines.length>0;){const i=this.vLines.shift();i&&(i.from.x===t.from.x?e.push(i):s.push(i))}return this.vLines=s,e}mergeHorizontalLines(t){t.sort((n,r)=>n.from.x-r.from.x);const e=t[0].from.x,s=t[t.length-1].to.x,i=new bt(new V(e,t[0].from.y),new V(s,t[0].from.y));for(let n=1;n<t.length;n++){const r=t[n-1],a=t[n];if(Math.abs(r.to.x-a.from.x)>q.tolerance){const o=new bt(new V(r.to.x,r.from.y),new V(a.from.x,a.from.y));i.addGap(o)}}return i}mergeVerticalLines(t){t.sort((n,r)=>n.from.y-r.from.y);const e=t[0].from.y,s=t[t.length-1].to.y,i=new bt(new V(t[0].from.x,e),new V(t[0].from.x,s));for(let n=1;n<t.length;n++){const r=t[n-1],a=t[n];if(Math.abs(r.to.y-a.from.y)>q.tolerance){const o=new bt(new V(r.to.x,r.to.y),new V(r.to.x,a.from.y));i.addGap(o)}}return i}normalize(){this.hLines=this.hLines.filter(s=>s.intersections.length>1),this.vLines=this.vLines.filter(s=>s.intersections.length>1),this.hLines.sort((s,i)=>s.from.y-i.from.y),this.vLines.sort((s,i)=>s.from.x-i.from.x);const t=[];for(;this.hLines.length>0;){const s=this.hLines.shift();if(!s)continue;const i=this.getSameHorizontal(s),n=this.mergeHorizontalLines(i);t.push(n)}this.hLines=t;const e=[];for(;this.vLines.length>0;){const s=this.vLines.shift();if(!s)continue;const i=this.getSameVertical(s),n=this.mergeVerticalLines(i);e.push(n)}this.vLines=e}verticalExists(t,e,s){if(t.direction!==Nt.Vertical)throw new Error("Line is not vertical");if(e>=s)throw new Error("y1 must be less than y2");if(t.from.y<=e&&t.to.y>=s){for(const i of t.gaps)if(i.from.y<=e&&i.to.y>=s)return!1;return!0}return!1}horizontalExists(t,e,s){if(t.direction!==Nt.Horizontal)throw new Error("Line is not horizontal");if(e>=s)throw new Error("x1 must be less than x2");if(t.from.x<=e&&t.to.x>=s){for(const i of t.gaps)if(i.from.x<=e&&i.to.x>=s)return!1;return!0}return!1}findBottomLineIndex(t,e){for(let s=t;s<this.hLines.length;s++){const i=this.hLines[s];if(i.from.x<=e&&i.to.x>=e)return s}return-1}findVerticalLineIndexs(t,e){const s=[];for(let i=0;i<this.vLines.length;i++){const n=this.vLines[i];n.from.y<=e&&n.to.y>=e&&t.intersection(n)&&s.push(i)}return s}getRow(t,e,s){const i=[],n=this.hLines[t],r=this.findVerticalLineIndexs(n,s);for(let a=1;a<r.length;a++){const o=this.vLines[r[a-1]],l=this.vLines[r[a]],c=(o.from.x+l.from.x)/2,d=this.findBottomLineIndex(e,c),u=this.hLines[d],f={minXY:new V(o.from.x,n.from.y),maxXY:new V(l.from.x,u.from.y),width:l.from.x-o.from.x,height:u.from.y-n.from.y,text:[]},g=r[a]-r[a-1],p=d-t;g>1&&(f.colspan=g),p>1&&(f.rowspan=p),i.push(f)}return i}toData(){const t=this.rowPivots,e=this.colPivots,s=new V(e[0],t[0]),i=new V(e[e.length-1],t[t.length-1]),n=new In(s,i,t,e);for(let r=1;r<this.hLines.length;r++){const a=this.hLines[r-1],o=this.hLines[r],l=(a.from.y+o.from.y)/2,c=this.getRow(r-1,r,l);n.rows.push(c)}return n}}class Mn{hLines=[];vLines=[];add(t){t.valid&&(t.direction===Nt.Horizontal?this.hLines.push(t):t.direction===Nt.Vertical&&this.vLines.push(t))}addRectangle(t){for(const e of t.getLines())this.add(e)}getTableData(){const t=[],e=this.getTables();for(const s of e){const i=s.toData();i&&t.push(i)}return t}getTables(){const t=[];for(;this.hLines.length!==0;){const s=this.hLines.shift();if(!s||this.tryFill(t,s))continue;const n=new ui(s);this.fillTable(n),t.push(n)}for(;this.vLines.length!==0;){const s=this.vLines.shift();if(!s||this.tryFill(t,s))continue;const n=new ui(s);this.fillTable(n),t.push(n)}const e=t.filter(s=>s.isValid);for(const s of e)s.normalize();return e}normalize(){this.normalizeHorizontal(),this.normalizeVertical()}normalizeHorizontal(){this.hLines.sort((s,i)=>s.from.y-i.from.y);const t=[];let e=[];for(const s of this.hLines)if(e.length===0)e.push(s);else if(Math.abs(e[0]?.from.y-s.from.y)<q.tolerance)e.push(s);else{const i=this.margeHorizontalLines(e);t.push(...i),e=[s]}if(e.length>0){const s=this.margeHorizontalLines(e);t.push(...s)}this.hLines=t}normalizeVertical(){this.vLines.sort((s,i)=>s.from.x-i.from.x);const t=[];let e=[];for(const s of this.vLines)if(e.length===0)e.push(s);else if(Math.abs(e[0]?.from.x-s.from.x)<q.tolerance)e.push(s);else{const i=this.margeVerticalLines(e);t.push(...i),e=[s]}if(e.length>0){const s=this.margeVerticalLines(e);t.push(...s)}this.vLines=t}fillTable(t){const e=[],s=[];for(const i of this.vLines)t.add(i)||e.push(i);for(const i of this.hLines)t.add(i)||s.push(i);this.hLines=s,this.vLines=e}tryFill(t,e){for(const s of t)if(s.add(e))return this.fillTable(s),!0;return!1}margeHorizontalLines(t){const e=[];t.sort((a,o)=>a.from.x-o.from.x);const s=t[0]?.from.y;if(s===void 0)return e;let i=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;for(const a of t)a.from.x-n<q.tolerance?(a.from.x<i&&(i=a.from.x),a.to.x>n&&(n=a.to.x)):(n>i&&e.push(new bt(new V(i,s),new V(n,s))),i=a.from.x,n=a.to.x);const r=e[e.length-1];return r?r.from.x!==i&&r.to.x!==n&&e.push(new bt(new V(i,s),new V(n,s))):e.push(new bt(new V(i,s),new V(n,s))),e}margeVerticalLines(t){const e=[];t.sort((a,o)=>a.from.y-o.from.y);const s=t[0]?.from.x;if(s===void 0)return e;let i=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;for(const a of t)a.from.y-n<q.tolerance?(a.from.y<i&&(i=a.from.y),a.to.y>n&&(n=a.to.y)):(n>i&&e.push(new bt(new V(s,i),new V(s,n))),i=a.from.y,n=a.to.y);const r=e[e.length-1];return r?r.from.y!==i&&r.to.y!==n&&e.push(new bt(new V(s,i),new V(s,n))):e.push(new bt(new V(s,i),new V(s,n))),e}}class Dn extends q{from;width;height;constructor(t,e,s){super(),this.from=t,this.width=e,this.height=s}get to(){return new V(this.from.x+this.width,this.from.y+this.height)}getLines(){const t=this.to;return[new bt(this.from,new V(t.x,this.from.y)),new bt(this.from,new V(this.from.x,t.y)),new bt(new V(t.x,this.from.y),t),new bt(new V(this.from.x,t.y),t)].filter(s=>s.valid)}transform(t){const e=q.applyTransform([this.from.x,this.from.y],t),s=q.applyTransform([this.from.x+this.width,this.from.y+this.height],t),i=Math.min(e[0],s[0]),n=Math.min(e[1],s[1]),r=Math.abs(e[0]-s[0]),a=Math.abs(e[1]-s[1]);return this.from=new V(i,n),this.width=r,this.height=a,this}}async function fi(h,t=!1){try{const e=globalThis.fetch;if(typeof e=="function"){const s=await e(h,{method:"HEAD"}),i={};s.headers.forEach((a,o)=>{i[o]=a});const n=s.headers.get("content-length")?parseInt(s.headers.get("content-length"),10):void 0;let r;if(t){const a=await e(h,{method:"GET",headers:{Range:"bytes=0-4"}});if(a.ok){const o=new Uint8Array(await a.arrayBuffer());r=Array.from(o).map(c=>String.fromCharCode(c)).join("").startsWith("%PDF")}else r=!1}return{ok:s.ok,status:s.status,size:n,isPdf:r,headers:i}}throw new Error("Fetch API not available")}catch(e){return{ok:!1,status:void 0,size:void 0,isPdf:!1,headers:{},error:new Error(String(e))}}}class Ln{pages=[];total=0;getPageImage(t,e){for(const s of this.pages)if(s.pageNumber===t){for(const i of s.images)if(i.name===e)return i}return null}constructor(t){this.total=t}}var On={34:((h,t,e)=>{var s=e(4901);h.exports=function(i){return typeof i=="object"?i!==null:s(i)}}),81:((h,t,e)=>{var s=e(9565),i=e(9306),n=e(8551),r=e(6823),a=e(851),o=TypeError;h.exports=function(l,c){var d=arguments.length<2?a(l):c;if(i(d))return n(s(d,l));throw new o(r(l)+" is not iterable")}}),116:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(2652),r=e(9306),a=e(8551),o=e(1767),l=e(9539),c=e(4549),d=c("find",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(f){a(this);try{r(f)}catch(v){l(this,"throw",v)}if(d)return i(d,this,f);var g=o(this),p=0;return n(g,function(v,m){if(f(v,p++))return m(v)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}),283:((h,t,e)=>{var s=e(9504),i=e(9039),n=e(4901),r=e(9297),a=e(3724),o=e(350).CONFIGURABLE,l=e(3706),c=e(1181),d=c.enforce,u=c.get,f=String,g=Object.defineProperty,p=s("".slice),v=s("".replace),m=s([].join),b=a&&!i(function(){return g(function(){},"length",{value:8}).length!==8}),y=String(String).split("String"),E=h.exports=function(A,w,S){p(f(w),0,7)==="Symbol("&&(w="["+v(f(w),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),S&&S.getter&&(w="get "+w),S&&S.setter&&(w="set "+w),(!r(A,"name")||o&&A.name!==w)&&(a?g(A,"name",{value:w,configurable:!0}):A.name=w),b&&S&&r(S,"arity")&&A.length!==S.arity&&g(A,"length",{value:S.arity});try{S&&r(S,"constructor")&&S.constructor?a&&g(A,"prototype",{writable:!1}):A.prototype&&(A.prototype=void 0)}catch{}var x=d(A);return r(x,"source")||(x.source=m(y,typeof w=="string"?w:"")),A};Function.prototype.toString=E(function(){return n(this)&&u(this).source||l(this)},"toString")}),350:((h,t,e)=>{var s=e(3724),i=e(9297),n=Function.prototype,r=s&&Object.getOwnPropertyDescriptor,a=i(n,"name"),o=a&&(function(){}).name==="something",l=a&&(!s||s&&r(n,"name").configurable);h.exports={EXISTS:a,PROPER:o,CONFIGURABLE:l}}),397:((h,t,e)=>{var s=e(7751);h.exports=s("document","documentElement")}),421:(h=>{h.exports={}}),456:((h,t,e)=>{var s=e(6518),i=e(4576),n=e(9504),r=e(4154),a=e(5169),o=n(1.1.toString),l=i.Uint8Array,c=!l||!l.prototype.toHex||!(function(){try{var d=new l([255,255,255,255,255,255,255,255]);return d.toHex()==="ffffffffffffffff"}catch{return!1}})();l&&s({target:"Uint8Array",proto:!0,forced:c},{toHex:function(){r(this),a(this.buffer);for(var u="",f=0,g=this.length;f<g;f++){var p=o(this[f],16);u+=p.length===1?"0"+p:p}return u}})}),507:((h,t,e)=>{var s=e(9565);h.exports=function(i,n,r){for(var a=r?i:i.iterator,o=i.next,l,c;!(l=s(o,a)).done;)if(c=n(l.value),c!==void 0)return c}}),531:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(9306),r=e(8551),a=e(1767),o=e(8646),l=e(9462),c=e(9539),d=e(6395),u=e(684),f=e(4549),g=!d&&!u("flatMap",function(){}),p=!d&&!g&&f("flatMap",TypeError),v=d||g||p,m=l(function(){for(var b=this.iterator,y=this.mapper,E,A;;){if(A=this.inner)try{if(E=r(i(A.next,A.iterator)),!E.done)return E.value;this.inner=null}catch(w){c(b,"throw",w)}if(E=r(i(this.next,b)),this.done=!!E.done)return;try{this.inner=o(y(E.value,this.counter++),!1)}catch(w){c(b,"throw",w)}}});s({target:"Iterator",proto:!0,real:!0,forced:v},{flatMap:function(y){r(this);try{n(y)}catch(E){c(this,"throw",E)}return p?i(p,this,y):new m(a(this),{mapper:y,inner:null})}})}),616:((h,t,e)=>{var s=e(9039);h.exports=!s(function(){var i=(function(){}).bind();return typeof i!="function"||i.hasOwnProperty("prototype")})}),655:((h,t,e)=>{var s=e(6955),i=String;h.exports=function(n){if(s(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return i(n)}}),679:((h,t,e)=>{var s=e(1625),i=TypeError;h.exports=function(n,r){if(s(r,n))return n;throw new i("Incorrect invocation")}}),684:(h=>{h.exports=function(t,e){var s=typeof Iterator=="function"&&Iterator.prototype[t];if(s)try{s.call({next:null},e).next()}catch{return!0}}}),741:(h=>{var t=Math.ceil,e=Math.floor;h.exports=Math.trunc||function(i){var n=+i;return(n>0?e:t)(n)}}),757:((h,t,e)=>{var s=e(7751),i=e(4901),n=e(1625),r=e(7040),a=Object;h.exports=r?function(o){return typeof o=="symbol"}:function(o){var l=s("Symbol");return i(l)&&n(l.prototype,a(o))}}),851:((h,t,e)=>{var s=e(6955),i=e(5966),n=e(4117),r=e(6269),a=e(8227),o=a("iterator");h.exports=function(l){if(!n(l))return i(l,o)||i(l,"@@iterator")||r[s(l)]}}),944:(h=>{var t=TypeError;h.exports=function(e){var s=e&&e.alphabet;if(s===void 0||s==="base64"||s==="base64url")return s||"base64";throw new t("Incorrect `alphabet` option")}}),1072:((h,t,e)=>{var s=e(1828),i=e(8727);h.exports=Object.keys||function(r){return s(r,i)}}),1103:(h=>{h.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}}),1108:((h,t,e)=>{var s=e(6955);h.exports=function(i){var n=s(i);return n==="BigInt64Array"||n==="BigUint64Array"}}),1148:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(2652),r=e(9306),a=e(8551),o=e(1767),l=e(9539),c=e(4549),d=c("every",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(f){a(this);try{r(f)}catch(v){l(this,"throw",v)}if(d)return i(d,this,f);var g=o(this),p=0;return!n(g,function(v,m){if(!f(v,p++))return m()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),1181:((h,t,e)=>{var s=e(8622),i=e(4576),n=e(34),r=e(6699),a=e(9297),o=e(7629),l=e(6119),c=e(421),d="Object already initialized",u=i.TypeError,f=i.WeakMap,g,p,v,m=function(A){return v(A)?p(A):g(A,{})},b=function(A){return function(w){var S;if(!n(w)||(S=p(w)).type!==A)throw new u("Incompatible receiver, "+A+" required");return S}};if(s||o.state){var y=o.state||(o.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,g=function(A,w){if(y.has(A))throw new u(d);return w.facade=A,y.set(A,w),w},p=function(A){return y.get(A)||{}},v=function(A){return y.has(A)}}else{var E=l("state");c[E]=!0,g=function(A,w){if(a(A,E))throw new u(d);return w.facade=A,r(A,E,w),w},p=function(A){return a(A,E)?A[E]:{}},v=function(A){return a(A,E)}}h.exports={set:g,get:p,has:v,enforce:m,getterFor:b}}),1291:((h,t,e)=>{var s=e(741);h.exports=function(i){var n=+i;return n!==n||n===0?0:s(n)}}),1385:((h,t,e)=>{var s=e(9539);h.exports=function(i,n,r){for(var a=i.length-1;a>=0;a--)if(i[a]!==void 0)try{r=s(i[a].iterator,n,r)}catch(o){n="throw",r=o}if(n==="throw")throw r;return r}}),1548:((h,t,e)=>{var s=e(4576),i=e(9039),n=e(9519),r=e(4215),a=s.structuredClone;h.exports=!!a&&!i(function(){if(r==="DENO"&&n>92||r==="NODE"&&n>94||r==="BROWSER"&&n>97)return!1;var o=new ArrayBuffer(8),l=a(o,{transfer:[o]});return o.byteLength!==0||l.byteLength!==8})}),1549:((h,t,e)=>{e(6632)}),1625:((h,t,e)=>{var s=e(9504);h.exports=s({}.isPrototypeOf)}),1689:((h,t,e)=>{var s=e(6518),i=e(4576),n=e(8745),r=e(7680),a=e(6043),o=e(9306),l=e(1103),c=i.Promise,d=!1,u=!c||!c.try||l(function(){c.try(function(f){d=f===8},8)}).error||!d;s({target:"Promise",stat:!0,forced:u},{try:function(f){var g=arguments.length>1?r(arguments,1):[],p=a.f(this),v=l(function(){return n(o(f),void 0,g)});return(v.error?p.reject:p.resolve)(v.value),p.promise}})}),1698:((h,t,e)=>{var s=e(6518),i=e(4204),n=e(9835),r=e(4916),a=!r("union")||!n("union");s({target:"Set",proto:!0,real:!0,forced:a},{union:i})}),1701:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(9306),r=e(8551),a=e(1767),o=e(9462),l=e(6319),c=e(9539),d=e(684),u=e(4549),f=e(6395),g=!f&&!d("map",function(){}),p=!f&&!g&&u("map",TypeError),v=f||g||p,m=o(function(){var b=this.iterator,y=r(i(this.next,b)),E=this.done=!!y.done;if(!E)return l(b,this.mapper,[y.value,this.counter++],!0)});s({target:"Iterator",proto:!0,real:!0,forced:v},{map:function(y){r(this);try{n(y)}catch(E){c(this,"throw",E)}return p?i(p,this,y):new m(a(this),{mapper:y})}})}),1767:(h=>{h.exports=function(t){return{iterator:t,next:t.next,done:!1}}}),1828:((h,t,e)=>{var s=e(9504),i=e(9297),n=e(5397),r=e(9617).indexOf,a=e(421),o=s([].push);h.exports=function(l,c){var d=n(l),u=0,f=[],g;for(g in d)!i(a,g)&&i(d,g)&&o(f,g);for(;c.length>u;)i(d,g=c[u++])&&(~r(f,g)||o(f,g));return f}}),2106:((h,t,e)=>{var s=e(283),i=e(4913);h.exports=function(n,r,a){return a.get&&s(a.get,r,{getter:!0}),a.set&&s(a.set,r,{setter:!0}),i.f(n,r,a)}}),2140:((h,t,e)=>{var s=e(8227),i=s("toStringTag"),n={};n[i]="z",h.exports=String(n)==="[object z]"}),2195:((h,t,e)=>{var s=e(9504),i=s({}.toString),n=s("".slice);h.exports=function(r){return n(i(r),8,-1)}}),2211:((h,t,e)=>{var s=e(9039);h.exports=!s(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})}),2303:((h,t,e)=>{var s=e(4576),i=e(9504),n=s.Uint8Array,r=s.SyntaxError,a=s.parseInt,o=Math.min,l=/[^\da-f]/i,c=i(l.exec),d=i("".slice);h.exports=function(u,f){var g=u.length;if(g%2!==0)throw new r("String should be an even number of characters");for(var p=f?o(f.length,g/2):g/2,v=f||new n(p),m=0,b=0;b<p;){var y=d(u,m,m+=2);if(c(l,y))throw new r("String should only contain hex characters");v[b++]=a(y,16)}return{bytes:v,read:m}}}),2360:((h,t,e)=>{var s=e(8551),i=e(6801),n=e(8727),r=e(421),a=e(397),o=e(4055),l=e(6119),c=">",d="<",u="prototype",f="script",g=l("IE_PROTO"),p=function(){},v=function(A){return d+f+c+A+d+"/"+f+c},m=function(A){A.write(v("")),A.close();var w=A.parentWindow.Object;return A=null,w},b=function(){var A=o("iframe"),w="java"+f+":",S;return A.style.display="none",a.appendChild(A),A.src=String(w),S=A.contentWindow.document,S.open(),S.write(v("document.F=Object")),S.close(),S.F},y,E=function(){try{y=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&y?m(y):b():m(y);for(var A=n.length;A--;)delete E[u][n[A]];return E()};r[g]=!0,h.exports=Object.create||function(w,S){var x;return w!==null?(p[u]=s(w),x=new p,p[u]=null,x[g]=w):x=E(),S===void 0?x:i.f(x,S)}}),2475:((h,t,e)=>{var s=e(6518),i=e(8527),n=e(4916),r=!n("isSupersetOf",function(a){return!a});s({target:"Set",proto:!0,real:!0,forced:r},{isSupersetOf:i})}),2489:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(9306),r=e(8551),a=e(1767),o=e(9462),l=e(6319),c=e(6395),d=e(9539),u=e(684),f=e(4549),g=!c&&!u("filter",function(){}),p=!c&&!g&&f("filter",TypeError),v=c||g||p,m=o(function(){for(var b=this.iterator,y=this.predicate,E=this.next,A,w,S;;){if(A=r(i(E,b)),w=this.done=!!A.done,w)return;if(S=A.value,l(b,y,[S,this.counter++],!0))return S}});s({target:"Iterator",proto:!0,real:!0,forced:v},{filter:function(y){r(this);try{n(y)}catch(E){d(this,"throw",E)}return p?i(p,this,y):new m(a(this),{predicate:y})}})}),2529:(h=>{h.exports=function(t,e){return{value:t,done:e}}}),2603:((h,t,e)=>{var s=e(655);h.exports=function(i,n){return i===void 0?arguments.length<2?"":n:s(i)}}),2652:((h,t,e)=>{var s=e(6080),i=e(9565),n=e(8551),r=e(6823),a=e(4209),o=e(6198),l=e(1625),c=e(81),d=e(851),u=e(9539),f=TypeError,g=function(v,m){this.stopped=v,this.result=m},p=g.prototype;h.exports=function(v,m,b){var y=b&&b.that,E=!!(b&&b.AS_ENTRIES),A=!!(b&&b.IS_RECORD),w=!!(b&&b.IS_ITERATOR),S=!!(b&&b.INTERRUPTED),x=s(m,y),T,C,P,O,D,k,H,M=function(B){return T&&u(T,"normal"),new g(!0,B)},I=function(B){return E?(n(B),S?x(B[0],B[1],M):x(B[0],B[1])):S?x(B,M):x(B)};if(A)T=v.iterator;else if(w)T=v;else{if(C=d(v),!C)throw new f(r(v)+" is not iterable");if(a(C)){for(P=0,O=o(v);O>P;P++)if(D=I(v[P]),D&&l(p,D))return D;return new g(!1)}T=c(v,C)}for(k=A?v.next:T.next;!(H=i(k,T)).done;){try{D=I(H.value)}catch(B){u(T,"throw",B)}if(typeof D=="object"&&D&&l(p,D))return D}return new g(!1)}}),2777:((h,t,e)=>{var s=e(9565),i=e(34),n=e(757),r=e(5966),a=e(4270),o=e(8227),l=TypeError,c=o("toPrimitive");h.exports=function(d,u){if(!i(d)||n(d))return d;var f=r(d,c),g;if(f){if(u===void 0&&(u="default"),g=s(f,d,u),!i(g)||n(g))return g;throw new l("Can't convert object to primitive value")}return u===void 0&&(u="number"),a(d,u)}}),2787:((h,t,e)=>{var s=e(9297),i=e(4901),n=e(8981),r=e(6119),a=e(2211),o=r("IE_PROTO"),l=Object,c=l.prototype;h.exports=a?l.getPrototypeOf:function(d){var u=n(d);if(s(u,o))return u[o];var f=u.constructor;return i(f)&&u instanceof f?f.prototype:u instanceof l?c:null}}),2796:((h,t,e)=>{var s=e(9039),i=e(4901),n=/#|\.prototype\./,r=function(d,u){var f=o[a(d)];return f===c?!0:f===l?!1:i(u)?s(u):!!u},a=r.normalize=function(d){return String(d).replace(n,".").toLowerCase()},o=r.data={},l=r.NATIVE="N",c=r.POLYFILL="P";h.exports=r}),2804:(h=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t+"+/",s=t+"-_",i=function(n){for(var r={},a=0;a<64;a++)r[n.charAt(a)]=a;return r};h.exports={i2c:e,c2i:i(e),i2cUrl:s,c2iUrl:i(s)}}),2812:(h=>{var t=TypeError;h.exports=function(e,s){if(e<s)throw new t("Not enough arguments");return e}}),2839:((h,t,e)=>{var s=e(4576),i=s.navigator,n=i&&i.userAgent;h.exports=n?String(n):""}),2967:((h,t,e)=>{var s=e(6706),i=e(34),n=e(7750),r=e(3506);h.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a=!1,o={},l;try{l=s(Object.prototype,"__proto__","set"),l(o,[]),a=o instanceof Array}catch{}return function(d,u){return n(d),r(u),i(d)&&(a?l(d,u):d.__proto__=u),d}})():void 0)}),3068:((h,t,e)=>{var s=e(6518),i=e(9504),n=e(2652),r=RangeError,a=TypeError,o=1/0,l=NaN,c=Math.abs,d=Math.pow,u=i([].push),f=d(2,1023),g=d(2,53)-1,p=Number.MAX_VALUE,v=d(2,971),m={},b={},y={},E={},A={},w=function(S,x){var T=S+x,C=x-(T-S);return{hi:T,lo:C}};s({target:"Math",stat:!0},{sumPrecise:function(x){var T=[],C=0,P=E;switch(n(x,function(L){if(++C>=g)throw new r("Maximum allowed index exceeded");if(typeof L!="number")throw new a("Value is not a number");P!==m&&(L!==L?P=m:L===o?P=P===b?m:y:L===-o?P=P===y?m:b:(L!==0||1/L===o)&&(P===E||P===A)&&(P=A,u(T,L)))}),P){case m:return l;case b:return-o;case y:return o;case E:return-0}for(var O=[],D=0,k,H,M,I,B,K,st=0;st<T.length;st++){k=T[st];for(var vt=0,tt=0;tt<O.length;tt++){if(H=O[tt],c(k)<c(H)&&(K=k,k=H,H=K),M=w(k,H),I=M.hi,B=M.lo,c(I)===o){var Z=I===o?1:-1;D+=Z,k=k-Z*f-Z*f,c(k)<c(H)&&(K=k,k=H,H=K),M=w(k,H),I=M.hi,B=M.lo}B!==0&&(O[vt++]=B),k=I}O.length=vt,k!==0&&u(O,k)}var lt=O.length-1;if(I=0,B=0,D!==0){var Ct=lt>=0?O[lt]:0;if(lt--,c(D)>1||D>0&&Ct>0||D<0&&Ct<0)return D>0?o:-o;if(M=w(D*f,Ct/2),I=M.hi,B=M.lo,B*=2,c(2*I)===o)return I>0?I===f&&B===-(v/2)&&lt>=0&&O[lt]<0?p:o:I===-f&&B===v/2&&lt>=0&&O[lt]>0?-p:-o;B!==0&&(O[++lt]=B,B=0),I*=2}for(;lt>=0&&(M=w(I,O[lt--]),I=M.hi,B=M.lo,B===0););return lt>=0&&(B<0&&O[lt]<0||B>0&&O[lt]>0)&&(H=B*2,k=I+H,H===k-I&&(I=k)),I}})}),3167:((h,t,e)=>{var s=e(4901),i=e(34),n=e(2967);h.exports=function(r,a,o){var l,c;return n&&s(l=a.constructor)&&l!==o&&i(c=l.prototype)&&c!==o.prototype&&n(r,c),r}}),3238:((h,t,e)=>{var s=e(4576),i=e(7811),n=e(7394),r=s.DataView;h.exports=function(a){if(!i||n(a)!==0)return!1;try{return new r(a),!1}catch{return!0}}}),3392:((h,t,e)=>{var s=e(9504),i=0,n=Math.random(),r=s(1.1.toString);h.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+r(++i+n,36)}}),3440:((h,t,e)=>{var s=e(7080),i=e(4402),n=e(9286),r=e(5170),a=e(3789),o=e(8469),l=e(507),c=i.has,d=i.remove;h.exports=function(f){var g=s(this),p=a(f),v=n(g);return r(g)<=p.size?o(g,function(m){p.includes(m)&&d(v,m)}):l(p.getIterator(),function(m){c(v,m)&&d(v,m)}),v}}),3463:(h=>{var t=TypeError;h.exports=function(e){if(typeof e=="string")return e;throw new t("Argument is not a string")}}),3506:((h,t,e)=>{var s=e(3925),i=String,n=TypeError;h.exports=function(r){if(s(r))return r;throw new n("Can't set "+i(r)+" as a prototype")}}),3579:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(2652),r=e(9306),a=e(8551),o=e(1767),l=e(9539),c=e(4549),d=c("some",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(f){a(this);try{r(f)}catch(v){l(this,"throw",v)}if(d)return i(d,this,f);var g=o(this),p=0;return n(g,function(v,m){if(f(v,p++))return m()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}),3650:((h,t,e)=>{var s=e(7080),i=e(4402),n=e(9286),r=e(3789),a=e(507),o=i.add,l=i.has,c=i.remove;h.exports=function(u){var f=s(this),g=r(u).getIterator(),p=n(f);return a(g,function(v){l(f,v)?c(p,v):o(p,v)}),p}}),3706:((h,t,e)=>{var s=e(9504),i=e(4901),n=e(7629),r=s(Function.toString);i(n.inspectSource)||(n.inspectSource=function(a){return r(a)}),h.exports=n.inspectSource}),3717:((h,t)=>{t.f=Object.getOwnPropertySymbols}),3724:((h,t,e)=>{var s=e(9039);h.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})}),3789:((h,t,e)=>{var s=e(9306),i=e(8551),n=e(9565),r=e(1291),a=e(1767),o="Invalid size",l=RangeError,c=TypeError,d=Math.max,u=function(f,g){this.set=f,this.size=d(g,0),this.has=s(f.has),this.keys=s(f.keys)};u.prototype={getIterator:function(){return a(i(n(this.keys,this.set)))},includes:function(f){return n(this.has,this.set,f)}},h.exports=function(f){i(f);var g=+f.size;if(g!==g)throw new c(o);var p=r(g);if(p<0)throw new l(o);return new u(f,p)}}),3838:((h,t,e)=>{var s=e(7080),i=e(5170),n=e(8469),r=e(3789);h.exports=function(o){var l=s(this),c=r(o);return i(l)>c.size?!1:n(l,function(d){if(!c.includes(d))return!1},!0)!==!1}}),3853:((h,t,e)=>{var s=e(6518),i=e(4449),n=e(4916),r=!n("isDisjointFrom",function(a){return!a});s({target:"Set",proto:!0,real:!0,forced:r},{isDisjointFrom:i})}),3925:((h,t,e)=>{var s=e(34);h.exports=function(i){return s(i)||i===null}}),3972:((h,t,e)=>{var s=e(34),i=String,n=TypeError;h.exports=function(r){if(r===void 0||s(r))return r;throw new n(i(r)+" is not an object or undefined")}}),4055:((h,t,e)=>{var s=e(4576),i=e(34),n=s.document,r=i(n)&&i(n.createElement);h.exports=function(a){return r?n.createElement(a):{}}}),4114:((h,t,e)=>{var s=e(6518),i=e(8981),n=e(6198),r=e(4527),a=e(6837),o=e(9039),l=o(function(){return[].push.call({length:4294967296},1)!==4294967297}),c=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(u){return u instanceof TypeError}},d=l||!c();s({target:"Array",proto:!0,arity:1,forced:d},{push:function(f){var g=i(this),p=n(g),v=arguments.length;a(p+v);for(var m=0;m<v;m++)g[p]=arguments[m],p++;return r(g,p),p}})}),4117:(h=>{h.exports=function(t){return t==null}}),4149:(h=>{var t=RangeError;h.exports=function(e){if(e===e)return e;throw new t("NaN is not allowed")}}),4154:((h,t,e)=>{var s=e(6955),i=TypeError;h.exports=function(n){if(s(n)==="Uint8Array")return n;throw new i("Argument is not an Uint8Array")}}),4204:((h,t,e)=>{var s=e(7080),i=e(4402).add,n=e(9286),r=e(3789),a=e(507);h.exports=function(l){var c=s(this),d=r(l).getIterator(),u=n(c);return a(d,function(f){i(u,f)}),u}}),4209:((h,t,e)=>{var s=e(8227),i=e(6269),n=s("iterator"),r=Array.prototype;h.exports=function(a){return a!==void 0&&(i.Array===a||r[n]===a)}}),4215:((h,t,e)=>{var s=e(4576),i=e(2839),n=e(2195),r=function(a){return i.slice(0,a.length)===a};h.exports=(function(){return r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":s.Bun&&typeof Bun.version=="string"?"BUN":s.Deno&&typeof Deno.version=="object"?"DENO":n(s.process)==="process"?"NODE":s.window&&s.document?"BROWSER":"REST"})()}),4226:((h,t,e)=>{var s=e(6518),i=e(4576),n=e(3463),r=e(4154),a=e(5169),o=e(2303);i.Uint8Array&&s({target:"Uint8Array",proto:!0},{setFromHex:function(c){r(this),n(c),a(this.buffer);var d=o(c,this).read;return{read:d,written:d/2}}})}),4235:((h,t,e)=>{e(3068)}),4270:((h,t,e)=>{var s=e(9565),i=e(4901),n=e(34),r=TypeError;h.exports=function(a,o){var l,c;if(o==="string"&&i(l=a.toString)&&!n(c=s(l,a))||i(l=a.valueOf)&&!n(c=s(l,a))||o!=="string"&&i(l=a.toString)&&!n(c=s(l,a)))return c;throw new r("Can't convert object to primitive value")}}),4376:((h,t,e)=>{var s=e(2195);h.exports=Array.isArray||function(n){return s(n)==="Array"}}),4402:((h,t,e)=>{var s=e(9504),i=Set.prototype;h.exports={Set,add:s(i.add),has:s(i.has),remove:s(i.delete),proto:i}}),4449:((h,t,e)=>{var s=e(7080),i=e(4402).has,n=e(5170),r=e(3789),a=e(8469),o=e(507),l=e(9539);h.exports=function(d){var u=s(this),f=r(d);if(n(u)<=f.size)return a(u,function(p){if(f.includes(p))return!1},!0)!==!1;var g=f.getIterator();return o(g,function(p){if(i(u,p))return l(g,"normal",!1)})!==!1}}),4483:((h,t,e)=>{var s=e(4576),i=e(9429),n=e(1548),r=s.structuredClone,a=s.ArrayBuffer,o=s.MessageChannel,l=!1,c,d,u,f;if(n)l=function(g){r(g,{transfer:[g]})};else if(a)try{o||(c=i("worker_threads"),c&&(o=c.MessageChannel)),o&&(d=new o,u=new a(2),f=function(g){d.port1.postMessage(null,[g])},u.byteLength===2&&(f(u),u.byteLength===0&&(l=f)))}catch{}h.exports=l}),4495:((h,t,e)=>{var s=e(9519),i=e(9039),n=e(4576),r=n.String;h.exports=!!Object.getOwnPropertySymbols&&!i(function(){var a=Symbol("symbol detection");return!r(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&s&&s<41})}),4527:((h,t,e)=>{var s=e(3724),i=e(4376),n=TypeError,r=Object.getOwnPropertyDescriptor,a=s&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(o){return o instanceof TypeError}})();h.exports=a?function(o,l){if(i(o)&&!r(o,"length").writable)throw new n("Cannot set read only .length");return o.length=l}:function(o,l){return o.length=l}}),4549:((h,t,e)=>{var s=e(4576);h.exports=function(i,n){var r=s.Iterator,a=r&&r.prototype,o=a&&a[i],l=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){l=!0}},-1)}catch(c){c instanceof n||(l=!1)}if(!l)return o}}),4576:(function(h){var t=function(e){return e&&e.Math===Math&&e};h.exports=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof global=="object"&&global)||t(typeof this=="object"&&this)||(function(){return this})()||Function("return this")()}),4603:((h,t,e)=>{var s=e(6840),i=e(9504),n=e(655),r=e(2812),a=URLSearchParams,o=a.prototype,l=i(o.append),c=i(o.delete),d=i(o.forEach),u=i([].push),f=new a("a=1&a=2&b=3");f.delete("a",1),f.delete("b",void 0),f+""!="a=2"&&s(o,"delete",function(g){var p=arguments.length,v=p<2?void 0:arguments[1];if(p&&v===void 0)return c(this,g);var m=[];d(this,function(T,C){u(m,{key:C,value:T})}),r(p,1);for(var b=n(g),y=n(v),E=0,A=0,w=!1,S=m.length,x;E<S;)x=m[E++],w||x.key===b?(w=!0,c(this,x.key)):A++;for(;A<S;)x=m[A++],x.key===b&&x.value===y||l(this,x.key,x.value)},{enumerable:!0,unsafe:!0})}),4628:((h,t,e)=>{var s=e(6518),i=e(6043);s({target:"Promise",stat:!0},{withResolvers:function(){var r=i.f(this);return{promise:r.promise,resolve:r.resolve,reject:r.reject}}})}),4644:((h,t,e)=>{var s=e(7811),i=e(3724),n=e(4576),r=e(4901),a=e(34),o=e(9297),l=e(6955),c=e(6823),d=e(6699),u=e(6840),f=e(2106),g=e(1625),p=e(2787),v=e(2967),m=e(8227),b=e(3392),y=e(1181),E=y.enforce,A=y.get,w=n.Int8Array,S=w&&w.prototype,x=n.Uint8ClampedArray,T=x&&x.prototype,C=w&&p(w),P=S&&p(S),O=Object.prototype,D=n.TypeError,k=m("toStringTag"),H=b("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",I=s&&!!v&&l(n.opera)!=="Opera",B=!1,K,st,vt,tt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Z={BigInt64Array:8,BigUint64Array:8},lt=function(ot){if(!a(ot))return!1;var ht=l(ot);return ht==="DataView"||o(tt,ht)||o(Z,ht)},Ct=function($){var ot=p($);if(a(ot)){var ht=A(ot);return ht&&o(ht,M)?ht[M]:Ct(ot)}},L=function($){if(!a($))return!1;var ot=l($);return o(tt,ot)||o(Z,ot)},R=function($){if(L($))return $;throw new D("Target is not a typed array")},F=function($){if(r($)&&(!v||g(C,$)))return $;throw new D(c($)+" is not a typed array constructor")},G=function($,ot,ht,Vt){if(i){if(ht)for(var Lt in tt){var St=n[Lt];if(St&&o(St.prototype,$))try{delete St.prototype[$]}catch{try{St.prototype[$]=ot}catch{}}}(!P[$]||ht)&&u(P,$,ht?ot:I&&S[$]||ot,Vt)}},at=function($,ot,ht){var Vt,Lt;if(i){if(v){if(ht){for(Vt in tt)if(Lt=n[Vt],Lt&&o(Lt,$))try{delete Lt[$]}catch{}}if(!C[$]||ht)try{return u(C,$,ht?ot:I&&C[$]||ot)}catch{}else return}for(Vt in tt)Lt=n[Vt],Lt&&(!Lt[$]||ht)&&u(Lt,$,ot)}};for(K in tt)st=n[K],vt=st&&st.prototype,vt?E(vt)[M]=st:I=!1;for(K in Z)st=n[K],vt=st&&st.prototype,vt&&(E(vt)[M]=st);if((!I||!r(C)||C===Function.prototype)&&(C=function(){throw new D("Incorrect invocation")},I))for(K in tt)n[K]&&v(n[K],C);if((!I||!P||P===O)&&(P=C.prototype,I))for(K in tt)n[K]&&v(n[K].prototype,P);if(I&&p(T)!==P&&v(T,P),i&&!o(P,k)){B=!0,f(P,k,{configurable:!0,get:function(){return a(this)?this[H]:void 0}});for(K in tt)n[K]&&d(n[K],H,K)}h.exports={NATIVE_ARRAY_BUFFER_VIEWS:I,TYPED_ARRAY_TAG:B&&H,aTypedArray:R,aTypedArrayConstructor:F,exportTypedArrayMethod:G,exportTypedArrayStaticMethod:at,getTypedArrayConstructor:Ct,isView:lt,isTypedArray:L,TypedArray:C,TypedArrayPrototype:P}}),4659:((h,t,e)=>{var s=e(3724),i=e(4913),n=e(6980);h.exports=function(r,a,o){s?i.f(r,a,n(0,o)):r[a]=o}}),4901:(h=>{var t=typeof document=="object"&&document.all;h.exports=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"}}),4913:((h,t,e)=>{var s=e(3724),i=e(5917),n=e(8686),r=e(8551),a=e(6969),o=TypeError,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",f="writable";t.f=s?n?function(p,v,m){if(r(p),v=a(v),r(m),typeof p=="function"&&v==="prototype"&&"value"in m&&f in m&&!m[f]){var b=c(p,v);b&&b[f]&&(p[v]=m.value,m={configurable:u in m?m[u]:b[u],enumerable:d in m?m[d]:b[d],writable:!1})}return l(p,v,m)}:l:function(p,v,m){if(r(p),v=a(v),r(m),i)try{return l(p,v,m)}catch{}if("get"in m||"set"in m)throw new o("Accessors not supported");return"value"in m&&(p[v]=m.value),p}}),4916:((h,t,e)=>{var s=e(7751),i=function(r){return{size:r,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(r){return{size:r,has:function(){return!0},keys:function(){throw new Error("e")}}};h.exports=function(r,a){var o=s("Set");try{new o()[r](i(0));try{return new o()[r](i(-1)),!1}catch{if(!a)return!0;try{return new o()[r](n(-1/0)),!1}catch{var l=new o;return l.add(1),l.add(2),a(l[r](n(1/0)))}}}catch{return!1}}}),4972:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(8551),r=e(1767),a=e(4149),o=e(9590),l=e(9462),c=e(9539),d=e(4549),u=e(6395),f=!u&&d("take",RangeError),g=l(function(){var p=this.iterator;if(!this.remaining--)return this.done=!0,c(p,"normal",void 0);var v=n(i(this.next,p)),m=this.done=!!v.done;if(!m)return v.value});s({target:"Iterator",proto:!0,real:!0,forced:u||f},{take:function(v){n(this);var m;try{m=o(a(+v))}catch(b){c(this,"throw",b)}return f?i(f,this,m):new g(r(this),{remaining:m})}})}),4979:((h,t,e)=>{var s=e(6518),i=e(4576),n=e(7751),r=e(6980),a=e(4913).f,o=e(9297),l=e(679),c=e(3167),d=e(2603),u=e(5002),f=e(8574),g=e(3724),p=e(6395),v="DOMException",m=n("Error"),b=n(v),y=function(){l(this,E);var M=arguments.length,I=d(M<1?void 0:arguments[0]),B=d(M<2?void 0:arguments[1],"Error"),K=new b(I,B),st=new m(I);return st.name=v,a(K,"stack",r(1,f(st.stack,1))),c(K,this,y),K},E=y.prototype=b.prototype,A="stack"in new m(v),w="stack"in new b(1,2),S=b&&g&&Object.getOwnPropertyDescriptor(i,v),x=!!S&&!(S.writable&&S.configurable),T=A&&!x&&!w;s({global:!0,constructor:!0,forced:p||T},{DOMException:T?y:b});var C=n(v),P=C.prototype;if(P.constructor!==C){p||a(P,"constructor",r(1,C));for(var O in u)if(o(u,O)){var D=u[O],k=D.s;o(C,k)||a(C,k,r(6,D.c))}}}),5002:(h=>{h.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),5024:((h,t,e)=>{var s=e(6518),i=e(3650),n=e(9835),r=e(4916),a=!r("symmetricDifference")||!n("symmetricDifference");s({target:"Set",proto:!0,real:!0,forced:a},{symmetricDifference:i})}),5031:((h,t,e)=>{var s=e(7751),i=e(9504),n=e(8480),r=e(3717),a=e(8551),o=i([].concat);h.exports=s("Reflect","ownKeys")||function(c){var d=n.f(a(c)),u=r.f;return u?o(d,u(c)):d}}),5169:((h,t,e)=>{var s=e(3238),i=TypeError;h.exports=function(n){if(s(n))throw new i("ArrayBuffer is detached");return n}}),5170:((h,t,e)=>{var s=e(6706),i=e(4402);h.exports=s(i.proto,"size","get")||function(n){return n.size}}),5213:((h,t,e)=>{var s=e(6518),i=e(4576),n=e(5370),r=e(9143),a=i.Uint8Array,o=!a||!a.fromBase64||!(function(){try{a.fromBase64("a");return}catch{}try{a.fromBase64("",null)}catch{return!0}})();a&&s({target:"Uint8Array",stat:!0,forced:o},{fromBase64:function(c){var d=r(c,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return n(a,d.bytes)}})}),5370:((h,t,e)=>{var s=e(6198);h.exports=function(i,n,r){for(var a=0,o=arguments.length>2?r:s(n),l=new i(o);o>a;)l[a]=n[a++];return l}}),5397:((h,t,e)=>{var s=e(7055),i=e(7750);h.exports=function(n){return s(i(n))}}),5610:((h,t,e)=>{var s=e(1291),i=Math.max,n=Math.min;h.exports=function(r,a){var o=s(r);return o<0?i(o+a,0):n(o,a)}}),5623:((h,t,e)=>{e(456)}),5636:((h,t,e)=>{var s=e(4576),i=e(9504),n=e(6706),r=e(7696),a=e(5169),o=e(7394),l=e(4483),c=e(1548),d=s.structuredClone,u=s.ArrayBuffer,f=s.DataView,g=Math.min,p=u.prototype,v=f.prototype,m=i(p.slice),b=n(p,"resizable","get"),y=n(p,"maxByteLength","get"),E=i(v.getInt8),A=i(v.setInt8);h.exports=(c||l)&&function(w,S,x){var T=o(w),C=S===void 0?T:r(S),P=!b||!b(w),O;if(a(w),c&&(w=d(w,{transfer:[w]}),T===C&&(x||P)))return w;if(T>=C&&(!x||P))O=m(w,0,C);else{var D=x&&!P&&y?{maxByteLength:y(w)}:void 0;O=new u(C,D);for(var k=new f(w),H=new f(O),M=g(C,T),I=0;I<M;I++)A(H,I,E(k,I))}return c||l(w),O}}),5745:((h,t,e)=>{var s=e(7629);h.exports=function(i,n){return s[i]||(s[i]=n||{})}}),5781:((h,t,e)=>{var s=e(6518),i=e(7751),n=e(2812),r=e(655),a=e(7416),o=i("URL");s({target:"URL",stat:!0,forced:!a},{parse:function(c){var d=n(arguments.length,1),u=r(c),f=d<2||arguments[1]===void 0?void 0:r(arguments[1]);try{return new o(u,f)}catch{return null}}})}),5854:((h,t,e)=>{var s=e(2777),i=TypeError;h.exports=function(n){var r=s(n,"number");if(typeof r=="number")throw new i("Can't convert number to bigint");return BigInt(r)}}),5876:((h,t,e)=>{var s=e(6518),i=e(3838),n=e(4916),r=!n("isSubsetOf",function(a){return a});s({target:"Set",proto:!0,real:!0,forced:r},{isSubsetOf:i})}),5917:((h,t,e)=>{var s=e(3724),i=e(9039),n=e(4055);h.exports=!s&&!i(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})}),5966:((h,t,e)=>{var s=e(9306),i=e(4117);h.exports=function(n,r){var a=n[r];return i(a)?void 0:s(a)}}),6043:((h,t,e)=>{var s=e(9306),i=TypeError,n=function(r){var a,o;this.promise=new r(function(l,c){if(a!==void 0||o!==void 0)throw new i("Bad Promise constructor");a=l,o=c}),this.resolve=s(a),this.reject=s(o)};h.exports.f=function(r){return new n(r)}}),6080:((h,t,e)=>{var s=e(7476),i=e(9306),n=e(616),r=s(s.bind);h.exports=function(a,o){return i(a),o===void 0?a:n?r(a,o):function(){return a.apply(o,arguments)}}}),6119:((h,t,e)=>{var s=e(5745),i=e(3392),n=s("keys");h.exports=function(r){return n[r]||(n[r]=i(r))}}),6193:((h,t,e)=>{var s=e(4215);h.exports=s==="NODE"}),6198:((h,t,e)=>{var s=e(8014);h.exports=function(i){return s(i.length)}}),6269:(h=>{h.exports={}}),6279:((h,t,e)=>{var s=e(6840);h.exports=function(i,n,r){for(var a in n)s(i,a,n[a],r);return i}}),6319:((h,t,e)=>{var s=e(8551),i=e(9539);h.exports=function(n,r,a,o){try{return o?r(s(a)[0],a[1]):r(a)}catch(l){i(n,"throw",l)}}}),6395:(h=>{h.exports=!1}),6518:((h,t,e)=>{var s=e(4576),i=e(7347).f,n=e(6699),r=e(6840),a=e(9433),o=e(7740),l=e(2796);h.exports=function(c,d){var u=c.target,f=c.global,g=c.stat,p,v,m,b,y,E;if(f?v=s:g?v=s[u]||a(u,{}):v=s[u]&&s[u].prototype,v)for(m in d){if(y=d[m],c.dontCallGetSet?(E=i(v,m),b=E&&E.value):b=v[m],p=l(f?m:u+(g?".":"#")+m,c.forced),!p&&b!==void 0){if(typeof y==typeof b)continue;o(y,b)}(c.sham||b&&b.sham)&&n(y,"sham",!0),r(v,m,y,c)}}}),6573:((h,t,e)=>{var s=e(3724),i=e(2106),n=e(3238),r=ArrayBuffer.prototype;s&&!("detached"in r)&&i(r,"detached",{configurable:!0,get:function(){return n(this)}})}),6632:((h,t,e)=>{var s=e(6518),i=e(4576),n=e(9143),r=e(4154),a=i.Uint8Array,o=!a||!a.prototype.setFromBase64||!(function(){var l=new a([255,255,255,255,255]);try{l.setFromBase64("",null);return}catch{}try{l.setFromBase64("a");return}catch{}try{l.setFromBase64("MjYyZg===")}catch{return l[0]===50&&l[1]===54&&l[2]===50&&l[3]===255&&l[4]===255}})();a&&s({target:"Uint8Array",proto:!0,forced:o},{setFromBase64:function(c){r(this);var d=n(c,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:d.read,written:d.written}}})}),6699:((h,t,e)=>{var s=e(3724),i=e(4913),n=e(6980);h.exports=s?function(r,a,o){return i.f(r,a,n(1,o))}:function(r,a,o){return r[a]=o,r}}),6706:((h,t,e)=>{var s=e(9504),i=e(9306);h.exports=function(n,r,a){try{return s(i(Object.getOwnPropertyDescriptor(n,r)[a]))}catch{}}}),6801:((h,t,e)=>{var s=e(3724),i=e(8686),n=e(4913),r=e(8551),a=e(5397),o=e(1072);t.f=s&&!i?Object.defineProperties:function(c,d){r(c);for(var u=a(d),f=o(d),g=f.length,p=0,v;g>p;)n.f(c,v=f[p++],u[v]);return c}}),6823:(h=>{var t=String;h.exports=function(e){try{return t(e)}catch{return"Object"}}}),6837:(h=>{var t=TypeError,e=9007199254740991;h.exports=function(s){if(s>e)throw t("Maximum allowed index exceeded");return s}}),6840:((h,t,e)=>{var s=e(4901),i=e(4913),n=e(283),r=e(9433);h.exports=function(a,o,l,c){c||(c={});var d=c.enumerable,u=c.name!==void 0?c.name:o;if(s(l)&&n(l,u,c),c.global)d?a[o]=l:r(o,l);else{try{c.unsafe?a[o]&&(d=!0):delete a[o]}catch{}d?a[o]=l:i.f(a,o,{value:l,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return a}}),6955:((h,t,e)=>{var s=e(2140),i=e(4901),n=e(2195),r=e(8227),a=r("toStringTag"),o=Object,l=n((function(){return arguments})())==="Arguments",c=function(d,u){try{return d[u]}catch{}};h.exports=s?n:function(d){var u,f,g;return d===void 0?"Undefined":d===null?"Null":typeof(f=c(u=o(d),a))=="string"?f:l?n(u):(g=n(u))==="Object"&&i(u.callee)?"Arguments":g}}),6969:((h,t,e)=>{var s=e(2777),i=e(757);h.exports=function(n){var r=s(n,"string");return i(r)?r:r+""}}),6980:(h=>{h.exports=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}}),7040:((h,t,e)=>{var s=e(4495);h.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),7055:((h,t,e)=>{var s=e(9504),i=e(9039),n=e(2195),r=Object,a=s("".split);h.exports=i(function(){return!r("z").propertyIsEnumerable(0)})?function(o){return n(o)==="String"?a(o,""):r(o)}:r}),7080:((h,t,e)=>{var s=e(4402).has;h.exports=function(i){return s(i),i}}),7347:((h,t,e)=>{var s=e(3724),i=e(9565),n=e(8773),r=e(6980),a=e(5397),o=e(6969),l=e(9297),c=e(5917),d=Object.getOwnPropertyDescriptor;t.f=s?d:function(f,g){if(f=a(f),g=o(g),c)try{return d(f,g)}catch{}if(l(f,g))return r(!i(n.f,f,g),f[g])}}),7394:((h,t,e)=>{var s=e(4576),i=e(6706),n=e(2195),r=s.ArrayBuffer,a=s.TypeError;h.exports=r&&i(r.prototype,"byteLength","get")||function(o){if(n(o)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return o.byteLength}}),7416:((h,t,e)=>{var s=e(9039),i=e(8227),n=e(3724),r=e(6395),a=i("iterator");h.exports=!s(function(){var o=new URL("b?a=1&b=2&c=3","https://a"),l=o.searchParams,c=new URLSearchParams("a=1&a=2&b=3"),d="";return o.pathname="c%20d",l.forEach(function(u,f){l.delete("b"),d+=f+u}),c.delete("a",2),c.delete("b",void 0),r&&(!o.toJSON||!c.has("a",1)||c.has("a",2)||!c.has("a",void 0)||c.has("b"))||!l.size&&(r||!n)||!l.sort||o.href!=="https://a/c%20d?a=1&c=3"||l.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!l[a]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||d!=="a1c3"||new URL("https://x",void 0).host!=="x"})}),7476:((h,t,e)=>{var s=e(2195),i=e(9504);h.exports=function(n){if(s(n)==="Function")return i(n)}}),7566:((h,t,e)=>{var s=e(6840),i=e(9504),n=e(655),r=e(2812),a=URLSearchParams,o=a.prototype,l=i(o.getAll),c=i(o.has),d=new a("a=1");(d.has("a",2)||!d.has("a",void 0))&&s(o,"has",function(f){var g=arguments.length,p=g<2?void 0:arguments[1];if(g&&p===void 0)return c(this,f);var v=l(this,f);r(g,1);for(var m=n(p),b=0;b<v.length;)if(v[b++]===m)return!0;return!1},{enumerable:!0,unsafe:!0})}),7588:((h,t,e)=>{var s=e(6518),i=e(9565),n=e(2652),r=e(9306),a=e(8551),o=e(1767),l=e(9539),c=e(4549),d=c("forEach",TypeError);s({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(f){a(this);try{r(f)}catch(v){l(this,"throw",v)}if(d)return i(d,this,f);var g=o(this),p=0;n(g,function(v){f(v,p++)},{IS_RECORD:!0})}})}),7629:((h,t,e)=>{var s=e(6395),i=e(4576),n=e(9433),r="__core-js_shared__",a=h.exports=i[r]||n(r,{});(a.versions||(a.versions=[])).push({version:"3.45.1",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),7642:((h,t,e)=>{var s=e(6518),i=e(3440),n=e(9039),r=e(4916),a=!r("difference",function(l){return l.size===0}),o=a||n(function(){var l={size:1,has:function(){return!0},keys:function(){var d=0;return{next:function(){var u=d++>1;return c.has(1)&&c.clear(),{done:u,value:2}}}}},c=new Set([1,2,3,4]);return c.difference(l).size!==3});s({target:"Set",proto:!0,real:!0,forced:o},{difference:i})}),7657:((h,t,e)=>{var s=e(9039),i=e(4901),n=e(34),r=e(2360),a=e(2787),o=e(6840),l=e(8227),c=e(6395),d=l("iterator"),u=!1,f,g,p;[].keys&&(p=[].keys(),"next"in p?(g=a(a(p)),g!==Object.prototype&&(f=g)):u=!0);var v=!n(f)||s(function(){var m={};return f[d].call(m)!==m});v?f={}:c&&(f=r(f)),i(f[d])||o(f,d,function(){return this}),h.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:u}}),7680:((h,t,e)=>{var s=e(9504);h.exports=s([].slice)}),7696:((h,t,e)=>{var s=e(1291),i=e(8014),n=RangeError;h.exports=function(r){if(r===void 0)return 0;var a=s(r),o=i(a);if(a!==o)throw new n("Wrong length or index");return o}}),7740:((h,t,e)=>{var s=e(9297),i=e(5031),n=e(7347),r=e(4913);h.exports=function(a,o,l){for(var c=i(o),d=r.f,u=n.f,f=0;f<c.length;f++){var