1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/jszip.min-CBPgd9M5.js","assets/ui-CPW3-RCR.js","assets/supabase-B2z4OhLQ.js"])))=>i.map(i=>d[i]); 2import{r as ce,j as h,c as Mr}from"./ui-CPW3-RCR.js";import{a0 as Pu,u as ln,y as yt,z as ur,E as cr,J as Bt,I as Ke,T as Er,U as ho,B as Ce,L as Me,P as Ou,j as Tr,Z as fr,N as hs,s as Se,ad as Ve,e as Jr,C as fo,d as je,aA as Lu,bc as Bu,X as Du,aN as ds,aR as fs,G as po,c as en,cq as Mu,cr as Un,bb as mo,ct as go,cZ as wo,l as zn,aZ as Uu,aq as Ks,m as $n,n as Hn,o as Wn,$ as Xs,bN as vi,a2 as Vn,ao as zu,bd as Zs,Y as $u,a9 as yo,a5 as Hu,W as Wu,R as Vu,D as Gu,g as qu,a_ as Ku,a$ as Xu,b0 as Jt,i as Ys,b1 as er,k as Zu}from"./index-BraPXa8T.js";import{_ as Yu,p as Qs}from"./charts-DCB9_QAo.js";import{M as Qu}from"./index-BfRVBusC.js";import{A as vo}from"./arrow-right-BLLC8LlL.js";import{S as Vi,a as Gi,b as qi,c as Ki,d as gt}from"./select-DubWVshT.js";import{S as Js}from"./scroll-area-BQtXZnuf.js";import{u as Ju,t as ec,n as tc,v as rc,w as nc,U as xo,o as ic}from"./index-CVizilC1.js";import{i as sc}from"./index-up1BBofm.js";import{T as ac,i as oc}from"./index-DMcnHG24.js";import{c as lc,H as bo}from"./index-BP6EXeue.js";
2import{i as uc,a as cc,b as hc}from"./index-IEk3Q6DE.js";import{R as _o}from"./redo-2-CbmJWvKx.js";import{H as So,a as Eo}from"./heading-2-DPmEGPQt.js";import{T as ko}from"./type-DOqr7pg5.js";import{B as To,I as Ao}from"./with-selector-BvZ9_Y0X.js";import{S as Co}from"./strikethrough-DJ9SUok4.js";import{A as No,a as Ro,b as jo}from"./align-right-DQFtSwfA.js";import{Q as dc}from"./quote-BPj_Y_e6.js";import{M as Io}from"./minus-CCCsL8N7.js";import{L as Fo}from"./link-BKA0FtFv.js";import{T as fc}from"./table-CUdv-10Z.js";import{C as pc}from"./code-Dvqr_6nk.js";import{L as ea}from"./languages-D79zRZPf.js";import{W as xi}from"./wand-sparkles-DwI1QBmg.js";import{C as mc}from"./copy-plus-CbDBI1gG.js";import{B as gc}from"./bookmark-plus-B6Q7BjXs.js";import wc from"./html2canvas.esm-CBrSDip1.js";import{E as yc}from"./jspdf.es.min-BBLdUEou.js";import{B as vc}from"./book-dashed-DUBj85Kw.js";import"./supabase-B2z4OhLQ.js";import"./vendor-CIXof4MH.js";import"./index-BdQq_4o_.js";/** 3 * @license lucide-react v0.462.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const Gn=Pu("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);function xc({knowledge:e,onRefresh:t}){const{user:r}=ln(),[n,o]=ce.useState(""),[i,a]=ce.useState(""),[s,c]=ce.useState(!1),[d,f]=ce.useState(!1),m=ce.useRef(null),E=async()=>{if(!n.trim()||!i.trim())return;c(!0);const{error:x}=await Se.from("quote_knowledge").insert({title:n,content:i.slice(0,15e3),doc_type:"text",created_by:r.id});x?Ve({title:"ש××××",description:x.message,variant:"destructive"}):(Ve({title:"× ×סף ××צ×××"}),o(""),a(""),t()),c(!1)},g=async x=>{var T,C;if(!x)return;c(!0);const v=x.name.replace(/\.[^.]+$/,""),k=((T=x.name.split(".").pop())==null?void 0:T.toLowerCase())||"",S=["xlsx","xls","pptx","ppt","zip","rar","7z","tar","gz","mp3","wav","mp4","png","jpg","jpeg","gif","webp","bmp","tiff","svg"];try{let A="";if(S.includes(k)){Ve({title:"ס×× ×§×××¥ ×× × ×ª××",description:"××¢×× PDF, DOCX, TXT ×× ×§×××¥ ×קס×",variant:"destructive"}),c(!1);return}if(k==="docx"){const I=await((C=(await(await Yu(async()=>{const{default:H}=await import("./jszip.min-CBPgd9M5.js").then(te=>te.j);return{default:H}},__vite__mapDeps([0,1,2]))).default.loadAsync(x)).file("word/document.xml"))==null?void 0:C.async("string"));I&&(A=I.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim())}else if(k==="pdf")try{const O=await x.arrayBuffer(),M=new Uint8Array(O);let I="";const H=8192;for(let N=0;N<M.length;N+=H)I+=String.fromCharCode(...M.subarray(N,N+H));const te=btoa(I),{data:F,error:W}=await Se.functions.invoke("quote-parse-pdf",{body:{base64:te,fileName:x.name}});if(W)throw W;A=(F==null?void 0:F.text)||""}catch(O){Ve({title:"ש×××× ××××××¥ ××§×¡× ×-PDF",description:O.message,variant:"destructive"}),c(!1);return}else A=await x.text();if(!A.trim()){Ve({title:"×× ×צ××× × ××××¥ ××§×¡× ×××§×××¥",variant:"destructive"}),c(!1);return}const{error:_}=await Se.from("quote_knowledge").insert({title:v,content:A.slice(0,15e3),doc_type:k||"file",created_by:r.id});if(_)throw _;Ve({title:`"${v}" × ×סף ××××`}),t()}catch(A){Ve({title:"ש××××",description:A.message,variant:"destructive"})}c(!1),m.current&&(m.current.value="")},y=async x=>{await Se.from("quote_knowledge").delete().eq("id",x),t()};return h.jsxs("div",{className:"space-y-4",dir:"rtl",children:[h.jsxs(yt,{children:[h.jsx(ur,{children:h.jsx(cr,{className:"text-sm",children:"××סף ×××¢ ××ש"})}),h.jsxs(Bt,{className:"space-y-3",children:[h.jsx(Ke,{placeholder:"××תרת (××ש×: ×צעת ×××ר - ××רת X)",value:n,onChange:x=>o(x.target.value)}),h.jsx(Er,{placeholder:"××××§ ××× ××§×¡× ×©× ×צעת ×××ר, ××××××, ×× ×× ×ª××× ×¨×××× ××...",value:i,onChange:x=>a(x.target.value),rows:8}),h.jsxs("div",{className:`border-2 border-dashed rounded-lg p-6 text-center cursor-pointer transition-colors ${d?"border-primary bg-primary/5":"border-border hover:border-muted-foreground
7/50"}`,onDragOver:x=>{x.preventDefault(),f(!0)},onDragLeave:()=>f(!1),onDrop:x=>{var k;x.preventDefault(),f(!1);const v=(k=x.dataTransfer.files)==null?void 0:k[0];v&&g(v)},onClick:()=>{var x;return(x=m.current)==null?void 0:x.click()},children:[h.jsx(ho,{className:"w-8 h-8 mx-auto mb-2 text-muted-foreground"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:"×ר×ר ×§×××¥ ×××× ×× ×××¥ ××××ר×"}),h.jsx("p",{className:"text-[10px] text-muted-foreground mt-1",children:"PDF, DOCX, TXT, CSV, MD ××¢××"})]}),h.jsx("input",{ref:m,type:"file",className:"hidden",accept:".txt,.csv,.md,.html,.json,.docx,.pdf,.doc,.rtf,.xml,.yaml,.yml,.log,.ini,.cfg,.conf,.sql,.js,.ts,.jsx,.tsx,.py,.rb,.php,.css,.scss",onChange:x=>{var k;const v=(k=x.target.files)==null?void 0:k[0];v&&g(v),m.current&&(m.current.value="")}}),h.jsx("div",{className:"flex gap-2",children:h.jsxs(Ce,{onClick:E,disabled:s||!n.trim(),children:[s?h.jsx(Me,{className:"w-4 h-4 animate-spin me-1"}):h.jsx(Ou,{className:"w-4 h-4 me-1"})," ××סף ××××"]})})]})]}),e.length>0&&h.jsxs("details",{className:"group",children:[h.jsxs("summary",{className:"cursor-pointer text-sm font-medium text-muted-foreground flex items-center gap-1.5 py-2 hover:text-foreground transition-colors",children:[h.jsx(Tr,{className:"w-3.5 h-3.5"}),"×××¢ ×©× ××× (",e.length,")",h.jsx("span",{className:"text-[10px] opacity-60 group-open:hidden",children:"×××¥ ×פת×××"})]}),h.jsx("div",{className:"space-y-2 mt-2",children:e.map(x=>h.jsx(yt,{className:"p-3",children:h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-sm font-medium truncate",children:x.title}),h.jsx(fr,{variant:"secondary",className:"text-[10px]",children:x.doc_type})]}),h.jsx("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:x.content.slice(0,200)}),h.jsx("span",{className:"text-[10px] text-muted-foreground",children:new Date(x.created_at).toLocaleDateString("he-IL")})]}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"shrink-0",onClick:()=>y(x.id),children:h.jsx(hs,{className:"w-3.5 h-3.5 text-destructive"})})]})},x.id))})]}),e.length===0&&h.jsx("p",{className:"text-xs text-muted-foreground text-center py-8",children:"××× ×××¢ ×¢××××. ××סף ×צע×ת ×××ר ×§××××ת ××× ×××× ×ת ×-AI"})]})}function bc({onApplyScan:e}){const[t,r]=ce.useState(""),[n,o]=ce.useState(""),[i,a]=ce.useState(!1),[s,c]=ce.useState(""),[d,f]=ce.useState(null),[m,E]=ce.useState(""),[g,y]=ce.useState(null),[x,v]=ce.useState(!1),k=async()=>{var T,C,A,_;if(!t.trim()){Ve({title:"× × ××××× ×ת××ת ×תר",variant:"destructive"});return}a(!0),f(null),v(!1),E(""),y(null);try{c("ð ס×רק ×ת ××תר...");const{data:O,error:M}=await Se.functions.invoke("firecrawl-scrape",{body:{url:t,options:{formats:["markdown","branding"]}}});if(M)throw new Error("ש×××× ×סר×קת ××תר: "+M.message);const I=((T=O==null?void 0:O.data)==null?void 0:T.markdown)||(O==null?void 0:O.markdown)||"",H=((C=O==null?void 0:O.data)==null?void 0:C.branding)||(O==null?void 0:O.branding)||null,te=((A=H==null?void 0:H.images)==null?void 0:A.logo)||(H==null?void 0:H.logo)||null,F=((_=O==null?void 0:O.data)==null?void 0:_.metadata)||(O==null?void 0:O.metadata)||{};if(!I||I.length<50)throw new Error("×× ×צ××× × ×ש××× ×ª××× ×××תר. ××××§ ש××ת××ת × ××× ×.");E(I),te&&y(te),c(`â × ×¡×¨×§× ${I.length.toLocaleString()} ת×××× ×××תר. ×××¢× ×××¢ ×ר××× ×...`);const[{data:W},{data:N}]=await Promise.all([Se.from("ai_knowledge_base").select("title, content").eq("is_active",!0).limit(50),Se.from("quote_knowledge").select("title, content").limit(50)]);c("ð§ ×× ×ª× ×ת ×××××¢ ×¢× AI...");const G=["××ª× ×× ×ª× ×××ר×ת ×××××. × ×ª× ×ת ××תר ××× ×צ×ר ××× ××××¨×ª× ××§××£ ש×ש×ש ××צ×רת ×צעת ×××ר.","","=== ת××× ××תר ===",I.slice(0,8e3),"",F!=null&&F.title?`××תרת ××תר: ${F.title}`:"",F!=null&&F.description?`ת×××ר: ${F.description}`:"","",n?`=== ×× ×××§×× ××פש === 8${n}`:"","","×××× ×¦×¨×× ×××××:","1. **סק×רת ×עסק** â ×× ×עסק ×¢×ש×, ×§×× ××¢×, ש×ר×ת××/××צר×× ×¢×קר×××","2. **× ×ת×× ×× ××××ת ××××××××ת** â ר×ת ××תר, UX, ××××××, ×××ר×ת, SEO ר×ש×× ×","3. **××××× ×××ת ש××××§××ת** â ×× ×פשר ×שפר, ער×צ×× ××××צ××","4. **× ×§×××ת ×××ר×** â ×× ×××× ×××××ש ××צעת ××××ר","5. **×××צת ×ס×ר××××** â תקצ×× ×××××¥, ער×צ××, ××¢×××","","×ת×× ××¢×ר×ת, ×פ×ר×× markdown ×ס××ר ×¢× ×××××'××."].filter(
8Boolean).join(` 9`),{data:J}=await Se.functions.invoke("quote-ai-chat",{body:{action:"chat",messages:[{role:"user",content:G}]}}),X=(J==null?void 0:J.reply)||(J==null?void 0:J.content)||"×× ×צ×××ª× ×× ×ª× ×ת ××תר";f(X),v(!0),c(""),je.success("×סר××§× ××× ×ת×× ××ש×××! ××××§ ×ת ×××× ××××¥ ×××ש×.")}catch(O){c(""),Ve({title:"ש×××× ×סר××§×",description:O.message,variant:"destructive"})}a(!1)},S=()=>{const T=[n?`×קשת ×××§××: ${n}`:"",d?`--- × ×ת×× AI ×©× ××תר --- 10${d}`:"",m?`--- ת××× ××××× ×××תר (${m.length.toLocaleString()} ת××××) --- 11${m.slice(0,5e3)}`:""].filter(Boolean).join(` 12 13`);e({salesContext:T,websiteUrl:t,logoUrl:g}),je.success("×××××¢ ×××¢×ר ××צ×רת ××¦×¢× â ×ש×× ×ת ×פר×××")};return h.jsx("div",{className:"space-y-4",dir:"rtl",children:h.jsxs(yt,{children:[h.jsx(ur,{children:h.jsxs(cr,{className:"text-sm flex items-center gap-2",children:[h.jsx(Jr,{className:"w-4 h-4"})," סר××§× ×××× â ××× ××× ×§ ×צ×ר ×צע×"]})}),h.jsxs(Bt,{className:"space-y-4",children:[h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"×ת××ת ××תר ×©× ×××§××"}),h.jsx(Ke,{placeholder:"https://example.com",value:t,onChange:T=>r(T.target.value),dir:"ltr",className:"font-mono text-sm"})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"×× ×××§×× ××פש? (××× ×××××)"}),h.jsx(Er,{placeholder:"××ש×: ר××¦× ×§×××× ××××× ×פ××ס×××§, תקצ×× ×©× 10,000 ש״×...",value:n,onChange:T=>o(T.target.value),rows:3})]}),h.jsxs(Ce,{onClick:k,disabled:i||!t.trim(),className:"w-full gap-2",children:[i?h.jsx(Me,{className:"w-4 h-4 animate-spin"}):h.jsx(Jr,{className:"w-4 h-4"}),i?"ס×רק ××× ×ª×...":"סר××§ ×ת ××תר ×צ×ר × ×ת××"]}),s&&h.jsxs("div",{className:"bg-muted rounded-lg p-4 text-sm flex items-center gap-2",children:[i&&h.jsx(Me,{className:"w-4 h-4 animate-spin shrink-0"}),s]}),d&&h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(fo,{className:"w-4 h-4 text-green-500"}),h.jsx("span",{className:"text-sm font-medium",children:"× ×ת×× ××ש××"}),g&&h.jsx("img",{src:g,alt:"Logo",className:"w-6 h-6 object-contain"})]}),h.jsx("div",{className:"bg-muted rounded-lg p-4 text-sm max-h-[400px] overflow-y-auto prose prose-sm dark:prose-invert",children:h.jsx(Qu,{children:d})}),h.jsxs(Ce,{onClick:S,className:"w-full gap-2",children:[h.jsx(vo,{className:"w-4 h-4"})," ××¢×ר ××צ×רת ×צע×"]})]}),!d&&!i&&h.jsxs("div",{className:"text-[10px] text-muted-foreground space-y-1 border-t border-border pt-3",children:[h.jsx("p",{children:"ð ××ער×ת ס×רקת ×ת ××תר ××¢×××§ ××× ×ª×ת ×××ª× ×¢× AI."}),h.jsx("p",{children:"ð§ ×× ×ת×× ×××× ××××× ×××ת ש××××§××ת, ×§××× ××¢×, ×× ×§×××ת ×××ר×."}),h.jsx("p",{children:"ð ×××ר ×× ×ת×× ×ª××× ×××××§ ××××¢××ר ××צ×רת ×צע×."})]})]})]})})}var Fr={};/** 14 * @license React 15 * react-dom-server-legacy.browser.production.min.js 16 * 17 * Copyright (c) Facebook, Inc. and its affiliates. 18 * 19 * This source code is licensed under the MIT license found in the 20 * LICENSE file in the root directory of this source tree. 21 */var Po=ce;function ke(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ot=Object.prototype.hasOwnProperty,_c=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ta={},ra={};function Oo(e){return ot.call(ra,e)?!0:ot.call(ta,e)?!1:_c.test(e)?ra[e]=!0:(ta[e]=!0,!1)}function it(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ye[e]=new it(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 69,340 bytes, lines 21-39
21h(function(e){var t=e[0];Ye[t]=new it(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ye[e]=new it(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ye[e]=new it(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ye[e]=new it(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ye[e]=new it(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ye[e]=new it(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ye[e]=new it(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ye[e]=new it(e,5,!1,e.toLowerCase(),null,!1,!1)});var ps=/[\-:]([a-z])/g;function ms(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ps,ms);Ye[t]=new it(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ps,ms);Ye[t]=new it(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ps,ms);Ye[t]=new it(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ye[e]=new it(e,1,!1,e.toLowerCase(),null,!1,!1)});Ye.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ye[e]=new it(e,1,!1,e.toLowerCase(),null,!0,!0)});var Rn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sc=["Webkit","ms","Moz","O"];Object.keys(Rn).forEach(function(e){Sc.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rn[t]=Rn[e]})});var Ec=/["'&<>]/;function nt(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=Ec.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var kc=/([A-Z])/g,Tc=/^ms-/,Xi=Array.isArray;function Ft(e,t){return{insertionMode:e,selectedValue:t}}function Ac(e,t,r){switch(t){case"select":return Ft(1,r.value!=null?r.value:r.defaultValue);case"svg":return Ft(2,null);case"math":return Ft(3,null);case"foreignObject":return Ft(1,null);case"table":return Ft(4,null);case"thead":case"tbody":case"tfoot":return Ft(5,null);case"colgroup":return Ft(7,null);case"tr":return Ft(6,null)}return 4<=e.insertionMode||e.insertionMode===0?Ft(1,null):e}var na=new Map;function Lo(e,t,r){if(typeof r!="object")throw Error(ke(62));t=!0;for(var n in r)if(ot.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=nt(n);o=nt((""+o).trim())}else{i=n;var a=na.get(i);a!==void 0||(a=nt(i.replace(kc,"-$1").toLowerCase().replace(Tc,"-ms-")),na.set(i,a)),i=a,o=typeof o=="number"?o===0||ot.call(Rn,n)?""+o:o+"px":nt((""+o).trim())}t?(t=!1,e.push(' style="',i,":",o)):e.push(";",i,":",o)}}t||e.push('"')}function ut(e,t,r,n){switch(r){case"style":Lo(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=Ye.hasOwnProperty(r)?Ye[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=t.attributeName,t.type){case 3:n&&e.push(" ",r,'=""');break;case 4:n===!0?e.push(" ",r,'=""'):n!==!1&&e.push(" ",r,'="',nt(n),'"');break;case 5:isNaN(n)||e.push(" ",r,'="',nt(n),'"');break;case 6:!isNaN(n)&&1<=n&&e.push(" ",r,'="',nt(n),'"');break;default:t.sanitizeURL&&(n=""+n),e.push(" ",r,'="',nt(n),'"')}}else if(Oo(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(" ",r,'="',nt(n),'"')}}}function jn(e,t,r){if(t!=null){if(r!=null)throw Error(ke(60));if(typeof t!="object"||!("__html"in t))throw Error(ke(61));t=t.__html,t!=null&&e.push(""+t)}}function Cc(e){var t="";return Po.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function bi(e,t,r,n){e.push(Et(r));var o=r=null,i;for(i in t)if(ot.call(t,i)){var a=t[i];if(a!=null)switch(i){case"children":r=a;break;case"dangerouslySetInnerHTML":o=a;break;default:ut(e,n,i,a)}}return e.push(">"),jn(e,o,r),typeof r=="string"?(e.push(nt(r)),null):r}var Nc=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,ia=new Map;function Et(e){var t=ia.get(e);if(t===void 0){if(!Nc.test(e))throw Error(ke(65,e));t="<"+e,ia.set(e,t)}return t}function Rc(e,t,r,n,o){switch(t){case"select":e.push(Et("select"));var i=null,a=null;for(f in r)if(ot.call(r,f)){var s=r[f];if(s!=null)switch(f){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:ut(e,n,f,s)}}return e.push(">"),jn(e,a,i),i;case"option":a=o.selectedValue,e.push(Et("option"));var c=s=null,d=null,f=null;for(i in r)if(ot.call(r,i)){var m=r[i];if(m!=null)switch(i){case"children":s=m;break;case"selected":d=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":c=m;default:ut(e,n,i,m)}}if(a!=null)if(r=c!==null?""+c:Cc(s),Xi(a)){for(n=0;n<a.length;n++)if(""+a[n]===r){e.push(' selected=""');break}}else""+a===r&&e.push(' selected=""');else d&&e.push(' selected=""');return e.push(">"),jn(e,f,s),s;case"textarea":e.push(Et("textarea")),f=a=i=null;for(s in r)if(ot.call(r,s)&&(c=r[s],c!=null))switch(s){case"children":f=c;break;case"value":i=c;break;case"defaultValue":a=c;break;case"dangerouslySetInnerHTML":throw Error(ke(91));default:ut(e,n,s,c)}if(i===null&&a!==null&&(i=a),e.push(">"),f!=null){if(i!=null)throw Error(ke(92));if(Xi(f)&&1<f.length)throw Error(ke(93));i=""+f}return typeof i=="string"&&i[0]===` 22`&&e.push(` 23`),i!==null&&e.push(nt(""+i)),null;case"input":e.push(Et("input")),c=f=s=i=null;for(a in r)if(ot.call(r,a)&&(d=r[a],d!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(ke(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":s=d;break;case"checked":f=d;break;case"value":i=d;break;default:ut(e,n,a,d)}return f!==null?ut(e,n,"checked",f):c!==null&&ut(e,n,"checked",c),i!==null?ut(e,n,"value",i):s!==null&&ut(e,n,"value",s),e.push("/>"),null;case"menuitem":e.push(Et("menuitem"));for(var E in r)if(ot.call(r,E)&&(i=r[E],i!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(ke(400));default:ut(e,n,E,i)}return e.push(">"),null;case"title":e.push(Et("title")),i=null;for(m in r)if(ot.call(r,m)&&(a=r[m],a!=null))switch(m){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(ke(434));default:ut(e,n,m,a)}return e.push(">"),i;case"listing":case"pre":e.push(Et(t)),a=i=null;for(c in r)if(ot.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:ut(e,n,c,s)}if(e.push(">"),a!=null){if(i!=null)throw Error(ke(60));if(typeof a!="object"||!("__html"in a))throw Error(ke(61));r=a.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===` 24`?e.push(` 25`,r):e.push(""+r))}return typeof i=="string"&&i[0]===` 26`&&e.push(` 27`),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Et(t));for(var g in r)if(ot.call(r,g)&&(i=r[g],i!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(ke(399,t));default:ut(e,n,g,i)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return bi(e,r,t,n);case"html":return o.insertionMode===0&&e.push("<!DOCTYPE html>"),bi(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return bi(e,r,t,n);e.push(Et(t)),a=i=null;for(d in r)if(ot.call(r,d)&&(s=r[d],s!=null))switch(d){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":Lo(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:Oo(d)&&typeof s!="function"&&typeof s!="symbol"&&e.push(" ",d,'="',nt(s),'"')}return e.push(">"),jn(e,a,i),i}}function sa(e,t,r){if(e.push('<!--$?--><template id="'),r===null)throw Error(ke(395));return e.push(r),e.push('"></template>')}function jc(e,t,r,n){switch(r.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=n.toString(16),e.push(t),e.push('">');default:throw Error(ke(397))}}function Ic(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(ke(397))}}var Fc=/[<\u2028\u2029]/g;function _i(e){return JSON.stringify(e).replace(Fc,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function Pc(e,t){return t=t===void 0?"":t,{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:t+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}function aa(e,t,r,n){return r.generateStaticMarkup?(e.push(nt(t)),!1):(t===""?e=n:(n&&e.push("<!-- -->"),e.push(nt(t)),e=!0),e)}var Xr=Object.assign,Oc=Symbol.for("react.element"),Bo=Symbol.for("react.portal"),Do=Symbol.for("react.fragment"),Mo=Symbol.for("react.strict_mode"),Uo=Symbol.for("react.profiler"),zo=Symbol.for("react.provider"),$o=Symbol.for("react.context"),Ho=Symbol.for("react.forward_ref"),Wo=Symbol.for("react.suspense"),Vo=Symbol.for("react.suspense_list"),Go=Symbol.for("react.memo"),gs=Symbol.for("react.lazy"),Lc=Symbol.for("react.scope"),Bc=Symbol.for("react.debug_trace_mode"),Dc=Symbol.for("react.legacy_hidden"),Mc=Symbol.for("react.default_value"),oa=Symbol.iterator;function Zi(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Do:return"Fragment";case Bo:return"Portal";case Uo:return"Profiler";case Mo:return"StrictMode";case Wo:return"Suspense";case Vo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case $o:return(e.displayName||"Context")+".Consumer";case zo:return(e._context.displayName||"Context")+".Provider";case Ho:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Go:return t=e.displayName||null,t!==null?t:Zi(e.type)||"Memo";case gs:t=e._payload,e=e._init;try{return Zi(e(t))}catch{}}return null}var qo={};function la(e,t){if(e=e.contextTypes,!e)return qo;var r={},n;for(n in e)r[n]=t[n];return r}var ar=null;function ai(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(ke(401))}else{if(r===null)throw Error(ke(401));ai(e,r)}t.context._currentValue2=t.value}}function Ko(e){e.context._currentValue2=e.parentValue,e=e.parent,e!==null&&Ko(e)}function Xo(e){var t=e.parent;t!==null&&Xo(t),e.context._currentValue2=e.value}function Zo(e,t){if(e.context._currentValue2=e.parentValue,e=e.parent,e===null)throw Error(ke(402));e.depth===t.depth?ai(e,t):Zo(e,t)}function Yo(e,t){var r=t.parent;if(r===null)throw Error(ke(402));e.depth===r.depth?ai(e,r):Yo(e,r),t.context._currentValue2=t.value}function qn(e){var t=ar;t!==e&&(t===null?Xo(e):e===null?Ko(t):t.depth===e.depth?ai(t,e):t.depth>e.depth?Zo(t,e):Yo(t,e),ar=e)}var ua={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ca(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=ua,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context=typeof a=="object"&&a!==null?a._currentValue2:n,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(r,o),o=a==null?o:Xr({},o,a),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&ua.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(e,i,r,n):s,s!=null&&(o?(o=!1,i=Xr({},i,s)):Xr(i,s))}e.state=i}else i.queue=null}var Uc={id:1,overflow:""};function Yi(e,t,r){var n=e.id;e=e.overflow;var o=32-In(n)-1;n&=~(1<<o),r+=1;var i=32-In(t)+o;if(30<i){var a=o-o%5;return i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,{id:1<<32-In(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var In=Math.clz32?Math.clz32:Hc,zc=Math.log,$c=Math.LN2;function Hc(e){return e>>>=0,e===0?32:31-(zc(e)/$c|0)|0}function Wc(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vc=typeof Object.is=="function"?Object.is:Wc,Mt=null,ws=null,Fn=null,Pe=null,Wr=!1,Kn=!1,tn=0,Vt=null,oi=0;function nr(){if(Mt===null)throw Error(ke(321));return Mt}function ha(){if(0<oi)throw Error(ke(312));return{memoizedState:null,queue:null,next:null}}function ys(){return Pe===null?Fn===null?(Wr=!1,Fn=Pe=ha()):(Wr=!0,Pe=Fn):Pe.next===null?(Wr=!1,Pe=Pe.next=ha()):(Wr=!0,Pe=Pe.next),Pe}function vs(){ws=Mt=null,Kn=!1,Fn=null,oi=0,Pe=Vt=null}function Qo(e,t){return typeof t=="function"?t(e):t}function da(e,t,r){if(Mt=nr(),Pe=ys(),Wr){var n=Pe.queue;if(t=n.dispatch,Vt!==null&&(r=Vt.get(n),r!==void 0)){Vt.delete(n),n=Pe.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return Pe.memoizedState=n,[n,t]}return[Pe.memoizedState,t]}return e=e===Qo?typeof t=="function"?t():t:r!==void 0?r(t):t,Pe.memoizedState=e,e=Pe.queue={last:null,dispatch:null},e=e.dispatch=Gc.bind(null,Mt,e),[Pe.memoizedState,e]}function fa(e,t){if(Mt=nr(),Pe=ys(),t=t===void 0?null:t,Pe!==null){var r=Pe.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!Vc(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Pe.memoizedState=[e,t],e}function Gc(e,t,r){if(25<=oi)throw Error(ke(301));if(e===Mt)if(Kn=!0,e={action:r,next:null},Vt===null&&(Vt=new Map),r=Vt.get(t),r===void 0)Vt.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function qc(){throw Error(ke(394))}function vn(){}var pa={readContext:function(e){return e._currentValue2},useContext:function(e){return nr(),e._currentValue2},useMemo:fa,useReducer:da,useRef:function(e){Mt=nr(),Pe=ys();var t=Pe.memoizedState;return t===null?(e={current:e},Pe.memoizedState=e):t},useState:function(e){return da(Qo,e)},useInsertionEffect:vn,useLayoutEffect:function(){},useCallback:function(e,t){return fa(function(){return e},t)},useImperativeHandle:vn,useEffect:vn,useDebugValue:vn,useDeferredValue:function(e){return nr(),e},useTransition:function(){return nr(),[!1,qc]},useId:function(){var e=ws.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-In(e)-1)).toString(32)+t;var r=Pn;if(r===null)throw Error(ke(404));return t=tn++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return nr(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(ke(407));return r()}},Pn=null,Si=Po.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Kc(e){return console.error(e),null}function Vr(){}function Xc(e,t,r,n,o,i,a,s,c){var d=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:d,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?Kc:o,onAllReady:Vr,onShellReady:a===void 0?Vr:a,onShellError:Vr,onFatalError:Vr},r=Xn(t,0,null,r,!1,!1),r.parentFlushed=!0,e=xs(t,e,null,r,f,qo,null,Uc),d.push(e),t}function xs(e,t,r,n,o,i,a,s){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var c={node:t,ping:function(){var d=e.pingedTasks;d.push(c),d.length===1&&tl(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(c),c}function Xn(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function rn(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Zn(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function ma(e,t,r,n,o){for(Mt={},ws=t,tn=0,e=r(n,o);Kn;)Kn=!1,tn=0,oi+=1,Pe=null,e=r(n,o);return vs(),e}function ga(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof r.getChildContext!="function")n=a;else{r=r.getChildContext();for(var s in r)if(!(s in i))throw Error(ke(108,Zi(n)||"Unknown",s));n=Xr({},a,r)}t.legacyContext=n,ht(e,t,o),t.legacyContext=a}else ht(e,t,o)}function wa(e,t){if(e&&e.defaultProps){t=Xr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Qi(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=la(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue2:o),ca(i,r,n,o),ga(e,t,i,r)}else{i=la(r,t.legacyContext),o=ma(e,t,r,n,i);var a=tn!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)ca(o,r,n,i),ga(e,t,o,r);else if(a){n=t.treeContext,t.treeContext=Yi(n,1,0);try{ht(e,t,o)}finally{t.treeContext=n}}else ht(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=Rc(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=Ac(a,r,n),Ji(e,t,i),o.formatContext=a,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push("</",r,">")}o.lastPushedText=!1}else{switch(r){case Dc:case Bc:case Mo:case Uo:case Do:ht(e,t,n.children);return;case Vo:ht(e,t,n.children);return;case Lc:throw Error(ke(343));case Wo:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},c=Xn(e,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var d=Xn(e,0,null,o.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=d;try{if(Ji(e,t,n),e.responseState.generateStaticMarkup||d.lastPushedText&&d.textEmbedded&&d.chunks.push("<!-- -->"),d.status=1,Yn(s,d),s.pendingTasks===0)break e}catch(f){d.status=4,s.forceClientRender=!0,s.errorDigest=rn(e,f)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=xs(e,i,r,c,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Ho:if(n=ma(e,t,r.render,n,o),tn!==0){r=t.treeContext,t.treeContext=Yi(r,1,0);try{ht(e,t,n)}finally{t.treeContext=r}}else ht(e,t,n);return;case Go:r=r.type,n=wa(r,n),Qi(e,t,r,n,o);return;case zo:if(o=n.children,r=r._context,n=n.value,i=r._currentValue2,r._currentValue2=n,a=ar,ar=n={parent:a,depth:a===null?0:a.depth+1,context:r,parentValue:i,value:n},t.context=n,ht(e,t,o),e=ar,e===null)throw Error(ke(403));n=e.parentValue,e.context._currentValue2=n===Mc?e.context._defaultValue:n,e=ar=e.parent,t.context=e;return;case $o:n=n.children,n=n(r._currentValue2),ht(e,t,n);return;case gs:o=r._init,r=o(r._payload),n=wa(r,n),Qi(e,t,r,n,void 0);return}throw Error(ke(130,r==null?r:typeof r,""))}}function ht(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case Oc:Qi(e,t,r.type,r.props,r.ref);return;case Bo:throw Error(ke(257));case gs:var n=r._init;r=n(r._payload),ht(e,t,r);return}if(Xi(r)){ya(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=oa&&r[oa]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);ya(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(ke(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=aa(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=aa(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function ya(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=Yi(i,n,o);try{Ji(e,t,r[o])}finally{t.treeContext=i}}}function Ji(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return ht(e,t,r)}catch(c){if(vs(),typeof c=="object"&&c!==null&&typeof c.then=="function"){r=c;var a=t.blockedSegment,s=Xn(e,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=xs(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,qn(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,qn(i),c}}function Zc(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,el(this,t,e)}function Jo(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.push(null))):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(ke(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return Jo(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Yn(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Yn(e,r)}else e.completedSegments.push(t)}function el(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(ke(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Vr,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Yn(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Zc,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Yn(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function tl(e){if(e.status!==2){var t=ar,r=Si.current;Si.current=pa;var n=Pn;Pn=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=e,c=a.blockedSegment;if(c.status===0){qn(a.context);try{ht(s,a,a.node),s.responseState.generateStaticMarkup||c.lastPushedText&&c.textEmbedded&&c.chunks.push("<!-- -->"),a.abortSet.delete(a),c.status=1,el(s,a.blockedBoundary,c)}catch(y){if(vs(),typeof y=="object"&&y!==null&&typeof y.then=="function"){var d=a.ping;y.then(d,d)}else{a.abortSet.delete(a),c.status=4;var f=a.blockedBoundary,m=y,E=rn(s,m);if(f===null?Zn(s,m):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=E,f.parentFlushed&&s.clientRenderedBoundaries.push(f))),s.allPendingTasks--,s.allPendingTasks===0){var g=s.onAllReady;g()}}}finally{}}}o.splice(0,i),e.destination!==null&&bs(e,e.destination)}catch(y){rn(e,y),Zn(e,y)}finally{Pn=n,Si.current=r,r===pa&&qn(t)}}}function xn(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=n.toString(16),t.push(e),t.push('"></template>');case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var a=0;a<r.length;a++){for(o=r[a];i<o.index;i++)t.push(n[i]);o=li(e,t,o)}for(;i<n.length-1;i++)t.push(n[i]);return i<n.length&&(o=t.push(n[i])),o;default:throw Error(ke(390))}}function li(e,t,r){var n=r.boundary;if(n===null)return xn(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)return e.responseState.generateStaticMarkup||(n=n.errorDigest,t.push("<!--$!-->"),t.push("<template"),n&&(t.push(' data-dgst="'),n=nt(n),t.push(n),t.push('"')),t.push("></template>")),xn(e,t,r),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e;if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;return o=o.boundaryPrefix+i.toString(16),n=n.id=o,sa(t,e.responseState,n),xn(e,t,r),t.push("<!--/$-->")}if(n.byteSize>e.progressiveChunkSize)return n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),sa(t,e.responseState,n.id),xn(e,t,r),t.push("<!--/$-->");if(e.responseState.generateStaticMarkup||t.push("<!--$-->"),r=n.completedSegments,r.length!==1)throw Error(ke(391));return li(e,t,r[0]),e=e.responseState.generateStaticMarkup?!0:t.push("<!--/$-->"),e}function va(e,t,r){return jc(t,e.responseState,r.formatContext,r.id),li(e,t,r),Ic(t,r.formatContext)}function xa(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)rl(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),n===null)throw Error(ke(395));return r=r.toString(16),t.push(n),t.push('","'),t.push(e.segmentPrefix),t.push(r),t.push('")<\/script>')}function rl(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(ke(392));return va(e,t,n)}return va(e,t,n),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),o=o.toString(16),t.push(o),t.push('","'),t.push(e.placeholderPrefix),t.push(o),t.push('")<\/script>')}function bs(e,t){try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){li(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)t.push(n[r]);r<n.length&&t.push(n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];n=t;var s=e.responseState,c=a.id,d=a.errorDigest,f=a.errorMessage,m=a.errorComponentStack;if(n.push(s.startInlineScript),s.sentClientRenderFunction?n.push('$RX("'):(s.sentClientRenderFunction=!0,n.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),c===null)throw Error(ke(395));if(n.push(c),n.push('"'),d||f||m){n.push(",");var E=_i(d||"");n.push(E)}if(f||m){n.push(",");var g=_i(f||"");n.push(g)}if(m){n.push(",");var y=_i(m);n.push(y)}if(!n.push(")<\/script>")){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var x=e.completedBoundaries;for(i=0;i<x.length;i++)if(!xa(e,t,x[i])){e.destination=null,i++,x.splice(0,i);return}x.splice(0,i);var v=e.partialBoundaries;for(i=0;i<v.length;i++){var k=v[i];e:{o=e,a=t;var S=k.completedSegments;for(s=0;s<S.length;s++)if(!rl(o,a,k,S[s])){s++,S.splice(0,s);var T=!1;break e}S.splice(0,s),T=!0}if(!T){e.destination=null,i++,v.splice(0,i);return}}v.splice(0,i);var C=e.completedBoundaries;for(i=0;i<C.length;i++)if(!xa(e,t,C[i])){e.destination=null,i++,C.splice(0,i);return}C.splice(0,i)}finally{e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.push(null)}}function Yc(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return Jo(n,e,t)}),r.clear(),e.destination!==null&&bs(e,e.destination)}catch(n){rn(e,n),Zn(e,n)}}function Qc(){}function nl(e,t,r,n){var o=!1,i=null,a="",s={push:function(d){return d!==null&&(a+=d),!0},destroy:function(d){o=!0,i=d}},c=!1;if(e=Xc(e,Pc(r,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,Qc,void 0,function(){c=!0}),tl(e),Yc(e,n),e.status===1)e.status=2,s.destroy(e.fatalError);else if(e.status!==2&&e.destination===null){e.destination=s;try{bs(e,s)}catch(d){rn(e,d),Zn(e,d)}}if(o)throw i;if(!c)throw Error(ke(426));return a}Fr.renderToNodeStream=function(){throw Error(ke(207))};Fr.renderToStaticMarkup=function(e,t){return nl(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Fr.renderToStaticNodeStream=function(){throw Error(ke(208))};Fr.renderToString=function(e,t){return nl(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')};Fr.version="18.3.1";var _s={};/** 28 * @license React 29 * react-dom-server.browser.production.min.js 30 * 31 * Copyright (c) Facebook, Inc. and its affiliates. 32 * 33 * This source code is licensed under the MIT license found in the 34 * LICENSE file in the root directory of this source tree. 35 */var il=ce;function Ne(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var dt=null,ft=0;function xe(e,t){if(t.length!==0)if(512<t.length)0<ft&&(e.enqueue(new Uint8Array(dt.buffer,0,ft)),dt=new Uint8Array(512),ft=0),e.enqueue(t);else{var r=dt.length-ft;r<t.length&&(r===0?e.enqueue(dt):(dt.set(t.subarray(0,r),ft),e.enqueue(dt),t=t.subarray(r)),dt=new Uint8Array(512),ft=0),dt.set(t,ft),ft+=t.length}}function Be(e,t){return xe(e,t),!0}function ba(e){dt&&0<ft&&(e.enqueue(new Uint8Array(dt.buffer,0,ft)),dt=null,ft=0)}var sl=new TextEncoder;function Re(e){return sl.encode(e)}function ge(e){return sl.encode(e)}function al(e,t){typeof e.error=="function"?e.error(t):e.close()}var lt=Object.prototype.hasOwnProperty,Jc=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_a={},Sa={};function ol(e){return lt.call(Sa,e)?!0:lt.call(_a,e)?!1:Jc.test(e)?Sa[e]=!0:(_a[e]=!0,!1)}function st(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Qe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Qe[e]=new st(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Qe[t]=new st(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Qe[e]=new st(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Qe[e]=new st(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Qe[e]=new st(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Qe[e]=new st(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Qe[e]=new st(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Qe[e]=new st(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Qe[e]=new st(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ss=/[\-:]([a-z])/g;function Es(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ss,Es);Qe[t]=new st(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ss,Es);Qe[t]=new st(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ss,Es);Qe[t]=new st(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!1,!1)});Qe.xlinkHref=new st("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Qe[e]=new st(e,1,!1,e.toLowerCase(),null,!0,!0)});var On={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},eh=["Webkit","ms","Moz","O"];Object.keys(On).forEach(function(e){eh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]})});var th=/["'&<>]/;function Xe(e){if(typeof e=="boolean"||typeof e=="number")return""+e;e=""+e;var t=th.exec(e);if(t){var r="",n,o=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}o!==n&&(r+=e.substring(o,n)),o=n+1,r+=t}e=o!==n?r+e.substring(o,n):r}return e}var rh=/([A-Z])/g,nh=/^ms-/,es=Array.isArray,ih=ge("<script>"),sh=ge("<\/script>"),ah=ge('<script src="'),oh=ge('<script type="module" src="'),Ea=ge('" async=""><\/script>'),lh=/(<\/|<)(s)(cript)/gi;function uh(e,t,r,n){return""+t+(r==="s"?"\\u0073":"\\u0053")+n}function ch(e,t,r,n,o){e=e===void 0?"":e,t=t===void 0?ih:ge('<script nonce="'+Xe(t)+'">');var i=[];if(r!==void 0&&i.push(t,Re((""+r).replace(lh,uh)),sh),n!==void 0)for(r=0;r<n.length;r++)i.push(ah,Re(Xe(n[r])),Ea);if(o!==void 0)for(n=0;n<o.length;n++)i.push(oh,Re(Xe(o[n])),Ea);return{bootstrapChunks:i,startInlineScript:t,placeholderPrefix:ge(e+"P:"),segmentPrefix:ge(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}function kt(e,t){return{insertionMode:e,selectedValue:t}}function hh(e){return kt(e==="http://www.w3.org/2000/svg"?2:e==="http://www.w3.org/1998/Math/MathML"?3:0,null)}function dh(e,t,r){switch(t){case"select":return kt(1,r.value!=null?r.value:r.defaultValue);case"svg":return kt(2,null);case"math":return kt(3,null);case"foreignObject":return kt(1,null);case"table":return kt(4,null);case"thead":case"tbody":case"tfoot":return kt(5,null);case"colgroup":return kt(7,null);case"tr":return kt(6,null)}return 4<=e.insertionMode||e.insertionMode===0?kt(1,null):e}var ks=ge("<!-- -->");function ka(e,t,r,n){return t===""?n:(n&&e.push(ks),e.push(Re(Xe(t))),!0)}var Ta=new Map,fh=ge(' style="'),Aa=ge(":"),ph=ge(";");function ll(e,t,r){if(typeof r!="object")throw Error(Ne(62));t=!0;for(var n in r)if(lt.call(r,n)){var o=r[n];if(o!=null&&typeof o!="boolean"&&o!==""){if(n.indexOf("--")===0){var i=Re(Xe(n));o=Re(Xe((""+o).trim()))}else{i=n;var a=Ta.get(i);a!==void 0||(a=ge(Xe(i.replace(rh,"-$1").toLowerCase().replace(nh,"-ms-"))),Ta.set(i,a)),i=a,o=typeof o=="number"?o===0||lt.call(On,n)?Re(""+o):Re(o+"px"):Re(Xe((""+o).trim()))}t?(t=!1,e.push(fh,i,Aa,o)):e.push(ph,i,Aa,o)}}t||e.push(ir)}var Ht=ge(" "),_r=ge('="'),ir=ge('"'),Ca=ge('=""');function ct(e,t,r,n){switch(r){case"style":ll(e,t,n);return;case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N"){if(t=Qe.hasOwnProperty(r)?Qe[r]:null,t!==null){switch(typeof n){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(r=Re(t.attributeName),t.type){case 3:n&&e.push(Ht,r,Ca);break;case 4:n===!0?e.push(Ht,r,Ca):n!==!1&&e.push(Ht,r,_r,Re(Xe(n)),ir);break;case 5:isNaN(n)||e.push(Ht,r,_r,Re(Xe(n)),ir);break;case 6:!isNaN(n)&&1<=n&&e.push(Ht,r,_r,Re(Xe(n)),ir);break;default:t.sanitizeURL&&(n=""+n),e.push(Ht,r,_r,Re(Xe(n)),ir)}}else if(ol(r)){switch(typeof n){case"function":case"symbol":return;case"boolean":if(t=r.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-")return}e.push(Ht,Re(r),_r,Re(Xe(n)),ir)}}}var Wt=ge(">"),Na=ge("/>");function Ln(e,t,r){if(t!=null){if(r!=null)throw Error(Ne(60));if(typeof t!="object"||!("__html"in t))throw Error(Ne(61));t=t.__html,t!=null&&e.push(Re(""+t))}}function mh(e){var t="";return il.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}var Ei=ge(' selected=""');function ki(e,t,r,n){e.push(Tt(r));var o=r=null,i;for(i in t)if(lt.call(t,i)){var a=t[i];if(a!=null)switch(i){case"children":r=a;break;case"dangerouslySetInnerHTML":o=a;break;default:ct(e,n,i,a)}}return e.push(Wt),Ln(e,o,r),typeof r=="string"?(e.push(Re(Xe(r))),null):r}var Ti=ge(` 36`),gh=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Ra=new Map;function Tt(e){var t=Ra.get(e);if(t===void 0){if(!gh.test(e))throw Error(Ne(65,e));t=ge("<"+e),Ra.set(e,t)}return t}var wh=ge("<!DOCTYPE html>");function yh(e,t,r,n,o){switch(t){case"select":e.push(Tt("select"));var i=null,a=null;for(f in r)if(lt.call(r,f)){var s=r[f];if(s!=null)switch(f){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:ct(e,n,f,s)}}return e.push(Wt),Ln(e,a,i),i;case"option":a=o.selectedValue,e.push(Tt("option"));var c=s=null,d=null,f=null;for(i in r)if(lt.call(r,i)){var m=r[i];if(m!=null)switch(i){case"children":s=m;break;case"selected":d=m;break;case"dangerouslySetInnerHTML":f=m;break;case"value":c=m;default:ct(e,n,i,m)}}if(a!=null)if(r=c!==null?""+c:mh(s),es(a)){for(n=0;n<a.length;n++)if(""+a[n]===r){e.push(Ei);break}}else""+a===r&&e.push(Ei);else d&&e.push(Ei);return e.push(Wt),Ln(e,f,s),s;case"textarea":e.push(Tt("textarea")),f=a=i=null;for(s in r)if(lt.call(r,s)&&(c=r[s],c!=null))switch(s){case"children":f=c;break;case"value":i=c;break;case"defaultValue":a=c;break;case"dangerouslySetInnerHTML":throw Error(Ne(91));default:ct(e,n,s,c)}if(i===null&&a!==null&&(i=a),e.push(Wt),f!=null){if(i!=null)throw Error(Ne(92));if(es(f)&&1<f.length)throw Error(Ne(93));i=""+f}return typeof i=="string"&&i[0]===` 37`&&e.push(Ti),i!==null&&e.push(Re(Xe(""+i))),null;case"input":e.push(Tt("input")),c=f=s=i=null;for(a in r)if(lt.call(r,a)&&(d=r[a],d!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(Ne(399,"input"));case"defaultChecked":c=d;break;case"defaultValue":s=d;break;case"checked":f=d;break;case"value":i=d;break;default:ct(e,n,a,d)}return f!==null?ct(e,n,"checked",f):c!==null&&ct(e,n,"checked",c),i!==null?ct(e,n,"value",i):s!==null&&ct(e,n,"value",s),e.push(Na),null;case"menuitem":e.push(Tt("menuitem"));for(var E in r)if(lt.call(r,E)&&(i=r[E],i!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(Ne(400));default:ct(e,n,E,i)}return e.push(Wt),null;case"title":e.push(Tt("title")),i=null;for(m in r)if(lt.call(r,m)&&(a=r[m],a!=null))switch(m){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(Ne(434));default:ct(e,n,m,a)}return e.push(Wt),i;case"listing":case"pre":e.push(Tt(t)),a=i=null;for(c in r)if(lt.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:ct(e,n,c,s)}if(e.push(Wt),a!=null){if(i!=null)throw Error(Ne(60));if(typeof a!="object"||!("__html"in a))throw Error(Ne(61));r=a.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===` 38`?e.push(Ti,Re(r)):e.push(Re(""+r)))}return typeof i=="string"&&i[0]===` 39`&&e.push(Ti),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(Tt(t));for(var g in r)if(lt.call(r,g)&&(i=r[g],i!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(Ne(399,t));default:ct(e,n,g,i)}return e.push(Na),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ki(e,r,t,n);case"html":return o.insertionMode===0&&e.push(wh),ki(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return ki(e,r,t,n);e.push(Tt(t)),a=i=null;for(d in r)if(lt.call(r,d)&&(s=r[d],s!=null))switch(d){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":ll(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:ol(d)&&typeof s!="function"&&typeof s!="symbol"&&e.push(Ht,Re(d),_r,Re(Xe(s)),ir)}return e.push(Wt),Ln(e,a,i),i}}var vh=ge("</"),xh=ge(">"),bh=ge('<template id="'),_h=ge('"></template>'),Sh=ge("<!--$-->"),Eh=ge('<!--$?--><template id="'),kh=ge('"></template>'),Th=ge("<!--$!-->"),Ah=ge("<!--/$-->"),Ch=ge("<template"),Nh=ge('"'),Rh=ge(' data-dgst="');ge(' data-msg="');ge(' data-stck="');var jh=ge("></template>");function ja(e,t,r){if(xe(e,Eh),r===null)throw Error(Ne(395));return xe(e,r),Be(e,kh)}var Ih=ge('<div hidden id="'),Fh=ge('">'),Ph=ge("</div>"),Oh=ge('<svg aria-hidden="true" style="display:none" id="'),Lh=ge('">'),Bh=ge("</svg>"),Dh=ge('<math aria-hidden="true" style="display:none" id="'),Mh=ge('">'),Uh=ge("</math>"),zh=ge('<table hidden id="'),$h=ge('">'),Hh=ge("</table>"),Wh=ge('<table hidden><tbody id="'),Vh=ge('">'),Gh=ge("</tbody></table>"),qh=ge('<table hidden><tr id="'),Kh=ge('">'),Xh=ge("</tr></table>"),Zh=ge('<table hidden><colgroup id="'),Yh=ge('">'),Qh=ge("</colgroup></table>");function Jh(e,t,r,n){switch(r.insertionMode){case 0:case 1:return xe(e,Ih),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,Fh);case 2:return xe(e,Oh),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,Lh);case 3:return xe(e,Dh),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,Mh);case 4:return xe(e,zh),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,$h);case 5:return xe(e,Wh),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,Vh);case 6:return xe(e,qh),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,Kh);case 7:return xe(e,Zh),xe(e,t.segmentPrefix),xe(e,Re(n.toString(16))),Be(e,Yh);default:throw Error(Ne(397))}}function ed(e,t){switch(t.insertionMode){case 0:case 1:return Be(e,Ph);case 2:return Be(e,Bh);case 3:return Be(e,Uh);case 4:return Be(e,Hh);case 5:return Be(e,Gh);case 6:return Be(e,Xh);case 7:return Be(e,Qh);default:throw Error(Ne(397))}}var td=ge('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),rd=ge('$RS("'),nd=ge('","'),id=ge('")<\/script>'),sd=ge('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),ad=ge('$RC("'),od=ge('","'),ld=ge('")<\/script>'),ud=ge('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),cd=ge('$RX("'),hd=ge('"'),dd=ge(")<\/script>"),Ai=ge(","),fd=/[<\u2028\u2029]/g;function Ci(e){return JSON.stringify(e).replace(fd,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Zr=Object.assign,pd=Symbol.for("react.element"),ul=Symbol.for("react.portal"),cl=Symbol.for("react.fragment"),hl=Symbol.for("react.strict_mode"),dl=Symbol.for("react.profiler"),fl=Symbol.for("react.provider"),pl=Symbol.for("react.context"),ml=Symbol.for("react.forward_ref"),gl=Symbol.for("react.suspense"),wl=Symbol.for("react.suspense_list"),yl=Symbol.for("react.memo"),Ts=Symbol.for("react.lazy"),md=Symbol.for("react.scope"),gd=Symbol.for("react.debug_trace_mode"),wd=Symbol.for("react.legacy_hidden"),yd=Symbol.for("react.default_value"),Ia=Symbol.iterator;function ts(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case cl:return"Fragment";case ul:return"Portal";case dl:return"Profiler";case hl:return"StrictMode";case gl:return"Suspense";case wl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pl:return(e.displayName||"Context")+".Consumer";case fl:return(e._context.displayName||"Context")+".Provider";case ml:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case yl:return t=e.displayName||null,t!==null?t:ts(e.type)||"Memo";case Ts:t=e._payload,e=e._init;try{return ts(e(t))}catch{}}return null}var vl={};function Fa(e,t){if(e=e.contextTypes,!e)return vl;var r={},n;for(n in e)r[n]=t[n];return r}var or=null;function ui(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(Ne(401))}else{if(r===null)throw Error(Ne(401));ui(e,r)}t.context._currentValue=t.value}}function xl(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&xl(e)}function bl(e){var t=e.parent;t!==null&&bl(t),e.context._currentValue=e.value}function _l(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(Ne(402));e.depth===t.depth?ui(e,t):_l(e,t)}function Sl(e,t){var r=t.parent;if(r===null)throw Error(Ne(402));e.depth===r.depth?ui(e,r):Sl(e,r),t.context._currentValue=t.value}function Qn(e){var t=or;t!==e&&(t===null?bl(e):e===null?xl(t):t.depth===e.depth?ui(t,e):t.depth>e.depth?_l(t,e):Sl(t,e),or=e)}var Pa={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Oa(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=Pa,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context=typeof a=="object"&&a!==null?a._currentValue:n,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(r,o),o=a==null?o:Zr({},o,a),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&Pa.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(e,i,r,n):s,s!=null&&(o?(o=!1,i=Zr({},i,s)):Zr(i,s))}e.state=i}else i.queue=null}var vd={id:1,overflow:""};function rs(e,t,r){var n=e.id;e=e.overflow;var o=32-Bn(n)-1;n&=~(1<<o),r+=1;var i=32-Bn(t)+o;if(30<i){var a=o-o%5;return i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,{id:1<<32-Bn(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var Bn=Math.clz32?Math.clz32:_d,xd=Math.log,bd=Math.LN2;function _d(e){return e>>>=0,e===0?32:31-(xd(e)/bd|0)|0}function Sd(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ed=typeof Object.is=="function"?Object.is:Sd,Ut=null,As=null,Dn=null,Oe=null,Gr=!1,Jn=!1,nn=0,Gt=null,ci=0;function sr(){if(Ut===null)throw Error(Ne(321));return Ut}function La(){if(0<ci)throw Error(Ne(312));return{memoizedState:null,queue:null,next:null}}function Cs(){return Oe===null?Dn===null?(Gr=!1,Dn=Oe=La()):(Gr=!0,Oe=Dn):Oe.next===null?(Gr=!1,Oe=Oe.next=La()):(Gr=!0,Oe=Oe.next),Oe}function Ns(){As=Ut=null,Jn=!1,Dn=null,ci=0,Oe=Gt=null}function El(e,t){return typeof t=="function"?t(e):t}function Ba(e,t,r){if(Ut=sr(),Oe=Cs(),Gr){var n=Oe.queue;if(t=n.dispatch,Gt!==null&&(r=Gt.get(n),r!==void 0)){Gt.delete(n),n=Oe.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return Oe.memoizedState=n,[n,t]}return[Oe.memoizedState,t]}return e=e===El?typeof t=="function"?t():t:r!==void 0?r(t):t,Oe.memoizedState=e,e=Oe.queue={last:null,dispatch:null},e=e.dispatch=kd.bind(null,Ut,e),[Oe.memoizedState,e]}function Da(e,t){if(Ut=sr(),Oe=Cs(),t=t===void 0?null:t,Oe!==null){var r=Oe.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!Ed(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),Oe.memoizedState=[e,t],e}function kd(e,t,r){if(25<=ci)throw Error(Ne(301));if(e===Ut)if(Jn=!0,e={action:r,next:null},Gt===null&&(Gt=new Map),r=Gt.get(t),r===void 0)Gt.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function Td(){throw Error(Ne(394))}function bn(){}var Ma={readContext:function(e){return e._currentValue},useContext:function(e){return sr(),e._currentValue},useMemo:Da,useReducer:Ba,useRef:function(e){Ut=sr(),Oe=Cs();var t=Oe.memoizedState;return t===null?(e={current:e},Oe.memoizedState=e):t},useState:function(e){return Ba(El,e)},useInsertionEffect:bn,useLayoutEffect:function(){},useCallback:function(e,t){return Da(function(){return e},t)},useImperativeHandle:bn,useEffect:bn,useDebugValue:bn,useDeferredValue:function(e){return sr(),e},useTransition:function(){return sr(),[!1,Td]},useId:function(){var e=As.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Bn(e)-1)).toString(32)+t;var r=Mn;if(r===null)throw Error(Ne(404));return t=nn++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return sr(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(Ne(407));return r()}},Mn=null,Ni=il.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Ad(e){return console.error(e),null}function qr(){}function Cd(e,t,r,n,o,i,a,s,c){var d=[],f=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:f,pingedTasks:d,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?Ad:o,onAllReady:i===void 0?qr:i,onShellReady:a===void 0?qr:a,onShellError:s===void 0?qr:s,onFatalError:c===void 0?qr:c},r=ei(t,0,null,r,!1,!1),r.parentFlushed=!0,e=Rs(t,e,null,r,f,vl,null,vd),d.push(e),t}function Rs(e,t,r,n,o,i,a,s){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var c={node:t,ping:function(){var d=e.pingedTasks;d.push(c),d.length===1&&Al(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(c),c}function ei(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function sn(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function ti(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,al(e.destination,t)):(e.status=1,e.fatalError=t)}function Ua(e,t,r,n,o){for(Ut={},As=t,nn=0,e=r(n,o);Jn;)Jn=!1,nn=0,ci+=1,Oe=null,e=r(n,o);return Ns(),e}function za(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof r.getChildContext!="function")n=a;else{r=r.getChildContext();for(var s in r)if(!(s in i))throw Error(Ne(108,ts(n)||"Unknown",s));n=Zr({},a,r)}t.legacyContext=n,pt(e,t,o),t.legacyContext=a}else pt(e,t,o)}function $a(e,t){if(e&&e.defaultProps){t=Zr({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function ns(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=Fa(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),Oa(i,r,n,o),za(e,t,i,r)}else{i=Fa(r,t.legacyContext),o=Ua(e,t,r,n,i);var a=nn!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)Oa(o,r,n,i),za(e,t,o,r);else if(a){n=t.treeContext,t.treeContext=rs(n,1,0);try{pt(e,t,o)}finally{t.treeContext=n}}else pt(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=yh(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=dh(a,r,n),is(e,t,i),o.formatContext=a,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(vh,Re(r),xh)}o.lastPushedText=!1}else{switch(r){case wd:case gd:case hl:case dl:case cl:pt(e,t,n.children);return;case wl:pt(e,t,n.children);return;case md:throw Error(Ne(343));case gl:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},c=ei(e,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(c),o.lastPushedText=!1;var d=ei(e,0,null,o.formatContext,!1,!1);d.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=d;try{if(is(e,t,n),d.lastPushedText&&d.textEmbedded&&d.chunks.push(ks),d.status=1,ri(s,d),s.pendingTasks===0)break e}catch(f){d.status=4,s.forceClientRender=!0,s.errorDigest=sn(e,f)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=Rs(e,i,r,c,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case ml:if(n=Ua(e,t,r.render,n,o),nn!==0){r=t.treeContext,t.treeContext=rs(r,1,0);try{pt(e,t,n)}finally{t.treeContext=r}}else pt(e,t,n);return;case yl:r=r.type,n=$a(r,n),ns(e,t,r,n,o);return;case fl:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,a=or,or=n={parent:a,depth:a===null?0:a.depth+1,context:r,parentValue:i,value:n},t.context=n,pt(e,t,o),e=or,e===null)throw Error(Ne(403));n=e.parentValue,e.context._currentValue=n===yd?e.context._defaultValue:n,e=or=e.parent,t.context=e;return;case pl:n=n.children,n=n(r._currentValue),pt(e,t,n);return;case Ts:o=r._init,r=o(r._payload),n=$a(r,n),ns(e,t,r,n,void 0);return}throw Error(Ne(130,r==null?r:typeof r,""))}}function pt(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case pd:ns(e,t,r.type,r.props,r.ref);return;case ul:throw Error(Ne(257));case Ts:var n=r._init;r=n(r._payload),pt(e,t,r);return}if(es(r)){Ha(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=Ia&&r[Ia]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);Ha(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(Ne(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=ka(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=ka(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function Ha(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=rs(i,n,o);try{is(e,t,r[o])}finally{t.treeContext=i}}}function is(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return pt(e,t,r)}catch(c){if(Ns(),typeof c=="object"&&c!==null&&typeof c.then=="function"){r=c;var a=t.blockedSegment,s=ei(e,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=Rs(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Qn(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Qn(i),c}}function Nd(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,Tl(this,t,e)}function kl(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(Ne(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return kl(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function ri(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&ri(e,r)}else e.completedSegments.push(t)}function Tl(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(Ne(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=qr,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&ri(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Nd,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(ri(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function Al(e){if(e.status!==2){var t=or,r=Ni.current;Ni.current=Ma;var n=Mn;Mn=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=e,c=a.blockedSegment;if(c.status===0){Qn(a.context);try{pt(s,a,a.node),c.lastPushedText&&c.textEmbedded&&c.chunks.push(ks),a.abortSet.delete(a),c.status=1,Tl(s,a.blockedBoundary,c)}catch(y){if(Ns(),typeof y=="object"&&y!==null&&typeof y.then=="function"){var d=a.ping;y.then(d,d)}else{a.abortSet.delete(a),c.status=4;var f=a.blockedBoundary,m=y,E=sn(s,m);if(f===null?ti(s,m):(f.pendingTasks--,f.forceClientRender||(f.forceClientRender=!0,f.errorDigest=E,f.parentFlushed&&s.clientRenderedBoundaries.push(f))),s.allPendingTasks--,s.allPendingTasks===0){var g=s.onAllReady;g()}}}finally{}}}o.splice(0,i),e.destination!==null&&js(e,e.destination)}catch(y){sn(e,y),ti(e,y)}finally{Mn=n,Ni.current=r,r===Ma&&Qn(t)}}}function _n(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,xe(t,bh),xe(t,e.placeholderPrefix),e=Re(n.toString(16)),xe(t,e),Be(t,_h);case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var a=0;a<r.length;a++){for(o=r[a];i<o.index;i++)xe(t,n[i]);o=hi(e,t,o)}for(;i<n.length-1;i++)xe(t,n[i]);return i<n.length&&(o=Be(t,n[i])),o;default:throw Error(Ne(390))}}function hi(e,t,r){var n=r.boundary;if(n===null)return _n(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,Be(t,Th),xe(t,Ch),n&&(xe(t,Rh),xe(t,Re(Xe(n))),xe(t,Nh)),Be(t,jh),_n(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;o=ge(o.boundaryPrefix+i.toString(16)),n=n.id=o,ja(t,e.responseState,n),_n(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),ja(t,e.responseState,n.id),_n(e,t,r);else{if(Be(t,Sh),r=n.completedSegments,r.length!==1)throw Error(Ne(391));hi(e,t,r[0])}return Be(t,Ah)}function Wa(e,t,r){return Jh(t,e.responseState,r.formatContext,r.id),hi(e,t,r),ed(t,r.formatContext)}function Va(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)Cl(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,xe(t,e.startInlineScript),e.sentCompleteBoundaryFunction?xe(t,ad):(e.sentCompleteBoundaryFunction=!0,xe(t,sd)),n===null)throw Error(Ne(395));return r=Re(r.toString(16)),xe(t,n),xe(t,od),xe(t,e.segmentPrefix),xe(t,r),Be(t,ld)}function Cl(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(Ne(392));return Wa(e,t,n)}return Wa(e,t,n),e=e.responseState,xe(t,e.startInlineScript),e.sentCompleteSegmentFunction?xe(t,rd):(e.sentCompleteSegmentFunction=!0,xe(t,td)),xe(t,e.segmentPrefix),o=Re(o.toString(16)),xe(t,o),xe(t,nd),xe(t,e.placeholderPrefix),xe(t,o),Be(t,id)}function js(e,t){dt=new Uint8Array(512),ft=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){hi(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)xe(t,n[r]);r<n.length&&Be(t,n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];n=t;var s=e.responseState,c=a.id,d=a.errorDigest,f=a.errorMessage,m=a.errorComponentStack;if(xe(n,s.startInlineScript),s.sentClientRenderFunction?xe(n,cd):(s.sentClientRenderFunction=!0,xe(n,ud)),c===null)throw Error(Ne(395));xe(n,c),xe(n,hd),(d||f||m)&&(xe(n,Ai),xe(n,Re(Ci(d||"")))),(f||m)&&(xe(n,Ai),xe(n,Re(Ci(f||"")))),m&&(xe(n,Ai),xe(n,Re(Ci(m)))),Be(n,dd)}o.splice(0,i);var E=e.completedBoundaries;for(i=0;i<E.length;i++)Va(e,t,E[i]);E.splice(0,i),ba(t),dt=new Uint8Array(512),ft=0;var g=e.partialBoundaries;for(i=0;i<g.length;i++){var y=g[i];e:{o=e,a=t;var x=y.completedSegments;for(s=0;s<x.length;s++)if(!Cl(o,a,y,x[s])){s++,x.splice(0,s);var v=!1;break e}x.splice(0,s),v=!0}if(!v){e.destination=null,i++,g.splice(0,i);return}}g.splice(0,i);var k=e.completedBoundaries;for(i=0;i<k.length;i++)Va(e,t,k[i]);k.splice(0,i)}finally{ba(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function Ga(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return kl(n,e,t)}),r.clear(),e.destination!==null&&js(e,e.destination)}catch(n){sn(e,n),ti(e,n)}}_s.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,a=new Promise(function(f,m){i=f,o=m}),s=Cd(e,ch(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),hh(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var f=new ReadableStream({type:"bytes",pull:function(m){if(s.status===1)s.status=2,al(m,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=m;try{js(s,m)}catch(E){sn(s,E),ti(s,E)}}},cancel:function(){Ga(s)}},{highWaterMark:0});f.allReady=a,r(f)},function(f){a.catch(function(){}),n(f)},o);if(t&&t.signal){var c=t.signal,d=function(){Ga(s,c.reason),c.removeEventListener("abort",d)};c.addEventListener("abort",d)}Al(s)})};_s.version="18.3.1";var Pr,Nl;Pr=Fr,Nl=_s;Pr.version;Pr.renderToString;var Rd=Pr.renderToStaticMarkup;Pr.renderToNodeStream;Pr.renderToStaticNodeStream;Nl.renderToReadableStream;const we={colors:{headerBg:"#0a0a0b",headerText:"#ffffff",accent:"#e8863a",bodyText:"#1a1a2e",mutedText:"#6b7280",cardBorder:"#e5e5e5",tableHeaderBg:"#0a0a0b",tableHeaderText:"#ffffff",tableStripe:"#f8f8f8",pricingHighlight:"#e8863a"},fonts:{he:"Heebo, 'Segoe UI', Arial, sans-serif",en:"Inter, 'Helvetica Neue', Arial, sans-serif"},spacing:{sectionGap:"32px"},radii:{card:"12px",pill:"999px",soft:"8px"},text:{h2:"22px",h3:"17px",body:"15px",small:"12px"}};
39function jd(e){return e==="he"?we.fonts.he:we.fonts.en}function Id(e){return e==="he"?"rtl":"ltr"}function Fd(e){return e==="he"?"âª":e==="en"?"$":"â¬"}function Pd({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr";return h.jsx("div",{"data-section":"hero","data-dark-bg":"true",dir:n,style:{background:r.headerBg,color:r.headerText,padding:"40px 32px",borderRadius:we.radii.card,marginBottom:we.spacing.sectionGap},children:h.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"24px"},children:[h.jsxs("div",{style:{flex:1},children:[e.dateLabel&&h.jsx("div",{style:{fontSize:we.text.small,color:"rgba(255,255,255,0.55)",marginBottom:"8px"},children:e.dateLabel}),h.jsx("h1",{style:{fontSize:"32px",fontWeight:800,margin:"0 0 8px",lineHeight:1.15,color:r.headerText},children:e.title}),e.subtitle&&h.jsx("p",{style:{fontSize:we.text.body,color:"rgba(255,255,255,0.75)",margin:"0 0 16px"},children:e.subtitle}),h.jsx("div",{style:{borderTop:`2px solid ${r.accent}`,width:"60px",margin:"12px 0"}}),h.jsxs("div",{style:{fontSize:we.text.body,color:"rgba(255,255,255,0.85)"},children:[h.jsx("span",{style:{color:"rgba(255,255,255,0.55)"},children:t==="he"?"×××ש ×¢××ר: ":"Prepared for: "}),h.jsx("strong",{style:{color:r.headerText},children:e.businessName}),e.contactName&&h.jsxs("span",{style:{color:"rgba(255,255,255,0.65)"},children:[" · ",t==="he"?"××××× ":"Attn: ",e.contactName]})]})]}),e.clientLogoUrl&&h.jsx("img",{src:e.clientLogoUrl,alt:e.businessName,style:{width:"84px",height:"84px",objectFit:"contain",background:"rgba(255,255,255,0.08)",border:"1px solid rgba(255,255,255,0.18)",borderRadius:we.radii.card,padding:"8px"}})]})})}function Od({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr";return h.jsxs("section",{"data-section":e.kind,dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[e.title&&h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 16px"},children:e.title}),e.paragraphs.map((o,i)=>h.jsx("p",{style:{fontSize:we.text.body,lineHeight:1.85,margin:"0 0 14px",color:r.bodyText},children:o},i))]})}function Ld({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr",o=t==="he"?"borderRight":"borderLeft",i=t==="he"?"paddingRight":"paddingLeft";return h.jsxs("section",{"data-section":"project_understanding",dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 12px"},children:e.title}),e.intro&&h.jsx("p",{style:{fontSize:we.text.body,lineHeight:1.85,margin:"0 0 16px"},children:e.intro}),h.jsx("div",{style:{display:"grid",gap:"10px"},children:e.bullets.map((a,s)=>h.jsxs("div",{style:{background:we.colors.tableStripe,borderRadius:we.radii.soft,[o]:`3px solid ${r.accent}`,[i]:"16px",padding:"12px 16px"},children:[h.jsxs("strong",{style:{color:r.accent,fontWeight:700},children:[a.label,": "]}),h.jsx("span",{style:{color:r.bodyText},children:a.text})]},s))})]})}function Bd({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr";return h.jsxs("section",{"data-section":"strategy_phases",dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 12px"},children:e.title}),e.intro&&h.jsx("p",{style:{fontSize:we.text.body,lineHeight:1.85,margin:"0 0 18px"},children:e.intro}),h.jsx("div",{style:{display:"grid",gap:"18px"},children:e.phases.map((o,i)=>h.jsxs("div",{children:[h.jsx("h3",{style:{fontSize:we.text.h3,fontWeight:700,color:r.accent,margin:"0 0 8px"},children:o.name}),h.jsx("div",{style:{display:"grid",gap:"6px"},children:o.items.map((a,s)=>h.jsxs("div",{style:{fontSize:we.text.body,lineHeight:1.7},children:[h.jsxs("strong",{style:{color:r.headerBg},children:[a.label,": "]}),h.jsx("span",{children:a.text})]},s))})]},i))})]})}function Dd({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr",o=t==="he"?"right":"left";return h.jsxs("section",{"data-section":"services_table",dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 16px"},children:e.title}),h.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:we.text.body,borderRadius:we.radii.soft,overflow:"hidden",boxShadow:"0 1px 0 rgba(0,0,0,0.04)"},children:[h.jsx("thead",{children:h.jsxs("tr",{"data-dark-bg":"true",children:[h.jsx("th",{style:{background:r.tableHeaderBg,color:r.tableHeaderText,fontWeight:700,padding:"12px 16px",textAlign:o,fontSize:we.text.body},children:t==="he"?"ש×ר×ת":"Service"}),h.jsx("th",{style:{background:r.tableHeaderBg,color:r.tableHeaderText,fontWeight:700,padding:"12px 16px",textAlign:o,fontSize:we.text.body},children:t==="he"?"פ×ר××":"Details"})]})}),h.jsx("tbody",{children:e.services.map((i,a)=>
39h.jsxs("tr",{style:{background:a%2===0?"#ffffff":r.tableStripe},children:[h.jsx("td",{style:{padding:"12px 16px",fontWeight:700,color:r.accent,verticalAlign:"top",width:"32%",textAlign:o,borderBottom:`1px solid ${r.cardBorder}`},children:i.name}),h.jsx("td",{style:{padding:"12px 16px",color:r.bodyText,lineHeight:1.7,textAlign:o,borderBottom:`1px solid ${r.cardBorder}`},children:i.description})]},a))})]})]})}function Md({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr";return h.jsxs("section",{"data-section":"timeline",dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 16px"},children:e.title}),h.jsx("div",{style:{display:"grid",gap:"10px"},children:e.milestones.map((o,i)=>h.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"10px 14px",background:r.tableStripe,borderRadius:we.radii.soft},children:[h.jsx("div",{style:{background:r.accent,color:"#ffffff",fontWeight:700,fontSize:we.text.small,padding:"4px 12px",borderRadius:we.radii.pill,whiteSpace:"nowrap",flexShrink:0},children:o.when}),h.jsx("div",{style:{fontSize:we.text.body,lineHeight:1.7},children:o.text})]},i))})]})}function Ud({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr",o=Fd(t),i=s=>t==="he"?s==="monthly"?"××××ש":s==="once"?"××-פע××":"תקצ×× ××××":t==="en"?s==="monthly"?"/ month":s==="once"?"one-time":"media budget":s==="monthly"?"/ mese":s==="once"?"una tantum":"budget media",a=s=>{try{return s.toLocaleString(t==="he"?"he-IL":t==="en"?"en-US":"fr-FR")}catch{return String(s)}};return h.jsxs("section",{"data-section":"investment",dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 16px"},children:e.title}),e.intro&&h.jsx("p",{style:{fontSize:we.text.body,lineHeight:1.85,margin:"0 0 16px"},children:e.intro}),h.jsx("div",{style:{display:"grid",gap:"10px"},children:e.items.map((s,c)=>{const d=!!s.highlight;return h.jsxs("div",{"data-dark-bg":d?"true":void 0,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d?"16px 20px":"12px 16px",background:d?r.pricingHighlight:"#ffffff",border:d?"none":`1px solid ${r.cardBorder}`,borderRadius:we.radii.soft,color:d?"#ffffff":r.bodyText},children:[h.jsxs("div",{children:[h.jsx("div",{style:{fontWeight:700,fontSize:we.text.body},children:s.label}),s.note&&h.jsx("div",{style:{fontSize:we.text.small,color:d?"rgba(255,255,255,0.85)":r.mutedText,marginTop:"2px"},children:s.note})]}),h.jsxs("div",{style:{fontWeight:800,fontSize:d?"18px":we.text.body,whiteSpace:"nowrap"},children:[o,a(s.amount),h.jsx("span",{style:{fontSize:we.text.small,fontWeight:500,opacity:.75,marginInlineStart:"6px"},children:i(s.unit)})]})]},c)})}),e.footnote&&h.jsx("p",{style:{fontSize:we.text.small,color:r.mutedText,marginTop:"12px"},children:e.footnote})]})}function zd({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr",o=e.kind==="portfolio";return h.jsxs("section",{"data-section":e.kind,dir:n,style:{marginBottom:we.spacing.sectionGap,color:r.bodyText},children:[h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 12px"},children:e.title}),e.intro&&h.jsx("p",{style:{fontSize:we.text.body,lineHeight:1.85,margin:"0 0 16px"},children:e.intro}),h.jsx("div",{style:{display:"grid",gap:"8px"},children:o?e.links.map((i,a)=>h.jsxs("a",{href:i.url,target:"_blank",rel:"noopener noreferrer",style:{display:"block",padding:"10px 16px",background:r.tableStripe,borderRadius:we.radii.soft,color:r.accent,textDecoration:"none",fontWeight:700,fontSize:we.text.body},children:[i.label,h.jsx("span",{style:{color:r.mutedText,fontWeight:400,marginInlineStart:"8px",fontSize:we.text.small},children:i.url})]},a)):e.references.map((i,a)=>h.jsxs("div",{style:{padding:"10px 16px",background:r.tableStripe,borderRadius:we.radii.soft,display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px"},children:[h.jsxs("div",{children:[h.jsx("div",{style:{fontWeight:700,color:r.headerBg},children:i.name}),i.role&&h.jsx("div",{style:{fontSize:we.text.small,color:r.mutedText,marginTop:"2px"},children:i.role})]}),i.phone&&h.jsx("a",{href:`tel:${i.phone.replace(/[^+\d]/g,"")}`,style:{color:r.accent,fontWeight:700,textDecoration:"none",fontSize:we.text.body},children:i.phone})]},a))})]})}function $d({data:e,lang:t}){const r=we.colors,n=t==="he"?"rtl":"ltr";return h.jsxs("section",{"data-section":"signature",dir:n,style:{marginTop:we.spacing.sectionGap,color:r.bodyText},children:[e.title&&h.jsx("h2",{style:{fontSize:we.text.h2,fontWeight:800,color:r.headerBg,borderBottom:`3px solid ${r.accent}`,paddingBottom:"8px",display:"inline-block",margin:"0 0 16px"},children:e.title}),e.validity&&h.jsx("p",{style:{fontSize:we.text.body,lineHeight:1.85,margin:"0 0 24px",color:r.bodyText},children:e.validity}),h.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"32px",paddingTop:"12px",borderTop:`1px solid ${r.cardBorder}`},children:[h.jsxs("div",{children:[h.jsx("div",{style:{borderBottom:`1px solid ${r.bodyText}`,minHeight:"36px",marginBottom:"8px"}}),h.jsxs("div",{style:{fontSize:we.text.body,fontWeight:700},children:[t==="he"?"×××¢× ":"On behalf of ",e.agencyName]}),e.agencySigner&&h.jsx("div",{style:{fontSize:we.text.small,color:r.mutedText,marginTop:"2px"},children:e.agencySigner})]}),h.jsxs("div",{children:[h.jsx("div",{style:{borderBottom:`1px solid ${r.bodyText}`,minHeight:"36px",marginBottom:"8px"}}),h.jsxs("div",{style:{fontSize:we.text.body,fontWeight:700},children:[t==="he"?"×××¢× ":"On behalf of ",e.clientName]})]})]}),h.jsxs("div",{style:{textAlign:"center",fontSize:we.text.small,color:r.mutedText,marginTop:"20px",padding:"12px",background:r.tableStripe,borderRadius:we.radii.soft},children:["© Viral ",new Date().getFullYear()," · ",t==="he"?"ס××× ×ת ×ש××××§ ×××××××":"Digital Marketing Agency"]})]})}function Hd(e,t,r){switch(e.kind){case"hero":return h.jsx(Pd,{data:e,lang:t},r);case"intro":case"vision":return h.jsx(Od,{data:e,lang:t},r);case"project_understanding":return h.jsx(Ld,{data:e,lang:t},r);case"strategy_phases":return h.jsx(Bd,{data:e,lang:t},r);case"services_table":return h.jsx(Dd,{data:e,lang:t},r);case"timeline":return h.jsx(Md,{data:e,lang:t},r);case"investment":return h.jsx(Ud,{data:e,lang:t},r);
39case"recommendations":case"portfolio":return h.jsx(zd,{data:e,lang:t},r);case"signature":return h.jsx($d,{data:e,lang:t},r)}}function Wd({schema:e}){return h.jsx("div",{"data-quote-rendered":"true",dir:Id(e.lang),style:{fontFamily:jd(e.lang),color:we.colors.bodyText,background:"#ffffff",padding:"24px",lineHeight:1.8},children:e.sections.map((t,r)=>Hd(t,e.lang,r))})}function Vd(e){return Rd(h.jsx(Wd,{schema:e}))}function Gd(e){if(!e||typeof e!="object")return!1;const t=e;return t.version===1&&Array.isArray(t.sections)&&typeof t.lang=="string"}function Ur(e){if(!e)return"";let t=e.trim();return(t.startsWith('"')&&t.endsWith('"')||t.startsWith("'")&&t.endsWith("'"))&&(t=t.slice(1,-1)),t.replace(/\\r\\n/g,` 40`).replace(/\\n/g,` 41`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\\//g,"/").replace(/\\"/g,'"')}function qd({prefillSalesContext:e,prefillWebsiteUrl:t,prefillLogoUrl:r,onQuoteCreated:n}){const{user:o}=ln(),[i,a]=ce.useState(""),[s,c]=ce.useState(""),[d,f]=ce.useState(""),[m,E]=ce.useState(t||""),[g,y]=ce.useState(r||""),[x,v]=ce.useState(!1),[k,S]=ce.useState(e||""),[T,C]=ce.useState(""),[A,_]=ce.useState(""),[O,M]=ce.useState(""),[I,H]=ce.useState("he"),[te,F]=ce.useState("marketing"),[W,N]=ce.useState(!1),G=ce.useRef(null),[J,X]=ce.useState(!1),[ae,Y]=ce.useState(""),[re,K]=ce.useState([]),[L,Z]=ce.useState(null),[Q,ne]=ce.useState(!1),pe=ce.useRef({sc:"",wu:"",lu:""});e&&e!==pe.current.sc&&(pe.current.sc=e,S(e)),t&&t!==pe.current.wu&&(pe.current.wu=t,E(t)),r&&r!==pe.current.lu&&(pe.current.lu=r,y(r));const R=async P=>{if(Y(P),!P.trim()||P.length<2){K([]);return}ne(!0);const{data:p}=await Se.from("clients").select("id, name, logo_url, website_url, ai_instructions, monthly_budget").ilike("name",`%${P}%`).eq("is_active",!0).limit(10);K(p||[]),ne(!1)},w=async P=>{Z(P.id),a(P.name),Y(P.name),K([]),P.logo_url&&y(P.logo_url),P.website_url&&E(P.website_url);const{data:p}=await Se.from("client_knowledge").select("title, content").eq("client_id",P.id).eq("is_active",!0).limit(5),V=(p||[]).map(j=>`${j.title}: ${j.content}`).join(` 42`);if(P.ai_instructions||V){const j=[P.ai_instructions?`××××¢ ×¢× ×עסק: ${P.ai_instructions}`:"",P.monthly_budget?`תקצ×× ×××ש×: ${P.monthly_budget}`:"",V?`×××¢ × ×סף: 43${V}`:""].filter(Boolean).join(` 44 45`);S(l=>l?`${l} 46 47--- 48××××¢ ×××ער×ת: 49${j}`:`××××¢ ×××ער×ת: 50${j}`)}je.success(`× ××¢× ××××¢ ×¢× ${P.name}`)},z=async()=>{var P,p,V,j,l,u,b;if(m.trim()){v(!0);try{const{data:D}=await Se.functions.invoke("firecrawl-scrape",{body:{url:m,options:{formats:["branding"]}}}),q=((V=(p=(P=D==null?void 0:D.data)==null?void 0:P.branding)==null?void 0:p.images)==null?void 0:V.logo)||((l=(j=D==null?void 0:D.data)==null?void 0:j.branding)==null?void 0:l.logo)||((b=(u=D==null?void 0:D.branding)==null?void 0:u.images)==null?void 0:b.logo);q?(y(q),Ve({title:"××××× × ×צ×!"})):Ve({title:"×× × ××¦× ××××",description:"××¢×× ×××× ××× ×ת",variant:"destructive"})}catch{Ve({title:"ש×××× ×ש××פת ××××",variant:"destructive"})}v(!1)}},U=async P=>{var u;const p=(u=P.target.files)==null?void 0:u[0];if(!p)return;const V=`quote-logos/${Date.now()}-${p.name}`,{error:j}=await Se.storage.from("client-logos").upload(V,p);if(j){Ve({title:"ש×××× ×××¢×××",variant:"destructive"});return}const{data:l}=Se.storage.from("client-logos").getPublicUrl(V);y(l.publicUrl),Ve({title:"××××× ×××¢××"})},ie=()=>{if(!i.trim()||!s.trim()){Ve({title:"× × ×××× ×©× ×¢×¡×§ ××©× ××ש קשר",variant:"destructive"});return}N(!0);const P={businessName:i,contactName:s,contactEmail:d,salesContext:k,pricing:{retainerCost:T,buildCost:A,mediaBudget:O},quoteLang:I,quoteType:te,clientLogoUrl:g,websiteUrl:m,userId:o.id,selectedClientId:L},p=je.loading("ð ××צר ×צעת ×××ר... × ××ª× ×× ××× ××פ×× ××ר××",{duration:1/0});(async()=>{try{const{data:V,error:j}=await Se.functions.invoke("quote-ai-chat",{body:{action:"generate",businessName:P.businessName,contactName:P.contactName,contactEmail:P.contactEmail,salesContext:P.salesContext,pricing:P.pricing,quoteLang:P.quoteLang,quoteType:P.quoteType}});if(j)throw j;let l=Ur(V.html||""),u=Ur(V.email||"");if(l.trim().startsWith("{")&&l.includes('"html"'))try{const D=JSON.parse(l);l=Ur(D.html||l),u=Ur(D.email||u)}catch{}const{error:b}=await Se.from("quotes").insert({business_name:P.businessName,contact_name:P.contactName,contact_email:P.contactEmail||null,content_html:l,email_content:u,client_logo_url:P.clientLogoUrl||null,website_url:P.websiteUrl||null,created_by:P.userId});if(P.selectedClientId&&P.clientLogoUrl&&await Se.from("clients").update({logo_url:P.clientLogoUrl}).eq("id",P.selectedClientId),b)throw b;je.success(`â ×צעת ×××ר ×¢××ר ${P.businessName} × ××¦×¨× ××צ×××!`,{id:p,duration:5e3}),a(""),c(""),f(""),E(""),y(""),S(""),C(""),_(""),M(""),n()}catch(V){je.error(`ש×××× ××צ×רת ××צע×: ${V.message}`,{id:p,duration:8e3})}N(!1)})()},B=()=>
50{if(!i.trim()||!s.trim()){Ve({title:"× × ×××× ×©× ×¢×¡×§ ××©× ××ש קשר",variant:"destructive"});return}N(!0);const P={businessName:i,contactName:s,contactEmail:d,salesContext:k,pricing:{retainerCost:T,buildCost:A,mediaBudget:O},quoteLang:I,quoteType:te,clientLogoUrl:g,websiteUrl:m,userId:o.id,selectedClientId:L},p=je.loading("ð ××צר ××¦×¢× ×¢×´× Schema⦠(××× ×××× ×××¦× ×ר×××)",{duration:1/0});(async()=>{try{const{data:V,error:j}=await Se.functions.invoke("quote-ai-chat",{body:{action:"generate_schema",businessName:P.businessName,contactName:P.contactName,contactEmail:P.contactEmail,salesContext:P.salesContext,pricing:P.pricing,quoteLang:P.quoteLang,quoteType:P.quoteType}});if(j)throw j;const l=V==null?void 0:V.schema,u=Ur((V==null?void 0:V.email)||"");if(!Gd(l))throw new Error("schema returned from the AI was malformed");if(P.clientLogoUrl){const q=l.sections.find($=>$.kind==="hero");q&&q.kind==="hero"&&!q.clientLogoUrl&&(q.clientLogoUrl=P.clientLogoUrl)}const b=Vd(l),{error:D}=await Se.from("quotes").insert({business_name:P.businessName,contact_name:P.contactName,contact_email:P.contactEmail||null,content_html:b,content_schema:l,email_content:u,client_logo_url:P.clientLogoUrl||null,website_url:P.websiteUrl||null,created_by:P.userId});if(D)throw D;P.selectedClientId&&P.clientLogoUrl&&await Se.from("clients").update({logo_url:P.clientLogoUrl}).eq("id",P.selectedClientId),je.success(`â
×צעת ×××ר ×¢××ר ${P.businessName} × ××¦×¨× (Schema) ××צ×××!`,{id:p,duration:5e3}),a(""),c(""),f(""),E(""),y(""),S(""),C(""),_(""),M(""),n()}catch(V){je.error(`ש×××× ××צ×רת ××¦×¢× (Schema): ${V.message}`,{id:p,duration:8e3})}N(!1)})()};return h.jsx("div",{className:"space-y-4",dir:"rtl",children:h.jsxs(yt,{children:[h.jsx(ur,{children:h.jsx(cr,{className:"text-sm",children:"×צ×רת ×צעת ×××ר ××ש×"})}),h.jsxs(Bt,{className:"space-y-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:"ס×× ××צע×:"}),h.jsxs(Vi,{value:te,onValueChange:F,children:[h.jsx(Gi,{className:"w-[180px] h-8 text-xs",children:h.jsx(qi,{})}),h.jsxs(Ki,{children:[h.jsx(gt,{value:"marketing",children:"ש××××§ ×××××××"}),h.jsx(gt,{value:"website",children:"×× ××ת ×תר"}),h.jsx(gt,{value:"seo",children:"×§×××× ××ר×× × (SEO)"}),h.jsx(gt,{value:"system",children:"×ער×ת ××××××ת"}),h.jsx(gt,{value:"custom",children:"××ת×× ××ש×ת"}),h.jsx(gt,{value:"general",children:"×××× / ×ש×××"})]})]})]}),h.jsxs("div",{className:"flex items-center justify-between border border-border rounded-lg p-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Lu,{className:"w-4 h-4 text-muted-foreground"}),h.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"××§×× ×§××× ××ער×ת?"})]}),h.jsx(Bu,{checked:J,onCheckedChange:P=>{X(P),P||(Z(null),Y(""),K([]))}})]}),J?h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"relative",children:[h.jsx(Jr,{className:"absolute right-3 top-2.5 w-4 h-4 text-muted-foreground"}),h.jsx(Ke,{placeholder:"×פש ××§×× ××¤× ×©×...",value:ae,onChange:P=>R(P.target.value),className:"pr-9"}),Q&&h.jsx(Me,{className:"absolute left-3 top-2.5 w-4 h-4 animate-spin text-muted-foreground"})]}),re.length>0&&!L&&h.jsx("div",{className:"border border-border rounded-lg overflow-hidden bg-popover shadow-md max-h-48 overflow-y-auto",children:re.map(P=>{var p;return h.jsxs("button",{onClick:()=>w(P),className:"w-full flex items-center gap-3 px-3 py-2 text-sm hover:bg-accent text-right transition-colors",children:[P.logo_url?h.jsx("img",{src:P.logo_url,alt:"",className:"w-7 h-7 rounded object-contain bg-white border border-border"}):h.jsx("div",{className:"w-7 h-7 rounded bg-muted flex items-center justify-center text-xs font-bold text-muted-foreground",children:(p=P.name)==null?void 0:p.charAt(0)}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("p",{className:"font-medium truncate",children:P.name}),P.website_url&&h.jsx("p",{className:"text-[10px] text-muted-foreground truncate",children:P.website_url})]}),P.monthly_budget&&h.jsxs(fr,{variant:"outline",className:"text-[10px]",children:["âª",P.monthly_budget]})]},P.id)})}),L&&h.jsxs("div",{className:"flex items-center gap-2 text-xs text-green-500",children:[h.jsxs("span",{children:["â × ××ר: ",i]}),h.jsxs(Ce,{variant:"ghost",size:"sm",className:"h-6 px-2 text-xs",onClick:()=>{Z(null),Y(""),a(""),y(""),E("")},children:[h.jsx(Du,{className:"w-3 h-3 me-1"})," ×©× ×"]})]}),h.jsx(Ke,{placeholder:"×©× ××ש ×קשר",value:s,onChange:P=>c(P.target.value)}),h.jsx(Ke,{placeholder:"×××××× (××פצ××× ××)",value:d,onChange:P=>f(P.target.value),type:"email"})]}):h.jsxs(h.Fragment,{children:[h.jsx(Ke,{placeholder:"×©× ×עסק",value:i,onChange:P=>a(P.target.value)}),h.jsx(Ke,{placeholder:"×©× ××ש ×קשר",value:s,onChange:P=>c(P.target.value)}),h.jsx(Ke,{placeholder:"×××××× (××פצ××× ××)",value:d,onChange:P=>f(P.target.value),type:"email"})]}),h.jsxs("div",{className:"space-y-1.5 border border-border rounded-lg p-3",children:[h.jsxs("label",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1",children:[h.jsx(ds,{className:"w-3 h-3"})," ס×××× ×©××ת ××××ר×"]}),h.jsx(Er,{placeholder:"ת×ר ×ת ש××ת ××××ר×: ×× ×××§×× ×¦×¨××, ×× ×××××× ×©××, ×× ×תקצ××, ×× ××צע ××...",value:k,onChange:P=>S(P.target.value),rows:5,className:"text-sm"}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"×-AI ×שת×ש ×××××¢ ××× ××× ××ת××× ×ת ×××¦×¢× ×××§××"})]}),h.jsxs("div",{className:"space-y-2 border border-border rounded-lg p-3",children:[h.jsx("label",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1",children:"ð° ×¢××××ת ××צע×"}),h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-2",children:[h.jsxs("div",{className:"space-y-1",children:[h.jsx("label",{className:"text-[10px] text-muted-foreground",children:"ר××××× ×¨ ××××©× (âª)"}),h.jsx(Ke,{placeholder:"××××××: 5,000",value:T,onChange:P=>C(P.target.value)})]}),h.jsxs("div",{className:"space-y-1",children:[h.jsx("label",{className:"text-[10px] text-muted-foreground",children:"×¢××ת ×× ××× / ××§×× (âª)"}),h.jsx(Ke,{placeholder:"××××××: 15,000",value:A,onChange:P=>_(P.target.value)})]}),h.jsxs("div",{className:"space-y-1",children:[h.jsx("label",{className:"text-[10px] text-muted-foreground",children:"תקצ×× ×××× ××××©× (âª)"}),h.jsx(Ke,{placeholder:"××××××: 10,000",value:O,onChange:P=>M(P.target.value)})]})]}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"×ש×ר ר××§ ש××ת ש×× ×¨×××× ×××× ×××¦×¢× ×××"})]}),h.jsxs("div",{className:"space-y-2 border border-border rounded-lg p-3",children:[h.jsxs("label",{className:"text-xs font-medium text-muted-foreground flex items-center gap-1",children:[h.jsx(fs,{className:"w-3 h-3"})," ×××× ×××§××"]}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx(Ke,{placeholder:"×ת××ת ×תר ×××§××",value:m,onChange:P=>E(P.target.value),className:"flex-1"}),h.jsxs(Ce,{variant:"outline",size:"sm",onClick:z,disabled:x||!m.trim(),children:[x?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(po,{className:"w-3.5 h-3.5"}),h.jsx("span",{className:"ms-1 text-xs",children:"ש×××£ ×××תר"})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs(Ce,{variant:"outline",size:"sm",onClick:()=>{var P;return(P=G.current)==null?void 0:P.click()},children:[h.jsx(ho,{className:"w-3.5 h-3.5 me-1"})," ××¢×× ××××"]}),h.jsx("input",{ref:G,type:"file",className:"hidden",accept:"image/*",onChange:U}),g&&h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("img",{src:g,alt:"××××",className:"w-8 h-8 rounded object-contain border border-border bg-white"}),h.jsx("span",{className:"text-[10px] text-green-500",children:"â ×××× × ××ר"})]})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("label",{className:"text-xs text-muted-foreground whitespace-nowrap",children:"שפת ××צע×:"}
50),h.jsxs(Vi,{value:I,onValueChange:H,children:[h.jsx(Gi,{className:"w-[140px] h-8 text-xs",children:h.jsx(qi,{})}),h.jsxs(Ki,{children:[h.jsx(gt,{value:"he",children:"×¢×ר×ת"}),h.jsx(gt,{value:"en",children:"English"}),h.jsx(gt,{value:"it",children:"Italiano"}),h.jsx(gt,{value:"fr",children:"Français"})]})]})]}),h.jsx(Ce,{onClick:ie,disabled:W||!i.trim()||!s.trim(),className:"w-full",children:W?h.jsxs(h.Fragment,{children:[h.jsx(Me,{className:"w-4 h-4 animate-spin me-2"})," ××צר ×צע×..."]}):h.jsxs(h.Fragment,{children:[h.jsx(en,{className:"w-4 h-4 me-2"})," צ×ר ×צעת ×××ר"]})}),h.jsx(Ce,{onClick:B,disabled:W||!i.trim()||!s.trim(),variant:"outline",className:"w-full border-[#e8863a] text-[#e8863a] hover:bg-[#e8863a]/10",children:W?h.jsxs(h.Fragment,{children:[h.jsx(Me,{className:"w-4 h-4 animate-spin me-2"})," ××צרâ¦"]}):h.jsxs(h.Fragment,{children:[h.jsx(Mu,{className:"w-4 h-4 me-2"})," צ×ר ×¢× Schema (××ש â ×¢×צ×× ×××××§)"]})}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"×ש×ר×× ×××ש: AI ×××ª× ×¨×§ ת××× ×××× × (JSON), ×××¢×צ×× ××ר×× ×¢×´× ×¨××××× ×§×××¢××. ת×צ××: ×× ××¦×¢× × ×¨××ת ××× ×××× × ××¢×צ×× â רק ×ת××× ××©×ª× ×. ××× â ש××ר ×× ×ת ××ר××× ×××©× × ×ת××§×× ××."})]})]})})}var Kd=Object.create,Rl=Object.defineProperty,Xd=Object.getOwnPropertyDescriptor,Zd=Object.getOwnPropertyNames,Yd=Object.getPrototypeOf,Qd=Object.prototype.hasOwnProperty,jl=(e,t)=>()=>(e&&(t=e(e=0)),t),de=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Jd=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Zd(t),i=0,a=o.length,s;i<a;i++)s=o[i],!Qd.call(e,s)&&s!==r&&Rl(e,s,{get:(c=>t[c]).bind(null,s),enumerable:!(n=Xd(t,s))||n.enumerable});return e},Is=(e,t,r)=>(r=e!=null?Kd(Yd(e)):{},Jd(Rl(r,"default",{value:e,enumerable:!0}),e)),Sn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});function an(e){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},an(e)}function ef(e,t){if(an(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tf(e){var t=ef(e,"string");return an(t)=="symbol"?t:t+""}function oe(e,t,r){return(t=tf(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ni=class{constructor(e){oe(this,"rootKey",void 0),this.rootKey=e}},rf=Object.seal({}),fe=class extends ni{constructor(e){super(e),oe(this,"root",void 0),this.root=new Array}prepForXml(e){var t;e.stack.push(this);const r=this.root.map(n=>n instanceof ni?n.prepForXml(e):n).filter(n=>n!==void 0);return e.stack.pop(),{[this.rootKey]:r.length?r.length===1&&(!((t=r[0])===null||t===void 0)&&t._attr)?r[0]:r:rf}}addChildElement(e){return this.root.push(e),this}},qt=class extends fe{constructor(e,t){super(e),oe(this,"includeIfEmpty",void 0),this.includeIfEmpty=t}prepForXml(e){const t=super.prepForXml(e);if(this.includeIfEmpty||t&&(typeof t[this.rootKey]!="object"||Object.keys(t[this.rootKey]).length))return t}};function qa(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qa(Object(r),!0).forEach(function(n){oe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qa(Object(r)).forEac
50h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ae=class extends ni{constructor(e){super("_attr"),oe(this,"root",void 0),oe(this,"xmlKeys",void 0),this.root=e}prepForXml(e){const t={};return Object.entries(this.root).forEach(([r,n])=>{if(n!==void 0){const o=this.xmlKeys&&this.xmlKeys[r]||r;t[o]=n}}),{_attr:t}}},nf=class extends ni{constructor(e){super("_attr"),oe(this,"root",void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:t})=>t!==void 0).reduce((t,{key:r,value:n})=>be(be({},t),{},{[r]:n}),{})}}},tt=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val",color:"w:color",fill:"w:fill",space:"w:space",sz:"w:sz",type:"w:type",rsidR:"w:rsidR",rsidRPr:"w:rsidRPr",rsidSect:"w:rsidSect",w:"w:w",h:"w:h",top:"w:top",right:"w:right",bottom:"w:bottom",left:"w:left",header:"w:header",footer:"w:footer",gutter:"w:gutter",linePitch:"w:linePitch",pos:"w:pos"})}},Fs=de((e,t)=>{var r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(O,M,I){return Function.prototype.apply.call(O,M,I)},o;r&&typeof r.ownKeys=="function"?o=r.ownKeys:Object.getOwnPropertySymbols?o=function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:o=function(O){return Object.getOwnPropertyNames(O)};function i(_){console&&console.warn&&console.warn(_)}var a=Number.isNaN||function(O){return O!==O};function s(){s.init.call(this)}t.exports=s,t.exports.once=T,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function d(_){if(typeof _!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof _)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(_){if(typeof _!="number"||_<0||a(_))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+_+".");c=_}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(O){if(typeof O!="number"||O<0||a(O))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+O+".");return this._maxListeners=O,this};function f(_){return _._maxListeners===void 0?s.defaultMaxListeners:_._maxListeners}s.prototype.getMaxListeners=function(){return f(this)},s.prototype.emit=function(O){for(var M=[],I=1;I<arguments.length;I++)M.push(arguments[I]);var H=O==="error",te=this._events;if(te!==void 0)H=H&&te.error===void 0;else if(!H)return!1;if(H){var F;if(M.length>0&&(F=M[0]),F instanceof Error)throw F;var W=new Error("Unhandled error."+(F?" ("+F.message+")":""));throw W.context=F,W}var N=te[O];if(N===void 0)return!1;if(typeof N=="function")n(N,this,M);else for(var G=N.length,J=v(N,G),I=0;I<G;++I)n(J[I],this,M);return!0};function m(_,O,M,I){var H,te,F;if(d(M),te=_._events,te===void 0?(te=_._events=Object.create(null),_._eventsCount=0):(te.newListener!==void 0&&(_.emit("newListener",O,M.listener?M.listener:M),te=_._events),F=te[O]),F===void 0)F=te[O]=M,++_._eventsCount;else if(typeof F=="function"?F=te[O]=I?[M,F]:[F,M]:I?F.unshift(M):F.push(M),H=f(_),H>0&&F.length>H&&!F.warned){F.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+F.length+" "+String(O)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=_,W.type=O,W.count=F.length,i(W)}return _}s.prototype.addListener=function(O,M){return m(this,O,M,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(O,M){return m(this,O,M,!0)};function E(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function g(_,O,M){var I={fired:!1,wrapFn:void 0,target:_,type:O,listener:M},H=E.bind(I);return H.listener=M,I.wrapFn=H,H}s.prototype.once=function(O,M){return d(M),this.on(O,g(this,O,M)),this},s.prototype.prependOnceListener=function(O,M){return d(M),this.prependListener(O,g(this,O,M)),this},s.prototype.removeListener=function(O,M){var I,H,te,F,W;if(d(M),H=this._events,H===void 0)return this;if(I=H[O],I===void 0)return this;if(I===M||I.listener===M)--this._eventsCount===0?this._events=Object.create(null):(delete H[O],H.removeListener&&this.emit
50("removeListener",O,I.listener||M));else if(typeof I!="function"){for(te=-1,F=I.length-1;F>=0;F--)if(I[F]===M||I[F].listener===M){W=I[F].listener,te=F;break}if(te<0)return this;te===0?I.shift():k(I,te),I.length===1&&(H[O]=I[0]),H.removeListener!==void 0&&this.emit("removeListener",O,W||M)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(O){var M,I=this._events,H;if(I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[O]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[O]),this;if(arguments.length===0){var te=Object.keys(I),F;for(H=0;H<te.length;++H)F=te[H],F!=="removeListener"&&this.removeAllListeners(F);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(M=I[O],typeof M=="function")this.removeListener(O,M);else if(M!==void 0)for(H=M.length-1;H>=0;H--)this.removeListener(O,M[H]);return this};function y(_,O,M){var I=_._events;if(I===void 0)return[];var H=I[O];return H===void 0?[]:typeof H=="function"?M?[H.listener||H]:[H]:M?S(H):v(H,H.length)}s.prototype.listeners=function(O){return y(this,O,!0)},s.prototype.rawListeners=function(O){return y(this,O,!1)},s.listenerCount=function(_,O){return typeof _.listenerCount=="function"?_.listenerCount(O):x.call(_,O)},s.prototype.listenerCount=x;function x(_){var O=this._events;if(O!==void 0){var M=O[_];if(typeof M=="function")return 1;if(M!==void 0)return M.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function v(_,O){for(var M=new Array(O),I=0;I<O;++I)M[I]=_[I];return M}function k(_,O){for(;O+1<_.length;O++)_[O]=_[O+1];_.pop()}function S(_){for(var O=new Array(_.length),M=0;M<O.length;++M)O[M]=_[M].listener||_[M];return O}function T(_,O){return new Promise(function(M,I){function H(F){_.removeListener(O,te),I(F)}function te(){typeof _.removeListener=="function"&&_.removeListener("error",H),M([].slice.call(arguments))}A(_,O,te,{once:!0}),O!=="error"&&C(_,H,{once:!0})})}function C(_,O,M){typeof _.on=="function"&&A(_,"error",O,M)}function A(_,O,M,I){if(typeof _.on=="function")I.once?_.once(O,M):_.on(O,M);else if(typeof _.addEventListener=="function")_.addEventListener(O,function H(te){I.once&&_.removeEventListener(O,H),M(te)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof _)}}),Kt=de((e,t)=>{typeof Object.create=="function"?t.exports=function(n,o){o&&(n.super_=o,n.prototype=Object.create(o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(n,o){if(o){n.super_=o;var i=function(){};i.prototype=o.prototype,n.prototype=new i,n.prototype.constructor=n}}}),rt,Or=jl(()=>{rt=globalThis||self});function sf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ss(){throw new Error("setTimeout has not been defined")}function as(){throw new Error("clearTimeout has not been defined")}function Il(e){if(Nt===setTimeout)return setTimeout(e,0);if((Nt===ss||!Nt)&&setTimeout)return Nt=setTimeout,setTimeout(e,0);try{return Nt(e,0)}catch{try{return Nt.call(null,e,0)}catch{return Nt.call(this,e,0)}}}function af(e){if(Rt===clearTimeout)return clearTimeout(e);if((Rt===as||!Rt)&&clearTimeout)return Rt=clearTimeout,clearTimeout(e);try{return Rt(e)}catch{try{return Rt.call(null,e)}catch{return Rt.call(this,e)}}}function of(){!hr||!lr||(hr=!1,lr.length?jt=lr.concat(jt):Yr=-1,jt.length&&Fl())}function Fl(){if(!hr){var e=Il(of);hr=!0;for(var t=jt.length;t;){for(lr=jt,jt=[];++Yr<t;)lr&&lr[Yr].run();Yr=-1,t=jt.length}lr=null,hr=!1,af(e)}}function Ka(e,t){this.fun=e,this.array=t}function Pt(){}var Ri,ze,Nt,Rt,jt,hr,lr,Yr,Xa,Te,Xt=jl(()=>{Ri={exports:{}},ze=Ri.exports={},function(){try{typeof setTimeout=="function"?Nt=setTimeout:Nt=ss}catch{Nt=ss}try{typeof clearTimeout=="function"?Rt=clearTimeout:Rt=as}catch{Rt=as}}(),jt=[],hr=!1,Yr=-1,ze.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];jt.push(new Ka(e,t)),jt.length===1&&!hr&&Il(Fl)},Ka.prototype.run=function(){this.fun.apply(null,this.array)},ze.title="browser",ze.browser=!0,ze.env={},ze.argv=[],ze.version="",ze.versions={},ze.on=Pt,ze.addListener=Pt,ze.once=Pt,ze.off=Pt,ze.removeListener=Pt,ze.removeAllListeners=Pt,ze.emit=Pt,ze.prepe
vendor: 5,217 bytes, lines 50-55
50ndListener=Pt,ze.prependOnceListener=Pt,ze.listeners=function(e){return[]},ze.binding=function(e){throw new Error("process.binding is not supported")},ze.cwd=function(){return"/"},ze.chdir=function(e){throw new Error("process.chdir is not supported")},ze.umask=function(){return 0},Xa=Ri.exports,Te=sf(Xa)}),Pl=de((e,t)=>{t.exports=Fs().EventEmitter}),lf=de(e=>{e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var t=[],r=[],n=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,a=o.length;i<a;++i)t[i]=o[i],r[o.charCodeAt(i)]=i;r[45]=62,r[95]=63;function s(y){var x=y.length;if(x%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=y.indexOf("=");v===-1&&(v=x);var k=v===x?0:4-v%4;return[v,k]}function c(y){var x=s(y),v=x[0],k=x[1];return(v+k)*3/4-k}function d(y,x,v){return(x+v)*3/4-v}function f(y){var x,v=s(y),k=v[0],S=v[1],T=new n(d(y,k,S)),C=0,A=S>0?k-4:k,_;for(_=0;_<A;_+=4)x=r[y.charCodeAt(_)]<<18|r[y.charCodeAt(_+1)]<<12|r[y.charCodeAt(_+2)]<<6|r[y.charCodeAt(_+3)],T[C++]=x>>16&255,T[C++]=x>>8&255,T[C++]=x&255;return S===2&&(x=r[y.charCodeAt(_)]<<2|r[y.charCodeAt(_+1)]>>4,T[C++]=x&255),S===1&&(x=r[y.charCodeAt(_)]<<10|r[y.charCodeAt(_+1)]<<4|r[y.charCodeAt(_+2)]>>2,T[C++]=x>>8&255,T[C++]=x&255),T}function m(y){return t[y>>18&63]+t[y>>12&63]+t[y>>6&63]+t[y&63]}function E(y,x,v){for(var k,S=[],T=x;T<v;T+=3)k=(y[T]<<16&16711680)+(y[T+1]<<8&65280)+(y[T+2]&255),S.push(m(k));return S.join("")}function g(y){for(var x,v=y.length,k=v%3,S=[],T=16383,C=0,A=v-k;C<A;C+=T)S.push(E(y,C,C+T>A?A:C+T));return k===1?(x=y[v-1],S.push(t[x>>2]+t[x<<4&63]+"==")):k===2&&(x=(y[v-2]<<8)+y[v-1],S.push(t[x>>10]+t[x>>4&63]+t[x<<2&63]+"=")),S.join("")}}),uf=de(e=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,r,n,o,i){var a,s,c=i*8-o-1,d=(1<<c)-1,f=d>>1,m=-7,E=n?i-1:0,g=n?-1:1,y=t[r+E];for(E+=g,a=y&(1<<-m)-1,y>>=-m,m+=c;m>0;a=a*256+t[r+E],E+=g,m-=8);for(s=a&(1<<-m)-1,a>>=-m,m+=o;m>0;s=s*256+t[r+E],E+=g,m-=8);if(a===0)a=1-f;else{if(a===d)return s?NaN:(y?-1:1)*(1/0);s=s+Math.pow(2,o),a=a-f}return(y?-1:1)*s*Math.pow(2,a-o)},e.write=function(t,r,n,o,i,a){var s,c,d,f=a*8-i-1,m=(1<<f)-1,E=m>>1,g=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=o?0:a-1,x=o?1:-1,v=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(c=isNaN(r)?1:0,s=m):(s=Math.floor(Math.log(r)/Math.LN2),r*(d=Math.pow(2,-s))<1&&(s--,d*=2),s+E>=1?r+=g/d:r+=g*Math.pow(2,1-E),r*d>=2&&(s++,d/=2),s+E>=m?(c=0,s=m):s+E>=1?(c=(r*d-1)*Math.pow(2,i),s=s+E):(c=r*Math.pow(2,E-1)*Math.pow(2,i),s=0));i>=8;t[n+y]=c&255,y+=x,c/=256,i-=8);for(s=s<<i|c,f+=i;f>0;t[n+y]=s&255,y+=x,s/=256,f-=8);t[n+y-x]|=v*128}});/*! 51* The buffer module from node.js, for the browser. 52* 53* @author Feross Aboukhadijeh <https://feross.org> 54* @license MIT 55*/var di=de(e=>{var t=lf(),r=uf(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=S,e.INSPECT_MAX_BYTES=50;var o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var j=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(j,l),j.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(j){if(j>o)throw new RangeError('The value "'+j+'" is invalid for option "size"');var l=new Uint8Array(j);return Object.setPrototypeOf(l,s.prototype),l}function s(j,l,u){if(typeof j=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(j)}return c(j,l,u)}s.poolSize=8192;function c(j,l,u){if(typeof j=="string")return E(j,l);if(ArrayBuffer.isView(j))return y(j);if(j==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j);if(P(j,ArrayBuffer)||j&&P(j.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(P(j,SharedArrayBuffer)||j&&P(j.buffer,SharedArrayBuffer)))return x(j,l,u);if(typeof j=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var b=j.valueOf&&j.valueOf();if(b!=null&&b!==j)return s.from(b,l,u);var D=v(j);if(D)return D;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof j[Symbol.toPrimitive]=="function")return s.from(j[Symbol.toPrimitive]("string"),l,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof j)}s.from=function(j,l,u){return c(j,l,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function d(j){if(typeof j!="number")throw new TypeError('"size" argument must be of type number');
vendor: 13,986 bytes, line 55
55if(j<0)throw new RangeError('The value "'+j+'" is invalid for option "size"')}function f(j,l,u){return d(j),j<=0?a(j):l!==void 0?typeof u=="string"?a(j).fill(l,u):a(j).fill(l):a(j)}s.alloc=function(j,l,u){return f(j,l,u)};function m(j){return d(j),a(j<0?0:k(j)|0)}s.allocUnsafe=function(j){return m(j)},s.allocUnsafeSlow=function(j){return m(j)};function E(j,l){if((typeof l!="string"||l==="")&&(l="utf8"),!s.isEncoding(l))throw new TypeError("Unknown encoding: "+l);var u=T(j,l)|0,b=a(u),D=b.write(j,l);return D!==u&&(b=b.slice(0,D)),b}function g(j){for(var l=j.length<0?0:k(j.length)|0,u=a(l),b=0;b<l;b+=1)u[b]=j[b]&255;return u}function y(j){if(P(j,Uint8Array)){var l=new Uint8Array(j);return x(l.buffer,l.byteOffset,l.byteLength)}return g(j)}function x(j,l,u){if(l<0||j.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(j.byteLength<l+(u||0))throw new RangeError('"length" is outside of buffer bounds');var b;return l===void 0&&u===void 0?b=new Uint8Array(j):u===void 0?b=new Uint8Array(j,l):b=new Uint8Array(j,l,u),Object.setPrototypeOf(b,s.prototype),b}function v(j){if(s.isBuffer(j)){var l=k(j.length)|0,u=a(l);return u.length===0||j.copy(u,0,0,l),u}if(j.length!==void 0)return typeof j.length!="number"||p(j.length)?a(0):g(j);if(j.type==="Buffer"&&Array.isArray(j.data))return g(j.data)}function k(j){if(j>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return j|0}function S(j){return+j!=j&&(j=0),s.alloc(+j)}s.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==s.prototype},s.compare=function(l,u){if(P(l,Uint8Array)&&(l=s.from(l,l.offset,l.byteLength)),P(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(l)||!s.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===u)return 0;for(var b=l.length,D=u.length,q=0,$=Math.min(b,D);q<$;++q)if(l[q]!==u[q]){b=l[q],D=u[q];break}return b<D?-1:D<b?1:0},s.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(l,u){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return s.alloc(0);var b;if(u===void 0)for(u=0,b=0;b<l.length;++b)u+=l[b].length;var D=s.allocUnsafe(u),q=0;for(b=0;b<l.length;++b){var $=l[b];if(P($,Uint8Array))q+$.length>D.length?s.from($).copy(D,q):Uint8Array.prototype.set.call(D,$,q);else if(s.isBuffer($))$.copy(D,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=$.length}return D};function T(j,l){if(s.isBuffer(j))return j.length;if(ArrayBuffer.isView(j)||P(j,ArrayBuffer))return j.byteLength;if(typeof j!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof j);var u=j.length,b=arguments.length>2&&arguments[2]===!0;if(!b&&u===0)return 0;for(var D=!1;;)switch(l){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return w(j).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return ie(j).length;default:if(D)return b?-1:w(j).length;l=(""+l).toLowerCase(),D=!0}}s.byteLength=T;function C(j,l,u){var b=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,l>>>=0,u<=l))return"";for(j||(j="utf8");;)switch(j){case"hex":return Y(this,l,u);case"utf8":case"utf-8":return N(this,l,u);case"ascii":return X(this,l,u);case"latin1":case"binary":return ae(this,l,u);case"base64":return W(this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,l,u);default:if(b)throw new TypeError("Unknown encoding: "+j);j=(j+"").toLowerCase(),b=!0}}s.prototype._isBuffer=!0;function A(j,l,u){var b=j[l];j[l]=j[u],j[u]=b}s.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<l;u+=2)A(this,u,u+1);return this},s.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<l;u+=4)A(this,u,u+3),A(this,u+1,u+2);return this},s.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<l;u+=8)A(this,u,u+7),A(this,u+1,u+6),A(this,u+2,u+5),A(this,u+3,u+4);return this},s.prototype.toString=function(){var l=this.length;return l===0?"":arguments.length===0?N(this,0,l):C.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(l){if(!s.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:s.compare(this,l)===0},s.prototype.inspect=function(){var l="",u=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(l+=" ... "),"<Buffer "+l+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(l,u,b,D,q){if(P(l,Uint8Array)&&(l=s.from(l,l.offset,l.byteLength)),!s.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(u===void 0&&(u=0),b===void 0&&(b=l?l.length:0),D===void 0&&(D=0),q===void 0&&(q=this.length),u<0||b>l.length||D<0||q>this.length)throw new RangeError("out of range index");if(D>=q&&u>=b)return 0;if(D>=q)return-1;if(u>=b)return 1;if(u>>>=0,b>>>=0,D>>>=0,q>>>=0,this===l)return 0;for(var $=q-D,se=b-u,ue=Math.min($,se),le=this.slice(D,q),me=l.slice(u,b),ye=0;ye<ue;++ye)if(le[ye]!==me[ye]){$=le[ye],se=me[ye];break}return $<se?-1:se<$?1:0};function _(j,l,u,b,D){if(j.length===0)return-1;if(typeof u=="string"?(b=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,p(u)&&(u=D?0:j.length-1),u<0&&(u=j.length+u),u>=j.length){if(D)return-1;u=j.length-1}else if(u<0)if(D)u=0;else return-1;if(typeof l=="string"&&(l=s.from(l,b)),s.isBuffer(l))return l.length===0?-1:O(j,l,u,b,D);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?D?Uint8Array.prototype.indexOf.call(j,l,u):Uint8Array.prototype.lastIndexOf.call(j,l,u):O(j,[l],u,b,D);throw new TypeError("val must be string, number or Buffer")}function O(j,l,u,b,D){var q=1,$=j.length,se=l.length;if(b!==void 0&&(b=String(b).toLowerCase(),b==="ucs2"||b==="ucs-2"||b==="utf16le"||b==="utf-16le")){if(j.length<2||l.length<2)return-1;q=2,$/=2,se/=2,u/=2}function ue(He,St){return q===1?He[St]:He.readUInt16BE(St*q)}var le;if(D){var me=-1;for(le=u;le<$;le++)if(ue(j,le)===ue(l,me===-1?0:le-me)){if(me===-1&&(me=le),le-me+1===se)return me*q}else me!==-1&&(le-=le-me),me=-1}else for(u+se>$&&(u=$-se),le=u;le>=0;le--){for(var ye=!0,_e=0;_e<se;_e++)if(ue(j,le+_e)!==ue(l,_e)){ye=!1;break}if(ye)return le}return-1}s.prototype.includes=function(l,u,b){return this.indexOf(l,u,b)!==-1},s.prototype.indexOf=function(l,u,b){return _(this,l,u,b,!0)},s.prototype.lastIndexOf=function(l,u,b){return _(this,l,u,b,!1)};function M(j,l,u,b){u=Number(u)||0;var D=j.length-u;b?(b=Number(b),b>D&&(b=D)):b=D;var q=l.length;b>q/2&&(b=q/2);for(var $=0;$<b;++$){var se=parseInt(l.substr($*2,2),16);if(p(se))return $;j[u+$]=se}return $}function I(j,l,u,b){return B(w(l,j.length-u),j,u,b)}function H(j,l,u,b){return B(z(l),j,u,b)}function te(j,l,u,b){return B(ie(l),j,u,b)}function F(j,l,u,b){return B(U(l,j.length-u),j,u,b)}s.prototype.write=function(l,u,b,D){if(u===void 0)D="utf8",b=this.length,u=0;else if(b===void 0&&typeof u=="string")D=u,b=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(b)?(b=b>>>0,D===void 0&&(D="utf8")):(D=b,b=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var q=this.length-u;if((b===void 0||b>q)&&(b=q),l.length>0&&(b<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");D||(D="utf8");for(var $=!1;;)switch(D){case"hex":return M(this,l,u,b);case"utf8":case"utf-8":return I(this,l,u,b);case"ascii":case"latin1":case"binary":return H(this,l,u,b);case"base64":return te(this,l,u,b);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,l,u,b);default:if($)throw new TypeError("Unknown encoding: "+D);D=(""+D).toLowerCase(),$=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function W(j,l,u){return l===0&&u===j.length?t.fromByteArray(j):t.fromByteArray(j.slice(l,u))}function N(j,l,u){u=Math.min(j.length,u);for(var b=[],D=l;D<u;){var q=j[D],$=null,se=q>239?4:q>223?3:q>191?2:1;if(D+se<=u){var ue,le,me,ye;switch(se){case 1:q<128&&($=q);break;case 2:ue=j[D+1],(ue&192)===128&&(ye=(q&31)<<6|ue&63,ye>127&&($=ye));break;case 3:ue=j[D+1],le=j[D+2],(ue&192)===128&&(le&192)===128&&(ye=(q&15)<<12|(ue&63)<<6|le&63,ye>2047&&(ye<55296||ye>57343)&&($=ye));break;case 4:ue=j[D+1],le=j[D+2],me=j[D+3],(ue&192)===128&&(le&192)===128&&(me&192)===128&&(ye=(q&15)<<18|(ue&63)<<12|(le&63)<<6|me&63,ye>65535&&ye<1114112&&($=ye))}}$===null?($=65533,se=1):$>65535&&($-=65536,b.push($>>>10&1023|55296),$=56320|$&1023),b.push($),D+=se}return J(b)}var G=4096;function J(j){var l=j.length;if(l<=G)return String.fromCharCode.apply(String,j);for(var u="",b=0;b<l;)u+=String.fromCharCode.apply(String,j.slice(b,b+=G));return u}function X(j,l,u){var b="";u=Math.min(j.length,u);for(var D=l;D<u;++D)b+=String.fromCharCode(j[D]&127);return b}function ae(j,l,u){var b="";u=Math.min(j.length,u);for(var D=l;D<u;++D)b+=String.fromCharCode(j[D]);return b}function Y(j,l,u){var b=j.length;(!l||l<0)&&(l=0),(!u||u<0||u>b)&&(u=b);for(var D="",q=l;q<u;++q)D+=V[j[q]];return D}function re(j,l,u){for(var b=j.slice(l,u),D="",q=0;q<b.length-1;q+=2)D+=String.fromCharCode(b[q]+b[q+1]*256);return D}s.prototype.slice=function(l,u){var b=this.length;l=~~l,u=u===void 0?b:~~u,l<0?(l+=b,l<0&&(l=0)):l>b&&(l=b),u<0?(u+=b,u<0&&(u=0)):u>b&&(u=b),u<l&&(u=l);var D=this.subarray(l,u);return Object.setPrototypeOf(D,s.prototype),D};function K(j,l,u){if(j%1!==0||j<0)throw new RangeError("offset is not uint");if(j+l>u)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(l,u,b){l=l>>>0,u=u>>>0,b||K(l,u,this.length);for(var D=this[l],q=1,$=0;++$<u&&(q*=256);)D+=this[l+$]*q;return D},s.prototype.readUintBE=s.prototype.readUIntBE=function(l,u,b){l=l>>>0,u=u>>>0,b||K(l,u,this.length);for(var D=this[l+--u],q=1;u>0&&(q*=256);)D+=this[l+--u]*q;return D},s.prototype.readUint8=s.prototype.readUInt8=function(l,u){return l=l>>>0,u||K(l,1,this.length),this[l]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(l,u){return l=l>>>0,u||K(l,2,this.length),this[l]|this[l+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(l,u){return l=l>>>0,u||K(l,2,this.length),this[l]<<8|this[l+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(l,u){return l=l>>>0,u||K(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(l,u){return l=l>>>0,u||K(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},s.prototype.readIntLE=function(l,u,b){l=l>>>0,u=u>>>0,b||K(l,u,this.length);for(var D=this[l],q=1,$=0;++$<u&&(q*=256);)D+=this[l+$]*q;return q*=128,D>=q&&(D-=Math.pow(2,8*u)),D},s.prototype.readIntBE=function(l,u,b){l=l>>>0,u=u>>>0,b||K(l,u,this.length);for(var D=u,q=1,$=this[l+--D];D>0&&(q*=256);)$+=this[l+--D]*q;return q*=128,$>=q&&($-=Math.pow(2,8*u)),$},s.prototype.readInt8=function(l,u){return l=l>>>0,u||K(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},s.prototype.readInt16LE=function(l,u){l=l>>>0,u||K(l,2,this.length);var b=this[l]|this[l+1]<<8;return b&32768?b|4294901760:b},s.prototype.readInt16BE=function(l,u){l=l>>>0,u||K(l,2,this.length);var b=this[l+1]|this[l]<<8;return b&32768?b|4294901760:b},s.prototype.readInt32LE=function(l,u){return l=l>>>0,u||K(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},s.prototype.readInt32BE=function(l,u){return l=l>>>0,u||K(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},s.prototype.readFloatLE=function(l,u){return l=l>>>0,u||K(l,4,this.length),r.read(this,l,!0,23,4)},s.prototype.readFloatBE=function(l,u){return l=l>>>0,u||K(l,4,this.length),r.read(this,l,!1,23,4)},s.prototype.readDoubleLE=function(l,u){return l=l>>>0,u||K(l,8,this.length),r.read(this,l,!0,52,8)},s.prototype.readDoubleBE=function(l,u){return l=l>>>0,u||K(l,8,this.length),r.read(this,l,!1,52,8)};function L(j,l,u,b,D,q){if(!s.isBuffer(j))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>D||l<q)throw new RangeError('"value" argument is out of bounds');if(u+b>j.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(l,u,b,D){if(l=+l,u=u>>>0,b=b>>>0,!D){var q=Math.pow(2,8*b)-1;L(this,l,u,b,q,0)}var $=1,se=0;for(this[u]=l&255;++se<b&&($*=256);)this[u+se]=l/$&255;return u+b},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(l,u,b,D){if(l=+l,u=u>>>0,b=b>>>0,!D){var q=Math.pow(2,8*b)-1;L(this,l,u,b,q,0)}var $=b-1,se=1;for(this[u+$]=l&255;--$>=0&&(se*=256);)this[u+$]=l/se&255;return u+b},s.prototype.writeUint8=s.prototype.writeUInt8=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,1,255,0),this[u]=l&255,u+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,2,65535,0),this[u]=l&255,this[u+1]=l>>>8,u+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,2,65535,0),this[u]=l>>>8,this[u+1]=l&255,u+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,4,4294967295,0),this[u+3]=l>>>24,this[u+2]=l>>>16,this[u+1]=l>>>8,this[u]=l&255,u+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,4,4294967295,0),this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=l&255,u+4}
vendor: 2,644 bytes, line 55
55,s.prototype.writeIntLE=function(l,u,b,D){if(l=+l,u=u>>>0,!D){var q=Math.pow(2,8*b-1);L(this,l,u,b,q-1,-q)}var $=0,se=1,ue=0;for(this[u]=l&255;++$<b&&(se*=256);)l<0&&ue===0&&this[u+$-1]!==0&&(ue=1),this[u+$]=(l/se>>0)-ue&255;return u+b},s.prototype.writeIntBE=function(l,u,b,D){if(l=+l,u=u>>>0,!D){var q=Math.pow(2,8*b-1);L(this,l,u,b,q-1,-q)}var $=b-1,se=1,ue=0;for(this[u+$]=l&255;--$>=0&&(se*=256);)l<0&&ue===0&&this[u+$+1]!==0&&(ue=1),this[u+$]=(l/se>>0)-ue&255;return u+b},s.prototype.writeInt8=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,1,127,-128),l<0&&(l=255+l+1),this[u]=l&255,u+1},s.prototype.writeInt16LE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,2,32767,-32768),this[u]=l&255,this[u+1]=l>>>8,u+2},s.prototype.writeInt16BE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,2,32767,-32768),this[u]=l>>>8,this[u+1]=l&255,u+2},s.prototype.writeInt32LE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,4,2147483647,-2147483648),this[u]=l&255,this[u+1]=l>>>8,this[u+2]=l>>>16,this[u+3]=l>>>24,u+4},s.prototype.writeInt32BE=function(l,u,b){return l=+l,u=u>>>0,b||L(this,l,u,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[u]=l>>>24,this[u+1]=l>>>16,this[u+2]=l>>>8,this[u+3]=l&255,u+4};function Z(j,l,u,b,D,q){if(u+b>j.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function Q(j,l,u,b,D){return l=+l,u=u>>>0,D||Z(j,l,u,4),r.write(j,l,u,b,23,4),u+4}s.prototype.writeFloatLE=function(l,u,b){return Q(this,l,u,!0,b)},s.prototype.writeFloatBE=function(l,u,b){return Q(this,l,u,!1,b)};function ne(j,l,u,b,D){return l=+l,u=u>>>0,D||Z(j,l,u,8),r.write(j,l,u,b,52,8),u+8}s.prototype.writeDoubleLE=function(l,u,b){return ne(this,l,u,!0,b)},s.prototype.writeDoubleBE=function(l,u,b){return ne(this,l,u,!1,b)},s.prototype.copy=function(l,u,b,D){if(!s.isBuffer(l))throw new TypeError("argument should be a Buffer");if(b||(b=0),!D&&D!==0&&(D=this.length),u>=l.length&&(u=l.length),u||(u=0),D>0&&D<b&&(D=b),D===b||l.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(b<0||b>=this.length)throw new RangeError("Index out of range");if(D<0)throw new RangeError("sourceEnd out of bounds");D>this.length&&(D=this.length),l.length-u<D-b&&(D=l.length-u+b);var q=D-b;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,b,D):Uint8Array.prototype.set.call(l,this.subarray(b,D),u),q},s.prototype.fill=function(l,u,b,D){if(typeof l=="string"){if(typeof u=="string"?(D=u,u=0,b=this.length):typeof b=="string"&&(D=b,b=this.length),D!==void 0&&typeof D!="string")throw new TypeError("encoding must be a string");
55if(typeof D=="string"&&!s.isEncoding(D))throw new TypeError("Unknown encoding: "+D);if(l.length===1){var q=l.charCodeAt(0);(D==="utf8"&&q<128||D==="latin1")&&(l=q)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(u<0||this.length<u||this.length<b)throw new RangeError("Out of range index");if(b<=u)return this;u=u>>>0,b=b===void 0?this.length:b>>>0,l||(l=0);var $;if(typeof l=="number")for($=u;$<b;++$)this[$]=l;else{var se=s.isBuffer(l)?l:s.from(l,D),ue=se.length;if(ue===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for($=0;$<b-u;++$)this[$+u]=se[$%ue]}return this};var pe=/[^+/0-9A-Za-z-_]/g;function R(j){if(j=j.split("=")[0],j=j.trim().replace(pe,""),j.length<2)return"";for(;j.length%4!==0;)j=j+"=";return j}function w(j,l){l=l||1/0;for(var u,b=j.length,D=null,q=[],$=0;$<b;++$){if(u=j.charCodeAt($),u>55295&&u<57344){if(!D){if(u>56319){(l-=3)>-1&&q.push(239,191,189);continue}else if($+1===b){(l-=3)>-1&&q.push(239,191,189);continue}D=u;continue}if(u<56320){(l-=3)>-1&&q.push(239,191,189),D=u;continue}u=(D-55296<<10|u-56320)+65536}else D&&(l-=3)>-1&&q.push(239,191,189);if(D=null,u<128){if((l-=1)<0)break;q.push(u)}else if(u<2048){if((l-=2)<0)break;q.push(u>>6|192,u&63|128)}else if(u<65536){if((l-=3)<0)break;q.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((l-=4)<0)break;q.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return q}function z(j){for(var l=[],u=0;u<j.length;++u)l.push(j.charCodeAt(u)&255);return l}function U(j,l){for(var u,b,D,q=[],$=0;$<j.length&&!((l-=2)<0);++$)u=j.charCodeAt($),b=u>>8,D=u%256,q.push(D),q.push(b);return q}function ie(j){return t.toByteArray(R(j))}function B(j,l,u,b){for(var D=0;D<b&&!(D+u>=l.length||D>=j.length);++D)l[D+u]=j[D];return D}function P(j,l){return j instanceof l||j!=null&&j.constructor!=null&&j.constructor.name!=null&&j.constructor.name===l.name}function p(j){return j!==j}var V=function(){for(var j="0123456789abcdef",l=new Array(256),u=0;u<16;++u)for(var b=u*16,D=0;D<16;++D)l[b+D]=j[u]+j[D];return l}()}),Ol=de((e,t)=>{t.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var n={},o=Symbol("test"),i=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;n[o]=a;for(var s in n)return!1;if(typeof Object.keys=="function"&&Object.keys(n).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(n).length!==0)return!1;var c=Object.getOwnPropertySymbols(n);if(c.length!==1||c[0]!==o||!Object.prototype.propertyIsEnumerable.call(n,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var d=Object.getOwnPropertyDescriptor(n,o);if(d.value!==a||d.enumerable!==!0)return!1}return!0}}),Ps=de((e,t)=>{var r=Ol();t.exports=function(){return r()&&!!Symbol.toStringTag}}),Ll=de((e,t)=>{t.exports=Object}),cf=de((e,t)=>{t.exports=Error}),hf=de((e,t)=>{t.exports=EvalError}),df=de((e,t)=>{t.exports=RangeError}),ff=de((e,t)=>{t.exports=ReferenceError}),Bl=de((e,t)=>{t.exports=SyntaxError}),fi=de((e,t)=>{t.exports=TypeError}),pf=de((e,t)=>{t.exports=URIError}),mf=de((e,t)=>{t.exports=Math.abs}),gf=de((e,t)=>{t.exports=Math.floor}),wf=de((e,t)=>{t.exports=Math.max}),yf=de((e,t)=>{t.exports=Math.min}),vf=de((e,t)=>{t.exports=Math.pow}),xf=de((e,t)=>{t.exports=Math.round}),bf=de((e,t)=>{t.exports=Number.isNaN||function(n){return n!==n}}),_f=de((e,t)=>{var r=bf();t.exports=function(o){return r(o)||o===0?o:o<0?-1:1}}),Sf=de((e,t)=>{t.exports=Object.getOwnPropertyDescriptor}),un=de((e,t)=>{var r=Sf();if(r)try{r([],"length")}catch{r=null}t.exports=r}),pi=de((e,t)=>{var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}),Ef=de((e,t)=>{var r=typeof Symbol<"u"&&Symbol,n=Ol();t.exports=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()}}),Dl=de((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),Ml=de((e,t)=>
55{t.exports=Ll().getPrototypeOf||null}),kf=de((e,t)=>{var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,o=Math.max,i="[object Function]",a=function(f,m){for(var E=[],g=0;g<f.length;g+=1)E[g]=f[g];for(var y=0;y<m.length;y+=1)E[y+f.length]=m[y];return E},s=function(f,m){for(var E=[],g=m,y=0;g<f.length;g+=1,y+=1)E[y]=f[g];return E},c=function(d,f){for(var m="",E=0;E<d.length;E+=1)m+=d[E],E+1<d.length&&(m+=f);return m};t.exports=function(f){var m=this;if(typeof m!="function"||n.apply(m)!==i)throw new TypeError(r+m);for(var E=s(arguments,1),g,y=function(){if(this instanceof g){var T=m.apply(this,a(E,arguments));return Object(T)===T?T:this}return m.apply(f,a(E,arguments))},x=o(0,m.length-E.length),v=[],k=0;k<x;k++)v[k]="$"+k;if(g=Function("binder","return function ("+c(v,",")+"){ return binder.apply(this,arguments); }")(y),m.prototype){var S=function(){};S.prototype=m.prototype,g.prototype=new S,S.prototype=null}return g}}),cn=de((e,t)=>{var r=kf();t.exports=Function.prototype.bind||r}),Os=de((e,t)=>{t.exports=Function.prototype.call}),Ls=de((e,t)=>{t.exports=Function.prototype.apply}),Tf=de((e,t)=>{t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Ul=de((e,t)=>{var r=cn(),n=Ls(),o=Os();t.exports=Tf()||r.call(o,n)}),Bs=de((e,t)=>{var r=cn(),n=fi(),o=Os(),i=Ul();t.exports=function(s){if(s.length<1||typeof s[0]!="function")throw new n("a function is required");return i(r,o,s)}}),Af=de((e,t)=>{var r=Bs(),n=un(),o;try{o=[].__proto__===Array.prototype}catch(c){if(!c||typeof c!="object"||!("code"in c)||c.code!=="ERR_PROTO_ACCESS")throw c}var i=!!o&&n&&n(Object.prototype,"__proto__"),a=Object,s=a.getPrototypeOf;t.exports=i&&typeof i.get=="function"?r([i.get]):typeof s=="function"?function(d){return s(d==null?d:a(d))}:!1}),zl=de((e,t)=>{var r=Dl(),n=Ml(),o=Af();t.exports=r?function(a){return r(a)}:n?function(a){if(!a||typeof a!="object"&&typeof a!="function")throw new TypeError("getProto: not an object");return n(a)}:o?function(a){return o(a)}:null}),Cf=de((e,t)=>{var r=Function.prototype.call,n=Object.prototype.hasOwnProperty;t.exports=cn().call(r,n)}),$l=de((e,t)=>{var r,n=Ll(),o=cf(),i=hf(),a=df(),s=ff(),c=Bl(),d=fi(),f=pf(),m=mf(),E=gf(),g=wf(),y=yf(),x=vf(),v=xf(),k=_f(),S=Function,T=function(U){try{return S('"use strict"; return ('+U+").constructor;")()}catch{}},C=un(),A=pi(),_=function(){throw new d},O=C?function(){try{return arguments.callee,_}catch{try{return C(arguments,"callee").get}catch{return _}}}():_,M=Ef()(),I=zl(),H=Ml(),te=Dl(),F=Ls(),W=Os(),N={},G=typeof Uint8Array>"u"||!I?r:I(Uint8Array),J={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":M&&I?I([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":N,"%AsyncGenerator%":N,"%AsyncGeneratorFunction%":N,"%AsyncIteratorPrototype%":N,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":i,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":S,"%GeneratorFunction%":N,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 5,954 bytes, line 55
55"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":M&&I?I(I([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!M||!I?r:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":C,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!M||!I?r:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":M&&I?I(""[Symbol.iterator]()):r,"%Symbol%":M?Symbol:r,"%SyntaxError%":c,"%ThrowTypeError%":O,"%TypedArray%":G,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":f,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":W,"%Function.prototype.apply%":F,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":H,"%Math.abs%":m,"%Math.floor%":E,"%Math.max%":g,"%Math.min%":y,"%Math.pow%":x,"%Math.round%":v,"%Math.sign%":k,"%Reflect.getPrototypeOf%":te};if(I)try{null.error}catch(U){J["%Error.prototype%"]=I(I(U))}var X=function U(ie){var B;if(ie==="%AsyncFunction%")B=T("async function () {}");else if(ie==="%GeneratorFunction%")B=T("function* () {}");else if(ie==="%AsyncGeneratorFunction%")B=T("async function* () {}");else if(ie==="%AsyncGenerator%"){var P=U("%AsyncGeneratorFunction%");P&&(B=P.prototype)}else if(ie==="%AsyncIteratorPrototype%"){var p=U("%AsyncGenerator%");p&&I&&(B=I(p.prototype))}return J[ie]=B,B},ae={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Y=cn(),re=Cf(),K=Y.call(W,Array.prototype.concat),L=Y.call(F,Array.prototype.splice),Z=Y.call(W,String.prototype.replace),Q=Y.call(W,String.prototype.slice),ne=Y.call(W,RegExp.prototype.exec),pe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,w=function(ie){var B=Q(ie,0,1),P=Q(ie,-1);if(B==="%"&&P!=="%")throw new c("invalid intrinsic syntax, expected closing `%`");if(P==="%"&&B!=="%")throw new c("invalid intrinsic syntax, expected opening `%`");var p=[];return Z(ie,pe,function(V,j,l,u){p[p.length]=l?Z(u,R,"$1"):j||V}),p},z=function(ie,B){var P=ie,p;if(re(ae,P)&&(p=ae[P],P="%"+p[0]+"%"),re(J,P)){var V=J[P];if(V===N&&(V=X(P)),typeof V>"u"&&!B)throw new d("intrinsic "+ie+" exists, but is not available. Please file an issue!");return{alias:p,name:P,value:V}}throw new c("intrinsic "+ie+" does not exist!")};t.exports=function(ie,B){if(typeof ie!="string"||ie.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof B!="boolean")throw new d('"allowMissing" argument must be a boolean');if(ne(/^%?[^%]*%?$/,ie)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var P=w(ie),p=P.length>0?P[0]:"",V=z("%"+p+"%",B),j=V.name,l=V.value,u=!1,b=V.alias;b&&(p=b[0],L(P,K([0,1],b)));for(var D=1,q=!0;D<P.length;D+=1){var $=P[D],se=Q($,0,1),ue=Q($,-1);
55if((se==='"'||se==="'"||se==="`"||ue==='"'||ue==="'"||ue==="`")&&se!==ue)throw new c("property names with quotes must have matching quotes");if(($==="constructor"||!q)&&(u=!0),p+="."+$,j="%"+p+"%",re(J,j))l=J[j];else if(l!=null){if(!($ in l)){if(!B)throw new d("base intrinsic for "+ie+" exists, but the property is not available.");return}if(C&&D+1>=P.length){var le=C(l,$);q=!!le,q&&"get"in le&&!("originalValue"in le.get)?l=le.get:l=l[$]}else q=re(l,$),l=l[$];q&&!u&&(J[j]=l)}}return l}}),Hl=de((e,t)=>{var r=$l(),n=Bs(),o=n([r("%String.prototype.indexOf%")]);t.exports=function(a,s){var c=r(a,!!s);return typeof c=="function"&&o(a,".prototype.")>-1?n([c]):c}}),Nf=de((e,t)=>{var r=Ps()(),n=Hl()("Object.prototype.toString"),o=function(c){return r&&c&&typeof c=="object"&&Symbol.toStringTag in c?!1:n(c)==="[object Arguments]"},i=function(c){return o(c)?!0:c!==null&&typeof c=="object"&&"length"in c&&typeof c.length=="number"&&c.length>=0&&n(c)!=="[object Array]"&&"callee"in c&&n(c.callee)==="[object Function]"},a=function(){return o(arguments)}();o.isLegacyArguments=i,t.exports=a?o:i}),Rf=de((e,t)=>{var r=Object.prototype.toString,n=Function.prototype.toString,o=/^\s*(?:function)?\*/,i=Ps()(),a=Object.getPrototypeOf,s=function(){if(!i)return!1;try{return Function("return function*() {}")()}catch{}},c;t.exports=function(f){if(typeof f!="function")return!1;if(o.test(n.call(f)))return!0;if(!i)return r.call(f)==="[object GeneratorFunction]";if(!a)return!1;if(typeof c>"u"){var m=s();c=m?a(m):!1}return a(f)===c}}),jf=de((e,t)=>{var r=Function.prototype.toString,n=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,o,i;if(typeof n=="function"&&typeof Object.defineProperty=="function")try{o=Object.defineProperty({},"length",{get:function(){throw i}}),i={},n(function(){throw 42},null,o)}catch(C){C!==i&&(n=null)}else n=null;var a=/^\s*class\b/,s=function(A){try{var _=r.call(A);return a.test(_)}catch{return!1}},c=function(A){try{return s(A)?!1:(r.call(A),!0)}catch{return!1}},d=Object.prototype.toString,f="[object Object]",m="[object Function]",E="[object GeneratorFunction]",g="[object HTMLAllCollection]",y="[object HTML document.all class]",x="[object HTMLCollection]",v=typeof Symbol=="function"&&!!Symbol.toStringTag,k=!(0 in[,]),S=function(){return!1};if(typeof document=="object"){var T=document.all;d.call(T)===d.call(document.all)&&(S=function(A){if((k||!A)&&(typeof A>"u"||typeof A=="object"))try{var _=d.call(A);return(_===g||_===y||_===x||_===f)&&A("")==null}catch{}return!1})}t.exports=n?function(A){if(S(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;try{n(A,null,o)}catch(_){if(_!==i)return!1}return!s(A)&&c(A)}:function(A){if(S(A))return!0;if(!A||typeof A!="function"&&typeof A!="object")return!1;if(v)return c(A);if(s(A))return!1;var _=d.call(A);return _!==m&&_!==E&&!/^\[object HTML/.test(_)?!1:c(A)}}),If=de((e,t)=>{var r=jf(),n=Object.prototype.toString,o=Object.prototype.hasOwnProperty,i=function(f,m,E){for(var g=0,y=f.length;g<y;g++)o.call(f,g)&&(E==null?m(f[g],g,f):m.call(E,f[g],g,f))},a=function(f,m,E){for(var g=0,y=f.length;g<y;g++)E==null?m(f.charAt(g),g,f):m.call(E,f.charAt(g),g,f)},s=function(f,m,E){for(var g in f)o.call(f,g)&&(E==null?m(f[g],g,f):m.call(E,f[g],g,f))};function c(d){return n.call(d)==="[object Array]"}t.exports=function(f,m,E){if(!r(m))throw new TypeError("iterator must be a function");var g;arguments.length>=3&&(g=E),c(f)?i(f,m,g):typeof f=="string"?a(f,m,g):s(f,m,g)}}),Ff=de((e,t)=>{t.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),Pf=de((e,t)=>{Or();var r=Ff(),n=typeof globalThis>"u"?rt:globalThis;t.exports=function(){for(var i=[],a=0;a<r.length;a++)typeof n[r[a]]=="function"&&(i[i.length]=r[a]);return i}}),Of=de((e,t)=>{var r=pi(),n=Bl(),o=fi(),i=un();t.exports=function(s,c,d){if(!s||typeof s!="object"&&typeof s!="function")throw new o("`obj` must be an object or a function`");if(typeof c!="string"&&typeof c!="symbol")throw new o("`property` must be a string or a symbol`");
55if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new o("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,m=arguments.length>4?arguments[4]:null,E=arguments.length>5?arguments[5]:null,g=arguments.length>6?arguments[6]:!1,y=!!i&&i(s,c);if(r)r(s,c,{configurable:E===null&&y?y.configurable:!E,enumerable:f===null&&y?y.enumerable:!f,value:d,writable:m===null&&y?y.writable:!m});else if(g||!f&&!m&&!E)s[c]=d;else throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),Lf=de((e,t)=>{var r=pi(),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return r([],"length",{value:1}).length!==1}catch{return!0}},t.exports=n}),Bf=de((e,t)=>{var r=$l(),n=Of(),o=Lf()(),i=un(),a=fi(),s=r("%Math.floor%");t.exports=function(d,f){if(typeof d!="function")throw new a("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||s(f)!==f)throw new a("`length` must be a positive 32-bit integer");var m=arguments.length>2&&!!arguments[2],E=!0,g=!0;if("length"in d&&i){var y=i(d,"length");y&&!y.configurable&&(E=!1),y&&!y.writable&&(g=!1)}return(E||g||!m)&&(o?n(d,"length",f,!0,!0):n(d,"length",f)),d}}),Df=de((e,t)=>{var r=cn(),n=Ls(),o=Ul();t.exports=function(){return o(r,n,arguments)}}),Mf=de((e,t)=>{var r=Bf(),n=pi(),o=Bs(),i=Df();t.exports=function(s){var c=o(arguments),d=s.length-(arguments.length-1);return r(c,1+(d>0?d:0),!0)},n?n(t.exports,"apply",{value:i}):t.exports.apply=i}),Wl=de((e,t)=>{Or();var r=If(),n=Pf(),o=Mf(),i=Hl(),a=un(),s=zl(),c=i("Object.prototype.toString"),d=Ps()(),f=typeof globalThis>"u"?rt:globalThis,m=n(),E=i("String.prototype.slice"),g=i("Array.prototype.indexOf",!0)||function(S,T){for(var C=0;C<S.length;C+=1)if(S[C]===T)return C;return-1},y={__proto__:null};d&&a&&s?r(m,function(k){var S=new f[k];if(Symbol.toStringTag in S&&s){var T=s(S),C=a(T,Symbol.toStringTag);!C&&T&&(C=a(s(T),Symbol.toStringTag)),y["$"+k]=o(C.get)}}):r(m,function(k){var S=new f[k],T=S.slice||S.set;T&&(y["$"+k]=o(T))});var x=function(S){var T=!1;return r(y,function(C,A){if(!T)try{"$"+C(S)===A&&(T=E(A,1))}catch{}}),T},v=function(S){var T=!1;return r(y,function(C,A){if(!T)try{C(S),T=E(A,1)}catch{}}),T};t.exports=function(S){if(!S||typeof S!="object")return!1;if(!d){var T=E(c(S),8,-1);return g(m,T)>-1?T:T!=="Object"?!1:v(S)}return a?x(S):null}}),Uf=de((e,t)=>{var r=Wl();t.exports=function(o){return!!r(o)}}),zf=de(e=>{var t=Nf(),r=Rf(),n=Wl(),o=Uf();function i(b){return b.call.bind(b)}var a=typeof BigInt<"u",s=typeof Symbol<"u",c=i(Object.prototype.toString),d=i(Number.prototype.valueOf),f=i(String.prototype.valueOf),m=i(Boolean.prototype.valueOf);if(a)var E=i(BigInt.prototype.valueOf);if(s)var g=i(Symbol.prototype.valueOf);function y(b,D){if(typeof b!="object")return!1;try{return D(b),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=o;function x(b){return typeof Promise<"u"&&b instanceof Promise||b!==null&&typeof b=="object"&&typeof b.then=="function"&&typeof b.catch=="function"}e.isPromise=x;function v(b){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(b):o(b)||Z(b)}e.isArrayBufferView=v;function k(b){return n(b)==="Uint8Array"}e.isUint8Array=k;function S(b){return n(b)==="Uint8ClampedArray"}e.isUint8ClampedArray=S;function T(b){return n(b)==="Uint16Array"}e.isUint16Array=T;function C(b){return n(b)==="Uint32Array"}e.isUint32Array=C;function A(b){return n(b)==="Int8Array"}e.isInt8Array=A;function _(b){return n(b)==="Int16Array"}e.isInt16Array=_;function O(b){return n(b)==="Int32Array"}e.isInt32Array=O;function M(b){return n(b)==="Float32Array"}e.isFloat32Array=M;function I(b){return n(b)==="Float64Array"}e.isFloat64Array=I;function H(b){return n(b)==="BigInt64Array"}e.isBigInt64Array=H;function te(b){return n(b)==="BigUint64Array"}e.isBigUint64Array=te;function F(b){return c(b)==="[object Map]"}F.working=typeof Map<"u"&&F(new Map);function W(b){return typeof Map>"u"?!1:F.working?F(b):b instanceof Map}e.isMap=W;function N(b){return c(b)==="[object Set]"}N.working=typeof Set<"u"&&N(new Set);function G(b){return typeof Set>"u"?!1:N.working?N(b):b instanceof Set}e.isSet=G;function J(b){return c(b)==="[object WeakMap]"}J.working=typeof WeakMap<"u"&&J(new WeakMap);function X(b){return typeof WeakMap>"u"?!1:J.working?J(b):b instanceof WeakMap}e.isWeakMap=X;function ae(b){return c(b)==="[object WeakSet]"}ae.working=typeof WeakSet<"u"&&ae(new WeakSet);function Y(b){return ae(b)}e.isWeakSet=Y;function re(b){return c(b)==="[object ArrayBuffer]"}re.working=typeof ArrayBuffer<"u"&&re(new ArrayBuffer);function K(b){return typeof ArrayBuffer>"u"?!1:re.working?re(b):b instanceof ArrayBuffer}e.isArrayBuffer=K;function L(b){return c(b)==="[object DataView]"}L.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&L(new DataView(new ArrayBuffer(1),0,1));function Z(b){return typeof DataView>"u"?!1:L.working?L(b):b instanceof DataView}e.isDataView=Z;var Q=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ne(b){return c(b)==="[object SharedArrayBuffer]"}function pe(b){return typeof Q>"u"?!1:(typeof ne.working>"u"&&(ne.working=ne(new Q)),ne.working?ne(b):b instanceof Q)}e.isSharedArrayBuffer=pe;function R(b){return c(b)==="[object AsyncFunction]"}e.isAsyncFunction=R;function w(b){return c(b)==="[object Map Iterator]"}e.isMapIterator=w;function z(b){return c(b)==="[object Set Iterator]"}e.isSetIterator=z;function U(b){return c(b)==="[object Generator]"}e.isGeneratorObject=U;function ie(b){return c(b)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=ie;function B(b){return y(b,d)}e.isNumberObject=B;function P(b){return y(b,f)}e.isStringObject=P;function p(b){return y(b,m)}e.isBooleanObject=p;function V(b){return a&&y(b,E)}e.isBigIntObject=V;function j(b){return s&&y(b,g)}e.isSymbolObject=j;function l(b){return B(b)||P(b)||p(b)||V(b)||j(b)}e.isBoxedPrimitive=l;function u(b){return typeof Uint8Array<"u"&&(K(b)||pe(b))}e.isAnyArrayBuffer=u,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(b){Object.defineProperty(e,b,{enumerable:!1,value:function(){throw new Error(b+" is not supported in userland")}})})}),$f=de((e,t)=>
vendor: 4,262 bytes, line 55
55{t.exports=function(n){return n&&typeof n=="object"&&typeof n.copy=="function"&&typeof n.fill=="function"&&typeof n.readUInt8=="function"}}),Vl=de(e=>{Xt();var t=Object.getOwnPropertyDescriptors||function(Z){for(var Q=Object.keys(Z),ne={},pe=0;pe<Q.length;pe++)ne[Q[pe]]=Object.getOwnPropertyDescriptor(Z,Q[pe]);return ne},r=/%[sdj%]/g;e.format=function(L){if(!A(L)){for(var Z=[],Q=0;Q<arguments.length;Q++)Z.push(a(arguments[Q]));return Z.join(" ")}for(var Q=1,ne=arguments,pe=ne.length,R=String(L).replace(r,function(z){if(z==="%%")return"%";if(Q>=pe)return z;switch(z){case"%s":return String(ne[Q++]);case"%d":return Number(ne[Q++]);case"%j":try{return JSON.stringify(ne[Q++])}catch{return"[Circular]"}default:return z}}),w=ne[Q];Q<pe;w=ne[++Q])S(w)||!I(w)?R+=" "+w:R+=" "+a(w);return R},e.deprecate=function(L,Z){if(typeof Te<"u"&&Te.noDeprecation===!0)return L;if(typeof Te>"u")return function(){return e.deprecate(L,Z).apply(this,arguments)};var Q=!1;function ne(){if(!Q){if(Te.throwDeprecation)throw new Error(Z);Te.traceDeprecation?console.trace(Z):console.error(Z),Q=!0}return L.apply(this,arguments)}return ne};var n={},o=/^$/;if(Te.env.NODE_DEBUG){var i=Te.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")}e.debuglog=function(L){if(L=L.toUpperCase(),!n[L])if(o.test(L)){var Z=Te.pid;n[L]=function(){var Q=e.format.apply(e,arguments);console.error("%s %d: %s",L,Z,Q)}}else n[L]=function(){};return n[L]};function a(L,Z){var Q={seen:[],stylize:c};return arguments.length>=3&&(Q.depth=arguments[2]),arguments.length>=4&&(Q.colors=arguments[3]),k(Z)?Q.showHidden=Z:Z&&e._extend(Q,Z),O(Q.showHidden)&&(Q.showHidden=!1),O(Q.depth)&&(Q.depth=2),O(Q.colors)&&(Q.colors=!1),O(Q.customInspect)&&(Q.customInspect=!0),Q.colors&&(Q.stylize=s),f(Q,L,Q.depth)}e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function s(L,Z){var Q=a.styles[Z];return Q?"\x1B["+a.colors[Q][0]+"m"+L+"\x1B["+a.colors[Q][1]+"m":L}function c(L,Z){return L}function d(L){var Z={};return L.forEach(function(Q,ne){Z[Q]=!0}),Z}function f(L,Z,Q){if(L.customInspect&&Z&&F(Z.inspect)&&Z.inspect!==e.inspect&&!(Z.constructor&&Z.constructor.prototype===Z)){var ne=Z.inspect(Q,L);return A(ne)||(ne=f(L,ne,Q)),ne}var pe=m(L,Z);if(pe)return pe;var R=Object.keys(Z),w=d(R);if(L.showHidden&&(R=Object.getOwnPropertyNames(Z)),te(Z)&&(R.indexOf("message")>=0||R.indexOf("description")>=0))return E(Z);if(R.length===0){if(F(Z)){var z=Z.name?": "+Z.name:"";return L.stylize("[Function"+z+"]","special")}if(M(Z))return L.stylize(RegExp.prototype.toString.call(Z),"regexp");if(H(Z))return L.stylize(Date.prototype.toString.call(Z),"date");if(te(Z))return E(Z)}var U="",ie=!1,B=["{","}"];if(v(Z)&&(ie=!0,B=["[","]"]),F(Z)&&(U=" [Function"+(Z.name?": "+Z.name:"")+"]"),M(Z)&&(U=" "+RegExp.prototype.toString.call(Z)),H(Z)&&(U=" "+Date.prototype.toUTCString.call(Z)),te(Z)&&(U=" "+E(Z)),R.length===0&&(!ie||Z.length==0))return B[0]+U+B[1];if(Q<0)return M(Z)?L.stylize(RegExp.prototype.toString.call(Z),"regexp"):L.stylize("[Object]","special");L.seen.push(Z);var P;return ie?P=g(L,Z,Q,w,R):P=R.map(function(p){return y(L,Z,Q,w,p,ie)}),L.seen.pop(),x(P,U,B)}function m(L,Z){if(O(Z))return L.stylize("undefined","undefined");if(A(Z)){var Q="'"+JSON.stringify(Z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(Q,"string")}if(C(Z))return L.stylize(""+Z,"number");if(k(Z))return L.stylize(""+Z,"boolean");if(S(Z))return L.stylize("null","null")}function E(L){return"["+Error.prototype.toString.call(L)+"]"}function g(L,Z,Q,ne,pe){for(var R=[],w=0,z=Z.length;w<z;++w)ae(Z,String(w))?R.push(y(L,Z,Q,ne,String(w),!0)):R.push("");return pe.forEach(function(U){U.match(/^\d+$/)||R.push(y(L,Z,Q,ne,U,!0))}),R}function y(L,Z,Q,ne,pe,R){var w,z,U=Object.getOwnPropertyDescriptor(Z,pe)||{value:Z[pe]};if(U.get?U.set?z=L.stylize("[Getter/Setter]","special"):z=L.stylize("[Getter]","special"):U.set&&(z=L.stylize("[
55Setter]","special")),ae(ne,pe)||(w="["+pe+"]"),z||(L.seen.indexOf(U.value)<0?(S(Q)?z=f(L,U.value,null):z=f(L,U.value,Q-1),z.indexOf(` 56`)>-1&&(R?z=z.split(` 57`).map(function(ie){return" "+ie}).join(` 58`).slice(2):z=` 59`+z.split(` 60`).map(function(ie){return" "+ie}).join(` 61`))):z=L.stylize("[Circular]","special")),O(w)){if(R&&pe.match(/^\d+$/))return z;w=JSON.stringify(""+pe),w.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(w=w.slice(1,-1),w=L.stylize(w,"name")):(w=w.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),w=L.stylize(w,"string"))}return w+": "+z}function x(L,Z,Q){return L.reduce(function(ne,pe){return pe.indexOf(` 62`)>=0,ne+pe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?Q[0]+(Z===""?"":Z+` 63 `)+" "+L.join(`, 64 `)+" "+Q[1]:Q[0]+Z+" "+L.join(", ")+" "+Q[1]}e.types=zf();function v(L){return Array.isArray(L)}e.isArray=v;function k(L){return typeof L=="boolean"}e.isBoolean=k;function S(L){return L===null}e.isNull=S;function T(L){return L==null}e.isNullOrUndefined=T;function C(L){return typeof L=="number"}e.isNumber=C;function A(L){return typeof L=="string"}e.isString=A;function _(L){return typeof L=="symbol"}e.isSymbol=_;function O(L){return L===void 0}e.isUndefined=O;function M(L){return I(L)&&N(L)==="[object RegExp]"}e.isRegExp=M,e.types.isRegExp=M;function I(L){return typeof L=="object"&&L!==null}e.isObject=I;function H(L){return I(L)&&N(L)==="[object Date]"}e.isDate=H,e.types.isDate=H;function te(L){return I(L)&&(N(L)==="[object Error]"||L instanceof Error)}e.isError=te,e.types.isNativeError=te;function F(L){return typeof L=="function"}e.isFunction=F;function W(L){return L===null||typeof L=="boolean"||typeof L=="number"||typeof L=="string"||typeof L=="symbol"||typeof L>"u"}e.isPrimitive=W,e.isBuffer=$f();function N(L){return Object.prototype.toString.call(L)}function G(L){return L<10?"0"+L.toString(10):L.toString(10)}var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function X(){var L=new Date,Z=[G(L.getHours()),G(L.getMinutes()),G(L.getSeconds())].join(":");return[L.getDate(),J[L.getMonth()],Z].join(" ")}e.log=function(){console.log("%s - %s",X(),e.format.apply(e,arguments))},e.inherits=Kt(),e._extend=function(L,Z){if(!Z||!I(Z))return L;for(var Q=Object.keys(Z),ne=Q.length;ne--;)L[Q[ne]]=Z[Q[ne]];return L};function ae(L,Z){return Object.prototype.hasOwnProperty.call(L,Z)}var Y=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(Z){if(typeof Z!="function")throw new TypeError('The "original" argument must be of type Function');if(Y&&Z[Y]){var Q=Z[Y];if(typeof Q!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Q,Y,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Q}function Q(){for(var ne,pe,R=new Promise(function(U,ie){ne=U,pe=ie}),w=[],z=0;z<arguments.length;z++)w.push(arguments[z]);w.push(function(U,ie){U?pe(U):ne(ie)});try{Z.apply(this,w)}catch(U){pe(U)}return R}return Object.setPrototypeOf(Q,Object.getPrototypeOf(Z)),Y&&Object.defineProperty(Q,Y,{value:Q,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Q,t(Z))},e.promisify.custom=Y;function re(L,Z){if(!L){var Q=new Error("Promise was rejected with a falsy value");Q.reason=L,L=Q}return Z(L)}function K(L){if(typeof L!="function")throw new TypeError('The "original" argument must be of type Function');function Z(){for(var Q=[],ne=0;ne<arguments.length;ne++)Q.push(arguments[ne]);var pe=Q.pop();if(typeof pe!="function")throw new TypeError("The last argument must be of type Function");var R=this,w=function(){return pe.apply(R,arguments)};L.apply(this,Q).then(function(z){Te.nextTick(w.bind(null,null,z))},function(z){Te.nextTick(re.bind(null,z,w))})}return Object.setPrototypeOf(Z,Object.getPrototypeOf(L)),Object.defineProperties(Z,t(L)),Z}e.callbackify=K}),Hf=de((e,t)=>{function r(y,x){var v=Object.keys(y);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(y);x&&(k=k.filter(function(S){return Object.getOwnPropertyDescriptor(y,S).enumerable})),v.push.apply(v,k)}return v}function n(y){for(var x=1;x<arguments.length;x++){var v=arguments[x]!=null?arguments[x]:{};
vendor: 4,509 bytes, line 64
64x%2?r(Object(v),!0).forEach(function(k){o(y,k,v[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(v)):r(Object(v)).forEach(function(k){Object.defineProperty(y,k,Object.getOwnPropertyDescriptor(v,k))})}return y}function o(y,x,v){return x=c(x),x in y?Object.defineProperty(y,x,{value:v,enumerable:!0,configurable:!0,writable:!0}):y[x]=v,y}function i(y,x){if(!(y instanceof x))throw new TypeError("Cannot call a class as a function")}function a(y,x){for(var v=0;v<x.length;v++){var k=x[v];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(y,c(k.key),k)}}function s(y,x,v){return x&&a(y.prototype,x),Object.defineProperty(y,"prototype",{writable:!1}),y}function c(y){var x=d(y,"string");return typeof x=="symbol"?x:String(x)}function d(y,x){if(typeof y!="object"||y===null)return y;var v=y[Symbol.toPrimitive];if(v!==void 0){var k=v.call(y,x);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)}var f=di().Buffer,m=Vl().inspect,E=m&&m.custom||"inspect";function g(y,x,v){f.prototype.copy.call(y,x,v)}t.exports=function(){function y(){i(this,y),this.head=null,this.tail=null,this.length=0}return s(y,[{key:"push",value:function(v){var k={data:v,next:null};this.length>0?this.tail.next=k:this.head=k,this.tail=k,++this.length}},{key:"unshift",value:function(v){var k={data:v,next:this.head};this.length===0&&(this.tail=k),this.head=k,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var k=this.head,S=""+k.data;k=k.next;)S+=v+k.data;return S}},{key:"concat",value:function(v){if(this.length===0)return f.alloc(0);for(var k=f.allocUnsafe(v>>>0),S=this.head,T=0;S;)g(S.data,k,T),T+=S.data.length,S=S.next;return k}},{key:"consume",value:function(v,k){var S;return v<this.head.data.length?(S=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?S=this.shift():S=k?this._getString(v):this._getBuffer(v),S}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var k=this.head,S=1,T=k.data;for(v-=T.length;k=k.next;){var C=k.data,A=v>C.length?C.length:v;if(A===C.length?T+=C:T+=C.slice(0,v),v-=A,v===0){A===C.length?(++S,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=C.slice(A));break}++S}return this.length-=S,T}},{key:"_getBuffer",value:function(v){var k=f.allocUnsafe(v),S=this.head,T=1;for(S.data.copy(k),v-=S.data.length;S=S.next;){var C=S.data,A=v>C.length?C.length:v;if(C.copy(k,k.length-v,0,A),v-=A,v===0){A===C.length?(++T,S.next?this.head=S.next:this.head=this.tail=null):(this.head=S,S.data=C.slice(A));break}++T}return this.length-=T,k}},{key:E,value:function(v,k){return m(this,n(n({},k),{},{depth:0,customInspect:!1}))}}]),y}()}),Gl=de((e,t)=>{Xt();function r(c,d){var f=this,m=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return m||E?(d?d(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,Te.nextTick(a,this,c)):Te.nextTick(a,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(g){!d&&g?f._writableState?f._writableState.errorEmitted?Te.nextTick(o,f):(f._writableState.errorEmitted=!0,Te.nextTick(n,f,g)):Te.nextTick(n,f,g):d?(Te.nextTick(o,f),d(g)):Te.nextTick(o,f)}),this)}function n(c,d){a(c,d),o(c)}function o(c){c._writableState&&!c._writableState.emitClose||c._readableState&&!c._readableState.emitClose||c.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(c,d){c.emit("error",d)}function s(c,d){var f=c._readableState,m=c._writableState;f&&f.autoDestroy||m&&m.autoDestroy?c.destroy(d):c.emit("error",d)}t.exports={destroy:r,undestroy:i,errorOrDestroy:s}}),Lr=de((e,t)=>
vendor: 15,839 bytes, line 64
64{function r(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,d.__proto__=f}var n={};function o(d,f,m){m||(m=Error);function E(y,x,v){return typeof f=="string"?f:f(y,x,v)}var g=function(y){r(x,y);function x(v,k,S){return y.call(this,E(v,k,S))||this}return x}(m);g.prototype.name=m.name,g.prototype.code=d,n[d]=g}function i(d,f){if(Array.isArray(d)){var m=d.length;return d=d.map(function(E){return String(E)}),m>2?"one of ".concat(f," ").concat(d.slice(0,m-1).join(", "),", or ")+d[m-1]:m===2?"one of ".concat(f," ").concat(d[0]," or ").concat(d[1]):"of ".concat(f," ").concat(d[0])}else return"of ".concat(f," ").concat(String(d))}function a(d,f,m){return d.substr(0,f.length)===f}function s(d,f,m){return(m===void 0||m>d.length)&&(m=d.length),d.substring(m-f.length,m)===f}function c(d,f,m){return typeof m!="number"&&(m=0),m+f.length>d.length?!1:d.indexOf(f,m)!==-1}o("ERR_INVALID_OPT_VALUE",function(d,f){return'The value "'+f+'" is invalid for option "'+d+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(d,f,m){var E;typeof f=="string"&&a(f,"not ")?(E="must not be",f=f.replace(/^not /,"")):E="must be";var g;if(s(d," argument"))g="The ".concat(d," ").concat(E," ").concat(i(f,"type"));else{var y=c(d,".")?"property":"argument";g='The "'.concat(d,'" ').concat(y," ").concat(E," ").concat(i(f,"type"))}return g+=". Received type ".concat(typeof m),g},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",function(d){return"The "+d+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(d){return"Cannot call "+d+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(d){return"Unknown encoding: "+d},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n}),ql=de((e,t)=>{var r=Lr().codes.ERR_INVALID_OPT_VALUE;function n(i,a,s){return i.highWaterMark!=null?i.highWaterMark:a?i[s]:null}function o(i,a,s,c){var d=n(a,c,s);if(d!=null){if(!(isFinite(d)&&Math.floor(d)===d)||d<0)throw new r(c?s:"highWaterMark",d);return Math.floor(d)}return i.objectMode?16:16*1024}t.exports={getHighWaterMark:o}}),Wf=de((e,t)=>{Or(),t.exports=r;function r(o,i){if(n("noDeprecation"))return o;var a=!1;function s(){if(!a){if(n("throwDeprecation"))throw new Error(i);n("traceDeprecation")?console.trace(i):console.warn(i),a=!0}return o.apply(this,arguments)}return s}function n(o){try{if(!rt.localStorage)return!1}catch{return!1}var i=rt.localStorage[o];return i==null?!1:String(i).toLowerCase()==="true"}}),Kl=de((e,t)=>{Or(),Xt(),t.exports=I;function r(R){var w=this;this.next=null,this.entry=null,this.finish=function(){pe(w,R)}}var n;I.WritableState=O;var o={deprecate:Wf()},i=Pl(),a=di().Buffer,s=(typeof rt<"u"?rt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(R){return a.from(R)}function d(R){return a.isBuffer(R)||R instanceof s}var f=Gl(),m=ql().getHighWaterMark,E=Lr().codes,g=E.ERR_INVALID_ARG_TYPE,y=E.ERR_METHOD_NOT_IMPLEMENTED,x=E.ERR_MULTIPLE_CALLBACK,v=E.ERR_STREAM_CANNOT_PIPE,k=E.ERR_STREAM_DESTROYED,S=E.ERR_STREAM_NULL_VALUES,T=E.ERR_STREAM_WRITE_AFTER_END,C=E.ERR_UNKNOWN_ENCODING,A=f.errorOrDestroy;Kt()(I,i);function _(){}function O(R,w,z){n=n||Ar(),R=R||{},typeof z!="boolean"&&(z=w instanceof n),this.objectMode=!!R.objectMode,z&&(this.objectMode=this.objectMode||!!R.writableObjectMode),this.highWaterMark=m(this,R,"writableHighWaterMark",z),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var U=R.decodeStrings===!1;this.decodeStrings=!U,this.defaultEncoding=R.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ie){X(w,ie)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=R.emitClose!==!1,this.autoDestroy=!!R.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new r(this)}O.prototype.getBuffer=function(){for(var w=this.bufferedRequest,z=[];w;)z.push(w),w=w.next;return z},function(){try{Object.defineProperty(O.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var M;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(M=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(w){return M.call(this,w)?!0:this!==I?!1:w&&w._writableState instanceof O}})):M=function(w){return w instanceof this};function I(R){n=n||Ar();var w=this instanceof n;if(!w&&!M.call(I,this))return new I(R);this._writableState=new O(R,this,w),this.writable=!0,R&&(typeof R.write=="function"&&(this._write=R.write),typeof R.writev=="function"&&(this._writev=R.writev),typeof R.destroy=="function"&&(this._destroy=R.destroy),typeof R.final=="function"&&(this._final=R.final)),i.call(this)}I.prototype.pipe=function(){A(this,new v)};function H(R,w){var z=new T;A(R,z),Te.nextTick(w,z)}function te(R,w,z,U){var ie;return z===null?ie=new S:typeof z!="string"&&!w.objectMode&&(ie=new g("chunk",["string","Buffer"],z)),ie?(A(R,ie),Te.nextTick(U,ie),!1):!0}I.prototype.write=function(R,w,z){var U=this._writableState,ie=!1,B=!U.objectMode&&d(R);return B&&!a.isBuffer(R)&&(R=c(R)),typeof w=="function"&&(z=w,w=null),B?w="buffer":w||(w=U.defaultEncoding),typeof z!="function"&&(z=_),U.ending?H(this,z):(B||te(this,U,R,z))&&(U.pendingcb++,ie=W(this,U,B,R,w,z)),ie},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var R=this._writableState;R.corked&&(R.corked--,!R.writing&&!R.corked&&!R.bufferProcessing&&R.bufferedRequest&&re(this,R))},I.prototype.setDefaultEncoding=function(w){if(typeof w=="string"&&(w=w.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((w+"").toLowerCase())>-1))throw new C(w);return this._writableState.defaultEncoding=w,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function F(R,w,z){return!R.objectMode&&R.decodeStrings!==!1&&typeof w=="string"&&(w=a.from(w,z)),w}Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W(R,w,z,U,ie,B){if(!z){var P=F(w,U,ie);U!==P&&(z=!0,ie="buffer",U=P)}var p=w.objectMode?1:U.length;w.length+=p;var V=w.length<w.highWaterMark;if(V||(w.needDrain=!0),w.writing||w.corked){var j=w.lastBufferedRequest;w.lastBufferedRequest={chunk:U,encoding:ie,isBuf:z,callback:B,next:null},j?j.next=w.lastBufferedRequest:w.bufferedRequest=w.lastBufferedRequest,w.bufferedRequestCount+=1}else N(R,w,!1,p,U,ie,B);return V}function N(R,w,z,U,ie,B,P){w.writelen=U,w.writecb=P,w.writing=!0,w.sync=!0,w.destroyed?w.onwrite(new k("write")):z?R._writev(ie,w.onwrite):R._write(ie,B,w.onwrite),w.sync=!1}function G(R,w,z,U,ie){--w.pendingcb,z?(Te.nextTick(ie,U),Te.nextTick(Q,R,w),R._writableState.errorEmitted=!0,A(R,U)):(ie(U),R._writableState.errorEmitted=!0,A(R,U),Q(R,w))}function J(R){R.writing=!1,R.writecb=null,R.length-=R.writelen,R.writelen=0}function X(R,w){var z=R._writableState,U=z.sync,ie=z.writecb;if(typeof ie!="function")throw new x;if(J(z),w)G(R,z,U,w,ie);else{var B=K(z)||R.destroyed;!B&&!z.corked&&!z.bufferProcessing&&z.bufferedRequest&&re(R,z),U?Te.nextTick(ae,R,z,B,ie):ae(R,z,B,ie)}}function ae(R,w,z,U){z||Y(R,w),w.pendingcb--,U(),Q(R,w)}function Y(R,w){w.length===0&&w.needDrain&&(w.needDrain=!1,R.emit("drain"))}function re(R,w){w.bufferProcessing=!0;var z=w.bufferedRequest;if(R._writev&&z&&z.next){var U=w.bufferedRequestCount,ie=new Array(U),B=w.corkedRequestsFree;B.entry=z;for(var P=0,p=!0;z;)ie[P]=z,z.isBuf||(p=!1),z=z.next,P+=1;ie.allBuffers=p,N(R,w,!0,w.length,ie,"",B.finish),w.pendingcb++,w.lastBufferedRequest=null,B.next?(w.corkedRequestsFree=B.next,B.next=null):w.corkedRequestsFree=new r(w),w.bufferedRequestCount=0}else{for(;z;){var V=z.chunk,j=z.encoding,l=z.callback;if(N(R,w,!1,w.objectMode?1:V.length,V,j,l),z=z.next,w.bufferedRequestCount--,w.writing)break}z===null&&(w.lastBufferedRequest=null)}w.bufferedRequest=z,w.bufferProcessing=!1}I.prototype._write=function(R,w,z){z(new y("_write()"))},I.prototype._writev=null,I.prototype.end=function(R,w,z){var U=this._writableState;return typeof R=="function"?(z=R,R=null,w=null):typeof w=="function"&&(z=w,w=null),R!=null&&this.write(R,w),U.corked&&(U.corked=1,this.uncork()),U.ending||ne(this,U,z),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function K(R){return R.ending&&R.length===0&&R.bufferedRequest===null&&!R.finished&&!R.writing}function L(R,w){R._final(function(z){w.pendingcb--,z&&A(R,z),w.prefinished=!0,R.emit("prefinish"),Q(R,w)})}function Z(R,w){!w.prefinished&&!w.finalCalled&&(typeof R._final=="function"&&!w.destroyed?(w.pendingcb++,w.finalCalled=!0,Te.nextTick(L,R,w)):(w.prefinished=!0,R.emit("prefinish")))}function Q(R,w){var z=K(w);if(z&&(Z(R,w),w.pendingcb===0&&(w.finished=!0,R.emit("finish"),w.autoDestroy))){var U=R._readableState;(!U||U.autoDestroy&&U.endEmitted)&&R.destroy()}return z}function ne(R,w,z){w.ending=!0,Q(R,w),z&&(w.finished?Te.nextTick(z):R.once("finish",z)),w.ended=!0,R.writable=!1}function pe(R,w,z){var U=R.entry;for(R.entry=null;U;){var ie=U.callback;w.pendingcb--,ie(z),U=U.next}w.corkedRequestsFree.next=R}Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(w){this._writableState&&(this._writableState.destroyed=w)}}),I.prototype.destroy=f.destroy,I.prototype._undestroy=f.undestroy,I.prototype._destroy=function(R,w){w(R)}}),Ar=de((e,t)=>{Xt();var r=Object.keys||function(m){var E=[];for(var g in m)E.push(g);return E};t.exports=c;var n=Xl(),o=Kl();Kt()(c,n);for(var i=r(o.prototype),a=0;a<i.length;a++){var s=i[a];c.prototype[s]||(c.prototype[s]=o.prototype[s])}function c(m){if(!(this instanceof c))return new c(m);n.call(this,m),o.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",d)))}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function d(){this._writableState.ended||Te.nextTick(f,this)}function f(m){m.end()}Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(E){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=E,this._writableState.destroyed=E)}})}),Vf=de((e,t)=>{var r=di(),n=r.Buffer;function o(a,s){for(var c in a)s[c]=a[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=i);function i(a,s,c){return n(a,s,c)}o(n,i),i.from=function(a,s,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,s,c)},i.alloc=function(a,s,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var d=n(a);return s!==void 0?typeof c=="string"?d.fill(s,c):d.fill(s):d.fill(0),d},i.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},i.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}}),os=de(e=>{var t=Vf().Buffer,r=t.isEncoding||function(S){switch(S=""+S,S&&S.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(S){if(!S)return"utf8";for(var T;;)switch(S){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return S;default:if(T)return;S=(""+S).toLowerCase(),T=!0}}function o(S){var T=n(S);if(typeof T!="string"&&(t.isEncoding===r||!r(S)))throw new Error("Unknown encoding: "+S);return T||S}e.StringDecoder=i;function i(S){this.encoding=o(S);var T;switch(this.encoding){case"utf16le":this.text=E,this.end=g,T=4;break;case"utf8":this.fillLast=d,T=4;break;case"base64":this.text=y,this.end=x,T=3;break;default:this.write=v,this.end=k;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(T)}i.prototype.write=function(S){if(S.length===0)return"";var T,C;if(this.lastNeed){if(T=this.fillLast(S),T===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<S.length?T?T+this.text(S,C):this.text(S,C):T||""},i.prototype.end=m,i.prototype.text=f,i.prototype.fillLast=function(S){if(this.lastNeed<=S.length)return S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,this.lastTotal-this.lastNeed,0,S.length),this.lastNeed-=S.length};function a(S){return S<=127?0:S>>5===6?2:S>>4===14?3:S>>3===30?4:S>>6===2?-1:-2}function s(S,T,C){var A=T.length-1;if(A<C)return 0;var _=a(T[A]);return _>=0?(_>0&&(S.lastNeed=_-1),_):--A<C||_===-2?0:(_=a(T[A]),_>=0?(_>0&&(S.lastNeed=_-2),_):--A<C||_===-2?0:(_=a(T[A]),_>=0?(_>0&&(_===2?_=0:S.lastNeed=_-3),_):0))}function c(S,T,C){if((T[0]&192)!==128)return S.lastNeed=0,"�";if(S.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return S.lastNeed=1,"�";if(S.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return S.lastNeed=2,"�"}}function d(S){var T=this.lastTotal-this.lastNeed,C=c(this,S);if(C!==void 0)return C;if(this.lastNeed<=S.length)return S.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);S.copy(this.lastChar,T,0,S.length),this.lastNeed-=S.length}function f(S,T){var C=s(this,S,T);if(!this.lastNeed)return S.toString("utf8",T);this.lastTotal=C;var A=S.length-(C-this.lastNeed);return S.copy(this.lastChar,0,A),S.toString("utf8",T,A)}function m(S){var T=S&&S.length?this.write(S):"";return this.lastNeed?T+"�":T}function E(S,T){if((S.length-T)%2===0){var C=S.toString("utf16le",T);if(C){var A=C.charCodeAt(C.length-1);if(A>=55296&&A<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=S[S.length-1],S.toString("utf16le",T,S.length-1)}function g(S){var T=S&&S.length?this.write(S):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,C)}return T}function y(S,T){var C=(S.length-T)%3;return C===0?S.toString("base64",T):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=S[S.length-1]:(this.lastChar[0]=S[S.length-2],this.lastChar[1]=S[S.length-1]),S.toString("base64",T,S.length-C))}function x(S){var T=S&&S.length?this.write(S):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function v(S){return S.toString(this.encoding)}function k(S){return S&&S.length?this.write(S):""}}),Ds=de((e,t)=>
vendor: 4,275 bytes, line 64
64{var r=Lr().codes.ERR_STREAM_PREMATURE_CLOSE;function n(s){var c=!1;return function(){if(!c){c=!0;for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];s.apply(this,f)}}}function o(){}function i(s){return s.setHeader&&typeof s.abort=="function"}function a(s,c,d){if(typeof c=="function")return a(s,null,c);c||(c={}),d=n(d||o);var f=c.readable||c.readable!==!1&&s.readable,m=c.writable||c.writable!==!1&&s.writable,E=function(){s.writable||y()},g=s._writableState&&s._writableState.finished,y=function(){m=!1,g=!0,f||d.call(s)},x=s._readableState&&s._readableState.endEmitted,v=function(){f=!1,x=!0,m||d.call(s)},k=function(A){d.call(s,A)},S=function(){var A;if(f&&!x)return(!s._readableState||!s._readableState.ended)&&(A=new r),d.call(s,A);if(m&&!g)return(!s._writableState||!s._writableState.ended)&&(A=new r),d.call(s,A)},T=function(){s.req.on("finish",y)};return i(s)?(s.on("complete",y),s.on("abort",S),s.req?T():s.on("request",T)):m&&!s._writableState&&(s.on("end",E),s.on("close",E)),s.on("end",v),s.on("finish",y),c.error!==!1&&s.on("error",k),s.on("close",S),function(){s.removeListener("complete",y),s.removeListener("abort",S),s.removeListener("request",T),s.req&&s.req.removeListener("finish",y),s.removeListener("end",E),s.removeListener("close",E),s.removeListener("finish",y),s.removeListener("end",v),s.removeListener("error",k),s.removeListener("close",S)}}t.exports=a}),Gf=de((e,t)=>{Xt();var r;function n(C,A,_){return A=o(A),A in C?Object.defineProperty(C,A,{value:_,enumerable:!0,configurable:!0,writable:!0}):C[A]=_,C}function o(C){var A=i(C,"string");return typeof A=="symbol"?A:String(A)}function i(C,A){if(typeof C!="object"||C===null)return C;var _=C[Symbol.toPrimitive];if(_!==void 0){var O=_.call(C,A);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(C)}var a=Ds(),s=Symbol("lastResolve"),c=Symbol("lastReject"),d=Symbol("error"),f=Symbol("ended"),m=Symbol("lastPromise"),E=Symbol("handlePromise"),g=Symbol("stream");function y(C,A){return{value:C,done:A}}function x(C){var A=C[s];if(A!==null){var _=C[g].read();_!==null&&(C[m]=null,C[s]=null,C[c]=null,A(y(_,!1)))}}function v(C){Te.nextTick(x,C)}function k(C,A){return function(_,O){C.then(function(){if(A[f]){_(y(void 0,!0));return}A[E](_,O)},O)}}var S=Object.getPrototypeOf(function(){}),T=Object.setPrototypeOf((r={get stream(){return this[g]},next:function(){var A=this,_=this[d];if(_!==null)return Promise.reject(_);if(this[f])return Promise.resolve(y(void 0,!0));if(this[g].destroyed)return new Promise(function(H,te){Te.nextTick(function(){A[d]?te(A[d]):H(y(void 0,!0))})});var O=this[m],M;if(O)M=new Promise(k(O,this));else{var I=this[g].read();if(I!==null)return Promise.resolve(y(I,!1));M=new Promise(this[E])}return this[m]=M,M}},n(r,Symbol.asyncIterator,function(){return this}),n(r,"return",function(){var A=this;return new Promise(function(_,O){A[g].destroy(null,function(M){if(M){O(M);return}_(y(void 0,!0))})})}),r),S);t.exports=function(A){var _,O=Object.create(T,(_={},n(_,g,{value:A,writable:!0}),n(_,s,{value:null,writable:!0}),n(_,c,{value:null,writable:!0}),n(_,d,{value:null,writable:!0}),n(_,f,{value:A._readableState.endEmitted,writable:!0}),n(_,E,{value:function(I,H){var te=O[g].read();te?(O[m]=null,O[s]=null,O[c]=null,I(y(te,!1))):(O[s]=I,O[c]=H)},writable:!0}),_));return O[m]=null,a(A,function(M){if(M&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=O[c];I!==null&&(O[m]=null,O[s]=null,O[c]=null,I(M)),O[d]=M;return}var H=O[s];H!==null&&(O[m]=null,O[s]=null,O[c]=null,H(y(void 0,!0))),O[f]=!0}),A.on("readable",v.bind(null,O)),O}}),qf=de((e,t)=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}}),Xl=de((e,t)=>{Or(),Xt(),t.exports=H;var r;H.ReadableState=I,Fs().EventEmitter;var n=function(P,p){return P.listeners(p).length},o=Pl(),i=di().Buffer,a=(typeof rt<"u"?rt:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function s(B){return i.from(B)}function c(B){return i.isBuffer(B)||B instanceof a}var d=Vl(),f;d&&d.debuglog?f=d.debuglog("stream"):f=function(){};var m=Hf(),E=Gl(),g=ql().getHighWaterMark,y=Lr().codes,x=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,k=y.ERR_METHOD_NOT_IMPLEMENT
vendor: 9,135 bytes, line 64
64ED,S=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,T,C,A;Kt()(H,o);var _=E.errorOrDestroy,O=["error","close","destroy","pause","resume"];function M(B,P,p){if(typeof B.prependListener=="function")return B.prependListener(P,p);!B._events||!B._events[P]?B.on(P,p):Array.isArray(B._events[P])?B._events[P].unshift(p):B._events[P]=[p,B._events[P]]}function I(B,P,p){r=r||Ar(),B=B||{},typeof p!="boolean"&&(p=P instanceof r),this.objectMode=!!B.objectMode,p&&(this.objectMode=this.objectMode||!!B.readableObjectMode),this.highWaterMark=g(this,B,"readableHighWaterMark",p),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=B.emitClose!==!1,this.autoDestroy=!!B.autoDestroy,this.destroyed=!1,this.defaultEncoding=B.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,B.encoding&&(T||(T=os().StringDecoder),this.decoder=new T(B.encoding),this.encoding=B.encoding)}function H(B){if(r=r||Ar(),!(this instanceof H))return new H(B);var P=this instanceof r;this._readableState=new I(B,this,P),this.readable=!0,B&&(typeof B.read=="function"&&(this._read=B.read),typeof B.destroy=="function"&&(this._destroy=B.destroy)),o.call(this)}Object.defineProperty(H.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(P){this._readableState&&(this._readableState.destroyed=P)}}),H.prototype.destroy=E.destroy,H.prototype._undestroy=E.undestroy,H.prototype._destroy=function(B,P){P(B)},H.prototype.push=function(B,P){var p=this._readableState,V;return p.objectMode?V=!0:typeof B=="string"&&(P=P||p.defaultEncoding,P!==p.encoding&&(B=i.from(B,P),P=""),V=!0),te(this,B,P,!1,V)},H.prototype.unshift=function(B){return te(this,B,null,!0,!1)};function te(B,P,p,V,j){f("readableAddChunk",P);var l=B._readableState;if(P===null)l.reading=!1,X(B,l);else{var u;if(j||(u=W(l,P)),u)_(B,u);else if(l.objectMode||P&&P.length>0)if(typeof P!="string"&&!l.objectMode&&Object.getPrototypeOf(P)!==i.prototype&&(P=s(P)),V)l.endEmitted?_(B,new S):F(B,l,P,!0);else if(l.ended)_(B,new v);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!p?(P=l.decoder.write(P),l.objectMode||P.length!==0?F(B,l,P,!1):re(B,l)):F(B,l,P,!1)}else V||(l.reading=!1,re(B,l))}return!l.ended&&(l.length<l.highWaterMark||l.length===0)}function F(B,P,p,V){P.flowing&&P.length===0&&!P.sync?(P.awaitDrain=0,B.emit("data",p)):(P.length+=P.objectMode?1:p.length,V?P.buffer.unshift(p):P.buffer.push(p),P.needReadable&&ae(B)),re(B,P)}function W(B,P){var p;return!c(P)&&typeof P!="string"&&P!==void 0&&!B.objectMode&&(p=new x("chunk",["string","Buffer","Uint8Array"],P)),p}H.prototype.isPaused=function(){return this._readableState.flowing===!1},H.prototype.setEncoding=function(B){T||(T=os().StringDecoder);var P=new T(B);this._readableState.decoder=P,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,V="";p!==null;)V+=P.write(p.data),p=p.next;return this._readableState.buffer.clear(),V!==""&&this._readableState.buffer.push(V),this._readableState.length=V.length,this};var N=1073741824;function G(B){return B>=N?B=N:(B--,B|=B>>>1,B|=B>>>2,B|=B>>>4,B|=B>>>8,B|=B>>>16,B++),B}function J(B,P){return B<=0||P.length===0&&P.ended?0:P.objectMode?1:B!==B?P.flowing&&P.length?P.buffer.head.data.length:P.length:(B>P.highWaterMark&&(P.highWaterMark=G(B)),B<=P.length?B:P.ended?P.length:(P.needReadable=!0,0))}H.prototype.read=function(B){f("read",B),B=parseInt(B,10);var P=this._readableState,p=B;if(B!==0&&(P.emittedReadable=!1),B===0&&P.needReadable&&((P.highWaterMark!==0?P.length>=P.highWaterMark:P.length>0)||P.ended))return f("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?z(this):ae(this),null;if(B=J(B,P),B===0&&P.ended)return P.length===0&&z(this),null;var V=P.needReadable;f("need readable",V),(P.length===0||P.length-B<P.highWaterMark)&&(V=!0,f("length less than watermark",V)),P.ended||P.reading?(V=!1,f("reading or ended",V)):V&&(f("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(B=J(p,P)));var j;return B>0?j=w(B,P):j=null,j===null?(P.needReadable=P.length<=P.highWaterMark,B=0):(P.length-=B,P.awaitDrain=0),P.length===0&&(P.ended||(P.needReadable=!0),p!==B&&P.ended&&z(this)),j!==null&&this.emit("data",j),j};function X(B,P){if(f("onEofChunk"),!P.ended){if(P.decoder){var p=P.decoder.end();p&&p.length&&(P.buffer.push(p),P.length+=P.objectMode?1:p.length)}P.ended=!0,P.sync?ae(B):(P.needReadable=!1,P.emittedReadable||(P.emittedReadable=!0,Y(B)))}}function ae(B){var P=B._readableState;f("emitReadable",P.needReadable,P.emittedReadable),P.needReadable=!1,P.emittedReadable||(f("emitReadable",P.flowing),P.emittedReadable=!0,Te.nextTick(Y,B))}function Y(B){var P=B._readableState;f("emitReadable_",P.destroyed,P.length,P.ended),!P.destroyed&&(P.length||P.ended)&&(B.emit("readable"),P.emittedReadable=!1),P.needReadable=!P.flowing&&!P.ended&&P.length<=P.highWaterMark,R(B)}function re(B,P){P.readingMore||(P.readingMore=!0,Te.nextTick(K,B,P))}function K(B,P){for(;!P.reading&&!P.ended&&(P.length<P.highWaterMark||P.flowing&&P.length===0);){var p=P.length;if(f("maybeReadMore read 0"),B.read(0),p===P.length)break}P.readingMore=!1}H.prototype._read=function(B){_(this,new k("_read()"))},H.prototype.pipe=function(B,P){var p=this,V=this._readableState;switch(V.pipesCount){case 0:V.pipes=B;break;case 1:V.pipes=[V.pipes,B];break;default:V.pipes.push(B);break}V.pipesCount+=1,f("pipe count=%d opts=%j",V.pipesCount,P);var j=(!P||P.end!==!1)&&B!==Te.stdout&&B!==Te.stderr?u:me;V.endEmitted?Te.nextTick(j):p.once("end",j),B.on("unpipe",l);function l(ye,_e){f("onunpipe"),ye===p&&_e&&_e.hasUnpiped===!1&&(_e.hasUnpiped=!0,q())}function u(){f("onend"),B.end()}var b=L(p);B.on("drain",b);var D=!1;function q(){f("cleanup"),B.removeListener("close",ue),B.removeListener("finish",le),B.removeListener("drain",b),B.removeListener("error",se),B.removeListener("unpipe",l),p.removeListener("end",u),p.removeListener("end",me),p.removeListener("data",$),D=!0,V.awaitDrain&&(!B._writableState||B._writableState.needDrain)&&b()}p.on("data",$);function $(ye){f("ondata");var _e=B.write(ye);f("dest.write",_e),_e===!1&&((V.pipesCount===1&&V.pipes===B||V.pipesCount>1&&ie(V.pipes,B)!==-1)&&!D&&(f("false write response, pause",V.awaitDrain),V.awaitDrain++),p.pause())}function se(ye){f("onerror",ye),me(),B.removeListener("error",se),n(B,"error")===0&&_(B,ye)}M(B,"error",se);function ue(){B.removeListener("finish",le),me()}B.once("close",ue);function le(){f("onfinish"),B.removeListener("close",ue),me()}B.once("finish",le);function me(){f("unpipe"),p.unpipe(B)}return B.emit("pipe",p),V.flowing||(f("pipe resume"),p.resume()),B};function L(B){return function(){var p=B._readableState;f("pipeOnDrain",p.awaitDrain),p.awaitDrain&&p.awaitDrain--,p.awaitDrain===0&&n(B,"data")&&(p.flowing=!0,R(B))}}H.prototype.unpipe=function(B){var P=this._readableState,p={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return B&&B!==P.pipes?this:(B||(B=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,B&&B.emit("unpipe",this,p),this);if(!B){var V=P.pipes,j=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var l=0;l<j;l++)V[l].emit("unpipe",this,{hasUnpiped:!1});return this}var u=ie(P.pipes,B);return u===-1?this:(P.pipes.splice(u,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),B.emit("unpipe",this,p),this)},H.prototype.on=function(B,P){var p=o.prototype.on.call(this,B,P),V=this._readableState;return B==="data"?(V.readableListening=this.listenerCount("readable")>0,V.flowing!==!1&&this.resume()):B==="readable"&&!V.endEmitted&&!V.readableListening&&(V.readableListening=V.needReadable=!0,V.flowing=!1,V.emittedReadable=!1,f("on readable",V.length,V.reading),V.length?ae(this):V.reading||Te.nextTick(Q,this)),p},H.prototype.addListener=H.prototype.on,H.prototype.removeListener=function(B,P){var p=o.prototype.removeListener.call(this,B,P);return B==="readable"&&Te.nextTick(Z,this),p},H.prototype.removeAllListeners=function(B){var P=o.prototype.removeAllListeners.apply(this,arguments);return(B==="readable"||B===void 0)&&Te.nextTick(Z,this),P};function Z(B){var P=B._readableState;P.readableListening=B.listenerCount("readable")>0,P.resumeScheduled&&!P.paused?P.flowing=!0:B.listenerCount("data")>0&&B.resume()}function Q(B){f("readable nexttick read 0"),B.read(0)}H.prototype.resume=function(){var B=this._readableState;return B.flowing||(f("resume"),B.flowing=!B.readableListening,ne(this,B)),B.paused=!1,this};function ne(B,P){P.resumeScheduled||(P.resumeScheduled=!0,Te.nextTick(pe,B,P))}function pe(B,P){f("resume",P.reading),P.reading||B.read(0),P.resumeScheduled=!1,B.emit("resume"),R(B),P.flowing&&!P.reading&&B.read(0)}H.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit
vendor: 4,149 bytes, line 64
64("pause")),this._readableState.paused=!0,this};function R(B){var P=B._readableState;for(f("flow",P.flowing);P.flowing&&B.read()!==null;);}H.prototype.wrap=function(B){var P=this,p=this._readableState,V=!1;B.on("end",function(){if(f("wrapped end"),p.decoder&&!p.ended){var u=p.decoder.end();u&&u.length&&P.push(u)}P.push(null)}),B.on("data",function(u){f("wrapped data"),p.decoder&&(u=p.decoder.write(u)),!(p.objectMode&&u==null)&&(!p.objectMode&&(!u||!u.length)||P.push(u)||(V=!0,B.pause()))});for(var j in B)this[j]===void 0&&typeof B[j]=="function"&&(this[j]=function(b){return function(){return B[b].apply(B,arguments)}}(j));for(var l=0;l<O.length;l++)B.on(O[l],this.emit.bind(this,O[l]));return this._read=function(u){f("wrapped _read",u),V&&(V=!1,B.resume())},this},typeof Symbol=="function"&&(H.prototype[Symbol.asyncIterator]=function(){return C===void 0&&(C=Gf()),C(this)}),Object.defineProperty(H.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(H.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(H.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(P){this._readableState&&(this._readableState.flowing=P)}}),H._fromList=w,Object.defineProperty(H.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function w(B,P){if(P.length===0)return null;var p;return P.objectMode?p=P.buffer.shift():!B||B>=P.length?(P.decoder?p=P.buffer.join(""):P.buffer.length===1?p=P.buffer.first():p=P.buffer.concat(P.length),P.buffer.clear()):p=P.buffer.consume(B,P.decoder),p}function z(B){var P=B._readableState;f("endReadable",P.endEmitted),P.endEmitted||(P.ended=!0,Te.nextTick(U,P,B))}function U(B,P){if(f("endReadableNT",B.endEmitted,B.length),!B.endEmitted&&B.length===0&&(B.endEmitted=!0,P.readable=!1,P.emit("end"),B.autoDestroy)){var p=P._writableState;(!p||p.autoDestroy&&p.finished)&&P.destroy()}}typeof Symbol=="function"&&(H.from=function(B,P){return A===void 0&&(A=qf()),A(H,B,P)});function ie(B,P){for(var p=0,V=B.length;p<V;p++)if(B[p]===P)return p;return-1}}),Zl=de((e,t)=>{t.exports=d;var r=Lr().codes,n=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,i=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,s=Ar();Kt()(d,s);function c(E,g){var y=this._transformState;y.transforming=!1;var x=y.writecb;if(x===null)return this.emit("error",new o);y.writechunk=null,y.writecb=null,g!=null&&this.push(g),x(E);var v=this._readableState;v.reading=!1,(v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}function d(E){if(!(this instanceof d))return new d(E);s.call(this,E),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",f)}function f(){var E=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(g,y){m(E,g,y)}):m(this,null,null)}d.prototype.push=function(E,g){return this._transformState.needTransform=!1,s.prototype.push.call(this,E,g)},d.prototype._transform=function(E,g,y){y(new n("_transform()"))},d.prototype._write=function(E,g,y){var x=this._transformState;if(x.writecb=y,x.writechunk=E,x.writeencoding=g,!x.transforming){var v=this._readableState;(x.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},d.prototype._read=function(E){var g=this._transformState;g.writechunk!==null&&!g.transforming?(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform)):g.needTransform=!0},d.prototype._destroy=function(E,g){s.prototype._destroy.call(this,E,function(y){g(y)})};function m(E,g,y){if(g)return E.emit("error",g);if(y!=null&&E.push(y),E._writableState.length)throw new a;if(E._transformState.transforming)throw new i;return E.push(null)}}),Kf=de((e,t)=>
64{t.exports=n;var r=Zl();Kt()(n,r);function n(o){if(!(this instanceof n))return new n(o);r.call(this,o)}n.prototype._transform=function(o,i,a){a(null,o)}}),Xf=de((e,t)=>{var r;function n(y){var x=!1;return function(){x||(x=!0,y.apply(void 0,arguments))}}var o=Lr().codes,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(y){if(y)throw y}function c(y){return y.setHeader&&typeof y.abort=="function"}function d(y,x,v,k){k=n(k);var S=!1;y.on("close",function(){S=!0}),r===void 0&&(r=Ds()),r(y,{readable:x,writable:v},function(C){if(C)return k(C);S=!0,k()});var T=!1;return function(C){if(!S&&!T){if(T=!0,c(y))return y.abort();if(typeof y.destroy=="function")return y.destroy();k(C||new a("pipe"))}}}function f(y){y()}function m(y,x){return y.pipe(x)}function E(y){return!y.length||typeof y[y.length-1]!="function"?s:y.pop()}function g(){for(var y=arguments.length,x=new Array(y),v=0;v<y;v++)x[v]=arguments[v];var k=E(x);if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new i("streams");var S,T=x.map(function(C,A){var _=A<x.length-1;return d(C,_,A>0,function(O){S||(S=O),O&&T.forEach(f),!_&&(T.forEach(f),k(S))})});return x.reduce(m)}t.exports=g}),Ms=de((e,t)=>{t.exports=n;var r=Fs().EventEmitter;Kt()(n,r),n.Readable=Xl(),n.Writable=Kl(),n.Duplex=Ar(),n.Transform=Zl(),n.PassThrough=Kf(),n.finished=Ds(),n.pipeline=Xf(),n.Stream=n;function n(){r.call(this)}n.prototype.pipe=function(o,i){var a=this;function s(y){o.writable&&o.write(y)===!1&&a.pause&&a.pause()}a.on("data",s);function c(){a.readable&&a.resume&&a.resume()}o.on("drain",c),!o._isStdio&&(!i||i.end!==!1)&&(a.on("end",f),a.on("close",m));var d=!1;function f(){d||(d=!0,o.end())}function m(){d||(d=!0,typeof o.destroy=="function"&&o.destroy())}function E(y){if(g(),r.listenerCount(this,"error")===0)throw y}a.on("error",E),o.on("error",E);function g(){a.removeListener("data",s),o.removeListener("drain",c),a.removeListener("end",f),a.removeListener("close",m),a.removeListener("error",E),o.removeListener("error",E),a.removeListener("end",g),a.removeListener("close",g),o.removeListener("close",g)}return a.on("end",g),a.on("close",g),o.on("close",g),o.emit("pipe",a),o}}),Zf=de(e=>{(function(t){t.parser=function(R,w){return new n(R,w)},t.SAXParser=n,t.SAXStream=f,t.createStream=d,t.MAX_BUFFER_LENGTH=64*1024;var r=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];t.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(R,w){if(!(this instanceof n))return new n(R,w);var z=this;i(z),z.q=z.c="",z.bufferCheckPosition=t.MAX_BUFFER_LENGTH,z.opt=w||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!R,z.noscript=!!(R||z.opt.noscript),z.state=I.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(x)),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),te(z,"onready")}Object.create||(Object.create=function(R){function w(){}return w.prototype=R,new w}),Object.keys||(Object.keys=function(R){var w=[];for(var z in R)R.hasOwnProperty(z)&&w.push(z);return w});function o(R){for(var w=Math.max(t.MAX_BUFFER_LENGTH,10),z=0,U=0,ie=r.length;U<ie;U++){var B=R[r[U]].length;if(B>w)switch(r[U]){case"textNode":W(R);break;case"cdata":F(R,"oncdata",R.cdata),R.cdata="";break;case"script":F(R,"onscript",R.script),R.script="";break;default:G(R,"Max buffer length exceeded: "+r[U])}z=Math.max(z,B)}R.bufferCheckPosition=t.MAX_BUFFER_LENGTH-z+R.position}function i(R){for(var w=0,z=r.length;w<z;w++)R[r[w]]=""}function a(R){W(R),R.cdata!==""&&(F(R,"oncdata",R.cdata),R.cdata=""),R.script!==""&&(F(R,"onscript",R.script),R.script="")}n.prototype={end:function(){J(this)},write:pe,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var s;try{s=Ms().Stream}catch{s=function(){}}var c=t.EVENTS.filter(function(R){return R!=="error"&&R!=="end"});function d(R,w){return new f(R,w)}function f(R,w){if(!(this instanceof f))return new f(R,w);s.apply(this),this._parser=new n(R,w),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(U){z.emit("error",U),z._parser.error=null}
vendor: 29,231 bytes, lines 64-74
64,this._decoder=null,c.forEach(function(U){Object.defineProperty(z,"on"+U,{get:function(){return z._parser["on"+U]},set:function(ie){if(!ie)return z.removeAllListeners(U),z._parser["on"+U]=ie,ie;z.on(U,ie)},enumerable:!0,configurable:!1})})}f.prototype=Object.create(s.prototype,{constructor:{value:f}}),f.prototype.write=function(R){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(R)){if(!this._decoder){var w=os().StringDecoder;this._decoder=new w("utf8")}R=this._decoder.write(R)}return this._parser.write(R.toString()),this.emit("data",R),!0},f.prototype.end=function(R){return R&&R.length&&this.write(R),this._parser.end(),!0},f.prototype.on=function(R,w){var z=this;return!z._parser["on"+R]&&c.indexOf(R)!==-1&&(z._parser["on"+R]=function(){var U=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);U.splice(0,0,R),z.emit.apply(z,U)}),s.prototype.on.call(z,R,w)};var m="[CDATA[",E="DOCTYPE",g="http://www.w3.org/XML/1998/namespace",y="http://www.w3.org/2000/xmlns/",x={xml:g,xmlns:y},v=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,k=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,S=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,T=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function C(R){return R===" "||R===` 65`||R==="\r"||R===" "}function A(R){return R==='"'||R==="'"}function _(R){return R===">"||C(R)}function O(R,w){return R.test(w)}function M(R,w){return!O(R,w)}var I=0;t.STATE={BEGIN:I++,BEGIN_WHITESPACE:I++,TEXT:I++,TEXT_ENTITY:I++,OPEN_WAKA:I++,SGML_DECL:I++,SGML_DECL_QUOTED:I++,DOCTYPE:I++,DOCTYPE_QUOTED:I++,DOCTYPE_DTD:I++,DOCTYPE_DTD_QUOTED:I++,COMMENT_STARTING:I++,COMMENT:I++,COMMENT_ENDING:I++,COMMENT_ENDED:I++,CDATA:I++,CDATA_ENDING:I++,CDATA_ENDING_2:I++,PROC_INST:I++,PROC_INST_BODY:I++,PROC_INST_ENDING:I++,OPEN_TAG:I++,OPEN_TAG_SLASH:I++,ATTRIB:I++,ATTRIB_NAME:I++,ATTRIB_NAME_SAW_WHITE:I++,ATTRIB_VALUE:I++,ATTRIB_VALUE_QUOTED:I++,ATTRIB_VALUE_CLOSED:I++,ATTRIB_VALUE_UNQUOTED:I++,ATTRIB_VALUE_ENTITY_Q:I++,ATTRIB_VALUE_ENTITY_U:I++,CLOSE_TAG:I++,CLOSE_TAG_SAW_WHITE:I++,SCRIPT:I++,SCRIPT_ENDING:I++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach(function(R){var w=t.ENTITIES[R],z=typeof w=="number"?String.fromCharCode(w):w;t.ENTITIES[R]=z});for(var H in t.STATE)t.STATE[t.STATE[H]]=H;I=t.STATE;function te(R,w,z){R[w]&&R[w](z)}function F(R,w,z){R.textNode&&W(R),te(R,w,z)}function W(R){R.textNode=N(R.opt,R.textNode),R.textNode&&te(R,"ontext",R.textNode),R.textNode=""}function N(R,w){return R.trim&&(w=w.trim()),R.normalize&&(w=w.replace(/\s+/g," ")),w}function G(R,w){return W(R),R.trackPosition&&(w+=` 66Line: `+R.line+` 67Column: `+R.column+` 68Char: `+R.c),w=new Error(w),R.error=w,te(R,"onerror",w),R}function J(R){return R.sawRoot&&!R.closedRoot&&X(R,"Unclosed root tag"),R.state!==I.BEGIN&&R.state!==I.BEGIN_WHITESPACE&&R.state!==I.TEXT&&G(R,"Unexpected end"),W(R),R.c="",R.closed=!0,te(R,"onend"),n.call(R,R.strict,R.opt),R}function X(R,w){if(typeof R!="object"||!(R instanceof n))throw new Error("bad call to strictFail");R.strict&&G(R,w)}function ae(R){R.strict||(R.tagName=R.tagName[R.looseCase]());var w=R.tags[R.tags.length-1]||R,z=R.tag={name:R.tagName,attributes:{}};R.opt.xmlns&&(z.ns=w.ns),R.attribList.length=0,F(R,"onopentagstart",z)}function Y(R,w){var z=R.indexOf(":")<0?["",R]:R.split(":"),U=z[0],ie=z[1];return w&&R==="xmlns"&&(U="xmlns",ie=""),{prefix:U,local:ie}}function re(R){if(R.strict||(R.attribName=R.attribName[R.looseCase]()),R.attribList.indexOf(R.attribName)!==-1||R.tag.attributes.hasOwnProperty(R.attribName)){R.attribName=R.attribValue="";return}if(R.opt.xmlns){var w=Y(R.attribName,!0),z=w.prefix,U=w.local;if(z==="xmlns")if(U==="xml"&&R.attribValue!==g)X(R,"xml: prefix must be bound to "+g+` 69Actual: `+R.attribValue);else if(U==="xmlns"&&R.attribValue!==y)X(R,"xmlns: prefix must be bound to "+y+` 70Actual: `+R.attribValue);else{var ie=R.tag,B=R.tags[R.tags.length-1]||R;ie.ns===B.ns&&(ie.ns=Object.create(B.ns)),ie.ns[U]=R.attribValue}R.attribList.push([R.attribName,R.attribValue])}else R.tag.attributes[R.attribName]=R.attribValue,F(R,"onattribute",{name:R.attribName,value:R.attribValue});R.attribName=R.attribValue=""}function K(R,w){if(R.opt.xmlns){var z=R.tag,U=Y(R.tagName);z.prefix=U.prefix,z.local=U.local,z.uri=z.ns[U.prefix]||"",z.prefix&&!z.uri&&(X(R,"Unbound namespace prefix: "+JSON.stringify(R.tagName)),z.uri=U.prefix);var ie=R.tags[R.tags.length-1]||R;z.ns&&ie.ns!==z.ns&&Object.keys(z.ns).forEach(function($){F(R,"onopennamespace",{prefix:$,uri:z.ns[$]})});for(var B=0,P=R.attribList.length;B<P;B++){var p=R.attribList[B],V=p[0],j=p[1],l=Y(V,!0),u=l.prefix,b=l.local,D=u===""?"":z.ns[u]||"",q={name:V,value:j,prefix:u,local:b,uri:D};u&&u!=="xmlns"&&!D&&(X(R,"Unbound namespace prefix: "+JSON.stringify(u)),q.uri=u),R.tag.attributes[V]=q,F(R,"onattribute",q)}R.attribList.length=0}R.tag.isSelfClosing=!!w,R.sawRoot=!0,R.tags.push(R.tag),F(R,"onopentag",R.tag),w||(!R.noscript&&R.tagName.toLowerCase()==="script"?R.state=I.SCRIPT:R.state=I.TEXT,R.tag=null,R.tagName=""),R.attribName=R.attribValue="",R.attribList.length=0}function L(R){if(!R.tagName){X(R,"Weird empty close tag."),R.textNode+="</>",R.state=I.TEXT;return}if(R.script){if(R.tagName!=="script"){R.script+="</"+R.tagName+">",R.tagName="",R.state=I.SCRIPT;return}F(R,"onscript",R.script),R.script=""}var w=R.tags.length,z=R.tagName;R.strict||(z=z[R.looseCase]());for(var U=z;w--&&R.tags[w].name!==U;)X(R,"Unexpected close tag");if(w<0){X(R,"Unmatched closing tag: "+R.tagName),R.textNode+="</"+R.tagName+">",R.state=I.TEXT;return}R.tagName=z;for(var ie=R.tags.length;ie-- >w;){var B=R.tag=R.tags.pop();R.tagName=R.tag.name,F(R,"onclosetag",R.tagName);var P={};for(var p in B.ns)P[p]=B.ns[p];var V=R.tags[R.tags.length-1]||R;R.opt.xmlns&&B.ns!==V.ns&&Object.keys(B.ns).forEach(function(j){var l=B.ns[j];F(R,"onclosenamespace",{prefix:j,uri:l})})}w===0&&(R.closedRoot=!0),R.tagName=R.attribValue=R.attribName="",R.attribList.length=0,R.state=I.TEXT}function Z(R){var w=R.entity,z=w.toLowerCase(),U,ie="";return R.ENTITIES[w]?R.ENTITIES[w]:R.ENTITIES[z]?R.ENTITIES[z]:(w=z,w.charAt(0)==="#"&&(w.charAt(1)==="x"?(w=w.slice(2),U=parseInt(w,16),ie=U.toString(16)):(w=w.slice(1),U=parseInt(w,10),ie=U.toString(10))),w=w.replace(/^0+/,""),isNaN(U)||ie.toLowerCase()!==w?(X(R,"Invalid character entity"),"&"+R.entity+";"):String.fromCodePoint(U))}function Q(R,w){w==="<"?(R.state=I.OPEN_WAKA,R.startTagPosition=R.position):C(w)||(X(R,"Non-whitespace before first tag."),R.textNode=w,R.state=I.TEXT)}function ne(R,w){var z="";return w<R.length&&(z=R.charAt(w)),z}function pe(R){var w=this;if(this.error)throw this.error;if(w.closed)return G(w,"Cannot write after close. Assign an onready handler.");if(R===null)return J(w);typeof R=="object"&&(R=R.toString());for(var z=0,U="";U=ne(R,z++),w.c=U,!!U;)switch(w.trackPosition&&(w.position++,U===` 71`?(w.line++,w.column=0):w.column++),w.state){case I.BEGIN:if(w.state=I.BEGIN_WHITESPACE,U==="\uFEFF")continue;Q(w,U);continue;case I.BEGIN_WHITESPACE:Q(w,U);continue;case I.TEXT:if(w.sawRoot&&!w.closedRoot){for(var ie=z-1;U&&U!=="<"&&U!=="&";)U=ne(R,z++),U&&w.trackPosition&&(w.position++,U===` 72`?(w.line++,w.column=0):w.column++);w.textNode+=R.substring(ie,z-1)}U==="<"&&!(w.sawRoot&&w.closedRoot&&!w.strict)?(w.state=I.OPEN_WAKA,w.startTagPosition=w.position):(!C(U)&&(!w.sawRoot||w.closedRoot)&&X(w,"Text data outside of root node."),U==="&"?w.state=I.TEXT_ENTITY:w.textNode+=U);continue;case I.SCRIPT:U==="<"?w.state=I.SCRIPT_ENDING:w.script+=U;continue;case I.SCRIPT_ENDING:U==="/"?w.state=I.CLOSE_TAG:(w.script+="<"+U,w.state=I.SCRIPT);continue;case I.OPEN_WAKA:if(U==="!")w.state=I.SGML_DECL,w.sgmlDecl="";else if(!C(U))if(O(v,U))w.state=I.OPEN_TAG,w.tagName=U;else if(U==="/")w.state=I.CLOSE_TAG,w.tagName="";else if(U==="?")w.state=I.PROC_INST,w.procInstName=w.procInstBody="";else{if(X(w,"Unencoded <"),w.startTagPosition+1<w.position){var B=w.position-w.startTagPosition;U=new Array(B).join(" ")+U}w.textNode+="<"+U,w.state=I.TEXT}continue;case I.SGML_DECL:(w.sgmlDecl+U).toUpperCase()===m?(F(w,"onopencdata"),w.state=I.CDATA,w.sgmlDecl="",w.cdata=""):w.sgmlDecl+U==="--"?(w.state=I.COMMENT,w.comment="",w.sgmlDecl=""):(w.sgmlDecl+U).toUpperCase()===E?(w.state=I.DOCTYPE,(w.doctype||w.sawRoot)&&X(w,"Inappropriately located doctype declaration"),w.doctype="",w.sgmlDecl=""):U===">"?(F(w,"onsgmldeclaration",w.sgmlDecl),w.sgmlDecl="",w.state=I.TEXT):(A(U)&&(w.state=I.SGML_DECL_QUOTED),w.sgmlDecl+=U);continue;case I.SGML_DECL_QUOTED:U===w.q&&(w.state=I.SGML_DECL,w.q=""),w.sgmlDecl+=U;continue;case I.DOCTYPE:U===">"?(w.state=I.TEXT,F(w,"ondoctype",w.doctype),w.doctype=!0):(w.doctype+=U,U==="["?w.state=I.DOCTYPE_DTD:A(U)&&(w.state=I.DOCTYPE_QUOTED,w.q=U));continue;case I.DOCTYPE_QUOTED:w.doctype+=U,U===w.q&&(w.q="",w.state=I.DOCTYPE);continue;case I.DOCTYPE_DTD:w.doctype+=U,U==="]"?w.state=I.DOCTYPE:A(U)&&(w.state=I.DOCTYPE_DTD_QUOTED,w.q=U);continue;case I.DOCTYPE_DTD_QUOTED:w.doctype+=U,U===w.q&&(w.state=I.DOCTYPE_DTD,w.q="");continue;case I.COMMENT:U==="-"?w.state=I.COMMENT_ENDING:w.comment+=U;continue;case I.COMMENT_ENDING:U==="-"?(w.state=I.COMMENT_ENDED,w.comment=N(w.opt,w.comment),w.comment&&F(w,"oncomment",w.comment),w.comment=""):(w.comment+="-"+U,w.state=I.COMMENT);continue;case I.COMMENT_ENDED:U!==">"?(X(w,"Malformed comment"),w.comment+="--"+U,w.state=I.COMMENT):w.state=I.TEXT;continue;case I.CDATA:U==="]"?w.state=I.CDATA_ENDING:w.cdata+=U;continue;case I.CDATA_ENDING:U==="]"?w.state=I.CDATA_ENDING_2:(w.cdata+="]"+U,w.state=I.CDATA);continue;case I.CDATA_ENDING_2:U===">"?(w.cdata&&F(w,"oncdata",w.cdata),F(w,"onclosecdata"),w.cdata="",w.state=I.TEXT):U==="]"?w.cdata+="]":(w.cdata+="]]"+U,w.state=I.CDATA);continue;case I.PROC_INST:U==="?"?w.state=I.PROC_INST_ENDING:C(U)?w.state=I.PROC_INST_BODY:w.procInstName+=U;continue;case I.PROC_INST_BODY:if(!w.procInstBody&&C(U))continue;U==="?"?w.state=I.PROC_INST_ENDING:w.procInstBody+=U;continue;case I.PROC_INST_ENDING:U===">"?(F(w,"onprocessinginstruction",{name:w.procInstName,body:w.procInstBody}),w.procInstName=w.procInstBody="",w.state=I.TEXT):(w.procInstBody+="?"+U,w.state=I.PROC_INST_BODY);continue;case I.OPEN_TAG:O(k,U)?w.tagName+=U:(ae(w),U===">"?K(w):U==="/"?w.state=I.OPEN_TAG_SLASH:(C(U)||X(w,"Invalid character in tag name"),w.state=I.ATTRIB));continue;case I.OPEN_TAG_SLASH:U===">"?(K(w,!0),L(w)):(X(w,"Forward-slash in opening tag not followed by >"),w.state=I.ATTRIB);continue;case I.ATTRIB:if(C(U))continue;U===">"?K(w):U==="/"?w.state=I.OPEN_TAG_SLASH:O(v,U)?(w.attribName=U,w.attribValue="",w.state=I.ATTRIB_NAME):X(w,"Invalid attribute name");continue;case I.ATTRIB_NAME:U==="="?w.state=I.ATTRIB_VALUE:U===">"?(X(w,"Attribute without value"),w.attribValue=w.attribName,re(w),K(w)):C(U)?w.state=I.ATTRIB_NAME_SAW_WHITE:O(k,U)?w.attribName+=U:X(w,"Invalid attribute name");continue;case I.ATTRIB_NAME_SAW_WHITE:if(U==="=")w.state=I.ATTRIB_VALUE;else{if(C(U))continue;X(w,"Attribute without value"),w.tag.attributes[w.attribName]="",w.attribValue="",F(w,"onattribute",{name:w.attribName,value:""}),w.attribName="",U===">"?K(w):O(v,U)?(w.attribName=U,w.state=I.ATTRIB_NAME):(X(w,"Invalid attribute name"),w.state=I.ATTRIB)}continue;case I.ATTRIB_VALUE:if(C(U))continue;A(U)?(w.q=U,w.state=I.ATTRIB_VALUE_QUOTED):(X(w,"Unquoted attribute value"),w.state=I.ATTRIB_VALUE_UNQUOTED,w.attribValue=U);continue;case I.ATTRIB_VALUE_QUOTED:if(U!==w.q){U==="&"?w.state=I.ATTRIB_VALUE_ENTITY_Q:w.attribValue+=U;continue}re(w),w.q="",w.state=I.ATTRIB_VALUE_CLOSED;continue;case I.ATTRIB_VALUE_CLOSED:C(U)?w.state=I.ATTRIB:U===">"?K(w):U==="/"?w.state=I.OPEN_TAG_SLASH:O(v,U)?(X(w,"No whitespace between attributes"),w.attribName=U,w.attribValue="",w.state=I.ATTRIB_NAME):X(w,"Invalid attribute name");continue;case I.ATTRIB_VALUE_UNQUOTED:if(!_(U)){U==="&"?w.state=I.ATTRIB_VALUE_ENTITY_U:w.attribValue+=U;continue}re(w),U===">"?K(w):w.state=I.ATTRIB;continue;case I.CLOSE_TAG:if(w.tagName)U===">"?L(w):O(k,U)?w.tagName+=U:w.script?(w.script+="</"+w.tagName,w.tagName="",w.state=I.SCRIPT):(C(U)||X(w,"Invalid tagname in closing tag"),w.state=I.CLOSE_TAG_SAW_WHITE);else{if(C(U))continue;M(v,U)?w.script?(w.script+="</"+U,w.state=I.SCRIPT):X(w,"Invalid tagname in closing tag."):w.tagName=U}continue;case I.CLOSE_TAG_SAW_WHITE:if(C(U))continue;U===">"?L(w):X(w,"Invalid characters in closing tag");continue;case I.TEXT_ENTITY:case I.ATTRIB_VALUE_ENTITY_Q:case I.ATTRIB_VALUE_ENTITY_U:var P,p;switch(w.state){case I.TEXT_ENTITY:P=I.TEXT,p="textNode";break;case I.ATTRIB_VALUE_ENTITY_Q:P=I.ATTRIB_VALUE_QUOTED,p="attribValue";break;case I.ATTRIB_VALUE_ENTITY_U:P=I.ATTRIB_VALUE_UNQUOTED,p="attribValue";break}U===";"?(w[p]+=Z(w),w.entity="",w.state=P):O(w.entity.length?T:S,U)?w.entity+=U:(X(w,"Invalid character in entity name"),w[p]+="&"+w.entity+U,w.entity="",w.state=P);continue;default:throw new Error(w,"Unknown state: "+w.state)}return w.position>=w.bufferCheckPosition&&o(w),w}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */String.fromCodePoint||function(){var R=String.fromCharCode,w=Math.floor,z=function(){var U=16384,ie=[],B,P,p=-1,V=arguments.length;if(!V)return"";for(var j="";++p<V;){var l=Number(arguments[p]);if(!isFinite(l)||l<0||l>1114111||w(l)!==l)throw RangeError("Invalid code point: "+l);l<=65535?ie.push(l):(l-=65536,B=(l>>10)+55296,P=l%1024+56320,ie.push(B,P)),(p+1===V||ie.length>U)&&(j+=R.apply(null,ie),ie.length=0)}return j};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof e>"u"?e.sax={}:e)}),Us=de((e,t)=>{t.exports={isArray:function(r){return Array.isArray?Array.isArray(r):Object.prototype.toString.call(r)==="[object Array]"}}}),zs=de((e,t)=>{var r=Us().isArray;t.exports={copyOptions:function(n){var o,i={};for(o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);return i},ensureFlagExists:function(n,o){(!(n in o)||typeof o[n]!="boolean")&&(o[n]=!1)},ensureSpacesExists:function(n){(!("spaces"in n)||typeof n.spaces!="number"&&typeof n.spaces!="string")&&(n.spaces=0)},ensureAlwaysArrayExists:function(n){(!("alwaysArray"in n)||typeof n.alwaysArray!="boolean"&&!r(n.alwaysArray))&&(n.alwaysArray=!1)},ensureKeyExists:function(n,o){(!(n+"Key"in o)||typeof o[n+"Key"]!="string")&&(o[n+"Key"]=o.compact?"_"+n:n)},checkFnExists:function(n,o){return n+"Fn"in o}}}),Yl=de((e,t)=>{var r=Zf(),n=zs(),o=Us().isArray,i,a;function s(T){return i=n.copyOptions(T),n.ensureFlagExists("ignoreDeclaration",i),n.ensureFlagExists("ignoreInstruction",i),n.ensureFlagExists("ignoreAttributes",i),n.ensureFlagExists("ignoreText",i),n.ensureFlagExists("ignoreComment",i),n.ensureFlagExists("ignoreCdata",i),n.ensureFlagExists("ignoreDoctype",i),n.ensureFlagExists("compact",i),n.ensureFlagExists("alwaysChildren",i),n.ensureFlagExists("addParent",i),n.ensureFlagExists("trim",i),n.ensureFlagExists("nativeType",i),n.ensureFlagExists("nativeTypeAttributes",i),n.ensureFlagExists("sanitize",i),n.ensureFlagExists("instructionHasAttributes",i),n.ensureFlagExists("captureSpacesBetweenElements",i),n.ensureAlwaysArrayExists(i),n.ensureKeyExists("declaration",i),n.ensureKeyExists("instruction",i),n.ensureKeyExists("attributes",i),n.ensureKeyExists("text",i),n.ensureKeyExists("comment",i),n.ensureKeyExists("cdata",i),n.ensureKeyExists("doctype",i),n.ensureKeyExists("type",i),n.ensureKeyExists("name",i),n.ensureKeyExists("elements",i),n.ensureKeyExists("parent",i),n.checkFnExists("doctype",i),n.checkFnExists("instruction",i),n.checkFnExists("cdata",i),n.checkFnExists("comment",i),n.checkFnExists("text",i),n.checkFnExists("instructionName",i),n.checkFnExists("elementName",i),n.checkFnExists("attributeName",i),n.checkFnExists("attributeValue",i),n.checkFnExists("attributes",i),i}function c(T){var C=Number(T);if(!isNaN(C))return C;var A=T.toLowerCase();return A==="true"?!0:A==="false"?!1:T}function d(T,C){var A;if(i.compact){if(!a[i[T+"Key"]]&&(o(i.alwaysArray)?i.alwaysArray.indexOf(i[T+"Key"])!==-1:i.alwaysArray)&&(a[i[T+"Key"]]=[]),a[i[T+"Key"]]&&!o(a[i[T+"Key"]])&&(a[i[T+"Key"]]=[a[i[T+"Key"]]]),T+"Fn"in i&&typeof C=="string"&&(C=i[T+"Fn"](C,a)),T==="instruction"&&("instructionFn"in i||"instructionNameFn"in i)){for(A in C)if(C.hasOwnProperty(A))if("instructionFn"in i)C[A]=i.instructionFn(C[A],A,a);else{var _=C[A];delete C[A],C[i.instructionNameFn(A,_,a)]=_}}o(a[i[T+"Key"]])?a[i[T+"Key"]].push(C):a[i[T+"Key"]]=C}else{a[i.elementsKey]||(a[i.elementsKey]=[]);var O={};if(O[i.typeKey]=T,T==="instruction"){for(A in C)if(C.hasOwnProperty(A))break;O[i.nameKey]="instructionNameFn"in i?i.instructionNameFn(A,C,a):A,i.instructionHasAttributes?(O[i.attributesKey]=C[A][i.attributesKey],"instructionFn"in i&&(O[i.attributesKey]=i.instructionFn(O[i.attributesKey],A,a))):("instructionFn"in i&&(C[A]=i.instructionFn(C[A],A,a)),O[i.instructionKey]=C[A])}else T+"Fn"in i&&(C=i[T+"Fn"](C,a)),O[i[T+"Key"]]=C;i.addParent&&(O[i.parentKey]=a),a[i.elementsKey].push(O)}}function f(T){if("attributesFn"in i&&T&&(T=i.attributesFn(T,a)),(i.trim||"attributeValueFn"in i||"attributeNameFn"in i||i.nativeTypeAttributes)&&T){var C;for(C in T)if(T.hasOwnProperty(C)&&(i.trim&&(T[C]=T[C].trim()),i.nativeTypeAttributes&&(T[C]=c(T[C])),"attributeValueFn"in i&&(T[C]=i.attributeValueFn(T[C],C,a)),"attributeNameFn"in i)){var A=T[C];delete T[C],T[i.attributeNameFn(C,T[C],a)]=A}}return T}function m(T){var C={};if(T.body&&(T.name.toLowerCase()==="xml"||i.instructionHasAttributes)){for(var A=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,_;(_=A.exec(T.body))!==null;)C[_[1]]=_[2]||_[3]||_[4];C=f(C)}if(T.name.toLowerCase()==="xml"){if(i.ignoreDeclaration)return;a[i.declarationKey]={},Object.keys(C).length&&(a[i.declarationKey][i.attributesKey]=C),i.addParent&&(a[i.declarationKey][i.parentKey]=a)}else{if(i.ignoreInstruction)return;i.trim&&(T.body=T.body.trim());var O={};i.instructionHasAttributes&&Object.keys(C).length?(O[T.name]={},O[T.name][i.attributesKey]=C):O[T.name]=T.body,d("instruction",O)}}function E(T,C){var A;if(typeof T=="object"&&(C=T.attributes,T=T.name),C=f(C),"elementNameFn"in i&&(T=i.elementNameFn(T,a)),i.compact){if(A={},!i.ignoreAttributes&&C&&Object.keys(C).length){A[i.attributesKey]={};var _;for(_ in C)C.hasOwnProperty(_)&&(A[i.attributesKey][_]=C[_])}!(T in a)&&(o(i.alwaysArray)?i.alwaysArray.indexOf(T)!==-1:i.alwaysArray)&&(a[T]=[]),a[T]&&!o(a[T])&&(a[T]=[a[T]]),o(a[T])?a[T].push(A):a[T]=A}else a[i.elementsKey]||(a[i.elementsKey]=[]),A={},A[i.typeKey]="element",A[i.nameKey]=T,!i.ignoreAttributes&&C&&Object.keys(C).length&&(A[i.attributesKey]=C),i.alwaysChildren&&(A[i.elementsKey]=[]),a[i.elementsKey].push(A);A[i.parentKey]=a,a=A}function g(T){i.ignoreText||!T.trim()&&!i.captureSpacesBetweenElements||(i.trim&&(T=T.trim()),i.nativeType&&(T=c(T)),i.sanitize&&(T=T.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),d("text",T))}function y(T){i.ignoreComment||(i.trim&&(T=T.trim()),d("comment",T))}function x(T){var C=a[i.parentKey];i.addParent||delete a[i.parentKey],a=C}function v(T){i.ignoreCdata||(i.trim&&(T=T.trim()),d("cdata",T))}function k(T){i.ignoreDoctype||(T=T.replace(/^ /,""),i.trim&&(T=T.trim()),d("doctype",T))}function S(T){T.note=T}t.exports=function(T,C){var A=r.parser(!0,{}),_={};if(a=_,i=s(C),A.opt={strictEntities:!0},A.onopentag=E,A.ontext=g,A.oncomment=y,A.onclosetag=x,A.onerror=S,A.oncdata=v,A.ondoctype=k,A.onprocessinginstruction=m,A.write(T).close(),_[i.elementsKey]){var O=_[i.elementsKey];delete _[i.elementsKey],_[i.elementsKey]=O,delete _.text}return _}}),Yf=de((e,t)=>{var r=zs(),n=Yl();function o(i){var a=r.copyOptions(i);return r.ensureSpacesExists(a),a}t.exports=function(i,a){var s=o(a),c=n(i,s),d,f="compact"in s&&s.compact?"_parent":"parent";return"addParent"in s&&s.addParent?d=JSON.stringify(c,function(m,E){return m===f?"_":E},s.spaces):d=JSON.stringify(c,null,s.spaces),d.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}),Ql=de((e,t)=>{var r=zs(),n=Us().isArray,o,i;function a(A){var _=r.copyOptions(A);return r.ensureFlagExists("ignoreDeclaration",_),r.ensureFlagExists("ignoreInstruction",_),r.ensureFlagExists("ignoreAttributes",_),r.ensureFlagExists("ignoreText",_),r.ensureFlagExists("ignoreComment",_),r.ensureFlagExists("ignoreCdata",_),r.ensureFlagExists("ignoreDoctype",_),r.ensureFlagExists("compact",_),r.ensureFlagExists("indentText",_),r.ensureFlagExists("indentCdata",_),r.ensureFlagExists("indentAttributes",_),r.ensureFlagExists("indentInstruction",_),r.ensureFlagExists("fullTagEmptyElement",_),r.ensureFlagExists("noQuotesForNativeAttributes",_),r.ensureSpacesExists(_),typeof _.spaces=="number"&&(_.spaces=Array(_.spaces+1).join(" ")),r.ensureKeyExists("declaration",_),r.ensureKeyExists("instruction",_),r.ensureKeyExists("attributes",_),r.ensureKeyExists("text",_),r.ensureKeyExists("comment",_),r.ensureKeyExists("cdata",_),r.ensureKeyExists("doctype",_),r.ensureKeyExists("type",_),r.ensureKeyExists("name",_),r.ensureKeyExists("elements",_),r.checkFnExists("doctype",_),r.checkFnExists("instruction",_),r.checkFnExists("cdata",_),r.checkFnExists("comment",_),r.checkFnExists("text",_),r.checkFnExists("instructionName",_),r.checkFnExists("elementName",_),r.checkFnExists("attributeName",_),r.checkFnExists("attributeValue",_),r.checkFnExists("attributes",_),r.checkFnExists("fullTagEmptyElement",_),_}function s(A,_,O){return(!O&&A.spaces?` 73`:"")+Array(_+1).join(A.spaces)}function c(A,_,O){if(_.ignoreAttributes)return"";"attributesFn"in _&&(A=_.attributesFn(A,i,o));var M,I,H,te,F=[];for(M in A)A.hasOwnProperty(M)&&A[M]!==null&&A[M]!==void 0&&(te=_.noQuotesForNativeAttributes&&typeof A[M]!="string"?"":'"',I=""+A[M],I=I.replace(/"/g,"""),H="attributeNameFn"in _?_.attributeNameFn(M,I,i,o):M,F.push(_.spaces&&_.indentAttributes?s(_,O+1,!1):" "),F.push(H+"="+te+("attributeValueFn"in _?_.attributeValueFn(I,M,i,o):I)+te));return A&&Object.keys(A).length&&_.spaces&&_.indentAttributes&&F.push(s(_,O,!1)),F.join("")}function d(A,_,O){return o=A,i="xml",_.ignoreDeclaration?"":"<?xml"+c(A[_.attributesKey],_,O)+"?>"}function f(A,_,O){if(_.ignoreInstruction)return"";var M;for(M in A)if(A.hasOwnProperty(M))break;var I="instructionNameFn"in _?_.instructionNameFn(M,A[M],i,o):M;if(typeof A[M]=="object")return o=A,i=I,"<?"+I+c(A[M][_.attributesKey],_,O)+"?>";var H=A[M]?A[M]:"";return"instructionFn"in _&&(H=_.instructionFn(H,M,i,o)),"<?"+I+(H?" "+H:"")+"?>"}function m(A,_){return _.ignoreComment?"":"<!--"+("commentFn"in _?_.commentFn(A,i,o):A)+"-->"}function E(A,_){return _.ignoreCdata?"":"<![CDATA["+("cdataFn"in _?_.cdataFn(A,i,o):A.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function g(A,_){return _.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in _?_.doctypeFn(A,i,o):A)+">"}function y(A,_){return _.ignoreText?"":(A=""+A,A=A.replace(/&/g,"&"),A=A.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in _?_.textFn(A,i,o):A)}function x(A,_){var O;if(A.elements&&A.elements.length)for(O=0;O<A.elements.length;++O)switch(A.elements[O][_.typeKey]){case"text":if(_.indentText)return!0;break;case"cdata":if(_.indentCdata)return!0;break;case"instruction":if(_.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}function v(A,_,O){o=A,i=A.name;var M=[],I="elementNameFn"in _?_.elementNameFn(A.name,A):A.name;M.push("<"+I),A[_.attributesKey]&&M.push(c(A[_.attributesKey],_,O));var H=A[_.elementsKey]&&A[_.elementsKey].length||A[_.attributesKey]&&A[_.attributesKey]["xml:space"]==="preserve";return H||("fullTagEmptyElementFn"in _?H=_.fullTagEmptyElementFn(A.name,A):H=_.fullTagEmptyElement),H?(M.push(">"),A[_.elementsKey]&&A[_.elementsKey].length&&(M.push(k(A[_.elementsKey],_,O+1)),o=A,i=A.name),M.push(_.spaces&&x(A,_)?` 74`+Array(O+1).join(_.spaces):""),M.push("</"+I+">")):M.push("/>"),M.join("")}function k(A,_,O,M){return A.reduce(function(I,H){var te=s(_,O,M&&!I);switch(H.type){case"element":return I+te+v(H,_,O);case"comment":return I+te+m(H[_.commentKey],_);case"doctype":return I+te+g(H[_.doctypeKey],_);case"cdata":return I+(_.indentCdata?te:"")+E(H[_.cdataKey],_);case"text":return I+(_.indentText?te:"")+y(H[_.textKey],_);case"instruction":var F={};return F[H[_.nameKey]]=H[_.attributesKey]?H:H[_.instructionKey],I+(_.indentInstruction?te:"")+f(F,_,O)}},"")}function S(A,_,O){var M;for(M in A)if(A.hasOwnProperty(M))switch(M){case _.parentKey:case _.attributesKey:break;case _.textKey:if(_.indentText||O)return!0;break;case _.cdataKey:if(_.indentCdata||O)return!0;break;case _.instructionKey:if(_.indentInstruction||O)return!0;break;case _.doctypeKey:case _.commentKey:return!0;default:return!0}return!1}function T(A,_,O,M,I){o=A,i=_;var H="elementNameFn"in O?O.elementNameFn(_,A):_;if(typeof A>"u"||A===null||A==="")return"fullTagEmptyElementFn"in O&&O.fullTagEmptyElementFn(_,A)||O.fullTagEmptyElement?"<"+H+"></"+H+">":"<"+H+"/>";var te=[];if(_){if(te.push("<"+H),typeof A!="object")return te.push(">"+y(A,O)+"</"+H+">"),te.join("");A[O.attributesKey]&&te.push(c(A[O.attributesKey],O,M));var F=S(A,O,!0)||A[O.attributesKey]&&A[O.attributesKey]["xml:space"]==="preserve";if(F||("fullTagEmptyElementFn"in O?F=O.fullTagEmptyElementFn(_,A):F=O.fullTagEmptyElement),F)te.push(">");else return te.push("/>"),te.join("")}return te.push(C(A,O,M+1,!1)),o=A,i=_,_&&te.push((I?s(O,M,!1):"")+"</"+H+">"),te.join("")}function C(A,_,O,M){var I,H,te,F=[];for(H in A)if(A.hasOwnProperty(H))for(te=n(A[H])?A[H]:[A[H]],I=0;I<te.length;++I){switch(H){case _.declarationKey:F.push(d(te[I],_,O));break;case _.instructionKey:F.push((_.indentInstruction?s(_,O,M):"")+f(te[I],_,O));break;case _.attributesKey:case _.parentKey:break;case _.textKey:F.push((_.indentText?s(_,O,M):"")+y(te[I],_));break;case _.cdataKey:F.push((_.indentCdata?s(_,O,M):"")+E(te[I],_));break;case _.doctypeKey:F.push(s(_,O,M)+g(te[I],_));break;case _.commentKey:F.push(s(_,O,M)+m(te[I],_));break;default:F.push(s(_,O,M)+T(te[I],H,_,O,S(te[I],_)))}M=M&&!F.length}return F.join("")}t.exports=function(A,_){_=a(_);var O=[];return o=A,i="_root_",_.compact?O.push(C(A,_,0,!0)):(A[_.declarationKey]&&O.push(d(A[_.declarationKey],_,0)),A[_.elementsKey]&&A[_.elementsKey].length&&O.push(k(A[_.elementsKey],_,0,!O.length))),O.join("")}}),Qf=de((e,t)=>
74{var r=Ql();t.exports=function(n,o){n instanceof Buffer&&(n=n.toString());var i=null;if(typeof n=="string")try{i=JSON.parse(n)}catch{throw new Error("The JSON structure is invalid")}else i=n;return r(i,o)}}),Jl=de((e,t)=>{t.exports={xml2js:Yl(),xml2json:Yf(),js2xml:Ql(),json2xml:Qf()}})(),$s=e=>{switch(e.type){case void 0:case"element":const t=new ep(e.name,e.attributes),r=e.elements||[];for(const n of r){const o=$s(n);o!==void 0&&t.push(o)}return t;case"text":return e.text;default:return}},Jf=class extends Ae{},ep=class extends fe{static fromXmlString(e){return $s((0,Jl.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new Jf(t))}push(e){this.root.push(e)}},tp=class extends fe{constructor(e){super(""),oe(this,"_attr",void 0),this._attr=e}prepForXml(e){return{_attr:this._attr}}},eu=class extends fe{constructor(e,t){super(e),t&&(this.root=t.root)}},Je=e=>{if(isNaN(e))throw new Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},mi=e=>{const t=Je(e);if(t<0)throw new Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},tu=(e,t)=>{const r=t*2;if(e.length!==r||isNaN(+`0x${e}`))throw new Error(`Invalid hex value '${e}'. Expected ${r} digit hex value`);return e},Za=e=>tu(e,1),Hs=e=>{const t=e.slice(-2),r=e.substring(0,e.length-2);return`${Number(r)}${t}`},ru=e=>{const t=Hs(e);if(parseFloat(t)<0)throw new Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},Cr=e=>e==="auto"?e:tu(e.charAt(0)==="#"?e.substring(1):e,3),Dt=e=>typeof e=="string"?Hs(e):Je(e),rp=e=>typeof e=="string"?ru(e):mi(e),Ze=e=>typeof e=="string"?ru(e):mi(e),np=e=>{const t=e.substring(0,e.length-1);return`${Number(t)}%`},nu=e=>typeof e=="number"?Je(e):e.slice(-1)==="%"?np(e):Hs(e),ip=mi,sp=mi,ap=e=>e.toISOString(),he=class extends fe{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new tt({val:t}))}},ji=class extends fe{constructor(e,t){super(e),this.root.push(new tt({val:rp(t)}))}},op=class extends fe{},dr=class extends fe{constructor(e,t){super(e),this.root.push(new tt({val:t}))}},zr=(e,t)=>new Ee({name:e,attributes:{value:{key:"w:val",value:t}}}),Qr=class extends fe{constructor(e,t){super(e),this.root.push(new tt({val:t}))}},tr=class extends fe{constructor(e,t){super(e),this.root.push(t)}},Ee=class extends fe{constructor({name:e,attributes:t,children:r}){super(e),t&&this.root.push(new nf(t)),r&&this.root.push(...r)}},Fe={START:"start",CENTER:"center",LEFT:"left",RIGHT:"right"},iu=e=>new Ee({name:"w:jc",attributes:{val:{key:"w:val",value:e}}}),Ue=(e,{color:t,size:r,space:n,style:o})=>new Ee({name:e,attributes:{style:{key:"w:val",value:o},color:{key:"w:color",value:t===void 0?void 0:Cr(t)},size:{key:"w:sz",value:r===void 0?void 0:ip(r)},space:{key:"w:space",value:n===void 0?void 0:sp(n)}}}),hn={SINGLE:"single",NONE:"none"},lp=class extends qt{constructor(e){super("w:pBdr"),e.top&&this.root.push(Ue("w:top",e.top)),e.bottom&&this.root.push(Ue("w:bottom",e.bottom)),e.left&&this.root.push(Ue("w:left",e.left)),e.right&&this.root.push(Ue("w:right",e.right)),e.between&&this.root.push(Ue("w:between",e.between))}},up=class extends fe{constructor(){super("w:pBdr");const e=Ue("w:bottom",{color:"auto",space:1,style:hn.SINGLE,size:6});this.root.push(e)}},cp=({start:e,end:t,left:r,right:n,hanging:o,firstLine:i,firstLineChars:a})=>new Ee({name:"w:ind",attributes:{start:{key:"w:start",value:e===void 0?void 0:Dt(e)},end:{key:"w:end",value:t===void 0?void 0:Dt(t)},left:{key:"w:left",value:r===void 0?void 0:Dt(r)},right:{key:"w:right",value:n===void 0?void 0:Dt(n)},hanging:{key:"w:hanging",value:o===void 0?void 0:Ze(o)},firstLine:{key:"w:firstLine",value:i===void 0?void 0:Ze(i)},firstLineChars:{key:"w:firstLineChars",value:a===void 0?void 0:Je(a)}}}),hp=()=>new Ee({name:"w:br"}),Ws={BEGIN:"begin",END:"end",SEPARATE:"separate"},Vs=(e,t)=>new Ee({name:"w:fldChar",attributes:{type:{key:"w:fldCharType",value:e},dirty:{key:"w:dirty",value:t}}}),En=e=>Vs(Ws.BEGIN,e),kn=e=>Vs(Ws.SEPARATE,e),Tn=e=>Vs(Ws.END,e),Nr={DEFAULT:"default",PRESERVE:"preserve"},Rr=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{space:"xml:space"})}},dp=class extends fe{constructor(){super("w:instrText"),this.root.push(new Rr({space
74:Nr.PRESERVE})),this.root.push("PAGE")}},fp=class extends fe{constructor(){super("w:instrText"),this.root.push(new Rr({space:Nr.PRESERVE})),this.root.push("NUMPAGES")}},pp=class extends fe{constructor(){super("w:instrText"),this.root.push(new Rr({space:Nr.PRESERVE})),this.root.push("SECTIONPAGES")}},mp=class extends fe{constructor(){super("w:instrText"),this.root.push(new Rr({space:Nr.PRESERVE})),this.root.push("SECTION")}},gi=({fill:e,color:t,type:r})=>new Ee({name:"w:shd",attributes:{fill:{key:"w:fill",value:e===void 0?void 0:Cr(e)},color:{key:"w:color",value:t===void 0?void 0:Cr(t)},type:{key:"w:val",value:r}}}),Ii={CLEAR:"clear"},vt=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date"})}},gp=class extends fe{constructor(e){super("w:del"),this.root.push(new vt({id:e.id,author:e.author,date:e.date}))}},wp=class extends fe{constructor(e){super("w:ins"),this.root.push(new vt({id:e.id,author:e.author,date:e.date}))}},yp={DOT:"dot"},vp=(e=yp.DOT)=>new Ee({name:"w:em",attributes:{val:{key:"w:val",value:e}}}),xp=class extends fe{constructor(e){super("w:spacing"),this.root.push(new tt({val:Dt(e)}))}},bp=class extends fe{constructor(e){super("w:color"),this.root.push(new tt({val:Cr(e)}))}},_p=class extends fe{constructor(e){super("w:highlight"),this.root.push(new tt({val:e}))}},Sp=class extends fe{constructor(e){super("w:highlightCs"),this.root.push(new tt({val:e}))}},Ep=e=>new Ee({name:"w:lang",attributes:{value:{key:"w:val",value:e.value},eastAsia:{key:"w:eastAsia",value:e.eastAsia},bidirectional:{key:"w:bidi",value:e.bidirectional}}}),Fi=(e,t)=>{if(typeof e=="string"){const n=e;return new Ee({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:n},cs:{key:"w:cs",value:n},eastAsia:{key:"w:eastAsia",value:n},hAnsi:{key:"w:hAnsi",value:n},hint:{key:"w:hint",value:t}}})}const r=e;return new Ee({name:"w:rFonts",attributes:{ascii:{key:"w:ascii",value:r.ascii},cs:{key:"w:cs",value:r.cs},eastAsia:{key:"w:eastAsia",value:r.eastAsia},hAnsi:{key:"w:hAnsi",value:r.hAnsi},hint:{key:"w:hint",value:r.hint}}})},su=e=>new Ee({name:"w:vertAlign",attributes:{val:{key:"w:val",value:e}}}),kp=()=>su("superscript"),Tp=()=>su("subscript"),au={SINGLE:"single"},Ap=(e=au.SINGLE,t)=>new Ee({name:"w:u",attributes:{val:{key:"w:val",value:e},color:{key:"w:color",value:t===void 0?void 0:Cr(t)}}}),mr=class extends qt{constructor(e){if(super("w:rPr"),!e)return;if(e.style&&this.push(new dr("w:rStyle",e.style)),e.font&&(typeof e.font=="string"?this.push(Fi(e.font)):"name"in e.font?this.push(Fi(e.font.name,e.font.hint)):this.push(Fi(e.font))),e.bold!==void 0&&this.push(new he("w:b",e.bold)),e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript){var t;this.push(new he("w:bCs",(t=e.boldComplexScript)!==null&&t!==void 0?t:e.bold))}if(e.italics!==void 0&&this.push(new he("w:i",e.italics)),e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript){var r;this.push(new he("w:iCs",(r=e.italicsComplexScript)!==null&&r!==void 0?r:e.italics))}e.smallCaps!==void 0?this.push(new he("w:smallCaps",e.smallCaps)):e.allCaps!==void 0&&this.push(new he("w:caps",e.allCaps)),e.strike!==void 0&&this.push(new he("w:strike",e.strike)),e.doubleStrike!==void 0&&this.push(new he("w:dstrike",e.doubleStrike)),e.emboss!==void 0&&this.push(new he("w:emboss",e.emboss)),e.imprint!==void 0&&this.push(new he("w:imprint",e.imprint)),e.noProof!==void 0&&this.push(new he("w:noProof",e.noProof)),e.snapToGrid!==void 0&&this.push(new he("w:snapToGrid",e.snapToGrid)),e.vanish&&this.push(new he("w:vanish",e.vanish)),e.color&&this.push(new bp(e.color)),e.characterSpacing&&this.push(new xp(e.characterSpacing)),e.scale!==void 0&&this.push(new Qr("w:w",e.scale)),e.kern&&this.push(new ji("w:kern",e.kern)),e.position&&this.push(new dr("w:position",e.position)),e.size!==void 0&&this.push(new ji("w:sz",e.size));const n=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;n&&this.push(new ji("w:szCs",n)),e.highlight&&this.push(new _p(e.highlight));const o=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;o&&this.push(new Sp(o)),e.underline&&this.push(Ap(e.underline.type,e.underline.color)),e.effect&&this.push(new dr("w:effect",e.effect)),e.border&&this.push(Ue("w:bdr",e.border)),e.shading&&this.push(gi(e.shading)),e.subScript&&this.push(Tp()),e.superScript&&this.push(kp()),e.rightToLeft!==void 0&&this.push(new he("w:rtl",e.rightToLeft)),e.emphasisMark&&this.push(vp(e.emphasisMark.type)),e.language&&this.push(Ep(e.language)),e.specVanish&&this.push(new he("w:specVanish",e.vanish)),e.math&&this.push(new he("w:oMath",e.math)),e.revision&&this.push(new Np(e.revision))}push(e){this.root.push(e)}},Cp=class extends mr{constructor(e){super(e),e!=null&&e.insertion&&this.push(new wp(e.insertion)),e!=null&&e.deletion&&this.push(new gp(e.deletion))}},Np=class extends fe{constructor(e){super("w:rPrChange"),this.root.push(new vt({id:e.id,author:e.author,date:e.date})),this.addChildElement(new mr(e))}},Ya=class extends fe{constructor(e){if(super("w:t"),typeof e=="string")this.root.push(new Rr({space
74:Nr.PRESERVE})),this.root.push(e);else{var t;this.root.push(new Rr({space:(t=e.space)!==null&&t!==void 0?t:Nr.DEFAULT})),this.root.push(e.text)}}},An={CURRENT:"CURRENT",TOTAL_PAGES:"TOTAL_PAGES",TOTAL_PAGES_IN_SECTION:"TOTAL_PAGES_IN_SECTION",CURRENT_SECTION:"SECTION"},dn=class extends fe{constructor(e){if(super("w:r"),oe(this,"properties",void 0),this.properties=new mr(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(hp());if(e.children)for(const t of e.children){if(typeof t=="string"){switch(t){case An.CURRENT:this.root.push(En()),this.root.push(new dp),this.root.push(kn()),this.root.push(Tn());break;case An.TOTAL_PAGES:this.root.push(En()),this.root.push(new fp),this.root.push(kn()),this.root.push(Tn());break;case An.TOTAL_PAGES_IN_SECTION:this.root.push(En()),this.root.push(new pp),this.root.push(kn()),this.root.push(Tn());break;case An.CURRENT_SECTION:this.root.push(En()),this.root.push(new mp),this.root.push(kn()),this.root.push(Tn());break;default:this.root.push(new Ya(t));break}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new Ya(e.text))}},jr=class extends dn{constructor(e){super(typeof e=="string"?{text:e}:e)}},fn=de((e,t)=>{t.exports=r;function r(n,o){if(!n)throw new Error(o||"Assertion failed")}r.equal=function(o,i,a){if(o!=i)throw new Error(a||"Assertion failed: "+o+" != "+i)}}),It=de(e=>{var t=fn();e.inherits=Kt();function r(F,W){return(F.charCodeAt(W)&64512)!==55296||W<0||W+1>=F.length?!1:(F.charCodeAt(W+1)&64512)===56320}function n(F,W){if(Array.isArray(F))return F.slice();if(!F)return[];var N=[];if(typeof F=="string")if(W){if(W==="hex")for(F=F.replace(/[^a-z0-9]+/gi,""),F.length%2!==0&&(F="0"+F),J=0;J<F.length;J+=2)N.push(parseInt(F[J]+F[J+1],16))}else for(var G=0,J=0;J<F.length;J++){var X=F.charCodeAt(J);X<128?N[G++]=X:X<2048?(N[G++]=X>>6|192,N[G++]=X&63|128):r(F,J)?(X=65536+((X&1023)<<10)+(F.charCodeAt(++J)&1023),N[G++]=X>>18|240,N[G++]=X>>12&63|128,N[G++]=X>>6&63|128,N[G++]=X&63|128):(N[G++]=X>>12|224,N[G++]=X>>6&63|128,N[G++]=X&63|128)}else for(J=0;J<F.length;J++)N[J]=F[J]|0;return N}e.toArray=n;function o(F){for(var W="",N=0;N<F.length;N++)W+=s(F[N].toString(16));return W}e.toHex=o;function i(F){return(F>>>24|F>>>8&65280|F<<8&16711680|(F&255)<<24)>>>0}e.htonl=i;function a(F,W){for(var N="",G=0;G<F.length;G++){var J=F[G];W==="little"&&(J=i(J)),N+=c(J.toString(16))}return N}e.toHex32=a;function s(F){return F.length===1?"0"+F:F}e.zero2=s;function c(F){return F.length===7?"0"+F:F.length===6?"00"+F:F.length===5?"000"+F:F.length===4?"0000"+F:F.length===3?"00000"+F:F.length===2?"000000"+F:F.length===1?"0000000"+F:F}e.zero8=c;function d(F,W,N,G){var J=N-W;t(J%4===0);for(var X=new Array(J/4),ae=0,Y=W;ae<X.length;ae++,Y+=4){var re;G==="big"?re=F[Y]<<24|F[Y+1]<<16|F[Y+2]<<8|F[Y+3]:re=F[Y+3]<<24|F[Y+2]<<16|F[Y+1]<<8|F[Y],X[ae]=re>>>0}return X}e.join32=d;function f(F,W){for(var N=new Array(F.length*4),G=0,J=0;G<F.length;G++,J+=4){var X=F[G];W==="big"?(N[J]=X>>>24,N[J+1]=X>>>16&255,N[J+2]=X>>>8&255,N[J+3]=X&255):(N[J+3]=X>>>24,N[J+2]=X>>>16&255,N[J+1]=X>>>8&255,N[J]=X&255)}return N}e.split32=f;function m(F,W){return F>>>W|F<<32-W}e.rotr32=m;function E(F,W){return F<<W|F>>>32-W}e.rotl32=E;function g(F,W){return F+W>>>0}e.sum32=g;function y(F,W,N){return F+W+N>>>0}e.sum32_3=y;function x(F,W,N,G){return F+W+N+G>>>0}e.sum32_4=x;function v(F,W,N,G,J){return F+W+N+G+J>>>0}e.sum32_5=v;function k(F,W,N,G){var J=F[W],X=G+F[W+1]>>>0;F[W]=(X<G?1:0)+N+J>>>0,F[W+1]=X}e.sum64=k;function S(F,W,N,G){return(W+G>>>0<W?1:0)+F+N>>>0}e.sum64_hi=S;function T(F,W,N,G){return W+G>>>0}e.sum64_lo=T;function C(F,W,N,G,J,X,ae,Y){var re=0,K=W;return K=K+G>>>0,re+=K<W?1:0,K=K+X>>>0,re+=K<X?1:0,K=K+Y>>>0,re+=K<Y?1:0,F+N+J+ae+re>>>0}e.sum64_4_hi=C;function A(F,W,N,G,J,X,ae,Y){return W+G+X+Y>>>0}e.sum64_4_lo=A;function _(F,W,N,G,J,X,ae,Y,re,K){var L=0,Z=W;return Z=Z+G>>>0,L+=Z<W?1:0,Z=Z+X>>>0,L+=Z<X?1:0,Z=Z+Y>>>0,L+=Z<Y?1:0,Z=Z+K>>>0,L+=Z<K?1:0,F+N+J+ae+re+L>>>0}e.sum64_5_hi=_;function O(F,W,N,G,J,X,ae,Y,re,K){return W+G+X+Y+K>>>0}e.sum64_5_lo=O;function M(F,W,N){return(W<<32-N|F>>>N)>>>0}e.rotr64_hi=M;function I(F,W,N){return(F<<32-N|W>>>N)>>>0}e.rotr64_lo=I;function H(F,W,N){return F>>>N}e.shr64_hi=H;function te(F,W,N){return(F<<32-N|W>>>N)>>>0}e.shr64_lo=te}),pn=de(e=>{var t=It(),r=fn();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=n,n.prototype.update=function(i,a){if(i=t.toArray(i,a),this.pending?this.pending=this.pending.concat(i):this.pending=i,this.pendingTotal+=i.length,this.pending.length>=this._delta8){i=this.pending;var s=i.length%this._delta8;this.pending=i.slice(i.length-s,i.length),this.pending.length===0&&(this.pending=null),i=t.join32(i,0,i.length-s,this.endian);for(var c=0;c<i.length;c+=this._delta32)this._update(i,c,c+this._delta32)}return this},n.prototype.digest=function(i){return this.update(this._pad()),r(this.pending===null),this._digest(i)},n.prototype._pad=function(){var i=this.pendingTotal,a=this._delta8,s=a-(i+this.padLength)%a,c=new Array(s+this.padLength);c[0]=128;for(var d=1;d<s;d++)c[d]=0;if(i<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)c[d++]=0;c[d++]=0,c[d++]=0,c[d++]=0,c[d++]=0,c[d++]=i>>>24&255,c[d++]=i>>>16&255,c[d++]=i>>>8&255,c[d++]=i&255}else for(c[d++]=i&255,c[d++]=i>>>8&255,c[d++]=i>>>16&255,c[d++]=i>>>24&255,c[d++]=0,c[d++]=0,c[d++]=0,c[d++]=0,f=8;f<this.padLength;f++)c[d++]=0;return c}}),ou=de(e=>{var t=It().rotr32;function r(f,m,E,g){if(f===0)return n(m,E,g);if(f===1||f===3)return i(m,E,g);if(f===2)return o(m,E,g)}e.ft_1=r;function n(f,m,E){return f&m^~f&E}e.ch32=n;function o(f,m,E){return f&m^f&E^m&E}e.maj32=o;function i(f,m,E){return f^m^E}e.p32=i;function a(f){return t(f,2)^t(f,13)^t(f,22)}e.s0_256=a;function s(f){return t(f,6)^t(f,11)^t(f,25)}e.s1_256=s;function c(f){return t(f,7)^t(f,18)^f>>>3}e.g0_256=c;function d(f){return t(f,17)^t(f,19)^f>>>10}e.g1_256=d}),Rp=de((e,t)=>
vendor: 4,475 bytes, line 74
74{var r=It(),n=pn(),o=ou(),i=r.rotl32,a=r.sum32,s=r.sum32_5,c=o.ft_1,d=n.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function m(){if(!(this instanceof m))return new m;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(m,d),t.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(g,y){for(var x=this.W,v=0;v<16;v++)x[v]=g[y+v];for(;v<x.length;v++)x[v]=i(x[v-3]^x[v-8]^x[v-14]^x[v-16],1);var k=this.h[0],S=this.h[1],T=this.h[2],C=this.h[3],A=this.h[4];for(v=0;v<x.length;v++){var _=~~(v/20),O=s(i(k,5),c(_,S,T,C),A,x[v],f[_]);A=C,C=T,T=i(S,30),S=k,k=O}this.h[0]=a(this.h[0],k),this.h[1]=a(this.h[1],S),this.h[2]=a(this.h[2],T),this.h[3]=a(this.h[3],C),this.h[4]=a(this.h[4],A)},m.prototype._digest=function(g){return g==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),lu=de((e,t)=>{var r=It(),n=pn(),o=ou(),i=fn(),a=r.sum32,s=r.sum32_4,c=r.sum32_5,d=o.ch32,f=o.maj32,m=o.s0_256,E=o.s1_256,g=o.g0_256,y=o.g1_256,x=n.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;x.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(k,x),t.exports=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(T,C){for(var A=this.W,_=0;_<16;_++)A[_]=T[C+_];for(;_<A.length;_++)A[_]=s(y(A[_-2]),A[_-7],g(A[_-15]),A[_-16]);var O=this.h[0],M=this.h[1],I=this.h[2],H=this.h[3],te=this.h[4],F=this.h[5],W=this.h[6],N=this.h[7];for(i(this.k.length===A.length),_=0;_<A.length;_++){var G=c(N,E(te),d(te,F,W),this.k[_],A[_]),J=a(m(O),f(O,M,I));N=W,W=F,F=te,te=a(H,G),H=I,I=M,M=O,O=a(G,J)}this.h[0]=a(this.h[0],O),this.h[1]=a(this.h[1],M),this.h[2]=a(this.h[2],I),this.h[3]=a(this.h[3],H),this.h[4]=a(this.h[4],te),this.h[5]=a(this.h[5],F),this.h[6]=a(this.h[6],W),this.h[7]=a(this.h[7],N)},k.prototype._digest=function(T){return T==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}}),jp=de((e,t)=>{var r=It(),n=lu();function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,n),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(a){return a==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}}),uu=de((e,t)=>{var r=It(),n=pn(),o=fn(),i=r.rotr64_hi,a=r.rotr64_lo,s=r.shr64_hi,c=r.shr64_lo,d=r.sum64,f=r.sum64_hi,m=r.sum64_lo,E=r.sum64_4_hi,g=r.sum64_4_lo,y=r.sum64_5_hi,x=r.sum64_5_lo,v=n.BlockHash,k=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
vendor: 5,820 bytes, line 74
741322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function S(){if(!(this instanceof S))return new S;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=k,this.W=new Array(160)}r.inherits(S,v),t.exports=S,S.blockSize=1024,S.outSize=512,S.hmacStrength=192,S.padLength=128,S.prototype._prepareBlock=function(J,X){for(var ae=this.W,Y=0;Y<32;Y++)ae[Y]=J[X+Y];for(;Y<ae.length;Y+=2){var re=W(ae[Y-4],ae[Y-3]),K=N(ae[Y-4],ae[Y-3]),L=ae[Y-14],Z=ae[Y-13],Q=te(ae[Y-30],ae[Y-29]),ne=F(ae[Y-30],ae[Y-29]),pe=ae[Y-32],R=ae[Y-31];ae[Y]=E(re,K,L,Z,Q,ne,pe,R),ae[Y+1]=g(re,K,L,Z,Q,ne,pe,R)}},S.prototype._update=function(J,X){this._prepareBlock(J,X);var ae=this.W,Y=this.h[0],re=this.h[1],K=this.h[2],L=this.h[3],Z=this.h[4],Q=this.h[5],ne=this.h[6],pe=this.h[7],R=this.h[8],w=this.h[9],z=this.h[10],U=this.h[11],ie=this.h[12],B=this.h[13],P=this.h[14],p=this.h[15];o(this.k.length===ae.length);for(var V=0;V<ae.length;V+=2){var j=P,l=p,u=I(R,w),b=H(R,w),D=T(R,w,z,U,ie),q=C(R,w,z,U,ie,B),$=this.k[V],se=this.k[V+1],ue=ae[V],le=ae[V+1],me=y(j,l,u,b,D,q,$,se,ue,le),ye=x(j,l,u,b,D,q,$,se,ue,le);j=O(Y,re),l=M(Y,re),u=A(Y,re,K,L,Z),b=_(Y,re,K,L,Z,Q);var _e=f(j,l,u,b),He=m(j,l,u,b);P=ie,p=B,ie=z,B=U,z=R,U=w,R=f(ne,pe,me,ye),w=m(pe,pe,me,ye),ne=Z,pe=Q,Z=K,Q=L,K=Y,L=re,Y=f(me,ye,_e,He),re=m(me,ye,_e,He)}d(this.h,0,Y,re),d(this.h,2,K,L),d(this.h,4,Z,Q),d(this.h,6,ne,pe),d(this.h,8,R,w),d(this.h,10,z,U),d(this.h,12,ie,B),d(this.h,14,P,p)},S.prototype._digest=function(J){return J==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")};function T(G,J,X,ae,Y){var re=G&X^~G&Y;return re<0&&(re+=4294967296),re}function C(G,J,X,ae,Y,re){var K=J&ae^~J&re;return K<0&&(K+=4294967296),K}function A(G,J,X,ae,Y){var re=G&X^G&Y^X&Y;return re<0&&(re+=4294967296),re}function _(G,J,X,ae,Y,re){var K=J&ae^J&re^ae&re;return K<0&&(K+=4294967296),K}function O(G,J){var X=i(G,J,28),ae=i(J,G,2),Y=i(J,G,7),re=X^ae^Y;return re<0&&(re+=4294967296),re}function M(G,J){var X=a(G,J,28),ae=a(J,G,2),Y=a(J,G,7),re=X^ae^Y;return re<0&&(re+=4294967296),re}function I(G,J){var X=i(G,J,14),ae=i(G,J,18),Y=i(J,G,9),re=X^ae^Y;return re<0&&(re+=4294967296),re}function H(G,J){var X=a(G,J,14),ae=a(G,J,18),Y=a(J,G,9),re=X^ae^Y;return re<0&&(re+=4294967296),re}function te(G,J){var X=i(G,J,1),ae=i(G,J,8),Y=s(G,J,7),re=X^ae^Y;return re<0&&(re+=4294967296),re}function F(G,J){var X=a(G,J,1),ae=a(G,J,8),Y=c(G,J,7),re=X^ae^Y;return re<0&&(re+=4294967296),re}function W(G,J){var X=i(G,J,19),ae=i(J,G,29),Y=s(G,J,6),re=X^ae^Y;return re<0&&(re+=4294967296),re}function N(G,J){var X=a(G,J,19),ae=a(J,G,29),Y=c(G,J,6),re=X^ae^Y;return re<0&&(re+=4294967296),re}}),Ip=de((e,t)=>{var r=It(),n=uu();function o(){if(!(this instanceof o))return new o;n.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,n),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(a){return a==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}}),Fp=de(e=>{e.sha1=Rp(),e.sha224=jp(),e.sha256=lu(),e.sha384=Ip(),e.sha512=uu()}),Pp=de(e=>{var t=It(),r=pn(),n=t.rotl32,o=t.sum32,i=t.sum32_3,a=t.sum32_4,s=r.BlockHash;function c(){if(!(this instanceof c))return new c;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}t.inherits(c,s),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(k,S){for(var T=this.h[0],C=this.h[1],A=this.h[2],_=this.h[3],O=this.h[4],M=T,I=C,H=A,te=_,F=O,W=0;W<80;W++){var N=o(n(a(T,d(W,C,A,_),k[E[W]+S],f(W)),y[W]),O);T=O,O=_,_=n(A,10),A=C,C=N,N=o(n(a(M,d(79-W,I,H,te),k[g[W]+S],m(W)),x[W]),F),M=F,F=te,te=n(H,10),H=I,I=N}N=i(this.h[1],A,te),this.h[1]=i(this.h[2],_,F),this.h[2]=i(this.h[3],O,M),this.h[3]=i(this.h[4],T,I),this.h[4]=i(this.h[0],C,H),this.h[0]=N},c.prototype._digest=function(k){return k==="hex"?t.toHex32(this.h,"little"):t.split32(this.h,"little")};function d(v,k,S,T){return v<=15?k^S^T:v<=31?k&S|~k&T:v<=47?(k|~S)^T:v<=63?k&T|S&~T:k^(S|~T)}function f(v){return v<=15?0:v<=31?1518500249:v<=47?1859775393:v<=63?2400959708:2840853838}function m(v){return v<=15?1352829926:v<=31?1548603684:v<=47?1836072691:v<=63?2053994217:0}var E=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],g=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],x=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}),Op=de((e,t)=>
74{var r=It(),n=fn();function o(i,a,s){if(!(this instanceof o))return new o(i,a,s);this.Hash=i,this.blockSize=i.blockSize/8,this.outSize=i.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(a,s))}t.exports=o,o.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),n(a.length<=this.blockSize);for(var s=a.length;s<this.blockSize;s++)a.push(0);for(s=0;s<a.length;s++)a[s]^=54;for(this.inner=new this.Hash().update(a),s=0;s<a.length;s++)a[s]^=106;this.outer=new this.Hash().update(a)},o.prototype.update=function(a,s){return this.inner.update(a,s),this},o.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}});de(e=>{var t=e;t.utils=It(),t.common=pn(),t.sha=Fp(),t.ripemd=Pp(),t.hmac=Op(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})();var Lp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Bp=(e,t=21)=>(r=t)=>{let n="",o=r|0;for(;o--;)n+=e[Math.random()*e.length|0];return n},Dp=(e=21)=>{let t="",r=e|0;for(;r--;)t+=Lp[Math.random()*64|0];return t},bt=e=>Math.floor(e*72*20),Gs=(e=0)=>{let t=e;return()=>++t},Mp=()=>Gs(),Up=()=>Gs(1),zp=()=>Gs(),$p=()=>Dp().toLowerCase(),$r=e=>Bp("1234567890abcdef",e)(),Hp=()=>`${$r(8)}-${$r(4)}-${$r(4)}-${$r(4)}-${$r(12)}`,Pi=e=>new Uint8Array(new TextEncoder().encode(e)),Wp=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{xmlns:"xmlns"})}},Vp={EXTERNAL:"External"},Gp=(e,t,r,n)=>new Ee({name:"Relationship",attributes:{id:{key:"Id",value:e},type:{key:"Type",value:t},target:{key:"Target",value:r},targetMode:{key:"TargetMode",value:n}}}),Zt=class extends fe{constructor(){super("Relationships"),this.root.push(new Wp({xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}))}addRelationship(e,t,r,n){this.root.push(Gp(`rId${e}`,t,r,n))}get RelationshipCount(){return this.root.length-1}},qp=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"w:id",initials:"w:initials",author:"w:author",date:"w:date"})}},Kp=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{"xmlns:cx":"xmlns:cx","xmlns:cx1":"xmlns:cx1","xmlns:cx2":"xmlns:cx2","xmlns:cx3":"xmlns:cx3","xmlns:cx4":"xmlns:cx4","xmlns:cx5":"xmlns:cx5","xmlns:cx6":"xmlns:cx6","xmlns:cx7":"xmlns:cx7","xmlns:cx8":"xmlns:cx8","xmlns:mc":"xmlns:mc","xmlns:aink":"xmlns:aink","xmlns:am3d":"xmlns:am3d","xmlns:o":"xmlns:o","xmlns:r":"xmlns:r","xmlns:m":"xmlns:m","xmlns:v":"xmlns:v","xmlns:wp14":"xmlns:wp14","xmlns:wp":"xmlns:wp","xmlns:w10":"xmlns:w10","xmlns:w":"xmlns:w","xmlns:w14":"xmlns:w14","xmlns:w15":"xmlns:w15","xmlns:w16cex":"xmlns:w16cex","xmlns:w16cid":"xmlns:w16cid","xmlns:w16":"xmlns:w16","xmlns:w16sdtdh":"xmlns:w16sdtdh","xmlns:w16se":"xmlns:w16se","xmlns:wpg":"xmlns:wpg","xmlns:wpi":"xmlns:wpi","xmlns:wne":"xmlns:wne","xmlns:wps":"xmlns:wps"})}},Qa=class extends fe{constructor({id:e,initials:t,author:r,date:n=new Date,children:o},i){super("w:comment"),oe(this,"paraId",void 0),this.paraId=i,this.root.push(new qp({id:e,initials:t,author:r,date:n.toISOString()}));for(const a of o)this.root.push(a)}prepForXml(e){const t=super.prepForXml(e);if(!t||!this.paraId)return t;const r=t["w:comment"];if(!Array.isArray(r))return t;for(let n=r.length-1;n>=0;n--){const o=r[n];if(o&&typeof o=="object"&&"w:p"in o){const i=o["w:p"];Array.isArray(i)&&i.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return t}},Xp=e=>(e+1).toString(16).toUpperCase().padStart(8,"0"),Zp=class extends fe{constructor({children:e}){if(super("w:comments"),oe(this,"relationships",void 0),oe(this,"threadData",void 0),this.root.push(new Kp({"xmlns:cx":"http://schemas.microsoft.com/office/drawing/2014/chartex","xmlns:cx1":"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex","xmlns:cx2":"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex","xmlns:cx3":"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex","xmlns:cx4":"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex","xmlns:cx5":"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex","xmlns:cx6":"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex","xmlns:cx7":"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex","xmlns:cx8":"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:aink":"http://schemas.microsoft.com/office/drawing/2016/ink","xmlns:am3d":"http://schemas.microsoft.com/office/drawing/2017/model3d","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:m":"http://schemas.openxmlformats.org/officeDocument/2006/math","xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:wp14":"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing","xmlns:wp":"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing","xmlns:w10":"urn:schemas-microsoft-com:office:word","xmlns:w":"http://schemas.openxmlformats.org/wordprocessingml/2006/main","xmlns:w14":"http://schemas.microsoft.com/office/word/2010/wordml","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","xmlns:w16cex":"http://schemas.microsoft.com/office/word/2018/wordml/cex","xmlns:w16cid":"http://schemas.microsoft.com/office/word/2016/wordml/cid","xmlns:w16":"http://schemas.microsoft.com/office/word/2018/wordml","xmlns:w16sdtdh":"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash","xmlns:w16se":"http://schemas.microsoft.com/office/word/2015/wordml/symex","xmlns:wpg":"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup","xmlns:wpi":"http://schemas.microsoft.com/office/word/2010/wordprocessingInk","xmlns:wne":"http://schemas.microsoft.com/office/word/2006/wordml","xmlns:wps":"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"})),e.some(t=>t.parentId!==void 0)){const t=new Map(e.map(r=>[r.id,Xp(r.id)]));for(const r of e)this.root.push(new Qa(r,t.get(r.id)));this.threadData=e.map(r=>({paraId:t.get(r.id),parentParaId:r.parentId!==void 0?t.get(r.parentId):void 0,done:r.resolved}))}else for(const t of e)this.root.push(new Qa(t));this.relationships=new Zt}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}},Yp=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{"xmlns:wpc":"xmlns:wpc","xmlns:mc":"xmlns:mc","xmlns:w15":"xmlns:w15","mc:Ignorable":"mc:Ignorable"})}},Qp=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{paraId:"w15:paraId",paraIdParent:"w15:paraIdParent",done:"w15:done"})}},Jp=class extends fe{constructor(e){super("w15:commentEx"),this.root.push(new Qp({paraId:e.paraId,paraIdParent:e.parentParaId,done:e.done!==void 0?e.done?"1":"0":void 0}))}},em=class extends fe{constructor(e){super("w15:commentsEx"),this.root.push(new Yp({"xmlns:wpc":"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:w15":"http://schemas.microsoft.com/office/word/2012/wordml","mc:Ignorable":"w15"}));for(const t of e)this.root.push(new Jp(t))}},tm=class extends op{constructor(){super("w:endnoteRef")}},rm=class extends fe{constructor(){super("w:pageBreakBefore")}},Ir={AUTO:"auto"},nm=({after:e,before:t,line:r,lineRule:n,beforeAutoSpacing:o,afterAutoSpacing:i})=>new Ee({name:"w:spacing",attributes:{after:{key:"w:after",value:e},before:{key:"w:before",value:t},line:{key:"w:line",value:r},lineRule:{key:"w:lineRule",value:n},beforeAutoSpacing:{key:"w:beforeAutospacing",value:o},afterAutoSpacing:{key:"w:afterAutospacing",value:i}}}),Oi={HEADING_2:"Heading2"},Kr=e=>new Ee({name:"w:pStyle",attributes:{val:{key:"w:val",value:e}}}),Ja={LEFT:"left",RIGHT:"right"},im=({type:e,position:t,leader:r})=>new Ee({name:"w:tab",attributes:{val:{key:"w:val",value:e},pos:{key:"w:pos",value:t},leader:{key:"w:leader",value:r}}}),sm=e=>new Ee({name:"w:tabs",children:e.map(t=>im(t))}),Li=class extends fe{constructor(e,t){super("w:numPr"),this.root.push(new am(t)),this.root.push(new om(e))}},am=class extends fe{constructor(e){if(super("w:ilvl"),e>
749)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new tt({val:e}))}},om=class extends fe{constructor(e){super("w:numId"),this.root.push(new tt({val:typeof e=="string"?`{${e}}`:e}))}},cu=class extends fe{constructor(...e){super(...e),oe(this,"fileChild",Symbol())}},lm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"r:id",history:"w:history",anchor:"w:anchor"})}},um=class extends fe{constructor(e,t,r){super("w:hyperlink"),oe(this,"linkId",void 0),this.linkId=t;const n=new lm({history:1,anchor:r||void 0,id:r?void 0:`rId${this.linkId}`});this.root.push(n),e.forEach(o=>{this.root.push(o)})}},cm=class extends fe{constructor(e){super("w:externalHyperlink"),oe(this,"options",void 0),this.options=e}},hm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"w:id",name:"w:name"})}},dm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"w:id"})}},fm=class{constructor(e){oe(this,"bookmarkUniqueNumericId",zp()),oe(this,"start",void 0),oe(this,"children",void 0),oe(this,"end",void 0);const t=this.bookmarkUniqueNumericId();this.start=new pm(e.id,t),this.children=e.children,this.end=new mm(t)}},pm=class extends fe{constructor(e,t){super("w:bookmarkStart");const r=new hm({name:e,id:t});this.root.push(r)}},mm=class extends fe{constructor(e){super("w:bookmarkEnd");const t=new dm({id:e});this.root.push(t)}},gm=e=>new Ee({name:"w:outlineLvl",attributes:{val:{key:"w:val",value:e}}}),Cn=({id:e,fontKey:t,subsetted:r},n)=>new Ee({name:n,attributes:be({id:{key:"r:id",value:e}},t?{fontKey:{key:"w:fontKey",value:`{${t}}`}}:{}),children:[...r?[new he("w:subsetted",r)]:[]]}),wm=({name:e,altName:t,panose1:r,charset:n,family:o,notTrueType:i,pitch:a,sig:s,embedRegular:c,embedBold:d,embedItalic:f,embedBoldItalic:m})=>new Ee({name:"w:font",attributes:{name:{key:"w:name",value:e}},children:[...t?[zr("w:altName",t)]:[],...r?[zr("w:panose1",r)]:[],...n?[zr("w:charset",n)]:[],zr("w:family",o),...i?[new he("w:notTrueType",i)]:[],zr("w:pitch",a),...s?[new Ee({name:"w:sig",attributes:{usb0:{key:"w:usb0",value:s.usb0},usb1:{key:"w:usb1",value:s.usb1},usb2:{key:"w:usb2",value:s.usb2},usb3:{key:"w:usb3",value:s.usb3},csb0:{key:"w:csb0",value:s.csb0},csb1:{key:"w:csb1",value:s.csb1}}})]:[],...c?[Cn(c,"w:embedRegular")]:[],...d?[Cn(d,"w:embedBold")]:[],...f?[Cn(f,"w:embedItalic")]:[],...m?[Cn(m,"w:embedBoldItalic")]:[]]}),ym=({name:e,index:t,fontKey:r,characterSet:n})=>wm({name:e,sig:{usb0:"E0002AFF",usb1:"C000247B",usb2:"00000009",usb3:"00000000",csb0:"000001FF",csb1:"00000000"},charset:n,family:"auto",pitch:"variable",embedRegular:{fontKey:r,id:`rId${t}`}}),vm=e=>new Ee({name:"w:fonts",attributes:{mc:{key:"xmlns:mc",value:"http://schemas.openxmlformats.org/markup-compatibility/2006"},r:{key:"xmlns:r",value:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"},w:{key:"xmlns:w",value:"http://schemas.openxmlformats.org/wordprocessingml/2006/main"},w14:{key:"xmlns:w14",value:"http://schemas.microsoft.com/office/word/2010/wordml"},w15:{key:"xmlns:w15",value:"http://schemas.microsoft.com/office/word/2012/wordml"},w16cex:{key:"xmlns:w16cex",value:"http://schemas.microsoft.com/office/word/2018/wordml/cex"},w16cid:{key:"xmlns:w16cid",value:"http://schemas.microsoft.com/office/word/2016/wordml/cid"},w16:{key:"xmlns:w16",value:"http://schemas.microsoft.com/office/word/2018/wordml"},w16sdtdh:{key:"xmlns:w16sdtdh",value:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash"},w16se:{key:"xmlns:w16se",value:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},Ignorable:{key:"mc:Ignorable",value:"w14 w15 w16se w16cid w16 w16cex w16sdtdh"}},children:e.map((t,r)=>ym({name:t.name,index:r+1,fontKey:t.fontKey,characterSet:t.characterSet}))}),hu=class{constructor(e){oe(this,"options",void 0),oe(this,"fontTable",void 0),oe(this,"relationships",void 0),oe(this,"fontOptionsWithKey",[]),this.options=e,this.fontOptionsWithKey=e.map(t=>be(be({},t),{},{fontKey:Hp()})),this.fontTable=vm(this.fontOptionsWithKey),this.relationships=new Zt;for(let t=0;t<e.length;t++)this.relationships.addRelationship(t+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",`fonts/font${t+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},xm=()=>new Ee({name:"w:wordWrap",attributes:{val:{key:"w:val",value:0}}}),bm=e=>{var t,r;return new Ee({name:"w:framePr",attributes:{anchorLock:{key:"w:anchorLock",value:e.anchorLock},dropCap:{key:"w:dropCap",value:e.dropCap},width:{key:"w:w",value:e.width},height:{key:"w:h",value:e.height},x:{key:"w:x",value:e.position?e.position.x:void 0},y:{key:"w:y",value:e.position?e.position.y:void 0},anchorHorizontal:{key:"w:hAnchor",value:e.anchor.horizontal},anchorVertical:{key:"w:vAnchor",value:e.anchor.vertical},spaceHorizontal:{key:"w:hSpace",value:(t=e.space)===null||t===void 0?void 0:t.horizontal},spaceVertical:{key:"w:vSpace",value:(r=e.space)===null||r===void 0?void 0:r.vertical},rule:{key:"w:hRule",value:e.rule},alignmentX:{key:"w:xAlign",value:e.alignment?e.alignment.x:void 0},alignmentY:{key:"w:yAlign",value:e.alignment?e.alignment.y:void 0},lines:{key:"w:lines",value:e.lines},wrap:{key:"w:wrap",value:e.wrap}}})},pr=class extends qt{constructor(e){if(super("w:pPr",e==null?void 0:e.includeIfEmpty),oe(this,"numberingReferences",[]),!e)return this;if(e.heading&&this.push(Kr(e.heading)),e.bullet&&this.push(Kr("ListParagraph")),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(Kr("ListParagraph"))),e.style&&this.push(Kr(e.style)),e.keepNext!==void 0&&this.push(new he("w:keepNext",e.keepNext)),e.keepLines!==void 0&&this.push(new he("w:keepLines",e.keepLines)),e.pageBreakBefore&&this.push(new rm),e.frame&&this.push(bm(e.frame)),e.widowControl!==void 0&&this.push(new he("w:widowControl",e.widowControl)),e.bullet&&this.push(new Li(1,e.bullet.level)),e.numbering){var t,r;this.numberingReferences.push({reference:e.numbering.reference,instance:(t=e.numbering.instance)!==null&&t!==void 0?t:0}),this.push(new Li(`${e.numbering.reference}-${(r=e.numbering.instance)!==null&&r!==void 0?r:0}`,e.numbering.level))}else e.numbering===!1&&this.push(new Li(0,0));e.border&&this.push(new lp(e.border)),e.thematicBreak&&this.push(new up),e.shading&&this.push(gi(e.shading)),e.wordWrap&&this.push(xm()),e.overflowPunctuation&&this.push(new he("w:overflowPunct",e.overflowPunctuation));const n=[...e.rightTabStop!==void 0?[{type:Ja.RIGHT,position:e.rightTabStop}]:[],...e.tabStops?e.tabStops:[],...e.leftTabStop!==void 0?[{type:Ja.LEFT,position:e.leftTabStop}]:[]];n.length>0&&this.push(sm(n)),e.bidirectional!==void 0&&this.push(new he("w:bidi",e.bidirectional)),e.spacing&&this.push(nm(e.spacing)),e.indent&&this.push(cp(e.indent)),e.contextualSpacing!==void 0&&this.push(new he("w:contextualSpacing",e.contextualSpacing)),e.alignment&&this.push(iu(e.alignment)),e.outlineLevel!==void 0&&this.push(gm(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new he("w:suppressLineNumbers",e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new he("w:autoSpaceDN",e.autoSpaceEastAsianText)),e.run&&this.push(new Cp(e.run)),e.revision&&this.push(new _m(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof hu))for(const t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},_m=class extends fe{constructor(e){super("w:pPrChange"),this.root.push(new vt({id:e.id,author:e.author,date:e.date})),this.root.push(new pr(be(be({},e),{},{includeIfEmpty:!0})))}},_t=class extends cu{constructor(e){if(super("w:p"),oe(this,"properties",void 0),typeof e=="string")return this.properties=new pr({}),this.root.push(this.properties),this.root.push(new jr(e)),this;if(this.properties=new pr(e),this.root.push(this.properties),e.text&&this.root.push(new jr(e.text)),e.children)for(const t of e.children){if(t instanceof fm){this.root.push(t.start);for(const r of t.children)this.root.push(r);this.root.push(t.end);continue}this.root.push(t)}}
74prepForXml(e){for(const t of this.root)if(t instanceof cm){const r=this.root.indexOf(t),n=new um(t.options.children,$p());e.viewWrapper.Relationships.addRelationship(n.linkId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",t.options.link,Vp.EXTERNAL),this.root[r]=n}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}},Sm=e=>new Ee({name:"w:gridCol",attributes:e!==void 0?{width:{key:"w:w",value:Ze(e)}}:void 0}),du=class extends fe{constructor(e,t){super("w:tblGrid");for(const r of e)this.root.push(Sm(r));t&&this.root.push(new km(t))}},Em=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"w:id"})}},km=class extends fe{constructor(e){super("w:tblGridChange"),this.root.push(new Em({id:e.id})),this.root.push(new du(e.columnWidths))}},Tm=class extends fe{constructor(e){super("w:ins"),this.root.push(new vt({id:e.id,author:e.author,date:e.date}))}},Am=class extends fe{constructor(e){super("w:del"),this.root.push(new vt({id:e.id,author:e.author,date:e.date}))}},Cm=class extends fe{constructor(e){super("w:cellIns"),this.root.push(new vt({id:e.id,author:e.author,date:e.date}))}},Nm=class extends fe{constructor(e){super("w:cellDel"),this.root.push(new vt({id:e.id,author:e.author,date:e.date}))}},Rm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{id:"w:id",author:"w:author",date:"w:date",verticalMerge:"w:vMerge",verticalMergeOriginal:"w:vMergeOrig"})}},jm=class extends fe{constructor(e){super("w:cellMerge"),this.root.push(new Rm(e))}},Im={TOP:"top",CENTER:"center",BOTTOM:"bottom"};be(be({},Im),{},{BOTH:"both"});var fu=e=>new Ee({name:"w:vAlign",attributes:{verticalAlign:{key:"w:val",value:e}}}),pu=({marginUnitType:e=wt.DXA,top:t,left:r,bottom:n,right:o})=>[{name:"w:top",size:t},{name:"w:left",size:r},{name:"w:bottom",size:n},{name:"w:right",size:o}].filter(i=>i.size!==void 0).map(({name:i,size:a})=>ii(i,{type:e,size:a})),Fm=e=>{const t=pu(e);if(t.length!==0)return new Ee({name:"w:tblCellMar",children:t})},Pm=e=>{const t=pu(e);if(t.length!==0)return new Ee({name:"w:tcMar",children:t})},wt={AUTO:"auto",DXA:"dxa",PERCENTAGE:"pct"},ii=(e,{type:t=wt.AUTO,size:r})=>{let n=r;return t===wt.PERCENTAGE&&typeof r=="number"&&(n=`${r}%`),new Ee({name:e,attributes:{type:{key:"w:type",value:t},size:{key:"w:w",value:nu(n)}}})},Om=class extends qt{constructor(e){super("w:tcBorders"),e.top&&this.root.push(Ue("w:top",e.top)),e.start&&this.root.push(Ue("w:start",e.start)),e.left&&this.root.push(Ue("w:left",e.left)),e.bottom&&this.root.push(Ue("w:bottom",e.bottom)),e.end&&this.root.push(Ue("w:end",e.end)),e.right&&this.root.push(Ue("w:right",e.right))}},Lm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val"})}},Bm=class extends fe{constructor(e){super("w:gridSpan"),this.root.push(new Lm({val:Je(e)}))}},mu={CONTINUE:"continue",RESTART:"restart"},Dm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val"})}},eo=class extends fe{constructor(e){super("w:vMerge"),this.root.push(new Dm({val:e}))}},Mm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val"})}},Um=class extends fe{constructor(e){super("w:textDirection"),this.root.push(new Mm({val:e}))}},gu=class extends qt{constructor(e){if(super("w:tcPr",e.includeIfEmpty),e.width&&this.root.push(ii("w:tcW",e.width)),e.columnSpan&&this.root.push(new Bm(e.columnSpan)),e.verticalMerge?this.root.push(new eo(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new eo(mu.RESTART)),e.borders&&this.root.push(new Om(e.borders)),e.shading&&this.root.push(gi(e.shading)),e.margins){const t=Pm(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new Um(e.textDirection)),e.verticalAlign&&this.root.push(fu(e.verticalAlign)),e.insertion&&this.root.push(new Cm(e.insertion)),e.deletion&&this.root.push(new Nm(e.deletion)),e.revision&&this.root.push(new zm(e.revision)),e.cellMerge&&this.root.push(new jm(e.cellMerge))}},zm=class extends fe{constructor(e){super("w:tcPrChange"),this.root.push(new vt({id:e.id,author:e.author,date:e.date})),this.root.push(new gu(be(be({},e),{},{includeIfEmpty:!0})))}},Lt=class extends fe{constructor(e){super("w:tc"),oe(this,"options",void 0),this.options=e,this.root.push(new gu(e));for(const t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof _t||this.root.push(new _t({})),super.prepForXml(e)}},yr={style:hn.NONE,size:0,color:"auto"},vr={style:hn.SINGLE,size:4,color:"auto"},wu=class extends fe{constructor(e){var t,r,n,o,i,a;super("w:tblBorders"),this.root.push(Ue("w:top",(t=e.top)!==null&&t!==void 0?t:vr)),this.root.push(Ue("w:left",(r=e.left)!==null&&r!==void 0?r:vr)),this.root.push(Ue("w:bottom",(n=e.bottom)!==null&&n!==void 0?n:vr)),this.root.push(Ue("w:right",(o=e.right)!==null&&o!==void 0?o:vr)),this.root.push(Ue("w:insideH",(i=e.insideHorizontal)!==null&&i!==void 0?i:vr)),this.root.push(Ue("w:insideV",(a=e.insideVertical)!==null&&a!==void 0?a:vr))}};oe(wu,"NONE",{top:yr,bottom:yr,left:yr,right:yr,insideHorizontal:yr,insideVertical:yr});var $m=e=>new Ee({name:"w:tblOverlap",attributes:{val:{key:"w:val",value:e}}}),Hm=({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:r,relativeHorizontalPosition:n,absoluteVerticalPosition:o,relativeVerticalPosition:i,bottomFromText:a,topFromText:s,leftFromText:c,rightFromText:d,overlap:f})=>new Ee({name:"w:tblpPr",attributes:{leftFromText:{key:"w:leftFromText",value:c===void 0?void 0:Ze(c)},rightFromText:{key:"w:rightFromText",value:d===void 0?void 0:Ze(d)},topFromText:{key:"w:topFromText",value:s===void 0?void 0:Ze(s)},bottomFromText:{key:"w:bottomFromText",value:a===void 0?void 0:Ze(a)},absoluteHorizontalPosition:{key:"w:tblpX",value:r===void 0?void 0:Dt(r)},absoluteVerticalPosition:{key:"w:tblpY",value:o===void 0?void 0:Dt(o)},horizontalAnchor:{key:"w:horzAnchor",value:e}
74,relativeHorizontalPosition:{key:"w:tblpXSpec",value:n},relativeVerticalPosition:{key:"w:tblpYSpec",value:i},verticalAnchor:{key:"w:vertAnchor",value:t}},children:f?[$m(f)]:void 0}),Wm=e=>new Ee({name:"w:tblLayout",attributes:{type:{key:"w:type",value:e}}}),Vm={DXA:"dxa"},yu=({type:e=Vm.DXA,value:t})=>new Ee({name:"w:tblCellSpacing",attributes:{type:{key:"w:type",value:e},value:{key:"w:w",value:nu(t)}}}),Gm=({firstRow:e,lastRow:t,firstColumn:r,lastColumn:n,noHBand:o,noVBand:i})=>new Ee({name:"w:tblLook",attributes:{firstRow:{key:"w:firstRow",value:e},lastRow:{key:"w:lastRow",value:t},firstColumn:{key:"w:firstColumn",value:r},lastColumn:{key:"w:lastColumn",value:n},noHBand:{key:"w:noHBand",value:o},noVBand:{key:"w:noVBand",value:i}}}),vu=class extends qt{constructor(e){if(super("w:tblPr",e.includeIfEmpty),e.style&&this.root.push(new dr("w:tblStyle",e.style)),e.float&&this.root.push(Hm(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new he("w:bidiVisual",e.visuallyRightToLeft)),e.width&&this.root.push(ii("w:tblW",e.width)),e.alignment&&this.root.push(iu(e.alignment)),e.indent&&this.root.push(ii("w:tblInd",e.indent)),e.borders&&this.root.push(new wu(e.borders)),e.shading&&this.root.push(gi(e.shading)),e.layout&&this.root.push(Wm(e.layout)),e.cellMargin){const t=Fm(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(Gm(e.tableLook)),e.cellSpacing&&this.root.push(yu(e.cellSpacing)),e.revision&&this.root.push(new qm(e.revision))}},qm=class extends fe{constructor(e){super("w:tblPrChange"),this.root.push(new vt({id:e.id,author:e.author,date:e.date})),this.root.push(new vu(be(be({},e),{},{includeIfEmpty:!0})))}},xu=class extends cu{constructor({rows:e,width:t,columnWidths:r=Array(Math.max(...e.map(x=>x.CellCount))).fill(100),columnWidthsRevision:n,margins:o,indent:i,float:a,layout:s,style:c,borders:d,alignment:f,visuallyRightToLeft:m,tableLook:E,cellSpacing:g,revision:y}){super("w:tbl"),this.root.push(new vu({borders:d??{},width:t??{size:100},indent:i,float:a,layout:s,style:c,alignment:f,cellMargin:o,visuallyRightToLeft:m,tableLook:E,cellSpacing:g,revision:y})),this.root.push(new du(r,n));for(const x of e)this.root.push(x);e.forEach((x,v)=>{if(v===e.length-1)return;let k=0;x.cells.forEach(S=>{if(S.options.rowSpan&&S.options.rowSpan>1){const T=new Lt({rowSpan:S.options.rowSpan-1,columnSpan:S.options.columnSpan,borders:S.options.borders,children:[],verticalMerge:mu.CONTINUE});e[v+1].addCellToColumnIndex(T,k)}k+=S.options.columnSpan||1})})}},Km=(e,t)=>new Ee({name:"w:trHeight",attributes:{value:{key:"w:val",value:Ze(e)},rule:{key:"w:hRule",value:t}}}),bu=class extends qt{constructor(e){super("w:trPr",e.includeIfEmpty),e.cantSplit!==void 0&&this.root.push(new he("w:cantSplit",e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new he("w:tblHeader",e.tableHeader)),e.height&&this.root.push(Km(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(yu(e.cellSpacing)),e.insertion&&this.root.push(new Tm(e.insertion)),e.deletion&&this.root.push(new Am(e.deletion)),e.revision&&this.root.push(new Xm(e.revision))}},Xm=class extends fe{constructor(e){super("w:trPrChange"),this.root.push(new vt({id:e.id,author:e.author,date:e.date})),this.root.push(new bu(be(be({},e),{},{includeIfEmpty:!0})))}},ls=class extends fe{constructor(e){super("w:tr"),oe(this,"options",void 0),this.options=e,this.root.push(new bu(e));for(const t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof Lt)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){const r=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,r-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw new Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let r=1;r<e;r++){const n=this.root[r];t+=n.options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw new Error("cell 'columnIndex' should not less than zero");let r=0,n=1;for(;r<=e;){if(n>=this.root.length){if(t)return this.root.length;throw new Error(`cell 'columnIndex' should not great than ${r-1}`)}const o=this.root[n];n+=1,r+=o&&o.options.columnSpan||1}return n-1}},Zm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},Ym=class extends fe{constructor(){super("Properties"),this.root.push(new Zm({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}))}},Qm=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{xmlns:"xmlns"})}},Ot=(e,t)=>new Ee({name:"Default",attributes:{contentType:{key:"ContentType",value:e},extension:{key:"Extension",value:t}}}),at=(e,t)=>
74new Ee({name:"Override",attributes:{contentType:{key:"ContentType",value:e},partName:{key:"PartName",value:t}}}),Jm=class extends fe{constructor(){super("Types"),this.root.push(new Qm({xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"})),this.root.push(Ot("image/png","png")),this.root.push(Ot("image/jpeg","jpeg")),this.root.push(Ot("image/jpeg","jpg")),this.root.push(Ot("image/bmp","bmp")),this.root.push(Ot("image/gif","gif")),this.root.push(Ot("image/svg+xml","svg")),this.root.push(Ot("application/vnd.openxmlformats-package.relationships+xml","rels")),this.root.push(Ot("application/xml","xml")),this.root.push(Ot("application/vnd.openxmlformats-officedocument.obfuscatedFont","odttf")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml","/word/document.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml","/word/styles.xml")),this.root.push(at("application/vnd.openxmlformats-package.core-properties+xml","/docProps/core.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.custom-properties+xml","/docProps/custom.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.extended-properties+xml","/docProps/app.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml","/word/numbering.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml","/word/footnotes.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml","/word/endnotes.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml","/word/settings.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml","/word/comments.xml")),this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml","/word/fontTable.xml"))}addCommentsExtended(){this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml","/word/commentsExtended.xml"))}addFooter(e){this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",`/word/footer${e}.xml`))}addHeader(e){this.root.push(at("application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",`/word/header${e}.xml`))}},to={wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",aink:"http://schemas.microsoft.com/office/drawing/2016/ink",am3d:"http://schemas.microsoft.com/office/drawing/2017/model3d",w16cex:"http://schemas.microsoft.com/office/word/2018/wordml/cex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16:"http://schemas.microsoft.com/office/word/2018/wordml",w16sdtdh:"http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"},wi=class extends Ae{constructor(e,t){super(be({Ignorable:t},Object.fromEntries(e.map(r=>[r,to[r]])))),oe(this,"xmlKeys",be({Ignorable:"mc:Ignorable"},Object.fromEntries(Object.keys(to).map(r=>[r,`xmlns:${r}`]))))}},eg=class extends fe{constructor(e){super("cp:coreProperties"),this.root.push(new wi(["cp","dc","dcterms","dcmitype","xsi"])),e.title&&this.root.push(new tr("dc:title",e.title)),e.subject&&this.root.push(new tr("dc:subject",e.subject)),e.creator&&this.root.push(new tr("dc:creator",e.creator)),e.keywords&&this.root.push(new tr("cp:keywords",e.keywords)),e.description&&this.root.push(new tr("dc:description",e.description)),e.lastModifiedBy&&this.root.push(new tr("cp:lastModifiedBy",e.lastModifiedBy)),e.revision&&this.root.push(new tr("cp:revision",String(e.revision))),this.root.push(new ro("dcterms:created")),this.root.push(new ro("dcterms:modified"))}},tg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{type:"xsi:type"})}},ro=class extends fe{constructor(e){super(e),this.root.push(new tg({type:"dcterms:W3CDTF"})),this.root.push(ap(new Date))}},rg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{xmlns:"xmlns",vt:"xmlns:vt"})}},ng=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{formatId:"fmtid",pid:"pid",name:"name"})}},ig=class extends fe{constructor(e,t){super("property"),this.root.push(new ng({formatId:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:e.toString(),name:t.name})),this.root.push(new sg(t.value))}},sg=class extends fe{constructor(e){super("vt:lpwstr"),this.root.push(e)}},ag=class extends fe{constructor(e){super("Properties"),oe(this,"nextId",void 0),oe(this,"properties",[]),this.root.push(new rg({xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"})),this.nextId=2;
74for(const t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(t=>this.root.push(t)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new ig(this.nextId++,e))}},og=({space:e,count:t,separate:r,equalWidth:n,children:o})=>new Ee({name:"w:cols",attributes:{space:{key:"w:space",value:e===void 0?void 0:Ze(e)},count:{key:"w:num",value:t===void 0?void 0:Je(t)},separate:{key:"w:sep",value:r},equalWidth:{key:"w:equalWidth",value:n}},children:!n&&o?o:void 0}),lg=({type:e,linePitch:t,charSpace:r})=>new Ee({name:"w:docGrid",attributes:{type:{key:"w:type",value:e},linePitch:{key:"w:linePitch",value:Je(t)},charSpace:{key:"w:charSpace",value:r?Je(r):void 0}}}),kr={DEFAULT:"default",FIRST:"first",EVEN:"even"},no={HEADER:"w:headerReference",FOOTER:"w:footerReference"},Bi=(e,t)=>new Ee({name:e,attributes:{type:{key:"w:type",value:t.type||kr.DEFAULT},id:{key:"r:id",value:`rId${t.id}`}}}),ug=({countBy:e,start:t,restart:r,distance:n})=>new Ee({name:"w:lnNumType",attributes:{countBy:{key:"w:countBy",value:e===void 0?void 0:Je(e)},start:{key:"w:start",value:t===void 0?void 0:Je(t)},restart:{key:"w:restart",value:r},distance:{key:"w:distance",value:n===void 0?void 0:Ze(n)}}}),io=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{display:"w:display",offsetFrom:"w:offsetFrom",zOrder:"w:zOrder"})}},cg=class extends qt{constructor(e){if(super("w:pgBorders"),!e)return this;e.pageBorders?this.root.push(new io({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new io({})),e.pageBorderTop&&this.root.push(Ue("w:top",e.pageBorderTop)),e.pageBorderLeft&&this.root.push(Ue("w:left",e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(Ue("w:bottom",e.pageBorderBottom)),e.pageBorderRight&&this.root.push(Ue("w:right",e.pageBorderRight))}},hg=(e,t,r,n,o,i,a)=>new Ee({name:"w:pgMar",attributes:{top:{key:"w:top",value:Dt(e)},right:{key:"w:right",value:Ze(t)},bottom:{key:"w:bottom",value:Dt(r)},left:{key:"w:left",value:Ze(n)},header:{key:"w:header",value:Ze(o)},footer:{key:"w:footer",value:Ze(i)},gutter:{key:"w:gutter",value:Ze(a)}}}),dg=({start:e,formatType:t,separator:r})=>new Ee({name:"w:pgNumType",attributes:{start:{key:"w:start",value:e===void 0?void 0:Je(e)},formatType:{key:"w:fmt",value:t},separator:{key:"w:chapSep",value:r}}}),si={PORTRAIT:"portrait",LANDSCAPE:"landscape"},fg=({width:e,height:t,orientation:r,code:n})=>{const o=Ze(e),i=Ze(t);return new Ee({name:"w:pgSz",attributes:{width:{key:"w:w",value:r===si.LANDSCAPE?i:o},height:{key:"w:h",value:r===si.LANDSCAPE?o:i},orientation:{key:"w:orient",value:r},code:{key:"w:code",value:n}}})},pg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val"})}},mg=class extends fe{constructor(e){super("w:textDirection"),this.root.push(new pg({val:e}))}},gg=e=>new Ee({name:"w:type",attributes:{val:{key:"w:val",value:e}}}),rr={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},Di={WIDTH:11906,HEIGHT:16838,ORIENTATION:si.PORTRAIT},_u=class extends fe{constructor({page:{size:{width:e=Di.WIDTH,height:t=Di.HEIGHT,orientation:r=Di.ORIENTATION,code:n}={},margin:{top:o=rr.TOP,right:i=rr.RIGHT,bottom:a=rr.BOTTOM,left:s=rr.LEFT,header:c=rr.HEADER,footer:d=rr.FOOTER,gutter:f=rr.GUTTER}={},pageNumbers:m={},borders:E,textDirection:g}={},grid:{linePitch:y=360,charSpace:x,type:v}={},headerWrapperGroup:k={},footerWrapperGroup:S={},lineNumbers:T,titlePage:C,verticalAlign:A,column:_,type:O,revision:M}={}){super("w:sectPr"),this.addHeaderFooterGroup(no.HEADER,k),this.addHeaderFooterGroup(no.FOOTER,S),O&&this.root.push(gg(O)),this.root.push(fg({width:e,height:t,orientation:r,code:n})),this.root.push(hg(o,i,a,s,c,d,f)),E&&this.root.push(new cg(E)),T&&this.root.push(ug(T)),this.root.push(dg(m)),_&&this.root.push(og(_)),A&&this.root.push(fu(A)),C!==void 0&&this.root.push(new he("w:titlePg",C)),g&&this.root.push(new mg(g)),M&&this.root.push(new wg(M)),this.root.push(lg({linePitch:y,charSpace:x,type:v}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(Bi(e,{type:kr.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(Bi(e,{type:kr.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(Bi(e,{type:kr.EVEN,id:t.even.View.ReferenceId}))}},wg=class extends fe{constructor(e){super("w:sectPrChange"),this.root.push(new vt({id:e.id,author:e.author,date:e.date})),this.root.push(new _u(e))}},yg=class extends fe{constructor(){super("w:body"),oe(this,"sections",[])}addSection(e){const t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new _u(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){const t=new _t({}),r=new pr({});return r.push(e),t.addChildElement(r),t}},vg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{color:"w:color",themeColor:"w:themeColor",themeShade:"w:themeShade",themeTint:"w:themeTint"})}},xg=class extends fe{constructor(e){super("w:background"),this.root.push(new vg({color:e.color===void 0?void 0:Cr(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:Za(e.themeShade),themeTint:e.themeTint===void 0?void 0:Za(e.themeTint)}))}},bg=class extends fe{constructor(e){super("w:document"),oe(this,"body",void 0),this.root.push(new wi(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps","cx","cx1","cx2","cx3","cx4","cx5","cx6","cx7","cx8","aink","am3d","w16cex","w16cid","w16","w16sdtdh","w16se"],"w14 w15 wp14")),this.body=new yg,e.background&&this.root.push(new xg(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},_g=class{constructor(e){oe(this,"document",void 0),oe(this,"relationships",void 0),this.document=new bg(e),this.relationships=new Zt}get View(){return this.document}get Relationships(){return this.relationships}},Sg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Eg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{type:"w:type",id:"w:id"})}},kg=class extends dn{constructor(){super({style:"EndnoteReference"}),this.root.push(new tm)}},so={SEPARATOR:"separator",CONTINUATION_SEPARATOR:"continuationSeparator"},Mi=class extends fe{constructor(e){super("w:endnote"),this.root.push(new Eg({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new kg),this.root.push(r)}}},Tg=class extends fe{constructor(){super("w:continuationSeparator")}},Su=class extends dn{constructor(){super({}),this.root.push(new Tg)}},Ag=class extends fe{constructor(){super("w:separator")}},Eu=class extends dn{constructor(){super({}),this.root.push(new Ag)}},Cg=class extends fe{constructor(){super("w:endnotes"),this.root.push(new Sg({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new Mi({id:-1,type:so.SEPARATOR,children:[new _t({spacing:{after:0,line:240,lineRule:Ir.AUTO},children:[new Eu]})]});this.root.push(e);
74const t=new Mi({id:0,type:so.CONTINUATION_SEPARATOR,children:[new _t({spacing:{after:0,line:240,lineRule:Ir.AUTO},children:[new Su]})]});this.root.push(t)}createEndnote(e,t){const r=new Mi({id:e,children:t});this.root.push(r)}},Ng=class{constructor(){oe(this,"endnotes",void 0),oe(this,"relationships",void 0),this.endnotes=new Cg,this.relationships=new Zt}get View(){return this.endnotes}get Relationships(){return this.relationships}},Rg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type"})}},jg=class extends eu{constructor(e,t){super("w:ftr",t),oe(this,"refId",void 0),this.refId=e,t||this.root.push(new Rg({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},Ig=class{constructor(e,t,r){oe(this,"media",void 0),oe(this,"footer",void 0),oe(this,"relationships",void 0),this.media=e,this.footer=new jg(t,r),this.relationships=new Zt}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},Fg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{type:"w:type",id:"w:id"})}},Pg=class extends fe{constructor(){super("w:footnoteRef")}},Og=class extends dn{constructor(){super({style:"FootnoteReference"}),this.root.push(new Pg)}},ao={SEPERATOR:"separator",CONTINUATION_SEPERATOR:"continuationSeparator"},Ui=class extends fe{constructor(e){super("w:footnote"),this.root.push(new Fg({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){const r=e.children[t];t===0&&r.addRunToFront(new Og),this.root.push(r)}}},Lg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},Bg=class extends fe{constructor(){super("w:footnotes"),this.root.push(new Lg({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}));const e=new Ui({id:-1,type:ao.SEPERATOR,children:[new _t({spacing:{after:0,line:240,lineRule:Ir.AUTO},children:[new Eu]})]});this.root.push(e);
74const t=new Ui({id:0,type:ao.CONTINUATION_SEPERATOR,children:[new _t({spacing:{after:0,line:240,lineRule:Ir.AUTO},children:[new Su]})]});this.root.push(t)}createFootNote(e,t){const r=new Ui({id:e,children:t});this.root.push(r)}},Dg=class{constructor(){oe(this,"footnotess",void 0),oe(this,"relationships",void 0),this.footnotess=new Bg,this.relationships=new Zt}get View(){return this.footnotess}get Relationships(){return this.relationships}},Mg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",cp:"xmlns:cp",dc:"xmlns:dc",dcterms:"xmlns:dcterms",dcmitype:"xmlns:dcmitype",xsi:"xmlns:xsi",type:"xsi:type",cx:"xmlns:cx",cx1:"xmlns:cx1",cx2:"xmlns:cx2",cx3:"xmlns:cx3",cx4:"xmlns:cx4",cx5:"xmlns:cx5",cx6:"xmlns:cx6",cx7:"xmlns:cx7",cx8:"xmlns:cx8",w16cid:"xmlns:w16cid",w16se:"xmlns:w16se"})}},Ug=class extends eu{constructor(e,t){super("w:hdr",t),oe(this,"refId",void 0),this.refId=e,t||this.root.push(new Mg({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",cx:"http://schemas.microsoft.com/office/drawing/2014/chartex",cx1:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",cx2:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",cx3:"http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",cx4:"http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",cx5:"http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",cx6:"http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",cx7:"http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",cx8:"http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",w16cid:"http://schemas.microsoft.com/office/word/2016/wordml/cid",w16se:"http://schemas.microsoft.com/office/word/2015/wordml/symex"}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},zg=class{constructor(e,t,r){oe(this,"media",void 0),oe(this,"header",void 0),oe(this,"relationships",void 0),this.media=e,this.header=new Ug(t,r),this.relationships=new Zt}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},$g=class{constructor(){oe(this,"map",void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}},At={BULLET:"bullet"},Hg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{ilvl:"w:ilvl",tentative:"w15:tentative"})}},Wg=class extends fe{constructor(e){super("w:numFmt"),this.root.push(new tt({val:e}))}},Vg=class extends fe{constructor(e){super("w:lvlText"),this.root.push(new tt({val:e}))}},Gg=class extends fe{constructor(e){super("w:lvlJc"),this.root.push(new tt({val:e}))}},qg=class extends fe{constructor(e){super("w:suff"),this.root.push(new tt({val:e}))}},Kg=class extends fe{constructor(){super("w:isLgl")}},Xg=class extends fe{constructor({level:e,format:t,text:r,alignment:n=Fe.START,start:o=1,style:i,suffix:a,isLegalNumberingStyle:s}){if(super("w:lvl"),oe(this,"paragraphProperties",void 0),oe(this,"runProperties",void 0),this.root.push(new Qr("w:start",Je(o))),t&&this.root.push(new Wg(t)),a&&this.root.push(new qg(a)),s&&this.root.push(new Kg),r&&this.root.push(new Vg(r)),this.root.push(new Gg(n)),i!=null&&i.style&&this.root.push(Kr(i.style)),this.paragraphProperties=new pr(i&&i.paragraph),this.runProperties=new mr(i&&i.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>
749)throw new Error("Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7");this.root.push(new Hg({ilvl:Je(e),tentative:1}))}},Zg=class extends Xg{},Yg=class extends fe{constructor(e){super("w:multiLevelType"),this.root.push(new tt({val:e}))}},Qg=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{abstractNumId:"w:abstractNumId",restartNumberingAfterBreak:"w15:restartNumberingAfterBreak"})}},oo=class extends fe{constructor(e,t){super("w:abstractNum"),oe(this,"id",void 0),this.root.push(new Qg({abstractNumId:Je(e),restartNumberingAfterBreak:0})),this.root.push(new Yg("hybridMultilevel")),this.id=e;for(const r of t)this.root.push(new Zg(r))}},Jg=class extends fe{constructor(e){super("w:abstractNumId"),this.root.push(new tt({val:e}))}},ew=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{numId:"w:numId"})}},lo=class extends fe{constructor(e){if(super("w:num"),oe(this,"numId",void 0),oe(this,"reference",void 0),oe(this,"instance",void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new ew({numId:Je(e.numId)})),this.root.push(new Jg(Je(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(const t of e.overrideLevels)this.root.push(new rw(t.num,t.start))}},tw=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{ilvl:"w:ilvl"})}},rw=class extends fe{constructor(e,t){super("w:lvlOverride"),this.root.push(new tw({ilvl:e})),t!==void 0&&this.root.push(new iw(t))}},nw=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val"})}},iw=class extends fe{constructor(e){super("w:startOverride"),this.root.push(new nw({val:e}))}},sw=class extends fe{constructor(e){super("w:numbering"),oe(this,"abstractNumberingMap",new Map),oe(this,"concreteNumberingMap",new Map),oe(this,"referenceConfigMap",new Map),oe(this,"abstractNumUniqueNumericId",Mp()),oe(this,"concreteNumUniqueNumericId",Up()),this.root.push(new wi(["wpc","mc","o","r","m","v","wp14","wp","w10","w","w14","w15","wpg","wpi","wne","wps"],"w14 w15 wp14"));const t=new oo(this.abstractNumUniqueNumericId(),[{level:0,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:bt(.5),hanging:bt(.25)}}}},{level:1,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:bt(1),hanging:bt(.25)}}}},{level:2,format:At.BULLET,text:"â ",alignment:Fe.LEFT,style:{paragraph:{indent:{left:2160,hanging:bt(.25)}}}},{level:3,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:2880,hanging:bt(.25)}}}},{level:4,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:3600,hanging:bt(.25)}}}},{level:5,format:At.BULLET,text:"â ",alignment:Fe.LEFT,style:{paragraph:{indent:{left:4320,hanging:bt(.25)}}}},{level:6,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:5040,hanging:bt(.25)}}}},{level:7,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:5760,hanging:bt(.25)}}}},{level:8,format:At.BULLET,text:"â",alignment:Fe.LEFT,style:{paragraph:{indent:{left:6480,hanging:bt(.25)}}}}]);this.concreteNumberingMap.set("default-bullet-numbering",new lo({numId:1,abstractNumId:t.id,reference:"default-bullet-numbering",instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set("default-bullet-numbering",t);for(const r of e.config)this.abstractNumberingMap.set(r.reference,new oo(this.abstractNumUniqueNumericId(),r.levels)),this.referenceConfigMap.set(r.reference,r.levels)}prepForXml(e){for(const t of this.abstractNumberingMap.values())this.root.push(t);for(const t of this.concreteNumberingMap.values())this.root.push(t);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){const r=this.abstractNumberingMap.get(e);if(!r)return;const n=`${e}-${t}`;if(this.concreteNumberingMap.has(n))return;const o=this.referenceConfigMap.get(e),i=o&&o[0].start,a={numId:this.concreteNumUniqueNumericId(),abstractNumId:r.id,reference:e,instance:t,overrideLevels:[typeof i=="number"&&Number.isInteger(i)?{num:0,start:i}:{num:0,start:1}]};this.concreteNumberingMap.set(n,new lo(a))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},aw=e=>new Ee({name:"w:compatSetting",attributes:{version:{key:"w:val",value:e},name:{key:"w:name",value:"compatibilityMode"},uri:{key:"w:uri",value:"http://schemas.microsoft.com/office/word"}}}),ow=class extends fe{constructor(e){super("w:compat"),e.version&&this.root.push(aw(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new he("w:useSingleBorderforContiguousCells",e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new he("w:wpJustification",e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new he("w:noTabHangInd",e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new he("w:noLeading",e.noLeading)),e.spaceForUnderline&&this.root.push(new he("w:spaceForUL",e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new he("w:noColumnBalance",e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new he("w:balanceSingleByteDoubleByteWidth",e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new he("w:noExtraLineSpacing",e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new he("w:doNotLeaveBackslashAlone",e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new he("w:ulTrailSpace",e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new he("w:doNotExpandShiftReturn",e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new he("w:spacingInWholePoints",e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new he("w:lineWrapLikeWord6",e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new he("w:printBodyTextBeforeHeader",e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new he("w:printColBlack",e.printColorsBlack)),e.spaceWi
74dth&&this.root.push(new he("w:wpSpaceWidth",e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new he("w:showBreaksInFrames",e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new he("w:subFontBySize",e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new he("w:suppressBottomSpacing",e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new he("w:suppressTopSpacing",e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new he("w:suppressSpacingAtTopOfPage",e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new he("w:suppressTopSpacingWP",e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new he("w:suppressSpBfAfterPgBrk",e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new he("w:swapBordersFacingPages",e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new he("w:convMailMergeEsc",e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new he("w:truncateFontHeightsLikeWP6",e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new he("w:mwSmallCaps",e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new he("w:usePrinterMetrics",e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new he("w:doNotSuppressParagraphBorders",e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new he("w:wrapTrailSpaces",e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new he("w:footnoteLayoutLikeWW8",e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new he("w:shapeLayoutLikeWW8",e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new he("w:alignTablesRowByRow",e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new he("w:forgetLastTabAlignment",e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new he("w:adjustLineHeightInTable",e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new he("w:autoSpaceLikeWord95",e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new he("w:noSpaceRaiseLower",e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new he("w:doNotUseHTMLParagraphAutoSpacing",e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new he("w:layoutRawTableWidth",e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new he("w:layoutTableRowsApart",e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new he("w:useWord97LineBreakRules",e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new he("w:doNotBreakWrappedTables",e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new he("w:doNotSnapToGridInCell",e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new he("w:selectFldWithFirstOrLastChar",e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new he("w:applyBreakingRules",e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new he("w:doNotWrapTextWithPunct",e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new he("w:doNotUseEastAsianBreakRules",e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new he("w:useWord2002TableStyleRules",e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new he("w:growAutofit",e.growAutofit)),e.useFELayout&&this.root.push(new he("w:useFELayout",e.useFELayout)),e.useNormalStyleForList&&this.root.push(new he("w:useNormalStyleForList",e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new he("w:doNotUseIndentAsNumberingTabStop",e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new he("w:useAltKinsokuLineBreakRules",e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new he("w:allowSpaceOfSameStyleInTable",e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new he("w:doNotSuppressIndentation",e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new he("w:doNotAutofitConstrainedTables",e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new he("w:autofitToFirstFixedWidthCell",e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new he("w:underlineTabInNumList",e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new he("w:displayHangulFixedWidth",e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new he("w:splitPgBreakAndParaMark",e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new he("w:doNotVertAlignCellWithSp",e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new he("w:doNotBreakConstrainedForcedTable",e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new he("w:doNotVertAlignInTxbx",e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new he("w:useAnsiKerningPairs",e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new he("w:cachedColBalance",e.cachedColumnBalance))}},lw=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{wpc:"xmlns:wpc",mc:"xmlns:mc",o:"xmlns:o",r:"xmlns:r",m:"xmlns:m",v:"xmlns:v",wp14:"xmlns:wp14",wp:"xmlns:wp",w10:"xmlns:w10",w:"xmlns:w",w14:"xmlns:w14",w15:"xmlns:w15",wpg:"xmlns:wpg",wpi:"xmlns:wpi",wne:"xmlns:wne",wps:"xmlns:wps",Ignorable:"mc:Ignorable"})}},uw=class extends fe{constructor(e){var t,r,n,o,i,a,s,c;super("w:settings"),this.root.push(new lw({wpc:"http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas",mc:"http://schemas.openxmlformats.org/markup-compatibility/2006",o:"urn:schemas-microsoft-com:office:office",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",m:"http://schemas.openxmlformats.org/officeDocument/2006/math",v:"urn:schemas-microsoft-com:vml",wp14:"http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing",wp:"http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing",w10:"urn:schemas-microsoft-com:office:word",w:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",w14:"http://schemas.microsoft.com/office/word/2010/wordml",w15:"http://schemas.microsoft.com/office/word/2012/wordml",wpg:"http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",wpi:"http://schemas.microsoft.com/office/word/2010/wordprocessingInk",wne:"http://schemas.microsoft.com/office/word/2006/wordml",wps:"http://schemas.microsoft.com/office/word/2010/wordprocessingShape",Ignorable:"w14 w15 wp14"}
74)),this.root.push(new he("w:displayBackgroundShape",!0)),e.trackRevisions!==void 0&&this.root.push(new he("w:trackRevisions",e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new he("w:evenAndOddHeaders",e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new he("w:updateFields",e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new Qr("w:defaultTabStop",e.defaultTabStop)),((t=e.hyphenation)===null||t===void 0?void 0:t.autoHyphenation)!==void 0&&this.root.push(new he("w:autoHyphenation",e.hyphenation.autoHyphenation)),((r=e.hyphenation)===null||r===void 0?void 0:r.hyphenationZone)!==void 0&&this.root.push(new Qr("w:hyphenationZone",e.hyphenation.hyphenationZone)),((n=e.hyphenation)===null||n===void 0?void 0:n.consecutiveHyphenLimit)!==void 0&&this.root.push(new Qr("w:consecutiveHyphenLimit",e.hyphenation.consecutiveHyphenLimit)),((o=e.hyphenation)===null||o===void 0?void 0:o.doNotHyphenateCaps)!==void 0&&this.root.push(new he("w:doNotHyphenateCaps",e.hyphenation.doNotHyphenateCaps)),this.root.push(new ow(be(be({},(i=e.compatibility)!==null&&i!==void 0?i:{}),{},{version:(a=(s=(c=e.compatibility)===null||c===void 0?void 0:c.version)!==null&&s!==void 0?s:e.compatibilityModeVersion)!==null&&a!==void 0?a:15})))}},ku=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{val:"w:val"})}},cw=class extends fe{constructor(e){super("w:name"),this.root.push(new ku({val:e}))}},hw=class extends fe{constructor(e){super("w:uiPriority"),this.root.push(new ku({val:Je(e)}))}},dw=class extends Ae{constructor(...e){super(...e),oe(this,"xmlKeys",{type:"w:type",styleId:"w:styleId",default:"w:default",customStyle:"w:customStyle"})}},Tu=class extends fe{constructor(e,t){super("w:style"),this.root.push(new dw(e)),t.name&&this.root.push(new cw(t.name)),t.basedOn&&this.root.push(new dr("w:basedOn",t.basedOn)),t.next&&this.root.push(new dr("w:next",t.next)),t.link&&this.root.push(new dr("w:link",t.link)),t.uiPriority!==void 0&&this.root.push(new hw(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new he("w:semiHidden",t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new he("w:unhideWhenUsed",t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new he("w:qFormat",t.quickFormat))}},mn=class extends Tu{constructor(e){super({type:"paragraph",styleId:e.id},e),oe(this,"paragraphProperties",void 0),oe(this,"runProperties",void 0),this.paragraphProperties=new pr(e.paragraph),this.runProperties=new mr(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},Br=class extends Tu{constructor(e){super({type:"character",styleId:e.id},be({uiPriority:99,unhideWhenUsed:!0},e)),oe(this,"runProperties",void 0),this.runProperties=new mr(e.run),this.root.push(this.runProperties)}},Yt=class extends mn{constructor(e){super(be({basedOn:"Normal",next:"Normal",quickFormat:!0},e))}},fw=class extends Yt{constructor(e){super(be({id:"Title",name:"Title"},e))}},pw=class extends Yt{constructor(e){super(be({id:"Heading1",name:"Heading 1"},e))}},mw=class extends Yt{constructor(e){super(be({id:"Heading2",name:"Heading 2"},e))}},gw=class extends Yt{constructor(e){super(be({id:"Heading3",name:"Heading 3"},e))}},ww=class extends Yt{constructor(e){super(be({id:"Heading4",name:"Heading 4"},e))}},yw=class extends Yt{constructor(e){super(be({id:"Heading5",name:"Heading 5"},e))}},vw=class extends Yt{constructor(e){super(be({id:"Heading6",name:"Heading 6"},e))}},xw=class extends Yt{constructor(e){super(be({id:"Strong",name:"Strong"},e))}},bw=class extends mn{constructor(e){super(be({id:"ListParagraph",name:"List Paragraph",basedOn:"Normal",quickFormat:!0},e))}},_w=class extends mn{constructor(e){super(be({id:"FootnoteText",name:"footnote text",link:"FootnoteTextChar",basedOn:"Normal",uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Ir.AUTO}},run:{size:20}},e))}},Sw=class extends Br{constructor(e){super(be({id:"FootnoteReference",name:"footnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},Ew=class extends Br{constructor(e){super(be({id:"FootnoteTextChar",name:"Footnote Text Char",basedOn:"DefaultParagraphFont",link:"FootnoteText",semiHidden:!0,run:{size:20}},e))}},kw=class extends mn{constructor(e){super(be({id:"EndnoteText",name:"endnote text",link:"EndnoteTextChar",basedOn:"Normal",uiPr
74iority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:Ir.AUTO}},run:{size:20}},e))}},Tw=class extends Br{constructor(e){super(be({id:"EndnoteReference",name:"endnote reference",basedOn:"DefaultParagraphFont",semiHidden:!0,run:{superScript:!0}},e))}},Aw=class extends Br{constructor(e){super(be({id:"EndnoteTextChar",name:"Endnote Text Char",basedOn:"DefaultParagraphFont",link:"EndnoteText",semiHidden:!0,run:{size:20}},e))}},Cw=class extends Br{constructor(e){super(be({id:"Hyperlink",name:"Hyperlink",basedOn:"DefaultParagraphFont",run:{color:"0563C1",underline:{type:au.SINGLE}}},e))}},zi=class extends fe{constructor(e){if(super("w:styles"),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(const t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(const t of e.paragraphStyles)this.root.push(new mn(t));if(e.characterStyles)for(const t of e.characterStyles)this.root.push(new Br(t))}},Nw=class extends fe{constructor(e){super("w:pPrDefault"),this.root.push(new pr(e))}},Rw=class extends fe{constructor(e){super("w:rPrDefault"),this.root.push(new mr(e))}},jw=class extends fe{constructor(e){super("w:docDefaults"),oe(this,"runPropertiesDefaults",void 0),oe(this,"paragraphPropertiesDefaults",void 0),this.runPropertiesDefaults=new Rw(e.run),this.paragraphPropertiesDefaults=new Nw(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},Iw=class{newInstance(e){const t=(0,Jl.xml2js)(e,{compact:!1});let r;for(const o of t.elements||[])o.name==="w:styles"&&(r=o);if(r===void 0)throw new Error("can not find styles element");const n=r.elements||[];return{initialStyles:new tp(r.attributes),importedStyles:n.map(o=>$s(o))}}},$i=class{newInstance(e={}){var t;return{initialStyles:new wi(["mc","r","w","w14","w15"],"w14 w15"),importedStyles:[new jw((t=e.document)!==null&&t!==void 0?t:{}),new fw(be({run:{size:56}},e.title)),new pw(be({run:{color:"2E74B5",size:32}},e.heading1)),new mw(be({run:{color:"2E74B5",size:26}},e.heading2)),new gw(be({run:{color:"1F4D78",size:24}},e.heading3)),new ww(be({run:{color:"2E74B5",italics:!0}},e.heading4)),new yw(be({run:{color:"2E74B5"}},e.heading5)),new vw(be({run:{color:"1F4D78"}},e.heading6)),new xw(be({run:{bold:!0}},e.strong)),new bw(e.listParagraph||{}),new Cw(e.hyperlink||{}),new Sw(e.footnoteReference||{}),new _w(e.footnoteText||{}),new Ew(e.footnoteTextChar||{}),new Tw(e.endnoteReference||{}),new kw(e.endnoteText||{}),new Aw(e.endnoteTextChar||{})]}}},Fw=class{constructor(e){var t,r,n,o,i,a,s,c,d,f,m,E;if(oe(this,"currentRelationshipId",1),oe(this,"documentWrapper",void 0),oe(this,"headers",[]),oe(this,"footers",[]),oe(this,"coreProperties",void 0),oe(this,"numbering",void 0),oe(this,"media",void 0),oe(this,"fileRelationships",void 0),oe(this,"footnotesWrapper",void 0),oe(this,"endnotesWrapper",void 0),oe(this,"settings",void 0),oe(this,"contentTypes",void 0),oe(this,"customProperties",void 0),oe(this,"appProperties",void 0),oe(this,"styles",void 0),oe(this,"comments",void 0),oe(this,"commentsExtended",void 0),oe(this,"fontWrapper",void 0),this.coreProperties=new eg(be(be({},e),{},{creator:(t=e.creator)!==null&&t!==void 0?t:"Un-named",revision:(r=e.revision)!==null&&r!==void 0?r:1,lastModifiedBy:(n=e.lastModifiedBy)!==null&&n!==void 0?n:"Un-named"})),this.numbering=new sw(e.numbering?e.numbering:{config:[]}),this.comments=new Zp((o=e.comments)!==null&&o!==void 0?o:{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new em(this.comments.ThreadData)),this.fileRelationships=new Zt,this.customProperties=new ag((i=e.customProperties)!==null&&i!==void 0?i:[]),this.appProperties=new Ym,this.footnotesWrapper=new Dg,this.endnotesWrapper=new Ng,this.contentTypes=new Jm,this.documentWrapper=new _g({background:e.background}),this.settings=new uw({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:(a=e.features)===null||a===void 0?void 0:a.trackRevisions,updateFields:(s=e.features)===null||s===void 0?void 0:s.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:(c=e.hyphenation)===null||c===void 0?void 0:c.autoHyphenation,hyphenationZone:(d=e.hyphenation)===null||d===void 0?void 0:d.hyphenationZone,consecutiveHyphenLimit:(f=e.hyphenation)===null||f===void 0?void 0:f.consecutiveHyphenLimit,doNotHyphenate
74Caps:(m=e.hyphenation)===null||m===void 0?void 0:m.doNotHyphenateCaps}}),this.media=new $g,e.externalStyles!==void 0){var g;const y=new $i().newInstance((g=e.styles)===null||g===void 0?void 0:g.default),x=new Iw().newInstance(e.externalStyles);this.styles=new zi(be(be({},x),{},{importedStyles:[...y.importedStyles,...x.importedStyles]}))}else if(e.styles){const y=new $i().newInstance(e.styles.default);this.styles=new zi(be(be({},y),e.styles))}else{const y=new $i;this.styles=new zi(y.newInstance())}this.addDefaultRelationships();for(const y of e.sections)this.addSection(y);if(e.footnotes)for(const y in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(y),e.footnotes[y].children);if(e.endnotes)for(const y in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(y),e.endnotes[y].children);this.fontWrapper=new hu((E=e.fonts)!==null&&E!==void 0?E:[])}addSection({headers:e={},footers:t={},children:r,properties:n}){this.documentWrapper.View.Body.addSection(be(be({},n),{},{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(const o of r)this.documentWrapper.View.add(o)}createHeader(e){const t=new zg(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addHeaderToDocument(t),t}createFooter(e){const t=new Ig(this.media,this.currentRelationshipId++);for(const r of e.options.children)t.add(r);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=kr.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=kr.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument","word/document.xml"),this.fileRelationships.addRelationship(2,"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties","docProps/core.xml"),this.fileRelationships.addRelationship(3,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties","docProps/app.xml"),this.fileRelationships.addRelationship(4,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties","docProps/custom.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles","styles.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering","numbering.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes","footnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes","endnotes.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings","settings.xml"),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments","comments.xml"),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,"http://schemas.microsoft.com/office/2011/relationships/commentsExtended","commentsExtended.xml"),this.contentTypes.addCommentsExtended())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get FontTable(){return this.fontWrapper}},Pw=de((e,t)=>
vendor: 4,933 bytes, lines 74-84
74{Or(),Xt();/*! 75 76JSZip v3.10.1 - A JavaScript class for generating and reading zip files 77<http://stuartk.com/jszip> 78 79(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com> 80Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown. 81 82JSZip uses the library pako released under the MIT license : 83https://github.com/nodeca/pako/blob/main/LICENSE 84*/(function(r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof rt<"u"?rt:typeof self<"u"?self:this).JSZip=r()})(function(){return function r(n,o,i){function a(d,f){if(!o[d]){if(!n[d]){var m=typeof Sn=="function"&&Sn;if(!f&&m)return m(d,!0);if(s)return s(d,!0);var E=new Error("Cannot find module '"+d+"'");throw E.code="MODULE_NOT_FOUND",E}var g=o[d]={exports:{}};n[d][0].call(g.exports,function(y){var x=n[d][1][y];return a(x||y)},g,g.exports,r,n,o,i)}return o[d].exports}for(var s=typeof Sn=="function"&&Sn,c=0;c<i.length;c++)a(i[c]);return a}({1:[function(r,n,o){var i=r("./utils"),a=r("./support"),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(c){for(var d,f,m,E,g,y,x,v=[],k=0,S=c.length,T=S,C=i.getTypeOf(c)!=="string";k<c.length;)T=S-k,m=C?(d=c[k++],f=k<S?c[k++]:0,k<S?c[k++]:0):(d=c.charCodeAt(k++),f=k<S?c.charCodeAt(k++):0,k<S?c.charCodeAt(k++):0),E=d>>2,g=(3&d)<<4|f>>4,y=1<T?(15&f)<<2|m>>6:64,x=2<T?63&m:64,v.push(s.charAt(E)+s.charAt(g)+s.charAt(y)+s.charAt(x));return v.join("")},o.decode=function(c){var d,f,m,E,g,y,x=0,v=0,k="data:";if(c.substr(0,k.length)===k)throw new Error("Invalid base64 input, it looks like a data url.");var S,T=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===s.charAt(64)&&T--,c.charAt(c.length-2)===s.charAt(64)&&T--,T%1!=0)throw new Error("Invalid base64 input, bad content length.");for(S=a.uint8array?new Uint8Array(0|T):new Array(0|T);x<c.length;)d=s.indexOf(c.charAt(x++))<<2|(E=s.indexOf(c.charAt(x++)))>>4,f=(15&E)<<4|(g=s.indexOf(c.charAt(x++)))>>2,m=(3&g)<<6|(y=s.indexOf(c.charAt(x++))),S[v++]=d,g!==64&&(S[v++]=f),y!==64&&(S[v++]=m);return S}},{"./support":30,"./utils":32}],2:[function(r,n,o){var i=r("./external"),a=r("./stream/DataWorker"),s=r("./stream/Crc32Probe"),c=r("./stream/DataLengthProbe");function d(f,m,E,g,y){this.compressedSize=f,this.uncompressedSize=m,this.crc32=E,this.compression=g,this.compressedContent=y}d.prototype={getContentWorker:function(){var f=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),m=this;return f.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},d.createWorkerFrom=function(f,m,E){return f.pipe(new s).pipe(new c("uncompressedSize")).pipe(m.compressWorker(E)).pipe(new c("compressedSize")).withStreamInfo("compression",m)},n.exports=d},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,o){var i=r("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},o.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,o){var i=r("./utils"),a=function(){for(var s,c=[],d=0;d<256;d++){s=d;for(var f=0;f<8;f++)s=1&s?3988292384^s>>>1:s>>>1;c[d]=s}return c}();n.exports=function(s,c){return s!==void 0&&s.length?i.getTypeOf(s)!=="string"?function(d,f,m,E){var g=a,y=E+m;d^=-1;for(var x=E;x<y;x++)d=d>>>8^g[255&(d^f[x])];return-1^d}(0|c,s,s.length,0):function(d,f,m,E){var g=a,y=E+m;d^=-1;for(var x=E;x<y;x++)d=d>>>8^g[255&(d^f.charCodeAt(x))];return-1^d}(0|c,s,s.length,0):0}},{"./utils":32}],5:[function(r,n,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(r,n,o){var i=null;i=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:i}},{lie:37}],7:[function(r,n,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=r("pako"),s=r("./utils"),c=r("./stream/GenericWorker"),d=i?"uint8array":"array";function f(m,E){c.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=E,this.meta={}}o.magic="\b\0",s.inherits(f,c),f.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(s.transformTo(d,m.data),!1)},f.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)}
vendor: 4,922 bytes, lines 84-85
84,f.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},f.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(E){m.push({data:E,meta:m.meta})}},o.compressWorker=function(m){return new f("Deflate",m)},o.uncompressWorker=function(){return new f("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,o){function i(g,y){var x,v="";for(x=0;x<y;x++)v+=String.fromCharCode(255&g),g>>>=8;return v}function a(g,y,x,v,k,S){var T,C,A=g.file,_=g.compression,O=S!==d.utf8encode,M=s.transformTo("string",S(A.name)),I=s.transformTo("string",d.utf8encode(A.name)),H=A.comment,te=s.transformTo("string",S(H)),F=s.transformTo("string",d.utf8encode(H)),W=I.length!==A.name.length,N=F.length!==H.length,G="",J="",X="",ae=A.dir,Y=A.date,re={crc32:0,compressedSize:0,uncompressedSize:0};y&&!x||(re.crc32=g.crc32,re.compressedSize=g.compressedSize,re.uncompressedSize=g.uncompressedSize);var K=0;y&&(K|=8),O||!W&&!N||(K|=2048);var L=0,Z=0;ae&&(L|=16),k==="UNIX"?(Z=798,L|=function(ne,pe){var R=ne;return ne||(R=pe?16893:33204),(65535&R)<<16}(A.unixPermissions,ae)):(Z=20,L|=function(ne){return 63&(ne||0)}(A.dosPermissions)),T=Y.getUTCHours(),T<<=6,T|=Y.getUTCMinutes(),T<<=5,T|=Y.getUTCSeconds()/2,C=Y.getUTCFullYear()-1980,C<<=4,C|=Y.getUTCMonth()+1,C<<=5,C|=Y.getUTCDate(),W&&(J=i(1,1)+i(f(M),4)+I,G+="up"+i(J.length,2)+J),N&&(X=i(1,1)+i(f(te),4)+F,G+="uc"+i(X.length,2)+X);var Q="";return Q+=` 85\0`,Q+=i(K,2),Q+=_.magic,Q+=i(T,2),Q+=i(C,2),Q+=i(re.crc32,4),Q+=i(re.compressedSize,4),Q+=i(re.uncompressedSize,4),Q+=i(M.length,2),Q+=i(G.length,2),{fileRecord:m.LOCAL_FILE_HEADER+Q+M+G,dirRecord:m.CENTRAL_FILE_HEADER+i(Z,2)+Q+i(te.length,2)+"\0\0\0\0"+i(L,4)+i(v,4)+M+G+te}}var s=r("../utils"),c=r("../stream/GenericWorker"),d=r("../utf8"),f=r("../crc32"),m=r("../signature");function E(g,y,x,v){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=y,this.zipPlatform=x,this.encodeFileName=v,this.streamFiles=g,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(E,c),E.prototype.push=function(g){var y=g.meta.percent||0,x=this.entriesCount,v=this._sources.length;this.accumulate?this.contentBuffer.push(g):(this.bytesWritten+=g.data.length,c.prototype.push.call(this,{data:g.data,meta:{currentFile:this.currentFile,percent:x?(y+100*(x-v-1))/x:100}}))},E.prototype.openedSource=function(g){this.currentSourceOffset=this.bytesWritten,this.currentFile=g.file.name;var y=this.streamFiles&&!g.file.dir;if(y){var x=a(g,y,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:x.fileRecord,meta:{percent:0}})}else this.accumulate=!0},E.prototype.closedSource=function(g){this.accumulate=!1;var y=this.streamFiles&&!g.file.dir,x=a(g,y,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(x.dirRecord),y)this.push({data:function(v){return m.DATA_DESCRIPTOR+i(v.crc32,4)+i(v.compressedSize,4)+i(v.uncompressedSize,4)}(g),meta:{percent:100}});else for(this.push({data:x.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},E.prototype.flush=function(){for(var g=this.bytesWritten,y=0;y<this.dirRecords.length;y++)this.push({data:this.dirRecords[y],meta:{percent:100}});var x=this.bytesWritten-g,v=function(k,S,T,C,A){var _=s.transformTo("string",A(C));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(k,2)+i(k,2)+i(S,4)+i(T,4)+i(_.length,2)+_}(this.dirRecords.length,x,g,this.zipComment,this.encodeFileName);this.push({data:v,meta:{percent:100}})},E.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},E.prototype.registerPrevious=function(g){this._sources.push(g);var y=this;return g.on("data",function(x){y.processChunk(x)}),g.on("end",function(){y.closedSource(y.previous.streamInfo),y._sources.length?y.prepareNextSource():y.end()}),g.on("error",function(x){y.error(x)}),this},E.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},E.prototype.error=function(g){var y=this._sources;if(!c.prototype.error.call(this,g))return!1;for(var x=0;x<y.length;x++)try{y[x].error(g)}catch{}return!0},E.prototype.lock=function(){c.prototype.lock.call(this);for(var g=this._sources,y=0;y<g.length;y++)g[y].lock()},n.exports=E},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,o){var i=r("../compressions"),a=r("./ZipFileWorker");o.generateWorker=function(s,c,d){var f=new a(c.streamFiles,d,c.platform,c.encodeFileName),m=0;
vendor: 28,895 bytes, line 85
85try{s.forEach(function(E,g){m++;var y=function(S,T){var C=S||T,A=i[C];if(!A)throw new Error(C+" is not a valid compression method !");return A}(g.options.compression,c.compression),x=g.options.compressionOptions||c.compressionOptions||{},v=g.dir,k=g.date;g._compressWorker(y,x).withStreamInfo("file",{name:E,dir:v,date:k,comment:g.comment||"",unixPermissions:g.unixPermissions,dosPermissions:g.dosPermissions}).pipe(f)}),f.entriesCount=m}catch(E){f.error(E)}return f}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,o){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var s in this)typeof this[s]!="function"&&(a[s]=this[s]);return a}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(a,s){return new i().loadAsync(a,s)},i.external=r("./external"),n.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,o){var i=r("./utils"),a=r("./external"),s=r("./utf8"),c=r("./zipEntries"),d=r("./stream/Crc32Probe"),f=r("./nodejsUtils");function m(E){return new a.Promise(function(g,y){var x=E.decompressed.getContentWorker().pipe(new d);x.on("error",function(v){y(v)}).on("end",function(){x.streamInfo.crc32!==E.decompressed.crc32?y(new Error("Corrupted zip : CRC32 mismatch")):g()}).resume()})}n.exports=function(E,g){var y=this;return g=i.extend(g||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:s.utf8decode}),f.isNode&&f.isStream(E)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",E,!0,g.optimizedBinaryString,g.base64).then(function(x){var v=new c(g);return v.load(x),v}).then(function(x){var v=[a.Promise.resolve(x)],k=x.files;if(g.checkCRC32)for(var S=0;S<k.length;S++)v.push(m(k[S]));return a.Promise.all(v)}).then(function(x){for(var v=x.shift(),k=v.files,S=0;S<k.length;S++){var T=k[S],C=T.fileNameStr,A=i.resolve(T.fileNameStr);y.file(A,T.decompressed,{binary:!0,optimizedBinaryString:!0,date:T.date,dir:T.dir,comment:T.fileCommentStr.length?T.fileCommentStr:null,unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions,createFolders:g.createFolders}),T.dir||(y.file(A).unsafeOriginalName=C)}return v.zipComment.length&&(y.comment=v.zipComment),y})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,n,o){var i=r("../utils"),a=r("../stream/GenericWorker");function s(c,d){a.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(d)}i.inherits(s,a),s.prototype._bindStream=function(c){var d=this;(this._stream=c).pause(),c.on("data",function(f){d.push({data:f,meta:{percent:0}})}).on("error",function(f){d.isPaused?this.generatedError=f:d.error(f)}).on("end",function(){d.isPaused?d._upstreamEnded=!0:d.end()})},s.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},n.exports=s},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,n,o){var i=r("readable-stream").Readable;function a(s,c,d){i.call(this,c),this._helper=s;var f=this;s.on("data",function(m,E){f.push(m)||f._helper.pause(),d&&d(E)}).on("error",function(m){f.emit("error",m)}).on("end",function(){f.push(null)})}r("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},n.exports=a},{"../utils":32,"readable-stream":16}],14:[function(r,n,o){n.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,n,o){function i(C,A,_){var O,M=s.getTypeOf(A),I=s.extend(_||{},f);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(C=k(C)),I.createFolders&&(O=v(C))&&S.call(this,O,!0);var H=M==="string"&&I.binary===!1&&I.base64===!1;_&&_.binary!==void 0||(I.binary=!H),(A instanceof m&&A.uncompressedSize===0||I.dir||!A||A.length===0)&&(I.base64=!1,I.binary=!0,A="",I.compression="STORE",M="string");var te=null;te=A instanceof m||A instanceof c?A:y.isNode&&y.isStream(A)?new x(C,A):s.prepareContent(C,A,I.binary,I.optimizedBinaryString,I.base64);var F=new E(C,te,I);this.files[C]=F}var a=r("./utf8"),s=r("./utils"),c=r("./stream/GenericWorker"),d=r("./stream/StreamHelper"),f=r("./defaults"),m=r("./compressedObject"),E=r("./zipObject"),g=r("./generate"),y=r("./nodejsUtils"),x=r("./nodejs/NodejsStreamInputAdapter"),v=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var A=C.lastIndexOf("/");return 0<A?C.substring(0,A):""},k=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},S=function(C,A){return A=A!==void 0?A:f.createFolders,C=k(C),this.files[C]||i.call(this,C,null,{dir:!0,createFolders:A}),this.files[C]};function T(C){return Object.prototype.toString.call(C)==="[object RegExp]"}n.exports={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var A,_,O;for(A in this.files)O=this.files[A],(_=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&C(_,O)},filter:function(C){var A=[];return this.forEach(function(_,O){C(_,O)&&A.push(O)}),A},file:function(C,A,_){if(arguments.length!==1)return C=this.root+C,i.call(this,C,A,_),this;if(T(C)){var O=C;return this.filter(function(I,H){return!H.dir&&O.test(I)})}var M=this.files[this.root+C];return M&&!M.dir?M:null},folder:function(C){if(!C)return this;if(T(C))return this.filter(function(M,I){return I.dir&&C.test(M)});var A=this.root+C,_=S.call(this,A),O=this.clone();return O.root=_.name,O},remove:function(C){C=this.root+C;var A=this.files[C];if(A||(C.slice(-1)!=="/"&&(C+="/"),A=this.files[C]),A&&!A.dir)delete this.files[C];else for(var _=this.filter(function(M,I){return I.name.slice(0,C.length)===C}),O=0;O<_.length;O++)delete this.files[_[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var A,_={};try{if((_=s.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");s.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var O=_.comment||this.comment||"";A=g.generateWorker(this,_,O)}catch(M){(A=new c("error")).error(M)}return new d(A,_.type||"string",_.mimeType)},generateAsync:function(C,A){return this.generateInternalStream(C).accumulate(A)},generateNodeStream:function(C,A){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(A)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,n,o){n.exports=r("stream")},{stream:void 0}],17:[function(r,n,o){var i=r("./DataReader");function a(s){i.call(this,s);for(var c=0;c<this.data.length;c++)s[c]=255&s[c]}r("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data[this.zero+s]},a.prototype.lastIndexOfSignature=function(s){for(var c=s.charCodeAt(0),d=s.charCodeAt(1),f=s.charCodeAt(2),m=s.charCodeAt(3),E=this.length-4;0<=E;--E)if(this.data[E]===c&&this.data[E+1]===d&&this.data[E+2]===f&&this.data[E+3]===m)return E-this.zero;return-1},a.prototype.readAndCheckSignature=function(s){var c=s.charCodeAt(0),d=s.charCodeAt(1),f=s.charCodeAt(2),m=s.charCodeAt(3),E=this.readData(4);return c===E[0]&&d===E[1]&&f===E[2]&&m===E[3]},a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},n.exports=a},{"../utils":32,"./DataReader":18}],18:[function(r,n,o){var i=r("../utils");function a(s){this.data=s,this.length=s.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(s){this.checkIndex(this.index+s)},checkIndex:function(s){if(this.length<this.zero+s||s<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+s+"). Corrupted zip ?")},setIndex:function(s){this.checkIndex(s),this.index=s},skip:function(s){this.setIndex(this.index+s)},byteAt:function(){},readInt:function(s){var c,d=0;for(this.checkOffset(s),c=this.index+s-1;c>=this.index;c--)d=(d<<8)+this.byteAt(c);return this.index+=s,d},readString:function(s){return i.transformTo("string",this.readData(s))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var s=this.readInt(4);return new Date(Date.UTC(1980+(s>>25&127),(s>>21&15)-1,s>>16&31,s>>11&31,s>>5&63,(31&s)<<1))}},n.exports=a},{"../utils":32}],19:[function(r,n,o){var i=r("./Uint8ArrayReader");function a(s){i.call(this,s)}r("../utils").inherits(a,i),a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},n.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,n,o){var i=r("./DataReader");function a(s){i.call(this,s)}r("../utils").inherits(a,i),a.prototype.byteAt=function(s){return this.data.charCodeAt(this.zero+s)},a.prototype.lastIndexOfSignature=function(s){return this.data.lastIndexOf(s)-this.zero},a.prototype.readAndCheckSignature=function(s){return s===this.readData(4)},a.prototype.readData=function(s){this.checkOffset(s);var c=this.data.slice(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},n.exports=a},{"../utils":32,"./DataReader":18}],21:[function(r,n,o){var i=r("./ArrayReader");function a(s){i.call(this,s)}r("../utils").inherits(a,i),a.prototype.readData=function(s){if(this.checkOffset(s),s===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+s);return this.index+=s,c},n.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(r,n,o){var i=r("../utils"),a=r("../support"),s=r("./ArrayReader"),c=r("./StringReader"),d=r("./NodeBufferReader"),f=r("./Uint8ArrayReader");n.exports=function(m){var E=i.getTypeOf(m);return i.checkSupport(E),E!=="string"||a.uint8array?E==="nodebuffer"?new d(m):a.uint8array?new f(i.transformTo("uint8array",m)):new s(i.transformTo("array",m)):new c(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,n,o){o.LOCAL_FILE_HEADER="PK��",o.CENTRAL_FILE_HEADER="PK��",o.CENTRAL_DIRECTORY_END="PK��",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK�\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK��",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,n,o){var i=r("./GenericWorker"),a=r("../utils");function s(c){i.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(s,i),s.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},n.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(r,n,o){var i=r("./GenericWorker"),a=r("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(s,i),s.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},n.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,n,o){var i=r("../utils"),a=r("./GenericWorker");function s(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}i.inherits(s,a),s.prototype.processChunk=function(c){if(c){var d=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=d+c.data.length}a.prototype.processChunk.call(this,c)},n.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(r,n,o){var i=r("../utils"),a=r("./GenericWorker");function s(c){a.call(this,"DataWorker");var d=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(f){d.dataIsReady=!0,d.data=f,d.max=f&&f.length||0,d.type=i.getTypeOf(f),d.isPaused||d._tickAndRepeat()},function(f){d.error(f)})}i.inherits(s,a),s.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,d=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,d);break;case"uint8array":c=this.data.subarray(this.index,d);break;case"array":case"nodebuffer":c=this.data.slice(this.index,d)}return this.index=d,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},n.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(r,n,o){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,s){return this._listeners[a].push(s),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,s){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,s)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var s=this;return a.on("data",function(c){s.processChunk(c)}),a.on("end",function(){s.end()}),a.on("error",function(c){s.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,s){return this.extraStreamInfo[a]=s,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},n.exports=i},{}],29:[function(r,n,o){var i=r("../utils"),a=r("./ConvertWorker"),s=r("./GenericWorker"),c=r("../base64"),d=r("../support"),f=r("../external"),m=null;if(d.nodestream)try{m=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function E(y,x){return new f.Promise(function(v,k){var S=[],T=y._internalType,C=y._outputType,A=y._mimeType;y.on("data",function(_,O){S.push(_),x&&x(O)}).on("error",function(_){S=[],k(_)}).on("end",function(){try{v(function(_,O,M){switch(_){case"blob":return i.newBlob(i.transformTo("arraybuffer",O),M);case"base64":return c.encode(O);default:return i.transformTo(_,O)}}(C,function(_,O){var M,I=0,H=null,te=0;for(M=0;M<O.length;M++)te+=O[M].length;switch(_){case"string":return O.join("");case"array":return Array.prototype.concat.apply([],O);case"uint8array":for(H=new Uint8Array(te),M=0;M<O.length;M++)H.set(O[M],I),I+=O[M].length;return H;case"nodebuffer":return Buffer.concat(O);default:throw new Error("concat : unsupported type '"+_+"'")}}(T,S),A))}catch(_){k(_)}S=[]}).resume()})}function g(y,x,v){var k=x;switch(x){case"blob":case"arraybuffer":k="uint8array";break;case"base64":k="string"}try{this._internalType=k,this._outputType=x,this._mimeType=v,i.checkSupport(k),this._worker=y.pipe(new a(k)),y.lock()}catch(S){this._worker=new s("error"),this._worker.error(S)}}g.prototype={accumulate:function(y){return E(this,y)},on:function(y,x){var v=this;return y==="data"?this._worker.on(y,function(k){x.call(v,k.data,k.meta)}):this._worker.on(y,function(){i.delay(x,arguments,v)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(y){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},y)}},n.exports=g},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,n,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var i=new ArrayBuffer(0);try{o.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),o.blob=a.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!r("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(r,n,o){for(var i=r("./utils"),a=r("./support"),s=r("./nodejsUtils"),c=r("./stream/GenericWorker"),d=new Array(256),f=0;f<256;f++)d[f]=252<=f?6:248<=f?5:240<=f?4:224<=f?3:192<=f?2:1;d[254]=d[254]=1;function m(){c.call(this,"utf-8 decode"),this.leftOver=null}function E(){c.call(this,"utf-8 encode")}o.utf8encode=function(g){return a.nodebuffer?s.newBufferFrom(g,"utf-8"):function(y){var x,v,k,S,T,C=y.length,A=0;for(S=0;S<C;S++)(64512&(v=y.charCodeAt(S)))==55296&&S+1<C&&(64512&(k=y.charCodeAt(S+1)))==56320&&(v=65536+(v-55296<<10)+(k-56320),S++),A+=v<128?1:v<2048?2:v<65536?3:4;for(x=a.uint8array?new Uint8Array(A):new Array(A),S=T=0;T<A;S++)(64512&(v=y.charCodeAt(S)))==55296&&S+1<C&&(64512&(k=y.charCodeAt(S+1)))==56320&&(v=65536+(v-55296<<10)+(k-56320),S++),v<128?x[T++]=v:(v<2048?x[T++]=192|v>>>6:(v<65536?x[T++]=224|v>>>12:(x[T++]=240|v>>>18,x[T++]=128|v>>>12&63),x[T++]=128|v>>>6&63),x[T++]=128|63&v);return x}(g)},o.utf8decode=function(g){return a.nodebuffer?i.transformTo("nodebuffer",g).toString("utf-8"):function(y){var x,v,k,S,T=y.length,C=new Array(2*T);for(x=v=0;x<T;)if((k=y[x++])<128)C[v++]=k;else if(4<(S=d[k]))C[v++]=65533,x+=S-1;else{for(k&=S===2?31:S===3?15:7;1<S&&x<T;)k=k<<6|63&y[x++],S--;1<S?C[v++]=65533:k<65536?C[v++]=k:(k-=65536,C[v++]=55296|k>>10&1023,C[v++]=56320|1023&k)}return C.length!==v&&(C.subarray?C=C.subarray(0,v):C.length=v),i.applyFromCharCode(C)}(g=i.transformTo(a.uint8array?"uint8array":"array",g))},i.inherits(m,c),m.prototype.processChunk=function(g){var y=i.transformTo(a.uint8array?"uint8array":"array",g.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var x=y;(y=new Uint8Array(x.length+this.leftOver.length)).set(this.leftOver,0),y.set(x,this.leftOver.length)}else y=this.leftOver.concat(y);this.leftOver=null}var v=function(S,T){var C;for((T=T||S.length)>S.length&&(T=S.length),C=T-1;0<=C&&(192&S[C])==128;)C--;return C<0||C===0?T:C+d[S[C]]>T?C:T}(y),k=y;v!==y.length&&(a.uint8array?(k=y.subarray(0,v),this.leftOver=y.subarray(v,y.length)):(k=y.slice(0,v),this.leftOver=y.slice(v,y.length))),this.push({data:o.utf8decode(k),meta:g.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=m,i.inherits(E,c),E.prototype.processChunk=function(g){this.push({data:o.utf8encode(g.data),meta:g.meta})},o.Utf8EncodeWorker=E},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,n,o){var i=r("./support"),a=r("./base64"),s=r("./nodejsUtils"),c=r("./external");function d(x){return x}function f(x,v){for(var k=0;k<x.length;++k)v[k]=255&x.charCodeAt(k);return v}r("setimmediate"),o.newBlob=function(x,v){o.checkSupport("blob");try{return new Blob([x],{type:v})}catch{try{var k=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return k.append(x),k.getBlob(v)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(x,v,k){var S=[],T=0,C=x.length;if(C<=k)return String.fromCharCode.apply(null,x);for(;T<C;)v==="array"||v==="nodebuffer"?S.push(String.fromCharCode.apply(null,x.slice(T,Math.min(T+k,C)))):S.push(String.fromCharCode.apply(null,x.subarray(T,Math.min(T+k,C)))),T+=k;return S.join("")},stringifyByChar:function(x){for(var v="",k=0;k<x.length;k++)v+=String.fromCharCode(x[k]);return v},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,s.allocBuffer(1)).length===1}catch{return!1}}()}};function E(x){var v=65536,k=o.getTypeOf(x),S=!0;if(k==="uint8array"?S=m.applyCanBeUsed.uint8array:k==="nodebuffer"&&(S=m.applyCanBeUsed.nodebuffer),S)for(;1<v;)try{return m.stringifyByChunk(x,k,v)}catch{v=Math.floor(v/2)}return m.stringifyByChar(x)}function g(x,v){for(var k=0;k<x.length;k++)v[k]=x[k];return v}o.applyFromCharCode=E;var y={};y.string={string:d,array:function(x){return f(x,new Array(x.length))},arraybuffer:function(x){return y.string.uint8array(x).buffer},uint8array:function(x){return f(x,new Uint8Array(x.length))},nodebuffer:function(x){return f(x,s.allocBuffer(x.length))}},y.array={string:E,array:d,arraybuffer:function(x){return new Uint8Array(x).buffer},uint8array:function(x){return new Uint8Array(x)},nodebuffer:function(x){return s.newBufferFrom(x)}},y.arraybuffer={string:function(x){return E(new Uint8Array(x))},array:function(x){return g(new Uint8Array(x),new Array(x.byteLength))},arraybuffer:d,uint8array:function(x){return new Uint8Array(x)},nodebuffer:function(x){return s.newBufferFrom(new Uint8Array(x))}},y.uint8array={string:E,array:function(x){return g(x,new Array(x.length))},arraybuffer:function(x){return x.buffer},uint8array:d,nodebuffer:function(x){return s.newBufferFrom(x)}},y.nodebuffer={string:E,array:function(x){return g(x,new Array(x.length))},arraybuffer:function(x){return y.nodebuffer.uint8array(x).buffer},uint8array:function(x){return g(x,new Uint8Array(x.length))},nodebuffer:d},o.transformTo=function(x,v){return v=v||"",x?(o.checkSupport(x),y[o.getTypeOf(v)][x](v)):v},o.resolve=function(x){for(var v=x.split("/"),k=[],S=0;S<v.length;S++){var T=v[S];T==="."||T===""&&S!==0&&S!==v.length-1||(T===".."?k.pop():k.push(T))}return k.join("/")},o.getTypeOf=function(x){return typeof x=="string"?"string":Object.prototype.toString.call(x)==="[object Array]"?"array":i.nodebuffer&&s.isBuffer(x)?"nodebuffer":i.uint8array&&x instanceof Uint8Array?"uint8array":i.arraybuffer&&x instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(x){if(!i[x.toLowerCase()])throw new Error(x+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(x){var v,k,S="";for(k=0;k<(x||"").length;k++)S+="\\x"+((v=x.charCodeAt(k))<16?"0":"")+v.toString(16).toUpperCase();return S},o.delay=function(x,v,k){setImmediate(function(){x.apply(k||null,v||[])})},o.inherits=function(x,v){function k(){}k.prototype=v.prototype,x.prototype=new k},o.extend=function(){var x,v,k={};for(x=0;x<arguments.length;x++)for(v in arguments[x])Object.prototype.hasOwnProperty.call(arguments[x],v)&&k[v]===void 0&&(k[v]=arguments[x][v]);return k},o.prepareContent=function(x,v,k,S,T){return c.Promise.resolve(v).then(function(C){return i.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new c.Promise(function(A,_){var O=new FileReader;O.onload=function(M){A(M.target.result)},O.onerror=function(M){_(M.target.error)},O.readAsArrayBuffer(C)}):C}).then(function(C){var A=o.getTypeOf(C);return A?(A==="arraybuffer"?C=o.transformTo("uint8array",C):A==="string"&&(T?C=a.decode(C):k&&S!==!0&&(C=function(_){return f(_,i.uint8array?new Uint8Array(_.length):new Array(_.length))}(C))),C):c.Promise.reject(new Error("Can't read the data of '"+x+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,n,o){var i=r("./reader/readerFor"),a=r("./utils"),s=r("./signature"),c=r("./zipEntry"),d=r("./support");function f(m){this.files=[],this.loadOptions=m}f.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var E=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(E)+", expected "+a.pretty(m)+")")}},isSignature:function(m,E){var g=this.reader.index;this.reader.setIndex(m);var y=this.reader.readString(4)===E;return this.reader.setIndex(g),y},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var m=this.reader.readData(this.zipCommentLength),E=d.uint8array?"uint8array":"array",g=a.transformTo(E,m);this.zipComment=this.loadOptions.decodeFileName(g)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var m,E,g,y=this.zip64EndOfCentralSize-44;0<y;)m=this.reader.readInt(2),E=this.reader.readInt(4),g=this.reader.readData(E),this.zip64ExtensibleData[m]={id:m,length:E,value:g}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var m,E;for(m=0;m<this.files.length;m++)E=this.files[m],this.reader.setIndex(E.localHeaderOffset),this.checkSignature(s.LOCAL_FILE_HEADER),E.readLocalPart(this.reader),E.handleUTF8(),E.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(s.CENTRAL_FILE_HEADER);)(m=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(s.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,s.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip f
85ile ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(m);var E=m;if(this.checkSignature(s.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,s.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(s.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var g=this.centralDirOffset+this.centralDirSize;this.zip64&&(g+=20,g+=12+this.zip64EndOfCentralSize);var y=E-g;if(0<y)this.isSignature(E,s.CENTRAL_FILE_HEADER)||(this.reader.zero=y);else if(y<0)throw new Error("Corrupted zip: missing "+Math.abs(y)+" bytes.")},prepareReader:function(m){this.reader=i(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},n.exports=f},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,n,o){var i=r("./reader/readerFor"),a=r("./utils"),s=r("./compressedObject"),c=r("./crc32"),d=r("./utf8"),f=r("./compressions"),m=r("./support");function E(g,y){this.options=g,this.loadOptions=y}E.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(g){var y,x;if(g.skip(22),this.fileNameLength=g.readInt(2),x=g.readInt(2),this.fileName=g.readData(this.fileNameLength),g.skip(x),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((y=function(v){for(var k in f)if(Object.prototype.hasOwnProperty.call(f,k)&&f[k].magic===v)return f[k];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new s(this.compressedSize,this.uncompressedSize,this.crc32,y,g.readData(this.compressedSize))},readCentralPart:function(g){this.versionMadeBy=g.readInt(2),g.skip(2),this.bitFlag=g.readInt(2),this.compressionMethod=g.readString(2),this.date=g.readDate(),this.crc32=g.readInt(4),this.compressedSize=g.readInt(4),this.uncompressedSize=g.readInt(4);var y=g.readInt(2);if(this.extraFieldsLength=g.readInt(2),this.fileCommentLength=g.readInt(2),this.diskNumberStart=g.readInt(2),this.internalFileAttributes=g.readInt(2),this.externalFileAttributes=g.readInt(4),this.localHeaderOffset=g.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");g.skip(y),this.readExtraFields(g),this.parseZIP64ExtraField(g),this.fileComment=g.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var g=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),g==0&&(this.dosPermissions=63&this.externalFileAttributes),g==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var g=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=g.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=g.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&
vendor: 8,645 bytes, line 85
85(this.localHeaderOffset=g.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=g.readInt(4))}},readExtraFields:function(g){var y,x,v,k=g.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});g.index+4<k;)y=g.readInt(2),x=g.readInt(2),v=g.readData(x),this.extraFields[y]={id:y,length:x,value:v};g.setIndex(k)},handleUTF8:function(){var g=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=d.utf8decode(this.fileName),this.fileCommentStr=d.utf8decode(this.fileComment);else{var y=this.findExtraFieldUnicodePath();if(y!==null)this.fileNameStr=y;else{var x=a.transformTo(g,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(x)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var k=a.transformTo(g,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(k)}}},findExtraFieldUnicodePath:function(){var g=this.extraFields[28789];if(g){var y=i(g.value);return y.readInt(1)!==1||c(this.fileName)!==y.readInt(4)?null:d.utf8decode(y.readData(g.length-5))}return null},findExtraFieldUnicodeComment:function(){var g=this.extraFields[25461];if(g){var y=i(g.value);return y.readInt(1)!==1||c(this.fileComment)!==y.readInt(4)?null:d.utf8decode(y.readData(g.length-5))}return null}},n.exports=E},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,n,o){function i(y,x,v){this.name=y,this.dir=v.dir,this.date=v.date,this.comment=v.comment,this.unixPermissions=v.unixPermissions,this.dosPermissions=v.dosPermissions,this._data=x,this._dataBinary=v.binary,this.options={compression:v.compression,compressionOptions:v.compressionOptions}}var a=r("./stream/StreamHelper"),s=r("./stream/DataWorker"),c=r("./utf8"),d=r("./compressedObject"),f=r("./stream/GenericWorker");i.prototype={internalStream:function(y){var x=null,v="string";try{if(!y)throw new Error("No output type specified.");var k=(v=y.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),x=this._decompressWorker();var S=!this._dataBinary;S&&!k&&(x=x.pipe(new c.Utf8EncodeWorker)),!S&&k&&(x=x.pipe(new c.Utf8DecodeWorker))}catch(T){(x=new f("error")).error(T)}return new a(x,v,"")},async:function(y,x){return this.internalStream(y).accumulate(x)},nodeStream:function(y,x){return this.internalStream(y||"nodebuffer").toNodejsStream(x)},_compressWorker:function(y,x){if(this._data instanceof d&&this._data.compression.magic===y.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new c.Utf8EncodeWorker)),d.createWorkerFrom(v,y,x)},_decompressWorker:function(){return this._data instanceof d?this._data.getContentWorker():this._data instanceof f?this._data:new s(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],E=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},g=0;g<m.length;g++)i.prototype[m[g]]=E;n.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,n,o){(function(i){var a,s,c=i.MutationObserver||i.WebKitMutationObserver;if(c){var d=0,f=new c(y),m=i.document.createTextNode("");f.observe(m,{characterData:!0}),a=function(){m.data=d=++d%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var x=i.document.createElement("script");x.onreadystatechange=function(){y(),x.onreadystatechange=null,x.parentNode.removeChild(x),x=null},i.document.documentElement.appendChild(x)}:function(){setTimeout(y,0)};else{var E=new i.MessageChannel;E.port1.onmessage=y,a=function(){E.port2.postMessage(0)}}var g=[];function y(){var x,v;s=!0;for(var k=g.length;k;){for(v=g,g=[],x=-1;++x<k;)v[x]();k=g.length}s=!1}n.exports=function(x){g.push(x)!==1||s||a()}}).call(this,typeof rt<"u"?rt:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,n,o){var i=r("immediate");function a(){}var s={},c=["REJECTED"],d=["FULFILLED"],f=["PENDING"];function m(k){if(typeof k!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,k!==a&&x(this,k)}function E(k,S,T){this.promise=k,typeof S=="function"&&(this.onFulfilled=S,this.callFulfilled=this.otherCallFulfilled),typeof T=="function"&&(this.onRejected=T,this.callRejected=this.otherCallRejected)}function g(k,S,T){i(function(){var C;try{C=S(T)}catch(A){return s.reject(k,A)}C===k?s.reject(k,new TypeError("Cannot resolve promise with itself")):s.resolve(k,C)})}function y(k){var S=k&&k.then;if(k&&(typeof k=="object"||typeof k=="function")&&typeof S=="function")return function(){S.apply(k,arguments)}}function x(k,S){var T=!1;function C(O){T||(T=!0,s.reject(k,O))}function A(O){T||(T=!0,s.resolve(k,O))}var _=v(function(){S(A,C)});_.status==="error"&&C(_.value)}function v(k,S){var T={};try{T.value=k(S),T.status="success"}catch(C){T.status="error",T.value=C}return T}(n.exports=m).prototype.finally=function(k){if(typeof k!="function")return this;var S=this.constructor;return this.then(function(T){return S.resolve(k()).then(function(){return T})},function(T){return S.resolve(k()).then(function(){throw T})})},m.prototype.catch=function(k){return this.then(null,k)},m.prototype.then=function(k,S){if(typeof k!="function"&&this.state===d||typeof S!="function"&&this.state===c)return this;var T=new this.constructor(a);return this.state!==f?g(T,this.state===d?k:S,this.outcome):this.queue.push(new E(T,k,S)),T},E.prototype.callFulfilled=function(k){s.resolve(this.promise,k)},E.prototype.otherCallFulfilled=function(k){g(this.promise,this.onFulfilled,k)},E.prototype.callRejected=function(k){s.reject(this.promise,k)},E.prototype.otherCallRejected=function(k){g(this.promise,this.onRejected,k)},s.resolve=function(k,S){var T=v(y,S);if(T.status==="error")return s.reject(k,T.value);var C=T.value;if(C)x(k,C);else{k.state=d,k.outcome=S;for(var A=-1,_=k.queue.length;++A<_;)k.queue[A].callFulfilled(S)}return k},s.reject=function(k,S){k.state=c,k.outcome=S;for(var T=-1,C=k.queue.length;++T<C;)k.queue[T].callRejected(S);return k},m.resolve=function(k){return k instanceof this?k:s.resolve(new this(a),k)},m.reject=function(k){var S=new this(a);return s.reject(S,k)},m.all=function(k){var S=this;if(Object.prototype.toString.call(k)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=k.length,C=!1;if(!T)return this.resolve([]);for(var A=new Array(T),_=0,O=-1,M=new this(a);++O<T;)I(k[O],O);return M;function I(H,te){S.resolve(H).then(function(F){A[te]=F,++_!==T||C||(C=!0,s.resolve(M,A))},function(F){C||(C=!0,s.reject(M,F))})}},m.race=function(k){var S=this;if(Object.prototype.toString.call(k)!=="[object Array]")return this.reject(new TypeError("must be an array"));var T=k.length,C=!1;if(!T)return this.resolve([]);for(var A=-1,_=new this(a);++A<T;)O=k[A],S.resolve(O).then(function(M){C||(C=!0,s.resolve(_,M))},function(M){C||(C=!0,s.reject(_,M))});var O;return _}},{immediate:36}],38:[function(r,n,o){var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),n.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,n,o){var i=r("./zlib/deflate"),a=r("./utils/common"),s=r("./utils/strings"),c=r("./zlib/messages"),d=r("./zlib/zstream"),f=Object.prototype.toString,m=0,E=-1,g=0,y=8;function x(k){if(!(this instanceof x))return new x(k);this.options=a.assign({level:E,method:y,chunkSize:16384,windowBits:15,memLevel:8,strategy:g,to:""},k||{});var S=this.options;S.raw&&0<S.windowBits?S.windowBits=-S.windowBits:S.gzip&&0<S.windowBits&&S.windowBits<16&&(S.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var T=i.deflateInit2(this.strm,S.level,S.method,S.windowBits,S.memLevel,S.strategy);if(T!==m)throw new Error(c[T]);if(S.header&&i.deflateSetHeader(this.strm,S.header),S.dictionary){var C;if(C=typeof S.dictionary=="string"?s.string2buf(S.dictionary):f.call(S.dictionary)==="[object ArrayBuffer]"?new Uint8Array(S.dictionary):S.dictionary,(T=i.deflateSetDictionary(this.strm,C))!==m)throw new Error(c[T]);this._dict_set=!0}}function v(k,S){var T=new x(S);if(T.push(k,!0),T.err)throw T.msg||c[T.err];return T.result}x.prototype.push=function(k,S){var T,C,A=this.strm,_=this.options.chunkSize;if(this.ended)return!1;C=S===~~S?S:S===!0?4:0,typeof k=="string"?A.input=s.string2buf(k):f.call(k)==="[object ArrayBuffer]"?A.input=new
vendor: 4,777 bytes, line 85
85Uint8Array(k):A.input=k,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new a.Buf8(_),A.next_out=0,A.avail_out=_),(T=i.deflate(A,C))!==1&&T!==m)return this.onEnd(T),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||C!==4&&C!==2)||(this.options.to==="string"?this.onData(s.buf2binstring(a.shrinkBuf(A.output,A.next_out))):this.onData(a.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.avail_out===0)&&T!==1);return C===4?(T=i.deflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===m):C!==2||(this.onEnd(m),!(A.avail_out=0))},x.prototype.onData=function(k){this.chunks.push(k)},x.prototype.onEnd=function(k){k===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=k,this.msg=this.strm.msg},o.Deflate=x,o.deflate=v,o.deflateRaw=function(k,S){return(S=S||{}).raw=!0,v(k,S)},o.gzip=function(k,S){return(S=S||{}).gzip=!0,v(k,S)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,n,o){var i=r("./zlib/inflate"),a=r("./utils/common"),s=r("./utils/strings"),c=r("./zlib/constants"),d=r("./zlib/messages"),f=r("./zlib/zstream"),m=r("./zlib/gzheader"),E=Object.prototype.toString;function g(x){if(!(this instanceof g))return new g(x);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},x||{});var v=this.options;v.raw&&0<=v.windowBits&&v.windowBits<16&&(v.windowBits=-v.windowBits,v.windowBits===0&&(v.windowBits=-15)),!(0<=v.windowBits&&v.windowBits<16)||x&&x.windowBits||(v.windowBits+=32),15<v.windowBits&&v.windowBits<48&&!(15&v.windowBits)&&(v.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new f,this.strm.avail_out=0;var k=i.inflateInit2(this.strm,v.windowBits);if(k!==c.Z_OK)throw new Error(d[k]);this.header=new m,i.inflateGetHeader(this.strm,this.header)}function y(x,v){var k=new g(v);if(k.push(x,!0),k.err)throw k.msg||d[k.err];return k.result}g.prototype.push=function(x,v){var k,S,T,C,A,_,O=this.strm,M=this.options.chunkSize,I=this.options.dictionary,H=!1;if(this.ended)return!1;S=v===~~v?v:v===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof x=="string"?O.input=s.binstring2buf(x):E.call(x)==="[object ArrayBuffer]"?O.input=new Uint8Array(x):O.input=x,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new a.Buf8(M),O.next_out=0,O.avail_out=M),(k=i.inflate(O,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&I&&(_=typeof I=="string"?s.string2buf(I):E.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,k=i.inflateSetDictionary(this.strm,_)),k===c.Z_BUF_ERROR&&H===!0&&(k=c.Z_OK,H=!1),k!==c.Z_STREAM_END&&k!==c.Z_OK)return this.onEnd(k),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&k!==c.Z_STREAM_END&&(O.avail_in!==0||S!==c.Z_FINISH&&S!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(T=s.utf8border(O.output,O.next_out),C=O.next_out-T,A=s.buf2string(O.output,T),O.next_out=C,O.avail_out=M-C,C&&a.arraySet(O.output,O.output,T,C,0),this.onData(A)):this.onData(a.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(H=!0)}while((0<O.avail_in||O.avail_out===0)&&k!==c.Z_STREAM_END);return k===c.Z_STREAM_END&&(S=c.Z_FINISH),S===c.Z_FINISH?(k=i.inflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===c.Z_OK):S!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(O.avail_out=0))},g.prototype.onData=function(x){this.chunks.push(x)},g.prototype.onEnd=function(x){x===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},o.Inflate=g,o.inflate=y,o.inflateRaw=function(x,v){return(v=v||{}).raw=!0,y(x,v)},o.ungzip=y},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,n,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(c){for(var d=Array.prototype.slice.call(arguments,1);d.length;){var f=d.shift();if(f){if(typeof f!="object")throw new TypeError(f+"must be non-object");for(var m in f)f.hasOwnProperty(m)&&(c[m]=f[m])}}return c},o.shrinkBuf=function(c,d){return c.length===d?c:c.subarray?c.subarray(0,d):(c.length=d,c)};var a={arraySet:function(c,d,f,m,E){if(d.subarray&&c.subarray)c.set(d.subarray(f,f+m),E);else for(var g=0;g<m;g++)c[E+g]=d[f+g]},flattenChunks:function(c){var d,f,m,E,g,y;for(d=m=0,f=c.length;d<f;d++)m+=c[d].length;for(y=new Uint8Array(m),d=E=0,f=c.length;d<f;d++)g=c[d],y.set(g,E),E+=g.length;return y}},s={arraySet:function(c,d,f,m,E){for(var g=0;g<m;g++)c[E+g]=d[f+g]},flattenChunks:function(c){return[].concat.apply([],c)}};o.setTyped=function(c){c?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,a)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,s)
vendor: 10,668 bytes, line 85
85)},o.setTyped(i)},{}],42:[function(r,n,o){var i=r("./common"),a=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{s=!1}for(var c=new i.Buf8(256),d=0;d<256;d++)c[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;function f(m,E){if(E<65537&&(m.subarray&&s||!m.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(m,E));for(var g="",y=0;y<E;y++)g+=String.fromCharCode(m[y]);return g}c[254]=c[254]=1,o.string2buf=function(m){var E,g,y,x,v,k=m.length,S=0;for(x=0;x<k;x++)(64512&(g=m.charCodeAt(x)))==55296&&x+1<k&&(64512&(y=m.charCodeAt(x+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),x++),S+=g<128?1:g<2048?2:g<65536?3:4;for(E=new i.Buf8(S),x=v=0;v<S;x++)(64512&(g=m.charCodeAt(x)))==55296&&x+1<k&&(64512&(y=m.charCodeAt(x+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),x++),g<128?E[v++]=g:(g<2048?E[v++]=192|g>>>6:(g<65536?E[v++]=224|g>>>12:(E[v++]=240|g>>>18,E[v++]=128|g>>>12&63),E[v++]=128|g>>>6&63),E[v++]=128|63&g);return E},o.buf2binstring=function(m){return f(m,m.length)},o.binstring2buf=function(m){for(var E=new i.Buf8(m.length),g=0,y=E.length;g<y;g++)E[g]=m.charCodeAt(g);return E},o.buf2string=function(m,E){var g,y,x,v,k=E||m.length,S=new Array(2*k);for(g=y=0;g<k;)if((x=m[g++])<128)S[y++]=x;else if(4<(v=c[x]))S[y++]=65533,g+=v-1;else{for(x&=v===2?31:v===3?15:7;1<v&&g<k;)x=x<<6|63&m[g++],v--;1<v?S[y++]=65533:x<65536?S[y++]=x:(x-=65536,S[y++]=55296|x>>10&1023,S[y++]=56320|1023&x)}return f(S,y)},o.utf8border=function(m,E){var g;for((E=E||m.length)>m.length&&(E=m.length),g=E-1;0<=g&&(192&m[g])==128;)g--;return g<0||g===0?E:g+c[m[g]]>E?g:E}},{"./common":41}],43:[function(r,n,o){n.exports=function(i,a,s,c){for(var d=65535&i|0,f=i>>>16&65535|0,m=0;s!==0;){for(s-=m=2e3<s?2e3:s;f=f+(d=d+a[c++]|0)|0,--m;);d%=65521,f%=65521}return d|f<<16|0}},{}],44:[function(r,n,o){n.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,n,o){var i=function(){for(var a,s=[],c=0;c<256;c++){a=c;for(var d=0;d<8;d++)a=1&a?3988292384^a>>>1:a>>>1;s[c]=a}return s}();n.exports=function(a,s,c,d){var f=i,m=d+c;a^=-1;for(var E=d;E<m;E++)a=a>>>8^f[255&(a^s[E])];return-1^a}},{}],46:[function(r,n,o){var i,a=r("../utils/common"),s=r("./trees"),c=r("./adler32"),d=r("./crc32"),f=r("./messages"),m=0,E=4,g=0,y=-2,x=-1,v=4,k=2,S=8,T=9,C=286,A=30,_=19,O=2*C+1,M=15,I=3,H=258,te=H+I+1,F=42,W=113,N=1,G=2,J=3,X=4;function ae(p,V){return p.msg=f[V],V}function Y(p){return(p<<1)-(4<p?9:0)}function re(p){for(var V=p.length;0<=--V;)p[V]=0}function K(p){var V=p.state,j=V.pending;j>p.avail_out&&(j=p.avail_out),j!==0&&(a.arraySet(p.output,V.pending_buf,V.pending_out,j,p.next_out),p.next_out+=j,V.pending_out+=j,p.total_out+=j,p.avail_out-=j,V.pending-=j,V.pending===0&&(V.pending_out=0))}function L(p,V){s._tr_flush_block(p,0<=p.block_start?p.block_start:-1,p.strstart-p.block_start,V),p.block_start=p.strstart,K(p.strm)}function Z(p,V){p.pending_buf[p.pending++]=V}function Q(p,V){p.pending_buf[p.pending++]=V>>>8&255,p.pending_buf[p.pending++]=255&V}function ne(p,V){var j,l,u=p.max_chain_length,b=p.strstart,D=p.prev_length,q=p.nice_match,$=p.strstart>p.w_size-te?p.strstart-(p.w_size-te):0,se=p.window,ue=p.w_mask,le=p.prev,me=p.strstart+H,ye=se[b+D-1],_e=se[b+D];p.prev_length>=p.good_match&&(u>>=2),q>p.lookahead&&(q=p.lookahead);do if(se[(j=V)+D]===_e&&se[j+D-1]===ye&&se[j]===se[b]&&se[++j]===se[b+1]){b+=2,j++;do;while(se[++b]===se[++j]&&se[++b]===se[++j]&&se[++b]===se[++j]&&se[++b]===se[++j]&&se[++b]===se[++j]&&se[++b]===se[++j]&&se[++b]===se[++j]&&se[++b]===se[++j]&&b<me);if(l=H-(me-b),b=me-H,D<l){if(p.match_start=V,q<=(D=l))break;ye=se[b+D-1],_e=se[b+D]}}while((V=le[V&ue])>$&&--u!=0);return D<=p.lookahead?D:p.lookahead}function pe(p){var V,j,l,u,b,D,q,$,se,ue,le=p.w_size;do{if(u=p.window_size-p.lookahead-p.strstart,p.strstart>=le+(le-te)){for(a.arraySet(p.window,p.window,le,le,0),p.match_start-=le,p.strstart-=le,p.block_start-=le,V=j=p.hash_size;l=p.head[--V],p.head[V]=le<=l?l-le:0,--j;);for(V=j=le;l=p.prev[--V],p.prev[V]=le<=l?l-le:0,--j;);u+=le}if(p.strm.avail_in===0)break;if(D=p.strm,q=p.window,$=p.strstart+p.lookahead,se=u,ue=void 0,ue=D.avail_in,se<ue&&(ue=se),j=ue===0?0:(D.avail_in-=ue,a.arraySet(q,D.input,D.next_in,ue,$),D.state.wrap===1?D.adler=c(D.adler,q,ue,$):D.state.wrap===2&&(D.adler=d(D.adler,q,ue,$)),D.next_in+=ue,D.total_in+=ue,ue),p.lookahead+=j,p.lookahead+p.insert>=I)for(b=p.strstart-p.insert,p.ins_h=p.window[b],p.ins_h=(p.ins_h<<p.hash_shift^p.window[b+1])&p.hash_mask;p.insert&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[b+I-1])&p.hash_mask,p.prev[b&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=b,b++,p.insert--,!(p.lookahead+p.insert<I)););}while(p.lookahead<te&&p.strm.avail_in!==0)}function R(p,V){for(var j,l;;){if(p.lookahead<te){if(pe(p),p.lookahead<te&&V===m)return N;if(p.lookahead===0)break}if(j=0,p.lookahead>=I&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+I-1])&p.hash_mask,j=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),j!==0&&p.strstart-j<=p.w_size-te&&(p.match_length=ne(p,j)),p.match_length>=I)if(l=s._tr_tally(p,p.strstart-p.match_start,p.match_length-I),p.lookahead-=p.match_length,p.match_length<=p.max_lazy_match&&p.lookahead>=I){for(p.match_length--;p.strstart++,p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+I-1])&p.hash_mask,j=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart,--p.match_length!=0;);p.strstart++}else p.strstart+=p.match_length,p.match_length=0,p.ins_h=p.window[p.strstart],p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+1])&p.hash_mask;else l=s._tr_tally(p,0,p.window[p.strstart]),p.lookahead--,p.strstart++;if(l&&(L(p,!1),p.strm.avail_out===0))return N}return p.insert=p.strstart<I-1?p.strstart:I-1,V===E?(L(p,!0),p.strm.avail_out===0?J:X):p.last_lit&&(L(p,!1),p.strm.avail_out===0)?N:G}function w(p,V){for(var j,l,u;;){if(p.lookahead<te){if(pe(p),p.lookahead<te&&V===m)return N;if(p.lookahead===0)break}if(j=0,p.lookahead>=I&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+I-1])&p.hash_mask,j=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),p.prev_length=p.match_length,p.prev_match=p.match_start,p.match_length=I-1,j!==0&&p.prev_length<p.max_lazy_match&&p.strstart-j<=p.w_size-te&&(p.match_length=ne(p,j),p.match_length<=5&&(p.strategy===1||p.match_length===I&&4096<p.strstart-p.match_start)&&(p.match_length=I-1)),p.prev_length>=I&&p.match_length<=p.prev_length){for(u=p.strstart+p.lookahead-I,l=s._tr_tally(p,p.strstart-1-p.prev_match,p.prev_length-I),p.lookahead-=p.prev_length-1,p.prev_length-=2;++p.strstart<=u&&(p.ins_h=(p.ins_h<<p.hash_shift^p.window[p.strstart+I-1])&p.hash_mask,j=p.prev[p.strstart&p.w_mask]=p.head[p.ins_h],p.head[p.ins_h]=p.strstart),--p.prev_length!=0;);if(p.match_available=0,p.match_length=I-1,p.strstart++,l&&(L(p,!1),p.strm.avail_out===0))return N}else if(p.match_available){if((l=s._tr_tally(p,0,p.window[p.strstart-1]))&&L(p,!1),p.strstart++,p.lookahead--,p.strm.avail_out===0)return N}else p.match_available=1,p.strstart++,p.lookahead--}return p.match_available&&(l=s._tr_tally(p,0,p.window[p.strstart-1]),p.match_available=0),p.insert=p.strstart<I-1?p.strstart:I-1,V===E?(L(p,!0),p.strm.avail_out===0?J:X):p.last_lit&&(L(p,!1),p.strm.avail_out===0)?N:G}function z(p,V,j,l,u){this.good_length=p,this.max_lazy=V,this.nice_length=j,this.max_chain=l,this.func=u}function U(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=S,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*O),this.dyn_dtree=new a.Buf16(2*(2*A+1)),this.bl_tree=new a.Buf16(2*(2*_+1)),re(this.dyn_ltree),re(this.dyn_dtree),re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(M+1),this.heap=new a.Buf16(2*C+1),re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*C+1),re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ie(p){var V;return p&&p.state?(p.total_in=p.total_out=0,p.data_type=k,(V=p.state).pending=0,V.pending_out=0,V.wrap<0&&(V.wrap=-V.wrap),V.status=V.wrap?F:W,p.adler=V.wrap===2?0:1,V.last_flush=m,s._tr_init(V),g):ae(p,y)}function B(p){var V=ie(p);return V===g&&function(j){j.window_size=2*j.w_size,re(j.head),j.max_lazy_match=i[j.level].max_lazy,j.good_match=i[j.level].good_length,j.nice_match=i[j.level].nice_length,j.max_chain_length=i[j.level].max_chain,j.strstart=0,j.block_start=0,j.lookahead=0,j.insert=0,j.match_length=j.prev_length=I-1,j.match_available=0,j.ins_h=0}(p.state),V}function P(p,V,j,l,u,b){if(!p)return y;var D=1;if(V===x&&(V=6),l<0?(D=0,l=-l):15<l&&(D=2,l-=16),u<1||T<u||j!==S||l<8||15<l||V<0||9<V||b<0||v<b)return ae(p,y);l===8&&(l=9);var q=new U;return(p.state=q).strm=p,q.wrap=D,q.gzhead=null,q.w_bits=l,q.w_size=1<<q.w_bits,q.w_mask=q.w_size-1,q.hash_bits=u+7,q.hash_size=1<<q.hash_bits,q.hash_mask=q.hash_size-1,q.hash_shift=~~((q.hash_bits+I-1)/I),q.window=new a.Buf8(2*q.w_size),q.head=new a.Buf16(q.hash_size),q.prev=new a.Buf16(q.w_size),q.lit_bufsize=1<<u+6,q.pending_buf_size=4*q.lit_bufsize,q.pending_buf=new a.Buf8(q.pending_buf_size),q.d_buf=1*q.lit_bufsize,q.l_buf=3*q.lit_bufsize,q.level=V,q.strategy=b,q.method=j,B(p)}i=[new z(0,0,0,0,function(p,V){var j=65535;for(j>p.pending_buf_size-5&&(j=p.pending_buf_size-5);;){if(p.lookahead<=1){if(pe(p),p.lookahead===0&&V===m)return N;if(p.lookahead===0)break}p.strstart+=p.lookahead,p.lookahead=0;var l=p.block_start+j;if((p.strstart===0||p.strstart>=l)&&(p.lookahead=p.strstart-l,p.strstart=l,L(p,!1),p.strm.avail_out===0)||p.strstart-p.block_start>=p.w_size-te&&(L(p,!1),p.strm.avail_out===0))return N}return p.insert=0,V===E?(L(p,!0),p.strm.avail_out===0?J:X):(p.strstart>p.block_start&&(L(p,!1),p.strm.avail_out),N)}
vendor: 22,847 bytes, line 85
85),new z(4,4,8,4,R),new z(4,5,16,8,R),new z(4,6,32,32,R),new z(4,4,16,16,w),new z(8,16,32,32,w),new z(8,16,128,128,w),new z(8,32,128,256,w),new z(32,128,258,1024,w),new z(32,258,258,4096,w)],o.deflateInit=function(p,V){return P(p,V,S,15,8,0)},o.deflateInit2=P,o.deflateReset=B,o.deflateResetKeep=ie,o.deflateSetHeader=function(p,V){return p&&p.state?p.state.wrap!==2?y:(p.state.gzhead=V,g):y},o.deflate=function(p,V){var j,l,u,b;if(!p||!p.state||5<V||V<0)return p?ae(p,y):y;if(l=p.state,!p.output||!p.input&&p.avail_in!==0||l.status===666&&V!==E)return ae(p,p.avail_out===0?-5:y);if(l.strm=p,j=l.last_flush,l.last_flush=V,l.status===F)if(l.wrap===2)p.adler=0,Z(l,31),Z(l,139),Z(l,8),l.gzhead?(Z(l,(l.gzhead.text?1:0)+(l.gzhead.hcrc?2:0)+(l.gzhead.extra?4:0)+(l.gzhead.name?8:0)+(l.gzhead.comment?16:0)),Z(l,255&l.gzhead.time),Z(l,l.gzhead.time>>8&255),Z(l,l.gzhead.time>>16&255),Z(l,l.gzhead.time>>24&255),Z(l,l.level===9?2:2<=l.strategy||l.level<2?4:0),Z(l,255&l.gzhead.os),l.gzhead.extra&&l.gzhead.extra.length&&(Z(l,255&l.gzhead.extra.length),Z(l,l.gzhead.extra.length>>8&255)),l.gzhead.hcrc&&(p.adler=d(p.adler,l.pending_buf,l.pending,0)),l.gzindex=0,l.status=69):(Z(l,0),Z(l,0),Z(l,0),Z(l,0),Z(l,0),Z(l,l.level===9?2:2<=l.strategy||l.level<2?4:0),Z(l,3),l.status=W);else{var D=S+(l.w_bits-8<<4)<<8;D|=(2<=l.strategy||l.level<2?0:l.level<6?1:l.level===6?2:3)<<6,l.strstart!==0&&(D|=32),D+=31-D%31,l.status=W,Q(l,D),l.strstart!==0&&(Q(l,p.adler>>>16),Q(l,65535&p.adler)),p.adler=1}if(l.status===69)if(l.gzhead.extra){for(u=l.pending;l.gzindex<(65535&l.gzhead.extra.length)&&(l.pending!==l.pending_buf_size||(l.gzhead.hcrc&&l.pending>u&&(p.adler=d(p.adler,l.pending_buf,l.pending-u,u)),K(p),u=l.pending,l.pending!==l.pending_buf_size));)Z(l,255&l.gzhead.extra[l.gzindex]),l.gzindex++;l.gzhead.hcrc&&l.pending>u&&(p.adler=d(p.adler,l.pending_buf,l.pending-u,u)),l.gzindex===l.gzhead.extra.length&&(l.gzindex=0,l.status=73)}else l.status=73;if(l.status===73)if(l.gzhead.name){u=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>u&&(p.adler=d(p.adler,l.pending_buf,l.pending-u,u)),K(p),u=l.pending,l.pending===l.pending_buf_size)){b=1;break}b=l.gzindex<l.gzhead.name.length?255&l.gzhead.name.charCodeAt(l.gzindex++):0,Z(l,b)}while(b!==0);l.gzhead.hcrc&&l.pending>u&&(p.adler=d(p.adler,l.pending_buf,l.pending-u,u)),b===0&&(l.gzindex=0,l.status=91)}else l.status=91;if(l.status===91)if(l.gzhead.comment){u=l.pending;do{if(l.pending===l.pending_buf_size&&(l.gzhead.hcrc&&l.pending>u&&(p.adler=d(p.adler,l.pending_buf,l.pending-u,u)),K(p),u=l.pending,l.pending===l.pending_buf_size)){b=1;break}b=l.gzindex<l.gzhead.comment.length?255&l.gzhead.comment.charCodeAt(l.gzindex++):0,Z(l,b)}while(b!==0);l.gzhead.hcrc&&l.pending>u&&(p.adler=d(p.adler,l.pending_buf,l.pending-u,u)),b===0&&(l.status=103)}else l.status=103;if(l.status===103&&(l.gzhead.hcrc?(l.pending+2>l.pending_buf_size&&K(p),l.pending+2<=l.pending_buf_size&&(Z(l,255&p.adler),Z(l,p.adler>>8&255),p.adler=0,l.status=W)):l.status=W),l.pending!==0){if(K(p),p.avail_out===0)return l.last_flush=-1,g}else if(p.avail_in===0&&Y(V)<=Y(j)&&V!==E)return ae(p,-5);if(l.status===666&&p.avail_in!==0)return ae(p,-5);if(p.avail_in!==0||l.lookahead!==0||V!==m&&l.status!==666){var q=l.strategy===2?function($,se){for(var ue;;){if($.lookahead===0&&(pe($),$.lookahead===0)){if(se===m)return N;break}if($.match_length=0,ue=s._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,ue&&(L($,!1),$.strm.avail_out===0))return N}return $.insert=0,se===E?(L($,!0),$.strm.avail_out===0?J:X):$.last_lit&&(L($,!1),$.strm.avail_out===0)?N:G}(l,V):l.strategy===3?function($,se){for(var ue,le,me,ye,_e=$.window;;){if($.lookahead<=H){if(pe($),$.lookahead<=H&&se===m)return N;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=I&&0<$.strstart&&(le=_e[me=$.strstart-1])===_e[++me]&&le===_e[++me]&&le===_e[++me]){ye=$.strstart+H;do;while(le===_e[++me]&&le===_e[++me]&&le===_e[++me]&&le===_e[++me]&&le===_e[++me]&&le===_e[++me]&&le===_e[++me]&&le===_e[++me]&&me<ye);$.match_length=H-(ye-me),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=I?(ue=s._tr_tally($,1,$.match_length-I),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(ue=s._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),ue&&(L($,!1),$.strm.avail_out===0))return N}return $.insert=0,se===E?(L($,!0),$.strm.avail_out===0?J:X):$.last_lit&&(L($,!1),$.strm.avail_out===0)?N:G}(l,V):i[l.level].func(l,V);if(q!==J&&q!==X||(l.status=666),q===N||q===J)return p.avail_out===0&&(l.last_flush=-1),g;if(q===G&&(V===1?s._tr_align(l):V!==5&&(s._tr_stored_block(l,0,0,!1),V===3&&(re(l.head),l.lookahead===0&&(l.strstart=0,l.block_start=0,l.insert=0))),K(p),p.avail_out===0))return l.last_flush=-1,g}return V!==E?g:l.wrap<=0?1:(l.wrap===2?(Z(l,255&p.adler),Z(l,p.adler>>8&255),Z(l,p.adler>>16&255),Z(l,p.adler>>24&255),Z(l,255&p.total_in),Z(l,p.total_in>>8&255),Z(l,p.total_in>>16&255),Z(l,p.total_in>>24&255)):(Q(l,p.adler>>>16),Q(l,65535&p.adler)),K(p),0<l.wrap&&(l.wrap=-l.wrap),l.pending!==0?g:1)},o.deflateEnd=function(p){var V;return p&&p.state?(V=p.state.status)!==F&&V!==69&&V!==73&&V!==91&&V!==103&&V!==W&&V!==666?ae(p,y):(p.state=null,V===W?ae(p,-3):g):y},o.deflateSetDictionary=function(p,V){var j,l,u,b,D,q,$,se,ue=V.length;if(!p||!p.state||(b=(j=p.state).wrap)===2||b===1&&j.status!==F||j.lookahead)return y;for(b===1&&(p.adler=c(p.adler,V,ue,0)),j.wrap=0,ue>=j.w_size&&(b===0&&(re(j.head),j.strstart=0,j.block_start=0,j.insert=0),se=new a.Buf8(j.w_size),a.arraySet(se,V,ue-j.w_size,j.w_size,0),V=se,ue=j.w_size),D=p.avail_in,q=p.next_in,$=p.input,p.avail_in=ue,p.next_in=0,p.input=V,pe(j);j.lookahead>=I;){for(l=j.strstart,u=j.lookahead-(I-1);j.ins_h=(j.ins_h<<j.hash_shift^j.window[l+I-1])&j.hash_mask,j.prev[l&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=l,l++,--u;);j.strstart=l,j.lookahead=I-1,pe(j)}return j.strstart+=j.lookahead,j.block_start=j.strstart,j.insert=j.lookahead,j.lookahead=0,j.match_length=j.prev_length=I-1,j.match_available=0,p.next_in=q,p.input=$,p.avail_in=D,j.wrap=b,g},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,n,o){n.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,n,o){n.exports=function(i,a){var s=i.state,c=i.next_in,d,f,m,E,g,y,x,v,k,S,T,C,A,_,O,M,I,H,te,F,W,N=i.input,G;d=c+(i.avail_in-5),f=i.next_out,G=i.output,m=f-(a-i.avail_out),E=f+(i.avail_out-257),g=s.dmax,y=s.wsize,x=s.whave,v=s.wnext,k=s.window,S=s.hold,T=s.bits,C=s.lencode,A=s.distcode,_=(1<<s.lenbits)-1,O=(1<<s.distbits)-1;e:do{T<15&&(S+=N[c++]<<T,T+=8,S+=N[c++]<<T,T+=8),M=C[S&_];t:for(;;){if(S>>>=I=M>>>24,T-=I,(I=M>>>16&255)===0)G[f++]=65535&M;else{if(!(16&I)){if(!(64&I)){M=C[(65535&M)+(S&(1<<I)-1)];continue t}if(32&I){s.mode=12;break e}i.msg="invalid literal/length code",s.mode=30;break e}H=65535&M,(I&=15)&&(T<I&&(S+=N[c++]<<T,T+=8),H+=S&(1<<I)-1,S>>>=I,T-=I),T<15&&(S+=N[c++]<<T,T+=8,S+=N[c++]<<T,T+=8),M=A[S&O];r:for(;;){if(S>>>=I=M>>>24,T-=I,!(16&(I=M>>>16&255))){if(!(64&I)){M=A[(65535&M)+(S&(1<<I)-1)];continue r}i.msg="invalid distance code",s.mode=30;break e}if(te=65535&M,T<(I&=15)&&(S+=N[c++]<<T,(T+=8)<I&&(S+=N[c++]<<T,T+=8)),g<(te+=S&(1<<I)-1)){i.msg="invalid distance too far back",s.mode=30;break e}if(S>>>=I,T-=I,(I=f-m)<te){if(x<(I=te-I)&&s.sane){i.msg="invalid distance too far back",s.mode=30;break e}if(W=k,(F=0)===v){if(F+=y-I,I<H){for(H-=I;G[f++]=k[F++],--I;);F=f-te,W=G}}else if(v<I){if(F+=y+v-I,(I-=v)<H){for(H-=I;G[f++]=k[F++],--I;);if(F=0,v<H){for(H-=I=v;G[f++]=k[F++],--I;);F=f-te,W=G}}}else if(F+=v-I,I<H){for(H-=I;G[f++]=k[F++],--I;);F=f-te,W=G}for(;2<H;)G[f++]=W[F++],G[f++]=W[F++],G[f++]=W[F++],H-=3;H&&(G[f++]=W[F++],1<H&&(G[f++]=W[F++]))}else{for(F=f-te;G[f++]=G[F++],G[f++]=G[F++],G[f++]=G[F++],2<(H-=3););H&&(G[f++]=G[F++],1<H&&(G[f++]=G[F++]))}break}}break}}while(c<d&&f<E);c-=H=T>>3,S&=(1<<(T-=H<<3))-1,i.next_in=c,i.next_out=f,i.avail_in=c<d?d-c+5:5-(c-d),i.avail_out=f<E?E-f+257:257-(f-E),s.hold=S,s.bits=T}},{}],49:[function(r,n,o){var i=r("../utils/common"),a=r("./adler32"),s=r("./crc32"),c=r("./inffast"),d=r("./inftrees"),f=1,m=2,E=0,g=-2,y=1,x=852,v=592;function k(F){return(F>>>24&255)+(F>>>8&65280)+((65280&F)<<8)+((255&F)<<24)}function S(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function T(F){var W;return F&&F.state?(W=F.state,F.total_in=F.total_out=W.total=0,F.msg="",W.wrap&&(F.adler=1&W.wrap),W.mode=y,W.last=0,W.havedict=0,W.dmax=32768,W.head=null,W.hold=0,W.bits=0,W.lencode=W.lendyn=new i.Buf32(x),W.distcode=W.distdyn=new i.Buf32(v),W.sane=1,W.back=-1,E):g}function C(F){var W;return F&&F.state?((W=F.state).wsize=0,W.whave=0,W.wnext=0,T(F)):g}function A(F,W){var N,G;return F&&F.state?(G=F.state,W<0?(N=0,W=-W):(N=1+(W>>4),W<48&&(W&=15)),W&&(W<8||15<W)?g:(G.window!==null&&G.wbits!==W&&(G.window=null),G.wrap=N,G.wbits=W,C(F))):g}function _(F,W){var N,G;return F?(G=new S,(F.state=G).window=null,(N=A(F,W))!==E&&(F.state=null),N):g}var O,M,I=!0;function H(F){if(I){var W;for(O=new i.Buf32(512),M=new i.Buf32(32),W=0;W<144;)F.lens[W++]=8;for(;W<256;)F.lens[W++]=9;for(;W<280;)F.lens[W++]=7;for(;W<288;)F.lens[W++]=8;for(d(f,F.lens,0,288,O,0,F.work,{bits:9}),W=0;W<32;)F.lens[W++]=5;d(m,F.lens,0,32,M,0,F.work,{bits:5}),I=!1}F.lencode=O,F.lenbits=9,F.distcode=M,F.distbits=5}function te(F,W,N,G){var J,X=F.state;return X.window===null&&(X.wsize=1<<X.wbits,X.wnext=0,X.whave=0,X.window=new i.Buf8(X.wsize)),G>=X.wsize?(i.arraySet(X.window,W,N-X.wsize,X.wsize,0),X.wnext=0,X.whave=X.wsize):(G<(J=X.wsize-X.wnext)&&(J=G),i.arraySet(X.window,W,N-G,J,X.wnext),(G-=J)?(i.arraySet(X.window,W,N-G,G,0),X.wnext=G,X.whave=X.wsize):(X.wnext+=J,X.wnext===X.wsize&&(X.wnext=0),X.whave<X.wsize&&(X.whave+=J))),0}o.inflateReset=C,o.inflateReset2=A,o.inflateResetKeep=T,o.inflateInit=function(F){return _(F,15)},o.inflateInit2=_,o.inflate=function(F,W){var N,G,J,X,ae,Y,re,K,L,Z,Q,ne,pe,R,w,z,U,ie,B,P,p,V,j,l,u=0,b=new i.Buf8(4),D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!F||!F.state||!F.output||!F.input&&F.avail_in!==0)return g;(N=F.state).mode===12&&(N.mode=13),ae=F.next_out,J=F.output,re=F.avail_out,X=F.next_in,G=F.input,Y=F.avail_in,K=N.hold,L=N.bits,Z=Y,Q=re,V=E;e:for(;;)switch(N.mode){case y:if(N.wrap===0){N.mode=13;break}for(;L<16;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(2&N.wrap&&K===35615){b[N.check=0]=255&K,b[1]=K>>>8&255,N.check=s(N.check,b,2,0),L=K=0,N.mode=2;break}if(N.flags=0,N.head&&(N.head.done=!1),!(1&N.wrap)||(((255&K)<<8)+(K>>8))%31){F.msg="incorrect header check",N.mode=30;break}if((15&K)!=8){F.msg="unknown compression method",N.mode=30;break}if(L-=4,p=8+(15&(K>>>=4)),N.wbits===0)N.wbits=p;else if(p>N.wbits){F.msg="invalid window size",N.mode=30;break}N.dmax=1<<p,F.adler=N.check=1,N.mode=512&K?10:12,L=K=0;break;case 2:for(;L<16;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(N.flags=K,(255&N.flags)!=8){F.msg="unknown compression method",N.mode=30;break}if(57344&N.flags){F.msg="unknown header flags set",N.mode=30;break}N.head&&(N.head.text=K>>8&1),512&N.flags&&(b[0]=255&K,b[1]=K>>>8&255,N.check=s(N.check,b,2,0)),L=K=0,N.mode=3;case 3:for(;L<32;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}N.head&&(N.head.time=K),512&N.flags&&(b[0]=255&K,b[1]=K>>>8&255,b[2]=K>>>16&255,b[3]=K>>>24&255,N.check=s(N.check,b,4,0)),L=K=0,N.mode=4;case 4:for(;L<16;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}N.head&&(N.head.xflags=255&K,N.head.os=K>>8),512&N.flags&&(b[0]=255&K,b[1]=K>>>8&255,N.check=s(N.check,b,2,0)),L=K=0,N.mode=5;case 5:if(1024&N.flags){for(;L<16;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}N.length=K,N.head&&(N.head.extra_len=K),512&N.flags&&(b[0]=255&K,b[1]=K>>>8&255,N.check=s(N.check,b,2,0)),L=K=0}else N.head&&(N.head.extra=null);N.mode=6;case 6:if(1024&N.flags&&(Y<(ne=N.length)&&(ne=Y),ne&&(N.head&&(p=N.head.extra_len-N.length,N.head.extra||(N.head.extra=new Array(N.head.extra_len)),i.arraySet(N.head.extra,G,X,ne,p)),512&N.flags&&(N.check=s(N.check,G,ne,X)),Y-=ne,X+=ne,N.length-=ne),N.length))break e;N.length=0,N.mode=7;case 7:if(2048&N.flags){if(Y===0)break e;for(ne=0;p=G[X+ne++],N.head&&p&&N.length<65536&&(N.head.name+=String.fromCharCode(p)),p&&ne<Y;);if(512&N.flags&&(N.check=s(N.check,G,ne,X)),Y-=ne,X+=ne,p)break e}else N.head&&(N.head.name=null);N.length=0,N.mode=8;case 8:if(4096&N.flags){if(Y===0)break e;for(ne=0;p=G[X+ne++],N.head&&p&&N.length<65536&&(N.head.comment+=String.fromCharCode(p)),p&&ne<Y;);if(512&N.flags&&(N.check=s(N.check,G,ne,X)),Y-=ne,X+=ne,p)break e}else N.head&&(N.head.comment=null);N.mode=9;case 9:if(512&N.flags){for(;L<16;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(K!==(65535&N.check)){F.msg="header crc mismatch",N.mode=30;break}L=K=0}N.head&&(N.head.hcrc=N.flags>>9&1,N.head.done=!0),F.adler=N.check=0,N.mode=12;break;case 10:for(;L<32;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}F.adler=N.check=k(K),L=K=0,N.mode=11;case 11:if(N.havedict===0)return F.next_out=ae,F.avail_out=re,F.next_in=X,F.avail_in=Y,N.hold=K,N.bits=L,2;F.adler=N.check=1,N.mode=12;case 12:if(W===5||W===6)break e;case 13:if(N.last){K>>>=7&L,L-=7&L,N.mode=27;break}for(;L<3;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}switch(N.last=1&K,L-=1,3&(K>>>=1)){case 0:N.mode=14;break;case 1:if(H(N),N.mode=20,W!==6)break;K>>>=2,L-=2;break e;case 2:N.mode=17;break;case 3:F.msg="invalid block type",N.mode=30}K>>>=2,L-=2;break;case 14:for(K>>>=7&L,L-=7&L;L<32;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if((65535&K)!=(K>>>16^65535)){F.msg="invalid stored block lengths",N.mode=30;break}if(N.length=65535&K,L=K=0,N.mode=15,W===6)break e;case 15:N.mode=16;case 16:if(ne=N.length){if(Y<ne&&(ne=Y),re<ne&&(ne=re),ne===0)break e;i.arraySet(J,G,X,ne,ae),Y-=ne,X+=ne,re-=ne,ae+=ne,N.length-=ne;break}N.mode=12;break;case 17:for(;L<14;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(N.nlen=257+(31&K),K>>>=5,L-=5,N.ndist=1+(31&K),K>>>=5,L-=5,N.ncode=4+(15&K),K>>>=4,L-=4,286<N.nlen||30<N.ndist){F.msg="too many length or distance symbols",N.mode=30;break}N.have=0,N.mode=18;case 18:for(;N.have<N.ncode;){for(;L<3;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}N.lens[D[N.have++]]=7&K,K>>>=3,L-=3}for(;N.have<19;)N.lens[D[N.have++]]=0;if(N.lencode=N.lendyn,N.lenbits=7,j={bits:N.lenbits},V=d(0,N.lens,0,19,N.lencode,0,N.work,j),N.lenbits=j.bits,V){F.msg="invalid code lengths set",N.mode=30;break}N.have=0,N.mode=19;case 19:for(;N.have<N.nlen+N.ndist;){for(;z=(u=N.lencode[K&(1<<N.lenbits)-1])>>>16&255,U=65535&u,!((w=u>>>24)<=L);){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(U<16)K>>>=w,L-=w,N.lens[N.have++]=U;else{if(U===16){for(l=w+2;L<l;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(K>>>=w,L-=w,N.have===0){F.msg="invalid bit length repeat",N.mode=30;break}p=N.lens[N.have-1],ne=3+(3&K),K>>>=2,L-=2}else if(U===17){for(l=w+3;L<l;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}L-=w,p=0,ne=3+(7&(K>>>=w)),K>>>=3,L-=3}else{for(l=w+7;L<l;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}L-=w,p=0,ne=11+(127&(K>>>=w)),K>>>=7,L-=7}if(N.have+ne>N.nlen+N.ndist){F.msg="invalid bit length repeat",N.mode=30;break}for(;ne--;)N.lens[N.have++]=p}}if(N.mode===30)break;if(N.lens[256]===0){F.msg="invalid code -- missing end-of-block",N.mode=30;break}if(N.lenbits=9,j={bits:N.lenbits},V=d(f,N.lens,0,N.nlen,N.lencode,0,N.work,j),N.lenbits=j.bits,V){F.msg="invalid literal/lengths set",N.mode=30;break}if(N.distbits=6,N.distcode=N.distdyn,j={bits:N.distbits},V=d(m,N.lens,N.nlen,N.ndist,N.distcode,0,N.work,j),N.distbits=j.bits,V){F.msg="invalid distances set",N.mode=30;break}if(N.mode=20,W===6)break e;case 20:N.mode=21;case 21:if(6<=Y&&258<=re){F.next_out=ae,F.avail_out=re,F.next_in=X,F.avail_in=Y,N.hold=K,N.bits=L,c(F,Q),ae=F.next_out,J=F.output,re=F.avail_out,X=F.next_in,G=F.input,Y=F.avail_in,K=N.hold,L=N.bits,N.mode===12&&(N.back=-1);break}for(N.back=0;z=(u=N.lencode[K&(1<<N.lenbits)-1])>>>16&255,U=65535&u,!((w=u>>>24)<=L);){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(z&&!(240&z)){for(ie=w,B=z,P=U;z=(u=N.lencode[P+((K&(1<<ie+B)-1)>>ie)])>>>16&255,U=65535&u,!(ie+(w=u>>>24)<=L);){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}K>>>=ie,L-=ie,N.back+=ie}if(K>>>=w,L-=w,N.back+=w,N.length=U,z===0){N.mode=26;break}if(32&z){N.back=-1,N.mode=12;break}if(64&z){F.msg="invalid literal/length code",N.mode=30;break}N.extra=15&z,N.mode=22;case 22:if(N.extra){for(l=N.extra;L<l;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}N.length+=K&(1<<N.extra)-1,K>>>=N.extra,L-=N.extra,N.back+=N.extra}N.was=N.length,N.mode=23;case 23:for(;z=(u=N.distcode[K&(1<<N.distbits)-1])>>>16&255,U=65535&u,!((w=u>>>24)<=L);){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(!(240&z)){for(ie=w,B=z,P=U;z=(u=N.distcode[P+((K&(1<<ie+B)-1)>>ie)])>>>16&255,U=65535&u,!(ie+(w=u>>>24)<=L);){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}K>>>=ie,L-=ie,N.back+=ie}if(K>>>=w,L-=w,N.back+=w,64&z){F.msg="invalid distance code",N.mode=30;break}N.offset=U,N.extra=15&z,N.mode=24;case 24:if(N.extra){for(l=N.extra;L<l;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}N.offset+=K&(1<<N.extra)-1,K>>>=N.extra,L-=N.extra,N.back+=N.extra}if(N.offset>N.dmax){F.msg="invalid distance too far back",N.mode=30;break}N.mode=25;case 25:if(re===0)break e;if(ne=Q-re,N.offset>ne){if((ne=N.offset-ne)>N.whave&&N.sane){F.msg="invalid distance too far back",N.mode=30;break}pe=ne>N.wnext?(ne-=N.wnext,N.wsize-ne):N.wnext-ne,ne>N.length&&(ne=N.length),R=N.window}else R=J,pe=ae-N.offset,ne=N.length;for(re<ne&&(ne=re),re-=ne,N.length-=ne;J[ae++]=R[pe++],--ne;);N.length===0&&(N.mode=21);break;case 26:if(re===0)break e;J[ae++]=N.length,re--,N.mode=21;break;case 27:if(N.wrap){for(;L<32;){if(Y===0)break e;Y--,K|=G[X++]<<L,L+=8}if(Q-=re,F.total_out+=Q,N.total+=Q,Q&&(F.adler=N.check=N.flags?s(N.check,J,Q,ae-Q):a(N.check,J,Q,ae-Q)),Q=re,(N.flags?K:k(K))!==N.check){F.msg="incorrect data check",N.mode=30;break}L=K=0}N.mode=28;case 28:if(N.wrap&&N.flags){for(;L<32;){if(Y===0)break e;Y--,K+=G[X++]<<L,L+=8}if(K!==(4294967295&N.total)){F.msg="incorrect length check",N.mode=30;break}L=K=0}N.mode=29;case 29:V=1;break e;case 30:V=-3;break e;case 31:return-4;case 32:default:return g}return F.next_out=ae,F.avail_out=re,F.next_in=X,F.avail_in=Y,N.hold=K,N.bits=L,(N.wsize||Q!==F.avail_out&&N.mode<30&&(N.mode<27||W!==4))&&te(F,F.output,F.next_out,Q-F.avail_out)?(N.mode=31,-4):(Z-=F.avail_in,Q-=F.avail_out,F.total_in+=Z,F.total_out+=Q,N.total+=Q,N.wrap&&Q&&(F.adler=N.check=N.flags?s(N.check,J,Q,F.next_out-Q):a(N.check,J,Q,F.next_out-Q)),F.data_type=N.bits+(N.last?64:0)+(N.mode===12?128:0)+(N.mode===20||N.mode===15?256:0),(Z==0&&Q===0||W===4)&&V===E&&(V=-5),V)},o.inflateEnd=function(F){if(!F||!F.state)return g;var W=F.state;return W.window&&(W.window=null),F.state=null,E},o.inflateGetHeader=function(F,W){var N;return F&&F.state&&2&(N=F.state).wrap?((N.head=W).done=!1,E):g},o.inflateSetDictionary=function(F,W){var N,G=W.length;return F&&F.state?(N=F.state).wrap!==0&&N.mode!==11?g:N.mode===11&&a(1,W,G,0)!==N.check?-3:te(F,W,G,G)?(N.mode=31,-4):(N.havedict=1,E):g},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,n,o){var i=r("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],d=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.exports=function(f,m,E,g,y,x,v,k){var S,T,C,A,_,O,M,I,H,te=k.bits,F=0,W=0,N=0,G=0,J=0,X=0,ae=0,Y=0,re=0,K=0,L=null,Z=0,Q=new i.Buf16(16),ne=new i.Buf16(16),pe=null,R=0;for(F=0;F<=15;F++)Q[F]=0;for(W=0;W<g;W++)Q[m[E+W]]++;for(J=te,G=15;1<=G&&Q[G]===0;G--);if(G<J&&(J=G),G===0)return y[x++]=20971520,y[x++]=20971520,k.bits=1,0;for(N=1;N<G&&Q[N]===0;N++);for(J<N&&(J=N),F=Y=1;F<=15;F++)if(Y<<=1,(Y-=Q[F])<0)return-1;if(0<Y&&(f===0||G!==1))return-1;for(ne[1]=0,F=1;F<15;F++)ne[F+1]=ne[F]+Q[F];for(W=0;W<g;W++)m[E+W]!==0&&(v[ne[m[E+W]]++]=W);if(O=f===0?(L=pe=v,19):f===1?(L=a,Z-=257,pe=s,R-=257,256):(L=c,pe=d,-1),F=N,_=x,ae=W=K=0,C=-1,A=(re=1<<(X=J))-1,f===1&&852<re||f===2&&592<re)return 1;for(;;){for(M=F-ae,H=v[W]<O?(I=0,v[W]):v[W]>O?(I=pe[R+v[W]],L[Z+v[W]]):(I=96,0),S=1<<F-ae,N=T=1<<X;y[_+(K>>ae)+(T-=S)]=M<<24|I<<16|H|0,T!==0;);for(S=1<<F-1;K&S;)S>>=1;if(S!==0?(K&=S-1,K+=S):K=0,W++,--Q[F]==0){if(F===G)break;F=m[E+v[W]]}if(J<F&&(K&A)!==C){for(ae===0&&(ae=J),_+=N,Y=1<<(X=F-ae);X+ae<G&&!((Y-=Q[X+ae])<=0);)X++,Y<<=1;if(re+=1<<X,f===1&&852<re||f===2&&592<re)return 1;y[C=K&A]=J<<24|X<<16|_-x|0}}return K!==0&&(y[_+K]=F-ae<<24|4194304),k.bits=J,0}},{"../utils/common":41}],51:[function(r,n,o){n.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,n,o){var i=r("../utils/common"),a=0,s=1;function c(u){for(var b=u.length;0<=--b;)u[b]=0}var d=0,f=29,m=256,E=m+1+f,g=30,y=19,x=2*E+1,v=15,k=16,S=7,T=256,C=16,A=17,_=18,O=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],M=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],te=new Array(2*(E+2));c(te);var F=new Array(2*g);c(F);var W=new Array(512);c(W);var N=new Array(256);c(N);var G=new Array(f);c(G);var J,X,ae,Y=new Array(g);function re(u,b,D,q,$){this.static_tree=u,this.extra_bits=b,this.extra_base=D,this.elems=q,this.max_length=$,this.has_stree=u&&u.length}function K(u,b){this.dyn_tree=u,this.max_code=0,this.stat_desc=b}function L(u){return u<256?W[u]:W[256+(u>>>7)]}function Z(u,b){u.pending_buf[u.pending++]=255&b,u.pending_buf[u.pending++]=b>>>8&255}function Q(u,b,D){u.bi_valid>k-D?(u.bi_buf|=b<<u.bi_valid&65535,Z(u,u.bi_buf),u.bi_buf=b>>k-u.bi_valid,u.bi_valid+=D-k):(u.bi_buf|=b<<u.bi_valid&65535,u.bi_valid+=D)}function ne(u,b,D){Q(u,D[2*b],D[2*b+1])}function pe(u,b){for(var D=0;D|=1&u,u>>>=1,D<<=1,0<--b;);return D>>>1}function R(u,b,D){var q,$,se=new Array(v+1),ue=0;for(q=1;q<=v;q++)se[q]=ue=ue+D[q-1]<<1;for($=0;$<=b;$++){var le=u[2*$+1];le!==0&&(u[2*$]=pe(se[le]++,le))}}function w(u){var b;for(b=0;b<E;b++)u.dyn_ltree[2*b]=0;for(b=0;b<g;b++)u.dyn_dtree[2*b]=0;for(b=0;b<y;b++)u.bl_tree[2*b]=0;
vendor: 7,103 bytes, line 85
85u.dyn_ltree[2*T]=1,u.opt_len=u.static_len=0,u.last_lit=u.matches=0}function z(u){8<u.bi_valid?Z(u,u.bi_buf):0<u.bi_valid&&(u.pending_buf[u.pending++]=u.bi_buf),u.bi_buf=0,u.bi_valid=0}function U(u,b,D,q){var $=2*b,se=2*D;return u[$]<u[se]||u[$]===u[se]&&q[b]<=q[D]}function ie(u,b,D){for(var q=u.heap[D],$=D<<1;$<=u.heap_len&&($<u.heap_len&&U(b,u.heap[$+1],u.heap[$],u.depth)&&$++,!U(b,q,u.heap[$],u.depth));)u.heap[D]=u.heap[$],D=$,$<<=1;u.heap[D]=q}function B(u,b,D){var q,$,se,ue,le=0;if(u.last_lit!==0)for(;q=u.pending_buf[u.d_buf+2*le]<<8|u.pending_buf[u.d_buf+2*le+1],$=u.pending_buf[u.l_buf+le],le++,q===0?ne(u,$,b):(ne(u,(se=N[$])+m+1,b),(ue=O[se])!==0&&Q(u,$-=G[se],ue),ne(u,se=L(--q),D),(ue=M[se])!==0&&Q(u,q-=Y[se],ue)),le<u.last_lit;);ne(u,T,b)}function P(u,b){var D,q,$,se=b.dyn_tree,ue=b.stat_desc.static_tree,le=b.stat_desc.has_stree,me=b.stat_desc.elems,ye=-1;for(u.heap_len=0,u.heap_max=x,D=0;D<me;D++)se[2*D]!==0?(u.heap[++u.heap_len]=ye=D,u.depth[D]=0):se[2*D+1]=0;for(;u.heap_len<2;)se[2*($=u.heap[++u.heap_len]=ye<2?++ye:0)]=1,u.depth[$]=0,u.opt_len--,le&&(u.static_len-=ue[2*$+1]);for(b.max_code=ye,D=u.heap_len>>1;1<=D;D--)ie(u,se,D);for($=me;D=u.heap[1],u.heap[1]=u.heap[u.heap_len--],ie(u,se,1),q=u.heap[1],u.heap[--u.heap_max]=D,u.heap[--u.heap_max]=q,se[2*$]=se[2*D]+se[2*q],u.depth[$]=(u.depth[D]>=u.depth[q]?u.depth[D]:u.depth[q])+1,se[2*D+1]=se[2*q+1]=$,u.heap[1]=$++,ie(u,se,1),2<=u.heap_len;);u.heap[--u.heap_max]=u.heap[1],function(_e,He){var St,mt,zt,De,gr,Dr,xt=He.dyn_tree,gn=He.max_code,yi=He.stat_desc.static_tree,wr=He.stat_desc.has_stree,wn=He.stat_desc.extra_bits,yn=He.stat_desc.extra_base,Qt=He.stat_desc.max_length,ee=0;for(De=0;De<=v;De++)_e.bl_count[De]=0;for(xt[2*_e.heap[_e.heap_max]+1]=0,St=_e.heap_max+1;St<x;St++)Qt<(De=xt[2*xt[2*(mt=_e.heap[St])+1]+1]+1)&&(De=Qt,ee++),xt[2*mt+1]=De,gn<mt||(_e.bl_count[De]++,gr=0,yn<=mt&&(gr=wn[mt-yn]),Dr=xt[2*mt],_e.opt_len+=Dr*(De+gr),wr&&(_e.static_len+=Dr*(yi[2*mt+1]+gr)));if(ee!==0){do{for(De=Qt-1;_e.bl_count[De]===0;)De--;_e.bl_count[De]--,_e.bl_count[De+1]+=2,_e.bl_count[Qt]--,ee-=2}while(0<ee);for(De=Qt;De!==0;De--)for(mt=_e.bl_count[De];mt!==0;)gn<(zt=_e.heap[--St])||(xt[2*zt+1]!==De&&(_e.opt_len+=(De-xt[2*zt+1])*xt[2*zt],xt[2*zt+1]=De),mt--)}}(u,b),R(se,ye,u.bl_count)}function p(u,b,D){var q,$,se=-1,ue=b[1],le=0,me=7,ye=4;for(ue===0&&(me=138,ye=3),b[2*(D+1)+1]=65535,q=0;q<=D;q++)$=ue,ue=b[2*(q+1)+1],++le<me&&$===ue||(le<ye?u.bl_tree[2*$]+=le:$!==0?($!==se&&u.bl_tree[2*$]++,u.bl_tree[2*C]++):le<=10?u.bl_tree[2*A]++:u.bl_tree[2*_]++,se=$,ye=(le=0)===ue?(me=138,3):$===ue?(me=6,3):(me=7,4))}function V(u,b,D){var q,$,se=-1,ue=b[1],le=0,me=7,ye=4;for(ue===0&&(me=138,ye=3),q=0;q<=D;q++)if($=ue,ue=b[2*(q+1)+1],!(++le<me&&$===ue)){if(le<ye)for(;ne(u,$,u.bl_tree),--le!=0;);else $!==0?($!==se&&(ne(u,$,u.bl_tree),le--),ne(u,C,u.bl_tree),Q(u,le-3,2)):le<=10?(ne(u,A,u.bl_tree),Q(u,le-3,3)):(ne(u,_,u.bl_tree),Q(u,le-11,7));se=$,ye=(le=0)===ue?(me=138,3):$===ue?(me=6,3):(me=7,4)}}c(Y);var j=!1;function l(u,b,D,q){Q(u,(d<<1)+(q?1:0),3),function($,se,ue,le){z($),Z($,ue),Z($,~ue),i.arraySet($.pending_buf,$.window,se,ue,$.pending),$.pending+=ue}(u,b,D)}o._tr_init=function(u){j||(function(){var b,D,q,$,se,ue=new Array(v+1);for($=q=0;$<f-1;$++)for(G[$]=q,b=0;b<1<<O[$];b++)N[q++]=$;for(N[q-1]=$,$=se=0;$<16;$++)for(Y[$]=se,b=0;b<1<<M[$];b++)W[se++]=$;for(se>>=7;$<g;$++)for(Y[$]=se<<7,b=0;b<1<<M[$]-7;b++)W[256+se++]=$;for(D=0;D<=v;D++)ue[D]=0;for(b=0;b<=143;)te[2*b+1]=8,b++,ue[8]++;for(;b<=255;)te[2*b+1]=9,b++,ue[9]++;for(;b<=279;)te[2*b+1]=7,b++,ue[7]++;for(;b<=287;)te[2*b+1]=8,b++,ue[8]++;for(R(te,E+1,ue),b=0;b<g;b++)F[2*b+1]=5,F[2*b]=pe(b,5);J=new re(te,O,m+1,E,v),X=new re(F,M,0,g,v),ae=new re(new Array(0),I,0,y,S)}(),j=!0),u.l_desc=new K(u.dyn_ltree,J),u.d_desc=new K(u.dyn_dtree,X),u.bl_desc=new K(u.bl_tree,ae),u.bi_buf=0,u.bi_valid=0,w(u)},o._tr_stored_block=l,o._tr_flush_block=function(u,b,D,q){var $,se,ue=0;0<u.level?(u.strm.data_type===2&&(u.strm.data_type=function(le){var me,ye=4093624447;for(me=0;me<=31;me++,ye>>>=1)if(1&ye&&le.dyn_ltree[2*me]!==0)return a;if(le.dyn_ltree[18]!==0||le.dyn_ltree[20]!==0||le.dyn_ltree[26]!==0)return s;for(me=32;me<m;me++)if(le.dyn_ltree[2*me]!==0)return s;return a}(u)),P(u,u.l_desc),P(u,u.d_desc),ue=function(le){var me;for(p(le,le.dyn_ltree,le.l_desc.max_code),p(le,le.dyn_dtree,le.d_desc.max_code),P(le,le.bl_desc),me=y-1;3<=me&&le.bl_tree[2*H[me]+1]===0;me--);return le.opt_len+=3*(me+1)+5+5+4,me}(u),$=u.opt_len+3+7>>>3,(se=u.static_len+3+7>>>3)<=$&&($=se)):$=se=D+5,D+4<=$&&b!==-1?l(u,b,D,q):u.strategy===4||se===$?(Q(u,2+(q?1:0),3),B(u,te,F)):(Q(u,4+(q?1:0),3),function(le,me,ye,_e){var He;for(Q(le,me-257,5),Q(le,ye-1,5),Q(le,_e-4,4),He=0;He<_e;He++)Q(le,le.bl_tree[2*H[He]+1],3);V(le,le.dyn_ltree,me-1),V(le,le.dyn_dtree,ye-1)}(u,u.l_desc.max_code+1,u.d_desc.max_code+1,ue+1),B(u,u.dyn_ltree,u.dyn_dtree)),w(u),q&&z(u)},o._tr_tally=function(u,b,D){return u.pending_buf[u.d_buf+2*u.last_lit]=b>>>8&255,u.pending_buf[u.d_buf+2*u.last_lit+1]=255&b,u.pending_buf[u.l_buf+u.last_lit]=255&D,u.last_lit++,b===0?u.dyn_ltree[2*D]++:(u.matches++,b--,u.dyn_ltree[2*(N[D]+m+1)]++,u.dyn_dtree[2*L(b)]++),u.last_lit===u.lit_bufsize-1},o._tr_align=function(u){Q(u,2,3),ne(u,T,te),function(b){b.bi_valid===16?(Z(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=255&b.bi_buf,b.bi_buf>>=8,b.bi_valid-=8)}(u)}},{"../utils/common":41}],53:[function(r,n,o){n.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,n,o){(function(i){(function(a,s){if(!a.setImmediate){var c,d,f,m,E=1,g={},y=!1,x=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,c={}.toString.call(a.process)==="[object process]"?function(C){Te.nextTick(function(){S(C)})}:function(){if(a.postMessage&&!a.importScripts){var C=!0,A=a.onmessage;return a.onmessage=function(){C=!1},a.postMessage("","*"),a.onmessage=A,C}}()?(m="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",T,!1):a.attachEvent("onmessage",T),function(C){a.postMessage(m+C,"*")}):a.MessageChannel?((f=new MessageChannel).port1.onmessage=function(C){S(C.data)},function(C){f.port2.postMessage(C)}):x&&"onreadystatechange"in x.createElement("script")?(d=x.documentElement,function(C){var A=x.createElement("script");A.onreadystatechange=function(){S(C),A.onreadystatechange=null,d.removeChild(A),A=null},d.appendChild(A)}):function(C){setTimeout(S,0,C)},v.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var A=new Array(arguments.length-1),_=0;_<A.length;_++)A[_]=arguments[_+1];return g[E]={callback:C,args:A},c(E),E++},v.clearImmediate=k}function k(C){delete g[C]}function S(C){if(y)setTimeout(S,0,C);else{var A=g[C];if(A){y=!0;try{(function(_){var O=_.callback,M=_.args;switch(M.length){case 0:O();break;case 1:O(M[0]);break;case 2:O(M[0],M[1]);break;case 3:O(M[0],M[1],M[2]);break;default:O.apply(s,M)}})(A)}finally{k(C),y=!1}}}}
85function T(C){C.source===a&&typeof C.data=="string"&&C.data.indexOf(m)===0&&S(+C.data.slice(m.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof rt<"u"?rt:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}),Ow=de((e,t)=>{var r={"&":"&",'"':""","'":"'","<":"<",">":">"};function n(o){return o&&o.replace?o.replace(/([&"<>'])/g,function(i,a){return r[a]}):o}t.exports=n}),Lw=de((e,t)=>{Xt();var r=Ow(),n=Ms().Stream,o=" ";function i(m,E){typeof E!="object"&&(E={indent:E});var g=E.stream?new n:null,y="",x=!1,v=E.indent?E.indent===!0?o:E.indent:"",k=!0;function S(O){k?Te.nextTick(O):O()}function T(O,M){if(M!==void 0&&(y+=M),O&&!x&&(g=g||new n,x=!0),O&&x){var I=y;S(function(){g.emit("data",I)}),y=""}}function C(O,M){d(T,c(O,v,v?1:0),M)}function A(){if(g){var O=y;S(function(){g.emit("data",O),g.emit("end"),g.readable=!1,g.emit("close")})}}function _(O){var M={version:"1.0",encoding:O.encoding||"UTF-8"};O.standalone&&(M.standalone=O.standalone),C({"?xml":{_attr:M}}),y=y.replace("/>","?>")}return S(function(){k=!1}),E.declaration&&_(E.declaration),m&&m.forEach?m.forEach(function(O,M){var I;M+1===m.length&&(I=A),C(O,I)}):C(m,A),g?(g.readable=!0,g):y}function a(){var m={_elem:c(Array.prototype.slice.call(arguments))};return m.push=function(E){if(!this.append)throw new Error("not assigned to a parent!");var g=this,y=this._elem.indent;d(this.append,c(E,y,this._elem.icount+(y?1:0)),function(){g.append(!0)})},m.close=function(E){E!==void 0&&this.push(E),this.end&&this.end()},m}function s(m,E){return new Array(E||0).join(m||"")}function c(m,E,g){g=g||0;var y=s(E,g),x,v=m,k=!1;if(typeof m=="object"&&(x=Object.keys(m)[0],v=m[x],v&&v._elem))return v._elem.name=x,v._elem.icount=g,v._elem.indent=E,v._elem.indents=y,v._elem.interrupt=v,v._elem;var S=[],T=[],C;function A(_){Object.keys(_).forEach(function(O){S.push(f(O,_[O]))})}switch(typeof v){case"object":if(v===null)break;v._attr&&A(v._attr),v._cdata&&T.push(("<![CDATA["+v._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),v.forEach&&(C=!1,T.push(""),v.forEach(function(_){typeof _=="object"?Object.keys(_)[0]=="_attr"?A(_._attr):T.push(c(_,E,g+1)):(T.pop(),C=!0,T.push(r(_)))}),C||T.push(""));break;default:T.push(r(v))}return{name:x,interrupt:k,attributes:S,content:T,icount:g,indents:y,indent:E}}function d(m,E,g){if(typeof E!="object")return m(!1,E);var y=E.interrupt?1:E.content.length;function x(){for(;E.content.length;){var k=E.content.shift();if(k!==void 0){if(v(k))return;d(m,k)}}m(!1,(y>1?E.indents:"")+(E.name?"</"+E.name+">":"")+(E.indent&&!g?` 86`:"")),g&&g()}function v(k){return k.interrupt?(k.interrupt.append=m,k.interrupt.end=x,k.interrupt=!1,m(!0),!0):!1}if(m(!1,E.indents+(E.name?"<"+E.name:"")+(E.attributes.length?" "+E.attributes.join(" "):"")+(y?E.name?">":"":E.name?"/>":"")+(E.indent&&y>1?` 87`:"")),!y)return m(!1,E.indent?` 88`:"");v(E)||x()}function f(m,E){return m+'="'+r(E)+'"'}t.exports=i,t.exports.element=t.exports.Element=a}),Bw=Ms(),Dw=Is(Pw()),Le=Is(Lw()),Hr=0,Hi=32,Mw=32,Uw=(e,t)=>{const r=t.replace(/-/g,"");if(r.length!==Mw)throw new Error(`Error: Cannot extract GUID from font filename: ${t}`);const n=r.replace(/(..)/g,"$1 ").trim().split(" ").map(a=>parseInt(a,16));n.reverse();const o=e.slice(Hr,Hi).map((a,s)=>a^n[s%n.length]),i=new Uint8Array(Hr+o.length+Math.max(0,e.length-Hi));return i.set(e.slice(0,Hr)),i.set(o,Hr),i.set(e.slice(Hi),Hr+o.length),i},zw=class{format(e,t={stack:[]}){const r=e.prepForXml(t);if(r)return r;throw Error("XMLComponent did not format correctly")}},$w=class{replace(e,t,r){let n=e;return t.forEach((o,i)=>{n=n.replace(new RegExp(`{${o.fileName}}`,"g"),(r+i).toString())}),n}getMediaData(e,t){return t.Array.filter(r=>e.search(`{${r.fileName}}`)>0)}},Hw=class{replace(e,t){let r=e;for(const n of t)r=r.replace(new RegExp(`{${n.reference}-${n.instance}}`,"g"),n.numId.toString());return r}},Ww=class{constructor(){oe(this,"formatter",void 0),oe(this,"imageReplacer",void 0),oe(this,"numberingReplacer",void 0),this.formatter=new zw,this.imageReplacer=new $w,this.numberingReplacer=new Hw}compile(e,t,r=[]){const n=new Dw.default,o=this.xmlifyFile(e,t),i=new Map(Object.entries(o));for(const[,a]of i)if(Array.isArray(a))for(const s of a)n.file(s.path,Pi(s.data));else n.file(a.path,Pi(a.data));for(const a of r)n.file(a.path,Pi(a.data));for(const a of e.Media.Array)a.type!=="svg"?n.file(`word/media/${a.fileName}`,a.data):(n.file(`word/media/${a.fileName}`,a.data),n.file(`word/media/${a.fallback.fileName}`,a.fallback.data));for(const[a,{data:s,fontKey:c}]of e.FontTable.fontOptionsWithKey.entries())n.file(`word/fonts/font${a+1}.odttf`,Uw(s,c));return n}xmlifyFile(e,t){const r=e.Document.Relationships.RelationshipCount+1,n=(0,Le.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),o=e.Comments.Relationships.RelationshipCount+1,i=(0,Le.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),a=e.FootNotes.Relationships.RelationshipCount+1,s=(0,Le.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),c=this.imageReplacer.getMediaData(n,e.Media),d=this.imageReplacer.getMediaData(i,e.Media),f=this.imageReplacer.getMediaData(s,e.Media);return be(be({Relationships:{data:(c.forEach((m,E)=>{e.Document.Relationships.addRelationship(r+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${m.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable","fontTable.xml"),(0,Le.default)(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/document.xml.rels"},Document:{data:(()=>
88{const m=this.imageReplacer.replace(n,c,r);return this.numberingReplacer.replace(m,e.Numbering.ConcreteNumbering)})(),path:"word/document.xml"},Styles:{data:(()=>{const m=(0,Le.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}});return this.numberingReplacer.replace(m,e.Numbering.ConcreteNumbering)})(),path:"word/styles.xml"},Properties:{data:(0,Le.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/core.xml"},Numbering:{data:(0,Le.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/numbering.xml"},FileRelationships:{data:(0,Le.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"_rels/.rels"},HeaderRelationships:e.Headers.map((m,E)=>{const g=(0,Le.default)(this.formatter.format(m.View,{viewWrapper:m,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(g,e.Media).forEach((y,x)=>{m.Relationships.addRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:(0,Le.default)(this.formatter.format(m.Relationships,{viewWrapper:m,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/header${E+1}.xml.rels`}}),FooterRelationships:e.Footers.map((m,E)=>{const g=(0,Le.default)(this.formatter.format(m.View,{viewWrapper:m,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}});return this.imageReplacer.getMediaData(g,e.Media).forEach((y,x)=>{m.Relationships.addRelationship(x,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${y.fileName}`)}),{data:(0,Le.default)(this.formatter.format(m.Relationships,{viewWrapper:m,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:`word/_rels/footer${E+1}.xml.rels`}}),Headers:e.Headers.map((m,E)=>{const g=(0,Le.default)(this.formatter.format(m.View,{viewWrapper:m,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),y=this.imageReplacer.getMediaData(g,e.Media),x=this.imageReplacer.replace(g,y,0);return{data:this.numberingReplacer.replace(x,e.Numbering.ConcreteNumbering),path:`word/header${E+1}.xml`}}),Footers:e.Footers.map((m,E)=>{const g=(0,Le.default)(this.formatter.format(m.View,{viewWrapper:m,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),y=this.imageReplacer.getMediaData(g,e.Media),x=this.imageReplacer.replace(g,y,0);return{data:this.numberingReplacer.replace(x,e.Numbering.ConcreteNumbering),path:`word/footer${E+1}.xml`}}),ContentTypes:{data:(0,Le.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"[Content_Types].xml"},CustomProperties:{data:(0,Le.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/custom.xml"},AppProperties:{data:(0,Le.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"docProps/app.xml"},FootNotes:{data:(()=>{const m=this.imageReplacer.replace(s,f,a);return this.numberingReplacer.replace(m,e.Numbering.ConcreteNumbering)})(),path:"word/footnotes.xml"},FootNotesRelationships:{data:(f.forEach((m,E)=>{e.FootNotes.Relationships.addRelationship(a+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${m.fileName}`)}),(0,Le.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/footnotes.xml.rels"},Endnotes:{data:(0,Le.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/endnotes.xml"},EndnotesRelationships:{data:(0,Le.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/endnotes.xml.rels"},Settings:{data:(0,Le.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/settings.xml"},Comments:{data:(()=>{const m=this.imageReplacer.replace(i,d,o);return this.numberingReplacer.replace(m,e.Numbering.ConcreteNumbering)})(),path:"word/comments.xml"}
88,CommentsRelationships:{data:(d.forEach((m,E)=>{e.Comments.Relationships.addRelationship(o+E,"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",`media/${m.fileName}`)}),(0,Le.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}})),path:"word/_rels/comments.xml.rels"}},e.CommentsExtended?{CommentsExtended:{data:(0,Le.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/commentsExtended.xml"}}:{}),{},{FontTable:{data:(0,Le.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:"yes",encoding:"UTF-8"}}),path:"word/fontTable.xml"},FontTableRelationships:{data:(0,Le.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:"UTF-8"}}),path:"word/_rels/fontTable.xml.rels"}})}};function uo(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(d){r(d);return}s.done?t(c):Promise.resolve(c).then(n,o)}function Vw(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(c){uo(i,n,o,a,s,"next",c)}function s(c){uo(i,n,o,a,s,"throw",c)}a(void 0)})}}var Gw={WITH_2_BLANKS:" "},co=e=>e===!0?Gw.WITH_2_BLANKS:e===!1?void 0:e,Au=class Sr{static pack(t,r,n){var o=this;return Vw(function*(i,a,s,c=[]){return o.compiler.compile(i,co(s),c).generateAsync({type:a,mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"})}).apply(this,arguments)}static toString(t,r,n=[]){return Sr.pack(t,"string",r,n)}static toBuffer(t,r,n=[]){return Sr.pack(t,"nodebuffer",r,n)}static toBase64String(t,r,n=[]){return Sr.pack(t,"base64",r,n)}static toBlob(t,r,n=[]){return Sr.pack(t,"blob",r,n)}static toArrayBuffer(t,r,n=[]){return Sr.pack(t,"arraybuffer",r,n)}static toStream(t,r,n=[]){const o=new Bw.Stream;return this.compiler.compile(t,co(r),n).generateAsync({type:"nodebuffer",mimeType:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",compression:"DEFLATE"}).then(i=>{o.emit("data",i),o.emit("end")}),o}};oe(Au,"compiler",new Ww);var Cu={exports:{}};(function(e,t){(function(r,n){n()})(Mr,function(){function r(d,f){return typeof f>"u"?f={autoBom:!1}:typeof f!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\uFEFF",d],{type:d.type}):d}function n(d,f,m){var E=new XMLHttpRequest;E.open("GET",d),E.responseType="blob",E.onload=function(){c(E.response,f,m)},E.onerror=function(){console.error("could not download file")},E.send()}function o(d){var f=new XMLHttpRequest;f.open("HEAD",d,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function i(d){try{d.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");
88f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(f)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Mr=="object"&&Mr.global===Mr?Mr:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(d,f,m){var E=a.URL||a.webkitURL,g=document.createElement("a");f=f||d.name||"download",g.download=f,g.rel="noopener",typeof d=="string"?(g.href=d,g.origin===location.origin?i(g):o(g.href)?n(d,f,m):i(g,g.target="_blank")):(g.href=E.createObjectURL(d),setTimeout(function(){E.revokeObjectURL(g.href)},4e4),setTimeout(function(){i(g)},0))}:"msSaveOrOpenBlob"in navigator?function(d,f,m){if(f=f||d.name||"download",typeof d!="string")navigator.msSaveOrOpenBlob(r(d,m),f);else if(o(d))n(d,f,m);else{var E=document.createElement("a");E.href=d,E.target="_blank",setTimeout(function(){i(E)})}}:function(d,f,m,E){if(E=E||open("","_blank"),E&&(E.document.title=E.document.body.innerText="downloading..."),typeof d=="string")return n(d,f,m);var g=d.type==="application/octet-stream",y=/constructor/i.test(a.HTMLElement)||a.safari,x=/CriOS\/[\d]+/.test(navigator.userAgent);if((x||g&&y||s)&&typeof FileReader<"u"){var v=new FileReader;v.onloadend=function(){var T=v.result;T=x?T:T.replace(/^data:[^;]*;/,"data:attachment/file;"),E?E.location.href=T:location=T,E=null},v.readAsDataURL(d)}else{var k=a.URL||a.webkitURL,S=k.createObjectURL(d);E?E.location=S:location.href=S,E=null,setTimeout(function(){k.revokeObjectURL(S)},4e4)}});a.saveAs=c.saveAs=c,e.exports=c})})(Cu);var qw=Cu.exports;const on="Arial";function et(e,t={}){return new _t({alignment:t.align,bidirectional:t.rtl,spacing:{after:120},children:[new jr({text:e,bold:t.bold,size:t.size??22,font:on,rightToLeft:t.rtl})]})}function Wi(e,t,r){return new _t({heading:t,bidirectional:r,spacing:{before:240,after:120},children:[new jr({text:e,bold:!0,size:28,font:on,rightToLeft:r})]})}function Kw(e,t){return new _t({numbering:{reference:"contract-bullets",level:0},bidirectional:t,spacing:{after:60},children:[new jr({text:e,size:22,font:on,rightToLeft:t})]})}function Xw(e,t){const r=e.lang==="he"?{provider:"×ספק",client:"×××§××",name:"ש×",id:"×.פ./ת.×.",address:"×ת××ת",contact:"××ש קשר",email:'×××"×'}:{provider:"Provider",client:"Client",name:"Name",id:"ID / Reg. No.",address:"Address",contact:"Contact",email:"Email"},n=[[r.name,e.parties.provider.name||"",e.parties.client.name||""],[r.id,e.parties.provider.id||"â",e.parties.client.id||"[××ש××]"],[r.address,e.parties.provider.address||"â",e.parties.client.address||"[××ש××]"],[r.contact,"â",e.parties.client.contact_name||"â"],[r.email,"â",e.parties.client.email||"â"]],o={style:hn.SINGLE,size:4,color:"999999"},i={top:o,bottom:o,left:o,right:o};return new xu({width:{size:9360,type:wt.DXA},columnWidths:[2e3,3680,3680],rows:[new ls({tableHeader:!0,children:[new Lt({borders:i,width:{size:2e3,type:wt.DXA},shading:{fill:"F0F0F0",type:Ii.CLEAR},margins:{top:80,bottom:80,left:120,right:120},children:[et("",{rtl:t})]}),new Lt({borders:i,width:{size:3680,type:wt.DXA},shading:{fill:"F0F0F0",type:Ii.CLEAR},margins:{top:80,bottom:80,left:120,right:120},children:[et(r.provider,{bold:!0,rtl:t,align:t?Fe.RIGHT:Fe.LEFT})]}),new Lt({borders:i,width:{size:3680,type:wt.DXA},shading:{fill:"F0F0F0",type:Ii.CLEAR},margins:{top:80,bottom:80,left:120,right:120},children:[et(r.client,{bold:!0,rtl:t,align:t?Fe.RIGHT:Fe.LEFT})]})]}),...n.map(([a,s,c])=>new ls({children:[new Lt({borders:i,width:{size:2e3,type:wt.DXA},margins:{top:60,bottom:60,left:120,right:120},children:[et(a,{bold:!0,rtl:t,align:t?Fe.RIGHT:Fe.LEFT})]}),new Lt({borders:i,width:{size:3680,type:wt.DXA},margins:{top:60,bottom:60,left:120,right:120},children:[et(s,{rtl:t,align:t?Fe.RIGHT:Fe.LEFT})]}),new Lt({borders:i,width:{size:3680,type:wt.DXA},margins:{top:60,bottom:60,left:120,right:120},children:[et(c,{rtl:t,align:t?Fe.RIGHT:Fe.LEFT})]})]}))]})}function Zw(e,t){const{provider_label:r,client_label:n,date_label:o}=e.signature_block,i={style:hn.SINGLE,size:4,color:"999999"},a={top:i,bottom:i,left:i,right:i},s=c=>new Lt({borders:a,width:{size:4680,type:wt.DXA},margins:{top:300,bottom:80,left:120,right:120},children:[et("",{rtl:t}),et("____________________________",{rtl:t,align:t?Fe.RIGHT:Fe.LEFT}),et(c,{bold:!0,rtl:t,align:t?Fe.RIGHT:Fe.LEFT}),et(`${o}: ____________`,{rtl:t,align:t?Fe.RIGHT:Fe.LEFT})]});return new xu({width:{size:9360,type:wt.DXA},columnWidths:[4680,4680],rows:[new ls({children:[s(r),s(n)]})]})}async function Yw(e,t){const r=e.lang==="he",n=[];n.push(new _t({alignment:Fe.CENTER,bidirectional:r,spacing:{after:200},children:[new jr({text:e.title,bold:!0,size:36,font:on,rightToLeft:r})]})),n.push(et(r?`× ××ª× ××××: ${e.effective_date}`:`Effective date: ${e.effective_date}
88`,{rtl:r,align:Fe.CENTER})),n.push(et("")),n.push(Xw(e,r)),n.push(et("")),e.scope_summary&&(n.push(Wi(r?"××××× ×â¦":"Recitals",Oi.HEADING_2,r)),n.push(et(e.scope_summary,{rtl:r,align:r?Fe.RIGHT:Fe.LEFT})));for(const a of e.sections||[]){n.push(Wi(a.heading,Oi.HEADING_2,r));for(const s of a.paragraphs||[])n.push(et(s.text,{bold:s.bold,rtl:r,align:r?Fe.RIGHT:Fe.LEFT}));for(const s of a.bullets||[])n.push(Kw(s,r))}n.push(et("")),n.push(Wi(r?"×ת×××ת":"Signatures",Oi.HEADING_2,r)),n.push(Zw(e,r));const o=new Fw({styles:{default:{document:{run:{font:on,size:22}}}},numbering:{config:[{reference:"contract-bullets",levels:[{level:0,format:At.BULLET,text:"â¢",alignment:r?Fe.RIGHT:Fe.LEFT,style:{paragraph:{indent:{left:720,hanging:360}}}}]}]},sections:[{properties:{page:{size:{width:12240,height:15840,orientation:si.PORTRAIT},margin:{top:1440,right:1440,bottom:1440,left:1440}}},children:n}]}),i=await Au.toBlob(o);qw.saveAs(i,t)}function $e({onClick:e,active:t,children:r,title:n}){return h.jsx("button",{type:"button",onClick:e,title:n,className:`p-2 rounded-md transition-colors ${t?"bg-[#e8863a]/20 text-[#e8863a] shadow-sm":"text-[#1a1a2e] hover:bg-gray-200 hover:text-[#0a0a0b]"}`,children:r})}function xr(){return h.jsx("div",{className:"w-px h-6 bg-gray-300 mx-1"})}function Qw({content:e,onChange:t,lang:r="he"}){const n=ce.useRef(!1),o=ce.useRef(e),i=r==="en"?"ltr":"rtl",a=r==="en"?"Inter, 'Helvetica Neue', Arial, sans-serif":"Heebo, 'Segoe UI', Arial, sans-serif",s=Ju({extensions:[tc.configure({heading:{levels:[1,2,3]}}),rc.configure({inline:!0,allowBase64:!0}),nc.configure({openOnClick:!1,HTMLAttributes:{class:"text-[#e8863a] underline"}}),sc.configure({types:["heading","paragraph"]}),ec,ac,oc,lc.configure({resizable:!0}),uc,cc,hc],content:e,onUpdate:({editor:E})=>{n.current=!0,t(E.getHTML())},editorProps:{attributes:{class:"max-w-none min-h-[250px] sm:min-h-[400px] p-4 sm:p-6 outline-none focus:outline-none",dir:i,style:`color: #1a1a2e; background: white; direction: ${i}; text-align: ${i==="ltr"?"left":"right"}; font-family: ${a}; unicode-bidi: plaintext;`}}},[r]);ce.useEffect(()=>{if(s){if(n.current){n.current=!1,o.current=e;return}e!==o.current&&(o.current=e,s.commands.setContent(e))}},[e,s]);const c=ce.useCallback(()=>{if(!s)return;const E=window.prompt("××× ×¡ URL ×©× ×ª××× ×:");E&&s.chain().focus().setImage({src:E}).run()},[s]),d=ce.useCallback(()=>{if(!s)return;const E=s.getAttributes("link").href,g=window.prompt("××× ×¡ URL:",E||"https://");if(g!==null){if(g===""){s.chain().focus().unsetLink().run();return}s.chain().focus().extendMarkRange("link").setLink({href:g}).run()}},[s]),f=ce.useCallback(()=>{if(!s)return;const E=window.prompt("××× ×¡ צ××¢ (hex):","#1a1a2e");E&&s.chain().focus().setColor(E).run()},[s]),m=ce.useCallback(()=>{s&&s.chain().focus().insertTable({rows:3,cols:3,withHeaderRow:!0}).run()},[s]);return s?h.jsxs("div",{className:"border border-border rounded-xl overflow-hidden bg-white shadow-sm",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 px-2 sm:px-3 py-1.5 sm:py-2 border-b border-gray-200 bg-gray-50 sticky top-0 z-10 overflow-x-auto",children:[h.jsx($e,{onClick:()=>s.chain().focus().undo().run(),title:"×××",children:h.jsx(Un,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().redo().run(),title:"×××ר",children:h.jsx(_o,{className:"w-4 h-4"})}),h.jsx(xr,{}),h.jsx($e,{onClick:()=>s.chain().focus().toggleHeading({level:1}).run(),active:s.isActive("heading",{level:1}),title:"××תרת 1",children:h.jsx(So,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleHeading({level:2}).run(),active:s.isActive("heading",{level:2}),title:"××תרת 2",children:h.jsx(Eo,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleHeading({level:3}).run(),active:s.isActive("heading",{level:3}),title:"××תרת 3",children:h.jsx(bo,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().setParagraph().run(),active:s.isActive("paragraph"),title:"פסק×",children:h.jsx(ko,{className:"w-4 h-4"})}),h.jsx(xr,{}),h.jsx($e,{onClick:()=>s.chain().focus().toggleBold().run(),active:s.isActive("bold"),title:"××××ש",children:h.jsx(To,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleItalic().run(),active:s.isActive("italic"),title:"× ×××",children:h.jsx(Ao,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleUnderline().run(),active:s.isActive("underline"),title:"×§× ×ª×ת××",children:h.jsx(xo,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleStrike().run(),active:s.isActive("strike"),title:"×§× ××צ×",children:h.jsx(Co,{className:"w-4 h-4"})}),h.jsx(xr,{}),h.jsx($e,{onClick:f,title:"צ××¢ ×קס×",children:h.jsx(mo,{className:"w-4 h-4"})}),h.jsx(xr,{}),h.jsx($e,{onClick:()=>s.chain().focus().setTextAlign("right").run(),active:s.isActive({textAlign:"right"}),title:"××××",children:h.jsx(No,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().setTextAlign("center").run(),active:s.isActive({textAlign:"center"}),title:"×ר××",children:h.jsx(Ro,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().setTextAlign("left").run(),active:s.isActive({textAlign:"left"}),title:"ש×××",children:h.jsx(jo,{className:"w-4 h-4"})}),h.jsx(xr,{}),h.jsx($e,{onClick:()=>s.chain().focus().toggleBulletList().run(),active:s.isActive("bulletList"),title:"רש×××",children:h.jsx(go,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleOrderedList().run(),active:s.isActive("orderedList"),title:"רש××× ×××ספרת",children:h.jsx(wo,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleBlockquote().run(),active:s.isActive("blockquote"),title:"צ××××",children:h.jsx(dc,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().setHorizontalRule().run(),title:"×§× ×פר××",children:h.jsx(Io,{className:"w-4 h-4"})}),h.jsx(xr,{}),h.jsx($e,{onClick:c,title:"××סף ת××× ×",children:h.jsx(fs,{className:"w-4 h-4"})}),h.jsx($e,{onClick:d,active:s.isActive("link"),title:"××סף ××× ×§",children:h.jsx(Fo,{className:"w-4 h-4"})}),h.jsx($e,{onClick:m,title:"××סף ××××",children:h.jsx(fc,{className:"w-4 h-4"})}),h.jsx($e,{onClick:()=>s.chain().focus().toggleCodeBlock().run(),active:s.isActive("codeBlock"),title:"××××§ ×§××",children:h.jsx(pc,{className:"w-4 h-4"})})]}),h.jsxs("div",{className:"bg-white quote-editor-surface",style:{color:"#1a1a2e"},children:[h.jsx("style",{children:` 89 .quote-editor-surface .ProseMirror { 90 color: #1a1a2e; 91 line-height: 2; 92 font-size: 15px; 93 word-spacing: 1px; 94 unicode-bidi: plaintext; 95 font-family: ${a}; 96 } 97 .quote-editor-surface .ProseMirror p { 98 margin-bottom: 16px; 99 line-height: 1.9; 100 unicode-bidi: plaintext; 101 } 102 .quote-editor-surface .ProseMirror h1 { 103 font-size: 22px; 104 font-weight: 800; 105 margin: 24px 0 16px; 106 color: #0a0a0b; 107 } 108 .quote-editor-surface .ProseMirror h2 { 109 font-size: 19px; 110 font-weight: 700; 111 margin: 28px 0 14px; 112 color: #0a0a0b; 113 border-bottom: 2px solid #e8863a; 114 padding-bottom: 6px; 115 display: inline-block; 116 } 117 .quote-editor-surface .ProseMirror h3 { 118 font-size: 17px; 119 font-weight: 700; 120 margin: 22px 0 12px; 121 color: #e8863a; 122 } 123 .quote-editor-surface .ProseMirror ul, 124 .quote-editor-surface .ProseMirror ol { 125 margin: 14px 0; 126 padding-inline-start: 24px; 127 padding-inline-end: 8px; 128 } 129 .quote-editor-surface .ProseMirror li { 130 margin-bottom: 10px; 131 line-height: 1.8; 132 padding: 6px 0; 133 } 134 .quote-editor-surface .ProseMirror strong { color: #0a0a0b; } 135 .quote-editor-surface .ProseMirror a { color: #e8863a !important; text-decoration: underline; } 136 .quote-editor-surface .ProseMirror hr { margin: 24px 0; border-color: #eee; } 137 .quote-editor-surface .ProseMirror table { 138 width: 100%; 139 border-collapse: collapse; 140 margin: 16px 0; 141 } 142 .quote-editor-surface .ProseMirror th { 143 background: #0a0a0b; 144 color: white; 145 padding: 10px 14px;
146 text-align: ${i==="ltr"?"left":"right"}; 147 font-size: 14px; 148 border: 1px solid #0a0a0b; 149 } 150 .quote-editor-surface .ProseMirror td { 151 padding: 12px 14px; 152 border-bottom: 1px solid #eee; 153 border: 1px solid #e5e7eb; 154 font-size: 14px; 155 color: #1a1a2e; 156 } 157 .quote-editor-surface .ProseMirror img { 158 max-width: 100%; 159 border-radius: 0.5rem; 160 } 161 `}),h.jsx(ic,{editor:s})]})]}):null}function qe({onClick:e,title:t,children:r,active:n}){return h.jsx("button",{type:"button",onClick:e,title:t,className:`p-1.5 sm:p-2 rounded-md transition-colors ${n?"bg-[#e8863a]/20 text-[#e8863a] shadow-sm":"text-[#1a1a2e] hover:bg-gray-200"}`,children:r})}function br(){return h.jsx("div",{className:"w-px h-5 bg-gray-300 mx-0.5"})}function Jw({content:e,onChange:t,lang:r="he"}){const n=ce.useRef(null),o=ce.useRef(e),i=ce.useRef(!1),a=ce.useRef(null),s=ce.useRef(r),c=ce.useCallback(m=>{const E=m.body;if(!E)return;const g=[E,...Array.from(E.querySelectorAll("*"))],y=v=>{const k=v.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return k?[Number(k[1]),Number(k[2]),Number(k[3])]:null},x=v=>{var S;let k=v;for(;k;){const T=((S=m.defaultView)==null?void 0:S.getComputedStyle(k).backgroundColor)??"";if(T&&T!=="transparent"&&T!=="rgba(0, 0, 0, 0)"){const C=y(T);if(C)return C}k=k.parentElement}return[255,255,255]};g.forEach(v=>
161{const[k,S,T]=x(v),C=.2126*k+.7152*S+.0722*T;v.setAttribute("data-bg-tone",C<135?"dark":"light")})},[]),d=ce.useCallback((m,E)=>{var x;const g=(x=n.current)==null?void 0:x.contentDocument;if(!g)return;g.execCommand(m,!1,E),g.body.focus();const y=g.body.innerHTML;o.current=y,t(y)},[t]),f=ce.useCallback(m=>{const E=n.current;if(!(E!=null&&E.contentDocument))return;const g=E.contentDocument,y=r==="he",x=y?"rtl":"ltr",v=y?"right":"left",k=r;g.open(),g.write(` 162 <!DOCTYPE html> 163 <html dir="${x}" lang="${k}"> 164 <head> 165 <meta charset="UTF-8"> 166 <style> 167 * { box-sizing: border-box; } 168 body { 169 font-family: ${y?"'Heebo', 'Arial', sans-serif":"'Inter', 'Arial', sans-serif"}; 170 margin: 0; 171 padding: 24px; 172 color: #1a1a2e; 173 background: white; 174 direction: ${x}; 175 text-align: ${v}; 176 line-height: 1.7; 177 font-size: 14px; 178 min-height: 400px; 179 unicode-bidi: plaintext; 180 } 181 body:focus { outline: none; } 182 table { border-collapse: collapse; width: 100%; margin: 12px 0; } 183 td, th { border: 1px solid #ddd; padding: 8px 12px; text-align: ${v}; } 184 th { background: #f5f5f5; font-weight: 600; } 185 img { max-width: 100%; border-radius: 8px; } 186 h1, h2, h3 { margin: 16px 0 8px; } 187 ul, ol { padding-${v}: 24px; margin: 8px 0; } 188 li { margin-bottom: 4px; } 189 a { color: #e8863a; } 190 /* Contrast guard: auto-tagged elements by background tone */ 191 * { caret-color: auto; } 192 [data-bg-tone="light"] { color: #1a1a2e !important; caret-color: #1a1a2e !important; } 193 [data-bg-tone="light"] * { color: inherit !important; } 194 [data-bg-tone="dark"] { color: white !important; caret-color: #e8863a !important; } 195 [data-bg-tone="dark"] * { color: inherit !important; } 196 [data-bg-tone="dark"] a { color: #e8863a !important; } 197 ::selection { background: rgba(232, 134, 58, 0.4) !important; color: inherit !important; } 198 /* Ensure all elements are clickable/editable */ 199 [contenteditable="true"] * { cursor: text; } 200 /* Editable indicator */ 201 body[contenteditable="true"]:empty::before { 202 content: '${y?"ער×× ×××...":"Edit here..."}'; 203 color: #999; 204 } 205 /* Editable hover hint */ 206 body[contenteditable="true"] *:hover { 207 outline: 1px dashed rgba(232, 134, 58, 0.3); 208 outline-offset: 2px; 209 } 210 </style> 211 <link href="https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> 212 </head> 213 <body contenteditable="true">${m}</body> 214 </html> 215 `),g.close();const S=g.body,T=()=>{const A=E.contentWindow;A&&(a.current&&A.cancelAnimationFrame(a.current),a.current=A.requestAnimationFrame(()=>{c(g),a.current=null}))};T();const C=()=>{i.current=!0;const A=S.innerHTML;o.current=A,t(A),T(),setTimeout(()=>{i.current=!1},50)};S.addEventListener("input",C)},[t,c,r]);return ce.useEffect(()=>{const m=setTimeout(()=>{f(e)},100);return()=>{var g;clearTimeout(m);const E=(g=n.current)==null?void 0:g.contentWindow;E&&a.current&&E.cancelAnimationFrame(a.current)}},[]),ce.useEffect(()=>{if(i.current&&r===s.current)return;const m=r!==s.current;(e!==o.current||m)&&(o.current=e,s.current=r,f(e))},[e,r,f]),h.jsxs("div",{className:"border border-border rounded-xl overflow-hidden bg-white shadow-sm",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-0.5 px-2 sm:px-3 py-1.5 border-b border-gray-200 bg-gray-50 sticky top-0 z-10 overflow-x-auto",children:[h.jsx(qe,{onClick:()=>d("undo"),title:"×××",children:h.jsx(Un,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("redo"),title:"×××ר",children:h.jsx(_o,{className:"w-4 h-4"})}),h.jsx(br,{}),h.jsx(qe,{onClick:()=>d("formatBlock","h1"),title:"××תרת 1",children:h.jsx(So,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("formatBlock","h2"),title:"××תרת 2",children:h.jsx(Eo,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("formatBlock","h3"),title:"××תרת 3",children:h.jsx(bo,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("formatBlock","p"),title:"פסק×",children:h.jsx(ko,{className:"w-4 h-4"})}),h.jsx(br,{}),h.jsx(qe,{onClick:()=>d("bold"),title:"××××ש",children:h.jsx(To,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("italic"),title:"× ×××",children:h.jsx(Ao,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("underline"),title:"×§× ×ª×ת××",children:h.jsx(xo,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("strikeThrough"),title:"×§× ××צ×",children:h.jsx(Co,{className:"w-4 h-4"})}),h.jsx(br,{}),h.jsxs("label",{title:"צ××¢ ×קס×",className:"relative p-1.5
215sm:p-2 rounded-md transition-colors text-[#1a1a2e] hover:bg-gray-200 cursor-pointer",children:[h.jsx(mo,{className:"w-4 h-4"}),h.jsx("input",{type:"color",defaultValue:"#1a1a2e",className:"absolute inset-0 w-full h-full opacity-0 cursor-pointer",onChange:m=>d("foreColor",m.target.value)})]}),h.jsx(br,{}),h.jsx(qe,{onClick:()=>d("justifyRight"),title:"××××",children:h.jsx(No,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("justifyCenter"),title:"×ר××",children:h.jsx(Ro,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("justifyLeft"),title:"ש×××",children:h.jsx(jo,{className:"w-4 h-4"})}),h.jsx(br,{}),h.jsx(qe,{onClick:()=>d("insertUnorderedList"),title:"רש×××",children:h.jsx(go,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("insertOrderedList"),title:"רש××× ×××ספרת",children:h.jsx(wo,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>d("insertHorizontalRule"),title:"×§× ×פר××",children:h.jsx(Io,{className:"w-4 h-4"})}),h.jsx(br,{}),h.jsx(qe,{onClick:()=>{const m=window.prompt("××× ×¡ URL ×©× ×ª××× ×:");m&&d("insertImage",m)},title:"××סף ת××× ×",children:h.jsx(fs,{className:"w-4 h-4"})}),h.jsx(qe,{onClick:()=>{const m=window.prompt("××× ×¡ URL:","https://");m&&d("createLink",m)},title:"××סף ××× ×§",children:h.jsx(Fo,{className:"w-4 h-4"})})]}),h.jsx("iframe",{ref:n,className:"w-full border-0",style:{minHeight:"300px",height:"60vh",maxHeight:"80vh"},title:"×¢××¨× ×צעת ×××ר",sandbox:"allow-same-origin allow-scripts"})]})}function us(e,t){let r=e.replace(/direction\s*:\s*(rtl|ltr)/gi,`direction: ${t}`);r=r.replace(/text-align\s*:\s*right/gi,t==="ltr"?"text-align: left":"text-align: right"),t==="rtl"&&(r=r.replace(/text-align\s*:\s*left/gi,"text-align: right"));const n=t==="ltr"?[[/padding-right/gi,"__PAD_LEFT__"],[/padding-left/gi,"padding-right"],[/__PAD_LEFT__/g,"padding-left"],[/margin-right/gi,"__MAR_LEFT__"],[/margin-left/gi,"margin-right"],[/__MAR_LEFT__/g,"margin-left"],[/border-right/gi,"__BOR_LEFT__"],[/border-left/gi,"border-right"],[/__BOR_LEFT__/g,"border-left"]]:[[/padding-left/gi,"__PAD_RIGHT__"],[/padding-right/gi,"padding-left"],[/__PAD_RIGHT__/g,"padding-right"],[/margin-left/gi,"__MAR_RIGHT__"],[/margin-right/gi,"margin-left"],[/__MAR_RIGHT__/g,"margin-right"],[/border-left/gi,"__BOR_RIGHT__"],[/border-right/gi,"border-left"],[/__BOR_RIGHT__/g,"border-right"]];for(const[o,i]of n)r=r.replace(o,i);return r=r.replace(/float\s*:\s*right/gi,t==="ltr"?"__FLOAT_LEFT__":"float: right"),r=r.replace(/float\s*:\s*left/gi,t==="ltr"?"float: right":"__FLOAT_RIGHT__"),r=r.replace(/__FLOAT_LEFT__/g,"float: left"),r=r.replace(/__FLOAT_RIGHT__/g,"float: left"),r}function ey(e,t){let r=us(e,t);return r=r.replace(/\[dir=["']?(rtl|ltr)["']?\]/gi,`[dir="${t}"]`),r}function Nn(e,t){if(!e)return e;let r=e;return r=r.replace(/\sdir\s*=\s*["'](?:rtl|ltr|auto)["']/gi,` dir="${t}"`),r=r.replace(/style\s*=\s*"([^"]*)"/gi,(o,i)=>`style="${us(i,t)}"`),r=r.replace(/style\s*=\s*'([^']*)'/gi,(o,i)=>`style='${us(i,t)}'`),r=r.replace(/<style([^>]*)>([\s\S]*?)<\/style>/gi,(o,i,a)=>`<style${i}>${ey(a,t)}</style>`),/^\s*<(\w+)([^>]*\sdir\s*=\s*["'][^"']*["'])/i.test(r)||(r=`<div dir="${t}" style="direction: ${t}; text-align: ${t==="ltr"?"left":"right"};">${r}</div>`),r}function ty(e){if(!e)return"he";const t=e.replace(/<[^>]+>/g," "),r=(t.match(/[\u0590-\u05FF]/g)||[]).length,n=(t.match(/[A-Za-z]/g)||[]).length;return r>=n?"he":"en"}function ry(e){return e?e.includes("<")&&(e.includes("</")||e.includes("/>"))?e:e.replace(/^### (.*$)/gm,"<h3>$1</h3>").replace(/^## (.*$)/gm,"<h2>$1</h2>").replace(/^# (.*$)/gm,"<h1>$1</h1>").replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/^- (.*$)/gm,"<li>$1</li>").replace(/(<li>.*<\/li>\n?)+/g,t=>`<ul>${t}</ul>`).replace(/\n{2,}/g,"</p><p>").replace(/\n/g,"<br>"):""}function ny({quotes:e,onRefresh:t}){const{isViralAdmin:r,user:n}=ln(),[o,i]=ce.useState(null),[a,s]=ce.useState(""),[c,d]=ce.useState(""),[f,m]=ce.useState(""),[E,g]=ce.useState(""),[y,x]=ce.useState(!1),[v,k]=ce.useState(!1),[S,T]=ce.useState("he"),[C,A]=ce.useState(!1),[_,O]=ce.useState(!1),[M,I]=ce.useState(""),[H,te]=ce.useState("quote"),[F,W]=ce.useState(!1),[N,G]=ce.useState(""),[J,X]=ce.useState(!1),[ae,Y]=ce.useState(null),[re,K]=ce.useState(null),[L,Z]=ce.useState(null),[Q,ne]=ce.useState(null),[pe,R]=ce.useState(null),[w,z]=ce.useState(!1),[U,ie]=ce.useState([]),[B,P]=ce.useState(!1),[p,V]=ce.useState(!1),[j,l]=ce.useState([]),[u,b]=ce.useState(!1),[D,q]=ce.useState(null),$=N.trim()?e.filter(ee=>ee.business_name.toLowerCase().includes(N.toLowerCase())||ee.contact_name.toLowerCase().includes(N.toLowerCase())||ee.status.toLowerCase().includes(N.toLowerCase())):e,se=J?$:$.slice(0,5),ue=async ee=>{Y(ee),await Se.from("quotes").update({status:"deleted"}).eq("id",ee),je.success("×××¦×¢× × ×××§×"),t(),Y(null)},le=ee=>{navigator.clipboard.writeText(`https://blacksheepbi.com/quote/${ee}`),Ve({title:"××§×ש×ר ××עתק"})},me=async ee=>{await Se.from("quotes").update({status:"sent"}).eq("id",ee),je.success("×××¦×¢× ×¤×רס×× ××××× × ×ש××××!"),t()},ye=async ee=>{await Se.from("quotes").update({status:"sent",approved_at:null,approved_by_name:null,signed_at:null,signature_data:null}).eq("id",ee),je.success("×××ש×ר ××××"),t()},_e=async ee=>{var $t;i(ee),m(ee.business_name),g(ee.contact_name),k(!1);const{data:ve}=await Se.from("quotes").select("content_html, email_content, metadata").eq("id",ee.id).single(),Ie=(ve==null?void 0:ve.content_html)||"",Ge=ry((ve==null?void 0:ve.email_content)||"");s(Ie),d(Ge);const We=($t=ve==null?void 0:ve.metadata)==null?void 0:$t.lang;T(We==="en"||We==="he"?We:ty(Ie))},He=()=>{const ee=S==="he"?"en":"he";s(ve=>Nn(ve,ee==="en"?"ltr":"rtl")),d(ve=>Nn(ve,ee==="en"?"ltr":"rtl")),T(ee),je.success(ee==="en"?"Document switched to English (LTR). Click Save to persist.":"××ס×× ××××ר ××¢×ר×ת (RTL). ×××¥ ש××ר ×ש××ר×.")},St=async()=>{var Ie,Ge;if(!o||C)return;const ee=S==="he"?"en":"he";A(!0);const ve=je.loading(ee==="en"?"Translating quote to Englishâ¦":"×תר×× ×ת ×××¦×¢× ××¢×ר×תâ¦");try{await Se.from("quote_versions").insert({quote_id:o.id,content_html:a,email_content:c,version_note:`××¤× × ×ª×¨××× ×-${ee==="en"?"English":"×¢×ר×ת"}`});const[We,$t]=await Promise.all([a?Se.functions.invoke("quote-ai-chat",{body:{action:"translate",html:a,target_lang:ee,editTarget:"quote"}}):Promise.resolve({data:{html:""},error:null}),c?Se.functions.invoke("quote-ai-chat",{body:{action:"translate",html:c,target_lang:ee,editTarget:"email"}}):Promise.resolve({data:{html:""},error:null})]);if(We.error)throw We.error;if($t.error)throw $t.error;const qs=ee==="en"?"ltr":"rtl",Iu=Nn(((Ie=We.data)==null?void 0:Ie.html)||"",qs),Fu=Nn(((Ge=$t.data)==null?void 0:Ge.html)||"",qs);s(Iu),d(Fu),T(ee),je.success(ee==="en"?"Quote translated to English. Review and click Save to persist.":"×××¦×¢× ×ª×ר××× ××¢×ר×ת. ××××§ ××××¥ ש××ר ×ש××ר×.",{id:ve})}catch(We){je.error(`ש×××× ×תר×××: ${We.message||"תק×× ×× ××××¢×"}`,{id:ve})}A(!1)},mt=async()=>
215{if(o){x(!0);try{await Se.from("quote_versions").insert({quote_id:o.id,content_html:a,email_content:c,version_note:"ש×××¨× ××× ×ת"});const{data:ee}=await Se.from("quotes").select("metadata").eq("id",o.id).single(),ve={...(ee==null?void 0:ee.metadata)||{},lang:S},{error:Ie}=await Se.from("quotes").update({content_html:a,email_content:c,business_name:f,contact_name:E,metadata:ve}).eq("id",o.id);if(Ie)throw Ie;Ve({title:"×××¦×¢× ×¢×××× × ××צ×××"}),t(),i(null)}catch(ee){Ve({title:"ש×××× ×ש××ר×",description:ee.message,variant:"destructive"})}x(!1)}},zt=async()=>{if(!(!M.trim()||!o)){W(!0);try{const ee=H==="email"?c:a;await Se.from("quote_versions").insert({quote_id:o.id,content_html:a,email_content:c,version_note:`××¤× × ×¢×¨××ת AI: ${M.slice(0,50)}`});const{data:ve,error:Ie}=await Se.functions.invoke("quote-ai-chat",{body:{action:"edit",html:ee,instruction:M,editTarget:H}});if(Ie)throw Ie;const Ge=ve==null?void 0:ve.html;if(!Ge)throw new Error("×× ×תק×× HTML ××¢××××");H==="email"?d(Ge):s(Ge),I(""),je.success("×ער××× ××צע×!")}catch(ee){je.error(`ש××××: ${ee.message}`)}W(!1)}},De=async ee=>{K(ee);try{const{data:ve}=await Se.from("quotes").select("content_html, business_name, contact_name").eq("id",ee).single();if(!ve)throw new Error("×× × ×צ×× ×צע×");const{data:Ie,error:Ge}=await Se.functions.invoke("quote-ai-chat",{body:{action:"restyle",html:ve.content_html,businessName:ve.business_name,contactName:ve.contact_name}});if(Ge)throw Ge;const We=Ie==null?void 0:Ie.html;if(!We)throw new Error("×× ×תק×× HTML ××¢×צ×");await Se.from("quotes").update({content_html:We}).eq("id",ee),je.success("××¢×צ×× ×¢××××!"),t()}catch(ve){je.error(`ש×××× ××¢×צ××: ${ve.message}`)}K(null)},gr=async ee=>{Z(ee.id);try{const{data:ve}=await Se.from("quotes").select("content_html, email_content, client_logo_url, website_url").eq("id",ee.id).single();if(!ve)throw new Error("×× × ×צ×× ×צע×");const{error:Ie}=await Se.from("quotes").insert({business_name:`${ee.business_name} (×¢×תק)`,contact_name:ee.contact_name,contact_email:ee.contact_email,content_html:ve.content_html,email_content:ve.email_content,client_logo_url:ve.client_logo_url,website_url:ve.website_url,created_by:n.id});if(Ie)throw Ie;je.success("×××¦×¢× ×©××פ××!"),t()}catch(ve){je.error(ve.message)}Z(null)},Dr=async ee=>{P(!0);const{data:ve}=await Se.from("quote_versions").select("*").eq("quote_id",ee).order("created_at",{ascending:!1}).limit(20);ie(ve||[]),P(!1)},xt=ee=>{window.confirm("×ש××ר ××¨×¡× ××? ×ש×× ×××× ×× ×××××× ×××××.")&&(s(ee.content_html||a),d(ee.email_content||c),z(!1),je.success("××¨×¡× ×©××××¨× â ×××¥ ש××ר ×ש×××¨× ×¡×פ×ת"))},gn=async ee=>{q(ee),b(!0);const{data:ve}=await Se.from("quote_analytics").select("*").eq("quote_id",ee.id).order("created_at",{ascending:!1}).limit(50);l(ve||[]),b(!1),V(!0)},yi=async ee=>{try{const{data:ve}=await Se.from("quotes").select("content_html, email_content").eq("id",ee.id).single();if(!ve)return;const Ie=window.prompt("×©× ×ת×× ×ת:",ee.business_name);if(!Ie)return;await Se.from("quote_templates").insert({name:Ie,quote_type:"general",content_html:ve.content_html,email_content:ve.email_content,created_by:n.id}),je.success("× ×©×ר ×ת×× ×ת!")}catch(ve){je.error(ve.message)}},wr=ee=>ee.expires_at?new Date(ee.expires_at).getTime()<Date.now():!1,wn=ee=>{if(ee.status!=="sent"||ee.follow_up_sent)return!1;const ve=new Date(ee.created_at).getTime();return Date.now()-ve>48*60*60*1e3&&(!ee.view_count||ee.view_count===0)},yn=async ee=>{ne(ee);try{await Se.from("quotes").update({expires_at:new Date(Date.now()+30*24*60*60*1e3).toISOString()}).eq("id",ee),je.success("×××¦×¢× ××××©× ×-30 ××× × ×ספ××!"),t()}catch(ve){je.error(ve.message)}ne(null)},Qt=async ee=>{R(ee.id);const ve=je.loading("×××צר ×××× ×שפ×× ×ס××ר...");try{const{data:Ie,error:Ge}=await Se.functions.invoke("quote-to-contract",{body:{quote_id:ee.id}});if(Ge)throw Ge;const We=Ie==null?void 0:Ie.contract;if(!We)throw new Error("×× ×תק×× ×××× ××-AI");const $t=(ee.business_name||"contract").replace(/[^\p{L}\p{N}_\-]+/gu,"_").slice(0,60);await Yw(We,`××××_${$t}_${new Date().toISOString().slice(0,10)}.docx`),je.success("××××× ×××¨× ××צ×××",{id:ve})}catch(Ie){je.error(`ש×××× ××צ×רת ×××××: ${Ie.message||Ie}`,{id:ve})}R(null)};return o?h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs(Ce,{variant:"ghost",size:"sm",onClick:()=>i(null),children:[h.jsx(vo,{className:"w-4 h-4 me-1"})," ××ר×"]}),h.jsx("span",{className:"text-sm font-medium truncate max-w-[150px] sm:max-w-none",children:f})]}),h.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap w-full sm:w-auto",children:[h.jsxs(zn,{open:w,onOpenChange:ee=>{z(ee),ee&&o&&Dr(o.id)},children:[h.jsx(Uu,{asChild:!0,children:h.jsxs(Ce,{size:"sm",variant:"outline",className:"gap-1.5 h-8 text-xs",children:[h.jsx(Ks,{className:"w-3.5 h-3.5"})," ",h.jsx("span",{className:"hidden sm:inline",children:"×רס××ת"})]})}),h.jsxs($n,{className:"max-w-md",dir:"rtl",children:[h.jsx(Hn,{children:h.jsxs(Wn,{className:"flex items-center gap-2",children:[h.jsx(Ks,{className:"w-4 h-4"})," ××ס××ר××ת ×רס××ת"]})}),B?h.jsx("div",{className:"flex justify-center py-8",children:h.jsx(Me,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):U.length===0?h.jsx("p",{className:"text-center py-6 text-sm text-muted-foreground",children:"××× ×
215רס××ת ש××ר×ת"}):h.jsx(Js,{className:"max-h-[350px]",children:h.jsx("div",{className:"space-y-1",children:U.map((ee,ve)=>h.jsxs("div",{className:"flex items-center justify-between px-3 py-2 rounded-md hover:bg-muted/50 group",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:"text-sm font-medium truncate",children:ee.version_note||`××¨×¡× #${U.length-ve}`}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:new Date(ee.created_at).toLocaleString("he-IL",{day:"2-digit",month:"2-digit",year:"2-digit",hour:"2-digit",minute:"2-digit"})})]}),h.jsxs(Ce,{size:"sm",variant:"ghost",className:"h-7 gap-1 text-xs opacity-0 group-hover:opacity-100",onClick:()=>xt(ee),children:[h.jsx(Xs,{className:"w-3 h-3"})," ש××ר"]})]},ee.id))})})]})]}),h.jsxs("div",{className:"flex items-center border border-border rounded-lg overflow-hidden text-xs",children:[h.jsxs("button",{onClick:()=>k(!1),className:`px-2 sm:px-3 py-1.5 flex items-center gap-1 transition-colors ${v?"hover:bg-secondary":"bg-primary text-primary-foreground"}`,children:[h.jsx(vi,{className:"w-3 h-3"})," ",h.jsx("span",{className:"hidden sm:inline",children:"ער××× ×××"})]}),h.jsxs("button",{onClick:()=>k(!0),className:`px-2 sm:px-3 py-1.5 flex items-center gap-1 transition-colors ${v?"bg-primary text-primary-foreground":"hover:bg-secondary"}`,children:[h.jsx(Vn,{className:"w-3 h-3"})," ",h.jsx("span",{className:"hidden sm:inline",children:"×§××"})]})]}),h.jsxs("div",{className:"flex items-center border border-border rounded-lg overflow-hidden text-xs",title:"××××£ ×©×¤× / Switch language",children:[h.jsxs("button",{onClick:()=>{S!=="he"&&He()},className:`px-2 sm:px-3 py-1.5 flex items-center gap-1 transition-colors ${S==="he"?"bg-primary text-primary-foreground":"hover:bg-secondary"}`,"aria-label":"×¢×ר×ת",children:[h.jsx(ea,{className:"w-3 h-3"})," ",h.jsx("span",{className:"hidden sm:inline",children:"×¢×ר×ת"}),h.jsx("span",{className:"sm:hidden",children:"HE"})]}),h.jsxs("button",{onClick:()=>{S!=="en"&&He()},className:`px-2 sm:px-3 py-1.5 flex items-center gap-1 transition-colors ${S==="en"?"bg-primary text-primary-foreground":"hover:bg-secondary"}`,"aria-label":"English",children:[h.jsx("span",{className:"hidden sm:inline",children:"English"}),h.jsx("span",{className:"sm:hidden",children:"EN"})]})]}),h.jsxs(Ce,{size:"sm",variant:"outline",onClick:St,disabled:C||!o,className:"text-xs",title:S==="he"?"Translate full quote to English":"תר×× ×ת ×××¦×¢× ××¢×ר×ת",children:[C?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin me-1"}):h.jsx(ea,{className:"w-3.5 h-3.5 me-1"}),h.jsx("span",{className:"hidden sm:inline",children:S==="he"?"Translate â EN":"תר×× â ×¢×ר×ת"}),h.jsx("span",{className:"sm:hidden",children:S==="he"?"âEN":"âHE"})]}),h.jsxs(Ce,{size:"sm",onClick:mt,disabled:y,className:"text-xs",children:[y?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin me-1"}):h.jsx(zu,{className:"w-3.5 h-3.5 me-1"})," ",h.jsx("span",{className:"hidden sm:inline",children:"ש××ר"}),h.jsx("span",{className:"sm:hidden",children:"ש××ר"})]}),h.jsxs(Ce,{size:"sm",variant:_?"secondary":"outline",onClick:()=>O(!_),className:"text-xs",children:[h.jsx(xi,{className:"w-3.5 h-3.5 me-1"})," ",h.jsx("span",{className:"hidden sm:inline",children:"ער××× ×¢× AI"}),h.jsx("span",{className:"sm:hidden",children:"AI"})]})]})]}),_&&h.jsx(yt,{className:"border-[hsl(var(--primary))] border-2",children:h.jsxs(Bt,{className:"p-3 space-y-2",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(xi,{className:"w-4 h-4 text-primary"}),h.jsx("span",{className:"text-xs font-medium",children:"ער××× ×¢× AI"}),h.jsxs(Vi,{value:H,onValueChange:ee=>te(ee),children:[h.jsx(Gi,{className:"w-[130px] h-7 text-xs",children:h.jsx(qi,{})}),h.jsxs(Ki,{children:[h.jsx(gt,{value:"quote",children:"×צעת ×××ר"}),h.jsx(gt,{value:"email",children:"×××ª× × ××××"})]})]})]}),h.jsx(Er,{placeholder:'××ש×: "ת×ס××£ ש×ר×ת × ×××× ×¨×©×ª×ת ×-2,000 âª"',value:M,onChange:ee=>I(ee.target.value),rows:2,className:"text-sm",dir:"rtl",onKeyDown:ee=>{ee.key==="Enter"&&!ee.shiftKey&&(ee.preventDefault(),zt())}}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("p",{className:"text-[10px] text-muted-foreground",children:["×ש×× ×× ×××× ×¢× ×",H==="email"?"×××ª× ×× ××××":"×צעת ××××ר","."]}),h.jsx(Ce,{size:"sm",onClick:zt,disabled:F||!M.trim(),children:F?h.jsxs(h.Fragment,{children:[h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin me-1"})," ××¢××..."]}):h.jsxs(h.Fragment,{children:[h.jsx(en,{className:"w-3.5 h-3.5 me-1"})," ×צע"]})})]})]})}),h.jsxs(yt,{children:[h.jsx(ur,{className:"py-2 px-4",children:h.jsxs(cr,{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[h.jsx(vi,{className:"w-3.5 h-3.5"})," פר×× ×××¦×¢× (×××ר)"]})}),h.jsx(Bt,{className:"space-y-2 pb-3",children:h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2",children:[h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"×©× ×עסק"}),h.jsx(Ke,{value:f,onChange:ee=>m(ee.target.value),className:"h-8 text-sm"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"×©× ××ש קשר"}),h.jsx(Ke,{value:E,onChange:ee=>g(ee.target.value),className:"h-8 text-sm"})]})]})})]}),h.jsxs(yt,{children:[h.jsx(ur,{className:"py-2 px-4",children:h.jsxs(cr,{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[h.jsx(ds,{className:"w-3.5 h-3.5"})," ×××ª× × ×××× (×¢××× ×¨×ש××)"]})}),h.jsx(Bt,{className:"p-0",children:v?h.jsx(Er,{value:c,onChange:ee=>d(ee.target.value),rows:12,className:"text-sm border-0 rounded-none focus-visible:ring-0 resize-y font-mono",dir:S==="en"?"ltr":"rtl",placeholder:"ת××× ××××ª× ×× ×××× (HTML)..."}):h.jsx("div",{className:"p-6 bg-[#fafafa] rounded-b-xl",children:h.jsx(Qw,{content:c,onChange:ee=>d(ee),lang:S})})})]}),h.jsxs(yt,{children:[h.jsx(ur,{className:"py-2 px-4",children:h.jsxs(cr,{className:"text-xs text-muted-foreground flex items-center gap-1.5",children:[h.jsx(Tr,{className:"w-3.5 h-3.5"})," ×צעת ××××ר"]})}),h.jsx(Bt,{className:"p-0",children:v?h.jsx(Er,{value:a,onChange:ee=>s(ee.target.value),rows:20,className:"font-mono text-xs border-0 rounded-none focus-visible:ring-0 resize-y",dir:"ltr"}):h.jsx("div",{className:"rounded-b-xl overflow-auto",children:h.jsx(Jw,{content:a,onChange:s,lang:S})})})]})]}):h.jsxs("div",{className:"space-y-3",children:[h.jsx(zn,{open:p,onOpenChange:V,children:h.jsxs($n,{className:"max-w-md",dir:"rtl",children:[h.jsx(Hn,{children:h.jsxs(Wn,{className:"flex items-center gap-2",children:[h.jsx(Zs,{className:"w-4 h-4"})," ×× ××××קס â ",D==null?void 0:D.business_name]})}),u?h.jsx("div",{className:"flex justify-center py-8",children:h.jsx(Me,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):j.length===0?h.jsx("p",{className:"text-center py-6 text-sm text-muted-foreground",children:"××× × ×ª×× × ×¦×¤××× ×¢××××"}):h.jsx(Js,{className:"max-h-[350px]",children:h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"grid grid-cols-3 gap-2 text-center",children:[h.jsxs("div",{className:"bg-muted rounded-lg p-3",children:[h.jsx("p",{className:"text-2xl font-bold",children:j.filter(ee=>ee.event_type==="opened").length}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"פת×××ת"})]}),h.jsxs("div",{className:"bg-muted rounded-lg p-3",children:[h.jsx("p",{className:"text-2xl font-bold",children:(()=>{const ee=j.filter(Ie=>Ie.event_type==="time_spent");if(!ee.length)return"0";const ve=ee.reduce((Ie,Ge)=>{var We;return Ie+(((We=Ge.event_data)==null?void 0:We.seconds)||0)},0);return`${Math.round(ve/60)}×'`})()}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"××× ×©××××"})]}),h.jsxs("div",{className:"bg-muted rounded-lg p-3",children:[h.jsx("p",{className:"text-2xl font-bold",children:j.filter(ee=>{var ve;return ee.event_type==="scrolled"&&(((ve=ee.event_data)==null?void 0:ve.depth)||0)>=90}).length>0?"â":"â"}),h.jsx("p",{className:"text-[10px] text-muted-foreground",children:"× ×§×¨× ×¢× ×ס××£"})]})]}),h.jsx("div",{className:"space-y-1 mt-3",children:j.slice(0,20).map((ee,ve)=>{var Ie,Ge,We;return h.jsxs("div",{className:"flex items-center justify-between text-xs px-2 py-1.5 rounded hover:bg-muted/50",children:[h.jsx("span",{children:ee.event_type==="opened"?"ðï¸ ×¤×ª×××":ee.event_type==="scrolled"?`ð ××××× ${((Ie=ee.event_data)==null?void 0:Ie.depth)||0}%`:ee.event_type==="time_spent"?`â±ï¸ ${((Ge=ee.event_data)==null?void 0:Ge.seconds)||0}ש×`:ee.event_type==="cta_click"?`ð ${((We=ee.event_data)==null?void 0:We.cta)||"CTA"}`:ee.event_type}),h.jsx("span",{className:"text-muted-foreground",children:new Date(ee.created_at).toLocaleStr
215ing("he-IL",{hour:"2-digit",minute:"2-digit",day:"2-digit",month:"2-digit"})})]},ve)})})]})})]})}),h.jsxs("div",{className:"relative",children:[h.jsx(Jr,{className:"absolute right-3 top-2.5 w-4 h-4 text-muted-foreground"}),h.jsx(Ke,{placeholder:"××פ×ש ××¤× ×©× ×¢×¡×§, ××ש קשר ×× ×¡×××ס...",value:N,onChange:ee=>{G(ee.target.value),X(!1)},className:"pr-9"})]}),se.map(ee=>h.jsx(yt,{className:`p-3 ${wr(ee)?"border-destructive/40 opacity-70":wn(ee)?"border-orange-300 bg-orange-50/30":""}`,children:h.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[h.jsx("span",{className:"text-sm font-medium",children:ee.business_name}),h.jsx("span",{className:"text-xs text-muted-foreground",children:ee.contact_name}),h.jsx(fr,{variant:ee.status==="sent"?"default":"secondary",className:`text-[10px] ${ee.status==="sent"?"bg-green-600 text-white":""}`,children:ee.status==="draft"?"×××××":ee.status==="sent"?"פ×רס×":ee.status==="approved"?"××שר":ee.status}),wr(ee)&&h.jsxs(fr,{variant:"destructive",className:"text-[10px] gap-0.5",children:[h.jsx($u,{className:"w-3 h-3"})," ×¤× ×ª××§×£"]}),(ee.view_count??0)>0&&h.jsxs("span",{className:"text-[10px] text-muted-foreground flex items-center gap-0.5",children:[h.jsx(Vn,{className:"w-3 h-3"})," ",ee.view_count]}),wn(ee)&&h.jsxs("span",{className:"text-[10px] text-orange-600 flex items-center gap-0.5",children:[h.jsx(yo,{className:"w-3 h-3"})," ×× × ×¦×¤×ª× 48+ שע×ת"]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"text-[10px] text-muted-foreground",children:new Date(ee.created_at).toLocaleDateString("he-IL")}),ee.expires_at&&h.jsxs("span",{className:`text-[10px] ${wr(ee)?"text-destructive":"text-muted-foreground"}`,children:["· ת××§×£: ",new Date(ee.expires_at).toLocaleDateString("he-IL")]})]})]}),h.jsxs("div",{className:"flex items-center gap-0.5 shrink-0 flex-wrap",children:[wr(ee)&&h.jsxs(Ce,{variant:"outline",size:"sm",className:"h-8 gap-1 text-xs border-primary text-primary",onClick:()=>yn(ee.id),disabled:Q===ee.id,title:"××ש ×-30 ×××",children:[Q===ee.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(Xs,{className:"w-3.5 h-3.5"}),"××ש"]}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>_e(ee),title:"ער××",children:h.jsx(vi,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-primary",onClick:()=>{_e(ee),O(!0)},title:"ער××× ×¢× AI",children:h.jsx(xi,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>gr(ee),disabled:L===ee.id,title:"ש×פ×",children:L===ee.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(mc,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>gn(ee),title:"×× ××××קס",children:h.jsx(Zs,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>yi(ee),title:"ש××ר ×ת×× ×ת",children:h.jsx(gc,{className:"w-3.5 h-3.5"})}),r&&h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-[hsl(var(--primary))]",onClick:()=>De(ee.id),disabled:re===ee.id,title:"ס×××ר ×¢×צ××",children:re===ee.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(en,{className:"w-3.5 h-3.5"})}),ee.status==="draft"&&h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-green-600",onClick:()=>me(ee.id),title:"פרס×",children:h.jsx(fo,{className:"w-3.5 h-3.5"})}),ee.status==="sent"&&h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-orange-500",onClick:async()=>{await Se.from("quotes").update({status:"draft"}).eq("id",ee.id),Ve({title:"×××¦×¢× ×××××¨× ××××××"}),t()},title:"××××× ×¤×¨×¡××",children:h.jsx(Un,{className:"w-3.5 h-3.5"})}),r&&ee.status==="approved"&&h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-orange-500",onClick:()=>ye(ee.id),title:"××× ××ש×ר",children:h.jsx(Un,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>le(ee.public_token),title:"×עתק ××× ×§",children:h.jsx(Hu,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8",asChild:!0,children:h.jsx("a",{href:`/quote/${ee.public_token}`,target:"_blank",rel:"noreferrer",children:h.jsx(Wu,{className:"w-3.5 h-3.5"})})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-blue-600",onClick:()=>Qt(ee),disabled:pe===ee.id,title:"×××¨× ××××× Word (.docx)",children:pe===ee.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(Gn,{className:"w-3.5 h-3.5"})}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"h-8 w-8 text-destructive",onClick:()=>ue(ee.id),disabled:ae===ee.id,title:"×××§",children:ae===ee.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(hs,{className:"w-3.5 h-3.5"})})]})]})},ee.id)),$.length>5&&!J&&h.jsxs(Ce,{variant:"ghost",size:"sm",className:"w-full text-xs",onClick:()=>X(!0),children:["××¦× ×ת ×× ××צע×ת (",$.length,")"]}),J&&$.length>5&&h.jsx(Ce,{variant:"ghost",size:"sm",className:"w-full text-xs",onClick:()=>X(!1),children:"××¦× 5 ××ר×× ×ת ××××"}),$.length===0&&h.jsx("p",{className:"text-xs text-muted-foreground text-center py-8",children:N?"×× × ×צ×× ×צע×ת ×ת××××ת ×××פ×ש":"××× ×צע×ת ×¢××××"})]})}function iy({onUseTemplate:e}){const{user:t}
215=ln(),[r,n]=ce.useState([]),[o,i]=ce.useState(!0),[a,s]=ce.useState(""),[c,d]=ce.useState(null),[f,m]=ce.useState(null);ce.useEffect(()=>{E()},[]);const E=async()=>{i(!0);const{data:v}=await Se.from("quote_templates").select("*").order("created_at",{ascending:!1}).limit(50);n(v||[]),i(!1)},g=async v=>{m(v),await Se.from("quote_templates").delete().eq("id",v),n(k=>k.filter(S=>S.id!==v)),je.success("×ת×× ×ת × ×××§×"),m(null)},y=a.trim()?r.filter(v=>v.name.toLowerCase().includes(a.toLowerCase())||v.quote_type.toLowerCase().includes(a.toLowerCase())):r,x={marketing:"ש××××§",website:"×תר",seo:"SEO",system:"×ער×ת",general:"××××"};return h.jsxs("div",{className:"space-y-4",dir:"rtl",children:[h.jsx(zn,{open:!!c,onOpenChange:v=>{v||d(null)},children:h.jsxs($n,{className:"max-w-3xl max-h-[80vh] overflow-y-auto",dir:"rtl",children:[h.jsx(Hn,{children:h.jsxs(Wn,{className:"flex items-center gap-2",children:[h.jsx(Vn,{className:"w-4 h-4"})," ",c==null?void 0:c.name]})}),c&&h.jsxs("div",{className:"space-y-4",children:[c.email_content&&h.jsxs("div",{children:[h.jsx("p",{className:"text-xs text-muted-foreground mb-1 font-medium",children:"×××ª× × ××××:"}),h.jsx("div",{className:"bg-muted/50 rounded-lg p-4 text-sm",dangerouslySetInnerHTML:{__html:Qs.sanitize(c.email_content)}})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-xs text-muted-foreground mb-1 font-medium",children:"×צעת ×××ר:"}),h.jsx("div",{className:"bg-white border rounded-lg p-4 text-sm",dangerouslySetInnerHTML:{__html:Qs.sanitize(c.content_html)}})]}),h.jsxs(Ce,{onClick:()=>{e(c.content_html,c.email_content||""),d(null),je.success("×ת×× ×ת × ××¢× × â ער×× ××ת×× ××ש×ת")},className:"w-full",children:[h.jsx(en,{className:"w-4 h-4 me-2"})," ×שת×ש ×ת×× ×ת ×××"]})]})]})}),h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("h3",{className:"text-sm font-medium",children:"ת×× ××ת ×צע×ת ×××ר"}),h.jsxs("p",{className:"text-[10px] text-muted-foreground",children:[r.length," ת×× ××ת ש××ר×ת"]})]}),h.jsx(Ke,{placeholder:"××פ×ש ת×× ××ת...",value:a,onChange:v=>s(v.target.value)}),o?h.jsx("div",{className:"flex justify-center py-12",children:h.jsx(Me,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):y.length===0?h.jsxs("div",{className:"text-center py-12 text-sm text-muted-foreground",children:[h.jsx(Tr,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),h.jsx("p",{children:a?"×× × ×צ×× ×ª×× ××ת":"××× ×ª×× ××ת ש××ר×ת"}),h.jsx("p",{className:"text-[10px] mt-1",children:'×××¥ "ש××ר ×ת×× ×ת" ××× ××¦×¢× ×§×××ת ××× ××צ×ר ת×× ×ת'})]}):h.jsx("div",{className:"grid gap-3 sm:grid-cols-2",children:y.map(v=>h.jsx(yt,{className:"p-4 hover:shadow-md transition-shadow cursor-pointer group",onClick:()=>d(v),children:h.jsxs("div",{className:"flex items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("p",{className:"text-sm font-medium truncate",children:v.name}),h.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[h.jsx(fr,{variant:"outline",className:"text-[10px]",children:x[v.quote_type]||v.quote_type}),h.jsx("span",{className:"text-[10px] text-muted-foreground",children:new Date(v.created_at).toLocaleDateString("he-IL")})]}),h.jsxs("p",{className:"text-[10px] text-muted-foreground mt-1 line-clamp-2",children:[v.content_html.replace(/<[^>]+>/g,"").slice(0,100),"..."]})]}),h.jsx(Ce,{variant:"ghost",size:"icon",className:"shrink-0 opacity-0 group-hover:opacity-100",onClick:k=>{k.stopPropagation(),g(v.id)},children:f===v.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(hs,{className:"w-3.5 h-3.5 text-destructive"})})]})},v.id))})]})}function Ct(e){return String(e??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}function cs(e){if(!e)return"-";try{return new Date(e).toLocaleString("he-IL",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}catch{return String(e)}}function Nu(e){const t=(e.business_name||"quote").replace(/[^\p{L}\p{N}_-]+/gu,"_").replace(/^_+|_+$/g,"").slice(0,60)||"quote",r=(e.signed_at||e.approved_at||new Date().toISOString()).slice(0,10);return`×צע×_×ת×××_${t}_${r}`}function Ru(e){const t=e.signature_data?`<img src="${Ct(e.signature_data)}" alt="×ת××× ×××××××ת" style="max-width:280px;max-height:110px;display:block;margin:8px 0;" />
215`:'<div style="color:#b00;font-size:13px;">×× × ×צ×× ×ª××× ×ª ×ת××× ×©××ר×</div>';return` 216 <section style="margin-top:32px;padding:20px;border:2px solid #1a1a2e;border-radius:10px;background:#fafafa;font-family:Arial,Helvetica,sans-serif;color:#1a1a2e;"> 217 <h2 style="margin:0 0 12px;font-size:18px;">××ש×ר ×ת××× ×××××××ת</h2> 218 <table style="width:100%;border-collapse:collapse;font-size:13px;"> 219 <tr><td style="padding:4px 0;width:170px;color:#555;">×©× ×עסק</td><td style="padding:4px 0;font-weight:bold;">${Ct(e.business_name)}</td></tr> 220 <tr><td style="padding:4px 0;color:#555;">××ש קשר</td><td style="padding:4px 0;">${Ct(e.contact_name)}</td></tr> 221 ${e.contact_email?`<tr><td style="padding:4px 0;color:#555;">××××××</td><td style="padding:4px 0;" dir="ltr">${Ct(e.contact_email)}</td></tr>`:""} 222 <tr><td style="padding:4px 0;color:#555;">× ××ª× ×¢× ×××</td><td style="padding:4px 0;font-weight:bold;">${Ct(e.approved_by_name||e.contact_name)}</td></tr> 223 <tr><td style="padding:4px 0;color:#555;">ת×ר×× ××ש×ר</td><td style="padding:4px 0;">${Ct(cs(e.approved_at))}</td></tr> 224 <tr><td style="padding:4px 0;color:#555;">ת×ר×× ×ת×××</td><td style="padding:4px 0;font-weight:bold;">${Ct(cs(e.signed_at))}</td></tr> 225 ${e.approved_ip?`<tr><td style="padding:4px 0;color:#555;">×ת××ת IP</td><td style="padding:4px 0;" dir="ltr">${Ct(e.approved_ip)}</td></tr>`:""} 226 <tr><td style="padding:4px 0;color:#555;">×××× ×ס××</td><td style="padding:4px 0;font-family:monospace;font-size:11px;" dir="ltr">${Ct(e.id)}</td></tr> 227 </table> 228 <div style="margin-top:14px;"> 229 <div style="font-size:12px;color:#555;">×ת××ת ×××§××</div> 230 ${t} 231 </div> 232 <p style="margin:12px 0 0;font-size:11px;color:#777;line-height:1.6;"> 233 ×ס×× ×× ××פק ×××××××ת ××ער×ת Blacksheep BI ×××××× ×¢×תק ×ר×××× × ×©× ×צעת ××××ר ××¤× ×©×××©×¨× ×× ×ת×× ×××××××ת ×¢× ××× ×××§××. 234 </p> 235 </section>`}function ju(e){return`<!DOCTYPE html> 236<html lang="he" dir="rtl"> 237<head> 238<meta charset="utf-8" /> 239<meta name="viewport" content="width=device-width, initial-scale=1" /> 240<title>${Ct(e.business_name)} - ××¦×¢× ×ת×××</title> 241<style> 242 body { margin:0; padding:24px; background:#fff; color:#1a1a2e; font-family:Arial,Helvetica,sans-serif; } 243 .doc { max-width:820px; margin:0 auto; } 244 img { max-width:100%; } 245 table { border-collapse:collapse; } 246</style> 247</head> 248<body> 249 <div class="doc"> 250 ${e.content_html||""} 251 ${Ru(e)} 252 </div> 253</body> 254</html>`}function sy(e){const t=new Blob(["\uFEFF"+ju(e)],{type:"text/html;charset=utf-8;"}),r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=`${Nu(e)}.html`,n.click(),URL.revokeObjectURL(r)}async function ay(e){const t=document.createElement("div");t.setAttribute("dir","rtl"),t.style.cssText="position:fixed;top:0;left:-10000px;width:820px;background:#ffffff;color:#1a1a2e;padding:24px;font-family:Arial,Helvetica,sans-serif;z-index:-1;",t.innerHTML=`${e.content_html||""}${Ru(e)}`,document.body.appendChild(t);try{const r=Array.from(t.querySelectorAll("img"));await Promise.all(r.map(y=>y.complete?Promise.resolve():new Promise(x=>{y.onload=()=>x(),y.onerror=()=>x()})));const n=await wc(t,{scale:2,useCORS:!0,allowTaint:!0,backgroundColor:"#ffffff",logging:!1,windowWidth:t.scrollWidth,windowHeight:t.scrollHeight}),o=210,i=297,a=8,s=o-a*2,c=i-a*2,d=s*(n.height/n.width),f=n.height/d,m=c*f,E=Math.max(1,Math.ceil(n.height/m)),g=new yc("p","mm","a4");for(let y=0;y<E;y++){y>0&&g.addPage(),g.setFillColor(255,255,255),g.rect(0,0,o,i,"F");const x=Math.round(y*m),v=Math.min(Math.round(m),n.height-x);if(v<=0)continue;const k=document.createElement("canvas");k.width=n.width,k.height=v;const S=k.getContext("2d");if(!S)throw new Error("canvas context unavailable");S.fillStyle="#ffffff",S.fillRect(0,0,k.width,k.height),S.drawImage(n,0,x,n.width,v,0,0,n.width,v),g.addImage(k.toDataURL("image/png"),"PNG",a,a,s,v/f)}g.save(`${Nu(e)}.pdf`)}finally{t.remove()}}const oy="id, business_name, contact_name, contact_email, content_html, signature_data, signed_at, approved_at, approved_by_name, approved_ip, public_token";function ly(){const[e,t]=ce.useState([]),[r,n]=ce.useState(!0),[o,i]=ce.useState(null),[a,s]=ce.useState(""),[c,d]=ce.useState(null),[f,m]=ce.useState(null),E=ce.useCallback(async()=>{n(!0),i(null);const{data:v,error:k}=await Se.from("quotes").select(oy).not("signed_at","is",null).neq("status","deleted").order("signed_at",{ascending:!1}).limit(300);k?(i(k.message),t([])):t(v||[]),n(!1)},[]);ce.useEffect(()=>{E()},[E]);const g=ce.useMemo(()=>{const v=a.trim().toLowerCase();return v?e.filter(k=>{var S,T;return((S=k.business_name)==null?void 0:S.toLowerCase().includes(v))||((T=k.
254contact_name)==null?void 0:T.toLowerCase().includes(v))||(k.approved_by_name||"").toLowerCase().includes(v)||(k.contact_email||"").toLowerCase().includes(v)}):e},[e,a]),y=async v=>{d(v.id);const k=je.loading("×××צר ×§×××¥ PDF ×ת××...");try{await ay(v),je.success("××§×××¥ ×××¨× ××צ×××",{id:k})}catch(S){je.error(`ש×××× ××פקת ×-PDF: ${S.message}`,{id:k})}d(null)},x=v=>{try{sy(v),je.success("×§×××¥ HTML ×ת×× ××ר×")}catch(k){je.error(`ש×××× ×××ר××: ${k.message}`)}};return h.jsxs("div",{className:"space-y-4",dir:"rtl",children:[h.jsxs(yt,{children:[h.jsx(ur,{className:"pb-3",children:h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[h.jsxs(cr,{className:"text-sm flex items-center gap-2",children:[h.jsx(Gn,{className:"w-4 h-4"})," ×צע×ת ×ת×××ת",h.jsx(fr,{variant:"secondary",className:"text-[10px]",children:e.length})]}),h.jsxs(Ce,{size:"sm",variant:"outline",className:"gap-1.5 h-8 text-xs",onClick:E,disabled:r,children:[r?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(Vu,{className:"w-3.5 h-3.5"}),"×¨×¢× ×"]})]})}),h.jsxs(Bt,{className:"space-y-3",children:[h.jsxs("div",{className:"relative",children:[h.jsx(Jr,{className:"w-3.5 h-3.5 absolute top-1/2 -translate-y-1/2 start-3 text-muted-foreground"}),h.jsx(Ke,{className:"ps-8 h-9 text-sm",placeholder:"××פ×ש ××¤× ×¢×¡×§, ××ש קשר ×× ××ת×...",value:a,onChange:v=>s(v.target.value)})]}),o&&h.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/10 p-3 text-xs",children:[h.jsx(yo,{className:"w-4 h-4 text-destructive shrink-0"}),h.jsxs("span",{children:["ש×××× ×××¢×× ×ª ××צע×ת ××ת×××ת: ",o]})]}),r?h.jsx("div",{className:"flex justify-center py-10",children:h.jsx(Me,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):g.length===0?h.jsx("p",{className:"text-center py-10 text-sm text-muted-foreground",children:e.length===0?"×¢×××× ××× ×צע×ת ×ת×××ת":"×× × ×צ×× ×ª×צ××ת ×××פ×ש"}):h.jsx("div",{className:"space-y-2",children:g.map(v=>h.jsxs("div",{className:"rounded-lg border border-border p-3 space-y-2",children:[h.jsxs("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("p",{className:"text-sm font-medium truncate",children:v.business_name}),h.jsxs("p",{className:"text-[11px] text-muted-foreground truncate",children:["× ××ª× ×¢×´× ",v.approved_by_name||v.contact_name," · ",cs(v.signed_at)]})]}),v.signature_data?h.jsx("img",{src:v.signature_data,alt:"×ת×××",className:"h-9 max-w-[120px] object-contain bg-white rounded border border-border p-0.5"}):h.jsx(fr,{variant:"outline",className:"text-[10px]",children:"××× ×ª××× ×ª ×ת×××"})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[h.jsxs(Ce,{size:"sm",variant:"outline",className:"h-8 gap-1.5 text-xs",onClick:()=>m(v),children:[h.jsx(Vn,{className:"w-3.5 h-3.5"})," תצ×××"]}),h.jsxs(Ce,{size:"sm",className:"h-8 gap-1.5 text-xs",onClick:()=>y(v),disabled:c===v.id,children:[c===v.id?h.jsx(Me,{className:"w-3.5 h-3.5 animate-spin"}):h.jsx(Gu,{className:"w-3.5 h-3.5"}),"PDF ×ת××"]}),h.jsxs(Ce,{size:"sm",variant:"outline",className:"h-8 gap-1.5 text-xs",onClick:()=>x(v),children:[h.jsx(Tr,{className:"w-3.5 h-3.5"})," HTML"]})]})]},v.id))})]})]}),h.jsx(zn,{open:!!f,onOpenChange:v=>!v&&m(null),children:h.jsxs($n,{className:"max-w-3xl h-[80vh] flex flex-col",dir:"rtl",children:[h.jsx(Hn,{children:h.jsxs(Wn,{className:"flex items-center gap-2 text-sm",children:[h.jsx(Gn,{className:"w-4 h-4"})," ",f==null?void 0:f.business_name," - ×ס×× ×ת××"]})}),f&&h.jsx("iframe",{title:"signed-quote-preview",className:"flex-1 w-full rounded-md border border-border bg-white",sandbox:"",srcDoc:ju(f)})]})})]})}function $y(){const{user:e}=ln(),{t}=qu(),[r,n]=ce.useState("knowledge"),[o,i]=ce.useState([]),[a,s]=ce.useState([]),[c,d]=ce.useState(""),[f,m]=ce.useState(""),[E,g]=ce.useState(null),[y,x]=ce.useState([]),[v,k]=ce.useState(""),[S,T]=ce.useState(!1),C=ce.useRef(null);ce.useEffect(()=>{A(),_()},[]),ce.useEffect(()=>{var H;(H=C.current)==null||H.scrollIntoView({behavior:"smooth"})},[y]);const A=async()=>{const{data:H}=await Se.from("quote_knowledge").select("*").order("created_at",{ascending:!1});i(H||[])},_=async()=>{const{data:H}=await Se.from("quotes").select("id, business_name, contact_name, contact_email, status, public_token, created_at, expires_at, view_count, last_viewed_at, follow_up_sent").neq("status","deleted").order("created_at",{ascending:!1}).limit(100);s(H||[])},O=async()=>{var te,F,W,N;if(!v.trim()||S)return;const H={role:"user",content:v};x(G=>[...G,H]),k(""),T(!0);try{const G=await fetch("https://ecrgkarlfnflbtpqsmun.supabase.co/functions/v1/quote-ai-chat",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${(te=(await Se.auth.getSession()).data.session)==null?void 0:te.access_token}`},body:JSON.stringify({messages:[...y,H]})});if(!G.ok||!G.body)throw new Error("Stream failed");const J=G.body.getReader(),X=new TextDecoder;let ae="",Y="";for(;;){const{done:re,value:K}=await J.read();if(re)break;ae+=X.decode(K,{stream:!0});let L;for(;(L=ae.indexOf(` 255`))!==-1;){let Z=ae.slice(0,L);if(ae=ae.slice(L+1),Z.endsWith("\r")&&(Z=Z.slice(0,-1)),!Z.startsWith("data: "))continue;const Q=Z.slice(6).trim();if(Q==="[DONE]")break;try{const pe=(N=(W=(F=JSON.parse(Q).choices)==null?void 0:F[0])==null?void 0:W.delta)==null?void 0:N.content;pe&&(Y+=pe,x(R=>{const w=R[R.length-1];return(w==null?void 0:w.role)==="assistant"?R.map((z,U)=>U===R.length-1?{...z,content:Y}:z):[...R,{role:"assistant",content:Y}]}))}catch{}}}}catch(G){Ve({title:"ש××××",description:G.message,variant:"destructive"})}T(!1)},M=H=>{d(H.salesContext),m(H.websiteUrl),g(H.logoUrl),n("generate")},I=(H,te)=>{(async()=>{const F=window.prompt("×©× ×עסק:","");F&&(await Se.from("quotes").insert({business_name:F,contact_name:"â",content_html:H,email_content:te,created_by:e.id}),_(),n("history"))})()};return h.jsxs("div",{className:"p-4 md:p-6 space-y-4 max-w-6xl mx-auto",dir:"rtl",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl gradient-brand flex items-center justify-center",children:h.jsx(Tr,{className:"w-5 h-5 text-primary-foreground"})}),h.jsxs("div",{children:[h.jsx("h1",{className:"text-xl font-bold",children:"××× × ×צע×ת ×××ר"}),h.jsx("p",{className:"text-xs text-muted-foreground",children:"×××, צ×ר ×שתף ×צע×ת ×××ר ×קצ××¢××ת"})]})]}),h.jsxs(Ku,{value:r,onValueChange:n,className:"space-y-4",children:[h.jsxs(Xu,{className:"flex-wrap h-auto gap-1 p-1",children:[h.jsxs(Jt,{value:"knowledge",className:"gap-1 text-xs",children:[h.jsx(Ys,{className:"w-3.5 h-3.5"})," ",h.jsx("span",{className:"hidden sm:inline",children:"××× 4 -"})," ×××¢"]}),h.jsxs(Jt,{value:"scan",className:"gap-1 text-xs",children:[h.jsx(po,{className:"w-3.5 h-3.5"})," סר××§×"]}),h.jsxs(Jt,{value:"chat",className:"gap-1 text-xs",children:[h.jsx(ds,{className:"w-3.5 h-3.5"})," AI"]}),h.jsxs(Jt,{value:"generate",className:"gap-1 text-xs",children:[h.jsx(en,{className:"w-3.5 h-3.5"})," ×צ×ר×"]}),h.jsxs(Jt,{value:"templates",className:"gap-1 text-xs",children:[h.jsx(vc,{className:"w-3.5 h-3.5"})," ת×× ××ת"]}),h.jsxs(Jt,{value:"history",className:"gap-1 text-xs",children:[h.jsx(Tr,{className:"w-3.5 h-3.5"})," ××ס××ר××"]}),h.jsxs(Jt,{value:"signed",className:"gap-1 text-xs",children:[h.jsx(Gn,{className:"w-3.5 h-3.5"})," ×ת×××ת"]})]}),h.jsx(er,{value:"knowledge",children:h.jsx(xc,{knowledge:o,onRefresh:A})}),h.jsx(er,{value:"scan",children:h.jsx(bc,{onApplyScan:M})}),h.jsx(er,{value:"chat",className:"space-y-3",children:h.jsxs(yt,{className:"h-[500px] flex flex-col",children:[h.jsxs(Bt,{className:"flex-1 overflow-y-auto p-4 space-y-3",children:[y.length===0&&h.jsxs("div",{className:"text-center text-muted-foreground text-xs py-12",children:[h.jsx(Ys,{className:"w-8 h-8 mx-auto mb-2 opacity-50"}),"ש××× ×¢× ×-AI ××× ×××× ×××ª× ×¢× ×¡×× ×× ×צע×ת ××××ר ש××"]}),y.map((H,te)=>h.jsx("div",{className:`flex ${H.role==="user"?"justify-end":"justify-start"}`,children:h.jsx("div",{className:`max-w-[80%] rounded-xl px-3 py-2 text-sm whitespace-pre-wrap ${H.role==="user"?"bg-primary text-primary-foreground":"bg-muted"}`,children:H.content})},te)),h.jsx("div",{ref:C})]}),h.jsxs("div",{className:"border-t border-border p-3 flex gap-2",children:[h.jsx(Ke,{placeholder:"×ת×× ××××¢×...",value:v,onCh
255ange:H=>k(H.target.value),onKeyDown:H=>H.key==="Enter"&&!H.shiftKey&&O(),disabled:S}),h.jsx(Ce,{onClick:O,disabled:S||!v.trim(),size:"icon",children:S?h.jsx(Me,{className:"w-4 h-4 animate-spin"}):h.jsx(Zu,{className:"w-4 h-4"})})]})]})}),h.jsx(er,{value:"generate",children:h.jsx(qd,{prefillSalesContext:c,prefillWebsiteUrl:f,prefillLogoUrl:E,onQuoteCreated:_})}),h.jsx(er,{value:"templates",children:h.jsx(iy,{onUseTemplate:I})}),h.jsx(er,{value:"history",children:h.jsx(ny,{quotes:a,onRefresh:_})}),h.jsx(er,{value:"signed",children:h.jsx(ly,{})})]})]})}export{$y as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.