@c3labsbr/vuetify-elements 1.16.0 → 1.16.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/components/atoms/CInput/CInput.vue.d.ts +66 -43
  2. package/dist/components/atoms/CInput/CInput.vue.d.ts.map +1 -1
  3. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts +3570 -270
  4. package/dist/components/atoms/CInput/CInputNumber.vue.d.ts.map +1 -1
  5. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts +27 -16
  6. package/dist/components/atoms/CInput/CInputSelect.vue.d.ts.map +1 -1
  7. package/dist/components/atoms/CInput/CInputText.vue.d.ts +31 -20
  8. package/dist/components/atoms/CInput/CInputText.vue.d.ts.map +1 -1
  9. package/dist/components/atoms/CInput/CMaskInput.vue.d.ts +1681 -0
  10. package/dist/components/atoms/CInput/CMaskInput.vue.d.ts.map +1 -0
  11. package/dist/components/atoms/CInput/props.d.ts +13 -10
  12. package/dist/components/atoms/CInput/props.d.ts.map +1 -1
  13. package/dist/components/molecules/ColorPickerOptions.vue.d.ts +18 -0
  14. package/dist/components/molecules/ColorPickerOptions.vue.d.ts.map +1 -0
  15. package/dist/components/molecules/MultipleSearchAutocomplete.vue.d.ts +15 -0
  16. package/dist/components/molecules/MultipleSearchAutocomplete.vue.d.ts.map +1 -0
  17. package/dist/components/molecules/PhoneField.vue.d.ts +16 -0
  18. package/dist/components/molecules/PhoneField.vue.d.ts.map +1 -0
  19. package/dist/components/molecules/SearchAutocomplete.vue.d.ts +34 -0
  20. package/dist/components/molecules/SearchAutocomplete.vue.d.ts.map +1 -0
  21. package/dist/components/organisms/FormFields.vue.d.ts +2 -0
  22. package/dist/components/organisms/FormFields.vue.d.ts.map +1 -1
  23. package/dist/components/organisms/GenericDataTable.vue.d.ts +1 -0
  24. package/dist/components/organisms/GenericDataTable.vue.d.ts.map +1 -1
  25. package/dist/components/organisms/TableCell.vue.d.ts +1 -0
  26. package/dist/components/organisms/TableCell.vue.d.ts.map +1 -1
  27. package/dist/components/organisms/__tests__/TableCell.spec.d.ts +2 -0
  28. package/dist/components/organisms/__tests__/TableCell.spec.d.ts.map +1 -0
  29. package/dist/components/templates/GenericDeleteDialog.vue.d.ts +95 -0
  30. package/dist/components/templates/GenericDeleteDialog.vue.d.ts.map +1 -0
  31. package/dist/components/templates/GenericForm.vue.d.ts +16 -2
  32. package/dist/components/templates/GenericForm.vue.d.ts.map +1 -1
  33. package/dist/components/templates/GenericFormFlat.vue.d.ts +16 -2
  34. package/dist/components/templates/GenericFormFlat.vue.d.ts.map +1 -1
  35. package/dist/components/templates/GenericTable.vue.d.ts +1 -0
  36. package/dist/components/templates/GenericTable.vue.d.ts.map +1 -1
  37. package/dist/components/templates/form-props.d.ts +7 -1
  38. package/dist/components/templates/form-props.d.ts.map +1 -1
  39. package/dist/composables/useAsyncAutocomplete.d.ts +19 -0
  40. package/dist/composables/useAsyncAutocomplete.d.ts.map +1 -0
  41. package/dist/helpers/debounce.d.ts +2 -0
  42. package/dist/helpers/debounce.d.ts.map +1 -0
  43. package/dist/helpers/masks.d.ts.map +1 -1
  44. package/dist/html2canvas.esm-B5qzocYs.cjs +5 -0
  45. package/dist/html2canvas.esm-BWVIUcAF.js +4802 -0
  46. package/dist/index-B8BHvXMN.cjs +110 -0
  47. package/dist/index-BKkCcn3r.js +50744 -0
  48. package/dist/index.d.ts +9 -0
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.es-Awb9H3-j.cjs +5 -0
  51. package/dist/index.es-D79CRK6w.js +6660 -0
  52. package/dist/interfaces/__tests__/genericContracts.spec.d.ts +2 -0
  53. package/dist/interfaces/__tests__/genericContracts.spec.d.ts.map +1 -0
  54. package/dist/interfaces/genericForm.d.ts +21 -4
  55. package/dist/interfaces/genericForm.d.ts.map +1 -1
  56. package/dist/interfaces/genericTable.d.ts +2 -2
  57. package/dist/interfaces/genericTable.d.ts.map +1 -1
  58. package/dist/plugin.d.ts.map +1 -1
  59. package/dist/purify.es-BrrCv_hE.js +864 -0
  60. package/dist/purify.es-DCvfCVUO.cjs +3 -0
  61. package/dist/vuetify-elements.cjs.js +1 -4
  62. package/dist/vuetify-elements.css +1 -5
  63. package/dist/vuetify-elements.es.js +17 -15018
  64. package/package.json +20 -15
@@ -0,0 +1,110 @@
1
+ "use strict";const y=require("vue");function Da(t){y.warn(`Vuetify: ${t}`)}function Iu(t){y.warn(`Vuetify error: ${t}`)}function l2(t,i){i=Array.isArray(i)?i.slice(0,-1).map(e=>`'${e}'`).join(", ")+` or '${i.at(-1)}'`:`'${i}'`,y.warn(`[Vuetify UPGRADE] '${t}' is deprecated, use ${i} instead.`)}const nn=typeof window<"u",Wf=nn&&"IntersectionObserver"in window,Dm=nn&&"matchMedia"in window&&typeof window.matchMedia=="function",co=()=>Dm&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function hh(t,i,e){u2(t,i),i.set(t,e)}function u2(t,i){if(i.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ph(t,i,e){return t.set(Vm(t,i),e),e}function aa(t,i){return t.get(Vm(t,i))}function Vm(t,i,e){if(typeof t=="function"?t===i:t.has(i))return arguments.length<3?i:e;throw new TypeError("Private element is not present on this object")}function zm(t,i,e){const s=i.length-1;if(s<0)return t===void 0?e:t;for(let c=0;c<s;c++){if(t==null)return e;t=t[i[c]]}return t==null||t[i[s]]===void 0?e:t[i[s]]}function Jo(t,i,e){return t==null||!i||typeof i!="string"?e:t[i]!==void 0?t[i]:(i=i.replace(/\[(\w+)\]/g,".$1"),i=i.replace(/^\./,""),zm(t,i.split("."),e))}function En(t,i,e){if(i===!0)return t===void 0?e:t;if(i==null||typeof i=="boolean")return e;if(t!==Object(t)){if(typeof i!="function")return e;const c=i(t,e);return typeof c>"u"?e:c}if(typeof i=="string")return Jo(t,i,e);if(Array.isArray(i))return zm(t,i,e);if(typeof i!="function")return e;const s=i(t,e);return typeof s>"u"?e:s}function Hl(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.from({length:t},(e,s)=>i+s)}function St(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"px";if(t==null||t==="")return;const e=Number(t);return isNaN(e)?String(t):isFinite(e)?`${e}${i}`:void 0}function mu(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}function mh(t){let i;return t!==null&&typeof t=="object"&&((i=Object.getPrototypeOf(t))===Object.prototype||i===null)}function Um(t){if(t&&"$el"in t){const i=t.$el;return i?.nodeType===Node.TEXT_NODE?i.nextElementSibling:i}return t}const gh=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function Cc(t,i){return i.every(e=>t.hasOwnProperty(e))}function _s(t,i){const e={};for(const s of i)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}function vh(t,i,e){const s=Object.create(null),c=Object.create(null);for(const r in t)i.some(o=>o instanceof RegExp?o.test(r):o===r)?s[r]=t[r]:c[r]=t[r];return[s,c]}function Dn(t,i){const e={...t};return i.forEach(s=>delete e[s]),e}const $m=/^on[^a-z]/,Gf=t=>$m.test(t),c2=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function ll(t){const[i,e]=vh(t,[$m]),s=Dn(i,c2),[c,r]=vh(e,["class","style","id",/^data-/]);return Object.assign(c,i),Object.assign(r,s),[c,r]}function rn(t){return t==null?[]:Array.isArray(t)?t:[t]}function f2(t,i){let e=0;const s=function(){for(var c=arguments.length,r=new Array(c),o=0;o<c;o++)r[o]=arguments[o];clearTimeout(e),e=setTimeout(()=>t(...r),y.unref(i))};return s.clear=()=>{clearTimeout(e)},s.immediate=t,s}function un(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return Math.max(i,Math.min(e,t))}function bh(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0";return t+e.repeat(Math.max(0,i-t.length))}function d2(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const e=[];let s=0;for(;s<t.length;)e.push(t.substr(s,i)),s+=i;return e}function yh(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;if(t<i)return`${t} B`;const e=i===1024?["Ki","Mi","Gi"]:["k","M","G"];let s=-1;for(;Math.abs(t)>=i&&s<e.length-1;)t/=i,++s;return`${t.toFixed(1)} ${e[s]}B`}function ua(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;const s={};for(const c in t)s[c]=t[c];for(const c in i){const r=t[c],o=i[c];if(mh(r)&&mh(o)){s[c]=ua(r,o,e);continue}if(e&&Array.isArray(r)&&Array.isArray(o)){s[c]=e(r,o);continue}s[c]=o}return s}function qm(t){return t.map(i=>i.type===y.Fragment?qm(i.children):i).flat()}function gs(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(gs.cache.has(t))return gs.cache.get(t);const i=t.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return gs.cache.set(t,i),i}gs.cache=new Map;function qo(t,i){if(!i||typeof i!="object")return[];if(Array.isArray(i))return i.map(e=>qo(t,e)).flat(1);if(i.suspense)return qo(t,i.ssContent);if(Array.isArray(i.children))return i.children.map(e=>qo(t,e)).flat(1);if(i.component){if(Object.getOwnPropertyDescriptor(i.component.provides,t))return[i.component];if(i.component.subTree)return qo(t,i.component.subTree).flat(1)}return[]}var Ks=new WeakMap,hs=new WeakMap;class h2{constructor(i){hh(this,Ks,[]),hh(this,hs,0),this.size=i}get isFull(){return aa(Ks,this).length===this.size}push(i){aa(Ks,this)[aa(hs,this)]=i,ph(hs,this,(aa(hs,this)+1)%this.size)}values(){return aa(Ks,this).slice(aa(hs,this)).concat(aa(Ks,this).slice(0,aa(hs,this)))}clear(){aa(Ks,this).length=0,ph(hs,this,0)}}function Xf(t){const i=y.reactive({});y.watchEffect(()=>{const s=t();for(const c in s)i[c]=s[c]},{flush:"sync"});const e={};for(const s in i)e[s]=y.toRef(()=>i[s]);return e}function gu(t,i){return t.includes(i)}function Hm(t){return t[2].toLowerCase()+t.slice(3)}const vn=()=>[Function,Array];function wh(t,i){return i="on"+y.capitalize(i),!!(t[i]||t[`${i}Once`]||t[`${i}Capture`]||t[`${i}OnceCapture`]||t[`${i}CaptureOnce`])}function ul(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),s=1;s<i;s++)e[s-1]=arguments[s];if(Array.isArray(t))for(const c of t)c(...e);else typeof t=="function"&&t(...e)}function vs(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const e=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(c=>`${c}${i?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let s;try{s=[...t.querySelectorAll(e)]}catch(c){return Iu(String(c)),[]}return s.filter(c=>!c.closest("[inert]")).filter(c=>!!c.offsetParent||c.getClientRects().length>0).filter(c=>!c.parentElement?.closest("details:not([open])")||c.tagName==="SUMMARY"&&c.parentElement?.tagName==="DETAILS")}function Wm(t,i,e){let s,c=t.indexOf(document.activeElement);const r=i==="next"?1:-1;do c+=r,s=t[c];while((!s||s.offsetParent==null||!(e?.(s)??!0))&&c<t.length&&c>=0);return s}function Wo(t,i){const e=vs(t);if(i==null)(t===document.activeElement||!t.contains(document.activeElement))&&e[0]?.focus();else if(i==="first")e[0]?.focus();else if(i==="last")e.at(-1)?.focus();else if(typeof i=="number")e[i]?.focus();else{const s=Wm(e,i);s?s.focus():Wo(t,i==="next"?"first":"last")}}function Wl(t){return t==null||typeof t=="string"&&t.trim()===""}function p2(){}function fo(t,i){if(!(nn&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${i})`)))return null;try{return!!t&&t.matches(i)}catch{return null}}function Kf(t){return t.some(i=>y.isVNode(i)?i.type===y.Comment?!1:i.type!==y.Fragment||Kf(i.children):!0)?t:null}function m2(t,i){if(!nn||t===0)return i(),()=>{};const e=window.setTimeout(i,t);return()=>window.clearTimeout(e)}function g2(t,i){const e=t.clientX,s=t.clientY,c=i.getBoundingClientRect(),r=c.left,o=c.top,l=c.right,a=c.bottom;return e>=r&&e<=l&&s>=o&&s<=a}function hf(){const t=y.shallowRef(),i=e=>{t.value=e};return Object.defineProperty(i,"value",{enumerable:!0,get:()=>t.value,set:e=>t.value=e}),Object.defineProperty(i,"el",{enumerable:!0,get:()=>Um(t.value)}),i}function vu(t){const i=t.key.length===1,e=!t.ctrlKey&&!t.metaKey&&!t.altKey;return i&&e}function za(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="bigint"}function pf(t){return"\\^$*+?.()|{}[]".includes(t)?`\\${t}`:t}function v2(t,i,e){const s=new RegExp(`[\\d\\-${pf(e)}]`),c=t.split("").filter(o=>s.test(o)).filter((o,l,a)=>l===0&&/[-]/.test(o)||o===e&&l===a.indexOf(o)||/\d/.test(o)).join("");if(i===0)return c.split(e)[0];const r=new RegExp(`${pf(e)}\\d`);if(i!==null&&r.test(c)){const o=c.split(e);return[o[0],o[1].substring(0,i)].join(e)}return c}function b2(t){const i={};for(const e in t)i[y.camelize(e)]=t[e];return i}function y2(t){const i=["checked","disabled"];return Object.fromEntries(Object.entries(t).filter(e=>{let[s,c]=e;return i.includes(s)?!!c:c!==void 0}))}const Gm=["top","bottom"],w2=["start","end","left","right"];function mf(t,i){let[e,s]=t.split(" ");return s||(s=gu(Gm,e)?"start":gu(w2,e)?"top":"center"),{side:xh(e,i),align:xh(s,i)}}function xh(t,i){return t==="start"?i?"right":"left":t==="end"?i?"left":"right":t}function Ac(t){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.side],align:t.align}}function Nc(t){return{side:t.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[t.align]}}function _h(t){return{side:t.align,align:t.side}}function Sh(t){return gu(Gm,t.side)?"y":"x"}class pi{constructor(i){const e=document.body.currentCSSZoom??1,s=i instanceof Element,c=s?1+(1-e)/e:1,{x:r,y:o,width:l,height:a}=s?i.getBoundingClientRect():i;this.x=r*c,this.y=o*c,this.width=l*c,this.height=a*c}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function kh(t,i){return{x:{before:Math.max(0,i.left-t.left),after:Math.max(0,t.right-i.right)},y:{before:Math.max(0,i.top-t.top),after:Math.max(0,t.bottom-i.bottom)}}}function Xm(t){if(Array.isArray(t)){const i=document.body.currentCSSZoom??1,e=1+(1-i)/i;return new pi({x:t[0]*e,y:t[1]*e,width:0*e,height:0*e})}else return new pi(t)}function x2(t){if(t===document.documentElement)if(visualViewport){const i=document.body.currentCSSZoom??1;return new pi({x:visualViewport.scale>1?0:visualViewport.offsetLeft,y:visualViewport.scale>1?0:visualViewport.offsetTop,width:visualViewport.width*visualViewport.scale/i,height:visualViewport.height*visualViewport.scale/i})}else return new pi({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight});else return new pi(t)}function Yf(t){const i=new pi(t),e=getComputedStyle(t),s=e.transform;if(s){let c,r,o,l,a;if(s.startsWith("matrix3d("))c=s.slice(9,-1).split(/, /),r=Number(c[0]),o=Number(c[5]),l=Number(c[12]),a=Number(c[13]);else if(s.startsWith("matrix("))c=s.slice(7,-1).split(/, /),r=Number(c[0]),o=Number(c[3]),l=Number(c[4]),a=Number(c[5]);else return new pi(i);const n=e.transformOrigin,u=i.x-l-(1-r)*parseFloat(n),h=i.y-a-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?i.width/r:t.offsetWidth+1,f=o?i.height/o:t.offsetHeight+1;return new pi({x:u,y:h,width:d,height:f})}else return new pi(i)}function Fa(t,i,e){if(typeof t.animate>"u")return{finished:Promise.resolve()};let s;try{s=t.animate(i,e)}catch{return{finished:Promise.resolve()}}return typeof s.finished>"u"&&(s.finished=new Promise(c=>{s.onfinish=()=>{c(s)}})),s}const lu=new WeakMap;function _2(t,i){Object.keys(i).forEach(e=>{if(Gf(e)){const s=Hm(e),c=lu.get(t);if(i[e]==null)c?.forEach(r=>{const[o,l]=r;o===s&&(t.removeEventListener(s,l),c.delete(r))});else if(!c||![...c].some(r=>r[0]===s&&r[1]===i[e])){t.addEventListener(s,i[e]);const r=c||new Set;r.add([s,i[e]]),lu.has(t)||lu.set(t,r)}}else i[e]==null?t.removeAttribute(e):t.setAttribute(e,i[e])})}function S2(t,i){Object.keys(i).forEach(e=>{if(Gf(e)){const s=Hm(e),c=lu.get(t);c?.forEach(r=>{const[o,l]=r;o===s&&(t.removeEventListener(s,l),c.delete(r))})}else t.removeAttribute(e)})}const Ys=2.4,Ch=.2126729,Ah=.7151522,Nh=.072175,k2=.55,C2=.58,A2=.57,N2=.62,Gl=.03,Eh=1.45,E2=5e-4,T2=1.25,P2=1.25,Th=.078,Ph=12.82051282051282,Xl=.06,Mh=.001;function Ih(t,i){const e=(t.r/255)**Ys,s=(t.g/255)**Ys,c=(t.b/255)**Ys,r=(i.r/255)**Ys,o=(i.g/255)**Ys,l=(i.b/255)**Ys;let a=e*Ch+s*Ah+c*Nh,n=r*Ch+o*Ah+l*Nh;if(a<=Gl&&(a+=(Gl-a)**Eh),n<=Gl&&(n+=(Gl-n)**Eh),Math.abs(n-a)<E2)return 0;let u;if(n>a){const h=(n**k2-a**C2)*T2;u=h<Mh?0:h<Th?h-h*Ph*Xl:h-Xl}else{const h=(n**N2-a**A2)*P2;u=h>-Mh?0:h>-Th?h-h*Ph*Xl:h+Xl}return u*100}function gf(t){return!!t&&/^(#|var\(--|(rgb|hsl)a?\()/.test(t)}function M2(t){return gf(t)&&!/^((rgb|hsl)a?\()?var\(--/.test(t)}const Rh=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,I2={rgb:(t,i,e,s)=>({r:t,g:i,b:e,a:s}),rgba:(t,i,e,s)=>({r:t,g:i,b:e,a:s}),hsl:(t,i,e,s)=>Lh({h:t,s:i,l:e,a:s}),hsla:(t,i,e,s)=>Lh({h:t,s:i,l:e,a:s}),hsv:(t,i,e,s)=>Qo({h:t,s:i,v:e,a:s}),hsva:(t,i,e,s)=>Qo({h:t,s:i,v:e,a:s})};function Ho(t){if(typeof t=="number")return(isNaN(t)||t<0||t>16777215)&&Da(`'${t}' is not a valid hex color`),{r:(t&16711680)>>16,g:(t&65280)>>8,b:t&255};if(typeof t=="string"&&Rh.test(t)){const{groups:i}=t.match(Rh),{fn:e,values:s}=i,c=s.split(/,\s*|\s*\/\s*|\s+/).map((r,o)=>r.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(e)?parseFloat(r)/100:parseFloat(r));return I2[e](...c)}else if(typeof t=="string"){let i=t.startsWith("#")?t.slice(1):t;[3,4].includes(i.length)?i=i.split("").map(s=>s+s).join(""):[6,8].includes(i.length)||Da(`'${t}' is not a valid hex(a) color`);const e=parseInt(i,16);return(isNaN(e)||e<0||e>4294967295)&&Da(`'${t}' is not a valid hex(a) color`),R2(i)}else if(typeof t=="object"){if(Cc(t,["r","g","b"]))return t;if(Cc(t,["h","s","l"]))return Qo(Km(t));if(Cc(t,["h","s","v"]))return Qo(t)}throw new TypeError(`Invalid color: ${t==null?t:String(t)||t.constructor.name}
2
+ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function Qo(t){const{h:i,s:e,v:s,a:c}=t,r=l=>{const a=(l+i/60)%6;return s-s*e*Math.max(Math.min(a,4-a,1),0)},o=[r(5),r(3),r(1)].map(l=>Math.round(l*255));return{r:o[0],g:o[1],b:o[2],a:c}}function Lh(t){return Qo(Km(t))}function Km(t){const{h:i,s:e,l:s,a:c}=t,r=s+e*Math.min(s,1-s),o=r===0?0:2-2*s/r;return{h:i,s:o,v:r,a:c}}function R2(t){t=L2(t);let[i,e,s,c]=d2(t,2).map(r=>parseInt(r,16));return c=c===void 0?c:c/255,{r:i,g:e,b:s,a:c}}function L2(t){return t.startsWith("#")&&(t=t.slice(1)),t=t.replace(/([^0-9a-f])/gi,"F"),(t.length===3||t.length===4)&&(t=t.split("").map(i=>i+i).join("")),t.length!==6&&(t=bh(bh(t,6),8,"F")),t}function O2(t){const i=Math.abs(Ih(Ho(0),Ho(t)));return Math.abs(Ih(Ho(16777215),Ho(t)))>Math.min(i,50)?"#fff":"#000"}function Ze(t,i){return e=>Object.keys(t).reduce((s,c)=>{const o=typeof t[c]=="object"&&t[c]!=null&&!Array.isArray(t[c])?t[c]:{type:t[c]};return e&&c in e?s[c]={...o,default:e[c]}:s[c]=o,i&&!s[c].source&&(s[c].source=i),s},{})}const or=Ze({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function Jr(t,i){const e=y.getCurrentInstance();if(!e)throw new Error(`[Vuetify] ${t} must be called from inside a setup function`);return e}function Hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"composables";const i=Jr(t).type;return gs(i?.aliasName||i?.name)}function F2(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr("injectSelf");const{provides:e}=i;if(e&&t in e)return e[t]}const bu=Symbol.for("vuetify:defaults");function Zf(){const t=y.inject(bu);if(!t)throw new Error("[Vuetify] Could not find defaults instance");return t}function da(t,i){const e=Zf(),s=y.ref(t),c=y.computed(()=>{if(y.unref(i?.disabled))return e.value;const o=y.unref(i?.scoped),l=y.unref(i?.reset),a=y.unref(i?.root);if(s.value==null&&!(o||l||a))return e.value;let n=ua(s.value,{prev:e.value});if(o)return n;if(l||a){const u=Number(l||1/0);for(let h=0;h<=u&&!(!n||!("prev"in n));h++)n=n.prev;return n&&typeof a=="string"&&a in n&&(n=ua(ua(n,{prev:n}),n[a])),n}return n.prev?ua(n.prev,n):n});return y.provide(bu,c),c}function B2(t,i){return t.props&&(typeof t.props[i]<"u"||typeof t.props[gs(i)]<"u")}function j2(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zf();const s=Jr("useDefaults");if(i=i??s.type.name??s.type.__name,!i)throw new Error("[Vuetify] Could not determine component name");const c=y.computed(()=>e.value?.[t._as??i]),r=new Proxy(t,{get(a,n){const u=Reflect.get(a,n);if(n==="class"||n==="style")return[c.value?.[n],u].filter(f=>f!=null);if(B2(s.vnode,n))return u;const h=c.value?.[n];if(h!==void 0)return h;const d=e.value?.global?.[n];return d!==void 0?d:u}}),o=y.shallowRef();y.watchEffect(()=>{if(c.value){const a=Object.entries(c.value).filter(n=>{let[u]=n;return u.startsWith(u[0].toUpperCase())});o.value=a.length?Object.fromEntries(a):void 0}else o.value=void 0});function l(){const a=F2(bu,s);y.provide(bu,y.computed(()=>o.value?ua(a?.value??{},o.value):a?.value))}return{props:r,provideSubDefaults:l}}function cl(t){if(t._setup=t._setup??t.setup,!t.name)return Da("The component is missing an explicit name, unable to generate default prop value"),t;if(t._setup){t.props=Ze(t.props??{},t.name)();const i=Object.keys(t.props).filter(e=>e!=="class"&&e!=="style");t.filterProps=function(s){return _s(s,i)},t.props._as=String,t.setup=function(s,c){const r=Zf();if(!r.value)return t._setup(s,c);const{props:o,provideSubDefaults:l}=j2(s,s._as??t.name,r),a=t._setup(o,c);return l(),a}}return t}function xt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return i=>(t?cl:y.defineComponent)(i)}function D2(t,i){return i.props=t,i}function Jf(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"div",e=arguments.length>2?arguments[2]:void 0;return xt()({name:e??y.capitalize(y.camelize(t.replace(/__/g,"-"))),props:{tag:{type:String,default:i},...or()},setup(s,c){let{slots:r}=c;return()=>y.h(s.tag,{class:[t,s.class],style:s.style},r.default?.())}})}function V2(t,i,e,s){if(!e||za(t)||za(i))return;const c=e.get(t);if(c)c.set(i,s);else{const r=new WeakMap;r.set(i,s),e.set(t,r)}}function z2(t,i,e){if(!e||za(t)||za(i))return null;const s=e.get(t)?.get(i);if(typeof s=="boolean")return s;const c=e.get(i)?.get(t);return typeof c=="boolean"?c:null}function Bn(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakMap;if(t===i)return!0;if(t instanceof Date&&i instanceof Date&&t.getTime()!==i.getTime()||t!==Object(t)||i!==Object(i))return!1;const s=Object.keys(t);if(s.length!==Object.keys(i).length)return!1;const c=z2(t,i,e);return c||(V2(t,i,e,!0),s.every(r=>Bn(t[r],i[r],e)))}function Ym(t){if(typeof t.getRootNode!="function"){for(;t.parentNode;)t=t.parentNode;return t!==document?null:document}const i=t.getRootNode();return i!==document&&i.getRootNode({composed:!0})!==document?null:i}const yu="cubic-bezier(0.4, 0, 0.2, 1)",Oh="cubic-bezier(0.0, 0, 0.2, 1)",Fh="cubic-bezier(0.4, 0, 1, 1)",U2={linear:t=>t,easeInQuad:t=>t**2,easeOutQuad:t=>t*(2-t),easeInOutQuad:t=>t<.5?2*t**2:-1+(4-2*t)*t,easeInCubic:t=>t**3,easeOutCubic:t=>--t**3+1,easeInOutCubic:t=>t<.5?4*t**3:(t-1)*(2*t-2)*(2*t-2)+1,easeInQuart:t=>t**4,easeOutQuart:t=>1- --t**4,easeInOutQuart:t=>t<.5?8*t**4:1-8*--t**4,easeInQuint:t=>t**5,easeOutQuint:t=>1+--t**5,easeInOutQuint:t=>t<.5?16*t**5:1+16*--t**5,instant:t=>1};function Bh(t,i,e){return Object.keys(t).filter(s=>Gf(s)&&s.endsWith(i)).reduce((s,c)=>(s[c.slice(0,-i.length)]=r=>ul(t[c],r,e(r)),s),{})}function Zm(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(;t;){if(i?$2(t):Qf(t))return t;t=t.parentElement}return document.scrollingElement}function wu(t,i){const e=[];if(i&&t&&!i.contains(t))return e;for(;t&&(Qf(t)&&e.push(t),t!==i);)t=t.parentElement;return e}function Qf(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const i=window.getComputedStyle(t),e=i.overflowY==="scroll"||i.overflowY==="auto"&&t.scrollHeight>t.clientHeight,s=i.overflowX==="scroll"||i.overflowX==="auto"&&t.scrollWidth>t.clientWidth;return e||s}function $2(t){if(!t||t.nodeType!==Node.ELEMENT_NODE)return!1;const i=window.getComputedStyle(t);return["scroll","auto"].includes(i.overflowY)}function q2(t){for(;t;){if(window.getComputedStyle(t).position==="fixed")return!0;t=t.offsetParent}return!1}function jt(t){const i=Jr("useRender");i.render=t}function H2(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{leading:!0,trailing:!0},s=0,c=0,r=!1,o=0;function l(){clearTimeout(s),r=!1,o=0}const a=function(){for(var n=arguments.length,u=new Array(n),h=0;h<n;h++)u[h]=arguments[h];clearTimeout(s);const d=Date.now();o||(o=d);const f=d-Math.max(o,c);function m(){c=Date.now(),s=setTimeout(l,i),t(...u)}r?f>=i?m():e.trailing&&(s=setTimeout(m,i-f)):(r=!0,e.leading&&m())};return a.clear=l,a.immediate=t,a}const Xa=Ze({border:[Boolean,Number,String]},"border");function Ts(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();return{borderClasses:y.computed(()=>{const s=t.border;return s===!0||s===""?`${i}--border`:typeof s=="string"||s===0?String(s).split(" ").map(c=>`border-${c}`):[]})}}const W2=[null,"default","comfortable","compact"],Vn=Ze({density:{type:String,default:"default",validator:t=>W2.includes(t)}},"density");function Wi(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();return{densityClasses:y.toRef(()=>`${i}--density-${t.density}`)}}const Ps=Ze({elevation:{type:[Number,String],validator(t){const i=parseInt(t);return!isNaN(i)&&i>=0&&i<=24}}},"elevation");function bo(t){return{elevationClasses:y.toRef(()=>{const e=y.isRef(t)?t.value:t.elevation;return e==null?[]:[`elevation-${e}`]})}}const Ai=Ze({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function Gi(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();return{roundedClasses:y.computed(()=>{const s=y.isRef(t)?t.value:t.rounded,c=y.isRef(t)?!1:t.tile,r=[];if(c||s===!1)r.push("rounded-0");else if(s===!0||s==="")r.push(`${i}--rounded`);else if(typeof s=="string"||s===0)for(const o of String(s).split(" "))r.push(`rounded-${o}`);return r})}}const Vr=Ze({tag:{type:[String,Object,Function],default:"div"}},"tag"),vf=Symbol.for("vuetify:theme"),cn=Ze({theme:String},"theme");function Pn(t){Jr("provideTheme");const i=y.inject(vf,null);if(!i)throw new Error("Could not find Vuetify theme injection");const e=y.toRef(()=>t.theme??i.name.value),s=y.toRef(()=>i.themes.value[e.value]),c=y.toRef(()=>i.isDisabled?void 0:`${i.prefix}theme--${e.value}`),r={...i,name:e,current:s,themeClasses:c};return y.provide(vf,r),r}function G2(){Jr("useTheme");const t=y.inject(vf,null);if(!t)throw new Error("Could not find Vuetify theme injection");return t}function ed(t){return Xf(()=>{const{class:i,style:e}=X2(t);return{colorClasses:i,colorStyles:e}})}function $i(t){const{colorClasses:i,colorStyles:e}=ed(()=>({text:y.toValue(t)}));return{textColorClasses:i,textColorStyles:e}}function fa(t){const{colorClasses:i,colorStyles:e}=ed(()=>({background:y.toValue(t)}));return{backgroundColorClasses:i,backgroundColorStyles:e}}function X2(t){const i=y.toValue(t),e=[],s={};if(i.background)if(gf(i.background)){if(s.backgroundColor=i.background,!i.text&&M2(i.background)){const c=Ho(i.background);if(c.a==null||c.a===1){const r=O2(c);s.color=r,s.caretColor=r}}}else e.push(`bg-${i.background}`);return i.text&&(gf(i.text)?(s.color=i.text,s.caretColor=i.text):e.push(`text-${i.text}`)),{class:e,style:s}}const K2=["elevated","flat","tonal","outlined","text","plain"];function fl(t,i){return y.createElementVNode(y.Fragment,null,[t&&y.createElementVNode("span",{key:"overlay",class:y.normalizeClass(`${i}__overlay`)},null),y.createElementVNode("span",{key:"underlay",class:y.normalizeClass(`${i}__underlay`)},null)])}const ga=Ze({color:String,variant:{type:String,default:"elevated",validator:t=>K2.includes(t)}},"variant");function dl(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();const e=y.toRef(()=>{const{variant:r}=y.toValue(t);return`${i}--variant-${r}`}),{colorClasses:s,colorStyles:c}=ed(()=>{const{variant:r,color:o}=y.toValue(t);return{[["elevated","flat"].includes(r)?"background":"text"]:o}});return{colorClasses:s,colorStyles:c,variantClasses:e}}const Jm=Ze({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...Xa(),...or(),...Vn(),...Ps(),...Ai(),...Vr(),...cn(),...ga()},"VBtnGroup"),jh=xt()({name:"VBtnGroup",props:Jm(),setup(t,i){let{slots:e}=i;const{themeClasses:s}=Pn(t),{densityClasses:c}=Wi(t),{borderClasses:r}=Ts(t),{elevationClasses:o}=bo(t),{roundedClasses:l}=Gi(t);da({VBtn:{height:y.toRef(()=>t.direction==="horizontal"?"auto":null),baseColor:y.toRef(()=>t.baseColor),color:y.toRef(()=>t.color),density:y.toRef(()=>t.density),flat:!0,variant:y.toRef(()=>t.variant)}}),jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-btn-group",`v-btn-group--${t.direction}`,{"v-btn-group--divided":t.divided},s.value,r.value,c.value,o.value,l.value,t.class]),style:y.normalizeStyle(t.style)},e))}});function Ua(t,i){let e;function s(){e=y.effectScope(),e.run(()=>i.length?i(()=>{e?.stop(),s()}):i())}y.watch(t,c=>{c&&!e?s():c||(e?.stop(),e=void 0)},{immediate:!0}),y.onScopeDispose(()=>{e?.stop()})}function cr(t,i,e){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:h=>h,c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:h=>h;const r=Jr("useProxiedModel"),o=y.ref(t[i]!==void 0?t[i]:e),l=gs(i),n=l!==i?y.computed(()=>(t[i],!!((r.vnode.props?.hasOwnProperty(i)||r.vnode.props?.hasOwnProperty(l))&&(r.vnode.props?.hasOwnProperty(`onUpdate:${i}`)||r.vnode.props?.hasOwnProperty(`onUpdate:${l}`))))):y.computed(()=>(t[i],!!(r.vnode.props?.hasOwnProperty(i)&&r.vnode.props?.hasOwnProperty(`onUpdate:${i}`))));Ua(()=>!n.value,()=>{y.watch(()=>t[i],h=>{o.value=h})});const u=y.computed({get(){const h=t[i];return s(n.value?h:o.value)},set(h){const d=c(h),f=y.toRaw(n.value?t[i]:o.value);f===d||s(f)===h||(o.value=d,r?.emit(`update:${i}`,d))}});return Object.defineProperty(u,"externalValue",{get:()=>n.value?t[i]:o.value}),u}const td=Ze({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Qm=Ze({value:null,disabled:Boolean,selectedClass:String},"group-item");function bf(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const s=Jr("useGroupItem");if(!s)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const c=y.useId();y.provide(Symbol.for(`${i.description}:id`),c);const r=y.inject(i,null);if(!r){if(!e)return r;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${i.description}`)}const o=y.toRef(()=>t.value),l=y.computed(()=>!!(r.disabled.value||t.disabled));function a(){r?.register({id:c,value:o,disabled:l},s)}function n(){r?.unregister(c)}a(),y.onBeforeUnmount(()=>n());const u=y.computed(()=>r.isSelected(c)),h=y.computed(()=>r.items.value[0].id===c),d=y.computed(()=>r.items.value[r.items.value.length-1].id===c),f=y.computed(()=>u.value&&[r.selectedClass.value,t.selectedClass]);return y.watch(u,m=>{s.emit("group:selected",{value:m})},{flush:"sync"}),{id:c,isSelected:u,isFirst:h,isLast:d,toggle:()=>r.select(c,!u.value),select:m=>r.select(c,m),selectedClass:f,value:o,disabled:l,group:r,register:a,unregister:n}}function rd(t,i){let e=!1;const s=y.reactive([]),c=cr(t,"modelValue",[],d=>d===void 0?[]:e0(s,d===null?[null]:rn(d)),d=>{const f=Z2(s,d);return t.multiple?f:f[0]}),r=Jr("useGroup");function o(d,f){const m=d,g=Symbol.for(`${i.description}:id`),v=qo(g,r?.vnode).indexOf(f);y.unref(m.value)===void 0&&(m.value=v,m.useIndexAsValue=!0),v>-1?s.splice(v,0,m):s.push(m)}function l(d){if(e)return;a();const f=s.findIndex(m=>m.id===d);s.splice(f,1)}function a(){const d=s.find(f=>!f.disabled);d&&t.mandatory==="force"&&!c.value.length&&(c.value=[d.id])}y.onMounted(()=>{a()}),y.onBeforeUnmount(()=>{e=!0}),y.onUpdated(()=>{for(let d=0;d<s.length;d++)s[d].useIndexAsValue&&(s[d].value=d)});function n(d,f){const m=s.find(g=>g.id===d);if(!(f&&m?.disabled))if(t.multiple){const g=c.value.slice(),p=g.findIndex(b=>b===d),v=~p;if(f=f??!v,v&&t.mandatory&&g.length<=1||!v&&t.max!=null&&g.length+1>t.max)return;p<0&&f?g.push(d):p>=0&&!f&&g.splice(p,1),c.value=g}else{const g=c.value.includes(d);if(t.mandatory&&g||!g&&!f)return;c.value=f??!g?[d]:[]}}function u(d){if(t.multiple&&Da('This method is not supported when using "multiple" prop'),c.value.length){const f=c.value[0],m=s.findIndex(v=>v.id===f);let g=(m+d)%s.length,p=s[g];for(;p.disabled&&g!==m;)g=(g+d)%s.length,p=s[g];if(p.disabled)return;c.value=[s[g].id]}else{const f=s.find(m=>!m.disabled);f&&(c.value=[f.id])}}const h={register:o,unregister:l,selected:c,select:n,disabled:y.toRef(()=>t.disabled),prev:()=>u(s.length-1),next:()=>u(1),isSelected:d=>c.value.includes(d),selectedClass:y.toRef(()=>t.selectedClass),items:y.toRef(()=>s),getItemIndex:d=>Y2(s,d)};return y.provide(i,h),h}function Y2(t,i){const e=e0(t,[i]);return e.length?t.findIndex(s=>s.id===e[0]):-1}function e0(t,i){const e=[];return i.forEach(s=>{const c=t.find(o=>Bn(s,o.value)),r=t[s];c?.value!==void 0?e.push(c.id):r?.useIndexAsValue&&e.push(r.id)}),e}function Z2(t,i){const e=[];return i.forEach(s=>{const c=t.findIndex(r=>r.id===s);if(~c){const r=t[c];e.push(r.value!==void 0?r.value:c)}}),e}const t0=Symbol.for("vuetify:v-btn-toggle"),J2=Ze({...Jm(),...td()},"VBtnToggle");xt()({name:"VBtnToggle",props:J2(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const{isSelected:s,next:c,prev:r,select:o,selected:l}=rd(t,t0);return jt(()=>{const a=jh.filterProps(t);return y.createVNode(jh,y.mergeProps({class:["v-btn-toggle",t.class]},a,{style:t.style}),{default:()=>[e.default?.({isSelected:s,next:c,prev:r,select:o,selected:l})]})}),{next:c,prev:r,select:o}}});const Q2=Ze({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),qr=xt(!1)({name:"VDefaultsProvider",props:Q2(),setup(t,i){let{slots:e}=i;const{defaults:s,disabled:c,reset:r,root:o,scoped:l}=y.toRefs(t);return da(s,{reset:r,root:o,scoped:l,disabled:c}),()=>e.default?.()}}),$t=[String,Function,Object,Array],eb=Symbol.for("vuetify:icons"),Ru=Ze({icon:{type:$t},tag:{type:[String,Object,Function],required:!0}},"icon"),Dh=xt()({name:"VComponentIcon",props:Ru(),setup(t,i){let{slots:e}=i;return()=>{const s=t.icon;return y.createVNode(t.tag,null,{default:()=>[t.icon?y.createVNode(s,null,null):e.default?.()]})}}}),tb=cl({name:"VSvgIcon",inheritAttrs:!1,props:Ru(),setup(t,i){let{attrs:e}=i;return()=>y.createVNode(t.tag,y.mergeProps(e,{style:null}),{default:()=>[y.createElementVNode("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(t.icon)?t.icon.map(s=>Array.isArray(s)?y.createElementVNode("path",{d:s[0],"fill-opacity":s[1]},null):y.createElementVNode("path",{d:s},null)):y.createElementVNode("path",{d:t.icon},null)])]})}});cl({name:"VLigatureIcon",props:Ru(),setup(t){return()=>y.createVNode(t.tag,null,{default:()=>[t.icon]})}});cl({name:"VClassIcon",props:Ru(),setup(t){return()=>y.createVNode(t.tag,{class:y.normalizeClass(t.icon)},null)}});const rb=t=>{const i=y.inject(eb);if(!i)throw new Error("Missing Vuetify Icons provide!");return{iconData:y.computed(()=>{const s=y.toValue(t);if(!s)return{component:Dh};let c=s;if(typeof c=="string"&&(c=c.trim(),c.startsWith("$")&&(c=i.aliases?.[c.slice(1)])),c||Da(`Could not find aliased icon "${s}"`),Array.isArray(c))return{component:tb,icon:c};if(typeof c!="string")return{component:Dh,icon:c};const r=Object.keys(i.sets).find(a=>typeof c=="string"&&c.startsWith(`${a}:`)),o=r?c.slice(r.length+1):c;return{component:i.sets[r??i.defaultSet].component,icon:o}})}},nb=["x-small","small","default","large","x-large"],yo=Ze({size:{type:[String,Number],default:"default"}},"size");function hl(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();return Xf(()=>{const e=t.size;let s,c;return gu(nb,e)?s=`${i}--size-${e}`:e&&(c={width:St(e),height:St(e)}),{sizeClasses:s,sizeStyles:c}})}const ib=Ze({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:$t,opacity:[String,Number],...or(),...yo(),...Vr({tag:"i"}),...cn()},"VIcon"),nr=xt()({name:"VIcon",props:ib(),setup(t,i){let{attrs:e,slots:s}=i;const c=y.shallowRef(),{themeClasses:r}=G2(),{iconData:o}=rb(()=>c.value||t.icon),{sizeClasses:l}=hl(t),{textColorClasses:a,textColorStyles:n}=$i(()=>t.color);return jt(()=>{const u=s.default?.();u&&(c.value=qm(u).filter(d=>d.type===y.Text&&d.children&&typeof d.children=="string")[0]?.children);const h=!!(e.onClick||e.onClickOnce);return y.createVNode(o.value.component,{tag:t.tag,icon:o.value.icon,class:y.normalizeClass(["v-icon","notranslate",r.value,l.value,a.value,{"v-icon--clickable":h,"v-icon--disabled":t.disabled,"v-icon--start":t.start,"v-icon--end":t.end},t.class]),style:y.normalizeStyle([{"--v-icon-opacity":t.opacity},l.value?void 0:{fontSize:St(t.size),height:St(t.size),width:St(t.size)},n.value,t.style]),role:h?"button":void 0,"aria-hidden":!h,tabindex:h?t.disabled?-1:0:void 0},{default:()=>[u]})}),{}}});function r0(t,i){const e=y.ref(),s=y.shallowRef(!1);if(Wf){const c=new IntersectionObserver(r=>{s.value=!!r.find(o=>o.isIntersecting)},i);y.onScopeDispose(()=>{c.disconnect()}),y.watch(e,(r,o)=>{o&&(c.unobserve(o),s.value=!1),r&&c.observe(r)},{flush:"post"})}return{intersectionRef:e,isIntersecting:s}}function Ss(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"content";const e=hf(),s=y.ref();if(nn){const c=new ResizeObserver(r=>{t?.(r,c),r.length&&(i==="content"?s.value=r[0].contentRect:s.value=r[0].target.getBoundingClientRect())});y.onBeforeUnmount(()=>{c.disconnect()}),y.watch(()=>e.el,(r,o)=>{o&&(c.unobserve(o),s.value=void 0),r&&c.observe(r)},{flush:"post"})}return{resizeRef:e,contentRect:y.readonly(s)}}const ab=Ze({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...or(),...yo(),...Vr({tag:"div"}),...cn()},"VProgressCircular"),nd=xt()({name:"VProgressCircular",props:ab(),setup(t,i){let{slots:e}=i;const s=20,c=2*Math.PI*s,r=y.ref(),{themeClasses:o}=Pn(t),{sizeClasses:l,sizeStyles:a}=hl(t),{textColorClasses:n,textColorStyles:u}=$i(()=>t.color),{textColorClasses:h,textColorStyles:d}=$i(()=>t.bgColor),{intersectionRef:f,isIntersecting:m}=r0(),{resizeRef:g,contentRect:p}=Ss(),v=y.toRef(()=>un(parseFloat(t.modelValue),0,100)),b=y.toRef(()=>Number(t.width)),x=y.toRef(()=>a.value?Number(t.size):p.value?p.value.width:Math.max(b.value,32)),A=y.toRef(()=>s/(1-b.value/x.value)*2),M=y.toRef(()=>b.value/x.value*A.value),V=y.toRef(()=>{const R=(100-v.value)/100*c;return t.rounded&&v.value>0&&v.value<100?St(Math.min(c-.01,R+M.value)):St(R)}),W=y.computed(()=>{const R=Number(t.rotate);return t.rounded?R+M.value/2/c*360:R});return y.watchEffect(()=>{f.value=r.value,g.value=r.value}),jt(()=>y.createVNode(t.tag,{ref:r,class:y.normalizeClass(["v-progress-circular",{"v-progress-circular--indeterminate":!!t.indeterminate,"v-progress-circular--visible":m.value,"v-progress-circular--disable-shrink":t.indeterminate&&(t.indeterminate==="disable-shrink"||co())},o.value,l.value,n.value,t.class]),style:y.normalizeStyle([a.value,u.value,t.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":t.indeterminate?void 0:v.value},{default:()=>[y.createElementVNode("svg",{style:{transform:`rotate(calc(-90deg + ${W.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${A.value} ${A.value}`},[y.createElementVNode("circle",{class:y.normalizeClass(["v-progress-circular__underlay",h.value]),style:y.normalizeStyle(d.value),fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":M.value,"stroke-dasharray":c,"stroke-dashoffset":0},null),y.createElementVNode("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:s,"stroke-width":M.value,"stroke-dasharray":c,"stroke-dashoffset":V.value,"stroke-linecap":t.rounded?"round":void 0},null)]),e.default&&y.createElementVNode("div",{class:"v-progress-circular__content"},[e.default({value:v.value})])]})),{}}}),Ka=Ze({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function Ya(t){return{dimensionStyles:y.computed(()=>{const e={},s=St(t.height),c=St(t.maxHeight),r=St(t.maxWidth),o=St(t.minHeight),l=St(t.minWidth),a=St(t.width);return s!=null&&(e.height=s),c!=null&&(e.maxHeight=c),r!=null&&(e.maxWidth=r),o!=null&&(e.minHeight=o),l!=null&&(e.minWidth=l),a!=null&&(e.width=a),e})}}const n0=Symbol.for("vuetify:locale");function vi(){const t=y.inject(n0);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");return t}function va(){const t=y.inject(n0);if(!t)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:t.isRtl,rtlClasses:t.rtlClasses}}const Vh={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},id=Ze({location:String},"location");function ad(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2?arguments[2]:void 0;const{isRtl:s}=va();return{locationStyles:y.computed(()=>{if(!t.location)return{};const{side:r,align:o}=mf(t.location.split(" ").length>1?t.location:`${t.location} center`,s.value);function l(n){return e?e(n):0}const a={};return r!=="center"&&(i?a[Vh[r]]=`calc(100% - ${l(r)}px)`:a[r]=0),o!=="center"?i?a[Vh[o]]=`calc(100% - ${l(o)}px)`:a[o]=0:(r==="center"?a.top=a.left="50%":a[{top:"left",bottom:"left",left:"top",right:"top"}[r]]="50%",a.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[r]),a})}}const sb=Ze({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function ob(t,i){const e=y.toRef(()=>!!t.chunkCount||!!t.chunkWidth),s=y.computed(()=>{const l=y.toValue(i);if(!l)return 0;if(!t.chunkCount)return Number(t.chunkWidth);const a=Number(t.chunkCount);return(l-Number(t.chunkGap)*(a-1))/a}),c=y.toRef(()=>Number(t.chunkGap)),r=y.computed(()=>{if(!e.value)return{};const l=St(c.value),a=St(s.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${a}, transparent ${a}, transparent)`,maskSize:`calc(${a} + ${l}) 100%`}});function o(l){const a=y.toValue(i);if(!a)return l;const n=100*c.value/a,u=100*(s.value+c.value)/a,h=Math.floor((l+n)/u);return un(0,h*u-n/2,100)}return{hasChunks:e,chunksMaskStyles:r,snapValueToChunk:o}}const lb=Ze({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...sb(),...or(),...id({location:"top"}),...Ai(),...Vr(),...cn()},"VProgressLinear"),ub=xt()({name:"VProgressLinear",props:lb(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const s=y.ref(),c=cr(t,"modelValue"),{isRtl:r,rtlClasses:o}=va(),{themeClasses:l}=Pn(t),{locationStyles:a}=ad(t),{textColorClasses:n,textColorStyles:u}=$i(()=>t.color),{backgroundColorClasses:h,backgroundColorStyles:d}=fa(()=>t.bgColor||t.color),{backgroundColorClasses:f,backgroundColorStyles:m}=fa(()=>t.bufferColor||t.bgColor||t.color),{backgroundColorClasses:g,backgroundColorStyles:p}=fa(()=>t.color),{roundedClasses:v}=Gi(t),{intersectionRef:b,isIntersecting:x}=r0(),A=y.computed(()=>parseFloat(t.max)),M=y.computed(()=>parseFloat(t.height)),V=y.computed(()=>un(parseFloat(t.bufferValue)/A.value*100,0,100)),W=y.computed(()=>un(parseFloat(c.value)/A.value*100,0,100)),R=y.computed(()=>r.value!==t.reverse),F=y.computed(()=>t.indeterminate?"fade-transition":"slide-x-transition"),$=y.shallowRef(0),{hasChunks:z,chunksMaskStyles:D,snapValueToChunk:N}=ob(t,$);Ua(z,()=>{const{resizeRef:S}=Ss(_=>$.value=_[0].contentRect.width);y.watchEffect(()=>S.value=s.value)});const E=y.computed(()=>z.value?N(V.value):V.value),C=y.computed(()=>z.value?N(W.value):W.value);function w(S){if(!b.value)return;const{left:_,right:k,width:T}=b.value.getBoundingClientRect(),j=R.value?T-S.clientX+(k-T):S.clientX-_;c.value=Math.round(j/T*A.value)}return y.watchEffect(()=>{b.value=s.value}),jt(()=>y.createVNode(t.tag,{ref:s,class:y.normalizeClass(["v-progress-linear",{"v-progress-linear--absolute":t.absolute,"v-progress-linear--active":t.active&&x.value,"v-progress-linear--reverse":R.value,"v-progress-linear--rounded":t.rounded,"v-progress-linear--rounded-bar":t.roundedBar,"v-progress-linear--striped":t.striped,"v-progress-linear--clickable":t.clickable},v.value,l.value,o.value,t.class]),style:y.normalizeStyle([{bottom:t.location==="bottom"?0:void 0,top:t.location==="top"?0:void 0,height:t.active?St(M.value):0,"--v-progress-linear-height":St(M.value),...t.absolute?a.value:{}},D.value,t.style]),role:"progressbar","aria-hidden":t.active?"false":"true","aria-valuemin":"0","aria-valuemax":t.max,"aria-valuenow":t.indeterminate?void 0:Math.min(parseFloat(c.value),A.value),onClick:t.clickable&&w},{default:()=>[t.stream&&y.createElementVNode("div",{key:"stream",class:y.normalizeClass(["v-progress-linear__stream",n.value]),style:{...u.value,[R.value?"left":"right"]:St(-M.value),borderTop:`${St(M.value/2)} dotted`,opacity:parseFloat(t.bufferOpacity),top:`calc(50% - ${St(M.value/4)})`,width:St(100-V.value,"%"),"--v-progress-linear-stream-to":St(M.value*(R.value?1:-1))}},null),y.createElementVNode("div",{class:y.normalizeClass(["v-progress-linear__background",h.value]),style:y.normalizeStyle([d.value,{opacity:parseFloat(t.bgOpacity),width:t.stream?0:void 0}])},null),y.createElementVNode("div",{class:y.normalizeClass(["v-progress-linear__buffer",f.value]),style:y.normalizeStyle([m.value,{opacity:parseFloat(t.bufferOpacity),width:St(E.value,"%")}])},null),y.createVNode(y.Transition,{name:F.value},{default:()=>[t.indeterminate?y.createElementVNode("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map(S=>y.createElementVNode("div",{key:S,class:y.normalizeClass(["v-progress-linear__indeterminate",S,g.value]),style:y.normalizeStyle(p.value)},null))]):y.createElementVNode("div",{class:y.normalizeClass(["v-progress-linear__determinate",g.value]),style:y.normalizeStyle([p.value,{width:St(C.value,"%")}])},null)]}),e.default&&y.createElementVNode("div",{class:"v-progress-linear__content"},[e.default({value:W.value,buffer:V.value})])]})),{}}}),Lu=Ze({loading:[Boolean,String]},"loader");function pl(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();return{loaderClasses:y.toRef(()=>({[`${i}--loading`]:t.loading}))}}function Ou(t,i){let{slots:e}=i;return y.createElementVNode("div",{class:y.normalizeClass(`${t.name}__loader`)},[e.default?.({color:t.color,isActive:t.active})||y.createVNode(ub,{absolute:t.absolute,active:t.active,color:t.color,height:"2",indeterminate:!0},null)])}const cb=["static","relative","fixed","absolute","sticky"],i0=Ze({position:{type:String,validator:t=>cb.includes(t)}},"position");function a0(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();return{positionClasses:y.toRef(()=>t.position?`${i}--${t.position}`:void 0)}}function fb(){const t=Jr("useRoute");return y.computed(()=>t?.proxy?.$route)}function db(){return Jr("useRouter")?.proxy?.$router}function Fu(t,i){const e=y.resolveDynamicComponent("RouterLink"),s=y.toRef(()=>!!(t.href||t.to)),c=y.computed(()=>s?.value||wh(i,"click")||wh(t,"click"));if(typeof e=="string"||!("useLink"in e)){const h=y.toRef(()=>t.href);return{isLink:s,isRouterLink:y.toRef(()=>!1),isClickable:c,href:h,linkProps:y.reactive({href:h})}}const r=e.useLink({to:y.toRef(()=>t.to||""),replace:y.toRef(()=>t.replace)}),o=y.computed(()=>t.to?r:void 0),l=fb(),a=y.computed(()=>o.value?t.exact?l.value?o.value.isExactActive?.value&&Bn(o.value.route.value.query,l.value.query):o.value.isExactActive?.value??!1:o.value.isActive?.value??!1:!1),n=y.computed(()=>t.to?o.value?.route.value.href:t.href),u=y.toRef(()=>!!t.to);return{isLink:s,isRouterLink:u,isClickable:c,isActive:a,route:o.value?.route,navigate:o.value?.navigate,href:n,linkProps:y.reactive({href:n,"aria-current":y.toRef(()=>a.value?"page":void 0),"aria-disabled":y.toRef(()=>t.disabled&&s.value?"true":void 0),tabindex:y.toRef(()=>t.disabled&&s.value?"-1":void 0)})}}const Bu=Ze({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let Ec=!1;function hb(t,i){let e=!1,s,c;nn&&t?.beforeEach&&(y.nextTick(()=>{window.addEventListener("popstate",r),s=t.beforeEach((o,l,a)=>{Ec?e?i(a):a():setTimeout(()=>e?i(a):a()),Ec=!0}),c=t?.afterEach(()=>{Ec=!1})}),y.onScopeDispose(()=>{window.removeEventListener("popstate",r),s?.(),c?.()}));function r(o){o.state?.replaced||(e=!0,setTimeout(()=>e=!1))}}function pb(t,i){y.watch(()=>t.isActive?.value,e=>{t.isLink.value&&e!=null&&i&&y.nextTick(()=>{i(e)})},{immediate:!0})}const yf=Symbol("rippleStop"),mb=80;function zh(t,i){t.style.transform=i,t.style.webkitTransform=i}function wf(t){return t.constructor.name==="TouchEvent"}function s0(t){return t.constructor.name==="KeyboardEvent"}const gb=function(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=0,c=0;if(!s0(t)){const h=i.getBoundingClientRect(),d=wf(t)?t.touches[t.touches.length-1]:t;s=d.clientX-h.left,c=d.clientY-h.top}let r=0,o=.3;i._ripple?.circle?(o=.15,r=i.clientWidth/2,r=e.center?r:r+Math.sqrt((s-r)**2+(c-r)**2)/4):r=Math.sqrt(i.clientWidth**2+i.clientHeight**2)/2;const l=`${(i.clientWidth-r*2)/2}px`,a=`${(i.clientHeight-r*2)/2}px`,n=e.center?l:`${s-r}px`,u=e.center?a:`${c-r}px`;return{radius:r,scale:o,x:n,y:u,centerX:l,centerY:a}},xu={show(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!i?._ripple?.enabled)return;const s=document.createElement("span"),c=document.createElement("span");s.appendChild(c),s.className="v-ripple__container",e.class&&(s.className+=` ${e.class}`);const{radius:r,scale:o,x:l,y:a,centerX:n,centerY:u}=gb(t,i,e),h=`${r*2}px`;c.className="v-ripple__animation",c.style.width=h,c.style.height=h,i.appendChild(s);const d=window.getComputedStyle(i);d&&d.position==="static"&&(i.style.position="relative",i.dataset.previousPosition="static"),c.classList.add("v-ripple__animation--enter"),c.classList.add("v-ripple__animation--visible"),zh(c,`translate(${l}, ${a}) scale3d(${o},${o},${o})`),c.dataset.activated=String(performance.now()),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c.classList.remove("v-ripple__animation--enter"),c.classList.add("v-ripple__animation--in"),zh(c,`translate(${n}, ${u}) scale3d(1,1,1)`)})})},hide(t){if(!t?._ripple?.enabled)return;const i=t.getElementsByClassName("v-ripple__animation");if(i.length===0)return;const e=Array.from(i).findLast(r=>!r.dataset.isHiding);if(e)e.dataset.isHiding="true";else return;const s=performance.now()-Number(e.dataset.activated),c=Math.max(250-s,0);setTimeout(()=>{e.classList.remove("v-ripple__animation--in"),e.classList.add("v-ripple__animation--out"),setTimeout(()=>{t.getElementsByClassName("v-ripple__animation").length===1&&t.dataset.previousPosition&&(t.style.position=t.dataset.previousPosition,delete t.dataset.previousPosition),e.parentNode?.parentNode===t&&t.removeChild(e.parentNode)},300)},c)}};function o0(t){return typeof t>"u"||!!t}function el(t){const i={},e=t.currentTarget;if(!(!e?._ripple||e._ripple.touched||t[yf])){if(t[yf]=!0,wf(t))e._ripple.touched=!0,e._ripple.isTouch=!0;else if(e._ripple.isTouch)return;if(i.center=e._ripple.centered||s0(t),e._ripple.class&&(i.class=e._ripple.class),wf(t)){if(e._ripple.showTimerCommit)return;e._ripple.showTimerCommit=()=>{xu.show(t,e,i)},e._ripple.showTimer=window.setTimeout(()=>{e?._ripple?.showTimerCommit&&(e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null)},mb)}else xu.show(t,e,i)}}function Uh(t){t[yf]=!0}function ii(t){const i=t.currentTarget;if(i?._ripple){if(window.clearTimeout(i._ripple.showTimer),t.type==="touchend"&&i._ripple.showTimerCommit){i._ripple.showTimerCommit(),i._ripple.showTimerCommit=null,i._ripple.showTimer=window.setTimeout(()=>{ii(t)});return}window.setTimeout(()=>{i._ripple&&(i._ripple.touched=!1)}),xu.hide(i)}}function l0(t){const i=t.currentTarget;i?._ripple&&(i._ripple.showTimerCommit&&(i._ripple.showTimerCommit=null),window.clearTimeout(i._ripple.showTimer))}let tl=!1;function $h(t,i){!tl&&i.includes(t.key)&&(tl=!0,el(t))}function u0(t){tl=!1,ii(t)}function c0(t){tl&&(tl=!1,ii(t))}function f0(t,i,e){const{value:s,modifiers:c}=i,r=o0(s);r||xu.hide(t),t._ripple=t._ripple??{},t._ripple.enabled=r,t._ripple.centered=c.center,t._ripple.circle=c.circle;const o=mu(s)?s:{};o.class&&(t._ripple.class=o.class);const l=o.keys??["Enter","Space"];if(t._ripple.keyDownHandler=a=>$h(a,l),r&&!e){if(c.stop){t.addEventListener("touchstart",Uh,{passive:!0}),t.addEventListener("mousedown",Uh);return}t.addEventListener("touchstart",el,{passive:!0}),t.addEventListener("touchend",ii,{passive:!0}),t.addEventListener("touchmove",l0,{passive:!0}),t.addEventListener("touchcancel",ii),t.addEventListener("mousedown",el),t.addEventListener("mouseup",ii),t.addEventListener("mouseleave",ii),t.addEventListener("keydown",a=>$h(a,l)),t.addEventListener("keyup",u0),t.addEventListener("blur",c0),t.addEventListener("dragstart",ii,{passive:!0})}else!r&&e&&d0(t)}function d0(t){t.removeEventListener("mousedown",el),t.removeEventListener("touchstart",el),t.removeEventListener("touchend",ii),t.removeEventListener("touchmove",l0),t.removeEventListener("touchcancel",ii),t.removeEventListener("mouseup",ii),t.removeEventListener("mouseleave",ii),t._ripple?.keyDownHandler&&t.removeEventListener("keydown",t._ripple.keyDownHandler),t.removeEventListener("keyup",u0),t.removeEventListener("dragstart",ii),t.removeEventListener("blur",c0)}function vb(t,i){f0(t,i,!1)}function bb(t){d0(t),delete t._ripple}function yb(t,i){if(i.value===i.oldValue)return;const e=o0(i.oldValue);f0(t,i,e)}const ha={mounted:vb,unmounted:bb,updated:yb},wb=Ze({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:t0},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:$t,appendIcon:$t,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...Xa(),...or(),...Vn(),...Ka(),...Ps(),...Qm(),...Lu(),...id(),...i0(),...Ai(),...Bu(),...yo(),...Vr({tag:"button"}),...cn(),...ga({variant:"elevated"})},"VBtn"),Dr=xt()({name:"VBtn",props:wb(),emits:{"group:selected":t=>!0},setup(t,i){let{attrs:e,slots:s}=i;const{themeClasses:c}=Pn(t),{borderClasses:r}=Ts(t),{densityClasses:o}=Wi(t),{dimensionStyles:l}=Ya(t),{elevationClasses:a}=bo(t),{loaderClasses:n}=pl(t),{locationStyles:u}=ad(t),{positionClasses:h}=a0(t),{roundedClasses:d}=Gi(t),{sizeClasses:f,sizeStyles:m}=hl(t),g=bf(t,t.symbol,!1),p=Fu(t,e),v=y.computed(()=>t.active!==void 0?t.active:p.isRouterLink.value?p.isActive?.value:g?.isSelected.value),b=y.toRef(()=>v.value?t.activeColor??t.color:t.color),x=y.computed(()=>({color:g?.isSelected.value&&(!p.isLink.value||p.isActive?.value)||!g||p.isActive?.value?b.value??t.baseColor:t.baseColor,variant:t.variant})),{colorClasses:A,colorStyles:M,variantClasses:V}=dl(x),W=y.computed(()=>g?.disabled.value||t.disabled),R=y.toRef(()=>t.variant==="elevated"&&!(t.disabled||t.flat||t.border)),F=y.computed(()=>{if(!(t.value===void 0||typeof t.value=="symbol"))return Object(t.value)===t.value?JSON.stringify(t.value,null,0):t.value});function $(z){W.value||p.isLink.value&&(z.metaKey||z.ctrlKey||z.shiftKey||z.button!==0||e.target==="_blank")||(p.isRouterLink.value?p.navigate?.(z):g?.toggle())}return pb(p,g?.select),jt(()=>{const z=p.isLink.value?"a":t.tag,D=!!(t.prependIcon||s.prepend),N=!!(t.appendIcon||s.append),E=!!(t.icon&&t.icon!==!0);return y.withDirectives(y.createVNode(z,y.mergeProps(p.linkProps,{type:z==="a"?void 0:"button",class:["v-btn",g?.selectedClass.value,{"v-btn--active":v.value,"v-btn--block":t.block,"v-btn--disabled":W.value,"v-btn--elevated":R.value,"v-btn--flat":t.flat,"v-btn--icon":!!t.icon,"v-btn--loading":t.loading,"v-btn--readonly":t.readonly,"v-btn--slim":t.slim,"v-btn--stacked":t.stacked},t.spaced?["v-btn--spaced",`v-btn--spaced-${t.spaced}`]:[],c.value,r.value,A.value,o.value,a.value,n.value,h.value,d.value,f.value,V.value,t.class],style:[M.value,l.value,u.value,m.value,t.style],"aria-busy":t.loading?!0:void 0,disabled:W.value&&z!=="a"||void 0,tabindex:t.loading||t.readonly?-1:void 0,onClick:$,value:F.value}),{default:()=>[fl(!0,"v-btn"),!t.icon&&D&&y.createElementVNode("span",{key:"prepend",class:"v-btn__prepend"},[s.prepend?y.createVNode(qr,{key:"prepend-defaults",disabled:!t.prependIcon,defaults:{VIcon:{icon:t.prependIcon}}},s.prepend):y.createVNode(nr,{key:"prepend-icon",icon:t.prependIcon},null)]),y.createElementVNode("span",{class:"v-btn__content","data-no-activator":""},[!s.default&&E?y.createVNode(nr,{key:"content-icon",icon:t.icon},null):y.createVNode(qr,{key:"content-defaults",disabled:!E,defaults:{VIcon:{icon:t.icon}}},{default:()=>[s.default?.()??y.toDisplayString(t.text)]})]),!t.icon&&N&&y.createElementVNode("span",{key:"append",class:"v-btn__append"},[s.append?y.createVNode(qr,{key:"append-defaults",disabled:!t.appendIcon,defaults:{VIcon:{icon:t.appendIcon}}},s.append):y.createVNode(nr,{key:"append-icon",icon:t.appendIcon},null)]),!!t.loading&&y.createElementVNode("span",{key:"loader",class:"v-btn__loader"},[s.loader?.()??y.createVNode(nd,{color:typeof t.loading=="boolean"?void 0:t.loading,indeterminate:!0,width:"2"},null)])]}),[[ha,!W.value&&t.ripple,"",{center:!!t.icon}]])}),{group:g}}});function Tc(t,i){return{x:t.x+i.x,y:t.y+i.y}}function xb(t,i){return{x:t.x-i.x,y:t.y-i.y}}function qh(t,i){if(t.side==="top"||t.side==="bottom"){const{side:e,align:s}=t,c=s==="left"?0:s==="center"?i.width/2:s==="right"?i.width:s,r=e==="top"?0:e==="bottom"?i.height:e;return Tc({x:c,y:r},i)}else if(t.side==="left"||t.side==="right"){const{side:e,align:s}=t,c=e==="left"?0:e==="right"?i.width:e,r=s==="top"?0:s==="center"?i.height/2:s==="bottom"?i.height:s;return Tc({x:c,y:r},i)}return Tc({x:i.width/2,y:i.height/2},i)}const h0={static:kb,connected:Ab},_b=Ze({locationStrategy:{type:[String,Function],default:"static",validator:t=>typeof t=="function"||t in h0},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function Sb(t,i){const e=y.ref({}),s=y.ref();nn&&Ua(()=>!!(i.isActive.value&&t.locationStrategy),l=>{y.watch(()=>t.locationStrategy,l),y.onScopeDispose(()=>{window.removeEventListener("resize",c),visualViewport?.removeEventListener("resize",r),visualViewport?.removeEventListener("scroll",o),s.value=void 0}),window.addEventListener("resize",c,{passive:!0}),visualViewport?.addEventListener("resize",r,{passive:!0}),visualViewport?.addEventListener("scroll",o,{passive:!0}),typeof t.locationStrategy=="function"?s.value=t.locationStrategy(i,t,e)?.updateLocation:s.value=h0[t.locationStrategy](i,t,e)?.updateLocation});function c(l){s.value?.(l)}function r(l){s.value?.(l)}function o(l){s.value?.(l)}return{contentStyles:e,updateLocation:s}}function kb(){}function Cb(t,i){const e=Yf(t);return i?e.x+=parseFloat(t.style.right||0):e.x-=parseFloat(t.style.left||0),e.y-=parseFloat(t.style.top||0),e}function Ab(t,i,e){(Array.isArray(t.target.value)||q2(t.target.value))&&Object.assign(e.value,{position:"fixed",top:0,[t.isRtl.value?"right":"left"]:0});const{preferredAnchor:c,preferredOrigin:r}=Xf(()=>{const v=mf(i.location,t.isRtl.value),b=i.origin==="overlap"?v:i.origin==="auto"?Ac(v):mf(i.origin,t.isRtl.value);return v.side===b.side&&v.align===Nc(b).align?{preferredAnchor:_h(v),preferredOrigin:_h(b)}:{preferredAnchor:v,preferredOrigin:b}}),[o,l,a,n]=["minWidth","minHeight","maxWidth","maxHeight"].map(v=>y.computed(()=>{const b=parseFloat(i[v]);return isNaN(b)?1/0:b})),u=y.computed(()=>{if(Array.isArray(i.offset))return i.offset;if(typeof i.offset=="string"){const v=i.offset.split(" ").map(parseFloat);return v.length<2&&v.push(0),v}return typeof i.offset=="number"?[i.offset,0]:[0,0]});let h=!1,d=-1;const f=new h2(4),m=new ResizeObserver(()=>{if(!h)return;if(requestAnimationFrame(b=>{b!==d&&f.clear(),requestAnimationFrame(x=>{d=x})}),f.isFull){const b=f.values();if(Bn(b.at(-1),b.at(-3))&&!Bn(b.at(-1),b.at(-2)))return}const v=p();v&&f.push(v.flipped)});let g=new pi({x:0,y:0,width:0,height:0});y.watch(t.target,(v,b)=>{b&&!Array.isArray(b)&&m.unobserve(b),Array.isArray(v)?Bn(v,b)||p():v&&m.observe(v)},{immediate:!0}),y.watch(t.contentEl,(v,b)=>{b&&m.unobserve(b),v&&m.observe(v)},{immediate:!0}),y.onScopeDispose(()=>{m.disconnect()});function p(){if(h=!1,requestAnimationFrame(()=>h=!0),!t.target.value||!t.contentEl.value)return;(Array.isArray(t.target.value)||t.target.value.offsetParent||t.target.value.getClientRects().length)&&(g=Xm(t.target.value));const v=Cb(t.contentEl.value,t.isRtl.value),b=wu(t.contentEl.value),x=Number(i.viewportMargin);b.length||(b.push(document.documentElement),t.contentEl.value.style.top&&t.contentEl.value.style.left||(v.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),v.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const A=b.reduce((N,E)=>{const C=x2(E);return N?new pi({x:Math.max(N.left,C.left),y:Math.max(N.top,C.top),width:Math.min(N.right,C.right)-Math.max(N.left,C.left),height:Math.min(N.bottom,C.bottom)-Math.max(N.top,C.top)}):C},void 0);i.stickToTarget?(A.x+=Math.min(x,g.x),A.y+=Math.min(x,g.y),A.width=Math.max(A.width-x*2,g.x+g.width-x),A.height=Math.max(A.height-x*2,g.y+g.height-x)):(A.x+=x,A.y+=x,A.width-=x*2,A.height-=x*2);let M={anchor:c.value,origin:r.value};function V(N){const E=new pi(v),C=qh(N.anchor,g),w=qh(N.origin,E);let{x:S,y:_}=xb(C,w);switch(N.anchor.side){case"top":_-=u.value[0];break;case"bottom":_+=u.value[0];break;case"left":S-=u.value[0];break;case"right":S+=u.value[0];break}switch(N.anchor.align){case"top":_-=u.value[1];break;case"bottom":_+=u.value[1];break;case"left":S-=u.value[1];break;case"right":S+=u.value[1];break}return E.x+=S,E.y+=_,E.width=Math.min(E.width,a.value),E.height=Math.min(E.height,n.value),{overflows:kh(E,A),x:S,y:_}}let W=0,R=0;const F={x:0,y:0},$={x:!1,y:!1};let z=-1;for(;;){if(z++>10){Iu("Infinite loop detected in connectedLocationStrategy");break}const{x:N,y:E,overflows:C}=V(M);W+=N,R+=E,v.x+=N,v.y+=E;{const w=Sh(M.anchor),S=C.x.before||C.x.after,_=C.y.before||C.y.after;let k=!1;if(["x","y"].forEach(T=>{if(T==="x"&&S&&!$.x||T==="y"&&_&&!$.y){const j={anchor:{...M.anchor},origin:{...M.origin}},P=T==="x"?w==="y"?Nc:Ac:w==="y"?Ac:Nc;j.anchor=P(j.anchor),j.origin=P(j.origin);const{overflows:U}=V(j);(U[T].before<=C[T].before&&U[T].after<=C[T].after||U[T].before+U[T].after<(C[T].before+C[T].after)/2)&&(M=j,k=$[T]=!0)}}),k)continue}C.x.before&&(W+=C.x.before,v.x+=C.x.before),C.x.after&&(W-=C.x.after,v.x-=C.x.after),C.y.before&&(R+=C.y.before,v.y+=C.y.before),C.y.after&&(R-=C.y.after,v.y-=C.y.after);{const w=kh(v,A);F.x=A.width-w.x.before-w.x.after,F.y=A.height-w.y.before-w.y.after,W+=w.x.before,v.x+=w.x.before,R+=w.y.before,v.y+=w.y.before}break}const D=Sh(M.anchor);return Object.assign(e.value,{"--v-overlay-anchor-origin":`${M.anchor.side} ${M.anchor.align}`,transformOrigin:`${M.origin.side} ${M.origin.align}`,top:St(Pc(R)),left:t.isRtl.value?void 0:St(Pc(W)),right:t.isRtl.value?St(Pc(-W)):void 0,minWidth:St(D==="y"?Math.min(o.value,g.width):o.value),maxWidth:St(Hh(un(F.x,o.value===1/0?0:o.value,a.value))),maxHeight:St(Hh(un(F.y,l.value===1/0?0:l.value,n.value)))}),{available:F,contentBox:v,flipped:$}}return y.watch(()=>[c.value,r.value,i.offset,i.minWidth,i.minHeight,i.maxWidth,i.maxHeight],()=>p()),y.nextTick(()=>{const v=p();if(!v)return;const{available:b,contentBox:x}=v;x.height>b.y&&requestAnimationFrame(()=>{p(),requestAnimationFrame(()=>{p()})})}),{updateLocation:p}}function Pc(t){return Math.round(t*devicePixelRatio)/devicePixelRatio}function Hh(t){return Math.ceil(t*devicePixelRatio)/devicePixelRatio}let xf=!0;const _u=[];function Nb(t){!xf||_u.length?(_u.push(t),_f()):(xf=!1,t(),_f())}let Wh=-1;function _f(){cancelAnimationFrame(Wh),Wh=requestAnimationFrame(()=>{const t=_u.shift();t&&t(),_u.length?_f():xf=!0})}const p0={none:null,close:Pb,block:Mb,reposition:Ib},Eb=Ze({scrollStrategy:{type:[String,Function],default:"block",validator:t=>typeof t=="function"||t in p0}},"VOverlay-scroll-strategies");function Tb(t,i){if(!nn)return;let e;y.watchEffect(async()=>{e?.stop(),i.isActive.value&&t.scrollStrategy&&(e=y.effectScope(),await new Promise(s=>setTimeout(s)),e.active&&e.run(()=>{typeof t.scrollStrategy=="function"?t.scrollStrategy(i,t,e):p0[t.scrollStrategy]?.(i,t,e)}))}),y.onScopeDispose(()=>{e?.stop()})}function Pb(t){function i(e){t.isActive.value=!1}m0(sd(t.target.value,t.contentEl.value),i)}function Mb(t,i){const e=t.root.value?.offsetParent,s=sd(t.target.value,t.contentEl.value),c=[...new Set([...wu(s,i.contained?e:void 0),...wu(t.contentEl.value,i.contained?e:void 0)])].filter(l=>!l.classList.contains("v-overlay-scroll-blocked")),r=window.innerWidth-document.documentElement.offsetWidth,o=(l=>Qf(l)&&l)(e||document.documentElement);o&&t.root.value.classList.add("v-overlay--scroll-blocked"),c.forEach((l,a)=>{l.style.setProperty("--v-body-scroll-x",St(-l.scrollLeft)),l.style.setProperty("--v-body-scroll-y",St(-l.scrollTop)),l!==document.documentElement&&l.style.setProperty("--v-scrollbar-offset",St(r)),l.classList.add("v-overlay-scroll-blocked")}),y.onScopeDispose(()=>{c.forEach((l,a)=>{const n=parseFloat(l.style.getPropertyValue("--v-body-scroll-x")),u=parseFloat(l.style.getPropertyValue("--v-body-scroll-y")),h=l.style.scrollBehavior;l.style.scrollBehavior="auto",l.style.removeProperty("--v-body-scroll-x"),l.style.removeProperty("--v-body-scroll-y"),l.style.removeProperty("--v-scrollbar-offset"),l.classList.remove("v-overlay-scroll-blocked"),l.scrollLeft=-n,l.scrollTop=-u,l.style.scrollBehavior=h}),o&&t.root.value.classList.remove("v-overlay--scroll-blocked")})}function Ib(t,i,e){let s=!1,c=-1,r=-1;function o(l){Nb(()=>{const a=performance.now();t.updateLocation.value?.(l),s=(performance.now()-a)/(1e3/60)>2})}r=(typeof requestIdleCallback>"u"?l=>l():requestIdleCallback)(()=>{e.run(()=>{m0(sd(t.target.value,t.contentEl.value),l=>{s?(cancelAnimationFrame(c),c=requestAnimationFrame(()=>{c=requestAnimationFrame(()=>{o(l)})})):o(l)})})}),y.onScopeDispose(()=>{typeof cancelIdleCallback<"u"&&cancelIdleCallback(r),cancelAnimationFrame(c)})}function sd(t,i){return Array.isArray(t)?document.elementsFromPoint(...t).find(e=>!i?.contains(e)):t??i}function m0(t,i){const e=[document,...wu(t)];e.forEach(s=>{s.addEventListener("scroll",i,{passive:!0})}),y.onScopeDispose(()=>{e.forEach(s=>{s.removeEventListener("scroll",i)})})}const Sf=Symbol.for("vuetify:v-menu"),g0=Ze({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function v0(t,i){let e=()=>{};function s(o,l){e?.();const a=o?t.openDelay:t.closeDelay,n=Math.max(l?.minDelay??0,Number(a??0));return new Promise(u=>{e=m2(n,()=>{i?.(o),u(o)})})}function c(){return s(!0)}function r(o){return s(!1,o)}return{clearDelay:e,runOpenDelay:c,runCloseDelay:r}}const Rb=Ze({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...g0()},"VOverlay-activator");function Lb(t,i){let{isActive:e,isTop:s,contentEl:c}=i;const r=Jr("useActivator"),o=y.ref();let l=!1,a=!1,n=!0;const u=y.computed(()=>t.openOnFocus||t.openOnFocus==null&&t.openOnHover),h=y.computed(()=>t.openOnClick||t.openOnClick==null&&!t.openOnHover&&!u.value),{runOpenDelay:d,runCloseDelay:f}=v0(t,R=>{R===(t.openOnHover&&l||u.value&&a)&&!(t.openOnHover&&e.value&&!s.value)&&(e.value!==R&&(n=!0),e.value=R)}),m=y.ref(),g={onClick:R=>{R.stopPropagation(),o.value=R.currentTarget||R.target,e.value||(m.value=[R.clientX,R.clientY]),e.value=!e.value},onMouseenter:R=>{l=!0,o.value=R.currentTarget||R.target,d()},onMouseleave:R=>{l=!1,f()},onFocus:R=>{fo(R.target,":focus-visible")!==!1&&(a=!0,R.stopPropagation(),o.value=R.currentTarget||R.target,d())},onBlur:R=>{a=!1,R.stopPropagation(),f({minDelay:1})}},p=y.computed(()=>{const R={};return h.value&&(R.onClick=g.onClick),t.openOnHover&&(R.onMouseenter=g.onMouseenter,R.onMouseleave=g.onMouseleave),u.value&&(R.onFocus=g.onFocus,R.onBlur=g.onBlur),R}),v=y.computed(()=>{const R={};if(t.openOnHover&&(R.onMouseenter=()=>{l=!0,d()},R.onMouseleave=()=>{l=!1,f()}),u.value&&(R.onFocusin=F=>{F.target.matches(":focus-visible")&&(a=!0,d())},R.onFocusout=()=>{a=!1,f({minDelay:1})}),t.closeOnContentClick){const F=y.inject(Sf,null);R.onClick=()=>{e.value=!1,F?.closeParents()}}return R}),b=y.computed(()=>{const R={};return t.openOnHover&&(R.onMouseenter=()=>{n&&(l=!0,n=!1,d())},R.onMouseleave=()=>{l=!1,f()}),R});y.watch(s,R=>{R&&(t.openOnHover&&!l&&(!u.value||!a)||u.value&&!a&&(!t.openOnHover||!l))&&!c.value?.contains(document.activeElement)&&(e.value=!1)}),y.watch(e,R=>{R||setTimeout(()=>{m.value=void 0})},{flush:"post"});const x=hf();y.watchEffect(()=>{x.value&&y.nextTick(()=>{o.value=x.el})});const A=hf(),M=y.computed(()=>t.target==="cursor"&&m.value?m.value:A.value?A.el:b0(t.target,r)||o.value),V=y.computed(()=>Array.isArray(M.value)?void 0:M.value);let W;return y.watch(()=>!!t.activator,R=>{R&&nn?(W=y.effectScope(),W.run(()=>{Ob(t,r,{activatorEl:o,activatorEvents:p})})):W&&W.stop()},{flush:"post",immediate:!0}),y.onScopeDispose(()=>{W?.stop()}),{activatorEl:o,activatorRef:x,target:M,targetEl:V,targetRef:A,activatorEvents:p,contentEvents:v,scrimEvents:b}}function Ob(t,i,e){let{activatorEl:s,activatorEvents:c}=e;y.watch(()=>t.activator,(a,n)=>{if(n&&a!==n){const u=l(n);u&&o(u)}a&&y.nextTick(()=>r())},{immediate:!0}),y.watch(()=>t.activatorProps,()=>{r()}),y.onScopeDispose(()=>{o()});function r(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;a&&_2(a,y.mergeProps(c.value,n))}function o(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.activatorProps;a&&S2(a,y.mergeProps(c.value,n))}function l(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activator;const n=b0(a,i);return s.value=n?.nodeType===Node.ELEMENT_NODE?n:void 0,s.value}}function b0(t,i){if(!t)return;let e;if(t==="parent"){let s=i?.proxy?.$el?.parentNode;for(;s?.hasAttribute("data-no-activator");)s=s.parentNode;e=s}else typeof t=="string"?e=document.querySelector(t):"$el"in t?e=t.$el:e=t;return e}const Fb=Ze({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),kf=new Map;function Bb(t){const i=document.activeElement;if(t.key!=="Tab"||!i)return;const e=Array.from(kf.values()).filter(n=>{let{isActive:u,contentEl:h}=n;return u.value&&h.value?.contains(i)}).map(n=>n.contentEl.value);let s,c=i.parentElement;for(;c;){if(e.includes(c)){s=c;break}c=c.parentElement}if(!s)return;const r=vs(s).filter(n=>n.tabIndex>=0);if(!r.length)return;const o=document.activeElement;if(r.length===1&&r[0].classList.contains("v-list")&&r[0].contains(o)){t.preventDefault();return}const l=r[0],a=r[r.length-1];t.shiftKey&&(o===l||l.classList.contains("v-list")&&l.contains(o))&&(t.preventDefault(),a.focus()),!t.shiftKey&&(o===a||a.classList.contains("v-list")&&a.contains(o))&&(t.preventDefault(),l.focus())}function jb(t,i){let{isActive:e,localTop:s,contentEl:c}=i;const r=Symbol("trap");y.watch(()=>t.retainFocus,d=>{d?kf.set(r,{isActive:e,contentEl:c}):kf.delete(r)},{immediate:!0});let o=!1,l=-1;async function a(){o=!0,l=window.setTimeout(()=>{o=!1},100)}async function n(d){const f=d.relatedTarget,m=d.target;document.removeEventListener("pointerdown",a),document.removeEventListener("keydown",u),await y.nextTick(),e.value&&!o&&f!==m&&c.value&&y.toValue(s)&&![document,c.value].includes(m)&&!c.value.contains(m)&&vs(c.value)[0]?.focus()}function u(d){if(d.key==="Tab"&&(document.removeEventListener("keydown",u),e.value&&c.value&&d.target&&!c.value.contains(d.target))){const f=vs(document.documentElement);if(d.shiftKey&&d.target===f.at(0)||!d.shiftKey&&d.target===f.at(-1)){const m=vs(c.value);m.length>0&&(d.preventDefault(),m[0].focus())}}}const h=y.toRef(()=>e.value&&t.captureFocus&&!t.disableInitialFocus);nn&&y.watch(h,d=>{d?(document.addEventListener("pointerdown",a),document.addEventListener("focusin",n,{once:!0}),document.addEventListener("keydown",u)):(document.removeEventListener("pointerdown",a),document.removeEventListener("focusin",n),document.removeEventListener("keydown",u))},{immediate:!0}),y.onBeforeUnmount(()=>{clearTimeout(l),document.removeEventListener("pointerdown",a),document.removeEventListener("focusin",n),document.removeEventListener("keydown",u)}),nn&&document.addEventListener("keydown",Bb)}const ju=["sm","md","lg","xl","xxl"],Db=Symbol.for("vuetify:display"),Du=Ze({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function Za(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{mobile:null},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();const e=y.inject(Db);if(!e)throw new Error("Could not find Vuetify display injection");const s=y.computed(()=>t.mobile?!0:typeof t.mobileBreakpoint=="number"?e.width.value<t.mobileBreakpoint:t.mobileBreakpoint?e.width.value<e.thresholds.value[t.mobileBreakpoint]:t.mobile===null?e.mobile.value:!1),c=y.toRef(()=>i?{[`${i}--mobile`]:s.value}:{});return{...e,displayClasses:c,mobile:s}}function Vb(){if(!nn)return y.shallowRef(!1);const{ssr:t}=Za();if(t){const i=y.shallowRef(!1);return y.onMounted(()=>{i.value=!0}),i}else return y.shallowRef(!0)}const zb=Ze({eager:Boolean},"lazy");function Ub(t,i){const e=y.shallowRef(!1),s=y.toRef(()=>e.value||t.eager||i.value);y.watch(i,()=>e.value=!0);function c(){t.eager||(e.value=!1)}return{isBooted:e,hasContent:s,onAfterLeave:c}}function Vu(){const i=Jr("useScopeId").vnode.scopeId;return{scopeId:i?{[i]:""}:void 0}}const Gh=Symbol.for("vuetify:stack"),zo=y.reactive([]);function $b(t,i,e){const s=Jr("useStack"),c=!e,r=y.inject(Gh,void 0),o=y.reactive({activeChildren:new Set});y.provide(Gh,o);const l=y.shallowRef(Number(y.toValue(i)));Ua(t,()=>{const u=zo.at(-1)?.[1];l.value=u?u+10:Number(y.toValue(i)),c&&zo.push([s.uid,l.value]),r?.activeChildren.add(s.uid),y.onScopeDispose(()=>{if(c){const h=y.toRaw(zo).findIndex(d=>d[0]===s.uid);zo.splice(h,1)}r?.activeChildren.delete(s.uid)})});const a=y.shallowRef(!0);c&&y.watchEffect(()=>{const u=zo.at(-1)?.[0]===s.uid;setTimeout(()=>a.value=u)});const n=y.toRef(()=>!o.activeChildren.size);return{globalTop:y.readonly(a),localTop:n,stackStyles:y.toRef(()=>({zIndex:l.value}))}}function qb(t){return{teleportTarget:y.computed(()=>{const e=t();if(e===!0||!nn)return;const s=e===!1?document.body:typeof e=="string"?document.querySelector(e):e;if(s==null){y.warn(`Unable to locate target ${e}`);return}let c=[...s.children].find(r=>r.matches(".v-overlay-container"));return c||(c=document.createElement("div"),c.className="v-overlay-container",s.appendChild(c)),c})}}const ml=Ze({transition:{type:null,default:"fade-transition",validator:t=>t!==!0}},"transition"),Ba=(t,i)=>{let{slots:e}=i;const{transition:s,disabled:c,group:r,...o}=t,{component:l=r?y.TransitionGroup:y.Transition,...a}=mu(s)?s:{};let n;return mu(s)?n=y.mergeProps(a,y2({disabled:c,group:r}),o):n=y.mergeProps({name:c||!s?"":s},o),y.h(l,n,e)};function Hb(){return!0}function y0(t,i,e){if(!t||w0(t,e)===!1)return!1;const s=Ym(i);if(typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&s.host===t.target)return!1;const c=(typeof e.value=="object"&&e.value.include||(()=>[]))();return c.push(i),!c.some(r=>r?.contains(t.target))}function w0(t,i){return(typeof i.value=="object"&&i.value.closeConditional||Hb)(t)}function Wb(t,i,e){const s=typeof e.value=="function"?e.value:e.value.handler;t.shadowTarget=t.target,i._clickOutside.lastMousedownWasOutside&&y0(t,i,e)&&setTimeout(()=>{w0(t,e)&&s&&s(t)},0)}function Xh(t,i){const e=Ym(t);i(document),typeof ShadowRoot<"u"&&e instanceof ShadowRoot&&i(e)}const Kh={mounted(t,i){const e=c=>Wb(c,t,i),s=c=>{t._clickOutside.lastMousedownWasOutside=y0(c,t,i)};Xh(t,c=>{c.addEventListener("click",e,!0),c.addEventListener("mousedown",s,!0)}),t._clickOutside||(t._clickOutside={lastMousedownWasOutside:!1}),t._clickOutside[i.instance.$.uid]={onClick:e,onMousedown:s}},beforeUnmount(t,i){t._clickOutside&&(Xh(t,e=>{if(!e||!t._clickOutside?.[i.instance.$.uid])return;const{onClick:s,onMousedown:c}=t._clickOutside[i.instance.$.uid];e.removeEventListener("click",s,!0),e.removeEventListener("mousedown",c,!0)}),delete t._clickOutside[i.instance.$.uid])}};function Gb(t){const{modelValue:i,color:e,...s}=t;return y.createVNode(y.Transition,{name:"fade-transition",appear:!0},{default:()=>[t.modelValue&&y.createElementVNode("div",y.mergeProps({class:["v-overlay__scrim",t.color.backgroundColorClasses.value],style:t.color.backgroundColorStyles.value},s),null)]})}const zu=Ze({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...Rb(),...or(),...Ka(),...zb(),..._b(),...Eb(),...Fb(),...cn(),...ml()},"VOverlay"),ho=xt()({name:"VOverlay",directives:{vClickOutside:Kh},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...Dn(zu(),["disableInitialFocus"])},emits:{"click:outside":t=>!0,"update:modelValue":t=>!0,keydown:t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,i){let{slots:e,attrs:s,emit:c}=i;const r=Jr("VOverlay"),o=y.ref(),l=y.ref(),a=y.ref(),n=cr(t,"modelValue"),u=y.computed({get:()=>n.value,set:X=>{X&&t.disabled||(n.value=X)}}),{themeClasses:h}=Pn(t),{rtlClasses:d,isRtl:f}=va(),{hasContent:m,onAfterLeave:g}=Ub(t,u),p=fa(()=>typeof t.scrim=="string"?t.scrim:null),{globalTop:v,localTop:b,stackStyles:x}=$b(u,()=>t.zIndex,t._disableGlobalStack),{activatorEl:A,activatorRef:M,target:V,targetEl:W,targetRef:R,activatorEvents:F,contentEvents:$,scrimEvents:z}=Lb(t,{isActive:u,isTop:b,contentEl:a}),{teleportTarget:D}=qb(()=>{const X=t.attach||t.contained;if(X)return X;const L=A?.value?.getRootNode()||r.proxy?.$el?.getRootNode();return L instanceof ShadowRoot?L:!1}),{dimensionStyles:N}=Ya(t),E=Vb(),{scopeId:C}=Vu();y.watch(()=>t.disabled,X=>{X&&(u.value=!1)});const{contentStyles:w,updateLocation:S}=Sb(t,{isRtl:f,contentEl:a,target:V,isActive:u});Tb(t,{root:o,contentEl:a,targetEl:W,target:V,isActive:u,updateLocation:S});function _(X){c("click:outside",X),t.persistent?q():u.value=!1}function k(X){return u.value&&b.value&&(!t.scrim||X.target===l.value||X instanceof MouseEvent&&X.shadowTarget===l.value)}jb(t,{isActive:u,localTop:b,contentEl:a}),nn&&y.watch(u,X=>{X?window.addEventListener("keydown",T):window.removeEventListener("keydown",T)},{immediate:!0}),y.onBeforeUnmount(()=>{nn&&window.removeEventListener("keydown",T)});function T(X){X.key==="Escape"&&v.value&&(a.value?.contains(document.activeElement)||c("keydown",X),t.persistent?q():(u.value=!1,a.value?.contains(document.activeElement)&&A.value?.focus()))}function j(X){X.key==="Escape"&&!v.value||c("keydown",X)}const P=db();Ua(()=>t.closeOnBack,()=>{hb(P,X=>{v.value&&u.value?(X(!1),t.persistent?q():u.value=!1):X()})});const U=y.ref();y.watch(()=>u.value&&(t.absolute||t.contained)&&D.value==null,X=>{if(X){const L=Zm(o.value);L&&L!==document.scrollingElement&&(U.value=L.scrollTop)}});function q(){t.noClickAnimation||a.value&&Fa(a.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:yu})}function Z(){c("afterEnter")}function B(){g(),c("afterLeave")}return jt(()=>y.createElementVNode(y.Fragment,null,[e.activator?.({isActive:u.value,targetRef:R,props:y.mergeProps({ref:M},F.value,t.activatorProps)}),E.value&&m.value&&y.createVNode(y.Teleport,{disabled:!D.value,to:D.value},{default:()=>[y.createElementVNode("div",y.mergeProps({class:["v-overlay",{"v-overlay--absolute":t.absolute||t.contained,"v-overlay--active":u.value,"v-overlay--contained":t.contained},h.value,d.value,t.class],style:[x.value,{"--v-overlay-opacity":t.opacity,top:St(U.value)},t.style],ref:o,onKeydown:j},C,s),[y.createVNode(Gb,y.mergeProps({color:p,modelValue:u.value&&!!t.scrim,ref:l},z.value),null),y.createVNode(Ba,{appear:!0,persisted:!0,transition:t.transition,target:V.value,onAfterEnter:Z,onAfterLeave:B},{default:()=>[y.withDirectives(y.createElementVNode("div",y.mergeProps({ref:a,class:["v-overlay__content",t.contentClass],style:[N.value,w.value]},$.value,t.contentProps),[e.default?.({isActive:u})]),[[y.vShow,u.value],[Kh,{handler:_,closeConditional:k,include:()=>[A.value]}]])]})])]})])),{activatorEl:A,scrimEl:l,target:V,animateClick:q,contentEl:a,rootEl:o,globalTop:v,localTop:b,updateLocation:S}}}),Mc=Symbol("Forwarded refs");function Ic(t,i){let e=t;for(;e;){const s=Reflect.getOwnPropertyDescriptor(e,i);if(s)return s;e=Object.getPrototypeOf(e)}}function Ni(t){for(var i=arguments.length,e=new Array(i>1?i-1:0),s=1;s<i;s++)e[s-1]=arguments[s];return t[Mc]=e,new Proxy(t,{get(c,r){if(Reflect.has(c,r))return Reflect.get(c,r);if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const o of e)if(o.value&&Reflect.has(o.value,r)){const l=Reflect.get(o.value,r);return typeof l=="function"?l.bind(o.value):l}}},has(c,r){if(Reflect.has(c,r))return!0;if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const o of e)if(o.value&&Reflect.has(o.value,r))return!0;return!1},set(c,r,o){if(Reflect.has(c,r))return Reflect.set(c,r,o);if(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))return!1;for(const l of e)if(l.value&&Reflect.has(l.value,r))return Reflect.set(l.value,r,o);return!1},getOwnPropertyDescriptor(c,r){const o=Reflect.getOwnPropertyDescriptor(c,r);if(o)return o;if(!(typeof r=="symbol"||r.startsWith("$")||r.startsWith("__"))){for(const l of e){if(!l.value)continue;const a=Ic(l.value,r)??("_"in l.value?Ic(l.value._?.setupState,r):void 0);if(a)return a}for(const l of e){const a=l.value&&l.value[Mc];if(!a)continue;const n=a.slice();for(;n.length;){const u=n.shift(),h=Ic(u.value,r);if(h)return h;const d=u.value&&u.value[Mc];d&&n.push(...d)}}}}})}const Xb=Ze({id:String,interactive:Boolean,text:String,...Dn(zu({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus","persistent"])},"VTooltip"),od=xt()({name:"VTooltip",props:Xb(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const s=cr(t,"modelValue"),{scopeId:c}=Vu(),r=y.useId(),o=y.toRef(()=>t.id||`v-tooltip-${r}`),l=y.ref(),a=y.computed(()=>t.location.split(" ").length>1?t.location:t.location+" center"),n=y.computed(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),u=y.toRef(()=>t.transition!=null?t.transition:s.value?"scale-transition":"fade-transition"),h=y.computed(()=>y.mergeProps({"aria-describedby":o.value},t.activatorProps));return jt(()=>{const d=ho.filterProps(t);return y.createVNode(ho,y.mergeProps({ref:l,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:o.value},d,{modelValue:s.value,"onUpdate:modelValue":f=>s.value=f,transition:u.value,absolute:!0,location:a.value,origin:n.value,persistent:!0,role:"tooltip",activatorProps:h.value,_disableGlobalStack:!0},c),{activator:e.activator,default:function(){for(var f=arguments.length,m=new Array(f),g=0;g<f;g++)m[g]=arguments[g];return e.default?.(...m)??t.text}})}),Ni({},l)}}),ld=y.defineComponent({__name:"ActionBtn",props:{icon:{},tooltip:{},size:{default:30},location:{default:"bottom"},variant:{default:"text"},color:{default:"grey-600"},rounded:{default:"md"}},setup(t){return(i,e)=>(y.openBlock(),y.createBlock(Dr,{size:t.size,onClick:e[0]||(e[0]=s=>i.$emit("action")),variant:t.variant,color:t.color,icon:"",rounded:t.rounded},{default:y.withCtx(()=>[y.createVNode(nr,null,{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(t.icon),1)]),_:1}),t.tooltip?(y.openBlock(),y.createBlock(od,{key:0,activator:"parent",location:t.location},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(t.tooltip),1)]),_:1},8,["location"])):y.createCommentVNode("",!0)]),_:1},8,["size","variant","color","rounded"]))}});function br(t){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},br(t)}var ki=Uint8Array,ai=Uint16Array,ud=Int32Array,cd=new ki([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,0,0,0]),fd=new ki([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,0,0]),Yh=new ki([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),x0=function(t,i){for(var e=new ai(31),s=0;s<31;++s)e[s]=i+=1<<t[s-1];for(var c=new ud(e[30]),s=1;s<30;++s)for(var r=e[s];r<e[s+1];++r)c[r]=r-e[s]<<5|s;return{b:e,r:c}},_0=x0(cd,2),Kb=_0.b,Cf=_0.r;Kb[28]=258,Cf[258]=28;var Yb=x0(fd,0),Zh=Yb.r,Af=new ai(32768);for(var Rr=0;Rr<32768;++Rr){var La=(Rr&43690)>>1|(Rr&21845)<<1;La=(La&52428)>>2|(La&13107)<<2,La=(La&61680)>>4|(La&3855)<<4,Af[Rr]=((La&65280)>>8|(La&255)<<8)>>1}var Go=(function(t,i,e){for(var s=t.length,c=0,r=new ai(i);c<s;++c)t[c]&&++r[t[c]-1];var o=new ai(i);for(c=1;c<i;++c)o[c]=o[c-1]+r[c-1]<<1;var l;if(e){l=new ai(1<<i);var a=15-i;for(c=0;c<s;++c)if(t[c])for(var n=c<<4|t[c],u=i-t[c],h=o[t[c]-1]++<<u,d=h|(1<<u)-1;h<=d;++h)l[Af[h]>>a]=n}else for(l=new ai(s),c=0;c<s;++c)t[c]&&(l[c]=Af[o[t[c]-1]++]>>15-t[c]);return l}),ks=new ki(288);for(var Rr=0;Rr<144;++Rr)ks[Rr]=8;for(var Rr=144;Rr<256;++Rr)ks[Rr]=9;for(var Rr=256;Rr<280;++Rr)ks[Rr]=7;for(var Rr=280;Rr<288;++Rr)ks[Rr]=8;var Su=new ki(32);for(var Rr=0;Rr<32;++Rr)Su[Rr]=5;var Zb=Go(ks,9,0),Jb=Go(Su,5,0),S0=function(t){return(t+7)/8|0},Qb=function(t,i,e){return(e==null||e>t.length)&&(e=t.length),new ki(t.subarray(i,e))},sa=function(t,i,e){e<<=i&7;var s=i/8|0;t[s]|=e,t[s+1]|=e>>8},Uo=function(t,i,e){e<<=i&7;var s=i/8|0;t[s]|=e,t[s+1]|=e>>8,t[s+2]|=e>>16},Rc=function(t,i){for(var e=[],s=0;s<t.length;++s)t[s]&&e.push({s,f:t[s]});var c=e.length,r=e.slice();if(!c)return{t:C0,l:0};if(c==1){var o=new ki(e[0].s+1);return o[e[0].s]=1,{t:o,l:1}}e.sort(function(M,V){return M.f-V.f}),e.push({s:-1,f:25001});var l=e[0],a=e[1],n=0,u=1,h=2;for(e[0]={s:-1,f:l.f+a.f,l,r:a};u!=c-1;)l=e[e[n].f<e[h].f?n++:h++],a=e[n!=u&&e[n].f<e[h].f?n++:h++],e[u++]={s:-1,f:l.f+a.f,l,r:a};for(var d=r[0].s,s=1;s<c;++s)r[s].s>d&&(d=r[s].s);var f=new ai(d+1),m=Nf(e[u-1],f,0);if(m>i){var s=0,g=0,p=m-i,v=1<<p;for(r.sort(function(V,W){return f[W.s]-f[V.s]||V.f-W.f});s<c;++s){var b=r[s].s;if(f[b]>i)g+=v-(1<<m-f[b]),f[b]=i;else break}for(g>>=p;g>0;){var x=r[s].s;f[x]<i?g-=1<<i-f[x]++-1:++s}for(;s>=0&&g;--s){var A=r[s].s;f[A]==i&&(--f[A],++g)}m=i}return{t:new ki(f),l:m}},Nf=function(t,i,e){return t.s==-1?Math.max(Nf(t.l,i,e+1),Nf(t.r,i,e+1)):i[t.s]=e},Jh=function(t){for(var i=t.length;i&&!t[--i];);for(var e=new ai(++i),s=0,c=t[0],r=1,o=function(a){e[s++]=a},l=1;l<=i;++l)if(t[l]==c&&l!=i)++r;else{if(!c&&r>2){for(;r>138;r-=138)o(32754);r>2&&(o(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(o(c),--r;r>6;r-=6)o(8304);r>2&&(o(r-3<<5|8208),r=0)}for(;r--;)o(c);r=1,c=t[l]}return{c:e.subarray(0,s),n:i}},$o=function(t,i){for(var e=0,s=0;s<i.length;++s)e+=t[s]*i[s];return e},k0=function(t,i,e){var s=e.length,c=S0(i+2);t[c]=s&255,t[c+1]=s>>8,t[c+2]=t[c]^255,t[c+3]=t[c+1]^255;for(var r=0;r<s;++r)t[c+r+4]=e[r];return(c+4+s)*8},Qh=function(t,i,e,s,c,r,o,l,a,n,u){sa(i,u++,e),++c[256];for(var h=Rc(c,15),d=h.t,f=h.l,m=Rc(r,15),g=m.t,p=m.l,v=Jh(d),b=v.c,x=v.n,A=Jh(g),M=A.c,V=A.n,W=new ai(19),R=0;R<b.length;++R)++W[b[R]&31];for(var R=0;R<M.length;++R)++W[M[R]&31];for(var F=Rc(W,7),$=F.t,z=F.l,D=19;D>4&&!$[Yh[D-1]];--D);var N=n+5<<3,E=$o(c,ks)+$o(r,Su)+o,C=$o(c,d)+$o(r,g)+o+14+3*D+$o(W,$)+2*W[16]+3*W[17]+7*W[18];if(a>=0&&N<=E&&N<=C)return k0(i,u,t.subarray(a,a+n));var w,S,_,k;if(sa(i,u,1+(C<E)),u+=2,C<E){w=Go(d,f,0),S=d,_=Go(g,p,0),k=g;var T=Go($,z,0);sa(i,u,x-257),sa(i,u+5,V-1),sa(i,u+10,D-4),u+=14;for(var R=0;R<D;++R)sa(i,u+3*R,$[Yh[R]]);u+=3*D;for(var j=[b,M],P=0;P<2;++P)for(var U=j[P],R=0;R<U.length;++R){var q=U[R]&31;sa(i,u,T[q]),u+=$[q],q>15&&(sa(i,u,U[R]>>5&127),u+=U[R]>>12)}}else w=Zb,S=ks,_=Jb,k=Su;for(var R=0;R<l;++R){var Z=s[R];if(Z>255){var q=Z>>18&31;Uo(i,u,w[q+257]),u+=S[q+257],q>7&&(sa(i,u,Z>>23&31),u+=cd[q]);var B=Z&31;Uo(i,u,_[B]),u+=k[B],B>3&&(Uo(i,u,Z>>5&8191),u+=fd[B])}else Uo(i,u,w[Z]),u+=S[Z]}return Uo(i,u,w[256]),u+S[256]},ey=new ud([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),C0=new ki(0),ty=function(t,i,e,s,c,r){var o=r.z||t.length,l=new ki(s+o+5*(1+Math.ceil(o/7e3))+c),a=l.subarray(s,l.length-c),n=r.l,u=(r.r||0)&7;if(i){u&&(a[0]=r.r>>3);for(var h=ey[i-1],d=h>>13,f=h&8191,m=(1<<e)-1,g=r.p||new ai(32768),p=r.h||new ai(m+1),v=Math.ceil(e/3),b=2*v,x=function(re){return(t[re]^t[re+1]<<v^t[re+2]<<b)&m},A=new ud(25e3),M=new ai(288),V=new ai(32),W=0,R=0,F=r.i||0,$=0,z=r.w||0,D=0;F+2<o;++F){var N=x(F),E=F&32767,C=p[N];if(g[E]=C,p[N]=E,z<=F){var w=o-F;if((W>7e3||$>24576)&&(w>423||!n)){u=Qh(t,a,0,A,M,V,R,$,D,F-D,u),$=W=R=0,D=F;for(var S=0;S<286;++S)M[S]=0;for(var S=0;S<30;++S)V[S]=0}var _=2,k=0,T=f,j=E-C&32767;if(w>2&&N==x(F-j))for(var P=Math.min(d,w)-1,U=Math.min(32767,F),q=Math.min(258,w);j<=U&&--T&&E!=C;){if(t[F+_]==t[F+_-j]){for(var Z=0;Z<q&&t[F+Z]==t[F+Z-j];++Z);if(Z>_){if(_=Z,k=j,Z>P)break;for(var B=Math.min(j,Z-2),X=0,S=0;S<B;++S){var L=F-j+S&32767,I=g[L],G=L-I&32767;G>X&&(X=G,C=L)}}}E=C,C=g[E],j+=E-C&32767}if(k){A[$++]=268435456|Cf[_]<<18|Zh[k];var ee=Cf[_]&31,se=Zh[k]&31;R+=cd[ee]+fd[se],++M[257+ee],++V[se],z=F+_,++W}else A[$++]=t[F],++M[t[F]]}}for(F=Math.max(F,z);F<o;++F)A[$++]=t[F],++M[t[F]];u=Qh(t,a,n,A,M,V,R,$,D,F-D,u),n||(r.r=u&7|a[u/8|0]<<3,u-=7,r.h=p,r.p=g,r.i=F,r.w=z)}else{for(var F=r.w||0;F<o+n;F+=65535){var te=F+65535;te>=o&&(a[u/8|0]=n,te=o),u=k0(a,u+1,t.subarray(F,te))}r.i=o}return Qb(l,0,s+S0(u)+c)},A0=function(){var t=1,i=0;return{p:function(e){for(var s=t,c=i,r=e.length|0,o=0;o!=r;){for(var l=Math.min(o+2655,r);o<l;++o)c+=s+=e[o];s=(s&65535)+15*(s>>16),c=(c&65535)+15*(c>>16)}t=s,i=c},d:function(){return t%=65521,i%=65521,(t&255)<<24|(t&65280)<<8|(i&255)<<8|i>>8}}},ry=function(t,i,e,s,c){if(!c&&(c={l:1},i.dictionary)){var r=i.dictionary.subarray(-32768),o=new ki(r.length+t.length);o.set(r),o.set(t,r.length),t=o,c.w=r.length}return ty(t,i.level==null?6:i.level,i.mem==null?c.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+i.mem,e,s,c)},N0=function(t,i,e){for(;e;++i)t[i]=e,e>>>=8},ny=function(t,i){var e=i.level,s=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=s<<6|(i.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,i.dictionary){var c=A0();c.p(i.dictionary),N0(t,2,c.d())}};function Ef(t,i){i||(i={});var e=A0();e.p(t);var s=ry(t,i,i.dictionary?6:2,4);return ny(s,i),N0(s,s.length-4,e.d()),s}var iy=typeof TextDecoder<"u"&&new TextDecoder,ay=0;try{iy.decode(C0,{stream:!0}),ay=1}catch{}function sy(t){if(Array.isArray(t))return t}function oy(t,i){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var s,c,r,o,l=[],a=!0,n=!1;try{if(r=(e=e.call(t)).next,i!==0)for(;!(a=(s=r.call(e)).done)&&(l.push(s.value),l.length!==i);a=!0);}catch(u){n=!0,c=u}finally{try{if(!a&&e.return!=null&&(o=e.return(),Object(o)!==o))return}finally{if(n)throw c}}return l}}function ep(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,s=Array(i);e<i;e++)s[e]=t[e];return s}function ly(t,i){if(t){if(typeof t=="string")return ep(t,i);var e={}.toString.call(t).slice(8,-1);return e==="Object"&&t.constructor&&(e=t.constructor.name),e==="Map"||e==="Set"?Array.from(t):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ep(t,i):void 0}}function uy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tp(t,i){return sy(t)||oy(t,i)||ly(t,i)||uy()}function rp(t,i="utf8"){return new TextDecoder(i).decode(t)}const cy=new TextEncoder;function fy(t){return cy.encode(t)}const dy=1024*8,hy=(()=>{const t=new Uint8Array(4),i=new Uint32Array(t.buffer);return!((i[0]=1)&t[0])})(),Lc={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class dd{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(i=dy,e={}){let s=!1;typeof i=="number"?i=new ArrayBuffer(i):(s=!0,this.lastWrittenByte=i.byteLength);const c=e.offset?e.offset>>>0:0,r=i.byteLength-c;let o=c;(ArrayBuffer.isView(i)||i instanceof dd)&&(i.byteLength!==i.buffer.byteLength&&(o=i.byteOffset+c),i=i.buffer),s?this.lastWrittenByte=r:this.lastWrittenByte=0,this.buffer=i,this.length=r,this.byteLength=r,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,r),this._mark=0,this._marks=[]}available(i=1){return this.offset+i<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(i=1){return this.offset+=i,this}back(i=1){return this.offset-=i,this}seek(i){return this.offset=i,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const i=this._marks.pop();if(i===void 0)throw new Error("Mark stack empty");return this.seek(i),this}rewind(){return this.offset=0,this}ensureAvailable(i=1){if(!this.available(i)){const s=(this.offset+i)*2,c=new Uint8Array(s);c.set(new Uint8Array(this.buffer)),this.buffer=c.buffer,this.length=s,this.byteLength=s,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(i=1){return this.readArray(i,"uint8")}readArray(i,e){const s=Lc[e].BYTES_PER_ELEMENT*i,c=this.byteOffset+this.offset,r=this.buffer.slice(c,c+s);if(this.littleEndian===hy&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(c,c+s));l.reverse();const a=new Lc[e](l.buffer);return this.offset+=s,a.reverse(),a}const o=new Lc[e](r);return this.offset+=s,o}readInt16(){const i=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,i}readUint16(){const i=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,i}readInt32(){const i=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,i}readUint32(){const i=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat32(){const i=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,i}readFloat64(){const i=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,i}readBigInt64(){const i=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,i}readBigUint64(){const i=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,i}readChar(){return String.fromCharCode(this.readInt8())}readChars(i=1){let e="";for(let s=0;s<i;s++)e+=this.readChar();return e}readUtf8(i=1){return rp(this.readBytes(i))}decodeText(i=1,e="utf8"){return rp(this.readBytes(i),e)}writeBoolean(i){return this.writeUint8(i?255:0),this}writeInt8(i){return this.ensureAvailable(1),this._data.setInt8(this.offset++,i),this._updateLastWrittenByte(),this}writeUint8(i){return this.ensureAvailable(1),this._data.setUint8(this.offset++,i),this._updateLastWrittenByte(),this}writeByte(i){return this.writeUint8(i)}writeBytes(i){this.ensureAvailable(i.length);for(let e=0;e<i.length;e++)this._data.setUint8(this.offset++,i[e]);return this._updateLastWrittenByte(),this}writeInt16(i){return this.ensureAvailable(2),this._data.setInt16(this.offset,i,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(i){return this.ensureAvailable(2),this._data.setUint16(this.offset,i,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(i){return this.ensureAvailable(4),this._data.setInt32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(i){return this.ensureAvailable(4),this._data.setUint32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(i){return this.ensureAvailable(4),this._data.setFloat32(this.offset,i,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(i){return this.ensureAvailable(8),this._data.setFloat64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(i){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(i){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,i,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(i){return this.writeUint8(i.charCodeAt(0))}writeChars(i){for(let e=0;e<i.length;e++)this.writeUint8(i.charCodeAt(e));return this}writeUtf8(i){return this.writeBytes(fy(i))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function wo(t){let i=t.length;for(;--i>=0;)t[i]=0}const py=3,my=258,E0=29,gy=256,vy=gy+1+E0,T0=30,by=512,yy=new Array((vy+2)*2);wo(yy);const wy=new Array(T0*2);wo(wy);const xy=new Array(by);wo(xy);const _y=new Array(my-py+1);wo(_y);const Sy=new Array(E0);wo(Sy);const ky=new Array(T0);wo(ky);const Cy=(t,i,e,s)=>{let c=t&65535|0,r=t>>>16&65535|0,o=0;for(;e!==0;){o=e>2e3?2e3:e,e-=o;do c=c+i[s++]|0,r=r+c|0;while(--o);c%=65521,r%=65521}return c|r<<16|0};var Tf=Cy;const Ay=()=>{let t,i=[];for(var e=0;e<256;e++){t=e;for(var s=0;s<8;s++)t=t&1?3988292384^t>>>1:t>>>1;i[e]=t}return i},Ny=new Uint32Array(Ay()),Ey=(t,i,e,s)=>{const c=Ny,r=s+e;t^=-1;for(let o=s;o<r;o++)t=t>>>8^c[(t^i[o])&255];return t^-1};var ji=Ey,Pf={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"},P0={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Ty=(t,i)=>Object.prototype.hasOwnProperty.call(t,i);var Py=function(t){const i=Array.prototype.slice.call(arguments,1);for(;i.length;){const e=i.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const s in e)Ty(e,s)&&(t[s]=e[s])}}return t},My=t=>{let i=0;for(let s=0,c=t.length;s<c;s++)i+=t[s].length;const e=new Uint8Array(i);for(let s=0,c=0,r=t.length;s<r;s++){let o=t[s];e.set(o,c),c+=o.length}return e},M0={assign:Py,flattenChunks:My};let I0=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{I0=!1}const rl=new Uint8Array(256);for(let t=0;t<256;t++)rl[t]=t>=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;rl[254]=rl[254]=1;var Iy=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let i,e,s,c,r,o=t.length,l=0;for(c=0;c<o;c++)e=t.charCodeAt(c),(e&64512)===55296&&c+1<o&&(s=t.charCodeAt(c+1),(s&64512)===56320&&(e=65536+(e-55296<<10)+(s-56320),c++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(i=new Uint8Array(l),r=0,c=0;r<l;c++)e=t.charCodeAt(c),(e&64512)===55296&&c+1<o&&(s=t.charCodeAt(c+1),(s&64512)===56320&&(e=65536+(e-55296<<10)+(s-56320),c++)),e<128?i[r++]=e:e<2048?(i[r++]=192|e>>>6,i[r++]=128|e&63):e<65536?(i[r++]=224|e>>>12,i[r++]=128|e>>>6&63,i[r++]=128|e&63):(i[r++]=240|e>>>18,i[r++]=128|e>>>12&63,i[r++]=128|e>>>6&63,i[r++]=128|e&63);return i};const Ry=(t,i)=>{if(i<65534&&t.subarray&&I0)return String.fromCharCode.apply(null,t.length===i?t:t.subarray(0,i));let e="";for(let s=0;s<i;s++)e+=String.fromCharCode(t[s]);return e};var Ly=(t,i)=>{const e=i||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,i));let s,c;const r=new Array(e*2);for(c=0,s=0;s<e;){let o=t[s++];if(o<128){r[c++]=o;continue}let l=rl[o];if(l>4){r[c++]=65533,s+=l-1;continue}for(o&=l===2?31:l===3?15:7;l>1&&s<e;)o=o<<6|t[s++]&63,l--;if(l>1){r[c++]=65533;continue}o<65536?r[c++]=o:(o-=65536,r[c++]=55296|o>>10&1023,r[c++]=56320|o&1023)}return Ry(r,c)},Oy=(t,i)=>{i=i||t.length,i>t.length&&(i=t.length);let e=i-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?i:e+rl[t[e]]>i?e:i},Mf={string2buf:Iy,buf2string:Ly,utf8border:Oy};function Fy(){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}var By=Fy;const Kl=16209,jy=16191;var Dy=function(i,e){let s,c,r,o,l,a,n,u,h,d,f,m,g,p,v,b,x,A,M,V,W,R,F,$;const z=i.state;s=i.next_in,F=i.input,c=s+(i.avail_in-5),r=i.next_out,$=i.output,o=r-(e-i.avail_out),l=r+(i.avail_out-257),a=z.dmax,n=z.wsize,u=z.whave,h=z.wnext,d=z.window,f=z.hold,m=z.bits,g=z.lencode,p=z.distcode,v=(1<<z.lenbits)-1,b=(1<<z.distbits)-1;e:do{m<15&&(f+=F[s++]<<m,m+=8,f+=F[s++]<<m,m+=8),x=g[f&v];t:for(;;){if(A=x>>>24,f>>>=A,m-=A,A=x>>>16&255,A===0)$[r++]=x&65535;else if(A&16){M=x&65535,A&=15,A&&(m<A&&(f+=F[s++]<<m,m+=8),M+=f&(1<<A)-1,f>>>=A,m-=A),m<15&&(f+=F[s++]<<m,m+=8,f+=F[s++]<<m,m+=8),x=p[f&b];r:for(;;){if(A=x>>>24,f>>>=A,m-=A,A=x>>>16&255,A&16){if(V=x&65535,A&=15,m<A&&(f+=F[s++]<<m,m+=8,m<A&&(f+=F[s++]<<m,m+=8)),V+=f&(1<<A)-1,V>a){i.msg="invalid distance too far back",z.mode=Kl;break e}if(f>>>=A,m-=A,A=r-o,V>A){if(A=V-A,A>u&&z.sane){i.msg="invalid distance too far back",z.mode=Kl;break e}if(W=0,R=d,h===0){if(W+=n-A,A<M){M-=A;do $[r++]=d[W++];while(--A);W=r-V,R=$}}else if(h<A){if(W+=n+h-A,A-=h,A<M){M-=A;do $[r++]=d[W++];while(--A);if(W=0,h<M){A=h,M-=A;do $[r++]=d[W++];while(--A);W=r-V,R=$}}}else if(W+=h-A,A<M){M-=A;do $[r++]=d[W++];while(--A);W=r-V,R=$}for(;M>2;)$[r++]=R[W++],$[r++]=R[W++],$[r++]=R[W++],M-=3;M&&($[r++]=R[W++],M>1&&($[r++]=R[W++]))}else{W=r-V;do $[r++]=$[W++],$[r++]=$[W++],$[r++]=$[W++],M-=3;while(M>2);M&&($[r++]=$[W++],M>1&&($[r++]=$[W++]))}}else if((A&64)===0){x=p[(x&65535)+(f&(1<<A)-1)];continue r}else{i.msg="invalid distance code",z.mode=Kl;break e}break}}else if((A&64)===0){x=g[(x&65535)+(f&(1<<A)-1)];continue t}else if(A&32){z.mode=jy;break e}else{i.msg="invalid literal/length code",z.mode=Kl;break e}break}}while(s<c&&r<l);M=m>>3,s-=M,m-=M<<3,f&=(1<<m)-1,i.next_in=s,i.next_out=r,i.avail_in=s<c?5+(c-s):5-(s-c),i.avail_out=r<l?257+(l-r):257-(r-l),z.hold=f,z.bits=m};const Zs=15,np=852,ip=592,ap=0,Oc=1,sp=2,Vy=new Uint16Array([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]),zy=new Uint8Array([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]),Uy=new Uint16Array([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]),$y=new Uint8Array([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]),qy=(t,i,e,s,c,r,o,l)=>{const a=l.bits;let n=0,u=0,h=0,d=0,f=0,m=0,g=0,p=0,v=0,b=0,x,A,M,V,W,R=null,F;const $=new Uint16Array(Zs+1),z=new Uint16Array(Zs+1);let D=null,N,E,C;for(n=0;n<=Zs;n++)$[n]=0;for(u=0;u<s;u++)$[i[e+u]]++;for(f=a,d=Zs;d>=1&&$[d]===0;d--);if(f>d&&(f=d),d===0)return c[r++]=1<<24|64<<16|0,c[r++]=1<<24|64<<16|0,l.bits=1,0;for(h=1;h<d&&$[h]===0;h++);for(f<h&&(f=h),p=1,n=1;n<=Zs;n++)if(p<<=1,p-=$[n],p<0)return-1;if(p>0&&(t===ap||d!==1))return-1;for(z[1]=0,n=1;n<Zs;n++)z[n+1]=z[n]+$[n];for(u=0;u<s;u++)i[e+u]!==0&&(o[z[i[e+u]]++]=u);if(t===ap?(R=D=o,F=20):t===Oc?(R=Vy,D=zy,F=257):(R=Uy,D=$y,F=0),b=0,u=0,n=h,W=r,m=f,g=0,M=-1,v=1<<f,V=v-1,t===Oc&&v>np||t===sp&&v>ip)return 1;for(;;){N=n-g,o[u]+1<F?(E=0,C=o[u]):o[u]>=F?(E=D[o[u]-F],C=R[o[u]-F]):(E=96,C=0),x=1<<n-g,A=1<<m,h=A;do A-=x,c[W+(b>>g)+A]=N<<24|E<<16|C|0;while(A!==0);for(x=1<<n-1;b&x;)x>>=1;if(x!==0?(b&=x-1,b+=x):b=0,u++,--$[n]===0){if(n===d)break;n=i[e+o[u]]}if(n>f&&(b&V)!==M){for(g===0&&(g=f),W+=h,m=n-g,p=1<<m;m+g<d&&(p-=$[m+g],!(p<=0));)m++,p<<=1;if(v+=1<<m,t===Oc&&v>np||t===sp&&v>ip)return 1;M=b&V,c[M]=f<<24|m<<16|W-r|0}}return b!==0&&(c[W+b]=n-g<<24|64<<16|0),l.bits=f,0};var Xo=qy;const Hy=0,R0=1,L0=2,{Z_FINISH:op,Z_BLOCK:Wy,Z_TREES:Yl,Z_OK:Cs,Z_STREAM_END:Gy,Z_NEED_DICT:Xy,Z_STREAM_ERROR:gi,Z_DATA_ERROR:O0,Z_MEM_ERROR:F0,Z_BUF_ERROR:Ky,Z_DEFLATED:lp}=P0,Uu=16180,up=16181,cp=16182,fp=16183,dp=16184,hp=16185,pp=16186,mp=16187,gp=16188,vp=16189,ku=16190,oa=16191,Fc=16192,bp=16193,Bc=16194,yp=16195,wp=16196,xp=16197,_p=16198,Zl=16199,Jl=16200,Sp=16201,kp=16202,Cp=16203,Ap=16204,Np=16205,jc=16206,Ep=16207,Tp=16208,Or=16209,B0=16210,j0=16211,Yy=852,Zy=592,Jy=15,Qy=Jy,Pp=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function e5(){this.strm=null,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 Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ms=t=>{if(!t)return 1;const i=t.state;return!i||i.strm!==t||i.mode<Uu||i.mode>j0?1:0},D0=t=>{if(Ms(t))return gi;const i=t.state;return t.total_in=t.total_out=i.total=0,t.msg="",i.wrap&&(t.adler=i.wrap&1),i.mode=Uu,i.last=0,i.havedict=0,i.flags=-1,i.dmax=32768,i.head=null,i.hold=0,i.bits=0,i.lencode=i.lendyn=new Int32Array(Yy),i.distcode=i.distdyn=new Int32Array(Zy),i.sane=1,i.back=-1,Cs},V0=t=>{if(Ms(t))return gi;const i=t.state;return i.wsize=0,i.whave=0,i.wnext=0,D0(t)},z0=(t,i)=>{let e;if(Ms(t))return gi;const s=t.state;return i<0?(e=0,i=-i):(e=(i>>4)+5,i<48&&(i&=15)),i&&(i<8||i>15)?gi:(s.window!==null&&s.wbits!==i&&(s.window=null),s.wrap=e,s.wbits=i,V0(t))},U0=(t,i)=>{if(!t)return gi;const e=new e5;t.state=e,e.strm=t,e.window=null,e.mode=Uu;const s=z0(t,i);return s!==Cs&&(t.state=null),s},t5=t=>U0(t,Qy);let Mp=!0,Dc,Vc;const r5=t=>{if(Mp){Dc=new Int32Array(512),Vc=new Int32Array(32);let i=0;for(;i<144;)t.lens[i++]=8;for(;i<256;)t.lens[i++]=9;for(;i<280;)t.lens[i++]=7;for(;i<288;)t.lens[i++]=8;for(Xo(R0,t.lens,0,288,Dc,0,t.work,{bits:9}),i=0;i<32;)t.lens[i++]=5;Xo(L0,t.lens,0,32,Vc,0,t.work,{bits:5}),Mp=!1}t.lencode=Dc,t.lenbits=9,t.distcode=Vc,t.distbits=5},$0=(t,i,e,s)=>{let c;const r=t.state;return r.window===null&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new Uint8Array(r.wsize)),s>=r.wsize?(r.window.set(i.subarray(e-r.wsize,e),0),r.wnext=0,r.whave=r.wsize):(c=r.wsize-r.wnext,c>s&&(c=s),r.window.set(i.subarray(e-s,e-s+c),r.wnext),s-=c,s?(r.window.set(i.subarray(e-s,e),0),r.wnext=s,r.whave=r.wsize):(r.wnext+=c,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=c))),0},n5=(t,i)=>{let e,s,c,r,o,l,a,n,u,h,d,f,m,g,p=0,v,b,x,A,M,V,W,R;const F=new Uint8Array(4);let $,z;const D=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ms(t)||!t.output||!t.input&&t.avail_in!==0)return gi;e=t.state,e.mode===oa&&(e.mode=Fc),o=t.next_out,c=t.output,a=t.avail_out,r=t.next_in,s=t.input,l=t.avail_in,n=e.hold,u=e.bits,h=l,d=a,R=Cs;e:for(;;)switch(e.mode){case Uu:if(e.wrap===0){e.mode=Fc;break}for(;u<16;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(e.wrap&2&&n===35615){e.wbits===0&&(e.wbits=15),e.check=0,F[0]=n&255,F[1]=n>>>8&255,e.check=ji(e.check,F,2,0),n=0,u=0,e.mode=up;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((n&255)<<8)+(n>>8))%31){t.msg="incorrect header check",e.mode=Or;break}if((n&15)!==lp){t.msg="unknown compression method",e.mode=Or;break}if(n>>>=4,u-=4,W=(n&15)+8,e.wbits===0&&(e.wbits=W),W>15||W>e.wbits){t.msg="invalid window size",e.mode=Or;break}e.dmax=1<<e.wbits,e.flags=0,t.adler=e.check=1,e.mode=n&512?vp:oa,n=0,u=0;break;case up:for(;u<16;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(e.flags=n,(e.flags&255)!==lp){t.msg="unknown compression method",e.mode=Or;break}if(e.flags&57344){t.msg="unknown header flags set",e.mode=Or;break}e.head&&(e.head.text=n>>8&1),e.flags&512&&e.wrap&4&&(F[0]=n&255,F[1]=n>>>8&255,e.check=ji(e.check,F,2,0)),n=0,u=0,e.mode=cp;case cp:for(;u<32;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}e.head&&(e.head.time=n),e.flags&512&&e.wrap&4&&(F[0]=n&255,F[1]=n>>>8&255,F[2]=n>>>16&255,F[3]=n>>>24&255,e.check=ji(e.check,F,4,0)),n=0,u=0,e.mode=fp;case fp:for(;u<16;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}e.head&&(e.head.xflags=n&255,e.head.os=n>>8),e.flags&512&&e.wrap&4&&(F[0]=n&255,F[1]=n>>>8&255,e.check=ji(e.check,F,2,0)),n=0,u=0,e.mode=dp;case dp:if(e.flags&1024){for(;u<16;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}e.length=n,e.head&&(e.head.extra_len=n),e.flags&512&&e.wrap&4&&(F[0]=n&255,F[1]=n>>>8&255,e.check=ji(e.check,F,2,0)),n=0,u=0}else e.head&&(e.head.extra=null);e.mode=hp;case hp:if(e.flags&1024&&(f=e.length,f>l&&(f=l),f&&(e.head&&(W=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(s.subarray(r,r+f),W)),e.flags&512&&e.wrap&4&&(e.check=ji(e.check,s,f,r)),l-=f,r+=f,e.length-=f),e.length))break e;e.length=0,e.mode=pp;case pp:if(e.flags&2048){if(l===0)break e;f=0;do W=s[r+f++],e.head&&W&&e.length<65536&&(e.head.name+=String.fromCharCode(W));while(W&&f<l);if(e.flags&512&&e.wrap&4&&(e.check=ji(e.check,s,f,r)),l-=f,r+=f,W)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=mp;case mp:if(e.flags&4096){if(l===0)break e;f=0;do W=s[r+f++],e.head&&W&&e.length<65536&&(e.head.comment+=String.fromCharCode(W));while(W&&f<l);if(e.flags&512&&e.wrap&4&&(e.check=ji(e.check,s,f,r)),l-=f,r+=f,W)break e}else e.head&&(e.head.comment=null);e.mode=gp;case gp:if(e.flags&512){for(;u<16;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(e.wrap&4&&n!==(e.check&65535)){t.msg="header crc mismatch",e.mode=Or;break}n=0,u=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=oa;break;case vp:for(;u<32;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}t.adler=e.check=Pp(n),n=0,u=0,e.mode=ku;case ku:if(e.havedict===0)return t.next_out=o,t.avail_out=a,t.next_in=r,t.avail_in=l,e.hold=n,e.bits=u,Xy;t.adler=e.check=1,e.mode=oa;case oa:if(i===Wy||i===Yl)break e;case Fc:if(e.last){n>>>=u&7,u-=u&7,e.mode=jc;break}for(;u<3;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}switch(e.last=n&1,n>>>=1,u-=1,n&3){case 0:e.mode=bp;break;case 1:if(r5(e),e.mode=Zl,i===Yl){n>>>=2,u-=2;break e}break;case 2:e.mode=wp;break;case 3:t.msg="invalid block type",e.mode=Or}n>>>=2,u-=2;break;case bp:for(n>>>=u&7,u-=u&7;u<32;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if((n&65535)!==(n>>>16^65535)){t.msg="invalid stored block lengths",e.mode=Or;break}if(e.length=n&65535,n=0,u=0,e.mode=Bc,i===Yl)break e;case Bc:e.mode=yp;case yp:if(f=e.length,f){if(f>l&&(f=l),f>a&&(f=a),f===0)break e;c.set(s.subarray(r,r+f),o),l-=f,r+=f,a-=f,o+=f,e.length-=f;break}e.mode=oa;break;case wp:for(;u<14;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(e.nlen=(n&31)+257,n>>>=5,u-=5,e.ndist=(n&31)+1,n>>>=5,u-=5,e.ncode=(n&15)+4,n>>>=4,u-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Or;break}e.have=0,e.mode=xp;case xp:for(;e.have<e.ncode;){for(;u<3;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}e.lens[D[e.have++]]=n&7,n>>>=3,u-=3}for(;e.have<19;)e.lens[D[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,$={bits:e.lenbits},R=Xo(Hy,e.lens,0,19,e.lencode,0,e.work,$),e.lenbits=$.bits,R){t.msg="invalid code lengths set",e.mode=Or;break}e.have=0,e.mode=_p;case _p:for(;e.have<e.nlen+e.ndist;){for(;p=e.lencode[n&(1<<e.lenbits)-1],v=p>>>24,b=p>>>16&255,x=p&65535,!(v<=u);){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(x<16)n>>>=v,u-=v,e.lens[e.have++]=x;else{if(x===16){for(z=v+2;u<z;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(n>>>=v,u-=v,e.have===0){t.msg="invalid bit length repeat",e.mode=Or;break}W=e.lens[e.have-1],f=3+(n&3),n>>>=2,u-=2}else if(x===17){for(z=v+3;u<z;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}n>>>=v,u-=v,W=0,f=3+(n&7),n>>>=3,u-=3}else{for(z=v+7;u<z;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}n>>>=v,u-=v,W=0,f=11+(n&127),n>>>=7,u-=7}if(e.have+f>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Or;break}for(;f--;)e.lens[e.have++]=W}}if(e.mode===Or)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Or;break}if(e.lenbits=9,$={bits:e.lenbits},R=Xo(R0,e.lens,0,e.nlen,e.lencode,0,e.work,$),e.lenbits=$.bits,R){t.msg="invalid literal/lengths set",e.mode=Or;break}if(e.distbits=6,e.distcode=e.distdyn,$={bits:e.distbits},R=Xo(L0,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,$),e.distbits=$.bits,R){t.msg="invalid distances set",e.mode=Or;break}if(e.mode=Zl,i===Yl)break e;case Zl:e.mode=Jl;case Jl:if(l>=6&&a>=258){t.next_out=o,t.avail_out=a,t.next_in=r,t.avail_in=l,e.hold=n,e.bits=u,Dy(t,d),o=t.next_out,c=t.output,a=t.avail_out,r=t.next_in,s=t.input,l=t.avail_in,n=e.hold,u=e.bits,e.mode===oa&&(e.back=-1);break}for(e.back=0;p=e.lencode[n&(1<<e.lenbits)-1],v=p>>>24,b=p>>>16&255,x=p&65535,!(v<=u);){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(b&&(b&240)===0){for(A=v,M=b,V=x;p=e.lencode[V+((n&(1<<A+M)-1)>>A)],v=p>>>24,b=p>>>16&255,x=p&65535,!(A+v<=u);){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}n>>>=A,u-=A,e.back+=A}if(n>>>=v,u-=v,e.back+=v,e.length=x,b===0){e.mode=Np;break}if(b&32){e.back=-1,e.mode=oa;break}if(b&64){t.msg="invalid literal/length code",e.mode=Or;break}e.extra=b&15,e.mode=Sp;case Sp:if(e.extra){for(z=e.extra;u<z;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}e.length+=n&(1<<e.extra)-1,n>>>=e.extra,u-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=kp;case kp:for(;p=e.distcode[n&(1<<e.distbits)-1],v=p>>>24,b=p>>>16&255,x=p&65535,!(v<=u);){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if((b&240)===0){for(A=v,M=b,V=x;p=e.distcode[V+((n&(1<<A+M)-1)>>A)],v=p>>>24,b=p>>>16&255,x=p&65535,!(A+v<=u);){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}n>>>=A,u-=A,e.back+=A}if(n>>>=v,u-=v,e.back+=v,b&64){t.msg="invalid distance code",e.mode=Or;break}e.offset=x,e.extra=b&15,e.mode=Cp;case Cp:if(e.extra){for(z=e.extra;u<z;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}e.offset+=n&(1<<e.extra)-1,n>>>=e.extra,u-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Or;break}e.mode=Ap;case Ap:if(a===0)break e;if(f=d-a,e.offset>f){if(f=e.offset-f,f>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Or;break}f>e.wnext?(f-=e.wnext,m=e.wsize-f):m=e.wnext-f,f>e.length&&(f=e.length),g=e.window}else g=c,m=o-e.offset,f=e.length;f>a&&(f=a),a-=f,e.length-=f;do c[o++]=g[m++];while(--f);e.length===0&&(e.mode=Jl);break;case Np:if(a===0)break e;c[o++]=e.length,a--,e.mode=Jl;break;case jc:if(e.wrap){for(;u<32;){if(l===0)break e;l--,n|=s[r++]<<u,u+=8}if(d-=a,t.total_out+=d,e.total+=d,e.wrap&4&&d&&(t.adler=e.check=e.flags?ji(e.check,c,d,o-d):Tf(e.check,c,d,o-d)),d=a,e.wrap&4&&(e.flags?n:Pp(n))!==e.check){t.msg="incorrect data check",e.mode=Or;break}n=0,u=0}e.mode=Ep;case Ep:if(e.wrap&&e.flags){for(;u<32;){if(l===0)break e;l--,n+=s[r++]<<u,u+=8}if(e.wrap&4&&n!==(e.total&4294967295)){t.msg="incorrect length check",e.mode=Or;break}n=0,u=0}e.mode=Tp;case Tp:R=Gy;break e;case Or:R=O0;break e;case B0:return F0;case j0:default:return gi}return t.next_out=o,t.avail_out=a,t.next_in=r,t.avail_in=l,e.hold=n,e.bits=u,(e.wsize||d!==t.avail_out&&e.mode<Or&&(e.mode<jc||i!==op))&&$0(t,t.output,t.next_out,d-t.avail_out),h-=t.avail_in,d-=t.avail_out,t.total_in+=h,t.total_out+=d,e.total+=d,e.wrap&4&&d&&(t.adler=e.check=e.flags?ji(e.check,c,d,t.next_out-d):Tf(e.check,c,d,t.next_out-d)),t.data_type=e.bits+(e.last?64:0)+(e.mode===oa?128:0)+(e.mode===Zl||e.mode===Bc?256:0),(h===0&&d===0||i===op)&&R===Cs&&(R=Ky),R},i5=t=>{if(Ms(t))return gi;let i=t.state;return i.window&&(i.window=null),t.state=null,Cs},a5=(t,i)=>{if(Ms(t))return gi;const e=t.state;return(e.wrap&2)===0?gi:(e.head=i,i.done=!1,Cs)},s5=(t,i)=>{const e=i.length;let s,c,r;return Ms(t)||(s=t.state,s.wrap!==0&&s.mode!==ku)?gi:s.mode===ku&&(c=1,c=Tf(c,i,e,0),c!==s.check)?O0:(r=$0(t,i,e,e),r?(s.mode=B0,F0):(s.havedict=1,Cs))};var o5=V0,l5=z0,u5=D0,c5=t5,f5=U0,d5=n5,h5=i5,p5=a5,m5=s5,g5="pako inflate (from Nodeca project)",la={inflateReset:o5,inflateReset2:l5,inflateResetKeep:u5,inflateInit:c5,inflateInit2:f5,inflate:d5,inflateEnd:h5,inflateGetHeader:p5,inflateSetDictionary:m5,inflateInfo:g5};function v5(){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}var b5=v5;const q0=Object.prototype.toString,{Z_NO_FLUSH:y5,Z_FINISH:w5,Z_OK:nl,Z_STREAM_END:zc,Z_NEED_DICT:Uc,Z_STREAM_ERROR:x5,Z_DATA_ERROR:Ip,Z_MEM_ERROR:_5}=P0;function gl(t){this.options=M0.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});const i=this.options;i.raw&&i.windowBits>=0&&i.windowBits<16&&(i.windowBits=-i.windowBits,i.windowBits===0&&(i.windowBits=-15)),i.windowBits>=0&&i.windowBits<16&&!(t&&t.windowBits)&&(i.windowBits+=32),i.windowBits>15&&i.windowBits<48&&(i.windowBits&15)===0&&(i.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new By,this.strm.avail_out=0;let e=la.inflateInit2(this.strm,i.windowBits);if(e!==nl)throw new Error(Pf[e]);if(this.header=new b5,la.inflateGetHeader(this.strm,this.header),i.dictionary&&(typeof i.dictionary=="string"?i.dictionary=Mf.string2buf(i.dictionary):q0.call(i.dictionary)==="[object ArrayBuffer]"&&(i.dictionary=new Uint8Array(i.dictionary)),i.raw&&(e=la.inflateSetDictionary(this.strm,i.dictionary),e!==nl)))throw new Error(Pf[e])}gl.prototype.push=function(t,i){const e=this.strm,s=this.options.chunkSize,c=this.options.dictionary;let r,o,l;if(this.ended)return!1;for(i===~~i?o=i:o=i===!0?w5:y5,q0.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(s),e.next_out=0,e.avail_out=s),r=la.inflate(e,o),r===Uc&&c&&(r=la.inflateSetDictionary(e,c),r===nl?r=la.inflate(e,o):r===Ip&&(r=Uc));e.avail_in>0&&r===zc&&e.state.wrap>0&&t[e.next_in]!==0;)la.inflateReset(e),r=la.inflate(e,o);switch(r){case x5:case Ip:case Uc:case _5:return this.onEnd(r),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||r===zc))if(this.options.to==="string"){let a=Mf.utf8border(e.output,e.next_out),n=e.next_out-a,u=Mf.buf2string(e.output,a);e.next_out=n,e.avail_out=s-n,n&&e.output.set(e.output.subarray(a,a+n),0),this.onData(u)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(r===nl&&l===0)){if(r===zc)return r=la.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};gl.prototype.onData=function(t){this.chunks.push(t)};gl.prototype.onEnd=function(t){t===nl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=M0.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function S5(t,i){const e=new gl(i);if(e.push(t),e.err)throw e.msg||Pf[e.err];return e.result}var k5=gl,C5=S5,A5={Inflate:k5,inflate:C5};const{Inflate:N5,inflate:E5}=A5;var Rp=N5,T5=E5;const H0=[];for(let t=0;t<256;t++){let i=t;for(let e=0;e<8;e++)i&1?i=3988292384^i>>>1:i=i>>>1;H0[t]=i}const Lp=4294967295;function P5(t,i,e){let s=t;for(let c=0;c<e;c++)s=H0[(s^i[c])&255]^s>>>8;return s}function M5(t,i){return(P5(Lp,t,i)^Lp)>>>0}function Op(t,i,e){const s=t.readUint32(),c=M5(new Uint8Array(t.buffer,t.byteOffset+t.offset-i-4,i),i);if(c!==s)throw new Error(`CRC mismatch for chunk ${e}. Expected ${s}, found ${c}`)}function W0(t,i,e){for(let s=0;s<e;s++)i[s]=t[s]}function G0(t,i,e,s){let c=0;for(;c<s;c++)i[c]=t[c];for(;c<e;c++)i[c]=t[c]+i[c-s]&255}function X0(t,i,e,s){let c=0;if(e.length===0)for(;c<s;c++)i[c]=t[c];else for(;c<s;c++)i[c]=t[c]+e[c]&255}function K0(t,i,e,s,c){let r=0;if(e.length===0){for(;r<c;r++)i[r]=t[r];for(;r<s;r++)i[r]=t[r]+(i[r-c]>>1)&255}else{for(;r<c;r++)i[r]=t[r]+(e[r]>>1)&255;for(;r<s;r++)i[r]=t[r]+(i[r-c]+e[r]>>1)&255}}function Y0(t,i,e,s,c){let r=0;if(e.length===0){for(;r<c;r++)i[r]=t[r];for(;r<s;r++)i[r]=t[r]+i[r-c]&255}else{for(;r<c;r++)i[r]=t[r]+e[r]&255;for(;r<s;r++)i[r]=t[r]+I5(i[r-c],e[r],e[r-c])&255}}function I5(t,i,e){const s=t+i-e,c=Math.abs(s-t),r=Math.abs(s-i),o=Math.abs(s-e);return c<=r&&c<=o?t:r<=o?i:e}function R5(t,i,e,s,c,r){switch(t){case 0:W0(i,e,c);break;case 1:G0(i,e,c,r);break;case 2:X0(i,e,s,c);break;case 3:K0(i,e,s,c,r);break;case 4:Y0(i,e,s,c,r);break;default:throw new Error(`Unsupported filter: ${t}`)}}const L5=new Uint16Array([255]),O5=new Uint8Array(L5.buffer),F5=O5[0]===255;function B5(t){const{data:i,width:e,height:s,channels:c,depth:r}=t,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(r/8)*c,a=new Uint8Array(s*e*l);let n=0;for(let u=0;u<7;u++){const h=o[u],d=Math.ceil((e-h.x)/h.xStep),f=Math.ceil((s-h.y)/h.yStep);if(d<=0||f<=0)continue;const m=d*l,g=new Uint8Array(m);for(let p=0;p<f;p++){const v=i[n++],b=i.subarray(n,n+m);n+=m;const x=new Uint8Array(m);R5(v,b,x,g,m,l),g.set(x);for(let A=0;A<d;A++){const M=h.x+A*h.xStep,V=h.y+p*h.yStep;if(!(M>=e||V>=s))for(let W=0;W<l;W++)a[(V*e+M)*l+W]=x[A*l+W]}}}if(r===16){const u=new Uint16Array(a.buffer);if(F5)for(let h=0;h<u.length;h++)u[h]=j5(u[h]);return u}else return a}function j5(t){return(t&255)<<8|t>>8&255}const D5=new Uint16Array([255]),V5=new Uint8Array(D5.buffer),z5=V5[0]===255,U5=new Uint8Array(0);function Fp(t){const{data:i,width:e,height:s,channels:c,depth:r}=t,o=Math.ceil(r/8)*c,l=Math.ceil(r/8*c*e),a=new Uint8Array(s*l);let n=U5,u=0,h,d;for(let f=0;f<s;f++){switch(h=i.subarray(u+1,u+1+l),d=a.subarray(f*l,(f+1)*l),i[u]){case 0:W0(h,d,l);break;case 1:G0(h,d,l,o);break;case 2:X0(h,d,n,l);break;case 3:K0(h,d,n,l,o);break;case 4:Y0(h,d,n,l,o);break;default:throw new Error(`Unsupported filter: ${i[u]}`)}n=d,u+=l+1}if(r===16){const f=new Uint16Array(a.buffer);if(z5)for(let m=0;m<f.length;m++)f[m]=$5(f[m]);return f}else return a}function $5(t){return(t&255)<<8|t>>8&255}const uu=Uint8Array.of(137,80,78,71,13,10,26,10);function Bp(t){if(!q5(t.readBytes(uu.length)))throw new Error("wrong PNG signature")}function q5(t){if(t.length<uu.length)return!1;for(let i=0;i<uu.length;i++)if(t[i]!==uu[i])return!1;return!0}const H5="tEXt",W5=0,Z0=new TextDecoder("latin1");function G5(t){if(K5(t),t.length===0||t.length>79)throw new Error("keyword length must be between 1 and 79")}const X5=/^[\u0000-\u00FF]*$/;function K5(t){if(!X5.test(t))throw new Error("invalid latin1 text")}function Y5(t,i,e){const s=J0(i);t[s]=Z5(i,e-s.length-1)}function J0(t){for(t.mark();t.readByte()!==W5;);const i=t.offset;t.reset();const e=Z0.decode(t.readBytes(i-t.offset-1));return t.skip(1),G5(e),e}function Z5(t,i){return Z0.decode(t.readBytes(i))}const ri={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},$c={UNKNOWN:-1,DEFLATE:0},jp={UNKNOWN:-1,ADAPTIVE:0},qc={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ql={NONE:0,BACKGROUND:1,PREVIOUS:2},Hc={SOURCE:0,OVER:1};class J5 extends dd{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(i,e={}){super(i);const{checkCrc:s=!1}=e;this._checkCrc=s,this._inflator=new Rp,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=$c.UNKNOWN,this._filterMethod=jp.UNKNOWN,this._interlaceMethod=qc.UNKNOWN,this._colorType=ri.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Bp(this);!this._end;){const i=this.readUint32(),e=this.readChars(4);this.decodeChunk(i,e)}return this.decodeImage(),this._png}decodeApng(){for(Bp(this);!this._end;){const i=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(i,e)}return this.decodeApngImage(),this._apng}decodeChunk(i,e){const s=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(i);break;case"IDAT":this.decodeIDAT(i);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(i);break;case"iCCP":this.decodeiCCP(i);break;case H5:Y5(this._png.text,this,i);break;case"pHYs":this.decodepHYs();break;default:this.skip(i);break}if(this.offset-s!==i)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Op(this,i+4,e):this.skip(4)}decodeApngChunk(i,e){const s=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(i);break;default:this.decodeChunk(i,e),this.offset=s+i;break}if(this.offset-s!==i)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Op(this,i+4,e):this.skip(4)}decodeIHDR(){const i=this._png;i.width=this.readUint32(),i.height=this.readUint32(),i.depth=Q5(this.readUint8());const e=this.readUint8();this._colorType=e;let s;switch(e){case ri.GREYSCALE:s=1;break;case ri.TRUECOLOUR:s=3;break;case ri.INDEXED_COLOUR:s=1;break;case ri.GREYSCALE_ALPHA:s=2;break;case ri.TRUECOLOUR_ALPHA:s=4;break;case ri.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=s,this._compressionMethod=this.readUint8(),this._compressionMethod!==$c.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const i={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(i)}decodePLTE(i){if(i%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${i}`);const e=i/3;this._hasPalette=!0;const s=[];this._palette=s;for(let c=0;c<e;c++)s.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(i){this._writingDataChunks=!0;const e=i,s=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,s,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(i)}decodeFDAT(i){this._writingDataChunks=!0;let e=i,s=this.offset+this.byteOffset;if(s+=4,e-=4,this._inflator.push(new Uint8Array(this.buffer,s,e)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(i)}decodetRNS(i){switch(this._colorType){case ri.GREYSCALE:case ri.TRUECOLOUR:{if(i%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${i}`);if(i/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${i/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(i/2);for(let e=0;e<i/2;e++)this._transparency[e]=this.readUint16();break}case ri.INDEXED_COLOUR:{if(i>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${i} vs ${this._palette.length})`);let e=0;for(;e<i;e++){const s=this.readByte();this._palette[e].push(s)}for(;e<this._palette.length;e++)this._palette[e].push(255);break}case ri.UNKNOWN:case ri.GREYSCALE_ALPHA:case ri.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(i){const e=J0(this),s=this.readUint8();if(s!==$c.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${s}`);const c=this.readBytes(i-e.length-2);this._png.iccEmbeddedProfile={name:e,profile:T5(c)}}decodepHYs(){const i=this.readUint32(),e=this.readUint32(),s=this.readByte();this._png.resolution={x:i,y:e,unit:s}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let i=0;i<this._numberOfFrames;i++){const e={sequenceNumber:this._frames[i].sequenceNumber,delayNumber:this._frames[i].delayNumber,delayDenominator:this._frames[i].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},s=this._frames.at(i);if(s){if(s.data=Fp({data:s.data,width:s.width,height:s.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),i===0||s.xOffset===0&&s.yOffset===0&&s.width===this._png.width&&s.height===this._png.height)e.data=s.data;else{const c=this._apng.frames.at(i-1);this.disposeFrame(s,c,e),this.addFrameDataToCanvas(e,s)}this._apng.frames.push(e)}}return this._apng}disposeFrame(i,e,s){switch(i.disposeOp){case Ql.NONE:break;case Ql.BACKGROUND:for(let c=0;c<this._png.height;c++)for(let r=0;r<this._png.width;r++){const o=(c*i.width+r)*this._png.channels;for(let l=0;l<this._png.channels;l++)s.data[o+l]=0}break;case Ql.PREVIOUS:s.data.set(e.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(i,e){const s=1<<this._png.depth,c=(r,o)=>{const l=((r+e.yOffset)*this._png.width+e.xOffset+o)*this._png.channels,a=(r*e.width+o)*this._png.channels;return{index:l,frameIndex:a}};switch(e.blendOp){case Hc.SOURCE:for(let r=0;r<e.height;r++)for(let o=0;o<e.width;o++){const{index:l,frameIndex:a}=c(r,o);for(let n=0;n<this._png.channels;n++)i.data[l+n]=e.data[a+n]}break;case Hc.OVER:for(let r=0;r<e.height;r++)for(let o=0;o<e.width;o++){const{index:l,frameIndex:a}=c(r,o);for(let n=0;n<this._png.channels;n++){const u=e.data[a+this._png.channels-1]/s,h=n%(this._png.channels-1)===0?1:e.data[a+n],d=Math.floor(u*h+(1-u)*i.data[l+n]);i.data[l+n]+=d}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const i=this._isAnimated?(this._frames?.at(0)).data:this._inflator.result;if(this._filterMethod!==jp.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===qc.NO_INTERLACE)this._png.data=Fp({data:i,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===qc.ADAM7)this._png.data=B5({data:i,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const i=this._inflator.result,e=this._frames.at(-1);e?e.data=i:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ql.NONE,blendOp:Hc.SOURCE,data:i}),this._inflator=new Rp,this._writingDataChunks=!1}}function Q5(t){if(t!==1&&t!==2&&t!==4&&t!==8&&t!==16)throw new Error(`invalid bit depth: ${t}`);return t}var Dp;(function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.METRE=1]="METRE"})(Dp||(Dp={}));function ew(t,i){return new J5(t,i).decode()}var Ut=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Wc(){Ut.console&&typeof Ut.console.log=="function"&&Ut.console.log.apply(Ut.console,arguments)}var kr={log:Wc,warn:function(t){Ut.console&&(typeof Ut.console.warn=="function"?Ut.console.warn.apply(Ut.console,arguments):Wc.call(null,arguments))},error:function(t){Ut.console&&(typeof Ut.console.error=="function"?Ut.console.error.apply(Ut.console,arguments):Wc(t))}};function Gc(t,i,e){var s=new XMLHttpRequest;s.open("GET",t),s.responseType="blob",s.onload=function(){ps(s.response,i,e)},s.onerror=function(){kr.error("could not download file")},s.send()}function Vp(t){var i=new XMLHttpRequest;i.open("HEAD",t,!1);try{i.send()}catch{}return i.status>=200&&i.status<=299}function eu(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var i=document.createEvent("MouseEvents");i.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}var ps=Ut.saveAs||((typeof window>"u"?"undefined":br(window))!=="object"||window!==Ut?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,i,e){var s=Ut.URL||Ut.webkitURL,c=document.createElement("a");i=i||t.name||"download",c.download=i,c.rel="noopener",typeof t=="string"?(c.href=t,c.origin!==location.origin?Vp(c.href)?Gc(t,i,e):eu(c,c.target="_blank"):eu(c)):(c.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(c.href)},4e4),setTimeout(function(){eu(c)},0))}:"msSaveOrOpenBlob"in navigator?function(t,i,e){if(i=i||t.name||"download",typeof t=="string")if(Vp(t))Gc(t,i,e);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout(function(){eu(s)})}else navigator.msSaveOrOpenBlob((function(c,r){return r===void 0?r={autoBom:!1}:br(r)!=="object"&&(kr.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c})(t,e),i)}:function(t,i,e,s){if((s=s||open("","_blank"))&&(s.document.title=s.document.body.innerText="downloading..."),typeof t=="string")return Gc(t,i,e);var c=t.type==="application/octet-stream",r=/constructor/i.test(Ut.HTMLElement)||Ut.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||c&&r)&&(typeof FileReader>"u"?"undefined":br(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var u=l.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),s?s.location.href=u:location=u,s=null},l.readAsDataURL(t)}else{var a=Ut.URL||Ut.webkitURL,n=a.createObjectURL(t);s?s.location=n:location.href=n,s=null,setTimeout(function(){a.revokeObjectURL(n)},4e4)}});function Q0(t){var i;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],s=0;s<e.length;s++){var c=e[s].re,r=e[s].process,o=c.exec(t);o&&(i=r(o),this.r=i[0],this.g=i[1],this.b=i[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),a=this.g.toString(16),n=this.b.toString(16);return l.length==1&&(l="0"+l),a.length==1&&(a="0"+a),n.length==1&&(n="0"+n),"#"+l+a+n}}var cu=Ut.atob.bind(Ut),zp=Ut.btoa.bind(Ut);function Xc(t,i){var e=t[0],s=t[1],c=t[2],r=t[3];e=Sn(e,s,c,r,i[0],7,-680876936),r=Sn(r,e,s,c,i[1],12,-389564586),c=Sn(c,r,e,s,i[2],17,606105819),s=Sn(s,c,r,e,i[3],22,-1044525330),e=Sn(e,s,c,r,i[4],7,-176418897),r=Sn(r,e,s,c,i[5],12,1200080426),c=Sn(c,r,e,s,i[6],17,-1473231341),s=Sn(s,c,r,e,i[7],22,-45705983),e=Sn(e,s,c,r,i[8],7,1770035416),r=Sn(r,e,s,c,i[9],12,-1958414417),c=Sn(c,r,e,s,i[10],17,-42063),s=Sn(s,c,r,e,i[11],22,-1990404162),e=Sn(e,s,c,r,i[12],7,1804603682),r=Sn(r,e,s,c,i[13],12,-40341101),c=Sn(c,r,e,s,i[14],17,-1502002290),e=kn(e,s=Sn(s,c,r,e,i[15],22,1236535329),c,r,i[1],5,-165796510),r=kn(r,e,s,c,i[6],9,-1069501632),c=kn(c,r,e,s,i[11],14,643717713),s=kn(s,c,r,e,i[0],20,-373897302),e=kn(e,s,c,r,i[5],5,-701558691),r=kn(r,e,s,c,i[10],9,38016083),c=kn(c,r,e,s,i[15],14,-660478335),s=kn(s,c,r,e,i[4],20,-405537848),e=kn(e,s,c,r,i[9],5,568446438),r=kn(r,e,s,c,i[14],9,-1019803690),c=kn(c,r,e,s,i[3],14,-187363961),s=kn(s,c,r,e,i[8],20,1163531501),e=kn(e,s,c,r,i[13],5,-1444681467),r=kn(r,e,s,c,i[2],9,-51403784),c=kn(c,r,e,s,i[7],14,1735328473),e=Cn(e,s=kn(s,c,r,e,i[12],20,-1926607734),c,r,i[5],4,-378558),r=Cn(r,e,s,c,i[8],11,-2022574463),c=Cn(c,r,e,s,i[11],16,1839030562),s=Cn(s,c,r,e,i[14],23,-35309556),e=Cn(e,s,c,r,i[1],4,-1530992060),r=Cn(r,e,s,c,i[4],11,1272893353),c=Cn(c,r,e,s,i[7],16,-155497632),s=Cn(s,c,r,e,i[10],23,-1094730640),e=Cn(e,s,c,r,i[13],4,681279174),r=Cn(r,e,s,c,i[0],11,-358537222),c=Cn(c,r,e,s,i[3],16,-722521979),s=Cn(s,c,r,e,i[6],23,76029189),e=Cn(e,s,c,r,i[9],4,-640364487),r=Cn(r,e,s,c,i[12],11,-421815835),c=Cn(c,r,e,s,i[15],16,530742520),e=An(e,s=Cn(s,c,r,e,i[2],23,-995338651),c,r,i[0],6,-198630844),r=An(r,e,s,c,i[7],10,1126891415),c=An(c,r,e,s,i[14],15,-1416354905),s=An(s,c,r,e,i[5],21,-57434055),e=An(e,s,c,r,i[12],6,1700485571),r=An(r,e,s,c,i[3],10,-1894986606),c=An(c,r,e,s,i[10],15,-1051523),s=An(s,c,r,e,i[1],21,-2054922799),e=An(e,s,c,r,i[8],6,1873313359),r=An(r,e,s,c,i[15],10,-30611744),c=An(c,r,e,s,i[6],15,-1560198380),s=An(s,c,r,e,i[13],21,1309151649),e=An(e,s,c,r,i[4],6,-145523070),r=An(r,e,s,c,i[11],10,-1120210379),c=An(c,r,e,s,i[2],15,718787259),s=An(s,c,r,e,i[9],21,-343485551),t[0]=ja(e,t[0]),t[1]=ja(s,t[1]),t[2]=ja(c,t[2]),t[3]=ja(r,t[3])}function $u(t,i,e,s,c,r){return i=ja(ja(i,t),ja(s,r)),ja(i<<c|i>>>32-c,e)}function Sn(t,i,e,s,c,r,o){return $u(i&e|~i&s,t,i,c,r,o)}function kn(t,i,e,s,c,r,o){return $u(i&s|e&~s,t,i,c,r,o)}function Cn(t,i,e,s,c,r,o){return $u(i^e^s,t,i,c,r,o)}function An(t,i,e,s,c,r,o){return $u(e^(i|~s),t,i,c,r,o)}function e1(t){var i,e=t.length,s=[1732584193,-271733879,-1732584194,271733878];for(i=64;i<=t.length;i+=64)Xc(s,tw(t.substring(i-64,i)));t=t.substring(i-64);var c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<t.length;i++)c[i>>2]|=t.charCodeAt(i)<<(i%4<<3);if(c[i>>2]|=128<<(i%4<<3),i>55)for(Xc(s,c),i=0;i<16;i++)c[i]=0;return c[14]=8*e,Xc(s,c),s}function tw(t){var i,e=[];for(i=0;i<64;i+=4)e[i>>2]=t.charCodeAt(i)+(t.charCodeAt(i+1)<<8)+(t.charCodeAt(i+2)<<16)+(t.charCodeAt(i+3)<<24);return e}var Up="0123456789abcdef".split("");function rw(t){for(var i="",e=0;e<4;e++)i+=Up[t>>8*e+4&15]+Up[t>>8*e&15];return i}function nw(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function If(t){return e1(t).map(nw).join("")}var iw=(function(t){for(var i=0;i<t.length;i++)t[i]=rw(t[i]);return t.join("")})(e1("hello"))!="5d41402abc4b2a76b9719d911017c592";function ja(t,i){if(iw){var e=(65535&t)+(65535&i);return(t>>16)+(i>>16)+(e>>16)<<16|65535&e}return t+i&4294967295}function Rf(t,i){var e,s,c,r;if(t!==e){for(var o=(c=t,r=1+(256/t.length|0),new Array(r+1).join(c)),l=[],a=0;a<256;a++)l[a]=a;var n=0;for(a=0;a<256;a++){var u=l[a];n=(n+u+o.charCodeAt(a))%256,l[a]=l[n],l[n]=u}e=t,s=l}else l=s;var h=i.length,d=0,f=0,m="";for(a=0;a<h;a++)f=(f+(u=l[d=(d+1)%256]))%256,l[d]=l[f],l[f]=u,o=l[(l[d]+l[f])%256],m+=String.fromCharCode(i.charCodeAt(a)^o);return m}var $p={print:4,modify:8,copy:16,"annot-forms":32};function eo(t,i,e,s){this.v=1,this.r=2;var c=192;t.forEach(function(l){if($p.perm!==void 0)throw new Error("Invalid permission: "+l);c+=$p[l]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var r=(i+this.padding).substr(0,32),o=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,o),this.P=-(1+(255^c)),this.encryptionKey=If(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(s)).substr(0,5),this.U=Rf(this.encryptionKey,this.padding)}function to(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var i="",e=t.length,s=0;s<e;s++){var c=t.charCodeAt(s);i+=c<33||c===35||c===37||c===40||c===41||c===47||c===60||c===62||c===91||c===93||c===123||c===125||c>126?"#"+("0"+c.toString(16)).slice(-2):t[s]}return i}function qp(t){if(br(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var i={};this.subscribe=function(e,s,c){if(c=c||!1,typeof e!="string"||typeof s!="function"||typeof c!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");i.hasOwnProperty(e)||(i[e]={});var r=Math.random().toString(35);return i[e][r]=[s,!!c],r},this.unsubscribe=function(e){for(var s in i)if(i[s][e])return delete i[s][e],Object.keys(i[s]).length===0&&delete i[s],!0;return!1},this.publish=function(e){if(i.hasOwnProperty(e)){var s=Array.prototype.slice.call(arguments,1),c=[];for(var r in i[e]){var o=i[e][r];try{o[0].apply(t,s)}catch(l){Ut.console&&kr.error("jsPDF PubSub Error",l.message,l)}o[1]&&c.push(r)}c.length&&c.forEach(this.unsubscribe)}},this.getTopics=function(){return i}}function Cu(t){if(!(this instanceof Cu))return new Cu(t);var i="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&i.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function t1(t,i){this.gState=t,this.matrix=i,this.id="",this.objectNumber=-1}function ms(t,i,e,s,c){if(!(this instanceof ms))return new ms(t,i,e,s,c);this.type=t==="axial"?2:3,this.coords=i,this.colors=e,t1.call(this,s,c)}function ro(t,i,e,s,c){if(!(this instanceof ro))return new ro(t,i,e,s,c);this.boundingBox=t,this.xStep=i,this.yStep=e,this.stream="",this.cloneIndex=0,t1.call(this,s,c)}function Ft(t){var i,e=typeof arguments[0]=="string"?arguments[0]:"p",s=arguments[1],c=arguments[2],r=arguments[3],o=[],l=1,a=16,n="S",u=null;br(t=t||{})==="object"&&(e=t.orientation,s=t.unit||s,c=t.format||c,r=t.compress||t.compressPdf||r,(u=t.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(i=t.precision),t.floatPrecision!==void 0&&(a=t.floatPrecision),n=t.defaultPathOperation||"S"),o=t.filters||(r===!0?["FlateEncode"]:o),s=s||"mm",e=(""+(e||"P")).toLowerCase();var h=t.putOnlyUsedFonts||!1,d={},f={internal:{},__private__:{}};f.__private__.PubSub=qp;var m="1.3",g=f.__private__.getPdfVersion=function(){return m};f.__private__.setPdfVersion=function(K){m=K};var p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return p};var v=f.__private__.getPageFormat=function(K){return p[K]};c=c||"a4";var b="compat",x="advanced",A=b;function M(){this.saveGraphicsState(),J(new rt(et,0,0,-et,0,es()*et).toString()+" cm"),this.setFontSize(this.getFontSize()/et),n="n",A=x}function V(){this.restoreGraphicsState(),n="S",A=b}var W=f.__private__.combineFontStyleAndFontWeight=function(K,ie){if(K=="bold"&&ie=="normal"||K=="bold"&&ie==400||K=="normal"&&ie=="italic"||K=="bold"&&ie=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return ie&&(K=ie==400||ie==="normal"?K==="italic"?"italic":"normal":ie!=700&&ie!=="bold"||K!=="normal"?(ie==700?"bold":ie)+""+K:"bold"),K};f.advancedAPI=function(K){var ie=A===b;return ie&&M.call(this),typeof K!="function"||(K(this),ie&&V.call(this)),this},f.compatAPI=function(K){var ie=A===x;return ie&&V.call(this),typeof K!="function"||(K(this),ie&&M.call(this)),this},f.isAdvancedAPI=function(){return A===x};var R,F=function(K){if(A!==x)throw new Error(K+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},$=f.roundToPrecision=f.__private__.roundToPrecision=function(K,ie){var pe=i||ie;if(isNaN(K)||isNaN(pe))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return K.toFixed(pe).replace(/0+$/,"")};R=f.hpf=f.__private__.hpf=typeof a=="number"?function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.hpf");return $(K,a)}:a==="smart"?function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.hpf");return $(K,K>-1&&K<1?16:5)}:function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.hpf");return $(K,16)};var z=f.f2=f.__private__.f2=function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.f2");return $(K,2)},D=f.__private__.f3=function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.f3");return $(K,3)},N=f.scale=f.__private__.scale=function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.scale");return A===b?K*et:A===x?K:void 0},E=function(K){return N((function(ie){return A===b?es()-ie:A===x?ie:void 0})(K))};f.__private__.setPrecision=f.setPrecision=function(K){typeof parseInt(K,10)=="number"&&(i=parseInt(K,10))};var C,w="00000000000000000000000000000000",S=f.__private__.getFileId=function(){return w},_=f.__private__.setFileId=function(K){return w=K!==void 0&&/^[a-fA-F0-9]{32}$/.test(K)?K.toUpperCase():w.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Vt=new eo(u.userPermissions,u.userPassword,u.ownerPassword,w)),w};f.setFileId=function(K){return _(K),this},f.getFileId=function(){return S()};var k=f.__private__.convertDateToPDFDate=function(K){var ie=K.getTimezoneOffset(),pe=ie<0?"+":"-",_e=Math.floor(Math.abs(ie/60)),Ne=Math.abs(ie%60),Fe=[pe,q(_e),"'",q(Ne),"'"].join("");return["D:",K.getFullYear(),q(K.getMonth()+1),q(K.getDate()),q(K.getHours()),q(K.getMinutes()),q(K.getSeconds()),Fe].join("")},T=f.__private__.convertPDFDateToDate=function(K){var ie=parseInt(K.substr(2,4),10),pe=parseInt(K.substr(6,2),10)-1,_e=parseInt(K.substr(8,2),10),Ne=parseInt(K.substr(10,2),10),Fe=parseInt(K.substr(12,2),10),Ye=parseInt(K.substr(14,2),10);return new Date(ie,pe,_e,Ne,Fe,Ye,0)},j=f.__private__.setCreationDate=function(K){var ie;if(K===void 0&&(K=new Date),K instanceof Date)ie=k(K);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(K))throw new Error("Invalid argument passed to jsPDF.setCreationDate");ie=K}return C=ie},P=f.__private__.getCreationDate=function(K){var ie=C;return K==="jsDate"&&(ie=T(C)),ie};f.setCreationDate=function(K){return j(K),this},f.getCreationDate=function(K){return P(K)};var U,q=f.__private__.padd2=function(K){return("0"+parseInt(K)).slice(-2)},Z=f.__private__.padd2Hex=function(K){return("00"+(K=K.toString())).substr(K.length)},B=0,X=[],L=[],I=0,G=[],ee=[],se=!1,te=L;f.__private__.setCustomOutputDestination=function(K){se=!0,te=K};var re=function(K){se||(te=K)};f.__private__.resetCustomOutputDestination=function(){se=!1,te=L};var J=f.__private__.out=function(K){return K=K.toString(),I+=K.length+1,te.push(K),te},de=f.__private__.write=function(K){return J(arguments.length===1?K.toString():Array.prototype.join.call(arguments," "))},ne=f.__private__.getArrayBuffer=function(K){for(var ie=K.length,pe=new ArrayBuffer(ie),_e=new Uint8Array(pe);ie--;)_e[ie]=K.charCodeAt(ie);return pe},fe=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return fe};var ue=t.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(K){return ue=A===x?K/et:K,this};var ye,be=f.__private__.getFontSize=f.getFontSize=function(){return A===b?ue:ue*et},we=t.R2L||!1;f.__private__.setR2L=f.setR2L=function(K){return we=K,this},f.__private__.getR2L=f.getR2L=function(){return we};var Se,Pe=f.__private__.setZoomMode=function(K){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(K))ye=K;else if(isNaN(K)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(K)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+K+'" is not recognized.');ye=K}else ye=parseInt(K,10)};f.__private__.getZoomMode=function(){return ye};var Le,De=f.__private__.setPageMode=function(K){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(K)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+K+'" is not recognized.');Se=K};f.__private__.getPageMode=function(){return Se};var Ge=f.__private__.setLayoutMode=function(K){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(K)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+K+'" is not recognized.');Le=K};f.__private__.getLayoutMode=function(){return Le},f.__private__.setDisplayMode=f.setDisplayMode=function(K,ie,pe){return Pe(K),Ge(ie),De(pe),this};var Ve={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(K){if(Object.keys(Ve).indexOf(K)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Ve[K]},f.__private__.getDocumentProperties=function(){return Ve},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(K){for(var ie in Ve)Ve.hasOwnProperty(ie)&&K[ie]&&(Ve[ie]=K[ie]);return this},f.__private__.setDocumentProperty=function(K,ie){if(Object.keys(Ve).indexOf(K)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Ve[K]=ie};var qe,et,We,dt,Ke,Oe={},Xe={},ut=[],ze={},bt={},ct={},nt={},Mt=null,ht=0,it=[],Pt=new qp(f),Qt=t.hotfixes||[],mt={},qt={},ir=[],rt=function K(ie,pe,_e,Ne,Fe,Ye){if(!(this instanceof K))return new K(ie,pe,_e,Ne,Fe,Ye);isNaN(ie)&&(ie=1),isNaN(pe)&&(pe=0),isNaN(_e)&&(_e=0),isNaN(Ne)&&(Ne=1),isNaN(Fe)&&(Fe=0),isNaN(Ye)&&(Ye=0),this._matrix=[ie,pe,_e,Ne,Fe,Ye]};Object.defineProperty(rt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(K){this._matrix[0]=K}}),Object.defineProperty(rt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(K){this._matrix[1]=K}}),Object.defineProperty(rt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(K){this._matrix[2]=K}}),Object.defineProperty(rt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(K){this._matrix[3]=K}}),Object.defineProperty(rt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(K){this._matrix[4]=K}}),Object.defineProperty(rt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(K){this._matrix[5]=K}}),Object.defineProperty(rt.prototype,"a",{get:function(){return this._matrix[0]},set:function(K){this._matrix[0]=K}}),Object.defineProperty(rt.prototype,"b",{get:function(){return this._matrix[1]},set:function(K){this._matrix[1]=K}}),Object.defineProperty(rt.prototype,"c",{get:function(){return this._matrix[2]},set:function(K){this._matrix[2]=K}}),Object.defineProperty(rt.prototype,"d",{get:function(){return this._matrix[3]},set:function(K){this._matrix[3]=K}}),Object.defineProperty(rt.prototype,"e",{get:function(){return this._matrix[4]},set:function(K){this._matrix[4]=K}}),Object.defineProperty(rt.prototype,"f",{get:function(){return this._matrix[5]},set:function(K){this._matrix[5]=K}}),Object.defineProperty(rt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(rt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(rt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(rt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),rt.prototype.join=function(K){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(R).join(K)},rt.prototype.multiply=function(K){var ie=K.sx*this.sx+K.shy*this.shx,pe=K.sx*this.shy+K.shy*this.sy,_e=K.shx*this.sx+K.sy*this.shx,Ne=K.shx*this.shy+K.sy*this.sy,Fe=K.tx*this.sx+K.ty*this.shx+this.tx,Ye=K.tx*this.shy+K.ty*this.sy+this.ty;return new rt(ie,pe,_e,Ne,Fe,Ye)},rt.prototype.decompose=function(){var K=this.sx,ie=this.shy,pe=this.shx,_e=this.sy,Ne=this.tx,Fe=this.ty,Ye=Math.sqrt(K*K+ie*ie),kt=(K/=Ye)*pe+(ie/=Ye)*_e;pe-=K*kt,_e-=ie*kt;var _t=Math.sqrt(pe*pe+_e*_e);return kt/=_t,K*(_e/=_t)<ie*(pe/=_t)&&(K=-K,ie=-ie,kt=-kt,Ye=-Ye),{scale:new rt(Ye,0,0,_t,0,0),translate:new rt(1,0,0,1,Ne,Fe),rotate:new rt(K,ie,-ie,K,0,0),skew:new rt(1,0,kt,1,0,0)}},rt.prototype.toString=function(K){return this.join(" ")},rt.prototype.inversed=function(){var K=this.sx,ie=this.shy,pe=this.shx,_e=this.sy,Ne=this.tx,Fe=this.ty,Ye=1/(K*_e-ie*pe),kt=_e*Ye,_t=-ie*Ye,Wt=-pe*Ye,Kt=K*Ye;return new rt(kt,_t,Wt,Kt,-kt*Ne-Wt*Fe,-_t*Ne-Kt*Fe)},rt.prototype.applyToPoint=function(K){var ie=K.x*this.sx+K.y*this.shx+this.tx,pe=K.x*this.shy+K.y*this.sy+this.ty;return new Qa(ie,pe)},rt.prototype.applyToRectangle=function(K){var ie=this.applyToPoint(K),pe=this.applyToPoint(new Qa(K.x+K.w,K.y+K.h));return new Ao(ie.x,ie.y,pe.x-ie.x,pe.y-ie.y)},rt.prototype.clone=function(){var K=this.sx,ie=this.shy,pe=this.shx,_e=this.sy,Ne=this.tx,Fe=this.ty;return new rt(K,ie,pe,_e,Ne,Fe)},f.Matrix=rt;var Zt=f.matrixMult=function(K,ie){return ie.multiply(K)},ar=new rt(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=ar;var It=function(K,ie){if(!bt[K]){var pe=(ie instanceof ms?"Sh":"P")+(Object.keys(ze).length+1).toString(10);ie.id=pe,bt[K]=pe,ze[pe]=ie,Pt.publish("addPattern",ie)}};f.ShadingPattern=ms,f.TilingPattern=ro,f.addShadingPattern=function(K,ie){return F("addShadingPattern()"),It(K,ie),this},f.beginTilingPattern=function(K){F("beginTilingPattern()"),No(K.boundingBox[0],K.boundingBox[1],K.boundingBox[2]-K.boundingBox[0],K.boundingBox[3]-K.boundingBox[1],K.matrix)},f.endTilingPattern=function(K,ie){F("endTilingPattern()"),ie.stream=ee[U].join(`
4
+ `),It(K,ie),Pt.publish("endTilingPattern",ie),ir.pop().restore()};var xe,Ce=f.__private__.newObject=function(){var K=Re();return tt(K,!0),K},Re=f.__private__.newObjectDeferred=function(){return B++,X[B]=function(){return I},B},tt=function(K,ie){return ie=typeof ie=="boolean"&&ie,X[K]=I,ie&&J(K+" 0 obj"),K},Ct=f.__private__.newAdditionalObject=function(){var K={objId:Re(),content:""};return G.push(K),K},ot=Re(),At=Re(),yt=f.__private__.decodeColorString=function(K){var ie=K.split(" ");if(ie.length!==2||ie[1]!=="g"&&ie[1]!=="G")ie.length!==5||ie[4]!=="k"&&ie[4]!=="K"||(ie=[(1-ie[0])*(1-ie[3]),(1-ie[1])*(1-ie[3]),(1-ie[2])*(1-ie[3]),"r"]);else{var pe=parseFloat(ie[0]);ie=[pe,pe,pe,"r"]}for(var _e="#",Ne=0;Ne<3;Ne++)_e+=("0"+Math.floor(255*parseFloat(ie[Ne])).toString(16)).slice(-2);return _e},gt=f.__private__.encodeColorString=function(K){var ie;typeof K=="string"&&(K={ch1:K});var pe=K.ch1,_e=K.ch2,Ne=K.ch3,Fe=K.ch4,Ye=K.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof pe=="string"&&pe.charAt(0)!=="#"){var kt=new Q0(pe);if(kt.ok)pe=kt.toHex();else if(!/^\d*\.?\d*$/.test(pe))throw new Error('Invalid color "'+pe+'" passed to jsPDF.encodeColorString.')}if(typeof pe=="string"&&/^#[0-9A-Fa-f]{3}$/.test(pe)&&(pe="#"+pe[1]+pe[1]+pe[2]+pe[2]+pe[3]+pe[3]),typeof pe=="string"&&/^#[0-9A-Fa-f]{6}$/.test(pe)){var _t=parseInt(pe.substr(1),16);pe=_t>>16&255,_e=_t>>8&255,Ne=255&_t}if(_e===void 0||Fe===void 0&&pe===_e&&_e===Ne)ie=typeof pe=="string"?pe+" "+Ye[0]:K.precision===2?z(pe/255)+" "+Ye[0]:D(pe/255)+" "+Ye[0];else if(Fe===void 0||br(Fe)==="object"){if(Fe&&!isNaN(Fe.a)&&Fe.a===0)return["1.","1.","1.",Ye[1]].join(" ");ie=typeof pe=="string"?[pe,_e,Ne,Ye[1]].join(" "):K.precision===2?[z(pe/255),z(_e/255),z(Ne/255),Ye[1]].join(" "):[D(pe/255),D(_e/255),D(Ne/255),Ye[1]].join(" ")}else ie=typeof pe=="string"?[pe,_e,Ne,Fe,Ye[2]].join(" "):K.precision===2?[z(pe),z(_e),z(Ne),z(Fe),Ye[2]].join(" "):[D(pe),D(_e),D(Ne),D(Fe),Ye[2]].join(" ");return ie},Rt=f.__private__.getFilters=function(){return o},Nt=f.__private__.putStream=function(K){var ie=(K=K||{}).data||"",pe=K.filters||Rt(),_e=K.alreadyAppliedFilters||[],Ne=K.addLength1||!1,Fe=ie.length,Ye=K.objectId,kt=function(Mr){return Mr};if(u!==null&&Ye===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(kt=Vt.encryptor(Ye,0));var _t={};pe===!0&&(pe=["FlateEncode"]);var Wt=K.additionalKeyValues||[],Kt=(_t=Ft.API.processDataByFilters!==void 0?Ft.API.processDataByFilters(ie,pe):{data:ie,reverseChain:[]}).reverseChain+(Array.isArray(_e)?_e.join(" "):_e.toString());if(_t.data.length!==0&&(Wt.push({key:"Length",value:_t.data.length}),Ne===!0&&Wt.push({key:"Length1",value:Fe})),Kt.length!=0)if(Kt.split("/").length-1==1)Wt.push({key:"Filter",value:Kt});else{Wt.push({key:"Filter",value:"["+Kt+"]"});for(var hr=0;hr<Wt.length;hr+=1)if(Wt[hr].key==="DecodeParms"){for(var en=[],_r=0;_r<_t.reverseChain.split("/").length-1;_r+=1)en.push("null");en.push(Wt[hr].value),Wt[hr].value="["+en.join(" ")+"]"}}J("<<");for(var xr=0;xr<Wt.length;xr++)J("/"+Wt[xr].key+" "+Wt[xr].value);J(">>"),_t.data.length!==0&&(J("stream"),J(kt(_t.data)),J("endstream"))},Dt=f.__private__.putPage=function(K){var ie=K.number,pe=K.data,_e=K.objId,Ne=K.contentsObjId;tt(_e,!0),J("<</Type /Page"),J("/Parent "+K.rootDictionaryObjId+" 0 R"),J("/Resources "+K.resourceDictionaryObjId+" 0 R"),J("/MediaBox ["+parseFloat(R(K.mediaBox.bottomLeftX))+" "+parseFloat(R(K.mediaBox.bottomLeftY))+" "+R(K.mediaBox.topRightX)+" "+R(K.mediaBox.topRightY)+"]"),K.cropBox!==null&&J("/CropBox ["+R(K.cropBox.bottomLeftX)+" "+R(K.cropBox.bottomLeftY)+" "+R(K.cropBox.topRightX)+" "+R(K.cropBox.topRightY)+"]"),K.bleedBox!==null&&J("/BleedBox ["+R(K.bleedBox.bottomLeftX)+" "+R(K.bleedBox.bottomLeftY)+" "+R(K.bleedBox.topRightX)+" "+R(K.bleedBox.topRightY)+"]"),K.trimBox!==null&&J("/TrimBox ["+R(K.trimBox.bottomLeftX)+" "+R(K.trimBox.bottomLeftY)+" "+R(K.trimBox.topRightX)+" "+R(K.trimBox.topRightY)+"]"),K.artBox!==null&&J("/ArtBox ["+R(K.artBox.bottomLeftX)+" "+R(K.artBox.bottomLeftY)+" "+R(K.artBox.topRightX)+" "+R(K.artBox.topRightY)+"]"),typeof K.userUnit=="number"&&K.userUnit!==1&&J("/UserUnit "+K.userUnit),Pt.publish("putPage",{objId:_e,pageContext:it[ie],pageNumber:ie,page:pe}),J("/Contents "+Ne+" 0 R"),J(">>"),J("endobj");var Fe=pe.join(`
5
+ `);return A===x&&(Fe+=`
6
+ Q`),tt(Ne,!0),Nt({data:Fe,filters:Rt(),objectId:Ne}),J("endobj"),_e},mr=f.__private__.putPages=function(){var K,ie,pe=[];for(K=1;K<=ht;K++)it[K].objId=Re(),it[K].contentsObjId=Re();for(K=1;K<=ht;K++)pe.push(Dt({number:K,data:ee[K],objId:it[K].objId,contentsObjId:it[K].contentsObjId,mediaBox:it[K].mediaBox,cropBox:it[K].cropBox,bleedBox:it[K].bleedBox,trimBox:it[K].trimBox,artBox:it[K].artBox,userUnit:it[K].userUnit,rootDictionaryObjId:ot,resourceDictionaryObjId:At}));tt(ot,!0),J("<</Type /Pages");var _e="/Kids [";for(ie=0;ie<ht;ie++)_e+=pe[ie]+" 0 R ";J(_e+"]"),J("/Count "+ht),J(">>"),J("endobj"),Pt.publish("postPutPages")},fr=function(K){Pt.publish("putFont",{font:K,out:J,newObject:Ce,putStream:Nt}),K.isAlreadyPutted!==!0&&(K.objectNumber=Ce(),J("<<"),J("/Type /Font"),J("/BaseFont /"+to(K.postScriptName)),J("/Subtype /Type1"),typeof K.encoding=="string"&&J("/Encoding /"+K.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},Cr=function(K){K.objectNumber=Ce();var ie=[];ie.push({key:"Type",value:"/XObject"}),ie.push({key:"Subtype",value:"/Form"}),ie.push({key:"BBox",value:"["+[R(K.x),R(K.y),R(K.x+K.width),R(K.y+K.height)].join(" ")+"]"}),ie.push({key:"Matrix",value:"["+K.matrix.toString()+"]"});var pe=K.pages[1].join(`
7
+ `);Nt({data:pe,additionalKeyValues:ie,objectId:K.objectNumber}),J("endobj")},Ar=function(K,ie){ie||(ie=21);var pe=Ce(),_e=(function(Ye,kt){var _t,Wt=[],Kt=1/(kt-1);for(_t=0;_t<1;_t+=Kt)Wt.push(_t);if(Wt.push(1),Ye[0].offset!=0){var hr={offset:0,color:Ye[0].color};Ye.unshift(hr)}if(Ye[Ye.length-1].offset!=1){var en={offset:1,color:Ye[Ye.length-1].color};Ye.push(en)}for(var _r="",xr=0,Mr=0;Mr<Wt.length;Mr++){for(_t=Wt[Mr];_t>Ye[xr+1].offset;)xr++;var Br=Ye[xr].offset,jr=(_t-Br)/(Ye[xr+1].offset-Br),yn=Ye[xr].color,Qi=Ye[xr+1].color;_r+=Z(Math.round((1-jr)*yn[0]+jr*Qi[0]).toString(16))+Z(Math.round((1-jr)*yn[1]+jr*Qi[1]).toString(16))+Z(Math.round((1-jr)*yn[2]+jr*Qi[2]).toString(16))}return _r.trim()})(K.colors,ie),Ne=[];Ne.push({key:"FunctionType",value:"0"}),Ne.push({key:"Domain",value:"[0.0 1.0]"}),Ne.push({key:"Size",value:"["+ie+"]"}),Ne.push({key:"BitsPerSample",value:"8"}),Ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Nt({data:_e,additionalKeyValues:Ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:pe}),J("endobj"),K.objectNumber=Ce(),J("<< /ShadingType "+K.type),J("/ColorSpace /DeviceRGB");var Fe="/Coords ["+R(parseFloat(K.coords[0]))+" "+R(parseFloat(K.coords[1]))+" ";K.type===2?Fe+=R(parseFloat(K.coords[2]))+" "+R(parseFloat(K.coords[3])):Fe+=R(parseFloat(K.coords[2]))+" "+R(parseFloat(K.coords[3]))+" "+R(parseFloat(K.coords[4]))+" "+R(parseFloat(K.coords[5])),J(Fe+="]"),K.matrix&&J("/Matrix ["+K.matrix.toString()+"]"),J("/Function "+pe+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},Hr=function(K,ie){var pe=Re(),_e=Ce();ie.push({resourcesOid:pe,objectOid:_e}),K.objectNumber=_e;var Ne=[];Ne.push({key:"Type",value:"/Pattern"}),Ne.push({key:"PatternType",value:"1"}),Ne.push({key:"PaintType",value:"1"}),Ne.push({key:"TilingType",value:"1"}),Ne.push({key:"BBox",value:"["+K.boundingBox.map(R).join(" ")+"]"}),Ne.push({key:"XStep",value:R(K.xStep)}),Ne.push({key:"YStep",value:R(K.yStep)}),Ne.push({key:"Resources",value:pe+" 0 R"}),K.matrix&&Ne.push({key:"Matrix",value:"["+K.matrix.toString()+"]"}),Nt({data:K.stream,additionalKeyValues:Ne,objectId:K.objectNumber}),J("endobj")},me=function(K){for(var ie in K.objectNumber=Ce(),J("<<"),K)switch(ie){case"opacity":J("/ca "+z(K[ie]));break;case"stroke-opacity":J("/CA "+z(K[ie]))}J(">>"),J("endobj")},Ee=function(K){tt(K.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var ie in J("/Font <<"),Oe)Oe.hasOwnProperty(ie)&&(h===!1||h===!0&&d.hasOwnProperty(ie))&&J("/"+ie+" "+Oe[ie].objectNumber+" 0 R");J(">>")})(),(function(){if(Object.keys(ze).length>0){for(var ie in J("/Shading <<"),ze)ze.hasOwnProperty(ie)&&ze[ie]instanceof ms&&ze[ie].objectNumber>=0&&J("/"+ie+" "+ze[ie].objectNumber+" 0 R");Pt.publish("putShadingPatternDict"),J(">>")}})(),(function(ie){if(Object.keys(ze).length>0){for(var pe in J("/Pattern <<"),ze)ze.hasOwnProperty(pe)&&ze[pe]instanceof f.TilingPattern&&ze[pe].objectNumber>=0&&ze[pe].objectNumber<ie&&J("/"+pe+" "+ze[pe].objectNumber+" 0 R");Pt.publish("putTilingPatternDict"),J(">>")}})(K.objectOid),(function(){if(Object.keys(ct).length>0){var ie;for(ie in J("/ExtGState <<"),ct)ct.hasOwnProperty(ie)&&ct[ie].objectNumber>=0&&J("/"+ie+" "+ct[ie].objectNumber+" 0 R");Pt.publish("putGStateDict"),J(">>")}})(),(function(){for(var ie in J("/XObject <<"),mt)mt.hasOwnProperty(ie)&&mt[ie].objectNumber>=0&&J("/"+ie+" "+mt[ie].objectNumber+" 0 R");Pt.publish("putXobjectDict"),J(">>")})(),J(">>"),J("endobj")},$e=function(K){Xe[K.fontName]=Xe[K.fontName]||{},Xe[K.fontName][K.fontStyle]=K.id},Qe=function(K,ie,pe,_e,Ne){var Fe={id:"F"+(Object.keys(Oe).length+1).toString(10),postScriptName:K,fontName:ie,fontStyle:pe,encoding:_e,isStandardFont:Ne||!1,metadata:{}};return Pt.publish("addFont",{font:Fe,instance:this}),Oe[Fe.id]=Fe,$e(Fe),Fe.id},pt=f.__private__.pdfEscape=f.pdfEscape=function(K,ie){return(function(pe,_e){var Ne,Fe,Ye,kt,_t,Wt,Kt,hr,en;if(Ye=(_e=_e||{}).sourceEncoding||"Unicode",_t=_e.outputEncoding,(_e.autoencode||_t)&&Oe[qe].metadata&&Oe[qe].metadata[Ye]&&Oe[qe].metadata[Ye].encoding&&(kt=Oe[qe].metadata[Ye].encoding,!_t&&Oe[qe].encoding&&(_t=Oe[qe].encoding),!_t&&kt.codePages&&(_t=kt.codePages[0]),typeof _t=="string"&&(_t=kt[_t]),_t)){for(Kt=!1,Wt=[],Ne=0,Fe=pe.length;Ne<Fe;Ne++)(hr=_t[pe.charCodeAt(Ne)])?Wt.push(String.fromCharCode(hr)):Wt.push(pe[Ne]),Wt[Ne].charCodeAt(0)>>8&&(Kt=!0);pe=Wt.join("")}for(Ne=pe.length;Kt===void 0&&Ne!==0;)pe.charCodeAt(Ne-1)>>8&&(Kt=!0),Ne--;if(!Kt)return pe;for(Wt=_e.noBOM?[]:[254,255],Ne=0,Fe=pe.length;Ne<Fe;Ne++){if((en=(hr=pe.charCodeAt(Ne))>>8)>>8)throw new Error("Character at position "+Ne+" of string '"+pe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Wt.push(en),Wt.push(hr-(en<<8))}return String.fromCharCode.apply(void 0,Wt)})(K,ie).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},st=f.__private__.beginPage=function(K){ee[++ht]=[],it[ht]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(K[0]),topRightY:Number(K[1])}},zt(ht),re(ee[U])},lt=function(K,ie){var pe,_e,Ne;switch(e=ie||e,typeof K=="string"&&(pe=v(K.toLowerCase()),Array.isArray(pe)&&(_e=pe[0],Ne=pe[1])),Array.isArray(K)&&(_e=K[0]*et,Ne=K[1]*et),isNaN(_e)&&(_e=c[0],Ne=c[1]),(_e>14400||Ne>14400)&&(kr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),_e=Math.min(14400,_e),Ne=Math.min(14400,Ne)),c=[_e,Ne],e.substr(0,1)){case"l":Ne>_e&&(c=[Ne,_e]);break;case"p":_e>Ne&&(c=[Ne,_e])}st(c),ec(Bt),J(Os),ko!==0&&J(ko+" J"),_a!==0&&J(_a+" j"),Pt.publish("addPage",{pageNumber:ht})},Jt=function(K){K>0&&K<=ht&&(ee.splice(K,1),it.splice(K,1),ht--,U>ht&&(U=ht),this.setPage(U))},zt=function(K){K>0&&K<=ht&&(U=K)},Ht=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return ee.length-1},Lt=function(K,ie,pe){var _e,Ne=void 0;return pe=pe||{},K=K!==void 0?K:Oe[qe].fontName,ie=ie!==void 0?ie:Oe[qe].fontStyle,_e=K.toLowerCase(),Xe[_e]!==void 0&&Xe[_e][ie]!==void 0?Ne=Xe[_e][ie]:Xe[K]!==void 0&&Xe[K][ie]!==void 0?Ne=Xe[K][ie]:pe.disableWarning===!1&&kr.warn("Unable to look up font label for font '"+K+"', '"+ie+"'. Refer to getFontList() for available fonts."),Ne||pe.noFallback||(Ne=Xe.times[ie])==null&&(Ne=Xe.times.normal),Ne},er=f.__private__.putInfo=function(){var K=Ce(),ie=function(_e){return _e};for(var pe in u!==null&&(ie=Vt.encryptor(K,0)),J("<<"),J("/Producer ("+pt(ie("jsPDF "+Ft.version))+")"),Ve)Ve.hasOwnProperty(pe)&&Ve[pe]&&J("/"+pe.substr(0,1).toUpperCase()+pe.substr(1)+" ("+pt(ie(Ve[pe]))+")");J("/CreationDate ("+pt(ie(C))+")"),J(">>"),J("endobj")},lr=f.__private__.putCatalog=function(K){var ie=(K=K||{}).rootDictionaryObjId||ot;switch(Ce(),J("<<"),J("/Type /Catalog"),J("/Pages "+ie+" 0 R"),ye||(ye="fullwidth"),ye){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var pe=""+ye;pe.substr(pe.length-1)==="%"&&(ye=parseInt(ye)/100),typeof ye=="number"&&J("/OpenAction [3 0 R /XYZ null null "+z(ye)+"]")}switch(Le||(Le="continuous"),Le){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}Se&&J("/PageMode /"+Se),Pt.publish("putCatalog"),J(">>"),J("endobj")},gr=f.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(B+1)),J("/Root "+B+" 0 R"),J("/Info "+(B-1)+" 0 R"),u!==null&&J("/Encrypt "+Vt.oid+" 0 R"),J("/ID [ <"+w+"> <"+w+"> ]"),J(">>")},Gt=f.__private__.putHeader=function(){J("%PDF-"+m),J("%ºß¬à")},Fr=f.__private__.putXRef=function(){var K="0000000000";J("xref"),J("0 "+(B+1)),J("0000000000 65535 f ");for(var ie=1;ie<=B;ie++)typeof X[ie]=="function"?J((K+X[ie]()).slice(-10)+" 00000 n "):X[ie]!==void 0?J((K+X[ie]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},Nr=f.__private__.buildDocument=function(){var K;B=0,I=0,L=[],X=[],G=[],ot=Re(),At=Re(),re(L),Pt.publish("buildDocument"),Gt(),mr(),(function(){Pt.publish("putAdditionalObjects");for(var pe=0;pe<G.length;pe++){var _e=G[pe];tt(_e.objId,!0),J(_e.content),J("endobj")}Pt.publish("postPutAdditionalObjects")})(),K=[],(function(){for(var pe in Oe)Oe.hasOwnProperty(pe)&&(h===!1||h===!0&&d.hasOwnProperty(pe))&&fr(Oe[pe])})(),(function(){var pe;for(pe in ct)ct.hasOwnProperty(pe)&&me(ct[pe])})(),(function(){for(var pe in mt)mt.hasOwnProperty(pe)&&Cr(mt[pe])})(),(function(pe){var _e;for(_e in ze)ze.hasOwnProperty(_e)&&(ze[_e]instanceof ms?Ar(ze[_e]):ze[_e]instanceof ro&&Hr(ze[_e],pe))})(K),Pt.publish("putResources"),K.forEach(Ee),Ee({resourcesOid:At,objectOid:Number.MAX_SAFE_INTEGER}),Pt.publish("postPutResources"),u!==null&&(Vt.oid=Ce(),J("<<"),J("/Filter /Standard"),J("/V "+Vt.v),J("/R "+Vt.r),J("/U <"+Vt.toHexString(Vt.U)+">"),J("/O <"+Vt.toHexString(Vt.O)+">"),J("/P "+Vt.P),J(">>"),J("endobj")),er(),lr();var ie=I;return Fr(),gr(),J("startxref"),J(""+ie),J("%%EOF"),re(ee[U]),L.join(`
8
+ `)},fn=f.__private__.getBlob=function(K){return new Blob([ne(K)],{type:"application/pdf"})},Wn=function(K){for(;K.firstChild;)K.removeChild(K.firstChild)},Qr=function(K){var ie,pe=K.document,_e=pe.documentElement,Ne=pe.head,Fe=pe.body;return Ne||(Ne=pe.createElement("head"),_e.appendChild(Ne)),Fe||(Fe=pe.createElement("body"),_e.appendChild(Fe)),Wn(Ne),Wn(Fe),(ie=pe.createElement("style")).appendChild(pe.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),Ne.appendChild(ie),{document:pe,body:Fe}},Gn=f.output=f.__private__.output=(xe=function(K,ie){switch(typeof(ie=ie||{})=="string"?ie={filename:ie}:ie.filename=ie.filename||"generated.pdf",K){case void 0:return Nr();case"save":f.save(ie.filename);break;case"arraybuffer":return ne(Nr());case"blob":return fn(Nr());case"bloburi":case"bloburl":if(Ut.URL!==void 0&&typeof Ut.URL.createObjectURL=="function")return Ut.URL&&Ut.URL.createObjectURL(fn(Nr()))||void 0;kr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var pe="",_e=Nr();try{pe=zp(_e)}catch{pe=zp(unescape(encodeURIComponent(_e)))}return"data:application/pdf;filename="+encodeURIComponent(ie.filename)+";base64,"+pe;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Ne="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Fe=!ie.pdfObjectUrl;Fe||(Ne=ie.pdfObjectUrl);var Ye=Ut.open();if(Ye!==null){var kt=Qr(Ye),_t=kt.document.createElement("script"),Wt=this;_t.src=Ne,Fe&&(_t.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",_t.crossOrigin="anonymous"),_t.onload=function(){Ye.PDFObject.embed(Wt.output("dataurlstring"),ie)},kt.body.appendChild(_t)}return Ye}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Ut)==="[object Window]"){var Kt=ie.pdfJsUrl||"examples/PDF.js/web/viewer.html",hr=Ut.open();if(hr!==null){var en=Qr(hr),_r=en.document.createElement("iframe"),xr=Kt.indexOf("?")===-1?"?":"&";Wt=this,_r.id="pdfViewer",_r.width="500px",_r.height="400px",_r.src=Kt+xr+"file=&downloadName="+encodeURIComponent(ie.filename),_r.onload=function(){hr.document.title=ie.filename,_r.contentWindow.PDFViewerApplication.open(Wt.output("bloburl"))},en.body.appendChild(_r)}return hr}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Ut)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Mr=Ut.open();if(Mr!==null){var Br=Qr(Mr),jr=Br.document.createElement("iframe");jr.src=this.output("datauristring",ie),Br.body.appendChild(jr),Mr.document.title=ie.filename}if(Mr||typeof safari>"u")return Mr;break;case"datauri":case"dataurl":return Ut.document.location.href=this.output("datauristring",ie);default:return null}},xe.foo=function(){try{return xe.apply(this,arguments)}catch(pe){var K=pe.stack||"";~K.indexOf(" at ")&&(K=K.split(" at ")[1]);var ie="Error in function "+K.split(`
9
+ `)[0].split("<")[0]+": "+pe.message;if(!Ut.console)throw new Error(ie);Ut.console.error(ie,pe),Ut.alert&&alert(ie)}},xe.foo.bar=xe,xe.foo),bn=function(K){return Array.isArray(Qt)===!0&&Qt.indexOf(K)>-1};switch(s){case"pt":et=1;break;case"mm":et=72/25.4;break;case"cm":et=72/2.54;break;case"in":et=72;break;case"px":et=bn("px_scaling")==1?.75:96/72;break;case"pc":case"em":et=12;break;case"ex":et=6;break;default:if(typeof s!="number")throw new Error("Invalid unit: "+s);et=s}var Vt=null;j(),_();var sr=f.__private__.getPageInfo=f.getPageInfo=function(K){if(isNaN(K)||K%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:it[K].objId,pageNumber:K,pageContext:it[K]}},li=f.__private__.getPageInfoByObjId=function(K){if(isNaN(K)||K%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var ie in it)if(it[ie].objId===K)break;return sr(ie)},bi=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:it[U].objId,pageNumber:U,pageContext:it[U]}};f.addPage=function(){return lt.apply(this,arguments),this},f.setPage=function(){return zt.apply(this,arguments),re.call(this,ee[U]),this},f.insertPage=function(K){return this.addPage(),this.movePage(U,K),this},f.movePage=function(K,ie){var pe,_e;if(K>ie){pe=ee[K],_e=it[K];for(var Ne=K;Ne>ie;Ne--)ee[Ne]=ee[Ne-1],it[Ne]=it[Ne-1];ee[ie]=pe,it[ie]=_e,this.setPage(ie)}else if(K<ie){pe=ee[K],_e=it[K];for(var Fe=K;Fe<ie;Fe++)ee[Fe]=ee[Fe+1],it[Fe]=it[Fe+1];ee[ie]=pe,it[ie]=_e,this.setPage(ie)}return this},f.deletePage=function(){return Jt.apply(this,arguments),this},f.__private__.text=f.text=function(K,ie,pe,_e,Ne){var Fe,Ye,kt,_t,Wt,Kt,hr,en,_r,xr=(_e=_e||{}).scope||this;if(typeof K=="number"&&typeof ie=="number"&&(typeof pe=="string"||Array.isArray(pe))){var Mr=pe;pe=ie,ie=K,K=Mr}if(arguments[3]instanceof rt==0?(kt=arguments[4],_t=arguments[5],br(hr=arguments[3])==="object"&&hr!==null||(typeof kt=="string"&&(_t=kt,kt=null),typeof hr=="string"&&(_t=hr,hr=null),typeof hr=="number"&&(kt=hr,hr=null),_e={flags:hr,angle:kt,align:_t})):(F("The transform parameter of text() with a Matrix value"),_r=Ne),isNaN(ie)||isNaN(pe)||K==null)throw new Error("Invalid arguments passed to jsPDF.text");if(K.length===0)return xr;var Br,jr="",yn=typeof _e.lineHeightFactor=="number"?_e.lineHeightFactor:Ri,Qi=xr.internal.scaleFactor;function Eo(Er){return Er=Er.split(" ").join(Array(_e.TabLen||9).join(" ")),pt(Er,hr)}function ts(Er){for(var Tr,Wr=Er.concat(),an=[],ta=Wr.length;ta--;)typeof(Tr=Wr.shift())=="string"?an.push(Tr):Array.isArray(Er)&&(Tr.length===1||Tr[1]===void 0&&Tr[2]===void 0)?an.push(Tr[0]):an.push([Tr[0],Tr[1],Tr[2]]);return an}function rs(Er,Tr){var Wr;if(typeof Er=="string")Wr=Tr(Er)[0];else if(Array.isArray(Er)){for(var an,ta,Lo=Er.concat(),Gs=[],El=Lo.length;El--;)typeof(an=Lo.shift())=="string"?Gs.push(Tr(an)[0]):Array.isArray(an)&&typeof an[0]=="string"&&(ta=Tr(an[0],an[1],an[2]),Gs.push([ta[0],ta[1],ta[2]]));Wr=Gs}return Wr}var Sa=!1,ns=!0;if(typeof K=="string")Sa=!0;else if(Array.isArray(K)){var Ds=K.concat();Ye=[];for(var Vs,wn=Ds.length;wn--;)(typeof(Vs=Ds.shift())!="string"||Array.isArray(Vs)&&typeof Vs[0]!="string")&&(ns=!1);Sa=ns}if(Sa===!1)throw new Error('Type of text must be string or Array. "'+K+'" is not recognized.');typeof K=="string"&&(K=K.match(/[\r?\n]/)?K.split(/\r\n|\r|\n/g):[K]);var is=ue/xr.internal.scaleFactor,as=is*(yn-1);switch(_e.baseline){case"bottom":pe-=as;break;case"top":pe+=is-as;break;case"hanging":pe+=is-2*as;break;case"middle":pe+=is/2-as}if((Kt=_e.maxWidth||0)>0&&(typeof K=="string"?K=xr.splitTextToSize(K,Kt):Object.prototype.toString.call(K)==="[object Array]"&&(K=K.reduce(function(Er,Tr){return Er.concat(xr.splitTextToSize(Tr,Kt))},[]))),Fe={text:K,x:ie,y:pe,options:_e,mutex:{pdfEscape:pt,activeFontKey:qe,fonts:Oe,activeFontSize:ue}},Pt.publish("preProcessText",Fe),K=Fe.text,kt=(_e=Fe.options).angle,_r instanceof rt==0&&kt&&typeof kt=="number"){kt*=Math.PI/180,_e.rotationDirection===0&&(kt=-kt),A===x&&(kt=-kt);var To=Math.cos(kt),Oi=Math.sin(kt);_r=new rt(To,Oi,-Oi,To,0,0)}else kt&&kt instanceof rt&&(_r=kt);A!==x||_r||(_r=ar),(Wt=_e.charSpace||Fs)!==void 0&&(jr+=R(N(Wt))+` Tc
10
+ `,this.setCharSpace(this.getCharSpace()||0)),(en=_e.horizontalScale)!==void 0&&(jr+=R(100*en)+` Tz
11
+ `),_e.lang;var In=-1,Al=_e.renderingMode!==void 0?_e.renderingMode:_e.stroke,zs=xr.internal.getCurrentPageInfo().pageContext;switch(Al){case 0:case!1:case"fill":In=0;break;case 1:case!0:case"stroke":In=1;break;case 2:case"fillThenStroke":In=2;break;case 3:case"invisible":In=3;break;case 4:case"fillAndAddForClipping":In=4;break;case 5:case"strokeAndAddPathForClipping":In=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":In=6;break;case 7:case"addToPathForClipping":In=7}var Nl=zs.usedRenderingMode!==void 0?zs.usedRenderingMode:-1;In!==-1?jr+=In+` Tr
12
+ `:Nl!==-1&&(jr+=`0 Tr
13
+ `),In!==-1&&(zs.usedRenderingMode=In),_t=_e.align||"left";var fi,ss=ue*yn,Po=xr.internal.pageSize.getWidth(),Us=Oe[qe];Wt=_e.charSpace||Fs,Kt=_e.maxWidth||0,hr=Object.assign({autoencode:!0,noBOM:!0},_e.flags);var os=[],Mo=function(Er){return xr.getStringUnitWidth(Er,{font:Us,charSpace:Wt,fontSize:ue,doKerning:!1})*ue/Qi};if(Object.prototype.toString.call(K)==="[object Array]"){var Rn;Ye=ts(K),_t!=="left"&&(fi=Ye.map(Mo));var Un,$s=0;if(_t==="right"){ie-=fi[0],K=[],wn=Ye.length;for(var ka=0;ka<wn;ka++)ka===0?(Un=Ki(ie),Rn=Yi(pe)):(Un=N($s-fi[ka]),Rn=-ss),K.push([Ye[ka],Un,Rn]),$s=fi[ka]}else if(_t==="center"){ie-=fi[0]/2,K=[],wn=Ye.length;for(var Ca=0;Ca<wn;Ca++)Ca===0?(Un=Ki(ie),Rn=Yi(pe)):(Un=N(($s-fi[Ca])/2),Rn=-ss),K.push([Ye[Ca],Un,Rn]),$s=fi[Ca]}else if(_t==="left"){K=[],wn=Ye.length;for(var qs=0;qs<wn;qs++)K.push(Ye[qs])}else if(_t==="justify"&&Us.encoding==="Identity-H"){K=[],wn=Ye.length,Kt=Kt!==0?Kt:Po;for(var ls=0,tn=0;tn<wn;tn++)if(Rn=tn===0?Yi(pe):-ss,Un=tn===0?Ki(ie):ls,tn<wn-1){var lc=N((Kt-fi[tn])/(Ye[tn].split(" ").length-1)),Fi=Ye[tn].split(" ");K.push([Fi[0]+" ",Un,Rn]),ls=0;for(var yi=1;yi<Fi.length;yi++){var us=(Mo(Fi[yi-1]+" "+Fi[yi])-Mo(Fi[yi]))*Qi+lc;yi==Fi.length-1?K.push([Fi[yi],us,0]):K.push([Fi[yi]+" ",us,0]),ls-=us}}else K.push([Ye[tn],Un,Rn]);K.push(["",ls,0])}else{if(_t!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(K=[],wn=Ye.length,Kt=Kt!==0?Kt:Po,tn=0;tn<wn;tn++){Rn=tn===0?Yi(pe):-ss,Un=tn===0?Ki(ie):0;var Io=Ye[tn].split(" ").length-1,Ro=Io>0?(Kt-fi[tn])/Io:0;tn<wn-1?os.push(R(N(Ro))):os.push(0),K.push([Ye[tn],Un,Rn])}}}(typeof _e.R2L=="boolean"?_e.R2L:we)===!0&&(K=rs(K,function(Er,Tr,Wr){return[Er.split("").reverse().join(""),Tr,Wr]})),Fe={text:K,x:ie,y:pe,options:_e,mutex:{pdfEscape:pt,activeFontKey:qe,fonts:Oe,activeFontSize:ue}},Pt.publish("postProcessText",Fe),K=Fe.text,Br=Fe.mutex.isHex||!1;var Hs=Oe[qe].encoding;Hs!=="WinAnsiEncoding"&&Hs!=="StandardEncoding"||(K=rs(K,function(Er,Tr,Wr){return[Eo(Er),Tr,Wr]})),Ye=ts(K),K=[];for(var cs,fs,Aa,ea=Array.isArray(Ye[0])?1:0,Na="",Ws=function(Er,Tr,Wr){var an="";return Wr instanceof rt?(Wr=typeof _e.angle=="number"?Zt(Wr,new rt(1,0,0,1,Er,Tr)):Zt(new rt(1,0,0,1,Er,Tr),Wr),A===x&&(Wr=Zt(new rt(1,0,0,-1,0,0),Wr)),an=Wr.join(" ")+` Tm
14
+ `):an=R(Er)+" "+R(Tr)+` Td
15
+ `,an},xn=0;xn<Ye.length;xn++){switch(Na="",ea){case 1:Aa=(Br?"<":"(")+Ye[xn][0]+(Br?">":")"),cs=parseFloat(Ye[xn][1]),fs=parseFloat(Ye[xn][2]);break;case 0:Aa=(Br?"<":"(")+Ye[xn]+(Br?">":")"),cs=Ki(ie),fs=Yi(pe)}os!==void 0&&os[xn]!==void 0&&(Na=os[xn]+` Tw
16
+ `),xn===0?K.push(Na+Ws(cs,fs,_r)+Aa):ea===0?K.push(Na+Aa):ea===1&&K.push(Na+Ws(cs,fs,_r)+Aa)}K=ea===0?K.join(` Tj
17
+ T* `):K.join(` Tj
18
+ `),K+=` Tj
19
+ `;var Bi=`BT
20
+ /`;return Bi+=qe+" "+ue+` Tf
21
+ `,Bi+=R(ue*yn)+` TL
22
+ `,Bi+=Li+`
23
+ `,Bi+=jr,Bi+=K,J(Bi+="ET"),d[qe]=!0,xr};var ba=f.__private__.clip=f.clip=function(K){return J(K==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return ba("evenodd")},f.__private__.discardPath=f.discardPath=function(){return J("n"),this};var Lr=f.__private__.isValidStyle=function(K){var ie=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(K)!==-1&&(ie=!0),ie};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(K){return Lr(K)&&(n=K),this};var zn=f.__private__.getStyle=f.getStyle=function(K){var ie=n;switch(K){case"D":case"S":ie="S";break;case"F":ie="f";break;case"FD":case"DF":ie="B";break;case"f":case"f*":case"B":case"B*":ie=K}return ie},Mn=f.close=function(){return J("h"),this};f.stroke=function(){return J("S"),this},f.fill=function(K){return ui("f",K),this},f.fillEvenOdd=function(K){return ui("f*",K),this},f.fillStroke=function(K){return ui("B",K),this},f.fillStrokeEvenOdd=function(K){return ui("B*",K),this};var ui=function(K,ie){br(ie)==="object"?ci(ie,K):J(K)},Mi=function(K){K===null||A===x&&K===void 0||(K=zn(K),J(K))};function Ii(K,ie,pe,_e,Ne){var Fe=new ro(ie||this.boundingBox,pe||this.xStep,_e||this.yStep,this.gState,Ne||this.matrix);Fe.stream=this.stream;var Ye=K+"$$"+this.cloneIndex+++"$$";return It(Ye,Fe),Fe}var ci=function(K,ie){var pe=bt[K.key],_e=ze[pe];if(_e instanceof ms)J("q"),J(Ls(ie)),_e.gState&&f.setGState(_e.gState),J(K.matrix.toString()+" cm"),J("/"+pe+" sh"),J("Q");else if(_e instanceof ro){var Ne=new rt(1,0,0,-1,0,es());K.matrix&&(Ne=Ne.multiply(K.matrix||ar),pe=Ii.call(_e,K.key,K.boundingBox,K.xStep,K.yStep,Ne).id),J("q"),J("/Pattern cs"),J("/"+pe+" scn"),_e.gState&&f.setGState(_e.gState),J(ie),J("Q")}},Ls=function(K){switch(K){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Xn=f.moveTo=function(K,ie){return J(R(N(K))+" "+R(E(ie))+" m"),this},ya=f.lineTo=function(K,ie){return J(R(N(K))+" "+R(E(ie))+" l"),this},Kn=f.curveTo=function(K,ie,pe,_e,Ne,Fe){return J([R(N(K)),R(E(ie)),R(N(pe)),R(E(_e)),R(N(Ne)),R(E(Fe)),"c"].join(" ")),this};f.__private__.line=f.line=function(K,ie,pe,_e,Ne){if(isNaN(K)||isNaN(ie)||isNaN(pe)||isNaN(_e)||!Lr(Ne))throw new Error("Invalid arguments passed to jsPDF.line");return A===b?this.lines([[pe-K,_e-ie]],K,ie,[1,1],Ne||"S"):this.lines([[pe-K,_e-ie]],K,ie,[1,1]).stroke()},f.__private__.lines=f.lines=function(K,ie,pe,_e,Ne,Fe){var Ye,kt,_t,Wt,Kt,hr,en,_r,xr,Mr,Br,jr;if(typeof K=="number"&&(jr=pe,pe=ie,ie=K,K=jr),_e=_e||[1,1],Fe=Fe||!1,isNaN(ie)||isNaN(pe)||!Array.isArray(K)||!Array.isArray(_e)||!Lr(Ne)||typeof Fe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Xn(ie,pe),Ye=_e[0],kt=_e[1],Wt=K.length,Mr=ie,Br=pe,_t=0;_t<Wt;_t++)(Kt=K[_t]).length===2?(Mr=Kt[0]*Ye+Mr,Br=Kt[1]*kt+Br,ya(Mr,Br)):(hr=Kt[0]*Ye+Mr,en=Kt[1]*kt+Br,_r=Kt[2]*Ye+Mr,xr=Kt[3]*kt+Br,Mr=Kt[4]*Ye+Mr,Br=Kt[5]*kt+Br,Kn(hr,en,_r,xr,Mr,Br));return Fe&&Mn(),Mi(Ne),this},f.path=function(K){for(var ie=0;ie<K.length;ie++){var pe=K[ie],_e=pe.c;switch(pe.op){case"m":Xn(_e[0],_e[1]);break;case"l":ya(_e[0],_e[1]);break;case"c":Kn.apply(this,_e);break;case"h":Mn()}}return this},f.__private__.rect=f.rect=function(K,ie,pe,_e,Ne){if(isNaN(K)||isNaN(ie)||isNaN(pe)||isNaN(_e)||!Lr(Ne))throw new Error("Invalid arguments passed to jsPDF.rect");return A===b&&(_e=-_e),J([R(N(K)),R(E(ie)),R(N(pe)),R(N(_e)),"re"].join(" ")),Mi(Ne),this},f.__private__.triangle=f.triangle=function(K,ie,pe,_e,Ne,Fe,Ye){if(isNaN(K)||isNaN(ie)||isNaN(pe)||isNaN(_e)||isNaN(Ne)||isNaN(Fe)||!Lr(Ye))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[pe-K,_e-ie],[Ne-pe,Fe-_e],[K-Ne,ie-Fe]],K,ie,[1,1],Ye,!0),this},f.__private__.roundedRect=f.roundedRect=function(K,ie,pe,_e,Ne,Fe,Ye){if(isNaN(K)||isNaN(ie)||isNaN(pe)||isNaN(_e)||isNaN(Ne)||isNaN(Fe)||!Lr(Ye))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var kt=4/3*(Math.SQRT2-1);return Ne=Math.min(Ne,.5*pe),Fe=Math.min(Fe,.5*_e),this.lines([[pe-2*Ne,0],[Ne*kt,0,Ne,Fe-Fe*kt,Ne,Fe],[0,_e-2*Fe],[0,Fe*kt,-Ne*kt,Fe,-Ne,Fe],[2*Ne-pe,0],[-Ne*kt,0,-Ne,-Fe*kt,-Ne,-Fe],[0,2*Fe-_e],[0,-Fe*kt,Ne*kt,-Fe,Ne,-Fe]],K+Ne,ie,[1,1],Ye,!0),this},f.__private__.ellipse=f.ellipse=function(K,ie,pe,_e,Ne){if(isNaN(K)||isNaN(ie)||isNaN(pe)||isNaN(_e)||!Lr(Ne))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Fe=4/3*(Math.SQRT2-1)*pe,Ye=4/3*(Math.SQRT2-1)*_e;return Xn(K+pe,ie),Kn(K+pe,ie-Ye,K+Fe,ie-_e,K,ie-_e),Kn(K-Fe,ie-_e,K-pe,ie-Ye,K-pe,ie),Kn(K-pe,ie+Ye,K-Fe,ie+_e,K,ie+_e),Kn(K+Fe,ie+_e,K+pe,ie+Ye,K+pe,ie),Mi(Ne),this},f.__private__.circle=f.circle=function(K,ie,pe,_e){if(isNaN(K)||isNaN(ie)||isNaN(pe)||!Lr(_e))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(K,ie,pe,pe,_e)},f.setFont=function(K,ie,pe){return pe&&(ie=W(ie,pe)),qe=Lt(K,ie,{disableWarning:!1}),this};var wa=f.__private__.getFont=f.getFont=function(){return Oe[Lt.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var K,ie,pe={};for(K in Xe)if(Xe.hasOwnProperty(K))for(ie in pe[K]=[],Xe[K])Xe[K].hasOwnProperty(ie)&&pe[K].push(ie);return pe},f.addFont=function(K,ie,pe,_e,Ne){var Fe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Fe.indexOf(arguments[3])!==-1?Ne=arguments[3]:arguments[3]&&Fe.indexOf(arguments[3])==-1&&(pe=W(pe,_e)),Qe.call(this,K,ie,pe,Ne=Ne||"Identity-H")};var Ri,Bt=t.lineWidth||.200025,xa=f.__private__.getLineWidth=f.getLineWidth=function(){return Bt},ec=f.__private__.setLineWidth=f.setLineWidth=function(K){return Bt=K,J(R(N(K))+" w"),this};f.__private__.setLineDash=Ft.API.setLineDash=Ft.API.setLineDashPattern=function(K,ie){if(K=K||[],ie=ie||0,isNaN(ie)||!Array.isArray(K))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return K=K.map(function(pe){return R(N(pe))}).join(" "),ie=R(N(ie)),J("["+K+"] "+ie+" d"),this};var tc=f.__private__.getLineHeight=f.getLineHeight=function(){return ue*Ri};f.__private__.getLineHeight=f.getLineHeight=function(){return ue*Ri};var rc=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(K){return typeof(K=K||1.15)=="number"&&(Ri=K),this},nc=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return Ri};rc(t.lineHeight);var Ki=f.__private__.getHorizontalCoordinate=function(K){return N(K)},Yi=f.__private__.getVerticalCoordinate=function(K){return A===x?K:it[U].mediaBox.topRightY-it[U].mediaBox.bottomLeftY-N(K)},ic=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(K){return R(Ki(K))},ac=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(K){return R(Yi(K))},Os=t.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return yt(Os)},f.__private__.setStrokeColor=f.setDrawColor=function(K,ie,pe,_e){return Os=gt({ch1:K,ch2:ie,ch3:pe,ch4:_e,pdfColorType:"draw",precision:2}),J(Os),this};var So=t.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return yt(So)},f.__private__.setFillColor=f.setFillColor=function(K,ie,pe,_e){return So=gt({ch1:K,ch2:ie,ch3:pe,ch4:_e,pdfColorType:"fill",precision:2}),J(So),this};var Li=t.textColor||"0 g",sc=f.__private__.getTextColor=f.getTextColor=function(){return yt(Li)};f.__private__.setTextColor=f.setTextColor=function(K,ie,pe,_e){return Li=gt({ch1:K,ch2:ie,ch3:pe,ch4:_e,pdfColorType:"text",precision:3}),this};var Fs=t.charSpace,oc=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Fs||0)};f.__private__.setCharSpace=f.setCharSpace=function(K){if(isNaN(K))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Fs=K,this};var ko=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(K){var ie=f.CapJoinStyles[K];if(ie===void 0)throw new Error("Line cap style of '"+K+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ko=ie,J(ie+" J"),this};var _a=0;f.__private__.setLineJoin=f.setLineJoin=function(K){var ie=f.CapJoinStyles[K];if(ie===void 0)throw new Error("Line join style of '"+K+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _a=ie,J(ie+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(K){if(K=K||0,isNaN(K))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return J(R(N(K))+" M"),this},f.GState=Cu,f.setGState=function(K){(K=typeof K=="string"?ct[nt[K]]:Co(null,K)).equals(Mt)||(J("/"+K.id+" gs"),Mt=K)};var Co=function(K,ie){if(!K||!nt[K]){var pe=!1;for(var _e in ct)if(ct.hasOwnProperty(_e)&&ct[_e].equals(ie)){pe=!0;break}if(pe)ie=ct[_e];else{var Ne="GS"+(Object.keys(ct).length+1).toString(10);ct[Ne]=ie,ie.id=Ne}return K&&(nt[K]=ie.id),Pt.publish("addGState",ie),ie}};f.addGState=function(K,ie){return Co(K,ie),this},f.saveGraphicsState=function(){return J("q"),ut.push({key:qe,size:ue,color:Li}),this},f.restoreGraphicsState=function(){J("Q");var K=ut.pop();return qe=K.key,ue=K.size,Li=K.color,Mt=null,this},f.setCurrentTransformationMatrix=function(K){return J(K.toString()+" cm"),this},f.comment=function(K){return J("#"+K),this};var Qa=function(K,ie){var pe=K||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return pe},set:function(Fe){isNaN(Fe)||(pe=parseFloat(Fe))}});var _e=ie||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return _e},set:function(Fe){isNaN(Fe)||(_e=parseFloat(Fe))}});var Ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ne},set:function(Fe){Ne=Fe.toString()}}),this},Ao=function(K,ie,pe,_e){Qa.call(this,K,ie),this.type="rect";var Ne=pe||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ne},set:function(Ye){isNaN(Ye)||(Ne=parseFloat(Ye))}});var Fe=_e||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Fe},set:function(Ye){isNaN(Ye)||(Fe=parseFloat(Ye))}}),this},Bs=function(){this.page=ht,this.currentPage=U,this.pages=ee.slice(0),this.pagesContext=it.slice(0),this.x=We,this.y=dt,this.matrix=Ke,this.width=xl(U),this.height=Ji(U),this.outputDestination=te,this.id="",this.objectNumber=-1};Bs.prototype.restore=function(){ht=this.page,U=this.currentPage,it=this.pagesContext,ee=this.pages,We=this.x,dt=this.y,Ke=this.matrix,Zi(U,this.width),_l(U,this.height),te=this.outputDestination};var No=function(K,ie,pe,_e,Ne){ir.push(new Bs),ht=U=0,ee=[],We=K,dt=ie,Ke=Ne,st([pe,_e])};for(var js in f.beginFormObject=function(K,ie,pe,_e,Ne){return No(K,ie,pe,_e,Ne),this},f.endFormObject=function(K){return(function(ie){if(qt[ie])ir.pop().restore();else{var pe=new Bs,_e="Xo"+(Object.keys(mt).length+1).toString(10);pe.id=_e,qt[ie]=_e,mt[_e]=pe,Pt.publish("addFormObject",pe),ir.pop().restore()}})(K),this},f.doFormObject=function(K,ie){var pe=mt[qt[K]];return J("q"),J(ie.toString()+" cm"),J("/"+pe.id+" Do"),J("Q"),this},f.getFormObject=function(K){var ie=mt[qt[K]];return{x:ie.x,y:ie.y,width:ie.width,height:ie.height,matrix:ie.matrix}},f.save=function(K,ie){return K=K||"generated.pdf",(ie=ie||{}).returnPromise=ie.returnPromise||!1,ie.returnPromise===!1?(ps(fn(Nr()),K),typeof ps.unload=="function"&&Ut.setTimeout&&setTimeout(ps.unload,911),this):new Promise(function(pe,_e){try{var Ne=ps(fn(Nr()),K);typeof ps.unload=="function"&&Ut.setTimeout&&setTimeout(ps.unload,911),pe(Ne)}catch(Fe){_e(Fe.message)}})},Ft.API)Ft.API.hasOwnProperty(js)&&(js==="events"&&Ft.API.events.length?(function(K,ie){var pe,_e,Ne;for(Ne=ie.length-1;Ne!==-1;Ne--)pe=ie[Ne][0],_e=ie[Ne][1],K.subscribe.apply(K,[pe].concat(typeof _e=="function"?[_e]:_e))})(Pt,Ft.API.events):f[js]=Ft.API[js]);function xl(K){return it[K].mediaBox.topRightX-it[K].mediaBox.bottomLeftX}function Zi(K,ie){it[K].mediaBox.topRightX=ie+it[K].mediaBox.bottomLeftX}function Ji(K){return it[K].mediaBox.topRightY-it[K].mediaBox.bottomLeftY}function _l(K,ie){it[K].mediaBox.topRightY=ie+it[K].mediaBox.bottomLeftY}var Sl=f.getPageWidth=function(K){return xl(K=K||U)/et},kl=f.setPageWidth=function(K,ie){Zi(K,ie*et)},es=f.getPageHeight=function(K){return Ji(K=K||U)/et},Cl=f.setPageHeight=function(K,ie){_l(K,ie*et)};return f.internal={pdfEscape:pt,getStyle:zn,getFont:wa,getFontSize:be,getCharSpace:oc,getTextColor:sc,getLineHeight:tc,getLineHeightFactor:nc,getLineWidth:xa,write:de,getHorizontalCoordinate:Ki,getVerticalCoordinate:Yi,getCoordinateString:ic,getVerticalCoordinateString:ac,collections:{},newObject:Ce,newAdditionalObject:Ct,newObjectDeferred:Re,newObjectDeferredBegin:tt,getFilters:Rt,putStream:Nt,events:Pt,scaleFactor:et,pageSize:{getWidth:function(){return Sl(U)},setWidth:function(K){kl(U,K)},getHeight:function(){return es(U)},setHeight:function(K){Cl(U,K)}},encryptionOptions:u,encryption:Vt,getEncryptor:function(K){return u!==null?Vt.encryptor(K,0):function(ie){return ie}},output:Gn,getNumberOfPages:Ht,get pages(){return ee},out:J,f2:z,f3:D,getPageInfo:sr,getPageInfoByObjId:li,getCurrentPageInfo:bi,getPDFVersion:g,Point:Qa,Rectangle:Ao,Matrix:rt,hasHotfix:bn},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return Sl(U)},set:function(K){kl(U,K)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return es(U)},set:function(K){Cl(U,K)},enumerable:!0,configurable:!0}),(function(K){for(var ie=0,pe=fe.length;ie<pe;ie++){var _e=Qe.call(this,K[ie][0],K[ie][1],K[ie][2],fe[ie][3],!0);h===!1&&(d[_e]=!0);var Ne=K[ie][0].split("-");$e({id:_e,fontName:Ne[0],fontStyle:Ne[1]||""})}Pt.publish("addFonts",{fonts:Oe,dictionary:Xe})}).call(f,fe),qe="F1",lt(c,e),Pt.publish("initialized"),f}eo.prototype.lsbFirstWord=function(t){return String.fromCharCode(255&t,t>>8&255,t>>16&255,t>>24&255)},eo.prototype.toHexString=function(t){return t.split("").map(function(i){return("0"+(255&i.charCodeAt(0)).toString(16)).slice(-2)}).join("")},eo.prototype.hexToBytes=function(t){for(var i=[],e=0;e<t.length;e+=2)i.push(String.fromCharCode(parseInt(t.substr(e,2),16)));return i.join("")},eo.prototype.processOwnerPassword=function(t,i){return Rf(If(i).substr(0,5),t)},eo.prototype.encryptor=function(t,i){var e=If(this.encryptionKey+String.fromCharCode(255&t,t>>8&255,t>>16&255,255&i,i>>8&255)).substr(0,10);return function(s){return Rf(e,s)}},Cu.prototype.equals=function(t){var i,e="id,objectNumber,equals";if(!t||br(t)!==br(this))return!1;var s=0;for(i in this)if(!(e.indexOf(i)>=0)){if(this.hasOwnProperty(i)&&!t.hasOwnProperty(i)||this[i]!==t[i])return!1;s++}for(i in t)t.hasOwnProperty(i)&&e.indexOf(i)<0&&s--;return s===0},Ft.API={events:[]},Ft.version="4.2.1";var $r=Ft.API,hd=1,Is=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Js=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},As=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(i){var e=i.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},Xt=function(t){return t.toFixed(2)},Oa=function(t){return t.toFixed(5)};$r.__acroform__={};var Hn=function(t,i){t.prototype=Object.create(i.prototype),t.prototype.constructor=t},Hp=function(t){return t*hd},Vi=function(t){var i=new n1,e=wt.internal.getHeight(t)||0,s=wt.internal.getWidth(t)||0;return i.BBox=[0,0,Number(Xt(s)),Number(Xt(e))],i},aw=$r.__acroform__.setBit=function(t,i){if(t=t||0,i=i||0,isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<<i},sw=$r.__acroform__.clearBit=function(t,i){if(t=t||0,i=i||0,isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return t&~(1<<i)},ow=$r.__acroform__.getBit=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return t&1<<i?1:0},Kr=$r.__acroform__.getBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return ow(t,i-1)},Yr=$r.__acroform__.setBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return aw(t,i-1)},Zr=$r.__acroform__.clearBitForPdf=function(t,i){if(isNaN(t)||isNaN(i))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return sw(t,i-1)},lw=$r.__acroform__.calculateCoordinates=function(t,i){var e=i.internal.getHorizontalCoordinate,s=i.internal.getVerticalCoordinate,c=t[0],r=t[1],o=t[2],l=t[3],a={};return a.lowerLeft_X=e(c)||0,a.lowerLeft_Y=s(r+l)||0,a.upperRight_X=e(c+o)||0,a.upperRight_Y=s(r)||0,[Number(Xt(a.lowerLeft_X)),Number(Xt(a.lowerLeft_Y)),Number(Xt(a.upperRight_X)),Number(Xt(a.upperRight_Y))]},uw=function(t){if(t.appearanceStreamContent)return t.appearanceStreamContent;if(t.V||t.DV){var i=[],e=t._V||t.DV,s=Lf(t,e),c=t.scope.internal.getFont(t.fontName,t.fontStyle).id;i.push("/Tx BMC"),i.push("q"),i.push("BT"),i.push(t.scope.__private__.encodeColorString(t.color)),i.push("/"+c+" "+Xt(s.fontSize)+" Tf"),i.push("1 0 0 1 0 0 Tm"),i.push(s.text),i.push("ET"),i.push("Q"),i.push("EMC");var r=Vi(t);return r.scope=t.scope,r.stream=i.join(`
24
+ `),r}},Lf=function(t,i){var e=t.fontSize===0?t.maxFontSize:t.fontSize,s={text:"",fontSize:""},c=(i=(i=i.substr(0,1)=="("?i.substr(1):i).substr(i.length-1)==")"?i.substr(0,i.length-1):i).split(" ");c=t.multiline?c.map(function(z){return z.split(`
25
+ `)}):c.map(function(z){return[z]});var r=e,o=wt.internal.getHeight(t)||0;o=o<0?-o:o;var l=wt.internal.getWidth(t)||0;l=l<0?-l:l;var a=function(z,D,N){if(z+1<c.length){var E=D+" "+c[z+1][0];return tu(E,t,N).width<=l-4}return!1};r++;e:for(;r>0;){i="",r--;var n,u,h=tu("3",t,r).height,d=t.multiline?o-r:(o-h)/2,f=d+=2,m=0,g=0,p=0;if(r<=0){i=`(...) Tj
26
+ `,i+="% Width of Text: "+tu(i,t,r=12).width+", FieldWidth:"+l+`
27
+ `;break}for(var v="",b=0,x=0;x<c.length;x++)if(c.hasOwnProperty(x)){var A=!1;if(c[x].length!==1&&p!==c[x].length-1){if((h+2)*(b+2)+2>o)continue e;v+=c[x][p],A=!0,g=x,x--}else{v=(v+=c[x][p]+" ").substr(v.length-1)==" "?v.substr(0,v.length-1):v;var M=parseInt(x),V=a(M,v,r),W=x>=c.length-1;if(V&&!W){v+=" ",p=0;continue}if(V||W){if(W)g=M;else if(t.multiline&&(h+2)*(b+2)+2>o)continue e}else{if(!t.multiline||(h+2)*(b+2)+2>o)continue e;g=M}}for(var R="",F=m;F<=g;F++){var $=c[F];if(t.multiline){if(F===g){R+=$[p]+" ",p=(p+1)%$.length;continue}if(F===m){R+=$[$.length-1]+" ";continue}}R+=$[0]+" "}switch(R=R.substr(R.length-1)==" "?R.substr(0,R.length-1):R,u=tu(R,t,r).width,t.textAlign){case"right":n=l-u-2;break;case"center":n=(l-u)/2;break;default:n=2}i+=Xt(n)+" "+Xt(f)+` Td
28
+ `,i+="("+Is(R)+`) Tj
29
+ `,i+=-Xt(n)+` 0 Td
30
+ `,f=-(r+2),u=0,m=A?g:g+1,b++,v=""}break}return s.text=i,s.fontSize=r,s},tu=function(t,i,e){var s=i.scope.internal.getFont(i.fontName,i.fontStyle),c=i.scope.getStringUnitWidth(t,{font:s,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:i.scope.getStringUnitWidth("3",{font:s,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:c}},cw={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fw=function(t,i){var e={type:"reference",object:t};i.internal.getPageInfo(t.page).pageContext.annotations.find(function(s){return s.type===e.type&&s.object===e.object})===void 0&&i.internal.getPageInfo(t.page).pageContext.annotations.push(e)},dw=function(t,i){if(i.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(Ei.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(cw)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");hd=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new i1,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var s=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var c in s)if(s.hasOwnProperty(c)){var r=s[c];r.objId=void 0,r.hasAnnotation&&fw(r,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(s,c){var r=!s;for(var o in s||(c.internal.newObjectDeferredBegin(c.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),c.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),s=s||c.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(s.hasOwnProperty(o)){var l=s[o],a=[],n=l.Rect;if(l.Rect&&(l.Rect=lw(l.Rect,c)),c.internal.newObjectDeferredBegin(l.objId,!0),l.DA=wt.createDefaultAppearanceStream(l),br(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(a=l.getKeyValueListForStream()),l.Rect=n,l.hasAppearanceStream&&!l.appearanceStreamContent){var u=uw(l);a.push({key:"AP",value:"<</N "+u+">>"}),c.internal.acroformPlugin.xForms.push(u)}if(l.appearanceStreamContent){var h="";for(var d in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(d)){var f=l.appearanceStreamContent[d];if(h+="/"+d+" ",h+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var m=f[o];typeof m=="function"&&(m=m.call(c,l)),h+="/"+o+" "+m+" ",c.internal.acroformPlugin.xForms.indexOf(m)>=0||c.internal.acroformPlugin.xForms.push(m)}}else typeof(m=f)=="function"&&(m=m.call(c,l)),h+="/"+o+" "+m,c.internal.acroformPlugin.xForms.indexOf(m)>=0||c.internal.acroformPlugin.xForms.push(m);h+=">>"}a.push({key:"AP",value:`<<
31
+ `+h+">>"})}c.internal.putStream({additionalKeyValues:a,objectId:l.objId}),c.internal.out("endobj")}r&&(function(g,p){for(var v in g)if(g.hasOwnProperty(v)){var b=v,x=g[v];p.internal.newObjectDeferredBegin(x.objId,!0),br(x)==="object"&&typeof x.putStream=="function"&&x.putStream(),delete g[b]}})(c.internal.acroformPlugin.xForms,c)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},r1=$r.__acroform__.arrayToPdfArray=function(t,i,e){var s=function(o){return o};if(Array.isArray(t)){for(var c="[",r=0;r<t.length;r++)switch(r!==0&&(c+=" "),br(t[r])){case"boolean":case"number":case"object":c+=t[r].toString();break;case"string":t[r].substr(0,1)==="/"?c+="/"+As(t[r].substr(1)):(i!==void 0&&e&&(s=e.internal.getEncryptor(i)),c+="("+Is(s(t[r].toString()))+")")}return c+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Kc=function(t,i,e){var s=function(c){return c};return i!==void 0&&e&&(s=e.internal.getEncryptor(i)),(t=t||"").toString(),"("+Is(s(t))+")"},zi=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(t){this._objId=t}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};zi.prototype.toString=function(){return this.objId+" 0 R"},zi.prototype.putStream=function(){var t=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:t,objectId:this.objId}),this.scope.internal.out("endobj")},zi.prototype.getKeyValueListForStream=function(){var t=[],i=Object.getOwnPropertyNames(this).filter(function(r){return r!="content"&&r!="appearanceStreamContent"&&r!="scope"&&r!="objId"&&r.substring(0,1)!="_"});for(var e in i)if(Object.getOwnPropertyDescriptor(this,i[e]).configurable===!1){var s=i[e],c=this[s];c&&(Array.isArray(c)?t.push({key:s,value:r1(c,this.objId,this.scope)}):c instanceof zi?(c.scope=this.scope,t.push({key:s,value:c.objId+" 0 R"})):typeof c!="function"&&t.push({key:s,value:c}))}return t};var n1=function(){zi.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var t,i=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){t=e.trim()},get:function(){return t||null}})};Hn(n1,zi);var i1=function(){zi.call(this);var t,i=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return i.length>0?i:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return i}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(s){return s};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Is(e(t))+")"}},set:function(e){t=e}})};Hn(i1,zi);var Ei=function t(){zi.call(this);var i=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return i},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute F supplied.');i=v}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Kr(i,3)},set:function(v){v?this.F=Yr(i,3):this.F=Zr(i,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(v){if(isNaN(v))throw new Error('Invalid value "'+v+'" for attribute Ff supplied.');e=v}});var s=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(s.length!==0)return s},set:function(v){s=v!==void 0?v:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!s||isNaN(s[0])?0:s[0]},set:function(v){s[0]=v}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!s||isNaN(s[1])?0:s[1]},set:function(v){s[1]=v}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!s||isNaN(s[2])?0:s[2]},set:function(v){s[2]=v}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!s||isNaN(s[3])?0:s[3]},set:function(v){s[3]=v}});var c="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return c},set:function(v){switch(v){case"/Btn":case"/Tx":case"/Ch":case"/Sig":c=v;break;default:throw new Error('Invalid value "'+v+'" for attribute FT supplied.')}}});var r=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!r||r.length<1){if(this instanceof Au)return;r="FieldObject"+t.FieldNum++}var v=function(b){return b};return this.scope&&(v=this.scope.internal.getEncryptor(this.objId)),"("+Is(v(r))+")"},set:function(v){r=v.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return r},set:function(v){r=v}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(v){o=v}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(v){l=v}});var a=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return a},set:function(v){a=v}});var n=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return n===void 0?50/hd:n},set:function(v){n=v}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(v){u=v}});var h="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!h||this instanceof Au||this instanceof bs))return Kc(h,this.objId,this.scope)},set:function(v){v=v.toString(),h=v}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof dn==0?Kc(d,this.objId,this.scope):d},set:function(v){v=v.toString(),d=this instanceof dn==0?v.substr(0,1)==="("?Js(v.substr(1,v.length-2)):Js(v):v}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn==1?Js(d.substr(1,d.length-1)):d},set:function(v){v=v.toString(),d=this instanceof dn==1?"/"+As(v):v}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(v){this.V=v}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof dn==0?Kc(f,this.objId,this.scope):f},set:function(v){v=v.toString(),f=this instanceof dn==0?v.substr(0,1)==="("?Js(v.substr(1,v.length-2)):Js(v):v}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof dn==1?Js(f.substr(1,f.length-1)):f},set:function(v){v=v.toString(),f=this instanceof dn==1?"/"+As(v):v}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var m,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(v){v=!!v,g=v}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(v){m=v}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,1)},set:function(v){v?this.Ff=Yr(this.Ff,1):this.Ff=Zr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,2)},set:function(v){v?this.Ff=Yr(this.Ff,2):this.Ff=Zr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,3)},set:function(v){v?this.Ff=Yr(this.Ff,3):this.Ff=Zr(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(p!==null)return p},set:function(v){if([0,1,2].indexOf(v)===-1)throw new Error('Invalid value "'+v+'" for attribute Q supplied.');p=v}}),Object.defineProperty(this,"textAlign",{get:function(){var v;switch(p){case 0:default:v="left";break;case 1:v="center";break;case 2:v="right"}return v},configurable:!0,enumerable:!0,set:function(v){switch(v){case"right":case 2:p=2;break;case"center":case 1:p=1;break;default:p=0}}})};Hn(Ei,zi);var no=function(){Ei.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var i=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return r1(i,this.objId,this.scope)},set:function(e){var s,c;c=[],typeof(s=e)=="string"&&(c=(function(r,o,l){l||(l=1);for(var a,n=[];a=o.exec(r);)n.push(a[l]);return n})(s,/\((.*?)\)/g)),i=c}}),this.getOptions=function(){return i},this.setOptions=function(e){i=e,this.sort&&i.sort()},this.addOption=function(e){e=(e=e||"").toString(),i.push(e),this.sort&&i.sort()},this.removeOption=function(e,s){for(s=s||!1,e=(e=e||"").toString();i.indexOf(e)!==-1&&(i.splice(i.indexOf(e),1),s!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,18)},set:function(e){e?this.Ff=Yr(this.Ff,18):this.Ff=Zr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Yr(this.Ff,19):this.Ff=Zr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,20)},set:function(e){e?(this.Ff=Yr(this.Ff,20),i.sort()):this.Ff=Zr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,22)},set:function(e){e?this.Ff=Yr(this.Ff,22):this.Ff=Zr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(e){e?this.Ff=Yr(this.Ff,23):this.Ff=Zr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,27)},set:function(e){e?this.Ff=Yr(this.Ff,27):this.Ff=Zr(this.Ff,27)}}),this.hasAppearanceStream=!1};Hn(no,Ei);var io=function(){no.call(this),this.fontName="helvetica",this.combo=!1};Hn(io,no);var ao=function(){io.call(this),this.combo=!0};Hn(ao,io);var fu=function(){ao.call(this),this.edit=!0};Hn(fu,ao);var dn=function(){Ei.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,15)},set:function(e){e?this.Ff=Yr(this.Ff,15):this.Ff=Zr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,16)},set:function(e){e?this.Ff=Yr(this.Ff,16):this.Ff=Zr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,17)},set:function(e){e?this.Ff=Yr(this.Ff,17):this.Ff=Zr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(e){e?this.Ff=Yr(this.Ff,26):this.Ff=Zr(this.Ff,26)}});var t,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(r){return r};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(i).length!==0){var s,c=[];for(s in c.push("<<"),i)c.push("/"+s+" ("+Is(e(i[s]))+")");return c.push(">>"),c.join(`
32
+ `)}},set:function(e){br(e)==="object"&&(i=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(e){typeof e=="string"&&(i.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var s=e==null?"":e.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),t="/"+As(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+As(e)}})};Hn(dn,Ei);var du=function(){dn.call(this),this.pushButton=!0};Hn(du,dn);var so=function(){dn.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(i){t=i!==void 0?i:[]}})};Hn(so,dn);var Au=function(){var t,i;Ei.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(c){t=c}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return i},set:function(c){i=c}});var e,s={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var c=function(l){return l};this.scope&&(c=this.scope.internal.getEncryptor(this.objId));var r,o=[];for(r in o.push("<<"),s)o.push("/"+r+" ("+Is(c(s[r]))+")");return o.push(">>"),o.join(`
33
+ `)},set:function(c){br(c)==="object"&&(s=c)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return s.CA||""},set:function(c){typeof c=="string"&&(s.CA=c)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(c){var r=c==null?"":c.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+As(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(c){var r=c==null?"":c.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),e="/"+As(r)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=wt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Hn(Au,Ei),so.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var i in this.Kids)if(this.Kids.hasOwnProperty(i)){var e=this.Kids[i];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},so.prototype.createOption=function(t){var i=new Au;return i.Parent=this,i.optionName=t,this.Kids.push(i),hw.call(this.scope,i),i};var hu=function(){dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=wt.CheckBox.createAppearanceStream()};Hn(hu,dn);var bs=function(){Ei.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,13)},set:function(i){i?this.Ff=Yr(this.Ff,13):this.Ff=Zr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,21)},set:function(i){i?this.Ff=Yr(this.Ff,21):this.Ff=Zr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(i){i?this.Ff=Yr(this.Ff,23):this.Ff=Zr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,24)},set:function(i){i?this.Ff=Yr(this.Ff,24):this.Ff=Zr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,25)},set:function(i){i?this.Ff=Yr(this.Ff,25):this.Ff=Zr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(i){i?this.Ff=Yr(this.Ff,26):this.Ff=Zr(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(i){t=i}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(i){Number.isInteger(i)&&(t=i)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Hn(bs,Ei);var pu=function(){bs.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,14)},set:function(t){t?this.Ff=Yr(this.Ff,14):this.Ff=Zr(this.Ff,14)}}),this.password=!0};Hn(pu,bs);var wt={CheckBox:{createAppearanceStream:function(){return{N:{On:wt.CheckBox.YesNormal},D:{On:wt.CheckBox.YesPushDown,Off:wt.CheckBox.OffPushDown}}},YesPushDown:function(t){var i=Vi(t);i.scope=t.scope;var e=[],s=t.scope.internal.getFont(t.fontName,t.fontStyle).id,c=t.scope.__private__.encodeColorString(t.color),r=Lf(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(wt.internal.getWidth(t))+" "+Xt(wt.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+s+" "+Xt(r.fontSize)+" Tf "+c),e.push("BT"),e.push(r.text),e.push("ET"),e.push("Q"),e.push("EMC"),i.stream=e.join(`
34
+ `),i},YesNormal:function(t){var i=Vi(t);i.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,s=t.scope.__private__.encodeColorString(t.color),c=[],r=wt.internal.getHeight(t),o=wt.internal.getWidth(t),l=Lf(t,t.caption);return c.push("1 g"),c.push("0 0 "+Xt(o)+" "+Xt(r)+" re"),c.push("f"),c.push("q"),c.push("0 0 1 rg"),c.push("0 0 "+Xt(o-1)+" "+Xt(r-1)+" re"),c.push("W"),c.push("n"),c.push("0 g"),c.push("BT"),c.push("/"+e+" "+Xt(l.fontSize)+" Tf "+s),c.push(l.text),c.push("ET"),c.push("Q"),i.stream=c.join(`
35
+ `),i},OffPushDown:function(t){var i=Vi(t);i.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(wt.internal.getWidth(t))+" "+Xt(wt.internal.getHeight(t))+" re"),e.push("f"),i.stream=e.join(`
36
+ `),i}},RadioButton:{Circle:{createAppearanceStream:function(t){var i={D:{Off:wt.RadioButton.Circle.OffPushDown},N:{}};return i.N[t]=wt.RadioButton.Circle.YesNormal,i.D[t]=wt.RadioButton.Circle.YesPushDown,i},getCA:function(){return"l"},YesNormal:function(t){var i=Vi(t);i.scope=t.scope;var e=[],s=wt.internal.getWidth(t)<=wt.internal.getHeight(t)?wt.internal.getWidth(t)/4:wt.internal.getHeight(t)/4;s=Number((.9*s).toFixed(5));var c=wt.internal.Bezier_C,r=Number((s*c).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+Oa(wt.internal.getWidth(t)/2)+" "+Oa(wt.internal.getHeight(t)/2)+" cm"),e.push(s+" 0 m"),e.push(s+" "+r+" "+r+" "+s+" 0 "+s+" c"),e.push("-"+r+" "+s+" -"+s+" "+r+" -"+s+" 0 c"),e.push("-"+s+" -"+r+" -"+r+" -"+s+" 0 -"+s+" c"),e.push(r+" -"+s+" "+s+" -"+r+" "+s+" 0 c"),e.push("f"),e.push("Q"),i.stream=e.join(`
37
+ `),i},YesPushDown:function(t){var i=Vi(t);i.scope=t.scope;var e=[],s=wt.internal.getWidth(t)<=wt.internal.getHeight(t)?wt.internal.getWidth(t)/4:wt.internal.getHeight(t)/4;s=Number((.9*s).toFixed(5));var c=Number((2*s).toFixed(5)),r=Number((c*wt.internal.Bezier_C).toFixed(5)),o=Number((s*wt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Oa(wt.internal.getWidth(t)/2)+" "+Oa(wt.internal.getHeight(t)/2)+" cm"),e.push(c+" 0 m"),e.push(c+" "+r+" "+r+" "+c+" 0 "+c+" c"),e.push("-"+r+" "+c+" -"+c+" "+r+" -"+c+" 0 c"),e.push("-"+c+" -"+r+" -"+r+" -"+c+" 0 -"+c+" c"),e.push(r+" -"+c+" "+c+" -"+r+" "+c+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+Oa(wt.internal.getWidth(t)/2)+" "+Oa(wt.internal.getHeight(t)/2)+" cm"),e.push(s+" 0 m"),e.push(s+" "+o+" "+o+" "+s+" 0 "+s+" c"),e.push("-"+o+" "+s+" -"+s+" "+o+" -"+s+" 0 c"),e.push("-"+s+" -"+o+" -"+o+" -"+s+" 0 -"+s+" c"),e.push(o+" -"+s+" "+s+" -"+o+" "+s+" 0 c"),e.push("f"),e.push("Q"),i.stream=e.join(`
38
+ `),i},OffPushDown:function(t){var i=Vi(t);i.scope=t.scope;var e=[],s=wt.internal.getWidth(t)<=wt.internal.getHeight(t)?wt.internal.getWidth(t)/4:wt.internal.getHeight(t)/4;s=Number((.9*s).toFixed(5));var c=Number((2*s).toFixed(5)),r=Number((c*wt.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+Oa(wt.internal.getWidth(t)/2)+" "+Oa(wt.internal.getHeight(t)/2)+" cm"),e.push(c+" 0 m"),e.push(c+" "+r+" "+r+" "+c+" 0 "+c+" c"),e.push("-"+r+" "+c+" -"+c+" "+r+" -"+c+" 0 c"),e.push("-"+c+" -"+r+" -"+r+" -"+c+" 0 -"+c+" c"),e.push(r+" -"+c+" "+c+" -"+r+" "+c+" 0 c"),e.push("f"),e.push("Q"),i.stream=e.join(`
39
+ `),i}},Cross:{createAppearanceStream:function(t){var i={D:{Off:wt.RadioButton.Cross.OffPushDown},N:{}};return i.N[t]=wt.RadioButton.Cross.YesNormal,i.D[t]=wt.RadioButton.Cross.YesPushDown,i},getCA:function(){return"8"},YesNormal:function(t){var i=Vi(t);i.scope=t.scope;var e=[],s=wt.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(wt.internal.getWidth(t)-2)+" "+Xt(wt.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(s.x1.x)+" "+Xt(s.x1.y)+" m"),e.push(Xt(s.x2.x)+" "+Xt(s.x2.y)+" l"),e.push(Xt(s.x4.x)+" "+Xt(s.x4.y)+" m"),e.push(Xt(s.x3.x)+" "+Xt(s.x3.y)+" l"),e.push("s"),e.push("Q"),i.stream=e.join(`
40
+ `),i},YesPushDown:function(t){var i=Vi(t);i.scope=t.scope;var e=wt.internal.calculateCross(t),s=[];return s.push("0.749023 g"),s.push("0 0 "+Xt(wt.internal.getWidth(t))+" "+Xt(wt.internal.getHeight(t))+" re"),s.push("f"),s.push("q"),s.push("1 1 "+Xt(wt.internal.getWidth(t)-2)+" "+Xt(wt.internal.getHeight(t)-2)+" re"),s.push("W"),s.push("n"),s.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),s.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),s.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),s.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),s.push("s"),s.push("Q"),i.stream=s.join(`
41
+ `),i},OffPushDown:function(t){var i=Vi(t);i.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(wt.internal.getWidth(t))+" "+Xt(wt.internal.getHeight(t))+" re"),e.push("f"),i.stream=e.join(`
42
+ `),i}}},createDefaultAppearanceStream:function(t){var i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+i+" "+t.fontSize+" Tf "+e}};wt.internal={Bezier_C:.551915024494,calculateCross:function(t){var i=wt.internal.getWidth(t),e=wt.internal.getHeight(t),s=Math.min(i,e);return{x1:{x:(i-s)/2,y:(e-s)/2+s},x2:{x:(i-s)/2+s,y:(e-s)/2},x3:{x:(i-s)/2,y:(e-s)/2},x4:{x:(i-s)/2+s,y:(e-s)/2+s}}}},wt.internal.getWidth=function(t){var i=0;return br(t)==="object"&&(i=Hp(t.Rect[2])),i},wt.internal.getHeight=function(t){var i=0;return br(t)==="object"&&(i=Hp(t.Rect[3])),i};var hw=$r.addField=function(t){if(dw(this,t),!(t instanceof Ei))throw new Error("Invalid argument passed to jsPDF.addField.");var i;return(i=t).scope.internal.acroformPlugin.printedOut&&(i.scope.internal.acroformPlugin.printedOut=!1,i.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),i.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(i),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};$r.AcroFormChoiceField=no,$r.AcroFormListBox=io,$r.AcroFormComboBox=ao,$r.AcroFormEditBox=fu,$r.AcroFormButton=dn,$r.AcroFormPushButton=du,$r.AcroFormRadioButton=so,$r.AcroFormCheckBox=hu,$r.AcroFormTextField=bs,$r.AcroFormPasswordField=pu,$r.AcroFormAppearance=wt,$r.AcroForm={ChoiceField:no,ListBox:io,ComboBox:ao,EditBox:fu,Button:dn,PushButton:du,RadioButton:so,CheckBox:hu,TextField:bs,PasswordField:pu,Appearance:wt},Ft.AcroForm={ChoiceField:no,ListBox:io,ComboBox:ao,EditBox:fu,Button:dn,PushButton:du,RadioButton:so,CheckBox:hu,TextField:bs,PasswordField:pu,Appearance:wt};Ft.AcroForm;function a1(t){return t.reduce(function(i,e,s){return i[e]=s,i},{})}(function(t){var i="addImage_";t.__addimage__={};var e="UNKNOWN",s={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},c=t.__addimage__.getImageFileTypeByImageData=function(z,D){var N,E,C,w,S,_=e;if((D=D||e)==="RGBA"||z.data!==void 0&&z.data instanceof Uint8ClampedArray&&"height"in z&&"width"in z)return"RGBA";if(V(z))for(S in s)for(C=s[S],N=0;N<C.length;N+=1){for(w=!0,E=0;E<C[N].length;E+=1)if(C[N][E]!==void 0&&C[N][E]!==z[E]){w=!1;break}if(w===!0){_=S;break}}else for(S in s)for(C=s[S],N=0;N<C.length;N+=1){for(w=!0,E=0;E<C[N].length;E+=1)if(C[N][E]!==void 0&&C[N][E]!==z.charCodeAt(E)){w=!1;break}if(w===!0){_=S;break}}return _===e&&D!==e&&(_=D),_},r=function z(D){for(var N=this.internal.write,E=this.internal.putStream,C=(0,this.internal.getFilters)();C.indexOf("FlateEncode")!==-1;)C.splice(C.indexOf("FlateEncode"),1);D.objectId=this.internal.newObject();var w=[];if(w.push({key:"Type",value:"/XObject"}),w.push({key:"Subtype",value:"/Image"}),w.push({key:"Width",value:D.width}),w.push({key:"Height",value:D.height}),D.colorSpace===v.INDEXED?w.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(D.palette.length/3-1)+" "+("sMask"in D&&D.sMask!==void 0?D.objectId+2:D.objectId+1)+" 0 R]"}):(w.push({key:"ColorSpace",value:"/"+D.colorSpace}),D.colorSpace===v.DEVICE_CMYK&&w.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),w.push({key:"BitsPerComponent",value:D.bitsPerComponent}),"decodeParameters"in D&&D.decodeParameters!==void 0&&w.push({key:"DecodeParms",value:"<<"+D.decodeParameters+">>"}),"transparency"in D&&Array.isArray(D.transparency)&&D.transparency.length>0){for(var S="",_=0,k=D.transparency.length;_<k;_++)S+=D.transparency[_]+" "+D.transparency[_]+" ";w.push({key:"Mask",value:"["+S+"]"})}D.sMask!==void 0&&w.push({key:"SMask",value:D.objectId+1+" 0 R"});var T=D.filter!==void 0?["/"+D.filter]:void 0;if(E({data:D.data,additionalKeyValues:w,alreadyAppliedFilters:T,objectId:D.objectId}),N("endobj"),"sMask"in D&&D.sMask!==void 0){var j,P=(j=D.sMaskBitsPerComponent)!==null&&j!==void 0?j:D.bitsPerComponent,U={width:D.width,height:D.height,colorSpace:"DeviceGray",bitsPerComponent:P,data:D.sMask};"filter"in D&&(U.decodeParameters="/Predictor ".concat(D.predictor," /Colors 1 /BitsPerComponent ").concat(P," /Columns ").concat(D.width),U.filter=D.filter),z.call(this,U)}if(D.colorSpace===v.INDEXED){var q=this.internal.newObject();E({data:R(new Uint8Array(D.palette)),objectId:q}),N("endobj")}},o=function(){var z=this.internal.collections[i+"images"];for(var D in z)r.call(this,z[D])},l=function(){var z,D=this.internal.collections[i+"images"],N=this.internal.write;for(var E in D)N("/I"+(z=D[E]).index,z.objectId,"0","R")},a=function(){this.internal.collections[i+"images"]||(this.internal.collections[i+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",l))},n=function(){var z=this.internal.collections[i+"images"];return a.call(this),z},u=function(){return Object.keys(this.internal.collections[i+"images"]).length},h=function(z){return typeof t["process"+z.toUpperCase()]=="function"},d=function(z){return br(z)==="object"&&z.nodeType===1},f=function(z,D){if(z.nodeName==="IMG"&&z.hasAttribute("src")){var N=""+z.getAttribute("src");if(N.indexOf("data:image/")===0)return cu(unescape(N).split("base64,").pop());var E=t.loadFile(N,!0);if(E!==void 0)return E}if(z.nodeName==="CANVAS"){if(z.width===0||z.height===0)throw new Error("Given canvas must have data. Canvas width: "+z.width+", height: "+z.height);var C;switch(D){case"PNG":C="image/png";break;case"WEBP":C="image/webp";break;default:C="image/jpeg"}return cu(z.toDataURL(C,1).split("base64,").pop())}},m=function(z){var D=this.internal.collections[i+"images"];if(D){for(var N in D)if(z===D[N].alias)return D[N]}},g=function(z,D,N){return z||D||(z=-96,D=-96),z<0&&(z=-1*N.width*72/z/this.internal.scaleFactor),D<0&&(D=-1*N.height*72/D/this.internal.scaleFactor),z===0&&(z=D*N.width/N.height),D===0&&(D=z*N.height/N.width),[z,D]},p=function(z,D,N,E,C,w){var S=g.call(this,N,E,C),_=this.internal.getCoordinateString,k=this.internal.getVerticalCoordinateString,T=n.call(this);if(N=S[0],E=S[1],T[C.index]=C,w){w*=Math.PI/180;var j=Math.cos(w),P=Math.sin(w),U=function(Z){return Z.toFixed(4)},q=[U(j),U(P),U(-1*P),U(j),0,0,"cm"]}this.internal.write("q"),w?(this.internal.write([1,"0","0",1,_(z),k(D+E),"cm"].join(" ")),this.internal.write(q.join(" ")),this.internal.write([_(N),"0","0",_(E),"0","0","cm"].join(" "))):this.internal.write([_(N),"0","0",_(E),_(z),k(D+E),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+C.index+" Do"),this.internal.write("Q")},v=t.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};t.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=t.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=t.__addimage__.sHashCode=function(z){var D,N,E=0;if(typeof z=="string")for(N=z.length,D=0;D<N;D++)E=(E<<5)-E+z.charCodeAt(D),E|=0;else if(V(z))for(N=z.byteLength/2,D=0;D<N;D++)E=(E<<5)-E+z[D],E|=0;return E},A=t.__addimage__.validateStringAsBase64=function(z){(z=z||"").toString().trim();var D=!0;return z.length===0&&(D=!1),z.length%4!=0&&(D=!1),/^[A-Za-z0-9+/]+$/.test(z.substr(0,z.length-2))===!1&&(D=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(z.substr(-2))===!1&&(D=!1),D},M=t.__addimage__.extractImageFromDataUrl=function(z){if(z==null||!(z=z.trim()).startsWith("data:"))return null;var D=z.indexOf(",");return D<0?null:z.substring(0,D).trim().endsWith("base64")?z.substring(D+1):null};t.__addimage__.isArrayBuffer=function(z){return z instanceof ArrayBuffer};var V=t.__addimage__.isArrayBufferView=function(z){return z instanceof Int8Array||z instanceof Uint8Array||z instanceof Uint8ClampedArray||z instanceof Int16Array||z instanceof Uint16Array||z instanceof Int32Array||z instanceof Uint32Array||z instanceof Float32Array||z instanceof Float64Array},W=t.__addimage__.binaryStringToUint8Array=function(z){for(var D=z.length,N=new Uint8Array(D),E=0;E<D;E++)N[E]=z.charCodeAt(E);return N},R=t.__addimage__.arrayBufferToBinaryString=function(z){for(var D="",N=V(z)?z:new Uint8Array(z),E=0;E<N.length;E+=8192)D+=String.fromCharCode.apply(null,N.subarray(E,E+8192));return D};t.addImage=function(){var z,D,N,E,C,w,S,_,k;if(typeof arguments[1]=="number"?(D=e,N=arguments[1],E=arguments[2],C=arguments[3],w=arguments[4],S=arguments[5],_=arguments[6],k=arguments[7]):(D=arguments[1],N=arguments[2],E=arguments[3],C=arguments[4],w=arguments[5],S=arguments[6],_=arguments[7],k=arguments[8]),br(z=arguments[0])==="object"&&!d(z)&&"imageData"in z){var T=z;z=T.imageData,D=T.format||D||e,N=T.x||N||0,E=T.y||E||0,C=T.w||T.width||C,w=T.h||T.height||w,S=T.alias||S,_=T.compression||_,k=T.rotation||T.angle||k}var j=this.internal.getFilters();if(_===void 0&&j.indexOf("FlateEncode")!==-1&&(_="SLOW"),isNaN(N)||isNaN(E))throw new Error("Invalid coordinates passed to jsPDF.addImage");a.call(this);var P=F.call(this,z,D,S,_);return p.call(this,N,E,C,w,P,k),this};var F=function(z,D,N,E){var C,w,S;if(typeof z=="string"&&c(z)===e){z=unescape(z);var _=$(z,!1);(_!==""||(_=t.loadFile(z,!0))!==void 0)&&(z=_)}if(d(z)&&(z=f(z,D)),D=c(z,D),!h(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(((S=N)==null||S.length===0)&&(N=(function(k){return typeof k=="string"||V(k)?x(k):V(k.data)?x(k.data):null})(z)),(C=m.call(this,N))||(z instanceof Uint8Array||D==="RGBA"||(w=z,z=W(z)),C=this["process"+D.toUpperCase()](z,u.call(this),N,(function(k){return k&&typeof k=="string"&&(k=k.toUpperCase()),k in t.image_compression?k:b.NONE})(E),w)),!C)throw new Error("An unknown error occurred whilst processing the image.");return C},$=t.__addimage__.convertBase64ToBinaryString=function(z,D){D=typeof D!="boolean"||D;var N,E="";if(typeof z=="string"){var C;N=(C=M(z))!==null&&C!==void 0?C:z;try{E=cu(N)}catch(w){if(D)throw A(N)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+w.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return E};t.getImageProperties=function(z){var D,N,E="";if(d(z)&&(z=f(z)),typeof z=="string"&&c(z)===e&&((E=$(z,!1))===""&&(E=t.loadFile(z)||""),z=E),N=c(z),!h(N))throw new Error("addImage does not support files of type '"+N+"', please ensure that a plugin for '"+N+"' support is added.");if(z instanceof Uint8Array||(z=W(z)),!(D=this["process"+N.toUpperCase()](z)))throw new Error("An unknown error occurred whilst processing the image");return D.fileType=N,D}})(Ft.API),(function(t){var i=function(e){if(e!==void 0&&e!="")return!0};Ft.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),t.events.push(["putPage",function(e){for(var s,c,r,o=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,a=this.internal.getPageInfoByObjId(e.objId),n=e.pageContext.annotations,u=!1,h=0;h<n.length&&!u;h++)switch((s=n[h]).type){case"link":(i(s.options.url)||i(s.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var d=0;d<n.length;d++){s=n[d];var f=this.internal.pdfEscape,m=this.internal.getEncryptor(e.objId);switch(s.type){case"reference":this.internal.write(" "+s.object.objId+" 0 R ");break;case"text":var g=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),v=this.internal.getEncryptor(g.objId),b=s.title||"Note";r="<</Type /Annot /Subtype /Text "+(c="/Rect ["+o(s.bounds.x)+" "+l(s.bounds.y+s.bounds.h)+" "+o(s.bounds.x+s.bounds.w)+" "+l(s.bounds.y)+"] ")+"/Contents ("+f(v(s.contents))+")",r+=" /Popup "+p.objId+" 0 R",r+=" /P "+a.objId+" 0 R",r+=" /T ("+f(v(b))+") >>",g.content=r;var x=g.objId+" 0 R";r="<</Type /Annot /Subtype /Popup "+(c="/Rect ["+o(s.bounds.x+30)+" "+l(s.bounds.y+s.bounds.h)+" "+o(s.bounds.x+s.bounds.w+30)+" "+l(s.bounds.y)+"] ")+" /Parent "+x,s.open&&(r+=" /Open true"),r+=" >>",p.content=r,this.internal.write(g.objId,"0 R",p.objId,"0 R");break;case"freetext":c="/Rect ["+o(s.bounds.x)+" "+l(s.bounds.y)+" "+o(s.bounds.x+s.bounds.w)+" "+l(s.bounds.y+s.bounds.h)+"] ";var A="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(s.color||"#000000");r="<</Type /Annot /Subtype /FreeText "+c+"/Contents ("+f(m(s.contents))+")",r+=" /DS("+f(m(A))+")",r+=" /Border [0 0 0]",r+=" >>",this.internal.write(r);break;case"link":if(s.options.name){var M=this.annotations._nameMap[s.options.name];s.options.pageNumber=M.page,s.options.top=M.y}else s.options.top||(s.options.top=0);if(c="/Rect ["+s.finalBounds.x+" "+s.finalBounds.y+" "+s.finalBounds.w+" "+s.finalBounds.h+"] ",r="",s.options.url)r="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /A <</S /URI /URI ("+f(m(s.options.url))+") >>";else if(s.options.pageNumber)switch(r="<</Type /Annot /Subtype /Link "+c+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(s.options.pageNumber).objId+" 0 R",s.options.magFactor=s.options.magFactor||"XYZ",s.options.magFactor){case"Fit":r+=" /Fit]";break;case"FitH":r+=" /FitH "+s.options.top+"]";break;case"FitV":s.options.left=s.options.left||0,r+=" /FitV "+s.options.left+"]";break;default:var V=l(s.options.top);s.options.left=s.options.left||0,s.options.zoom===void 0&&(s.options.zoom=0),r+=" /XYZ "+s.options.left+" "+V+" "+s.options.zoom+"]"}r!=""&&(r+=" >>",this.internal.write(r))}}this.internal.write("]")}}]),t.createAnnotation=function(e){var s=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":s.pageContext.annotations.push(e)}},t.link=function(e,s,c,r,o){var l=this.internal.getCurrentPageInfo(),a=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:a(e),y:n(s),w:a(e+c),h:n(s+r)},options:o,type:"link"})},t.textWithLink=function(e,s,c,r){var o,l,a=this.getTextWidth(e),n=this.internal.getLineHeight()/this.internal.scaleFactor;if(r.maxWidth!==void 0){l=r.maxWidth;var u=this.splitTextToSize(e,l).length;o=Math.ceil(n*u)}else l=a,o=n;return this.text(e,s,c,r),c+=.2*n,r.align==="center"&&(s-=a/2),r.align==="right"&&(s-=a),this.link(s,c-n,l,o,r),a},t.getTextWidth=function(e){var s=this.internal.getFontSize();return this.getStringUnitWidth(e)*s/this.internal.scaleFactor}})(Ft.API),(function(t){var i={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},e={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},s={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},c=[1570,1571,1573,1575];t.__arabicParser__={};var r=t.__arabicParser__.isInArabicSubstitutionA=function(g){return i[g.charCodeAt(0)]!==void 0},o=t.__arabicParser__.isArabicLetter=function(g){return typeof g=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(g)},l=t.__arabicParser__.isArabicEndLetter=function(g){return o(g)&&r(g)&&i[g.charCodeAt(0)].length<=2},a=t.__arabicParser__.isArabicAlfLetter=function(g){return o(g)&&c.indexOf(g.charCodeAt(0))>=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(g){return o(g)&&r(g)&&i[g.charCodeAt(0)].length>=1};var n=t.__arabicParser__.arabicLetterHasFinalForm=function(g){return o(g)&&r(g)&&i[g.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(g){return o(g)&&r(g)&&i[g.charCodeAt(0)].length>=3};var u=t.__arabicParser__.arabicLetterHasMedialForm=function(g){return o(g)&&r(g)&&i[g.charCodeAt(0)].length==4},h=t.__arabicParser__.resolveLigatures=function(g){var p=0,v=e,b="",x=0;for(p=0;p<g.length;p+=1)v[g.charCodeAt(p)]!==void 0?(x++,typeof(v=v[g.charCodeAt(p)])=="number"&&(b+=String.fromCharCode(v),v=e,x=0),p===g.length-1&&(v=e,b+=g.charAt(p-(x-1)),p-=x-1,x=0)):(v=e,b+=g.charAt(p-x),p-=x,x=0);return b};t.__arabicParser__.isArabicDiacritic=function(g){return g!==void 0&&s[g.charCodeAt(0)]!==void 0};var d=t.__arabicParser__.getCorrectForm=function(g,p,v){return o(g)?r(g)===!1?-1:!n(g)||!o(p)&&!o(v)||!o(v)&&l(p)||l(g)&&!o(p)||l(g)&&a(p)||l(g)&&l(p)?0:u(g)&&o(p)&&!l(p)&&o(v)&&n(v)?3:l(g)||!o(v)?1:2:-1},f=function(g){var p=0,v=0,b=0,x="",A="",M="",V=(g=g||"").split("\\s+"),W=[];for(p=0;p<V.length;p+=1){for(W.push(""),v=0;v<V[p].length;v+=1)x=V[p][v],A=V[p][v-1],M=V[p][v+1],o(x)?(b=d(x,A,M),W[p]+=b!==-1?String.fromCharCode(i[x.charCodeAt(0)][b]):x):W[p]+=x;W[p]=h(W[p])}return W.join(" ")},m=t.__arabicParser__.processArabic=t.processArabic=function(){var g,p=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,v=[];if(Array.isArray(p)){var b=0;for(v=[],b=0;b<p.length;b+=1)Array.isArray(p[b])?v.push([f(p[b][0]),p[b][1],p[b][2]]):v.push([f(p[b])]);g=v}else g=f(p);return typeof arguments[0]=="string"?g:(arguments[0].text=g,arguments[0])};t.events.push(["preProcessText",m])})(Ft.API),Ft.API.autoPrint=function(t){var i;return(t=t||{}).variant=t.variant||"non-conform",t.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){i=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+i+" 0 R")})),this},(function(t){var i=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var s=150;Object.defineProperty(this,"width",{get:function(){return s},set:function(l){s=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=s+1)}});var c=300;Object.defineProperty(this,"height",{get:function(){return c},set:function(l){c=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=c+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(l){r=l}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(l){o=l}}),Object.defineProperty(this,"parentNode",{})};i.prototype.getContext=function(e,s){var c;if((e=e||"2d")!=="2d")return null;for(c in s)this.pdf.context2d.hasOwnProperty(c)&&(this.pdf.context2d[c]=s[c]);return this.pdf.context2d._canvas=this,this.pdf.context2d},i.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new i,this.canvas.pdf=this}])})(Ft.API),(function(t){var i={left:0,top:0,bottom:0,right:0},e=!1,s=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},i),this.internal.__cell__.margins.width=this.getPageWidth(),c.call(this))},c=function(){this.internal.__cell__.lastCell=new r,this.internal.__cell__.pages=1},r=function(){var a=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return a},set:function(g){a=g}});var n=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return n},set:function(g){n=g}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(g){u=g}});var h=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return h},set:function(g){h=g}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(g){d=g}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(g){f=g}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(g){m=g}}),this};r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},r.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(a){return s.call(this),this.internal.__cell__.headerFunction=typeof a=="function"?a:void 0,this},t.getTextDimensions=function(a,n){s.call(this);var u=(n=n||{}).fontSize||this.getFontSize(),h=n.font||this.getFont(),d=n.scaleFactor||this.internal.scaleFactor,f=0,m=0,g=0,p=this;if(!Array.isArray(a)&&typeof a!="string"){if(typeof a!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");a=String(a)}var v=n.maxWidth;v>0?typeof a=="string"?a=this.splitTextToSize(a,v):Object.prototype.toString.call(a)==="[object Array]"&&(a=a.reduce(function(x,A){return x.concat(p.splitTextToSize(A,v))},[])):a=Array.isArray(a)?a:[a];for(var b=0;b<a.length;b++)f<(g=this.getStringUnitWidth(a[b],{font:h})*u)&&(f=g);return f!==0&&(m=a.length),{w:f/=d,h:Math.max((m*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/d,0)}},t.cellAddPage=function(){s.call(this),this.addPage();var a=this.internal.__cell__.margins||i;return this.internal.__cell__.lastCell=new r(a.left,a.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=t.cell=function(){var a;a=arguments[0]instanceof r?arguments[0]:new r(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),s.call(this);var n=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,h=this.internal.__cell__.margins||i,d=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return n.lineNumber!==void 0&&(n.lineNumber===a.lineNumber?(a.x=(n.x||0)+(n.width||0),a.y=n.y||0):n.y+n.height+a.height+h.bottom>this.getPageHeight()?(this.cellAddPage(),a.y=h.top,f&&d&&(this.printHeaderRow(a.lineNumber,!0),a.y+=d[0].height)):a.y=n.y+n.height||a.y),a.text[0]!==void 0&&(this.rect(a.x,a.y,a.width,a.height,e===!0?"FD":void 0),a.align==="right"?this.text(a.text,a.x+a.width-u,a.y+u,{align:"right",baseline:"top"}):a.align==="center"?this.text(a.text,a.x+a.width/2,a.y+u,{align:"center",baseline:"top",maxWidth:a.width-u-u}):this.text(a.text,a.x+u,a.y+u,{align:"left",baseline:"top",maxWidth:a.width-u-u})),this.internal.__cell__.lastCell=a,this};t.table=function(a,n,u,h,d){if(s.call(this),!u)throw new Error("No data for PDF table.");var f,m,g,p,v=[],b=[],x=[],A={},M={},V=[],W=[],R=(d=d||{}).autoSize||!1,F=d.printHeaders!==!1,$=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,z=d.margins||Object.assign({width:this.getPageWidth()},i),D=typeof d.padding=="number"?d.padding:3,N=d.headerBackgroundColor||"#c8c8c8",E=d.headerTextColor||"#000";if(c.call(this),this.internal.__cell__.printHeaders=F,this.internal.__cell__.margins=z,this.internal.__cell__.table_font_size=$,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=N,this.internal.__cell__.headerTextColor=E,this.setFontSize($),h==null)b=v=Object.keys(u[0]),x=v.map(function(){return"left"});else if(Array.isArray(h)&&br(h[0])==="object")for(v=h.map(function(T){return T.name}),b=h.map(function(T){return T.prompt||T.name||""}),x=h.map(function(T){return T.align||"left"}),f=0;f<h.length;f+=1)M[h[f].name]=.7499990551181103*h[f].width;else Array.isArray(h)&&typeof h[0]=="string"&&(b=v=h,x=v.map(function(){return"left"}));if(R||Array.isArray(h)&&typeof h[0]=="string")for(f=0;f<v.length;f+=1){for(A[p=v[f]]=u.map(function(T){return T[p]}),this.setFont(void 0,"bold"),V.push(this.getTextDimensions(b[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=A[p],this.setFont(void 0,"normal"),g=0;g<m.length;g+=1)V.push(this.getTextDimensions(m[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);M[p]=Math.max.apply(null,V)+D+D,V=[]}if(F){var C={};for(f=0;f<v.length;f+=1)C[v[f]]={},C[v[f]].text=b[f],C[v[f]].align=x[f];var w=l.call(this,C,M);W=v.map(function(T){return new r(a,n,M[T],w,C[T].text,void 0,C[T].align)}),this.setTableHeaderRow(W),this.printHeaderRow(1,!1)}var S=h.reduce(function(T,j){return T[j.name]=j.align,T},{});for(f=0;f<u.length;f+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:f,data:u[f]},this);var _=l.call(this,u[f],M);for(g=0;g<v.length;g+=1){var k=u[f][v[g]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:f,col:g,data:k},this),o.call(this,new r(a,n,M[v[g]],_,k,f+2,S[v[g]]))}}return this.internal.__cell__.table_x=a,this.internal.__cell__.table_y=n,this};var l=function(a,n){var u=this.internal.__cell__.padding,h=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(a).map(function(f){var m=a[f];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,n[f]-u-u)},this).map(function(f){return this.getLineHeightFactor()*f.length*h/d+u+u},this).reduce(function(f,m){return Math.max(f,m)},0)};t.setTableHeaderRow=function(a){s.call(this),this.internal.__cell__.tableHeaderRow=a},t.printHeaderRow=function(a,n){if(s.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var h=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new r(h[0],h[1],h[2],h[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){u=this.internal.__cell__.tableHeaderRow[f].clone(),n&&(u.y=this.internal.__cell__.margins.top||0,d.push(u)),u.lineNumber=a;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(m)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),e=!1}})(Ft.API);var s1={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},o1=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Of=a1(o1),l1=[100,200,300,400,500,600,700,800,900],pw=a1(l1);function Yc(t){var i=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(r){return s1[r=r||"normal"]?r:"normal"})(t.style),s=(function(r){return r?typeof r=="number"?r>=100&&r<=900&&r%100==0?r:400:/^\d00$/.test(r)?parseInt(r):r==="bold"?700:400:400})(t.weight),c=(function(r){return typeof Of[r=r||"normal"]=="number"?r:"normal"})(t.stretch);return{family:i,style:e,weight:s,stretch:c,src:t.src||[],ref:t.ref||{name:i,style:[c,e,s].join(" ")}}}function Wp(t,i,e,s){var c;for(c=e;c>=0&&c<i.length;c+=s)if(t[i[c]])return t[i[c]];for(c=e;c>=0&&c<i.length;c-=s)if(t[i[c]])return t[i[c]]}var mw={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Gp={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Xp(t){return[t.stretch,t.style,t.weight,t.family].join(" ")}function Kp(t){return t.trimLeft()}function gw(t,i){for(var e=0;e<t.length;){if(t.charAt(e)===i)return[t.substring(0,e),t.substring(e+1)];e+=1}return null}function vw(t){var i=t.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return i===null?null:[i[0],t.substring(i[0].length)]}var Qs,ru,Yp,Zp,Jp,Zc=["times"];function Qp(t,i,e,s,c){var r=4,o=tm;switch(c){case Ft.API.image_compression.FAST:r=1,o=em;break;case Ft.API.image_compression.MEDIUM:r=6,o=rm;break;case Ft.API.image_compression.SLOW:r=9,o=nm}t=(function(a,n,u,h){for(var d,f=a.length/n,m=new Uint8Array(a.length+f),g=[bw,em,tm,rm,nm],p=0;p<f;p+=1){var v=p*n,b=a.subarray(v,v+n);if(h)m.set(h(b,u,d),v+p);else{for(var x=g.length,A=[],M=0;M<x;M+=1)A[M]=g[M](b,u,d);var V=ww(A.concat());m.set(A[V],v+p)}d=b}return m})(t,i,Math.ceil(e*s/8),o);var l=Ef(t,{level:r});return Ft.API.__addimage__.arrayBufferToBinaryString(l)}function bw(t){var i=Array.apply([],t);return i.unshift(0),i}function em(t,i){var e=t.length,s=[];s[0]=1;for(var c=0;c<e;c+=1){var r=t[c-i]||0;s[c+1]=t[c]-r+256&255}return s}function tm(t,i,e){var s=t.length,c=[];c[0]=2;for(var r=0;r<s;r+=1){var o=e&&e[r]||0;c[r+1]=t[r]-o+256&255}return c}function rm(t,i,e){var s=t.length,c=[];c[0]=3;for(var r=0;r<s;r+=1){var o=t[r-i]||0,l=e&&e[r]||0;c[r+1]=t[r]+256-(o+l>>>1)&255}return c}function nm(t,i,e){var s=t.length,c=[];c[0]=4;for(var r=0;r<s;r+=1){var o=yw(t[r-i]||0,e&&e[r]||0,e&&e[r-i]||0);c[r+1]=t[r]-o+256&255}return c}function yw(t,i,e){if(t===i&&i===e)return t;var s=Math.abs(i-e),c=Math.abs(t-e),r=Math.abs(t+i-e-e);return s<=c&&s<=r?t:c<=r?i:e}function ww(t){var i=t.map(function(e){return e.reduce(function(s,c){return s+Math.abs(c)},0)});return i.indexOf(Math.min.apply(null,i))}function Jc(t,i,e){var s=i*e,c=Math.floor(s/8),r=16-(s-8*c+e),o=(1<<e)-1;return u1(t,c)>>r&o}function im(t,i,e,s){var c=e*s,r=Math.floor(c/8),o=16-(c-8*r+s),l=(1<<s)-1,a=(i&l)<<o;(function(n,u,h){if(u+1<n.byteLength)n.setUint16(u,h,!1);else{var d=h>>8&255;n.setUint8(u,d)}})(t,r,u1(t,r)&~(l<<o)&65535|a)}function u1(t,i){return i+1<t.byteLength?t.getUint16(i,!1):t.getUint8(i)<<8}function xw(t){var i=0;if(t[i++]!==71||t[i++]!==73||t[i++]!==70||t[i++]!==56||(t[i++]+1&253)!=56||t[i++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=t[i++]|t[i++]<<8,s=t[i++]|t[i++]<<8,c=t[i++],r=c>>7,o=1<<1+(7&c);t[i++],t[i++];var l=null,a=null;r&&(l=i,a=o,i+=3*o);var n=!0,u=[],h=0,d=null,f=0,m=null;for(this.width=e,this.height=s;n&&i<t.length;)switch(t[i++]){case 33:switch(t[i++]){case 255:if(t[i]!==11||t[i+1]==78&&t[i+2]==69&&t[i+3]==84&&t[i+4]==83&&t[i+5]==67&&t[i+6]==65&&t[i+7]==80&&t[i+8]==69&&t[i+9]==50&&t[i+10]==46&&t[i+11]==48&&t[i+12]==3&&t[i+13]==1&&t[i+16]==0)i+=14,m=t[i++]|t[i++]<<8,i++;else for(i+=12;;){if(!((z=t[i++])>=0))throw Error("Invalid block size");if(z===0)break;i+=z}break;case 249:if(t[i++]!==4||t[i+4]!==0)throw new Error("Invalid graphics extension block.");var g=t[i++];h=t[i++]|t[i++]<<8,d=t[i++],1&g||(d=null),f=g>>2&7,i++;break;case 254:for(;;){if(!((z=t[i++])>=0))throw Error("Invalid block size");if(z===0)break;i+=z}break;default:throw new Error("Unknown graphic control label: 0x"+t[i-1].toString(16))}break;case 44:var p=t[i++]|t[i++]<<8,v=t[i++]|t[i++]<<8,b=t[i++]|t[i++]<<8,x=t[i++]|t[i++]<<8,A=t[i++],M=A>>6&1,V=1<<1+(7&A),W=l,R=a,F=!1;A>>7&&(F=!0,W=i,R=V,i+=3*V);var $=i;for(i++;;){var z;if(!((z=t[i++])>=0))throw Error("Invalid block size");if(z===0)break;i+=z}u.push({x:p,y:v,width:b,height:x,has_local_palette:F,palette_offset:W,palette_size:R,data_offset:$,data_length:i-$,transparent_index:d,interlaced:!!M,delay:h,disposal:f});break;case 59:n=!1;break;default:throw new Error("Unknown gif block: 0x"+t[i-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return m},this.frameInfo=function(D){if(D<0||D>=u.length)throw new Error("Frame index out of range.");return u[D]},this.decodeAndBlitFrameBGRA=function(D,N){var E=this.frameInfo(D),C=E.width*E.height;if(C>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var w=new Uint8Array(C);am(t,E.data_offset,w,C);var S=E.palette_offset,_=E.transparent_index;_===null&&(_=256);var k=E.width,T=e-k,j=k,P=4*(E.y*e+E.x),U=4*((E.y+E.height)*e+E.x),q=P,Z=4*T;E.interlaced===!0&&(Z+=4*e*7);for(var B=8,X=0,L=w.length;X<L;++X){var I=w[X];if(j===0&&(j=k,(q+=Z)>=U&&(Z=4*T+4*e*(B-1),q=P+(k+T)*(B<<1),B>>=1)),I===_)q+=4;else{var G=t[S+3*I],ee=t[S+3*I+1],se=t[S+3*I+2];N[q++]=se,N[q++]=ee,N[q++]=G,N[q++]=255}--j}},this.decodeAndBlitFrameRGBA=function(D,N){var E=this.frameInfo(D),C=E.width*E.height;if(C>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var w=new Uint8Array(C);am(t,E.data_offset,w,C);var S=E.palette_offset,_=E.transparent_index;_===null&&(_=256);var k=E.width,T=e-k,j=k,P=4*(E.y*e+E.x),U=4*((E.y+E.height)*e+E.x),q=P,Z=4*T;E.interlaced===!0&&(Z+=4*e*7);for(var B=8,X=0,L=w.length;X<L;++X){var I=w[X];if(j===0&&(j=k,(q+=Z)>=U&&(Z=4*T+4*e*(B-1),q=P+(k+T)*(B<<1),B>>=1)),I===_)q+=4;else{var G=t[S+3*I],ee=t[S+3*I+1],se=t[S+3*I+2];N[q++]=G,N[q++]=ee,N[q++]=se,N[q++]=255}--j}}}function am(t,i,e,s){for(var c=t[i++],r=1<<c,o=r+1,l=o+1,a=c+1,n=(1<<a)-1,u=0,h=0,d=0,f=t[i++],m=new Int32Array(4096),g=null;;){for(;u<16&&f!==0;)h|=t[i++]<<u,u+=8,f===1?f=t[i++]:--f;if(u<a)break;var p=h&n;if(h>>=a,u-=a,p!==r){if(p===o)break;for(var v=p<l?p:g,b=0,x=v;x>r;)x=m[x]>>8,++b;var A=x;if(d+b+(v!==p?1:0)>s)return void kr.log("Warning, gif stream longer than expected.");e[d++]=A;var M=d+=b;for(v!==p&&(e[d++]=A),x=v;b--;)x=m[x],e[--M]=255&x,x>>=8;g!==null&&l<4096&&(m[l++]=g<<8|A,l>=n+1&&a<12&&(++a,n=n<<1|1)),g=p}else l=o+1,n=(1<<(a=c+1))-1,g=null}return d!==s&&kr.log("Warning, gif stream shorter than expected."),e}function Qc(t){var i,e,s,c,r,o=Math.floor,l=new Array(64),a=new Array(64),n=new Array(64),u=new Array(64),h=new Array(65535),d=new Array(65535),f=new Array(64),m=new Array(64),g=[],p=0,v=7,b=new Array(64),x=new Array(64),A=new Array(64),M=new Array(256),V=new Array(2048),W=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],R=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],$=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],z=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],D=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],N=[0,1,2,3,4,5,6,7,8,9,10,11],E=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],C=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function w(P,U){for(var q=0,Z=0,B=new Array,X=1;X<=16;X++){for(var L=1;L<=P[X];L++)B[U[Z]]=[],B[U[Z]][0]=q,B[U[Z]][1]=X,Z++,q++;q*=2}return B}function S(P){for(var U=P[0],q=P[1]-1;q>=0;)U&1<<q&&(p|=1<<v),q--,--v<0&&(p==255?(_(255),_(0)):_(p),v=7,p=0)}function _(P){g.push(P)}function k(P){_(P>>8&255),_(255&P)}function T(P,U,q,Z,B){for(var X,L=B[0],I=B[240],G=(function(ue,ye){var be,we,Se,Pe,Le,De,Ge,Ve,qe,et,We=0;for(qe=0;qe<8;++qe){be=ue[We],we=ue[We+1],Se=ue[We+2],Pe=ue[We+3],Le=ue[We+4],De=ue[We+5],Ge=ue[We+6];var dt=be+(Ve=ue[We+7]),Ke=be-Ve,Oe=we+Ge,Xe=we-Ge,ut=Se+De,ze=Se-De,bt=Pe+Le,ct=Pe-Le,nt=dt+bt,Mt=dt-bt,ht=Oe+ut,it=Oe-ut;ue[We]=nt+ht,ue[We+4]=nt-ht;var Pt=.707106781*(it+Mt);ue[We+2]=Mt+Pt,ue[We+6]=Mt-Pt;var Qt=.382683433*((nt=ct+ze)-(it=Xe+Ke)),mt=.5411961*nt+Qt,qt=1.306562965*it+Qt,ir=.707106781*(ht=ze+Xe),rt=Ke+ir,Zt=Ke-ir;ue[We+5]=Zt+mt,ue[We+3]=Zt-mt,ue[We+1]=rt+qt,ue[We+7]=rt-qt,We+=8}for(We=0,qe=0;qe<8;++qe){be=ue[We],we=ue[We+8],Se=ue[We+16],Pe=ue[We+24],Le=ue[We+32],De=ue[We+40],Ge=ue[We+48];var ar=be+(Ve=ue[We+56]),It=be-Ve,xe=we+Ge,Ce=we-Ge,Re=Se+De,tt=Se-De,Ct=Pe+Le,ot=Pe-Le,At=ar+Ct,yt=ar-Ct,gt=xe+Re,Rt=xe-Re;ue[We]=At+gt,ue[We+32]=At-gt;var Nt=.707106781*(Rt+yt);ue[We+16]=yt+Nt,ue[We+48]=yt-Nt;var Dt=.382683433*((At=ot+tt)-(Rt=Ce+It)),mr=.5411961*At+Dt,fr=1.306562965*Rt+Dt,Cr=.707106781*(gt=tt+Ce),Ar=It+Cr,Hr=It-Cr;ue[We+40]=Hr+mr,ue[We+24]=Hr-mr,ue[We+8]=Ar+fr,ue[We+56]=Ar-fr,We++}for(qe=0;qe<64;++qe)et=ue[qe]*ye[qe],f[qe]=et>0?et+.5|0:et-.5|0;return f})(P,U),ee=0;ee<64;++ee)m[W[ee]]=G[ee];var se=m[0]-q;q=m[0],se==0?S(Z[0]):(S(Z[d[X=32767+se]]),S(h[X]));for(var te=63;te>0&&m[te]==0;)te--;if(te==0)return S(L),q;for(var re,J=1;J<=te;){for(var de=J;m[J]==0&&J<=te;)++J;var ne=J-de;if(ne>=16){re=ne>>4;for(var fe=1;fe<=re;++fe)S(I);ne&=15}X=32767+m[J],S(B[(ne<<4)+d[X]]),S(h[X]),J++}return te!=63&&S(L),q}function j(P){P=Math.min(Math.max(P,1),100),r!=P&&((function(U){for(var q=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Z=0;Z<64;Z++){var B=o((q[Z]*U+50)/100);B=Math.min(Math.max(B,1),255),l[W[Z]]=B}for(var X=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],L=0;L<64;L++){var I=o((X[L]*U+50)/100);I=Math.min(Math.max(I,1),255),a[W[L]]=I}for(var G=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ee=0,se=0;se<8;se++)for(var te=0;te<8;te++)n[ee]=1/(l[W[ee]]*G[se]*G[te]*8),u[ee]=1/(a[W[ee]]*G[se]*G[te]*8),ee++})(P<50?Math.floor(5e3/P):Math.floor(200-2*P)),r=P)}this.encode=function(P,U){U&&j(U),g=new Array,p=0,v=7,k(65496),k(65504),k(16),_(74),_(70),_(73),_(70),_(0),_(1),_(1),_(0),k(1),k(1),_(0),_(0),(function(){k(65499),k(132),_(0);for(var we=0;we<64;we++)_(l[we]);_(1);for(var Se=0;Se<64;Se++)_(a[Se])})(),(function(we,Se){k(65472),k(17),_(8),k(Se),k(we),_(3),_(1),_(17),_(0),_(2),_(17),_(1),_(3),_(17),_(1)})(P.width,P.height),(function(){k(65476),k(418),_(0);for(var we=0;we<16;we++)_(R[we+1]);for(var Se=0;Se<=11;Se++)_(F[Se]);_(16);for(var Pe=0;Pe<16;Pe++)_($[Pe+1]);for(var Le=0;Le<=161;Le++)_(z[Le]);_(1);for(var De=0;De<16;De++)_(D[De+1]);for(var Ge=0;Ge<=11;Ge++)_(N[Ge]);_(17);for(var Ve=0;Ve<16;Ve++)_(E[Ve+1]);for(var qe=0;qe<=161;qe++)_(C[qe])})(),k(65498),k(12),_(3),_(1),_(0),_(2),_(17),_(3),_(17),_(0),_(63),_(0);var q=0,Z=0,B=0;p=0,v=7,this.encode.displayName="_encode_";for(var X,L,I,G,ee,se,te,re,J,de=P.data,ne=P.width,fe=P.height,ue=4*ne,ye=0;ye<fe;){for(X=0;X<ue;){for(ee=ue*ye+X,te=-1,re=0,J=0;J<64;J++)se=ee+(re=J>>3)*ue+(te=4*(7&J)),ye+re>=fe&&(se-=ue*(ye+1+re-fe)),X+te>=ue&&(se-=X+te-ue+4),L=de[se++],I=de[se++],G=de[se++],b[J]=(V[L]+V[I+256|0]+V[G+512|0]>>16)-128,x[J]=(V[L+768|0]+V[I+1024|0]+V[G+1280|0]>>16)-128,A[J]=(V[L+1280|0]+V[I+1536|0]+V[G+1792|0]>>16)-128;q=T(b,n,q,i,s),Z=T(x,u,Z,e,c),B=T(A,u,B,e,c),X+=32}ye+=8}if(v>=0){var be=[];be[1]=v+1,be[0]=(1<<v+1)-1,S(be)}return k(65497),new Uint8Array(g)},t=t||50,(function(){for(var P=String.fromCharCode,U=0;U<256;U++)M[U]=P(U)})(),i=w(R,F),e=w(D,N),s=w($,z),c=w(E,C),(function(){for(var P=1,U=2,q=1;q<=15;q++){for(var Z=P;Z<U;Z++)d[32767+Z]=q,h[32767+Z]=[],h[32767+Z][1]=q,h[32767+Z][0]=Z;for(var B=-(U-1);B<=-P;B++)d[32767+B]=q,h[32767+B]=[],h[32767+B][1]=q,h[32767+B][0]=U-1+B;P<<=1,U<<=1}})(),(function(){for(var P=0;P<256;P++)V[P]=19595*P,V[P+256|0]=38470*P,V[P+512|0]=7471*P+32768,V[P+768|0]=-11059*P,V[P+1024|0]=-21709*P,V[P+1280|0]=32768*P+8421375,V[P+1536|0]=-27439*P,V[P+1792|0]=-5329*P})(),j(t)}function Si(t,i){if(this.pos=0,this.buffer=t,this.datav=new DataView(t.buffer),this.is_with_alpha=!!i,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function sm(t){function i(F){if(!F)throw Error("assert :P")}function e(F,$,z){for(var D=0;4>D;D++)if(F[$+D]!=z.charCodeAt(D))return!0;return!1}function s(F,$,z,D,N){for(var E=0;E<N;E++)F[$+E]=z[D+E]}function c(F,$,z,D){for(var N=0;N<D;N++)F[$+N]=z}function r(F){return new Int32Array(F)}function o(F,$){for(var z=[],D=0;D<F;D++)z.push(new $);return z}function l(F,$){var z=[];return(function D(N,E,C){for(var w=C[E],S=0;S<w&&(N.push(C.length>E+1?[]:new $),!(C.length<E+1));S++)D(N[S],E+1,C)})(z,0,F),z}var a=function(){var F=this;function $(O,H){for(var Y=1<<H-1>>>0;O&Y;)Y>>>=1;return Y?(O&Y-1)+Y:O}function z(O,H,Y,Q,ae){i(!(Q%Y));do O[H+(Q-=Y)]=ae;while(0<Q)}function D(O,H,Y,Q,ae){if(i(2328>=ae),512>=ae)var oe=r(512);else if((oe=r(ae))==null)return 0;return(function(le,ce,he,ge,ke,Ie){var ve,Ae,Te=ce,Be=1<<he,Me=r(16),je=r(16);for(i(ke!=0),i(ge!=null),i(le!=null),i(0<he),Ae=0;Ae<ke;++Ae){if(15<ge[Ae])return 0;++Me[ge[Ae]]}if(Me[0]==ke)return 0;for(je[1]=0,ve=1;15>ve;++ve){if(Me[ve]>1<<ve)return 0;je[ve+1]=je[ve]+Me[ve]}for(Ae=0;Ae<ke;++Ae)ve=ge[Ae],0<ge[Ae]&&(Ie[je[ve]++]=Ae);if(je[15]==1)return(ge=new N).g=0,ge.value=Ie[0],z(le,Te,1,Be,ge),Be;var Ue,at=-1,Je=Be-1,Ot=0,vt=1,tr=1,Et=1<<he;for(Ae=0,ve=1,ke=2;ve<=he;++ve,ke<<=1){if(vt+=tr<<=1,0>(tr-=Me[ve]))return 0;for(;0<Me[ve];--Me[ve])(ge=new N).g=ve,ge.value=Ie[Ae++],z(le,Te+Ot,ke,Et,ge),Ot=$(Ot,ve)}for(ve=he+1,ke=2;15>=ve;++ve,ke<<=1){if(vt+=tr<<=1,0>(tr-=Me[ve]))return 0;for(;0<Me[ve];--Me[ve]){if(ge=new N,(Ot&Je)!=at){for(Te+=Et,Ue=1<<(at=ve)-he;15>at&&!(0>=(Ue-=Me[at]));)++at,Ue<<=1;Be+=Et=1<<(Ue=at-he),le[ce+(at=Ot&Je)].g=Ue+he,le[ce+at].value=Te-ce-at}ge.g=ve-he,ge.value=Ie[Ae++],z(le,Te+(Ot>>he),ke,Et,ge),Ot=$(Ot,ve)}}return vt!=2*je[15]-1?0:Be})(O,H,Y,Q,ae,oe)}function N(){this.value=this.g=0}function E(){this.value=this.g=0}function C(){this.G=o(5,N),this.H=r(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Us,E)}function w(O,H,Y,Q){i(O!=null),i(H!=null),i(2147483648>Q),O.Ca=254,O.I=0,O.b=-8,O.Ka=0,O.oa=H,O.pa=Y,O.Jd=H,O.Yc=Y+Q,O.Zc=4<=Q?Y+Q-4+1:Y,L(O)}function S(O,H){for(var Y=0;0<H--;)Y|=G(O,128)<<H;return Y}function _(O,H){var Y=S(O,H);return I(O)?-Y:Y}function k(O,H,Y,Q){var ae,oe=0;for(i(O!=null),i(H!=null),i(4294967288>Q),O.Sb=Q,O.Ra=0,O.u=0,O.h=0,4<Q&&(Q=4),ae=0;ae<Q;++ae)oe+=H[Y+ae]<<8*ae;O.Ra=oe,O.bb=Q,O.oa=H,O.pa=Y}function T(O){for(;8<=O.u&&O.bb<O.Sb;)O.Ra>>>=8,O.Ra+=O.oa[O.pa+O.bb]<<Rn-8>>>0,++O.bb,O.u-=8;Z(O)&&(O.h=1,O.u=0)}function j(O,H){if(i(0<=H),!O.h&&H<=Mo){var Y=q(O)&os[H];return O.u+=H,T(O),Y}return O.h=1,O.u=0}function P(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function q(O){return O.Ra>>>(O.u&Rn-1)>>>0}function Z(O){return i(O.bb<=O.Sb),O.h||O.bb==O.Sb&&O.u>Rn}function B(O,H){O.u=H,O.h=Z(O)}function X(O){O.u>=Un&&(i(O.u>=Un),T(O))}function L(O){i(O!=null&&O.oa!=null),O.pa<O.Zc?(O.I=(O.oa[O.pa++]|O.I<<8)>>>0,O.b+=8):(i(O!=null&&O.oa!=null),O.pa<O.Yc?(O.b+=8,O.I=O.oa[O.pa++]|O.I<<8):O.Ka?O.b=0:(O.I<<=8,O.b+=8,O.Ka=1))}function I(O){return S(O,1)}function G(O,H){var Y=O.Ca;0>O.b&&L(O);var Q=O.b,ae=Y*H>>>8,oe=(O.I>>>Q>ae)+0;for(oe?(Y-=ae,O.I-=ae+1<<Q>>>0):Y=ae+1,Q=Y,ae=0;256<=Q;)ae+=8,Q>>=8;return Q=7^ae+$s[Q],O.b-=Q,O.Ca=(Y<<Q)-1,oe}function ee(O,H,Y){O[H+0]=Y>>24&255,O[H+1]=Y>>16&255,O[H+2]=Y>>8&255,O[H+3]=255&Y}function se(O,H){return O[H+0]|O[H+1]<<8}function te(O,H){return se(O,H)|O[H+2]<<16}function re(O,H){return se(O,H)|se(O,H+2)<<16}function J(O,H){var Y=1<<H;return i(O!=null),i(0<H),O.X=r(Y),O.X==null?0:(O.Mb=32-H,O.Xa=H,1)}function de(O,H){i(O!=null),i(H!=null),i(O.Xa==H.Xa),s(H.X,0,O.X,0,1<<H.Xa)}function ne(){this.X=[],this.Xa=this.Mb=0}function fe(O,H,Y,Q){i(Y!=null),i(Q!=null);var ae=Y[0],oe=Q[0];return ae==0&&(ae=(O*oe+H/2)/H),oe==0&&(oe=(H*ae+O/2)/O),0>=ae||0>=oe?0:(Y[0]=ae,Q[0]=oe,1)}function ue(O,H){return O+(1<<H)-1>>>H}function ye(O,H){return((4278255360&O)+(4278255360&H)>>>0&4278255360)+((16711935&O)+(16711935&H)>>>0&16711935)>>>0}function be(O,H){F[H]=function(Y,Q,ae,oe,le,ce,he){var ge;for(ge=0;ge<le;++ge){var ke=F[O](ce[he+ge-1],ae,oe+ge);ce[he+ge]=ye(Y[Q+ge],ke)}}}function we(){this.ud=this.hd=this.jd=0}function Se(O,H){return((4278124286&(O^H))>>>1)+(O&H)>>>0}function Pe(O){return 0<=O&&256>O?O:0>O?0:255<O?255:void 0}function Le(O,H){return Pe(O+(O-H+.5>>1))}function De(O,H,Y){return Math.abs(H-Y)-Math.abs(O-Y)}function Ge(O,H,Y,Q,ae,oe,le){for(Q=oe[le-1],Y=0;Y<ae;++Y)oe[le+Y]=Q=ye(O[H+Y],Q)}function Ve(O,H,Y,Q,ae){var oe;for(oe=0;oe<Y;++oe){var le=O[H+oe],ce=le>>8&255,he=16711935&(he=(he=16711935&le)+((ce<<16)+ce));Q[ae+oe]=(4278255360&le)+he>>>0}}function qe(O,H){H.jd=255&O,H.hd=O>>8&255,H.ud=O>>16&255}function et(O,H,Y,Q,ae,oe){var le;for(le=0;le<Q;++le){var ce=H[Y+le],he=ce>>>8,ge=ce,ke=255&(ke=(ke=ce>>>16)+((O.jd<<24>>24)*(he<<24>>24)>>>5));ge=255&(ge=(ge+=(O.hd<<24>>24)*(he<<24>>24)>>>5)+((O.ud<<24>>24)*(ke<<24>>24)>>>5)),ae[oe+le]=(4278255360&ce)+(ke<<16)+ge}}function We(O,H,Y,Q,ae){F[H]=function(oe,le,ce,he,ge,ke,Ie,ve,Ae){for(he=Ie;he<ve;++he)for(Ie=0;Ie<Ae;++Ie)ge[ke++]=ae(ce[Q(oe[le++])])},F[O]=function(oe,le,ce,he,ge,ke,Ie){var ve=8>>oe.b,Ae=oe.Ea,Te=oe.K[0],Be=oe.w;if(8>ve)for(oe=(1<<oe.b)-1,Be=(1<<ve)-1;le<ce;++le){var Me,je=0;for(Me=0;Me<Ae;++Me)Me&oe||(je=Q(he[ge++])),ke[Ie++]=ae(Te[je&Be]),je>>=ve}else F["VP8LMapColor"+Y](he,ge,Te,Be,ke,Ie,le,ce,Ae)}}function dt(O,H,Y,Q,ae){for(Y=H+Y;H<Y;){var oe=O[H++];Q[ae++]=oe>>16&255,Q[ae++]=oe>>8&255,Q[ae++]=255&oe}}function Ke(O,H,Y,Q,ae){for(Y=H+Y;H<Y;){var oe=O[H++];Q[ae++]=oe>>16&255,Q[ae++]=oe>>8&255,Q[ae++]=255&oe,Q[ae++]=oe>>24&255}}function Oe(O,H,Y,Q,ae){for(Y=H+Y;H<Y;){var oe=(le=O[H++])>>16&240|le>>12&15,le=240&le|le>>28&15;Q[ae++]=oe,Q[ae++]=le}}function Xe(O,H,Y,Q,ae){for(Y=H+Y;H<Y;){var oe=(le=O[H++])>>16&248|le>>13&7,le=le>>5&224|le>>3&31;Q[ae++]=oe,Q[ae++]=le}}function ut(O,H,Y,Q,ae){for(Y=H+Y;H<Y;){var oe=O[H++];Q[ae++]=255&oe,Q[ae++]=oe>>8&255,Q[ae++]=oe>>16&255}}function ze(O,H,Y,Q,ae,oe){if(oe==0)for(Y=H+Y;H<Y;)ee(Q,((oe=O[H++])[0]>>24|oe[1]>>8&65280|oe[2]<<8&16711680|oe[3]<<24)>>>0),ae+=32;else s(Q,ae,O,H,Y)}function bt(O,H){F[H][0]=F[O+"0"],F[H][1]=F[O+"1"],F[H][2]=F[O+"2"],F[H][3]=F[O+"3"],F[H][4]=F[O+"4"],F[H][5]=F[O+"5"],F[H][6]=F[O+"6"],F[H][7]=F[O+"7"],F[H][8]=F[O+"8"],F[H][9]=F[O+"9"],F[H][10]=F[O+"10"],F[H][11]=F[O+"11"],F[H][12]=F[O+"12"],F[H][13]=F[O+"13"],F[H][14]=F[O+"0"],F[H][15]=F[O+"0"]}function ct(O){return O==fc||O==dc||O==Ll||O==hc}function nt(){this.eb=[],this.size=this.A=this.fb=0}function Mt(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ht(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new nt,this.f.kb=new Mt,this.sd=null}function it(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Pt(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Qt(O){return alert("todo:WebPSamplerProcessPlane"),O.T}function mt(O,H){var Y=O.T,Q=H.ba.f.RGBA,ae=Q.eb,oe=Q.fb+O.ka*Q.A,le=hi[H.ba.S],ce=O.y,he=O.O,ge=O.f,ke=O.N,Ie=O.ea,ve=O.W,Ae=H.cc,Te=H.dc,Be=H.Mc,Me=H.Nc,je=O.ka,Ue=O.ka+O.T,at=O.U,Je=at+1>>1;for(je==0?le(ce,he,null,null,ge,ke,Ie,ve,ge,ke,Ie,ve,ae,oe,null,null,at):(le(H.ec,H.fc,ce,he,Ae,Te,Be,Me,ge,ke,Ie,ve,ae,oe-Q.A,ae,oe,at),++Y);je+2<Ue;je+=2)Ae=ge,Te=ke,Be=Ie,Me=ve,ke+=O.Rc,ve+=O.Rc,oe+=2*Q.A,le(ce,(he+=2*O.fa)-O.fa,ce,he,Ae,Te,Be,Me,ge,ke,Ie,ve,ae,oe-Q.A,ae,oe,at);return he+=O.fa,O.j+Ue<O.o?(s(H.ec,H.fc,ce,he,at),s(H.cc,H.dc,ge,ke,Je),s(H.Mc,H.Nc,Ie,ve,Je),Y--):1&Ue||le(ce,he,null,null,ge,ke,Ie,ve,ge,ke,Ie,ve,ae,oe+Q.A,null,null,at),Y}function qt(O,H,Y){var Q=O.F,ae=[O.J];if(Q!=null){var oe=O.U,le=H.ba.S,ce=le==Rl||le==Ll;H=H.ba.f.RGBA;var he=[0],ge=O.ka;he[0]=O.T,O.Kb&&(ge==0?--he[0]:(--ge,ae[0]-=O.width),O.j+O.ka+O.T==O.o&&(he[0]=O.o-O.j-ge));var ke=H.eb;ge=H.fb+ge*H.A,O=Bd(Q,ae[0],O.width,oe,he,ke,ge+(ce?0:3),H.A),i(Y==he),O&&ct(le)&&Oo(ke,ge,ce,oe,he,H.A)}return 0}function ir(O){var H=O.ma,Y=H.ba.S,Q=11>Y,ae=Y==Ml||Y==Il||Y==Rl||Y==cc||Y==12||ct(Y);if(H.memory=null,H.Ib=null,H.Jb=null,H.Nd=null,!fi(H.Oa,O,ae?11:12))return 0;if(ae&&ct(Y)&&Qi(),O.da)alert("todo:use_scaling");else{if(Q){if(H.Ib=Qt,O.Kb){if(Y=O.U+1>>1,H.memory=r(O.U+2*Y),H.memory==null)return 0;H.ec=H.memory,H.fc=0,H.cc=H.ec,H.dc=H.fc+O.U,H.Mc=H.cc,H.Nc=H.dc+Y,H.Ib=mt,Qi()}}else alert("todo:EmitYUV");ae&&(H.Jb=qt,Q&&jr())}if(Q&&!Qd){for(O=0;256>O;++O)$v[O]=89858*(O-128)+Fl>>Ol,Wv[O]=-22014*(O-128)+Fl,Hv[O]=-45773*(O-128),qv[O]=113618*(O-128)+Fl>>Ol;for(O=Bo;O<gc;++O)H=76283*(O-16)+Fl>>Ol,Gv[O-Bo]=er(H,255),Xv[O-Bo]=er(H+8>>4,15);Qd=1}return 1}function rt(O){var H=O.ma,Y=O.U,Q=O.T;return i(!(1&O.ka)),0>=Y||0>=Q?0:(Y=H.Ib(O,H),H.Jb!=null&&H.Jb(O,H,Y),H.Dc+=Y,1)}function Zt(O){O.ma.memory=null}function ar(O,H,Y,Q){return j(O,8)!=47?0:(H[0]=j(O,14)+1,Y[0]=j(O,14)+1,Q[0]=j(O,1),j(O,3)!=0?0:!O.h)}function It(O,H){if(4>O)return O+1;var Y=O-2>>1;return(2+(1&O)<<Y)+j(H,Y)+1}function xe(O,H){return 120<H?H-120:1<=(Y=((Y=Tv[H-1])>>4)*O+(8-(15&Y)))?Y:1;var Y}function Ce(O,H,Y){var Q=q(Y),ae=O[H+=255&Q].g-8;return 0<ae&&(B(Y,Y.u+8),Q=q(Y),H+=O[H].value,H+=Q&(1<<ae)-1),B(Y,Y.u+O[H].g),O[H].value}function Re(O,H,Y){return Y.g+=O.g,Y.value+=O.value<<H>>>0,i(8>=Y.g),O.g}function tt(O,H,Y){var Q=O.xc;return i((H=Q==0?0:O.vc[O.md*(Y>>Q)+(H>>Q)])<O.Wb),O.Ya[H]}function Ct(O,H,Y,Q){var ae=O.ab,oe=O.c*H,le=O.C;H=le+H;var ce=Y,he=Q;for(Q=O.Ta,Y=O.Ua;0<ae--;){var ge=O.gc[ae],ke=le,Ie=H,ve=ce,Ae=he,Te=(he=Q,ce=Y,ge.Ea);switch(i(ke<Ie),i(Ie<=ge.nc),ge.hc){case 2:qs(ve,Ae,(Ie-ke)*Te,he,ce);break;case 0:var Be=ke,Me=Ie,je=he,Ue=ce,at=(Et=ge).Ea;Be==0&&(ka(ve,Ae,null,null,1,je,Ue),Ge(ve,Ae+1,0,0,at-1,je,Ue+1),Ae+=at,Ue+=at,++Be);for(var Je=1<<Et.b,Ot=Je-1,vt=ue(at,Et.b),tr=Et.K,Et=Et.w+(Be>>Et.b)*vt;Be<Me;){var dr=tr,sn=Et,rr=1;for(Ca(ve,Ae,je,Ue-at,1,je,Ue);rr<at;){var Tt=(rr&~Ot)+Je;Tt>at&&(Tt=at),(0,yi[dr[sn++]>>8&15])(ve,Ae+ +rr,je,Ue+rr-at,Tt-rr,je,Ue+rr),rr=Tt}Ae+=at,Ue+=at,++Be&Ot||(Et+=vt)}Ie!=ge.nc&&s(he,ce-Te,he,ce+(Ie-ke-1)*Te,Te);break;case 1:for(Te=ve,Me=Ae,at=(ve=ge.Ea)-(Ue=ve&~(je=(Ae=1<<ge.b)-1)),Be=ue(ve,ge.b),Je=ge.K,ge=ge.w+(ke>>ge.b)*Be;ke<Ie;){for(Ot=Je,vt=ge,tr=new we,Et=Me+Ue,dr=Me+ve;Me<Et;)qe(Ot[vt++],tr),us(tr,Te,Me,Ae,he,ce),Me+=Ae,ce+=Ae;Me<dr&&(qe(Ot[vt++],tr),us(tr,Te,Me,at,he,ce),Me+=at,ce+=at),++ke&je||(ge+=Be)}break;case 3:if(ve==he&&Ae==ce&&0<ge.b){for(Me=he,ve=Te=ce+(Ie-ke)*Te-(Ue=(Ie-ke)*ue(ge.Ea,ge.b)),Ae=he,je=ce,Be=[],Ue=(at=Ue)-1;0<=Ue;--Ue)Be[Ue]=Ae[je+Ue];for(Ue=at-1;0<=Ue;--Ue)Me[ve+Ue]=Be[Ue];ls(ge,ke,Ie,he,Te,he,ce)}else ls(ge,ke,Ie,ve,Ae,he,ce)}ce=Q,he=Y}he!=Y&&s(Q,Y,ce,he,oe)}function ot(O,H){var Y=O.V,Q=O.Ba+O.c*O.C,ae=H-O.C;if(i(H<=O.l.o),i(16>=ae),0<ae){var oe=O.l,le=O.Ta,ce=O.Ua,he=oe.width;if(Ct(O,ae,Y,Q),ae=ce=[ce],i((Y=O.C)<(Q=H)),i(oe.v<oe.va),Q>oe.o&&(Q=oe.o),Y<oe.j){var ge=oe.j-Y;Y=oe.j,ae[0]+=ge*he}if(Y>=Q?Y=0:(ae[0]+=4*oe.v,oe.ka=Y-oe.j,oe.U=oe.va-oe.v,oe.T=Q-Y,Y=1),Y){if(ce=ce[0],11>(Y=O.ca).S){var ke=Y.f.RGBA,Ie=(Q=Y.S,ae=oe.U,oe=oe.T,ge=ke.eb,ke.A),ve=oe;for(ke=ke.fb+O.Ma*ke.A;0<ve--;){var Ae=le,Te=ce,Be=ae,Me=ge,je=ke;switch(Q){case Pl:Io(Ae,Te,Be,Me,je);break;case Ml:Ro(Ae,Te,Be,Me,je);break;case fc:Ro(Ae,Te,Be,Me,je),Oo(Me,je,0,Be,1,0);break;case qd:fs(Ae,Te,Be,Me,je);break;case Il:ze(Ae,Te,Be,Me,je,1);break;case dc:ze(Ae,Te,Be,Me,je,1),Oo(Me,je,0,Be,1,0);break;case Rl:ze(Ae,Te,Be,Me,je,0);break;case Ll:ze(Ae,Te,Be,Me,je,0),Oo(Me,je,1,Be,1,0);break;case cc:Hs(Ae,Te,Be,Me,je);break;case hc:Hs(Ae,Te,Be,Me,je),Fd(Me,je,Be,1,0);break;case Hd:cs(Ae,Te,Be,Me,je);break;default:i(0)}ce+=he,ke+=Ie}O.Ma+=oe}else alert("todo:EmitRescaledRowsYUVA");i(O.Ma<=Y.height)}}O.C=H,i(O.C<=O.i)}function At(O){var H;if(0<O.ua)return 0;for(H=0;H<O.Wb;++H){var Y=O.Ya[H].G,Q=O.Ya[H].H;if(0<Y[1][Q[1]+0].g||0<Y[2][Q[2]+0].g||0<Y[3][Q[3]+0].g)return 0}return 1}function yt(O,H,Y,Q,ae,oe){if(O.Z!=0){var le=O.qd,ce=O.rd;for(i(Ta[O.Z]!=null);H<Y;++H)Ta[O.Z](le,ce,Q,ae,Q,ae,oe),le=Q,ce=ae,ae+=oe;O.qd=le,O.rd=ce}}function gt(O,H){var Y=O.l.ma,Q=Y.Z==0||Y.Z==1?O.l.j:O.C;if(Q=O.C<Q?Q:O.C,i(H<=O.l.o),H>Q){var ae=O.l.width,oe=Y.ca,le=Y.tb+ae*Q,ce=O.V,he=O.Ba+O.c*Q,ge=O.gc;i(O.ab==1),i(ge[0].hc==3),lc(ge[0],Q,H,ce,he,oe,le),yt(Y,Q,H,oe,le,ae)}O.C=O.Ma=H}function Rt(O,H,Y,Q,ae,oe,le){var ce=O.$/Q,he=O.$%Q,ge=O.m,ke=O.s,Ie=Y+O.$,ve=Ie;ae=Y+Q*ae;var Ae=Y+Q*oe,Te=280+ke.ua,Be=O.Pb?ce:16777216,Me=0<ke.ua?ke.Wa:null,je=ke.wc,Ue=Ie<Ae?tt(ke,he,ce):null;i(O.C<oe),i(Ae<=ae);var at=!1;e:for(;;){for(;at||Ie<Ae;){var Je=0;if(ce>=Be){var Ot=Ie-Y;i((Be=O).Pb),Be.wd=Be.m,Be.xd=Ot,0<Be.s.ua&&de(Be.s.Wa,Be.s.vb),Be=ce+Mv}if(he&je||(Ue=tt(ke,he,ce)),i(Ue!=null),Ue.Qb&&(H[Ie]=Ue.qb,at=!0),!at)if(X(ge),Ue.jc){Je=ge,Ot=H;var vt=Ie,tr=Ue.pd[q(Je)&Us-1];i(Ue.jc),256>tr.g?(B(Je,Je.u+tr.g),Ot[vt]=tr.value,Je=0):(B(Je,Je.u+tr.g-256),i(256<=tr.value),Je=tr.value),Je==0&&(at=!0)}else Je=Ce(Ue.G[0],Ue.H[0],ge);if(ge.h)break;if(at||256>Je){if(!at)if(Ue.nd)H[Ie]=(Ue.qb|Je<<8)>>>0;else{if(X(ge),at=Ce(Ue.G[1],Ue.H[1],ge),X(ge),Ot=Ce(Ue.G[2],Ue.H[2],ge),vt=Ce(Ue.G[3],Ue.H[3],ge),ge.h)break;H[Ie]=(vt<<24|at<<16|Je<<8|Ot)>>>0}if(at=!1,++Ie,++he>=Q&&(he=0,++ce,le!=null&&ce<=oe&&!(ce%16)&&le(O,ce),Me!=null))for(;ve<Ie;)Je=H[ve++],Me.X[(506832829*Je&4294967295)>>>Me.Mb]=Je}else if(280>Je){if(Je=It(Je-256,ge),Ot=Ce(Ue.G[4],Ue.H[4],ge),X(ge),Ot=xe(Q,Ot=It(Ot,ge)),ge.h)break;if(Ie-Y<Ot||ae-Ie<Je)break e;for(vt=0;vt<Je;++vt)H[Ie+vt]=H[Ie+vt-Ot];for(Ie+=Je,he+=Je;he>=Q;)he-=Q,++ce,le!=null&&ce<=oe&&!(ce%16)&&le(O,ce);if(i(Ie<=ae),he&je&&(Ue=tt(ke,he,ce)),Me!=null)for(;ve<Ie;)Je=H[ve++],Me.X[(506832829*Je&4294967295)>>>Me.Mb]=Je}else{if(!(Je<Te))break e;for(at=Je-280,i(Me!=null);ve<Ie;)Je=H[ve++],Me.X[(506832829*Je&4294967295)>>>Me.Mb]=Je;Je=Ie,i(!(at>>>(Ot=Me).Xa)),H[Je]=Ot.X[at],at=!0}at||i(ge.h==Z(ge))}if(O.Pb&&ge.h&&Ie<ae)i(O.m.h),O.a=5,O.m=O.wd,O.$=O.xd,0<O.s.ua&&de(O.s.vb,O.s.Wa);else{if(ge.h)break e;le?.(O,ce>oe?oe:ce),O.a=0,O.$=Ie-Y}return 1}return O.a=3,0}function Nt(O){i(O!=null),O.vc=null,O.yc=null,O.Ya=null;var H=O.Wa;H!=null&&(H.X=null),O.vb=null,i(O!=null)}function Dt(){var O=new kt;return O==null?null:(O.a=0,O.xb=Xd,bt("Predictor","VP8LPredictors"),bt("Predictor","VP8LPredictors_C"),bt("PredictorAdd","VP8LPredictorsAdd"),bt("PredictorAdd","VP8LPredictorsAdd_C"),qs=Ve,us=et,Io=dt,Ro=Ke,Hs=Oe,cs=Xe,fs=ut,F.VP8LMapColor32b=tn,F.VP8LMapColor8b=Fi,O)}function mr(O,H,Y,Q,ae){var oe=1,le=[O],ce=[H],he=Q.m,ge=Q.s,ke=null,Ie=0;e:for(;;){if(Y)for(;oe&&j(he,1);){var ve=le,Ae=ce,Te=Q,Be=1,Me=Te.m,je=Te.gc[Te.ab],Ue=j(Me,2);if(Te.Oc&1<<Ue)oe=0;else{switch(Te.Oc|=1<<Ue,je.hc=Ue,je.Ea=ve[0],je.nc=Ae[0],je.K=[null],++Te.ab,i(4>=Te.ab),Ue){case 0:case 1:je.b=j(Me,3)+2,Be=mr(ue(je.Ea,je.b),ue(je.nc,je.b),0,Te,je.K),je.K=je.K[0];break;case 3:var at,Je=j(Me,8)+1,Ot=16<Je?0:4<Je?1:2<Je?2:3;if(ve[0]=ue(je.Ea,Ot),je.b=Ot,at=Be=mr(Je,1,0,Te,je.K)){var vt,tr=Je,Et=je,dr=1<<(8>>Et.b),sn=r(dr);if(sn==null)at=0;else{var rr=Et.K[0],Tt=Et.w;for(sn[0]=Et.K[0][0],vt=1;vt<1*tr;++vt)sn[vt]=ye(rr[Tt+vt],sn[vt-1]);for(;vt<4*dr;++vt)sn[vt]=0;Et.K[0]=null,Et.K[0]=sn,at=1}}Be=at;break;case 2:break;default:i(0)}oe=Be}}if(le=le[0],ce=ce[0],oe&&j(he,1)&&!(oe=1<=(Ie=j(he,4))&&11>=Ie)){Q.a=3;break e}var ft;if(ft=oe)t:{var Gr,Yt,pr,Ir=Q,hn=le,Ln=ce,zr=Ie,_n=Y,On=Ir.m,on=Ir.s,vr=[null],yr=1,Ur=0,wr=Pv[zr];r:for(;;){if(_n&&j(On,1)){var pn=j(On,3)+2,xi=ue(hn,pn),Xr=ue(Ln,pn),$n=xi*Xr;if(!mr(xi,Xr,0,Ir,vr))break r;for(vr=vr[0],on.xc=pn,Gr=0;Gr<$n;++Gr){var Sr=vr[Gr]>>8&65535;vr[Gr]=Sr,Sr>=yr&&(yr=Sr+1)}}if(On.h)break r;for(Yt=0;5>Yt;++Yt){var ln=Wd[Yt];!Yt&&0<zr&&(ln+=1<<zr),Ur<ln&&(Ur=ln)}var Zn=o(yr*wr,N),Fn=yr,Jn=o(Fn,C);if(Jn==null)var Qn=null;else i(65536>=Fn),Qn=Jn;var qn=r(Ur);if(Qn==null||qn==null||Zn==null){Ir.a=1;break r}var ei=Zn;for(Gr=pr=0;Gr<yr;++Gr){var Pr=Qn[Gr],ti=Pr.G,_i=Pr.H,ds=0,na=1,mn=0;for(Yt=0;5>Yt;++Yt){ln=Wd[Yt],ti[Yt]=ei,_i[Yt]=pr,!Yt&&0<zr&&(ln+=1<<zr);i:{var jl,vc=ln,Dl=Ir,jo=qn,Zv=ei,Jv=pr,bc=0,Pa=Dl.m,Qv=j(Pa,1);if(c(jo,0,0,vc),Qv){var e2=j(Pa,1)+1,t2=j(Pa,1),rh=j(Pa,t2==0?1:8);jo[rh]=1,e2==2&&(jo[rh=j(Pa,8)]=1);var Vl=1}else{var nh=r(19),ih=j(Pa,4)+4;if(19<ih){Dl.a=3;var zl=0;break i}for(jl=0;jl<ih;++jl)nh[Ev[jl]]=j(Pa,3);var yc=void 0,Do=void 0,ah=Dl,r2=nh,Ul=vc,sh=jo,wc=0,Ma=ah.m,oh=8,lh=o(128,N);n:for(;D(lh,0,7,r2,19);){if(j(Ma,1)){var n2=2+2*j(Ma,3);if((yc=2+j(Ma,n2))>Ul)break n}else yc=Ul;for(Do=0;Do<Ul&&yc--;){X(Ma);var uh=lh[0+(127&q(Ma))];B(Ma,Ma.u+uh.g);var Xs=uh.value;if(16>Xs)sh[Do++]=Xs,Xs!=0&&(oh=Xs);else{var i2=Xs==16,ch=Xs-16,a2=Av[ch],fh=j(Ma,Cv[ch])+a2;if(Do+fh>Ul)break n;for(var s2=i2?oh:0;0<fh--;)sh[Do++]=s2}}wc=1;break n}wc||(ah.a=3),Vl=wc}(Vl=Vl&&!Pa.h)&&(bc=D(Zv,Jv,8,jo,vc)),Vl&&bc!=0?zl=bc:(Dl.a=3,zl=0)}if(zl==0)break r;if(na&&Nv[Yt]==1&&(na=ei[pr].g==0),ds+=ei[pr].g,pr+=zl,3>=Yt){var Vo,xc=qn[0];for(Vo=1;Vo<ln;++Vo)qn[Vo]>xc&&(xc=qn[Vo]);mn+=xc}}if(Pr.nd=na,Pr.Qb=0,na&&(Pr.qb=(ti[3][_i[3]+0].value<<24|ti[1][_i[1]+0].value<<16|ti[2][_i[2]+0].value)>>>0,ds==0&&256>ti[0][_i[0]+0].value&&(Pr.Qb=1,Pr.qb+=ti[0][_i[0]+0].value<<8)),Pr.jc=!Pr.Qb&&6>mn,Pr.jc){var $l,ia=Pr;for($l=0;$l<Us;++$l){var Ia=$l,Ra=ia.pd[Ia],ql=ia.G[0][ia.H[0]+Ia];256<=ql.value?(Ra.g=ql.g+256,Ra.value=ql.value):(Ra.g=0,Ra.value=0,Ia>>=Re(ql,8,Ra),Ia>>=Re(ia.G[1][ia.H[1]+Ia],16,Ra),Ia>>=Re(ia.G[2][ia.H[2]+Ia],0,Ra),Re(ia.G[3][ia.H[3]+Ia],24,Ra))}}}on.vc=vr,on.Wb=yr,on.Ya=Qn,on.yc=Zn,ft=1;break t}ft=0}if(!(oe=ft)){Q.a=3;break e}if(0<Ie){if(ge.ua=1<<Ie,!J(ge.Wa,Ie)){Q.a=1,oe=0;break e}}else ge.ua=0;var _c=Q,dh=le,o2=ce,Sc=_c.s,kc=Sc.xc;if(_c.c=dh,_c.i=o2,Sc.md=ue(dh,kc),Sc.wc=kc==0?-1:(1<<kc)-1,Y){Q.xb=jv;break e}if((ke=r(le*ce))==null){Q.a=1,oe=0;break e}oe=(oe=Rt(Q,ke,0,le,ce,ce,null))&&!he.h;break e}return oe?(ae!=null?ae[0]=ke:(i(ke==null),i(Y)),Q.$=0,Y||Nt(ge)):Nt(ge),oe}function fr(O,H){var Y=O.c*O.i,Q=Y+H+16*H;return i(O.c<=H),O.V=r(Q),O.V==null?(O.Ta=null,O.Ua=0,O.a=1,0):(O.Ta=O.V,O.Ua=O.Ba+Y+H,1)}function Cr(O,H){var Y=O.C,Q=H-Y,ae=O.V,oe=O.Ba+O.c*Y;for(i(H<=O.l.o);0<Q;){var le=16<Q?16:Q,ce=O.l.ma,he=O.l.width,ge=he*le,ke=ce.ca,Ie=ce.tb+he*Y,ve=O.Ta,Ae=O.Ua;Ct(O,le,ae,oe),jd(ve,Ae,ke,Ie,ge),yt(ce,Y,Y+le,ke,Ie,he),Q-=le,ae+=le*O.c,Y+=le}i(Y==H),O.C=O.Ma=H}function Ar(){this.ub=this.yd=this.td=this.Rb=0}function Hr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function me(){this.Fb=this.Bb=this.Cb=0,this.Zb=r(4),this.Lb=r(4)}function Ee(){this.Yb=(function(){var O=[];return(function H(Y,Q,ae){for(var oe=ae[Q],le=0;le<oe&&(Y.push(ae.length>Q+1?[]:0),!(ae.length<Q+1));le++)H(Y[le],Q+1,ae)})(O,0,[3,11]),O})()}function $e(){this.jb=r(3),this.Wc=l([4,8],Ee),this.Xc=l([4,17],Ee)}function Qe(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new r(4),this.od=new r(4)}function pt(){this.ld=this.La=this.dd=this.tc=0}function st(){this.Na=this.la=0}function lt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Jt(){this.ad=r(384),this.Za=0,this.Ob=r(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new pt),this.Y=0,this.ya=Array(new Jt),this.aa=0,this.l=new lr}function Ht(){this.y=r(16),this.f=r(8),this.ea=r(8)}function Lt(){this.cb=this.a=0,this.sc="",this.m=new P,this.Od=new Ar,this.Kc=new Hr,this.ed=new Qe,this.Qa=new me,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,P),this.ia=0,this.pb=o(4,lt),this.Pa=new $e,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new st),this.sb=0,this.wa=Array(new pt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Jt),this.L=this.aa=0,this.gd=l([4,2],pt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function er(O,H){return 0>O?0:O>H?H:O}function lr(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function gr(){var O=new Lt;return O!=null&&(O.a=0,O.sc="OK",O.cb=0,O.Xb=0,Fo||(Fo=fn)),O}function Gt(O,H,Y){return O.a==0&&(O.a=H,O.sc=Y,O.cb=0),0}function Fr(O,H,Y){return 3<=Y&&O[H+0]==157&&O[H+1]==1&&O[H+2]==42}function Nr(O,H){if(O==null)return 0;if(O.a=0,O.sc="OK",H==null)return Gt(O,2,"null VP8Io passed to VP8GetHeaders()");var Y=H.data,Q=H.w,ae=H.ha;if(4>ae)return Gt(O,7,"Truncated header.");var oe=Y[Q+0]|Y[Q+1]<<8|Y[Q+2]<<16,le=O.Od;if(le.Rb=!(1&oe),le.td=oe>>1&7,le.yd=oe>>4&1,le.ub=oe>>5,3<le.td)return Gt(O,3,"Incorrect keyframe parameters.");if(!le.yd)return Gt(O,4,"Frame not displayable.");Q+=3,ae-=3;var ce=O.Kc;if(le.Rb){if(7>ae)return Gt(O,7,"cannot parse picture header");if(!Fr(Y,Q,ae))return Gt(O,3,"Bad code word");ce.c=16383&(Y[Q+4]<<8|Y[Q+3]),ce.Td=Y[Q+4]>>6,ce.i=16383&(Y[Q+6]<<8|Y[Q+5]),ce.Ud=Y[Q+6]>>6,Q+=7,ae-=7,O.za=ce.c+15>>4,O.Ub=ce.i+15>>4,H.width=ce.c,H.height=ce.i,H.Da=0,H.j=0,H.v=0,H.va=H.width,H.o=H.height,H.da=0,H.ib=H.width,H.hb=H.height,H.U=H.width,H.T=H.height,c((oe=O.Pa).jb,0,255,oe.jb.length),i((oe=O.Qa)!=null),oe.Cb=0,oe.Bb=0,oe.Fb=1,c(oe.Zb,0,0,oe.Zb.length),c(oe.Lb,0,0,oe.Lb)}if(le.ub>ae)return Gt(O,7,"bad partition length");w(oe=O.m,Y,Q,le.ub),Q+=le.ub,ae-=le.ub,le.Rb&&(ce.Ld=I(oe),ce.Kd=I(oe)),ce=O.Qa;var he,ge=O.Pa;if(i(oe!=null),i(ce!=null),ce.Cb=I(oe),ce.Cb){if(ce.Bb=I(oe),I(oe)){for(ce.Fb=I(oe),he=0;4>he;++he)ce.Zb[he]=I(oe)?_(oe,7):0;for(he=0;4>he;++he)ce.Lb[he]=I(oe)?_(oe,6):0}if(ce.Bb)for(he=0;3>he;++he)ge.jb[he]=I(oe)?S(oe,8):255}else ce.Bb=0;if(oe.Ka)return Gt(O,3,"cannot parse segment header");if((ce=O.ed).zd=I(oe),ce.Tb=S(oe,6),ce.wb=S(oe,3),ce.Pc=I(oe),ce.Pc&&I(oe)){for(ge=0;4>ge;++ge)I(oe)&&(ce.vd[ge]=_(oe,6));for(ge=0;4>ge;++ge)I(oe)&&(ce.od[ge]=_(oe,6))}if(O.L=ce.Tb==0?0:ce.zd?1:2,oe.Ka)return Gt(O,3,"cannot parse filter header");var ke=ae;if(ae=he=Q,Q=he+ke,ce=ke,O.Xb=(1<<S(O.m,2))-1,ke<3*(ge=O.Xb))Y=7;else{for(he+=3*ge,ce-=3*ge,ke=0;ke<ge;++ke){var Ie=Y[ae+0]|Y[ae+1]<<8|Y[ae+2]<<16;Ie>ce&&(Ie=ce),w(O.Jc[+ke],Y,he,Ie),he+=Ie,ce-=Ie,ae+=3}w(O.Jc[+ge],Y,he,ce),Y=he<Q?0:5}if(Y!=0)return Gt(O,Y,"cannot parse partitions");for(Y=S(he=O.m,7),ae=I(he)?_(he,4):0,Q=I(he)?_(he,4):0,ce=I(he)?_(he,4):0,ge=I(he)?_(he,4):0,he=I(he)?_(he,4):0,ke=O.Qa,Ie=0;4>Ie;++Ie){if(ke.Cb){var ve=ke.Zb[Ie];ke.Fb||(ve+=Y)}else{if(0<Ie){O.pb[Ie]=O.pb[0];continue}ve=Y}var Ae=O.pb[Ie];Ae.Sc[0]=pc[er(ve+ae,127)],Ae.Sc[1]=mc[er(ve+0,127)],Ae.Eb[0]=2*pc[er(ve+Q,127)],Ae.Eb[1]=101581*mc[er(ve+ce,127)]>>16,8>Ae.Eb[1]&&(Ae.Eb[1]=8),Ae.Qc[0]=pc[er(ve+ge,117)],Ae.Qc[1]=mc[er(ve+he,127)],Ae.lc=ve+he}if(!le.Rb)return Gt(O,4,"Not a key frame.");for(I(oe),le=O.Pa,Y=0;4>Y;++Y){for(ae=0;8>ae;++ae)for(Q=0;3>Q;++Q)for(ce=0;11>ce;++ce)ge=G(oe,Fv[Y][ae][Q][ce])?S(oe,8):Lv[Y][ae][Q][ce],le.Wc[Y][ae].Yb[Q][ce]=ge;for(ae=0;17>ae;++ae)le.Xc[Y][ae]=le.Wc[Y][Bv[ae]]}return O.kc=I(oe),O.kc&&(O.Bd=S(oe,8)),O.cb=1}function fn(O,H,Y,Q,ae,oe,le){var ce=H[ae].Yb[Y];for(Y=0;16>ae;++ae){if(!G(O,ce[Y+0]))return ae;for(;!G(O,ce[Y+1]);)if(ce=H[++ae].Yb[0],Y=0,ae==16)return 16;var he=H[ae+1].Yb;if(G(O,ce[Y+2])){var ge=O,ke=0;if(G(ge,(ve=ce)[(Ie=Y)+3]))if(G(ge,ve[Ie+6])){for(ce=0,Ie=2*(ke=G(ge,ve[Ie+8]))+(ve=G(ge,ve[Ie+9+ke])),ke=0,ve=Iv[Ie];ve[ce];++ce)ke+=ke+G(ge,ve[ce]);ke+=3+(8<<Ie)}else G(ge,ve[Ie+7])?(ke=7+2*G(ge,165),ke+=G(ge,145)):ke=5+G(ge,159);else ke=G(ge,ve[Ie+4])?3+G(ge,ve[Ie+5]):2;ce=he[2]}else ke=1,ce=he[1];he=le+Rv[ae],0>(ge=O).b&&L(ge);var Ie,ve=ge.b,Ae=(Ie=ge.Ca>>1)-(ge.I>>ve)>>31;--ge.b,ge.Ca+=Ae,ge.Ca|=1,ge.I-=(Ie+1&Ae)<<ve,oe[he]=((ke^Ae)-Ae)*Q[(0<ae)+0]}return 16}function Wn(O){var H=O.rb[O.sb-1];H.la=0,H.Na=0,c(O.zc,0,0,O.zc.length),O.ja=0}function Qr(O,H,Y,Q,ae){ae=O[H+Y+32*Q]+(ae>>3),O[H+Y+32*Q]=-256&ae?0>ae?0:255:ae}function Gn(O,H,Y,Q,ae,oe){Qr(O,H,0,Y,Q+ae),Qr(O,H,1,Y,Q+oe),Qr(O,H,2,Y,Q-oe),Qr(O,H,3,Y,Q-ae)}function bn(O){return(20091*O>>16)+O}function Vt(O,H,Y,Q){var ae,oe=0,le=r(16);for(ae=0;4>ae;++ae){var ce=O[H+0]+O[H+8],he=O[H+0]-O[H+8],ge=(35468*O[H+4]>>16)-bn(O[H+12]),ke=bn(O[H+4])+(35468*O[H+12]>>16);le[oe+0]=ce+ke,le[oe+1]=he+ge,le[oe+2]=he-ge,le[oe+3]=ce-ke,oe+=4,H++}for(ae=oe=0;4>ae;++ae)ce=(O=le[oe+0]+4)+le[oe+8],he=O-le[oe+8],ge=(35468*le[oe+4]>>16)-bn(le[oe+12]),Qr(Y,Q,0,0,ce+(ke=bn(le[oe+4])+(35468*le[oe+12]>>16))),Qr(Y,Q,1,0,he+ge),Qr(Y,Q,2,0,he-ge),Qr(Y,Q,3,0,ce-ke),oe++,Q+=32}function sr(O,H,Y,Q){var ae=O[H+0]+4,oe=35468*O[H+4]>>16,le=bn(O[H+4]),ce=35468*O[H+1]>>16;Gn(Y,Q,0,ae+le,O=bn(O[H+1]),ce),Gn(Y,Q,1,ae+oe,O,ce),Gn(Y,Q,2,ae-oe,O,ce),Gn(Y,Q,3,ae-le,O,ce)}function li(O,H,Y,Q,ae){Vt(O,H,Y,Q),ae&&Vt(O,H+16,Y,Q+4)}function bi(O,H,Y,Q){ea(O,H+0,Y,Q,1),ea(O,H+32,Y,Q+128,1)}function ba(O,H,Y,Q){var ae;for(O=O[H+0]+4,ae=0;4>ae;++ae)for(H=0;4>H;++H)Qr(Y,Q,H,ae,O)}function Lr(O,H,Y,Q){O[H+0]&&xn(O,H+0,Y,Q),O[H+16]&&xn(O,H+16,Y,Q+4),O[H+32]&&xn(O,H+32,Y,Q+128),O[H+48]&&xn(O,H+48,Y,Q+128+4)}function zn(O,H,Y,Q){var ae,oe=r(16);for(ae=0;4>ae;++ae){var le=O[H+0+ae]+O[H+12+ae],ce=O[H+4+ae]+O[H+8+ae],he=O[H+4+ae]-O[H+8+ae],ge=O[H+0+ae]-O[H+12+ae];oe[0+ae]=le+ce,oe[8+ae]=le-ce,oe[4+ae]=ge+he,oe[12+ae]=ge-he}for(ae=0;4>ae;++ae)le=(O=oe[0+4*ae]+3)+oe[3+4*ae],ce=oe[1+4*ae]+oe[2+4*ae],he=oe[1+4*ae]-oe[2+4*ae],ge=O-oe[3+4*ae],Y[Q+0]=le+ce>>3,Y[Q+16]=ge+he>>3,Y[Q+32]=le-ce>>3,Y[Q+48]=ge-he>>3,Q+=64}function Mn(O,H,Y){var Q,ae=H-32,oe=Yn,le=255-O[ae-1];for(Q=0;Q<Y;++Q){var ce,he=oe,ge=le+O[H-1];for(ce=0;ce<Y;++ce)O[H+ce]=he[ge+O[ae+ce]];H+=32}}function ui(O,H){Mn(O,H,4)}function Mi(O,H){Mn(O,H,8)}function Ii(O,H){Mn(O,H,16)}function ci(O,H){var Y;for(Y=0;16>Y;++Y)s(O,H+32*Y,O,H-32,16)}function Ls(O,H){var Y;for(Y=16;0<Y;--Y)c(O,H,O[H-1],16),H+=32}function Xn(O,H,Y){var Q;for(Q=0;16>Q;++Q)c(H,Y+32*Q,O,16)}function ya(O,H){var Y,Q=16;for(Y=0;16>Y;++Y)Q+=O[H-1+32*Y]+O[H+Y-32];Xn(Q>>5,O,H)}function Kn(O,H){var Y,Q=8;for(Y=0;16>Y;++Y)Q+=O[H-1+32*Y];Xn(Q>>4,O,H)}function wa(O,H){var Y,Q=8;for(Y=0;16>Y;++Y)Q+=O[H+Y-32];Xn(Q>>4,O,H)}function Ri(O,H){Xn(128,O,H)}function Bt(O,H,Y){return O+2*H+Y+2>>2}function xa(O,H){var Y,Q=H-32;for(Q=new Uint8Array([Bt(O[Q-1],O[Q+0],O[Q+1]),Bt(O[Q+0],O[Q+1],O[Q+2]),Bt(O[Q+1],O[Q+2],O[Q+3]),Bt(O[Q+2],O[Q+3],O[Q+4])]),Y=0;4>Y;++Y)s(O,H+32*Y,Q,0,Q.length)}function ec(O,H){var Y=O[H-1],Q=O[H-1+32],ae=O[H-1+64],oe=O[H-1+96];ee(O,H+0,16843009*Bt(O[H-1-32],Y,Q)),ee(O,H+32,16843009*Bt(Y,Q,ae)),ee(O,H+64,16843009*Bt(Q,ae,oe)),ee(O,H+96,16843009*Bt(ae,oe,oe))}function tc(O,H){var Y,Q=4;for(Y=0;4>Y;++Y)Q+=O[H+Y-32]+O[H-1+32*Y];for(Q>>=3,Y=0;4>Y;++Y)c(O,H+32*Y,Q,4)}function rc(O,H){var Y=O[H-1+0],Q=O[H-1+32],ae=O[H-1+64],oe=O[H-1-32],le=O[H+0-32],ce=O[H+1-32],he=O[H+2-32],ge=O[H+3-32];O[H+0+96]=Bt(Q,ae,O[H-1+96]),O[H+1+96]=O[H+0+64]=Bt(Y,Q,ae),O[H+2+96]=O[H+1+64]=O[H+0+32]=Bt(oe,Y,Q),O[H+3+96]=O[H+2+64]=O[H+1+32]=O[H+0+0]=Bt(le,oe,Y),O[H+3+64]=O[H+2+32]=O[H+1+0]=Bt(ce,le,oe),O[H+3+32]=O[H+2+0]=Bt(he,ce,le),O[H+3+0]=Bt(ge,he,ce)}function nc(O,H){var Y=O[H+1-32],Q=O[H+2-32],ae=O[H+3-32],oe=O[H+4-32],le=O[H+5-32],ce=O[H+6-32],he=O[H+7-32];O[H+0+0]=Bt(O[H+0-32],Y,Q),O[H+1+0]=O[H+0+32]=Bt(Y,Q,ae),O[H+2+0]=O[H+1+32]=O[H+0+64]=Bt(Q,ae,oe),O[H+3+0]=O[H+2+32]=O[H+1+64]=O[H+0+96]=Bt(ae,oe,le),O[H+3+32]=O[H+2+64]=O[H+1+96]=Bt(oe,le,ce),O[H+3+64]=O[H+2+96]=Bt(le,ce,he),O[H+3+96]=Bt(ce,he,he)}function Ki(O,H){var Y=O[H-1+0],Q=O[H-1+32],ae=O[H-1+64],oe=O[H-1-32],le=O[H+0-32],ce=O[H+1-32],he=O[H+2-32],ge=O[H+3-32];O[H+0+0]=O[H+1+64]=oe+le+1>>1,O[H+1+0]=O[H+2+64]=le+ce+1>>1,O[H+2+0]=O[H+3+64]=ce+he+1>>1,O[H+3+0]=he+ge+1>>1,O[H+0+96]=Bt(ae,Q,Y),O[H+0+64]=Bt(Q,Y,oe),O[H+0+32]=O[H+1+96]=Bt(Y,oe,le),O[H+1+32]=O[H+2+96]=Bt(oe,le,ce),O[H+2+32]=O[H+3+96]=Bt(le,ce,he),O[H+3+32]=Bt(ce,he,ge)}function Yi(O,H){var Y=O[H+0-32],Q=O[H+1-32],ae=O[H+2-32],oe=O[H+3-32],le=O[H+4-32],ce=O[H+5-32],he=O[H+6-32],ge=O[H+7-32];O[H+0+0]=Y+Q+1>>1,O[H+1+0]=O[H+0+64]=Q+ae+1>>1,O[H+2+0]=O[H+1+64]=ae+oe+1>>1,O[H+3+0]=O[H+2+64]=oe+le+1>>1,O[H+0+32]=Bt(Y,Q,ae),O[H+1+32]=O[H+0+96]=Bt(Q,ae,oe),O[H+2+32]=O[H+1+96]=Bt(ae,oe,le),O[H+3+32]=O[H+2+96]=Bt(oe,le,ce),O[H+3+64]=Bt(le,ce,he),O[H+3+96]=Bt(ce,he,ge)}function ic(O,H){var Y=O[H-1+0],Q=O[H-1+32],ae=O[H-1+64],oe=O[H-1+96];O[H+0+0]=Y+Q+1>>1,O[H+2+0]=O[H+0+32]=Q+ae+1>>1,O[H+2+32]=O[H+0+64]=ae+oe+1>>1,O[H+1+0]=Bt(Y,Q,ae),O[H+3+0]=O[H+1+32]=Bt(Q,ae,oe),O[H+3+32]=O[H+1+64]=Bt(ae,oe,oe),O[H+3+64]=O[H+2+64]=O[H+0+96]=O[H+1+96]=O[H+2+96]=O[H+3+96]=oe}function ac(O,H){var Y=O[H-1+0],Q=O[H-1+32],ae=O[H-1+64],oe=O[H-1+96],le=O[H-1-32],ce=O[H+0-32],he=O[H+1-32],ge=O[H+2-32];O[H+0+0]=O[H+2+32]=Y+le+1>>1,O[H+0+32]=O[H+2+64]=Q+Y+1>>1,O[H+0+64]=O[H+2+96]=ae+Q+1>>1,O[H+0+96]=oe+ae+1>>1,O[H+3+0]=Bt(ce,he,ge),O[H+2+0]=Bt(le,ce,he),O[H+1+0]=O[H+3+32]=Bt(Y,le,ce),O[H+1+32]=O[H+3+64]=Bt(Q,Y,le),O[H+1+64]=O[H+3+96]=Bt(ae,Q,Y),O[H+1+96]=Bt(oe,ae,Q)}function Os(O,H){var Y;for(Y=0;8>Y;++Y)s(O,H+32*Y,O,H-32,8)}function So(O,H){var Y;for(Y=0;8>Y;++Y)c(O,H,O[H-1],8),H+=32}function Li(O,H,Y){var Q;for(Q=0;8>Q;++Q)c(H,Y+32*Q,O,8)}function sc(O,H){var Y,Q=8;for(Y=0;8>Y;++Y)Q+=O[H+Y-32]+O[H-1+32*Y];Li(Q>>4,O,H)}function Fs(O,H){var Y,Q=4;for(Y=0;8>Y;++Y)Q+=O[H+Y-32];Li(Q>>3,O,H)}function oc(O,H){var Y,Q=4;for(Y=0;8>Y;++Y)Q+=O[H-1+32*Y];Li(Q>>3,O,H)}function ko(O,H){Li(128,O,H)}function _a(O,H,Y){var Q=O[H-Y],ae=O[H+0],oe=3*(ae-Q)+uc[1020+O[H-2*Y]-O[H+Y]],le=Tl[112+(oe+4>>3)];O[H-Y]=Yn[255+Q+Tl[112+(oe+3>>3)]],O[H+0]=Yn[255+ae-le]}function Co(O,H,Y,Q){var ae=O[H+0],oe=O[H+Y];return di[255+O[H-2*Y]-O[H-Y]]>Q||di[255+oe-ae]>Q}function Qa(O,H,Y,Q){return 4*di[255+O[H-Y]-O[H+0]]+di[255+O[H-2*Y]-O[H+Y]]<=Q}function Ao(O,H,Y,Q,ae){var oe=O[H-3*Y],le=O[H-2*Y],ce=O[H-Y],he=O[H+0],ge=O[H+Y],ke=O[H+2*Y],Ie=O[H+3*Y];return 4*di[255+ce-he]+di[255+le-ge]>Q?0:di[255+O[H-4*Y]-oe]<=ae&&di[255+oe-le]<=ae&&di[255+le-ce]<=ae&&di[255+Ie-ke]<=ae&&di[255+ke-ge]<=ae&&di[255+ge-he]<=ae}function Bs(O,H,Y,Q){var ae=2*Q+1;for(Q=0;16>Q;++Q)Qa(O,H+Q,Y,ae)&&_a(O,H+Q,Y)}function No(O,H,Y,Q){var ae=2*Q+1;for(Q=0;16>Q;++Q)Qa(O,H+Q*Y,1,ae)&&_a(O,H+Q*Y,1)}function js(O,H,Y,Q){var ae;for(ae=3;0<ae;--ae)Bs(O,H+=4*Y,Y,Q)}function xl(O,H,Y,Q){var ae;for(ae=3;0<ae;--ae)No(O,H+=4,Y,Q)}function Zi(O,H,Y,Q,ae,oe,le,ce){for(oe=2*oe+1;0<ae--;){if(Ao(O,H,Y,oe,le))if(Co(O,H,Y,ce))_a(O,H,Y);else{var he=O,ge=H,ke=Y,Ie=he[ge-2*ke],ve=he[ge-ke],Ae=he[ge+0],Te=he[ge+ke],Be=he[ge+2*ke],Me=27*(Ue=uc[1020+3*(Ae-ve)+uc[1020+Ie-Te]])+63>>7,je=18*Ue+63>>7,Ue=9*Ue+63>>7;he[ge-3*ke]=Yn[255+he[ge-3*ke]+Ue],he[ge-2*ke]=Yn[255+Ie+je],he[ge-ke]=Yn[255+ve+Me],he[ge+0]=Yn[255+Ae-Me],he[ge+ke]=Yn[255+Te-je],he[ge+2*ke]=Yn[255+Be-Ue]}H+=Q}}function Ji(O,H,Y,Q,ae,oe,le,ce){for(oe=2*oe+1;0<ae--;){if(Ao(O,H,Y,oe,le))if(Co(O,H,Y,ce))_a(O,H,Y);else{var he=O,ge=H,ke=Y,Ie=he[ge-ke],ve=he[ge+0],Ae=he[ge+ke],Te=Tl[112+(4+(Be=3*(ve-Ie))>>3)],Be=Tl[112+(Be+3>>3)],Me=Te+1>>1;he[ge-2*ke]=Yn[255+he[ge-2*ke]+Me],he[ge-ke]=Yn[255+Ie+Be],he[ge+0]=Yn[255+ve-Te],he[ge+ke]=Yn[255+Ae-Me]}H+=Q}}function _l(O,H,Y,Q,ae,oe){Zi(O,H,Y,1,16,Q,ae,oe)}function Sl(O,H,Y,Q,ae,oe){Zi(O,H,1,Y,16,Q,ae,oe)}function kl(O,H,Y,Q,ae,oe){var le;for(le=3;0<le;--le)Ji(O,H+=4*Y,Y,1,16,Q,ae,oe)}function es(O,H,Y,Q,ae,oe){var le;for(le=3;0<le;--le)Ji(O,H+=4,1,Y,16,Q,ae,oe)}function Cl(O,H,Y,Q,ae,oe,le,ce){Zi(O,H,ae,1,8,oe,le,ce),Zi(Y,Q,ae,1,8,oe,le,ce)}function K(O,H,Y,Q,ae,oe,le,ce){Zi(O,H,1,ae,8,oe,le,ce),Zi(Y,Q,1,ae,8,oe,le,ce)}function ie(O,H,Y,Q,ae,oe,le,ce){Ji(O,H+4*ae,ae,1,8,oe,le,ce),Ji(Y,Q+4*ae,ae,1,8,oe,le,ce)}function pe(O,H,Y,Q,ae,oe,le,ce){Ji(O,H+4,1,ae,8,oe,le,ce),Ji(Y,Q+4,1,ae,8,oe,le,ce)}function _e(){this.ba=new ht,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Pt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ne(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Fe(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ye(){this.ua=0,this.Wa=new ne,this.vb=new ne,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new C,this.yc=new N}function kt(){this.xb=this.a=0,this.l=new lr,this.ca=new ht,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ye,this.ab=0,this.gc=o(4,Fe),this.Oc=0}function _t(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new lr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Wt(O,H,Y,Q,ae,oe,le){for(O=O==null?0:O[H+0],H=0;H<le;++H)ae[oe+H]=O+Y[Q+H]&255,O=ae[oe+H]}function Kt(O,H,Y,Q,ae,oe,le){var ce;if(O==null)Wt(null,null,Y,Q,ae,oe,le);else for(ce=0;ce<le;++ce)ae[oe+ce]=O[H+ce]+Y[Q+ce]&255}function hr(O,H,Y,Q,ae,oe,le){if(O==null)Wt(null,null,Y,Q,ae,oe,le);else{var ce,he=O[H+0],ge=he,ke=he;for(ce=0;ce<le;++ce)ge=ke+(he=O[H+ce])-ge,ke=Y[Q+ce]+(-256&ge?0>ge?0:255:ge)&255,ge=he,ae[oe+ce]=ke}}function en(O,H,Y,Q){var ae=H.width,oe=H.o;if(i(O!=null&&H!=null),0>Y||0>=Q||Y+Q>oe)return null;if(!O.Cc){if(O.ga==null){var le;if(O.ga=new _t,(le=O.ga==null)||(le=H.width*H.o,i(O.Gb.length==0),O.Gb=r(le),O.Uc=0,O.Gb==null?le=0:(O.mb=O.Gb,O.nb=O.Uc,O.rc=null,le=1),le=!le),!le){le=O.ga;var ce=O.Fa,he=O.P,ge=O.qc,ke=O.mb,Ie=O.nb,ve=he+1,Ae=ge-1,Te=le.l;if(i(ce!=null&&ke!=null&&H!=null),Ta[0]=null,Ta[1]=Wt,Ta[2]=Kt,Ta[3]=hr,le.ca=ke,le.tb=Ie,le.c=H.width,le.i=H.height,i(0<le.c&&0<le.i),1>=ge)H=0;else if(le.$a=3&ce[he+0],le.Z=ce[he+0]>>2&3,le.Lc=ce[he+0]>>4&3,he=ce[he+0]>>6&3,0>le.$a||1<le.$a||4<=le.Z||1<le.Lc||he)H=0;else if(Te.put=rt,Te.ac=ir,Te.bc=Zt,Te.ma=le,Te.width=H.width,Te.height=H.height,Te.Da=H.Da,Te.v=H.v,Te.va=H.va,Te.j=H.j,Te.o=H.o,le.$a)e:{i(le.$a==1),H=Dt();t:for(;;){if(H==null){H=0;break e}if(i(le!=null),le.mc=H,H.c=le.c,H.i=le.i,H.l=le.l,H.l.ma=le,H.l.width=le.c,H.l.height=le.i,H.a=0,k(H.m,ce,ve,Ae),!mr(le.c,le.i,1,H,null)||(H.ab==1&&H.gc[0].hc==3&&At(H.s)?(le.ic=1,ce=H.c*H.i,H.Ta=null,H.Ua=0,H.V=r(ce),H.Ba=0,H.V==null?(H.a=1,H=0):H=1):(le.ic=0,H=fr(H,le.c)),!H))break t;H=1;break e}le.mc=null,H=0}else H=Ae>=le.c*le.i;le=!H}if(le)return null;O.ga.Lc!=1?O.Ga=0:Q=oe-Y}i(O.ga!=null),i(Y+Q<=oe);e:{if(H=(ce=O.ga).c,oe=ce.l.o,ce.$a==0){if(ve=O.rc,Ae=O.Vc,Te=O.Fa,he=O.P+1+Y*H,ge=O.mb,ke=O.nb+Y*H,i(he<=O.P+O.qc),ce.Z!=0)for(i(Ta[ce.Z]!=null),le=0;le<Q;++le)Ta[ce.Z](ve,Ae,Te,he,ge,ke,H),ve=ge,Ae=ke,ke+=H,he+=H;else for(le=0;le<Q;++le)s(ge,ke,Te,he,H),ve=ge,Ae=ke,ke+=H,he+=H;O.rc=ve,O.Vc=Ae}else{if(i(ce.mc!=null),H=Y+Q,i((le=ce.mc)!=null),i(H<=le.i),le.C>=H)H=1;else if(ce.ic||jr(),ce.ic){ce=le.V,ve=le.Ba,Ae=le.c;var Be=le.i,Me=(Te=1,he=le.$/Ae,ge=le.$%Ae,ke=le.m,Ie=le.s,le.$),je=Ae*Be,Ue=Ae*H,at=Ie.wc,Je=Me<Ue?tt(Ie,ge,he):null;i(Me<=je),i(H<=Be),i(At(Ie));t:for(;;){for(;!ke.h&&Me<Ue;){if(ge&at||(Je=tt(Ie,ge,he)),i(Je!=null),X(ke),256>(Be=Ce(Je.G[0],Je.H[0],ke)))ce[ve+Me]=Be,++Me,++ge>=Ae&&(ge=0,++he<=H&&!(he%16)&&gt(le,he));else{if(!(280>Be)){Te=0;break t}Be=It(Be-256,ke);var Ot,vt=Ce(Je.G[4],Je.H[4],ke);if(X(ke),!(Me>=(vt=xe(Ae,vt=It(vt,ke)))&&je-Me>=Be)){Te=0;break t}for(Ot=0;Ot<Be;++Ot)ce[ve+Me+Ot]=ce[ve+Me+Ot-vt];for(Me+=Be,ge+=Be;ge>=Ae;)ge-=Ae,++he<=H&&!(he%16)&&gt(le,he);Me<Ue&&ge&at&&(Je=tt(Ie,ge,he))}i(ke.h==Z(ke))}gt(le,he>H?H:he);break t}!Te||ke.h&&Me<je?(Te=0,le.a=ke.h?5:3):le.$=Me,H=Te}else H=Rt(le,le.V,le.Ba,le.c,le.i,H,Cr);if(!H){Q=0;break e}}Y+Q>=oe&&(O.Cc=1),Q=1}if(!Q)return null;if(O.Cc&&((Q=O.ga)!=null&&(Q.mc=null),O.ga=null,0<O.Ga))return alert("todo:WebPDequantizeLevels"),null}return O.nb+Y*ae}function _r(O,H,Y,Q,ae,oe){for(;0<ae--;){var le,ce=O,he=H+(Y?1:0),ge=O,ke=H+(Y?0:3);for(le=0;le<Q;++le){var Ie=ge[ke+4*le];Ie!=255&&(Ie*=32897,ce[he+4*le+0]=ce[he+4*le+0]*Ie>>23,ce[he+4*le+1]=ce[he+4*le+1]*Ie>>23,ce[he+4*le+2]=ce[he+4*le+2]*Ie>>23)}H+=oe}}function xr(O,H,Y,Q,ae){for(;0<Q--;){var oe;for(oe=0;oe<Y;++oe){var le=O[H+2*oe+0],ce=15&(ge=O[H+2*oe+1]),he=4369*ce,ge=(240&ge|ge>>4)*he>>16;O[H+2*oe+0]=(240&le|le>>4)*he>>16&240|(15&le|le<<4)*he>>16>>4&15,O[H+2*oe+1]=240&ge|ce}H+=ae}}function Mr(O,H,Y,Q,ae,oe,le,ce){var he,ge,ke=255;for(ge=0;ge<ae;++ge){for(he=0;he<Q;++he){var Ie=O[H+he];oe[le+4*he]=Ie,ke&=Ie}H+=Y,le+=ce}return ke!=255}function Br(O,H,Y,Q,ae){var oe;for(oe=0;oe<ae;++oe)Y[Q+oe]=O[H+oe]>>8}function jr(){Oo=_r,Fd=xr,Bd=Mr,jd=Br}function yn(O,H,Y){F[O]=function(Q,ae,oe,le,ce,he,ge,ke,Ie,ve,Ae,Te,Be,Me,je,Ue,at){var Je,Ot=at-1>>1,vt=ce[he+0]|ge[ke+0]<<16,tr=Ie[ve+0]|Ae[Te+0]<<16;i(Q!=null);var Et=3*vt+tr+131074>>2;for(H(Q[ae+0],255&Et,Et>>16,Be,Me),oe!=null&&(Et=3*tr+vt+131074>>2,H(oe[le+0],255&Et,Et>>16,je,Ue)),Je=1;Je<=Ot;++Je){var dr=ce[he+Je]|ge[ke+Je]<<16,sn=Ie[ve+Je]|Ae[Te+Je]<<16,rr=vt+dr+tr+sn+524296,Tt=rr+2*(dr+tr)>>3;Et=Tt+vt>>1,vt=(rr=rr+2*(vt+sn)>>3)+dr>>1,H(Q[ae+2*Je-1],255&Et,Et>>16,Be,Me+(2*Je-1)*Y),H(Q[ae+2*Je-0],255&vt,vt>>16,Be,Me+(2*Je-0)*Y),oe!=null&&(Et=rr+tr>>1,vt=Tt+sn>>1,H(oe[le+2*Je-1],255&Et,Et>>16,je,Ue+(2*Je-1)*Y),H(oe[le+2*Je+0],255&vt,vt>>16,je,Ue+(2*Je+0)*Y)),vt=dr,tr=sn}1&at||(Et=3*vt+tr+131074>>2,H(Q[ae+at-1],255&Et,Et>>16,Be,Me+(at-1)*Y),oe!=null&&(Et=3*tr+vt+131074>>2,H(oe[le+at-1],255&Et,Et>>16,je,Ue+(at-1)*Y)))}}function Qi(){hi[Pl]=Dv,hi[Ml]=Kd,hi[qd]=Vv,hi[Il]=Yd,hi[Rl]=Zd,hi[cc]=Jd,hi[Hd]=zv,hi[fc]=Kd,hi[dc]=Yd,hi[Ll]=Zd,hi[hc]=Jd}function Eo(O){return O&-16384?0>O?0:255:O>>Uv}function ts(O,H){return Eo((19077*O>>8)+(26149*H>>8)-14234)}function rs(O,H,Y){return Eo((19077*O>>8)-(6419*H>>8)-(13320*Y>>8)+8708)}function Sa(O,H){return Eo((19077*O>>8)+(33050*H>>8)-17685)}function ns(O,H,Y,Q,ae){Q[ae+0]=ts(O,Y),Q[ae+1]=rs(O,H,Y),Q[ae+2]=Sa(O,H)}function Ds(O,H,Y,Q,ae){Q[ae+0]=Sa(O,H),Q[ae+1]=rs(O,H,Y),Q[ae+2]=ts(O,Y)}function Vs(O,H,Y,Q,ae){var oe=rs(O,H,Y);H=oe<<3&224|Sa(O,H)>>3,Q[ae+0]=248&ts(O,Y)|oe>>5,Q[ae+1]=H}function wn(O,H,Y,Q,ae){var oe=240&Sa(O,H)|15;Q[ae+0]=240&ts(O,Y)|rs(O,H,Y)>>4,Q[ae+1]=oe}function is(O,H,Y,Q,ae){Q[ae+0]=255,ns(O,H,Y,Q,ae+1)}function as(O,H,Y,Q,ae){Ds(O,H,Y,Q,ae),Q[ae+3]=255}function To(O,H,Y,Q,ae){ns(O,H,Y,Q,ae),Q[ae+3]=255}function Oi(O,H,Y){F[O]=function(Q,ae,oe,le,ce,he,ge,ke,Ie){for(var ve=ke+(-2&Ie)*Y;ke!=ve;)H(Q[ae+0],oe[le+0],ce[he+0],ge,ke),H(Q[ae+1],oe[le+0],ce[he+0],ge,ke+Y),ae+=2,++le,++he,ke+=2*Y;1&Ie&&H(Q[ae+0],oe[le+0],ce[he+0],ge,ke)}}function In(O,H,Y){return Y==0?O==0?H==0?6:5:H==0?4:0:Y}function Al(O,H,Y,Q,ae){switch(O>>>30){case 3:ea(H,Y,Q,ae,0);break;case 2:Na(H,Y,Q,ae);break;case 1:xn(H,Y,Q,ae)}}function zs(O,H){var Y,Q,ae=H.M,oe=H.Nb,le=O.oc,ce=O.pc+40,he=O.oc,ge=O.pc+584,ke=O.oc,Ie=O.pc+600;for(Y=0;16>Y;++Y)le[ce+32*Y-1]=129;for(Y=0;8>Y;++Y)he[ge+32*Y-1]=129,ke[Ie+32*Y-1]=129;for(0<ae?le[ce-1-32]=he[ge-1-32]=ke[Ie-1-32]=129:(c(le,ce-32-1,127,21),c(he,ge-32-1,127,9),c(ke,Ie-32-1,127,9)),Q=0;Q<O.za;++Q){var ve=H.ya[H.aa+Q];if(0<Q){for(Y=-1;16>Y;++Y)s(le,ce+32*Y-4,le,ce+32*Y+12,4);for(Y=-1;8>Y;++Y)s(he,ge+32*Y-4,he,ge+32*Y+4,4),s(ke,Ie+32*Y-4,ke,Ie+32*Y+4,4)}var Ae=O.Gd,Te=O.Hd+Q,Be=ve.ad,Me=ve.Hc;if(0<ae&&(s(le,ce-32,Ae[Te].y,0,16),s(he,ge-32,Ae[Te].f,0,8),s(ke,Ie-32,Ae[Te].ea,0,8)),ve.Za){var je=le,Ue=ce-32+16;for(0<ae&&(Q>=O.za-1?c(je,Ue,Ae[Te].y[15],4):s(je,Ue,Ae[Te+1].y,0,4)),Y=0;4>Y;Y++)je[Ue+128+Y]=je[Ue+256+Y]=je[Ue+384+Y]=je[Ue+0+Y];for(Y=0;16>Y;++Y,Me<<=2)je=le,Ue=ce+eh[Y],wi[ve.Ob[Y]](je,Ue),Al(Me,Be,16*+Y,je,Ue)}else if(je=In(Q,ae,ve.Ob[0]),Ea[je](le,ce),Me!=0)for(Y=0;16>Y;++Y,Me<<=2)Al(Me,Be,16*+Y,le,ce+eh[Y]);for(Y=ve.Gc,je=In(Q,ae,ve.Dd),ra[je](he,ge),ra[je](ke,Ie),Me=Be,je=he,Ue=ge,255&(ve=0|Y)&&(170&ve?Ws(Me,256,je,Ue):Bi(Me,256,je,Ue)),ve=ke,Me=Ie,255&(Y>>=8)&&(170&Y?Ws(Be,320,ve,Me):Bi(Be,320,ve,Me)),ae<O.Ub-1&&(s(Ae[Te].y,0,le,ce+480,16),s(Ae[Te].f,0,he,ge+224,8),s(Ae[Te].ea,0,ke,Ie+224,8)),Y=8*oe*O.B,Ae=O.sa,Te=O.ta+16*Q+16*oe*O.R,Be=O.qa,ve=O.ra+8*Q+Y,Me=O.Ha,je=O.Ia+8*Q+Y,Y=0;16>Y;++Y)s(Ae,Te+Y*O.R,le,ce+32*Y,16);for(Y=0;8>Y;++Y)s(Be,ve+Y*O.B,he,ge+32*Y,8),s(Me,je+Y*O.B,ke,Ie+32*Y,8)}}function Nl(O,H,Y,Q,ae,oe,le,ce,he){var ge=[0],ke=[0],Ie=0,ve=he!=null?he.kd:0,Ae=he??new Ne;if(O==null||12>Y)return 7;Ae.data=O,Ae.w=H,Ae.ha=Y,H=[H],Y=[Y],Ae.gb=[Ae.gb];e:{var Te=H,Be=Y,Me=Ae.gb;if(i(O!=null),i(Be!=null),i(Me!=null),Me[0]=0,12<=Be[0]&&!e(O,Te[0],"RIFF")){if(e(O,Te[0]+8,"WEBP")){Me=3;break e}var je=re(O,Te[0]+4);if(12>je||4294967286<je){Me=3;break e}if(ve&&je>Be[0]-8){Me=7;break e}Me[0]=je,Te[0]+=12,Be[0]-=12}Me=0}if(Me!=0)return Me;for(je=0<Ae.gb[0],Y=Y[0];;){e:{var Ue=O;Be=H,Me=Y;var at=ge,Je=ke,Ot=Te=[0];if((Et=Ie=[Ie])[0]=0,8>Me[0])Me=7;else{if(!e(Ue,Be[0],"VP8X")){if(re(Ue,Be[0]+4)!=10){Me=3;break e}if(18>Me[0]){Me=7;break e}var vt=re(Ue,Be[0]+8),tr=1+te(Ue,Be[0]+12);if(2147483648<=tr*(Ue=1+te(Ue,Be[0]+15))){Me=3;break e}Ot!=null&&(Ot[0]=vt),at!=null&&(at[0]=tr),Je!=null&&(Je[0]=Ue),Be[0]+=18,Me[0]-=18,Et[0]=1}Me=0}}if(Ie=Ie[0],Te=Te[0],Me!=0)return Me;if(Be=!!(2&Te),!je&&Ie)return 3;if(oe!=null&&(oe[0]=!!(16&Te)),le!=null&&(le[0]=Be),ce!=null&&(ce[0]=0),le=ge[0],Te=ke[0],Ie&&Be&&he==null){Me=0;break}if(4>Y){Me=7;break}if(je&&Ie||!je&&!Ie&&!e(O,H[0],"ALPH")){Y=[Y],Ae.na=[Ae.na],Ae.P=[Ae.P],Ae.Sa=[Ae.Sa];e:{vt=O,Me=H,je=Y;var Et=Ae.gb;at=Ae.na,Je=Ae.P,Ot=Ae.Sa,tr=22,i(vt!=null),i(je!=null),Ue=Me[0];var dr=je[0];for(i(at!=null),i(Ot!=null),at[0]=null,Je[0]=null,Ot[0]=0;;){if(Me[0]=Ue,je[0]=dr,8>dr){Me=7;break e}var sn=re(vt,Ue+4);if(4294967286<sn){Me=3;break e}var rr=8+sn+1&-2;if(tr+=rr,0<Et&&tr>Et){Me=3;break e}if(!e(vt,Ue,"VP8 ")||!e(vt,Ue,"VP8L")){Me=0;break e}if(dr[0]<rr){Me=7;break e}e(vt,Ue,"ALPH")||(at[0]=vt,Je[0]=Ue+8,Ot[0]=sn),Ue+=rr,dr-=rr}}if(Y=Y[0],Ae.na=Ae.na[0],Ae.P=Ae.P[0],Ae.Sa=Ae.Sa[0],Me!=0)break}Y=[Y],Ae.Ja=[Ae.Ja],Ae.xa=[Ae.xa];e:if(Et=O,Me=H,je=Y,at=Ae.gb[0],Je=Ae.Ja,Ot=Ae.xa,vt=Me[0],Ue=!e(Et,vt,"VP8 "),tr=!e(Et,vt,"VP8L"),i(Et!=null),i(je!=null),i(Je!=null),i(Ot!=null),8>je[0])Me=7;else{if(Ue||tr){if(Et=re(Et,vt+4),12<=at&&Et>at-12){Me=3;break e}if(ve&&Et>je[0]-8){Me=7;break e}Je[0]=Et,Me[0]+=8,je[0]-=8,Ot[0]=tr}else Ot[0]=5<=je[0]&&Et[vt+0]==47&&!(Et[vt+4]>>5),Je[0]=je[0];Me=0}if(Y=Y[0],Ae.Ja=Ae.Ja[0],Ae.xa=Ae.xa[0],H=H[0],Me!=0)break;if(4294967286<Ae.Ja)return 3;if(ce==null||Be||(ce[0]=Ae.xa?2:1),le=[le],Te=[Te],Ae.xa){if(5>Y){Me=7;break}ce=le,ve=Te,Be=oe,O==null||5>Y?O=0:5<=Y&&O[H+0]==47&&!(O[H+4]>>5)?(je=[0],Et=[0],at=[0],k(Je=new U,O,H,Y),ar(Je,je,Et,at)?(ce!=null&&(ce[0]=je[0]),ve!=null&&(ve[0]=Et[0]),Be!=null&&(Be[0]=at[0]),O=1):O=0):O=0}else{if(10>Y){Me=7;break}ce=Te,O==null||10>Y||!Fr(O,H+3,Y-3)?O=0:(ve=O[H+0]|O[H+1]<<8|O[H+2]<<16,Be=16383&(O[H+7]<<8|O[H+6]),O=16383&(O[H+9]<<8|O[H+8]),1&ve||3<(ve>>1&7)||!(ve>>4&1)||ve>>5>=Ae.Ja||!Be||!O?O=0:(le&&(le[0]=Be),ce&&(ce[0]=O),O=1))}if(!O||(le=le[0],Te=Te[0],Ie&&(ge[0]!=le||ke[0]!=Te)))return 3;he!=null&&(he[0]=Ae,he.offset=H-he.w,i(4294967286>H-he.w),i(he.offset==he.ha-Y));break}return Me==0||Me==7&&Ie&&he==null?(oe!=null&&(oe[0]|=Ae.na!=null&&0<Ae.na.length),Q!=null&&(Q[0]=le),ae!=null&&(ae[0]=Te),0):Me}function fi(O,H,Y){var Q=H.width,ae=H.height,oe=0,le=0,ce=Q,he=ae;if(H.Da=O!=null&&0<O.Da,H.Da&&(ce=O.cd,he=O.bd,oe=O.v,le=O.j,11>Y||(oe&=-2,le&=-2),0>oe||0>le||0>=ce||0>=he||oe+ce>Q||le+he>ae))return 0;if(H.v=oe,H.j=le,H.va=oe+ce,H.o=le+he,H.U=ce,H.T=he,H.da=O!=null&&0<O.da,H.da){if(!fe(ce,he,Y=[O.ib],oe=[O.hb]))return 0;H.ib=Y[0],H.hb=oe[0]}return H.ob=O!=null&&O.ob,H.Kb=O==null||!O.Sd,H.da&&(H.ob=H.ib<3*Q/4&&H.hb<3*ae/4,H.Kb=0),1}function ss(O){if(O==null)return 2;if(11>O.S){var H=O.f.RGBA;H.fb+=(O.height-1)*H.A,H.A=-H.A}else H=O.f.kb,O=O.height,H.O+=(O-1)*H.fa,H.fa=-H.fa,H.N+=(O-1>>1)*H.Ab,H.Ab=-H.Ab,H.W+=(O-1>>1)*H.Db,H.Db=-H.Db,H.F!=null&&(H.J+=(O-1)*H.lb,H.lb=-H.lb);return 0}function Po(O,H,Y,Q){if(Q==null||0>=O||0>=H)return 2;if(Y!=null){if(Y.Da){var ae=Y.cd,oe=Y.bd,le=-2&Y.v,ce=-2&Y.j;if(0>le||0>ce||0>=ae||0>=oe||le+ae>O||ce+oe>H)return 2;O=ae,H=oe}if(Y.da){if(!fe(O,H,ae=[Y.ib],oe=[Y.hb]))return 2;O=ae[0],H=oe[0]}}Q.width=O,Q.height=H;e:{var he=Q.width,ge=Q.height;if(O=Q.S,0>=he||0>=ge||!(O>=Pl&&13>O))O=2;else{if(0>=Q.Rd&&Q.sd==null){le=oe=ae=H=0;var ke=(ce=he*th[O])*ge;if(11>O||(oe=(ge+1)/2*(H=(he+1)/2),O==12&&(le=(ae=he)*ge)),(ge=r(ke+2*oe+le))==null){O=1;break e}Q.sd=ge,11>O?((he=Q.f.RGBA).eb=ge,he.fb=0,he.A=ce,he.size=ke):((he=Q.f.kb).y=ge,he.O=0,he.fa=ce,he.Fd=ke,he.f=ge,he.N=0+ke,he.Ab=H,he.Cd=oe,he.ea=ge,he.W=0+ke+oe,he.Db=H,he.Ed=oe,O==12&&(he.F=ge,he.J=0+ke+2*oe),he.Tc=le,he.lb=ae)}if(H=1,ae=Q.S,oe=Q.width,le=Q.height,ae>=Pl&&13>ae)if(11>ae)O=Q.f.RGBA,H&=(ce=Math.abs(O.A))*(le-1)+oe<=O.size,H&=ce>=oe*th[ae],H&=O.eb!=null;else{O=Q.f.kb,ce=(oe+1)/2,ke=(le+1)/2,he=Math.abs(O.fa),ge=Math.abs(O.Ab);var Ie=Math.abs(O.Db),ve=Math.abs(O.lb),Ae=ve*(le-1)+oe;H&=he*(le-1)+oe<=O.Fd,H&=ge*(ke-1)+ce<=O.Cd,H=(H&=Ie*(ke-1)+ce<=O.Ed)&he>=oe&ge>=ce&Ie>=ce,H&=O.y!=null,H&=O.f!=null,H&=O.ea!=null,ae==12&&(H&=ve>=oe,H&=Ae<=O.Tc,H&=O.F!=null)}else H=0;O=H?0:2}}return O!=0||Y!=null&&Y.fd&&(O=ss(Q)),O}var Us=64,os=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Mo=24,Rn=32,Un=8,$s=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];be("Predictor0","PredictorAdd0"),F.Predictor0=function(){return 4278190080},F.Predictor1=function(O){return O},F.Predictor2=function(O,H,Y){return H[Y+0]},F.Predictor3=function(O,H,Y){return H[Y+1]},F.Predictor4=function(O,H,Y){return H[Y-1]},F.Predictor5=function(O,H,Y){return Se(Se(O,H[Y+1]),H[Y+0])},F.Predictor6=function(O,H,Y){return Se(O,H[Y-1])},F.Predictor7=function(O,H,Y){return Se(O,H[Y+0])},F.Predictor8=function(O,H,Y){return Se(H[Y-1],H[Y+0])},F.Predictor9=function(O,H,Y){return Se(H[Y+0],H[Y+1])},F.Predictor10=function(O,H,Y){return Se(Se(O,H[Y-1]),Se(H[Y+0],H[Y+1]))},F.Predictor11=function(O,H,Y){var Q=H[Y+0];return 0>=De(Q>>24&255,O>>24&255,(H=H[Y-1])>>24&255)+De(Q>>16&255,O>>16&255,H>>16&255)+De(Q>>8&255,O>>8&255,H>>8&255)+De(255&Q,255&O,255&H)?Q:O},F.Predictor12=function(O,H,Y){var Q=H[Y+0];return(Pe((O>>24&255)+(Q>>24&255)-((H=H[Y-1])>>24&255))<<24|Pe((O>>16&255)+(Q>>16&255)-(H>>16&255))<<16|Pe((O>>8&255)+(Q>>8&255)-(H>>8&255))<<8|Pe((255&O)+(255&Q)-(255&H)))>>>0},F.Predictor13=function(O,H,Y){var Q=H[Y-1];return(Le((O=Se(O,H[Y+0]))>>24&255,Q>>24&255)<<24|Le(O>>16&255,Q>>16&255)<<16|Le(O>>8&255,Q>>8&255)<<8|Le(255&O,255&Q))>>>0};var ka=F.PredictorAdd0;F.PredictorAdd1=Ge,be("Predictor2","PredictorAdd2"),be("Predictor3","PredictorAdd3"),be("Predictor4","PredictorAdd4"),be("Predictor5","PredictorAdd5"),be("Predictor6","PredictorAdd6"),be("Predictor7","PredictorAdd7"),be("Predictor8","PredictorAdd8"),be("Predictor9","PredictorAdd9"),be("Predictor10","PredictorAdd10"),be("Predictor11","PredictorAdd11"),be("Predictor12","PredictorAdd12"),be("Predictor13","PredictorAdd13");var Ca=F.PredictorAdd2;We("ColorIndexInverseTransform","MapARGB","32b",function(O){return O>>8&255},function(O){return O}),We("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(O){return O},function(O){return O>>8&255});var qs,ls=F.ColorIndexInverseTransform,tn=F.MapARGB,lc=F.VP8LColorIndexInverseTransformAlpha,Fi=F.MapAlpha,yi=F.VP8LPredictorsAdd=[];yi.length=16,(F.VP8LPredictors=[]).length=16,(F.VP8LPredictorsAdd_C=[]).length=16,(F.VP8LPredictors_C=[]).length=16;var us,Io,Ro,Hs,cs,fs,Aa,ea,Na,Ws,xn,Bi,Er,Tr,Wr,an,ta,Lo,Gs,El,Id,Rd,Ld,Od,Oo,Fd,Bd,jd,Dd=r(511),Vd=r(2041),zd=r(225),Ud=r(767),$d=0,uc=Vd,Tl=zd,Yn=Ud,di=Dd,Pl=0,Ml=1,qd=2,Il=3,Rl=4,cc=5,Hd=6,fc=7,dc=8,Ll=9,hc=10,Cv=[2,3,7],Av=[3,3,11],Wd=[280,256,256,256,40],Nv=[0,1,1,1,0],Ev=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Tv=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Pv=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Mv=8,pc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],mc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Fo=null,Iv=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Rv=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Gd=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Lv=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Ov=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Fv=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Bv=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ea=[],wi=[],ra=[],jv=1,Xd=2,Ta=[],hi=[];yn("UpsampleRgbLinePair",ns,3),yn("UpsampleBgrLinePair",Ds,3),yn("UpsampleRgbaLinePair",To,4),yn("UpsampleBgraLinePair",as,4),yn("UpsampleArgbLinePair",is,4),yn("UpsampleRgba4444LinePair",wn,2),yn("UpsampleRgb565LinePair",Vs,2);var Dv=F.UpsampleRgbLinePair,Vv=F.UpsampleBgrLinePair,Kd=F.UpsampleRgbaLinePair,Yd=F.UpsampleBgraLinePair,Zd=F.UpsampleArgbLinePair,Jd=F.UpsampleRgba4444LinePair,zv=F.UpsampleRgb565LinePair,Ol=16,Fl=1<<Ol-1,Bo=-227,gc=482,Uv=6,Qd=0,$v=r(256),qv=r(256),Hv=r(256),Wv=r(256),Gv=r(gc-Bo),Xv=r(gc-Bo);Oi("YuvToRgbRow",ns,3),Oi("YuvToBgrRow",Ds,3),Oi("YuvToRgbaRow",To,4),Oi("YuvToBgraRow",as,4),Oi("YuvToArgbRow",is,4),Oi("YuvToRgba4444Row",wn,2),Oi("YuvToRgb565Row",Vs,2);var eh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Bl=[0,2,8],Kv=[8,7,6,4,4,2,2,2,1,1,1,1],Yv=1;this.WebPDecodeRGBA=function(O,H,Y,Q,ae){var oe=Ml,le=new _e,ce=new ht;le.ba=ce,ce.S=oe,ce.width=[ce.width],ce.height=[ce.height];var he=ce.width,ge=ce.height,ke=new it;if(ke==null||O==null)var Ie=2;else i(ke!=null),Ie=Nl(O,H,Y,ke.width,ke.height,ke.Pd,ke.Qd,ke.format,null);if(Ie!=0?he=0:(he!=null&&(he[0]=ke.width[0]),ge!=null&&(ge[0]=ke.height[0]),he=1),he){ce.width=ce.width[0],ce.height=ce.height[0],Q!=null&&(Q[0]=ce.width),ae!=null&&(ae[0]=ce.height);e:{if(Q=new lr,(ae=new Ne).data=O,ae.w=H,ae.ha=Y,ae.kd=1,H=[0],i(ae!=null),((O=Nl(ae.data,ae.w,ae.ha,null,null,null,H,null,ae))==0||O==7)&&H[0]&&(O=4),(H=O)==0){if(i(le!=null),Q.data=ae.data,Q.w=ae.w+ae.offset,Q.ha=ae.ha-ae.offset,Q.put=rt,Q.ac=ir,Q.bc=Zt,Q.ma=le,ae.xa){if((O=Dt())==null){le=1;break e}if((function(ve,Ae){var Te=[0],Be=[0],Me=[0];t:for(;;){if(ve==null)return 0;if(Ae==null)return ve.a=2,0;if(ve.l=Ae,ve.a=0,k(ve.m,Ae.data,Ae.w,Ae.ha),!ar(ve.m,Te,Be,Me)){ve.a=3;break t}if(ve.xb=Xd,Ae.width=Te[0],Ae.height=Be[0],!mr(Te[0],Be[0],1,ve,null))break t;return 1}return i(ve.a!=0),0})(O,Q)){if(Q=(H=Po(Q.width,Q.height,le.Oa,le.ba))==0){t:{Q=O;r:for(;;){if(Q==null){Q=0;break t}if(i(Q.s.yc!=null),i(Q.s.Ya!=null),i(0<Q.s.Wb),i((Y=Q.l)!=null),i((ae=Y.ma)!=null),Q.xb!=0){if(Q.ca=ae.ba,Q.tb=ae.tb,i(Q.ca!=null),!fi(ae.Oa,Y,Il)){Q.a=2;break r}if(!fr(Q,Y.width)||Y.da)break r;if((Y.da||ct(Q.ca.S))&&jr(),11>Q.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Q.ca.f.kb.F!=null&&jr()),Q.Pb&&0<Q.s.ua&&Q.s.vb.X==null&&!J(Q.s.vb,Q.s.Wa.Xa)){Q.a=1;break r}Q.xb=0}if(!Rt(Q,Q.V,Q.Ba,Q.c,Q.i,Y.o,ot))break r;ae.Dc=Q.Ma,Q=1;break t}i(Q.a!=0),Q=0}Q=!Q}Q&&(H=O.a)}else H=O.a}else{if((O=new gr)==null){le=1;break e}if(O.Fa=ae.na,O.P=ae.P,O.qc=ae.Sa,Nr(O,Q)){if((H=Po(Q.width,Q.height,le.Oa,le.ba))==0){if(O.Aa=0,Y=le.Oa,i((ae=O)!=null),Y!=null){if(0<(he=0>(he=Y.Md)?0:100<he?255:255*he/100)){for(ge=ke=0;4>ge;++ge)12>(Ie=ae.pb[ge]).lc&&(Ie.ia=he*Kv[0>Ie.lc?0:Ie.lc]>>3),ke|=Ie.ia;ke&&(alert("todo:VP8InitRandom"),ae.ia=1)}ae.Ga=Y.Id,100<ae.Ga?ae.Ga=100:0>ae.Ga&&(ae.Ga=0)}(function(ve,Ae){if(ve==null)return 0;if(Ae==null)return Gt(ve,2,"NULL VP8Io parameter in VP8Decode().");if(!ve.cb&&!Nr(ve,Ae))return 0;if(i(ve.cb),Ae.ac==null||Ae.ac(Ae)){Ae.ob&&(ve.L=0);var Te=Bl[ve.L];if(ve.L==2?(ve.yb=0,ve.zb=0):(ve.yb=Ae.v-Te>>4,ve.zb=Ae.j-Te>>4,0>ve.yb&&(ve.yb=0),0>ve.zb&&(ve.zb=0)),ve.Va=Ae.o+15+Te>>4,ve.Hb=Ae.va+15+Te>>4,ve.Hb>ve.za&&(ve.Hb=ve.za),ve.Va>ve.Ub&&(ve.Va=ve.Ub),0<ve.L){var Be=ve.ed;for(Te=0;4>Te;++Te){var Me;if(ve.Qa.Cb){var je=ve.Qa.Lb[Te];ve.Qa.Fb||(je+=Be.Tb)}else je=Be.Tb;for(Me=0;1>=Me;++Me){var Ue=ve.gd[Te][Me],at=je;if(Be.Pc&&(at+=Be.vd[0],Me&&(at+=Be.od[0])),0<(at=0>at?0:63<at?63:at)){var Je=at;0<Be.wb&&(Je=4<Be.wb?Je>>2:Je>>1)>9-Be.wb&&(Je=9-Be.wb),1>Je&&(Je=1),Ue.dd=Je,Ue.tc=2*at+Je,Ue.ld=40<=at?2:15<=at?1:0}else Ue.tc=0;Ue.La=Me}}}Te=0}else Gt(ve,6,"Frame setup failed"),Te=ve.a;if(Te=Te==0){if(Te){ve.$c=0,0<ve.Aa||(ve.Ic=Yv);t:{Te=ve.Ic,Be=4*(Je=ve.za);var Ot=32*Je,vt=Je+1,tr=0<ve.L?Je*(0<ve.Aa?2:1):0,Et=(ve.Aa==2?2:1)*Je;if((Ue=Be+832+(Me=3*(16*Te+Bl[ve.L])/2*Ot)+(je=ve.Fa!=null&&0<ve.Fa.length?ve.Kc.c*ve.Kc.i:0))!=Ue)Te=0;else{if(Ue>ve.Vb){if(ve.Vb=0,ve.Ec=r(Ue),ve.Fc=0,ve.Ec==null){Te=Gt(ve,1,"no memory during frame initialization.");break t}ve.Vb=Ue}Ue=ve.Ec,at=ve.Fc,ve.Ac=Ue,ve.Bc=at,at+=Be,ve.Gd=o(Ot,Ht),ve.Hd=0,ve.rb=o(vt+1,st),ve.sb=1,ve.wa=tr?o(tr,pt):null,ve.Y=0,ve.D.Nb=0,ve.D.wa=ve.wa,ve.D.Y=ve.Y,0<ve.Aa&&(ve.D.Y+=Je),i(!0),ve.oc=Ue,ve.pc=at,at+=832,ve.ya=o(Et,Jt),ve.aa=0,ve.D.ya=ve.ya,ve.D.aa=ve.aa,ve.Aa==2&&(ve.D.aa+=Je),ve.R=16*Je,ve.B=8*Je,Je=(Ot=Bl[ve.L])*ve.R,Ot=Ot/2*ve.B,ve.sa=Ue,ve.ta=at+Je,ve.qa=ve.sa,ve.ra=ve.ta+16*Te*ve.R+Ot,ve.Ha=ve.qa,ve.Ia=ve.ra+8*Te*ve.B+Ot,ve.$c=0,at+=Me,ve.mb=je?Ue:null,ve.nb=je?at:null,i(at+je<=ve.Fc+ve.Vb),Wn(ve),c(ve.Ac,ve.Bc,0,Be),Te=1}}if(Te){if(Ae.ka=0,Ae.y=ve.sa,Ae.O=ve.ta,Ae.f=ve.qa,Ae.N=ve.ra,Ae.ea=ve.Ha,Ae.Vd=ve.Ia,Ae.fa=ve.R,Ae.Rc=ve.B,Ae.F=null,Ae.J=0,!$d){for(Te=-255;255>=Te;++Te)Dd[255+Te]=0>Te?-Te:Te;for(Te=-1020;1020>=Te;++Te)Vd[1020+Te]=-128>Te?-128:127<Te?127:Te;for(Te=-112;112>=Te;++Te)zd[112+Te]=-16>Te?-16:15<Te?15:Te;for(Te=-255;510>=Te;++Te)Ud[255+Te]=0>Te?0:255<Te?255:Te;$d=1}Aa=zn,ea=li,Ws=bi,xn=ba,Bi=Lr,Na=sr,Er=_l,Tr=Sl,Wr=Cl,an=K,ta=kl,Lo=es,Gs=ie,El=pe,Id=Bs,Rd=No,Ld=js,Od=xl,wi[0]=tc,wi[1]=ui,wi[2]=xa,wi[3]=ec,wi[4]=rc,wi[5]=Ki,wi[6]=nc,wi[7]=Yi,wi[8]=ac,wi[9]=ic,Ea[0]=ya,Ea[1]=Ii,Ea[2]=ci,Ea[3]=Ls,Ea[4]=Kn,Ea[5]=wa,Ea[6]=Ri,ra[0]=sc,ra[1]=Mi,ra[2]=Os,ra[3]=So,ra[4]=oc,ra[5]=Fs,ra[6]=ko,Te=1}else Te=0}Te&&(Te=(function(dr,sn){for(dr.M=0;dr.M<dr.Va;++dr.M){var rr,Tt=dr.Jc[dr.M&dr.Xb],ft=dr.m,Gr=dr;for(rr=0;rr<Gr.za;++rr){var Yt=ft,pr=Gr,Ir=pr.Ac,hn=pr.Bc+4*rr,Ln=pr.zc,zr=pr.ya[pr.aa+rr];if(pr.Qa.Bb?zr.$b=G(Yt,pr.Pa.jb[0])?2+G(Yt,pr.Pa.jb[2]):G(Yt,pr.Pa.jb[1]):zr.$b=0,pr.kc&&(zr.Ad=G(Yt,pr.Bd)),zr.Za=!G(Yt,145)+0,zr.Za){var _n=zr.Ob,On=0;for(pr=0;4>pr;++pr){var on,vr=Ln[0+pr];for(on=0;4>on;++on){vr=Ov[Ir[hn+on]][vr];for(var yr=Gd[G(Yt,vr[0])];0<yr;)yr=Gd[2*yr+G(Yt,vr[yr])];vr=-yr,Ir[hn+on]=vr}s(_n,On,Ir,hn,4),On+=4,Ln[0+pr]=vr}}else vr=G(Yt,156)?G(Yt,128)?1:3:G(Yt,163)?2:0,zr.Ob[0]=vr,c(Ir,hn,vr,4),c(Ln,0,vr,4);zr.Dd=G(Yt,142)?G(Yt,114)?G(Yt,183)?1:3:2:0}if(Gr.m.Ka)return Gt(dr,7,"Premature end-of-partition0 encountered.");for(;dr.ja<dr.za;++dr.ja){if(Gr=Tt,Yt=(ft=dr).rb[ft.sb-1],Ir=ft.rb[ft.sb+ft.ja],rr=ft.ya[ft.aa+ft.ja],hn=ft.kc?rr.Ad:0)Yt.la=Ir.la=0,rr.Za||(Yt.Na=Ir.Na=0),rr.Hc=0,rr.Gc=0,rr.ia=0;else{var Ur,wr;if(Yt=Ir,Ir=Gr,hn=ft.Pa.Xc,Ln=ft.ya[ft.aa+ft.ja],zr=ft.pb[Ln.$b],pr=Ln.ad,_n=0,On=ft.rb[ft.sb-1],vr=on=0,c(pr,_n,0,384),Ln.Za)var pn=0,xi=hn[3];else{yr=r(16);var Xr=Yt.Na+On.Na;if(Xr=Fo(Ir,hn[1],Xr,zr.Eb,0,yr,0),Yt.Na=On.Na=(0<Xr)+0,1<Xr)Aa(yr,0,pr,_n);else{var $n=yr[0]+3>>3;for(yr=0;256>yr;yr+=16)pr[_n+yr]=$n}pn=1,xi=hn[0]}var Sr=15&Yt.la,ln=15&On.la;for(yr=0;4>yr;++yr){var Zn=1&ln;for($n=wr=0;4>$n;++$n)Sr=Sr>>1|(Zn=(Xr=Fo(Ir,xi,Xr=Zn+(1&Sr),zr.Sc,pn,pr,_n))>pn)<<7,wr=wr<<2|(3<Xr?3:1<Xr?2:pr[_n+0]!=0),_n+=16;Sr>>=4,ln=ln>>1|Zn<<7,on=(on<<8|wr)>>>0}for(xi=Sr,pn=ln>>4,Ur=0;4>Ur;Ur+=2){for(wr=0,Sr=Yt.la>>4+Ur,ln=On.la>>4+Ur,yr=0;2>yr;++yr){for(Zn=1&ln,$n=0;2>$n;++$n)Xr=Zn+(1&Sr),Sr=Sr>>1|(Zn=0<(Xr=Fo(Ir,hn[2],Xr,zr.Qc,0,pr,_n)))<<3,wr=wr<<2|(3<Xr?3:1<Xr?2:pr[_n+0]!=0),_n+=16;Sr>>=2,ln=ln>>1|Zn<<5}vr|=wr<<4*Ur,xi|=Sr<<4<<Ur,pn|=(240&ln)<<Ur}Yt.la=xi,On.la=pn,Ln.Hc=on,Ln.Gc=vr,Ln.ia=43690&vr?0:zr.ia,hn=!(on|vr)}if(0<ft.L&&(ft.wa[ft.Y+ft.ja]=ft.gd[rr.$b][rr.Za],ft.wa[ft.Y+ft.ja].La|=!hn),Gr.Ka)return Gt(dr,7,"Premature end-of-file encountered.")}if(Wn(dr),ft=sn,Gr=1,rr=(Tt=dr).D,Yt=0<Tt.L&&Tt.M>=Tt.zb&&Tt.M<=Tt.Va,Tt.Aa==0)t:{if(rr.M=Tt.M,rr.uc=Yt,zs(Tt,rr),Gr=1,rr=(wr=Tt.D).Nb,Yt=(vr=Bl[Tt.L])*Tt.R,Ir=vr/2*Tt.B,yr=16*rr*Tt.R,$n=8*rr*Tt.B,hn=Tt.sa,Ln=Tt.ta-Yt+yr,zr=Tt.qa,pr=Tt.ra-Ir+$n,_n=Tt.Ha,On=Tt.Ia-Ir+$n,ln=(Sr=wr.M)==0,on=Sr>=Tt.Va-1,Tt.Aa==2&&zs(Tt,wr),wr.uc)for(Zn=(Xr=Tt).D.M,i(Xr.D.uc),wr=Xr.yb;wr<Xr.Hb;++wr){pn=wr,xi=Zn;var Fn=(Jn=(mn=Xr).D).Nb;Ur=mn.R;var Jn=Jn.wa[Jn.Y+pn],Qn=mn.sa,qn=mn.ta+16*Fn*Ur+16*pn,ei=Jn.dd,Pr=Jn.tc;if(Pr!=0)if(i(3<=Pr),mn.L==1)0<pn&&Rd(Qn,qn,Ur,Pr+4),Jn.La&&Od(Qn,qn,Ur,Pr),0<xi&&Id(Qn,qn,Ur,Pr+4),Jn.La&&Ld(Qn,qn,Ur,Pr);else{var ti=mn.B,_i=mn.qa,ds=mn.ra+8*Fn*ti+8*pn,na=mn.Ha,mn=mn.Ia+8*Fn*ti+8*pn;Fn=Jn.ld,0<pn&&(Tr(Qn,qn,Ur,Pr+4,ei,Fn),an(_i,ds,na,mn,ti,Pr+4,ei,Fn)),Jn.La&&(Lo(Qn,qn,Ur,Pr,ei,Fn),El(_i,ds,na,mn,ti,Pr,ei,Fn)),0<xi&&(Er(Qn,qn,Ur,Pr+4,ei,Fn),Wr(_i,ds,na,mn,ti,Pr+4,ei,Fn)),Jn.La&&(ta(Qn,qn,Ur,Pr,ei,Fn),Gs(_i,ds,na,mn,ti,Pr,ei,Fn))}}if(Tt.ia&&alert("todo:DitherRow"),ft.put!=null){if(wr=16*Sr,Sr=16*(Sr+1),ln?(ft.y=Tt.sa,ft.O=Tt.ta+yr,ft.f=Tt.qa,ft.N=Tt.ra+$n,ft.ea=Tt.Ha,ft.W=Tt.Ia+$n):(wr-=vr,ft.y=hn,ft.O=Ln,ft.f=zr,ft.N=pr,ft.ea=_n,ft.W=On),on||(Sr-=vr),Sr>ft.o&&(Sr=ft.o),ft.F=null,ft.J=null,Tt.Fa!=null&&0<Tt.Fa.length&&wr<Sr&&(ft.J=en(Tt,ft,wr,Sr-wr),ft.F=Tt.mb,ft.F==null&&ft.F.length==0)){Gr=Gt(Tt,3,"Could not decode alpha data.");break t}wr<ft.j&&(vr=ft.j-wr,wr=ft.j,i(!(1&vr)),ft.O+=Tt.R*vr,ft.N+=Tt.B*(vr>>1),ft.W+=Tt.B*(vr>>1),ft.F!=null&&(ft.J+=ft.width*vr)),wr<Sr&&(ft.O+=ft.v,ft.N+=ft.v>>1,ft.W+=ft.v>>1,ft.F!=null&&(ft.J+=ft.v),ft.ka=wr-ft.j,ft.U=ft.va-ft.v,ft.T=Sr-wr,Gr=ft.put(ft))}rr+1!=Tt.Ic||on||(s(Tt.sa,Tt.ta-Yt,hn,Ln+16*Tt.R,Yt),s(Tt.qa,Tt.ra-Ir,zr,pr+8*Tt.B,Ir),s(Tt.Ha,Tt.Ia-Ir,_n,On+8*Tt.B,Ir))}if(!Gr)return Gt(dr,6,"Output aborted.")}return 1})(ve,Ae)),Ae.bc!=null&&Ae.bc(Ae),Te&=1}return Te?(ve.cb=0,Te):0})(O,Q)||(H=O.a)}}else H=O.a}H==0&&le.Oa!=null&&le.Oa.fd&&(H=ss(le.ba))}le=H}oe=le!=0?null:11>oe?ce.f.RGBA.eb:ce.f.kb.y}else oe=null;return oe};var th=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function n(F,$){for(var z="",D=0;D<4;D++)z+=String.fromCharCode(F[$++]);return z}function u(F,$){return F[$+0]|F[$+1]<<8}function h(F,$){return(F[$+0]|F[$+1]<<8|F[$+2]<<16)>>>0}function d(F,$){return(F[$+0]|F[$+1]<<8|F[$+2]<<16|F[$+3]<<24)>>>0}new a;var f=[0],m=[0],g=[],p=new a,v=t,b=(function(F,$){var z={},D=0,N=!1,E=0,C=0;if(z.frames=[],!(function(P,U){for(var q=0;q<4;q++)if(P[U+q]!="RIFF".charCodeAt(q))return!0;return!1})(F,$)){for(d(F,$+=4),$+=8;$<F.length;){var w=n(F,$),S=d(F,$+=4);$+=4;var _=S+(1&S);switch(w){case"VP8 ":case"VP8L":z.frames[D]===void 0&&(z.frames[D]={}),(j=z.frames[D]).src_off=N?C:$-8,j.src_size=E+S+8,D++,N&&(N=!1,E=0,C=0);break;case"VP8X":(j=z.header={}).feature_flags=F[$];var k=$+4;j.canvas_width=1+h(F,k),k+=3,j.canvas_height=1+h(F,k),k+=3;break;case"ALPH":N=!0,E=_+8,C=$-8;break;case"ANIM":(j=z.header).bgcolor=d(F,$),k=$+4,j.loop_count=u(F,k),k+=2;break;case"ANMF":var T,j;(j=z.frames[D]={}).offset_x=2*h(F,$),$+=3,j.offset_y=2*h(F,$),$+=3,j.width=1+h(F,$),$+=3,j.height=1+h(F,$),$+=3,j.duration=h(F,$),$+=3,T=F[$++],j.dispose=1&T,j.blend=T>>1&1}w!="ANMF"&&($+=_)}return z}})(v,0);b.response=v,b.rgbaoutput=!0,b.dataurl=!1;var x=b.header?b.header:null,A=b.frames?b.frames:null;if(x){x.loop_counter=x.loop_count,f=[x.canvas_height],m=[x.canvas_width];for(var M=0;M<A.length&&A[M].blend!=0;M++);}var V=A[0],W=p.WebPDecodeRGBA(v,V.src_off,V.src_size,m,f);V.rgba=W,V.imgwidth=m[0],V.imgheight=f[0];for(var R=0;R<m[0]*f[0]*4;R++)g[R]=W[R];return this.width=m,this.height=f,this.data=g,this}function _w(){var t,i=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(i));t=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function Sw(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var i,e,s,c,r,o,l,a,n,u=function(P){return P=P||{},this.isStrokeTransparent=P.isStrokeTransparent||!1,this.strokeOpacity=P.strokeOpacity||1,this.strokeStyle=P.strokeStyle||"#000000",this.fillStyle=P.fillStyle||"#000000",this.isFillTransparent=P.isFillTransparent||!1,this.fillOpacity=P.fillOpacity||1,this.font=P.font||"10px sans-serif",this.textBaseline=P.textBaseline||"alphabetic",this.textAlign=P.textAlign||"left",this.lineWidth=P.lineWidth||1,this.lineJoin=P.lineJoin||"miter",this.lineCap=P.lineCap||"butt",this.path=P.path||[],this.transform=P.transform!==void 0?P.transform.clone():new a,this.globalCompositeOperation=P.globalCompositeOperation||"normal",this.globalAlpha=P.globalAlpha||1,this.clip_path=P.clip_path||[],this.currentPoint=P.currentPoint||new o,this.miterLimit=P.miterLimit||10,this.lastPoint=P.lastPoint||new o,this.lineDashOffset=P.lineDashOffset||0,this.lineDash=P.lineDash||[],this.margin=P.margin||[0,0,0,0],this.prevPageLastElemOffset=P.prevPageLastElemOffset||0,this.ignoreClearRect=typeof P.ignoreClearRect!="boolean"||P.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new h(this),i=this.internal.f2,e=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,c=this.internal.getHorizontalCoordinate,r=this.internal.getVerticalCoordinate,o=this.internal.Point,l=this.internal.Rectangle,a=this.internal.Matrix,n=new u}]);var h=function(P){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var U=P;Object.defineProperty(this,"pdf",{get:function(){return U}});var q=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return q},set:function(J){q=!!J}});var Z=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Z},set:function(J){Z=!!J}});var B=0;Object.defineProperty(this,"posX",{get:function(){return B},set:function(J){isNaN(J)||(B=J)}});var X=0;Object.defineProperty(this,"posY",{get:function(){return X},set:function(J){isNaN(J)||(X=J)}}),Object.defineProperty(this,"margin",{get:function(){return n.margin},set:function(J){var de;typeof J=="number"?de=[J,J,J,J]:((de=new Array(4))[0]=J[0],de[1]=J.length>=2?J[1]:de[0],de[2]=J.length>=3?J[2]:de[0],de[3]=J.length>=4?J[3]:de[1]),n.margin=de}});var L=!1;Object.defineProperty(this,"autoPaging",{get:function(){return L},set:function(J){L=J}});var I=0;Object.defineProperty(this,"lastBreak",{get:function(){return I},set:function(J){I=J}});var G=[];Object.defineProperty(this,"pageBreaks",{get:function(){return G},set:function(J){G=J}}),Object.defineProperty(this,"ctx",{get:function(){return n},set:function(J){J instanceof u&&(n=J)}}),Object.defineProperty(this,"path",{get:function(){return n.path},set:function(J){n.path=J}});var ee=[];Object.defineProperty(this,"ctxStack",{get:function(){return ee},set:function(J){ee=J}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(J){var de;de=d(J),this.ctx.fillStyle=de.style,this.ctx.isFillTransparent=de.a===0,this.ctx.fillOpacity=de.a,this.pdf.setFillColor(de.r,de.g,de.b,{a:de.a}),this.pdf.setTextColor(de.r,de.g,de.b,{a:de.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(J){var de=d(J);this.ctx.strokeStyle=de.style,this.ctx.isStrokeTransparent=de.a===0,this.ctx.strokeOpacity=de.a,de.a===0?this.pdf.setDrawColor(255,255,255):(de.a,this.pdf.setDrawColor(de.r,de.g,de.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(J){["butt","round","square"].indexOf(J)!==-1&&(this.ctx.lineCap=J,this.pdf.setLineCap(J))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(J){isNaN(J)||(this.ctx.lineWidth=J,this.pdf.setLineWidth(J))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(J){["bevel","round","miter"].indexOf(J)!==-1&&(this.ctx.lineJoin=J,this.pdf.setLineJoin(J))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(J){isNaN(J)||(this.ctx.miterLimit=J,this.pdf.setMiterLimit(J))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(J){this.ctx.textBaseline=J}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(J){["right","end","center","left","start"].indexOf(J)!==-1&&(this.ctx.textAlign=J)}});var se=null,te=null,re=null;Object.defineProperty(this,"fontFaces",{get:function(){return re},set:function(J){se=null,te=null,re=J}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(J){var de;if(this.ctx.font=J,(de=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(J))!==null){var ne=de[1];de[2];var fe=de[3],ue=de[4];de[5];var ye=de[6],be=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ue)[2];ue=Math.floor(be==="px"?parseFloat(ue)*this.pdf.internal.scaleFactor:be==="em"?parseFloat(ue)*this.pdf.getFontSize():parseFloat(ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ue);var we=(function(We){var dt,Ke,Oe=[],Xe=We.trim();if(Xe==="")return Zc;if(Xe in Gp)return[Gp[Xe]];for(;Xe!=="";){switch(Ke=null,dt=(Xe=Kp(Xe)).charAt(0)){case'"':case"'":Ke=gw(Xe.substring(1),dt);break;default:Ke=vw(Xe)}if(Ke===null||(Oe.push(Ke[0]),(Xe=Kp(Ke[1]))!==""&&Xe.charAt(0)!==","))return Zc;Xe=Xe.replace(/^,/,"")}return Oe})(ye);if(this.fontFaces){var Se=(function(We,dt){var Ke=We.getFontList(),Oe=JSON.stringify(Ke);if(se===null||te!==Oe){var Xe=(function(ut){var ze=[];return Object.keys(ut).forEach(function(bt){ut[bt].forEach(function(ct){var nt=null;switch(ct){case"bold":nt={family:bt,weight:"bold"};break;case"italic":nt={family:bt,style:"italic"};break;case"bolditalic":nt={family:bt,weight:"bold",style:"italic"};break;case"":case"normal":nt={family:bt}}nt!==null&&(nt.ref={name:bt,style:ct},ze.push(nt))})}),ze})(Ke);se=(function(ut){for(var ze={},bt=0;bt<ut.length;++bt){var ct=Yc(ut[bt]),nt=ct.family,Mt=ct.stretch,ht=ct.style,it=ct.weight;ze[nt]=ze[nt]||{},ze[nt][Mt]=ze[nt][Mt]||{},ze[nt][Mt][ht]=ze[nt][Mt][ht]||{},ze[nt][Mt][ht][it]=ct}return ze})(Xe.concat(dt)),te=Oe}return se})(this.pdf,this.fontFaces),Pe=we.map(function(We){return{family:We,stretch:"normal",weight:fe,style:ne}}),Le=(function(We,dt,Ke){for(var Oe=(Ke=Ke||{}).defaultFontFamily||"times",Xe=Object.assign({},mw,Ke.genericFontFamilies||{}),ut=null,ze=null,bt=0;bt<dt.length;++bt)if(Xe[(ut=Yc(dt[bt])).family]&&(ut.family=Xe[ut.family]),We.hasOwnProperty(ut.family)){ze=We[ut.family];break}if(!(ze=ze||We[Oe]))throw new Error("Could not find a font-family for the rule '"+Xp(ut)+"' and default family '"+Oe+"'.");if(ze=(function(ct,nt){if(nt[ct])return nt[ct];var Mt=Of[ct],ht=Mt<=Of.normal?-1:1,it=Wp(nt,o1,Mt,ht);if(!it)throw new Error("Could not find a matching font-stretch value for "+ct);return it})(ut.stretch,ze),ze=(function(ct,nt){if(nt[ct])return nt[ct];for(var Mt=s1[ct],ht=0;ht<Mt.length;++ht)if(nt[Mt[ht]])return nt[Mt[ht]];throw new Error("Could not find a matching font-style for "+ct)})(ut.style,ze),!(ze=(function(ct,nt){if(nt[ct])return nt[ct];if(ct===400&&nt[500])return nt[500];if(ct===500&&nt[400])return nt[400];var Mt=pw[ct],ht=Wp(nt,l1,Mt,ct<400?-1:1);if(!ht)throw new Error("Could not find a matching font-weight for value "+ct);return ht})(ut.weight,ze)))throw new Error("Failed to resolve a font for the rule '"+Xp(ut)+"'.");return ze})(Se,Pe);this.pdf.setFont(Le.ref.name,Le.ref.style)}else{var De="";(fe==="bold"||parseInt(fe,10)>=700||ne==="bold")&&(De="bold"),ne==="italic"&&(De+="italic"),De.length===0&&(De="normal");for(var Ge="",Ve={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},qe=0;qe<we.length;qe++){if(this.pdf.internal.getFont(we[qe],De,{noFallback:!0,disableWarning:!0})!==void 0){Ge=we[qe];break}if(De==="bolditalic"&&this.pdf.internal.getFont(we[qe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ge=we[qe],De="bold";else if(this.pdf.internal.getFont(we[qe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ge=we[qe],De="normal";break}}if(Ge===""){for(var et=0;et<we.length;et++)if(Ve[we[et]]){Ge=Ve[we[et]];break}}Ge=Ge===""?"Times":Ge,this.pdf.setFont(Ge,De)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(J){this.ctx.globalCompositeOperation=J}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(J){this.ctx.globalAlpha=J}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(J){this.ctx.lineDashOffset=J,j.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(J){this.ctx.lineDash=J,j.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(J){this.ctx.ignoreClearRect=!!J}})};h.prototype.setLineDash=function(P){this.lineDash=P},h.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},h.prototype.fill=function(){A.call(this,"fill",!1)},h.prototype.stroke=function(){A.call(this,"stroke",!1)},h.prototype.beginPath=function(){this.path=[{type:"begin"}]},h.prototype.moveTo=function(P,U){if(isNaN(P)||isNaN(U))throw kr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var q=this.ctx.transform.applyToPoint(new o(P,U));this.path.push({type:"mt",x:q.x,y:q.y}),this.ctx.lastPoint=new o(P,U)},h.prototype.closePath=function(){var P=new o(0,0),U=0;for(U=this.path.length-1;U!==-1;U--)if(this.path[U].type==="begin"&&br(this.path[U+1])==="object"&&typeof this.path[U+1].x=="number"){P=new o(this.path[U+1].x,this.path[U+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(P.x,P.y)},h.prototype.lineTo=function(P,U){if(isNaN(P)||isNaN(U))throw kr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var q=this.ctx.transform.applyToPoint(new o(P,U));this.path.push({type:"lt",x:q.x,y:q.y}),this.ctx.lastPoint=new o(q.x,q.y)},h.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),A.call(this,null,!0)},h.prototype.quadraticCurveTo=function(P,U,q,Z){if(isNaN(q)||isNaN(Z)||isNaN(P)||isNaN(U))throw kr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var B=this.ctx.transform.applyToPoint(new o(q,Z)),X=this.ctx.transform.applyToPoint(new o(P,U));this.path.push({type:"qct",x1:X.x,y1:X.y,x:B.x,y:B.y}),this.ctx.lastPoint=new o(B.x,B.y)},h.prototype.bezierCurveTo=function(P,U,q,Z,B,X){if(isNaN(B)||isNaN(X)||isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z))throw kr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var L=this.ctx.transform.applyToPoint(new o(B,X)),I=this.ctx.transform.applyToPoint(new o(P,U)),G=this.ctx.transform.applyToPoint(new o(q,Z));this.path.push({type:"bct",x1:I.x,y1:I.y,x2:G.x,y2:G.y,x:L.x,y:L.y}),this.ctx.lastPoint=new o(L.x,L.y)},h.prototype.arc=function(P,U,q,Z,B,X){if(isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z)||isNaN(B))throw kr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(X=!!X,!this.ctx.transform.isIdentity){var L=this.ctx.transform.applyToPoint(new o(P,U));P=L.x,U=L.y;var I=this.ctx.transform.applyToPoint(new o(0,q)),G=this.ctx.transform.applyToPoint(new o(0,0));q=Math.sqrt(Math.pow(I.x-G.x,2)+Math.pow(I.y-G.y,2))}Math.abs(B-Z)>=2*Math.PI&&(Z=0,B=2*Math.PI),this.path.push({type:"arc",x:P,y:U,radius:q,startAngle:Z,endAngle:B,counterclockwise:X})},h.prototype.arcTo=function(P,U,q,Z,B){throw new Error("arcTo not implemented.")},h.prototype.rect=function(P,U,q,Z){if(isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z))throw kr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(P,U),this.lineTo(P+q,U),this.lineTo(P+q,U+Z),this.lineTo(P,U+Z),this.lineTo(P,U),this.lineTo(P+q,U),this.lineTo(P,U)},h.prototype.fillRect=function(P,U,q,Z){if(isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z))throw kr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var B={};this.lineCap!=="butt"&&(B.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(B.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(P,U,q,Z),this.fill(),B.hasOwnProperty("lineCap")&&(this.lineCap=B.lineCap),B.hasOwnProperty("lineJoin")&&(this.lineJoin=B.lineJoin)}},h.prototype.strokeRect=function(P,U,q,Z){if(isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z))throw kr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(P,U,q,Z),this.stroke())},h.prototype.clearRect=function(P,U,q,Z){if(isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z))throw kr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(P,U,q,Z))},h.prototype.save=function(P){P=typeof P!="boolean"||P;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("q");if(this.pdf.setPage(U),P){this.ctx.fontSize=this.pdf.internal.getFontSize();var Z=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Z}},h.prototype.restore=function(P){P=typeof P!="boolean"||P;for(var U=this.pdf.internal.getCurrentPageInfo().pageNumber,q=0;q<this.pdf.internal.getNumberOfPages();q++)this.pdf.setPage(q+1),this.pdf.internal.out("Q");this.pdf.setPage(U),P&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},h.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(P){var U,q,Z,B;if(P.isCanvasGradient===!0&&(P=P.getColor()),!P)return{r:0,g:0,b:0,a:0,style:P};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(P))U=0,q=0,Z=0,B=0;else{var X=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(P);if(X!==null)U=parseInt(X[1]),q=parseInt(X[2]),Z=parseInt(X[3]),B=1;else if((X=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(P))!==null)U=parseInt(X[1]),q=parseInt(X[2]),Z=parseInt(X[3]),B=parseFloat(X[4]);else{if(B=1,typeof P=="string"&&P.charAt(0)!=="#"){var L=new Q0(P);P=L.ok?L.toHex():"#000000"}P.length===4?(U=P.substring(1,2),U+=U,q=P.substring(2,3),q+=q,Z=P.substring(3,4),Z+=Z):(U=P.substring(1,3),q=P.substring(3,5),Z=P.substring(5,7)),U=parseInt(U,16),q=parseInt(q,16),Z=parseInt(Z,16)}}return{r:U,g:q,b:Z,a:B,style:P}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};h.prototype.fillText=function(P,U,q,Z){if(isNaN(U)||isNaN(q)||typeof P!="string")throw kr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Z=isNaN(Z)?void 0:Z,!f.call(this)){var B=_(this.ctx.transform.rotation),X=this.ctx.transform.scaleX;D.call(this,{text:P,x:U,y:q,scale:X,angle:B,align:this.textAlign,maxWidth:Z})}},h.prototype.strokeText=function(P,U,q,Z){if(isNaN(U)||isNaN(q)||typeof P!="string")throw kr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){Z=isNaN(Z)?void 0:Z;var B=_(this.ctx.transform.rotation),X=this.ctx.transform.scaleX;D.call(this,{text:P,x:U,y:q,scale:X,renderingMode:"stroke",angle:B,align:this.textAlign,maxWidth:Z})}},h.prototype.measureText=function(P){if(typeof P!="string")throw kr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var U=this.pdf,q=this.pdf.internal.scaleFactor,Z=U.internal.getFontSize(),B=U.getStringUnitWidth(P)*Z/U.internal.scaleFactor;return new function(X){var L=(X=X||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return L}}),this}({width:B*=Math.round(96*q/72*1e4)/1e4})},h.prototype.scale=function(P,U){if(isNaN(P)||isNaN(U))throw kr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var q=new a(P,0,0,U,0,0);this.ctx.transform=this.ctx.transform.multiply(q)},h.prototype.rotate=function(P){if(isNaN(P))throw kr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var U=new a(Math.cos(P),Math.sin(P),-Math.sin(P),Math.cos(P),0,0);this.ctx.transform=this.ctx.transform.multiply(U)},h.prototype.translate=function(P,U){if(isNaN(P)||isNaN(U))throw kr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var q=new a(1,0,0,1,P,U);this.ctx.transform=this.ctx.transform.multiply(q)},h.prototype.transform=function(P,U,q,Z,B,X){if(isNaN(P)||isNaN(U)||isNaN(q)||isNaN(Z)||isNaN(B)||isNaN(X))throw kr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var L=new a(P,U,q,Z,B,X);this.ctx.transform=this.ctx.transform.multiply(L)},h.prototype.setTransform=function(P,U,q,Z,B,X){P=isNaN(P)?1:P,U=isNaN(U)?0:U,q=isNaN(q)?0:q,Z=isNaN(Z)?1:Z,B=isNaN(B)?0:B,X=isNaN(X)?0:X,this.ctx.transform=new a(P,U,q,Z,B,X)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};h.prototype.drawImage=function(P,U,q,Z,B,X,L,I,G){var ee=this.pdf.getImageProperties(P),se=1,te=1,re=1,J=1;Z!==void 0&&I!==void 0&&(re=I/Z,J=G/B,se=ee.width/Z*I/Z,te=ee.height/B*G/B),X===void 0&&(X=U,L=q,U=0,q=0),Z!==void 0&&I===void 0&&(I=Z,G=B),Z===void 0&&I===void 0&&(I=ee.width,G=ee.height);var de=this.ctx.transform.decompose(),ne=_(de.rotate.shx),fe=new a,ue=(fe=(fe=(fe=fe.multiply(de.translate)).multiply(de.skew)).multiply(de.scale)).applyToRectangle(new l(X-U*re,L-q*J,Z*se,B*te));if(this.autoPaging){for(var ye,be=p.call(this,ue),we=[],Se=0;Se<be.length;Se+=1)we.indexOf(be[Se])===-1&&we.push(be[Se]);x(we);for(var Pe=we[0],Le=we[we.length-1],De=Pe;De<Le+1;De++){this.pdf.setPage(De);var Ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ve=De===1?this.posY+this.margin[0]:this.margin[0],qe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],et=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],We=De===1?0:qe+(De-2)*et;if(this.ctx.clip_path.length!==0){var dt=this.path;ye=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(ye,this.posX+this.margin[3],-We+Ve+this.ctx.prevPageLastElemOffset),M.call(this,"fill",!0),this.path=dt}var Ke=JSON.parse(JSON.stringify(ue));Ke=b([Ke],this.posX+this.margin[3],-We+Ve+this.ctx.prevPageLastElemOffset)[0];var Oe=(De>Pe||De<Le)&&g.call(this);Oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,et,null).clip().discardPath()),this.pdf.addImage(P,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,ne),Oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(P,"JPEG",ue.x,ue.y,ue.w,ue.h,null,null,ne)};var p=function(P,U,q){var Z=[];U=U||this.pdf.internal.pageSize.width,q=q||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var B=this.posY+this.ctx.prevPageLastElemOffset;switch(P.type){default:case"mt":case"lt":Z.push(Math.floor((P.y+B)/q)+1);break;case"arc":Z.push(Math.floor((P.y+B-P.radius)/q)+1),Z.push(Math.floor((P.y+B+P.radius)/q)+1);break;case"qct":var X=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x,P.y);Z.push(Math.floor((X.y+B)/q)+1),Z.push(Math.floor((X.y+X.h+B)/q)+1);break;case"bct":var L=T(this.ctx.lastPoint.x,this.ctx.lastPoint.y,P.x1,P.y1,P.x2,P.y2,P.x,P.y);Z.push(Math.floor((L.y+B)/q)+1),Z.push(Math.floor((L.y+L.h+B)/q)+1);break;case"rect":Z.push(Math.floor((P.y+B)/q)+1),Z.push(Math.floor((P.y+P.h+B)/q)+1)}for(var I=0;I<Z.length;I+=1)for(;this.pdf.internal.getNumberOfPages()<Z[I];)v.call(this);return Z},v=function(){var P=this.fillStyle,U=this.strokeStyle,q=this.font,Z=this.lineCap,B=this.lineWidth,X=this.lineJoin;this.pdf.addPage(),this.fillStyle=P,this.strokeStyle=U,this.font=q,this.lineCap=Z,this.lineWidth=B,this.lineJoin=X},b=function(P,U,q){for(var Z=0;Z<P.length;Z++)switch(P[Z].type){case"bct":P[Z].x2+=U,P[Z].y2+=q;case"qct":P[Z].x1+=U,P[Z].y1+=q;default:P[Z].x+=U,P[Z].y+=q}return P},x=function(P){return P.sort(function(U,q){return U-q})},A=function(P,U){var q=this.fillStyle,Z=this.strokeStyle,B=this.lineCap,X=this.lineWidth,L=Math.abs(X*this.ctx.transform.scaleX),I=this.lineJoin;if(this.autoPaging){for(var G,ee,se=JSON.parse(JSON.stringify(this.path)),te=JSON.parse(JSON.stringify(this.path)),re=[],J=0;J<te.length;J++)if(te[J].x!==void 0)for(var de=p.call(this,te[J]),ne=0;ne<de.length;ne+=1)re.indexOf(de[ne])===-1&&re.push(de[ne]);for(var fe=0;fe<re.length;fe++)for(;this.pdf.internal.getNumberOfPages()<re[fe];)v.call(this);x(re);for(var ue=re[0],ye=re[re.length-1],be=ue;be<ye+1;be++){this.pdf.setPage(be),this.fillStyle=q,this.strokeStyle=Z,this.lineCap=B,this.lineWidth=L,this.lineJoin=I;var we=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Se=be===1?this.posY+this.margin[0]:this.margin[0],Pe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Le=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],De=be===1?0:Pe+(be-2)*Le;if(this.ctx.clip_path.length!==0){var Ge=this.path;G=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(G,this.posX+this.margin[3],-De+Se+this.ctx.prevPageLastElemOffset),M.call(this,P,!0),this.path=Ge}if(ee=JSON.parse(JSON.stringify(se)),this.path=b(ee,this.posX+this.margin[3],-De+Se+this.ctx.prevPageLastElemOffset),U===!1||be===0){var Ve=(be>ue||be<ye)&&g.call(this);Ve&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],we,Le,null).clip().discardPath()),M.call(this,P,U),Ve&&this.pdf.restoreGraphicsState()}this.lineWidth=X}this.path=se}else this.lineWidth=L,M.call(this,P,U),this.lineWidth=X},M=function(P,U){if((P!=="stroke"||U||!m.call(this))&&(P==="stroke"||U||!f.call(this))){for(var q,Z,B=[],X=this.path,L=0;L<X.length;L++){var I=X[L];switch(I.type){case"begin":B.push({begin:!0});break;case"close":B.push({close:!0});break;case"mt":B.push({start:I,deltas:[],abs:[]});break;case"lt":var G=B.length;if(X[L-1]&&!isNaN(X[L-1].x)&&(q=[I.x-X[L-1].x,I.y-X[L-1].y],G>0)){for(;G>=0;G--)if(B[G-1].close!==!0&&B[G-1].begin!==!0){B[G-1].deltas.push(q),B[G-1].abs.push(I);break}}break;case"bct":q=[I.x1-X[L-1].x,I.y1-X[L-1].y,I.x2-X[L-1].x,I.y2-X[L-1].y,I.x-X[L-1].x,I.y-X[L-1].y],B[B.length-1].deltas.push(q);break;case"qct":var ee=X[L-1].x+2/3*(I.x1-X[L-1].x),se=X[L-1].y+2/3*(I.y1-X[L-1].y),te=I.x+2/3*(I.x1-I.x),re=I.y+2/3*(I.y1-I.y),J=I.x,de=I.y;q=[ee-X[L-1].x,se-X[L-1].y,te-X[L-1].x,re-X[L-1].y,J-X[L-1].x,de-X[L-1].y],B[B.length-1].deltas.push(q);break;case"arc":B.push({deltas:[],abs:[],arc:!0}),Array.isArray(B[B.length-1].abs)&&B[B.length-1].abs.push(I)}}Z=U?null:P==="stroke"?"stroke":"fill";for(var ne=!1,fe=0;fe<B.length;fe++)if(B[fe].arc)for(var ue=B[fe].abs,ye=0;ye<ue.length;ye++){var be=ue[ye];be.type==="arc"?R.call(this,be.x,be.y,be.radius,be.startAngle,be.endAngle,be.counterclockwise,void 0,U,!ne):N.call(this,be.x,be.y),ne=!0}else if(B[fe].close===!0)this.pdf.internal.out("h"),ne=!1;else if(B[fe].begin!==!0){var we=B[fe].start.x,Se=B[fe].start.y;E.call(this,B[fe].deltas,we,Se),ne=!0}Z&&F.call(this,Z),U&&$.call(this)}},V=function(P){var U=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,q=U*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return P-q;case"top":return P+U-q;case"hanging":return P+U-2*q;case"middle":return P+U/2-q;default:return P}},W=function(P){return P+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};h.prototype.createLinearGradient=function(){var P=function(){};return P.colorStops=[],P.addColorStop=function(U,q){this.colorStops.push([U,q])},P.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},P.isCanvasGradient=!0,P},h.prototype.createPattern=function(){return this.createLinearGradient()},h.prototype.createRadialGradient=function(){return this.createLinearGradient()};var R=function(P,U,q,Z,B,X,L,I,G){for(var ee=w.call(this,q,Z,B,X),se=0;se<ee.length;se++){var te=ee[se];se===0&&(G?z.call(this,te.x1+P,te.y1+U):N.call(this,te.x1+P,te.y1+U)),C.call(this,P,U,te.x2,te.y2,te.x3,te.y3,te.x4,te.y4)}I?$.call(this):F.call(this,L)},F=function(P){switch(P){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},$=function(){this.pdf.clip(),this.pdf.discardPath()},z=function(P,U){this.pdf.internal.out(e(P)+" "+s(U)+" m")},D=function(P){var U;switch(P.align){case"right":case"end":U="right";break;case"center":U="center";break;default:U="left"}var q,Z,B,X=this.pdf.getTextDimensions(P.text),L=V.call(this,P.y),I=W.call(this,L)-X.h,G=this.ctx.transform.applyToPoint(new o(P.x,L));if(this.autoPaging){var ee=this.ctx.transform.decompose(),se=new a;se=(se=(se=se.multiply(ee.translate)).multiply(ee.skew)).multiply(ee.scale);for(var te=this.ctx.transform.applyToRectangle(new l(P.x,L,X.w,X.h)),re=se.applyToRectangle(new l(P.x,I,X.w,X.h)),J=p.call(this,re),de=[],ne=0;ne<J.length;ne+=1)de.indexOf(J[ne])===-1&&de.push(J[ne]);x(de);for(var fe=de[0],ue=de[de.length-1],ye=fe;ye<ue+1;ye++){this.pdf.setPage(ye);var be=ye===1?this.posY+this.margin[0]:this.margin[0],we=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Se=this.pdf.internal.pageSize.height-this.margin[2],Pe=Se-this.margin[0],Le=this.pdf.internal.pageSize.width-this.margin[1],De=Le-this.margin[3],Ge=ye===1?0:we+(ye-2)*Pe;if(this.ctx.clip_path.length!==0){var Ve=this.path;q=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(q,this.posX+this.margin[3],-1*Ge+be),M.call(this,"fill",!0),this.path=Ve}var qe=b([JSON.parse(JSON.stringify(re))],this.posX+this.margin[3],-Ge+be+this.ctx.prevPageLastElemOffset)[0];P.scale>=.01&&(Z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Z*P.scale),B=this.lineWidth,this.lineWidth=B*P.scale);var et=this.autoPaging!=="text";if(et||qe.y+qe.h<=Se){if(et||qe.y>=be&&qe.x<=Le){var We=et?P.text:this.pdf.splitTextToSize(P.text,P.maxWidth||Le-qe.x)[0],dt=b([JSON.parse(JSON.stringify(te))],this.posX+this.margin[3],-Ge+be+this.ctx.prevPageLastElemOffset)[0],Ke=et&&(ye>fe||ye<ue)&&g.call(this);Ke&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],De,Pe,null).clip().discardPath()),this.pdf.text(We,dt.x,dt.y,{angle:P.angle,align:U,renderingMode:P.renderingMode}),Ke&&this.pdf.restoreGraphicsState()}}else qe.y<Se&&(this.ctx.prevPageLastElemOffset+=Se-qe.y);P.scale>=.01&&(this.pdf.setFontSize(Z),this.lineWidth=B)}}else P.scale>=.01&&(Z=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Z*P.scale),B=this.lineWidth,this.lineWidth=B*P.scale),this.pdf.text(P.text,G.x+this.posX,G.y+this.posY,{angle:P.angle,align:U,renderingMode:P.renderingMode,maxWidth:P.maxWidth}),P.scale>=.01&&(this.pdf.setFontSize(Z),this.lineWidth=B)},N=function(P,U,q,Z){q=q||0,Z=Z||0,this.pdf.internal.out(e(P+q)+" "+s(U+Z)+" l")},E=function(P,U,q){return this.pdf.lines(P,U,q,null,null)},C=function(P,U,q,Z,B,X,L,I){this.pdf.internal.out([i(c(q+P)),i(r(Z+U)),i(c(B+P)),i(r(X+U)),i(c(L+P)),i(r(I+U)),"c"].join(" "))},w=function(P,U,q,Z){for(var B=2*Math.PI,X=Math.PI/2;U>q;)U-=B;var L=Math.abs(q-U);L<B&&Z&&(L=B-L);for(var I=[],G=Z?-1:1,ee=U;L>1e-5;){var se=ee+G*Math.min(L,X);I.push(S.call(this,P,ee,se)),L-=Math.abs(se-ee),ee=se}return I},S=function(P,U,q){var Z=(q-U)/2,B=P*Math.cos(Z),X=P*Math.sin(Z),L=B,I=-X,G=L*L+I*I,ee=G+L*B+I*X,se=4/3*(Math.sqrt(2*G*ee)-ee)/(L*X-I*B),te=L-se*I,re=I+se*L,J=te,de=-re,ne=Z+U,fe=Math.cos(ne),ue=Math.sin(ne);return{x1:P*Math.cos(U),y1:P*Math.sin(U),x2:te*fe-re*ue,y2:te*ue+re*fe,x3:J*fe-de*ue,y3:J*ue+de*fe,x4:P*Math.cos(q),y4:P*Math.sin(q)}},_=function(P){return 180*P/Math.PI},k=function(P,U,q,Z,B,X){var L=P+.5*(q-P),I=U+.5*(Z-U),G=B+.5*(q-B),ee=X+.5*(Z-X),se=Math.min(P,B,L,G),te=Math.max(P,B,L,G),re=Math.min(U,X,I,ee),J=Math.max(U,X,I,ee);return new l(se,re,te-se,J-re)},T=function(P,U,q,Z,B,X,L,I){var G,ee,se,te,re,J,de,ne,fe,ue,ye,be,we,Se,Pe=q-P,Le=Z-U,De=B-q,Ge=X-Z,Ve=L-B,qe=I-X;for(ee=0;ee<41;ee++)fe=(de=(se=P+(G=ee/40)*Pe)+G*((re=q+G*De)-se))+G*(re+G*(B+G*Ve-re)-de),ue=(ne=(te=U+G*Le)+G*((J=Z+G*Ge)-te))+G*(J+G*(X+G*qe-J)-ne),ee==0?(ye=fe,be=ue,we=fe,Se=ue):(ye=Math.min(ye,fe),be=Math.min(be,ue),we=Math.max(we,fe),Se=Math.max(Se,ue));return new l(Math.round(ye),Math.round(be),Math.round(we-ye),Math.round(Se-be))},j=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var P,U,q=(P=this.ctx.lineDash,U=this.ctx.lineDashOffset,JSON.stringify({lineDash:P,lineDashOffset:U}));this.prevLineDash!==q&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=q)}}})(Ft.API),(function(t){var i=function(o){var l,a,n,u,h,d,f,m,g,p;for(a=[],n=0,u=(o+=l="\0\0\0\0".slice(o.length%4||4)).length;u>n;n+=4)(h=(o.charCodeAt(n)<<24)+(o.charCodeAt(n+1)<<16)+(o.charCodeAt(n+2)<<8)+o.charCodeAt(n+3))!==0?(d=(h=((h=((h=((h=(h-(p=h%85))/85)-(g=h%85))/85)-(m=h%85))/85)-(f=h%85))/85)%85,a.push(d+33,f+33,m+33,g+33,p+33)):a.push(122);return(function(v,b){for(var x=b;x>0;x--)v.pop()})(a,l.length),String.fromCharCode.apply(String,a)+"~>"},e=function(o){var l,a,n,u,h,d=String,f="length",m=255,g="charCodeAt",p="slice",v="replace";for(o[p](-2),o=o[p](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),n=[],u=0,h=(o+=l="uuuuu"[p](o[f]%5||5))[f];h>u;u+=5)a=52200625*(o[g](u)-33)+614125*(o[g](u+1)-33)+7225*(o[g](u+2)-33)+85*(o[g](u+3)-33)+(o[g](u+4)-33),n.push(m&a>>24,m&a>>16,m&a>>8,m&a);return(function(b,x){for(var A=x;A>0;A--)b.pop()})(n,l[f]),d.fromCharCode.apply(d,n)},s=function(o){return o.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},c=function(o){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),l.test(o)===!1)return"";for(var a="",n=0;n<o.length;n+=2)a+=String.fromCharCode("0x"+(o[n]+o[n+1]));return a},r=function(o){for(var l=new Uint8Array(o.length),a=o.length;a--;)l[a]=o.charCodeAt(a);return(l=Ef(l)).reduce(function(n,u){return n+String.fromCharCode(u)},"")};t.processDataByFilters=function(o,l){var a=0,n=o||"",u=[];for(typeof(l=l||[])=="string"&&(l=[l]),a=0;a<l.length;a+=1)switch(l[a]){case"ASCII85Decode":case"/ASCII85Decode":n=e(n),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":n=i(n),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":n=c(n),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":n=s(n),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":n=r(n),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[a]+'" is not implemented')}return{data:n,reverseChain:u.reverse().join(" ")}}})(Ft.API),(function(t){t.loadFile=function(i,e,s){return(function(c,r,o){r=r!==!1,o=typeof o=="function"?o:function(){};var l=void 0;try{l=(function(a,n,u){var h=new XMLHttpRequest,d=0,f=function(m){var g=m.length,p=[],v=String.fromCharCode;for(d=0;d<g;d+=1)p.push(v(255&m.charCodeAt(d)));return p.join("")};if(h.open("GET",a,!n),h.overrideMimeType("text/plain; charset=x-user-defined"),n===!1&&(h.onload=function(){h.status===200?u(f(this.responseText)):u(void 0)}),h.send(null),n&&h.status===200)return f(h.responseText)})(c,r,o)}catch{}return l})(i,e,s)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile})(Ft.API),(function(t){function i(){return(Ut.html2canvas?Promise.resolve(Ut.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-B5qzocYs.cjs"))).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Ut.DOMPurify?Promise.resolve(Ut.DOMPurify):Promise.resolve().then(()=>require("./purify.es-DCvfCVUO.cjs"))).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var s=function(l){var a=br(l);return a==="undefined"?"undefined":a==="string"||l instanceof String?"string":a==="number"||l instanceof Number?"number":a==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":a==="object"?"object":"unknown"},c=function(l,a){var n=document.createElement(l);for(var u in a.className&&(n.className=a.className),a.innerHTML&&a.dompurify&&(n.innerHTML=a.dompurify.sanitize(a.innerHTML)),a.style)n.style[u]=a.style[u];return n},r=function l(a,n){for(var u=a.nodeType===3?document.createTextNode(a.nodeValue):a.cloneNode(!1),h=a.firstChild;h;h=h.nextSibling)n!==!0&&h.nodeType===1&&h.nodeName==="SCRIPT"||u.appendChild(l(h,n));return a.nodeType===1&&(a.nodeName==="CANVAS"?(u.width=a.width,u.height=a.height,u.getContext("2d").drawImage(a,0,0)):a.nodeName!=="TEXTAREA"&&a.nodeName!=="SELECT"||(u.value=a.value),u.addEventListener("load",function(){u.scrollTop=a.scrollTop,u.scrollLeft=a.scrollLeft},!0)),u},o=function l(a){var n=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),u=l.convert(Promise.resolve(),n);return(u=u.setProgress(1,l,1,[l])).set(a)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(l,a){return l.__proto__=a||o.prototype,l},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(l,a){return this.then(function(){switch(a=a||(function(n){switch(s(n)){case"string":return"string";case"element":return n.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),a){case"string":return this.then(e).then(function(n){return this.set({src:c("div",{innerHTML:l,dompurify:n})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},o.prototype.to=function(l){switch(l){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var l={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},a=r(this.prop.src,this.opt.html2canvas.javascriptEnabled);a.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=c("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=c("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(a),this.prop.container.firstChild.appendChild(c("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(i).then(function(a){var n=Object.assign({},this.opt.html2canvas);return delete n.onrendered,a(this.prop.container,n)}).then(function(a){(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(i).then(function(a){var n=this.opt.jsPDF,u=this.opt.fontFaces,h=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:h,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,n.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,n.context2d.posX=this.opt.x,n.context2d.posY=this.opt.y,n.context2d.margin=this.opt.margin,n.context2d.fontFaces=u,u)for(var f=0;f<u.length;++f){var m=u[f],g=m.src.find(function(p){return p.format==="truetype"});g&&n.addFont(g.url,m.ref.name,m.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,n.context2d.save(!0),a(this.prop.container,d)}).then(function(a){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(a),this.prop.canvas=a,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(l,a,n){return(n=n||"pdf").toLowerCase()==="img"||n.toLowerCase()==="image"?this.outputImg(l,a):this.outputPdf(l,a)},o.prototype.outputPdf=function(l,a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,a)})},o.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+l+'" is not supported.'}})},o.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(l){if(s(l)!=="object")return this;var a=Object.keys(l||{}).map(function(n){if(n in o.template.prop)return function(){this.prop[n]=l[n]};switch(n){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[n]=l[n]}}},this);return this.then(function(){return this.thenList(a)})},o.prototype.get=function(l,a){return this.then(function(){var n=l in o.template.prop?this.prop[l]:this.opt[l];return a?a(n):n})},o.prototype.setMargin=function(l){return this.then(function(){switch(s(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},o.prototype.setPageSize=function(l){function a(n,u){return Math.floor(n*u/72*96)}return this.then(function(){(l=l||Ft.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:a(l.inner.width,l.k),height:a(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},o.prototype.setProgress=function(l,a,n,u){return l!=null&&(this.progress.val=l),a!=null&&(this.progress.state=a),n!=null&&(this.progress.n=n),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(l,a,n,u){return this.setProgress(l?this.progress.val+l:null,a||null,n?this.progress.n+n:null,u?this.progress.stack.concat(u):null)},o.prototype.then=function(l,a){var n=this;return this.thenCore(l,a,function(u,h){return n.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(d){return n.updateProgress(null,u),d}).then(u,h).then(function(d){return n.updateProgress(1),d})})},o.prototype.thenCore=function(l,a,n){n=n||Promise.prototype.then;var u=this;l&&(l=l.bind(u)),a&&(a=a.bind(u));var h=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?u:o.convert(Object.assign({},u),Promise.prototype),d=n.call(h,l,a);return o.convert(d,u.__proto__)},o.prototype.thenExternal=function(l,a){return Promise.prototype.then.call(this,l,a)},o.prototype.thenList=function(l){var a=this;return l.forEach(function(n){a=a.thenCore(n)}),a},o.prototype.catch=function(l){l&&(l=l.bind(this));var a=Promise.prototype.catch.call(this,l);return o.convert(a,this)},o.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},o.prototype.error=function(l){return this.then(function(){throw new Error(l)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,Ft.getPageSize=function(l,a,n){if(br(l)==="object"){var u=l;l=u.orientation,a=u.unit||a,n=u.format||n}a=a||"mm",n=n||"a4",l=(""+(l||"P")).toLowerCase();var h,d=(""+n).toLowerCase(),f={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(a){case"pt":h=1;break;case"mm":h=72/25.4;break;case"cm":h=72/2.54;break;case"in":h=72;break;case"px":h=.75;break;case"pc":case"em":h=12;break;case"ex":h=6;break;default:throw"Invalid unit: "+a}var m,g=0,p=0;if(f.hasOwnProperty(d))g=f[d][1]/h,p=f[d][0]/h;else try{g=n[1],p=n[0]}catch{throw new Error("Invalid format: "+n)}if(l==="p"||l==="portrait")l="p",p>g&&(m=p,p=g,g=m);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",g>p&&(m=p,p=g,g=m)}return{width:p,height:g,unit:a,k:h,orientation:l}},t.html=function(l,a){(a=a||{}).callback=a.callback||function(){},a.html2canvas=a.html2canvas||{},a.html2canvas.canvas=a.html2canvas.canvas||this.canvas,a.jsPDF=a.jsPDF||this,a.fontFaces=a.fontFaces?a.fontFaces.map(Yc):null;var n=new o(a);return a.worker?n:n.from(l).doCallback()}})(Ft.API),Ft.API.addJS=function(t){var i,e,s=(function(c){for(var r="",o=0;o<c.length;o++){var l=c[o];if(l==="("||l===")"){for(var a=0,n=o-1;n>=0&&c[n]==="\\";n--)a++;r+=a%2==0?"\\"+l:l}else r+=l}return r})(t);return this.internal.events.subscribe("postPutResources",function(){i=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(i+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+s+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){i!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+i+" 0 R>>")}),this},(function(t){var i;t.events.push(["postPutResources",function(){var e=this,s=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var c=e.outline.render().split(/\r\n/),r=0;r<c.length;r++){var o=c[r],l=s.exec(o);if(l!=null){var a=l[1];e.internal.newObjectDeferredBegin(a,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var n=this.internal.pages.length,u=[];for(r=0;r<n;r++){var h=e.internal.newObject();u.push(h);var d=e.internal.getPageInfo(r+1);e.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var f=e.internal.newObject();for(e.internal.write("<< /Names [ "),r=0;r<u.length;r++)e.internal.write("(page_"+(r+1)+")"+u[r]+" 0 R");e.internal.write(" ] >>","endobj"),i=e.internal.newObject(),e.internal.write("<< /Dests "+f+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+i+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(s,c,r){var o={title:c,options:r,children:[]};return s==null&&(s=this.root),s.children.push(o),o},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(s){s.id=e.internal.newObjectDeferred();for(var c=0;c<s.children.length;c++)this.genIds_r(s.children[c])},e.outline.renderRoot=function(s){this.objStart(s),this.line("/Type /Outlines"),s.children.length>0&&(this.line("/First "+this.makeRef(s.children[0])),this.line("/Last "+this.makeRef(s.children[s.children.length-1]))),this.line("/Count "+this.count_r({count:0},s)),this.objEnd()},e.outline.renderItems=function(s){for(var c=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<s.children.length;r++){var o=s.children[r];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(s)),r>0&&this.line("/Prev "+this.makeRef(s.children[r-1])),r<s.children.length-1&&this.line("/Next "+this.makeRef(s.children[r+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var l=this.count=this.count_r({count:0},o);if(l>0&&this.line("/Count "+l),o.options&&o.options.pageNumber){var a=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+a.objId+" 0 R /XYZ 0 "+c(0)+" 0]")}this.objEnd()}for(var n=0;n<s.children.length;n++)this.renderItems(s.children[n])},e.outline.line=function(s){this.ctx.val+=s+`\r
43
+ `},e.outline.makeRef=function(s){return s.id+" 0 R"},e.outline.makeString=function(s){return"("+e.internal.pdfEscape(s)+")"},e.outline.objStart=function(s){this.ctx.val+=`\r
44
+ `+s.id+` 0 obj\r
45
+ <<\r
46
+ `},e.outline.objEnd=function(){this.ctx.val+=`>> \r
47
+ endobj\r
48
+ `},e.outline.count_r=function(s,c){for(var r=0;r<c.children.length;r++)s.count++,this.count_r(s,c.children[r]);return s.count}}])})(Ft.API),(function(t){var i=[192,193,194,195,196,197,198,199];t.processJPEG=function(e,s,c,r,o,l){var a,n=this.decode.DCT_DECODE,u=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=o||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,a=(function(h){for(var d,f=256*h.charCodeAt(4)+h.charCodeAt(5),m=h.length,g={width:0,height:0,numcomponents:1},p=4;p<m;p+=2){if(p+=f,i.indexOf(h.charCodeAt(p+1))!==-1){d=256*h.charCodeAt(p+5)+h.charCodeAt(p+6),g={width:256*h.charCodeAt(p+7)+h.charCodeAt(p+8),height:d,numcomponents:h.charCodeAt(p+9)};break}f=256*h.charCodeAt(p+2)+h.charCodeAt(p+3)}return g})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),a.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}u={data:e,width:a.width,height:a.height,colorSpace:l,bitsPerComponent:8,filter:n,index:s,alias:c}}return u}})(Ft.API),Ft.API.processPNG=function(t,i,e,s){if(this.__addimage__.isArrayBuffer(t)&&(t=new Uint8Array(t)),this.__addimage__.isArrayBufferView(t)){var c,r=ew(t,{checkCrc:!0}),o=r.width,l=r.height,a=r.channels,n=r.palette,u=r.depth;c=n&&a===1?(function(R){for(var F=R.width,$=R.height,z=R.data,D=R.palette,N=R.depth,E=!1,C=[],w=[],S=void 0,_=!1,k=0,T=0;T<D.length;T++){var j=tp(D[T],4),P=j[0],U=j[1],q=j[2],Z=j[3];C.push(P,U,q),Z!=null&&(Z===0?(k++,w.length<1&&w.push(T)):Z<255&&(_=!0))}if(_||k>1){E=!0,w=void 0;var B=F*$;S=new Uint8Array(B);for(var X=new DataView(z.buffer),L=0;L<B;L++){var I=Jc(X,L,N),G=tp(D[I],4)[3];S[L]=G}}else k===0&&(w=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:E?8:void 0,colorBytes:z,alphaBytes:S,needSMask:E,palette:C,mask:w}})(r):a===2||a===4?(function(R){for(var F=R.data,$=R.width,z=R.height,D=R.channels,N=R.depth,E=D===2?"DeviceGray":"DeviceRGB",C=D-1,w=$*z,S=C,_=w*S,k=1*w,T=Math.ceil(_*N/8),j=Math.ceil(k*N/8),P=new Uint8Array(T),U=new Uint8Array(j),q=new DataView(F.buffer),Z=new DataView(P.buffer),B=new DataView(U.buffer),X=!1,L=0;L<w;L++){for(var I=L*D,G=0;G<S;G++)im(Z,Jc(q,I+G,N),L*S+G,N);var ee=Jc(q,I+S,N);ee<(1<<N)-1&&(X=!0),im(B,ee,1*L,N)}return{colorSpace:E,colorsPerPixel:C,sMaskBitsPerComponent:X?N:void 0,colorBytes:P,alphaBytes:U,needSMask:X}})(r):(function(R){var F=R.data,$=R.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:$,colorsPerPixel:$==="DeviceGray"?1:3,colorBytes:F instanceof Uint16Array?(function(z){for(var D=z.length,N=new Uint8Array(2*D),E=new DataView(N.buffer,N.byteOffset,N.byteLength),C=0;C<D;C++)E.setUint16(2*C,z[C],!1);return N})(F):F,needSMask:!1}})(r);var h,d,f,m=c,g=m.colorSpace,p=m.colorsPerPixel,v=m.sMaskBitsPerComponent,b=m.colorBytes,x=m.alphaBytes,A=m.needSMask,M=m.palette,V=m.mask,W=null;return s!==Ft.API.image_compression.NONE&&typeof Ef=="function"?(W=(function(R){var F;switch(R){case Ft.API.image_compression.FAST:F=11;break;case Ft.API.image_compression.MEDIUM:F=13;break;case Ft.API.image_compression.SLOW:F=14;break;default:F=12}return F})(s),h=this.decode.FLATE_DECODE,d="/Predictor ".concat(W," /Colors ").concat(p," /BitsPerComponent ").concat(u," /Columns ").concat(o),t=Qp(b,Math.ceil(o*p*u/8),p,u,s),A&&(f=Qp(x,Math.ceil(o*v/8),1,v,s))):(h=void 0,d=void 0,t=b,A&&(f=x)),(this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t))&&(t=this.__addimage__.arrayBufferToBinaryString(t)),(f&&this.__addimage__.isArrayBuffer(f)||this.__addimage__.isArrayBufferView(f))&&(f=this.__addimage__.arrayBufferToBinaryString(f)),{alias:e,data:t,index:i,filter:h,decodeParameters:d,transparency:V,palette:M,sMask:f,predictor:W,width:o,height:l,bitsPerComponent:u,sMaskBitsPerComponent:v,colorSpace:g}}},(function(t){t.processGIF89A=function(i,e,s,c){var r=new xw(i),o=r.width,l=r.height,a=[];r.decodeAndBlitFrameRGBA(0,a);var n={data:a,width:o,height:l},u=new Qc(100).encode(n,100);return t.processJPEG.call(this,u,e,s,c)},t.processGIF87A=t.processGIF89A})(Ft.API),Si.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var t=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(t);for(var i=0;i<t;i++){var e=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0);this.palette[i]={red:c,green:s,blue:e,quad:r}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Si.prototype.parseBGR=function(){this.pos=this.offset;var t="bit"+this.bitPP,i=this.width*this.height*4;if(i>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(i);try{this[t]()}catch(e){kr.log("bit decode error:"+e)}},Si.prototype.bit1=function(){var t,i=Math.ceil(this.width/8),e=i%4;for(t=this.height-1;t>=0;t--){for(var s=this.bottom_up?t:this.height-1-t,c=0;c<i;c++)for(var r=this.datav.getUint8(this.pos++,!0),o=s*this.width*4+8*c*4,l=0;l<8&&8*c+l<this.width;l++){var a=this.palette[r>>7-l&1];this.data[o+4*l]=a.blue,this.data[o+4*l+1]=a.green,this.data[o+4*l+2]=a.red,this.data[o+4*l+3]=255}e!==0&&(this.pos+=4-e)}},Si.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),i=t%4,e=this.height-1;e>=0;e--){for(var s=this.bottom_up?e:this.height-1-e,c=0;c<t;c++){var r=this.datav.getUint8(this.pos++,!0),o=s*this.width*4+2*c*4,l=r>>4,a=15&r,n=this.palette[l];if(this.data[o]=n.blue,this.data[o+1]=n.green,this.data[o+2]=n.red,this.data[o+3]=255,2*c+1>=this.width)break;n=this.palette[a],this.data[o+4]=n.blue,this.data[o+4+1]=n.green,this.data[o+4+2]=n.red,this.data[o+4+3]=255}i!==0&&(this.pos+=4-i)}},Si.prototype.bit8=function(){for(var t=this.width%4,i=this.height-1;i>=0;i--){for(var e=this.bottom_up?i:this.height-1-i,s=0;s<this.width;s++){var c=this.datav.getUint8(this.pos++,!0),r=e*this.width*4+4*s;if(c<this.palette.length){var o=this.palette[c];this.data[r]=o.red,this.data[r+1]=o.green,this.data[r+2]=o.blue,this.data[r+3]=255}else this.data[r]=255,this.data[r+1]=255,this.data[r+2]=255,this.data[r+3]=255}t!==0&&(this.pos+=4-t)}},Si.prototype.bit15=function(){for(var t=this.width%3,i=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var s=this.bottom_up?e:this.height-1-e,c=0;c<this.width;c++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(r&i)/i*255|0,l=(r>>5&i)/i*255|0,a=(r>>10&i)/i*255|0,n=r>>15?255:0,u=s*this.width*4+4*c;this.data[u]=a,this.data[u+1]=l,this.data[u+2]=o,this.data[u+3]=n}this.pos+=t}},Si.prototype.bit16=function(){for(var t=this.width%3,i=parseInt("11111",2),e=parseInt("111111",2),s=this.height-1;s>=0;s--){for(var c=this.bottom_up?s:this.height-1-s,r=0;r<this.width;r++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(o&i)/i*255|0,a=(o>>5&e)/e*255|0,n=(o>>11)/i*255|0,u=c*this.width*4+4*r;this.data[u]=n,this.data[u+1]=a,this.data[u+2]=l,this.data[u+3]=255}this.pos+=t}},Si.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var s=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=i*this.width*4+4*e;this.data[o]=r,this.data[o+1]=c,this.data[o+2]=s,this.data[o+3]=255}this.pos+=this.width%4}},Si.prototype.bit32=function(){for(var t=this.height-1;t>=0;t--)for(var i=this.bottom_up?t:this.height-1-t,e=0;e<this.width;e++){var s=this.datav.getUint8(this.pos++,!0),c=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),l=i*this.width*4+4*e;this.data[l]=r,this.data[l+1]=c,this.data[l+2]=s,this.data[l+3]=o}},Si.prototype.getData=function(){return this.data},(function(t){t.processBMP=function(i,e,s,c){var r=new Si(i,!1),o=r.width,l=r.height,a={data:r.getData(),width:o,height:l},n=new Qc(100).encode(a,100);return t.processJPEG.call(this,n,e,s,c)}})(Ft.API),sm.prototype.getData=function(){return this.data},(function(t){t.processWEBP=function(i,e,s,c){var r=new sm(i),o=r.width,l=r.height,a={data:r.getData(),width:o,height:l},n=new Qc(100).encode(a,100);return t.processJPEG.call(this,n,e,s,c)}})(Ft.API),Ft.API.processRGBA=function(t,i,e){for(var s=t.data,c=s.length,r=new Uint8Array(c/4*3),o=new Uint8Array(c/4),l=0,a=0,n=0;n<c;n+=4){var u=s[n],h=s[n+1],d=s[n+2],f=s[n+3];r[l++]=u,r[l++]=h,r[l++]=d,o[a++]=f}var m=this.__addimage__.arrayBufferToBinaryString(r);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:m,index:i,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:t.width,height:t.height}},Ft.API.setLanguage=function(t){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[t]!==void 0&&(this.internal.languageSettings.languageCode=t,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Qs=Ft.API,ru=Qs.getCharWidthsArray=function(t,i){var e,s,c=(i=i||{}).font||this.internal.getFont(),r=i.fontSize||this.internal.getFontSize(),o=i.charSpace||this.internal.getCharSpace(),l=i.widths?i.widths:c.metadata.Unicode.widths,a=l.fof?l.fof:1,n=i.kerning?i.kerning:c.metadata.Unicode.kerning,u=n.fof?n.fof:1,h=i.doKerning!==!1,d=0,f=t.length,m=0,g=l[0]||a,p=[];for(e=0;e<f;e++)s=t.charCodeAt(e),typeof c.metadata.widthOfString=="function"?p.push((c.metadata.widthOfGlyph(c.metadata.characterToGlyph(s))+o*(1e3/r)||0)/1e3):(d=h&&br(n[s])==="object"&&!isNaN(parseInt(n[s][m],10))?n[s][m]/u:0,p.push((l[s]||g)/a+d)),m=s;return p},Yp=Qs.getStringUnitWidth=function(t,i){var e=(i=i||{}).fontSize||this.internal.getFontSize(),s=i.font||this.internal.getFont(),c=i.charSpace||this.internal.getCharSpace();return Qs.processArabic&&(t=Qs.processArabic(t)),typeof s.metadata.widthOfString=="function"?s.metadata.widthOfString(t,e,c)/e:ru.apply(this,arguments).reduce(function(r,o){return r+o},0)},Zp=function(t,i,e,s){for(var c=[],r=0,o=t.length,l=0;r!==o&&l+i[r]<e;)l+=i[r],r++;c.push(t.slice(0,r));var a=r;for(l=0;r!==o;)l+i[r]>s&&(c.push(t.slice(a,r)),l=0,a=r),l+=i[r],r++;return a!==r&&c.push(t.slice(a,r)),c},Jp=function(t,i,e){e||(e={});var s,c,r,o,l,a,n,u=[],h=[u],d=e.textIndent||0,f=0,m=0,g=t.split(" "),p=ru.apply(this,[" ",e])[0];if(a=e.lineIndent===-1?g[0].length+2:e.lineIndent||0){var v=Array(a).join(" "),b=[];g.map(function(A){(A=A.split(/\s*\n/)).length>1?b=b.concat(A.map(function(M,V){return(V&&M.length?`
49
+ `:"")+M})):b.push(A[0])}),g=b,a=Yp.apply(this,[v,e])}for(r=0,o=g.length;r<o;r++){var x=0;if(s=g[r],a&&s[0]==`
50
+ `&&(s=s.substr(1),x=1),d+f+(m=(c=ru.apply(this,[s,e])).reduce(function(A,M){return A+M},0))>i||x){if(m>i){for(l=Zp.apply(this,[s,c,i-(d+f),i]),u.push(l.shift()),u=[l.pop()];l.length;)h.push([l.shift()]);m=c.slice(s.length-(u[0]?u[0].length:0)).reduce(function(A,M){return A+M},0)}else u=[s];h.push(u),d=m+a,f=p}else u.push(s),d+=f+m,f=p}return n=a?function(A,M){return(M?v:"")+A.join(" ")}:function(A){return A.join(" ")},h.map(n)},Qs.splitTextToSize=function(t,i,e){var s,c=(e=e||{}).fontSize||this.internal.getFontSize(),r=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var h=this.internal.getFont(u.fontName,u.fontStyle),d="Unicode";return h.metadata[d]?{widths:h.metadata[d].widths||{0:1},kerning:h.metadata[d].kerning||{}}:{font:h.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);s=Array.isArray(t)?t:String(t).split(/\r?\n/);var o=1*this.internal.scaleFactor*i/c;r.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/c:0,r.lineIndent=e.lineIndent;var l,a,n=[];for(l=0,a=s.length;l<a;l++)n=n.concat(Jp.apply(this,[s[l],o,r]));return n},(function(t){t.__fontmetrics__=t.__fontmetrics__||{};for(var i="0123456789abcdef",e="klmnopqrstuvwxyz",s={},c={},r=0;r<16;r++)s[e[r]]=i[r],c[i[r]]=e[r];var o=function(d){return"0x"+parseInt(d,10).toString(16)},l=t.__fontmetrics__.compress=function(d){var f,m,g,p,v=["{"];for(var b in d){if(f=d[b],isNaN(parseInt(b,10))?m="'"+b+"'":(b=parseInt(b,10),m=(m=o(b).slice(2)).slice(0,-1)+c[m.slice(-1)]),typeof f=="number")f<0?(g=o(f).slice(3),p="-"):(g=o(f).slice(2),p=""),g=p+g.slice(0,-1)+c[g.slice(-1)];else{if(br(f)!=="object")throw new Error("Don't know what to do with value type "+br(f)+".");g=l(f)}v.push(m+g)}return v.push("}"),v.join("")},a=t.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var f,m,g,p,v={},b=1,x=v,A=[],M="",V="",W=d.length-1,R=1;R<W;R+=1)(p=d[R])=="'"?f?(g=f.join(""),f=void 0):f=[]:f?f.push(p):p=="{"?(A.push([x,g]),x={},g=void 0):p=="}"?((m=A.pop())[0][m[1]]=x,g=void 0,x=m[0]):p=="-"?b=-1:g===void 0?s.hasOwnProperty(p)?(M+=s[p],g=parseInt(M,16)*b,b=1,M=""):M+=p:s.hasOwnProperty(p)?(V+=s[p],x[g]=parseInt(V,16)*b,b=1,g=void 0,V=""):V+=p;return v},n={codePages:["WinAnsiEncoding"],WinAnsiEncoding:a("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:n,"Courier-Bold":n,"Courier-BoldOblique":n,"Courier-Oblique":n,Helvetica:n,"Helvetica-Bold":n,"Helvetica-BoldOblique":n,"Helvetica-Oblique":n,"Times-Roman":n,"Times-Bold":n,"Times-BoldItalic":n,"Times-Italic":n}},h={Unicode:{"Courier-Oblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":a("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":a("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:a("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":a("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:a("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":a("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":a("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":a("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":a("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};t.events.push(["addFont",function(d){var f=d.font,m=h.Unicode[f.postScriptName];m&&(f.metadata.Unicode={},f.metadata.Unicode.widths=m.widths,f.metadata.Unicode.kerning=m.kerning);var g=u.Unicode[f.postScriptName];g&&(f.metadata.Unicode.encoding=g,f.encoding=g.codePages[0])}])})(Ft.API),(function(t){var i=function(e){for(var s=e.length,c=new Uint8Array(s),r=0;r<s;r++)c[r]=e.charCodeAt(r);return c};t.API.events.push(["addFont",function(e){var s=void 0,c=e.font,r=e.instance;if(!c.isStandardFont){if(r===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");if(typeof(s=r.existsFileInVFS(c.postScriptName)===!1?r.loadFile(c.postScriptName):r.getFileFromVFS(c.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+c.postScriptName+"').");(function(o,l){l=/^\x00\x01\x00\x00/.test(l)?i(l):i(cu(l)),o.metadata=t.API.TTFFont.open(l),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(c,s)}}])})(Ft),Ft.API.addSvgAsImage=function(t,i,e,s,c,r,o,l){if(isNaN(i)||isNaN(e))throw kr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(s)||isNaN(c))throw kr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var a=document.createElement("canvas");a.width=s,a.height=c;var n=a.getContext("2d");n.fillStyle="#fff",n.fillRect(0,0,a.width,a.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(Ut.canvg?Promise.resolve(Ut.canvg):Promise.resolve().then(()=>require("./index.es-Awb9H3-j.cjs"))).catch(function(d){return Promise.reject(new Error("Could not load canvg: "+d))}).then(function(d){return d.default?d.default:d}).then(function(d){return d.fromString(n,t,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(d){return d.render(u)}).then(function(){h.addImage(a.toDataURL("image/jpeg",1),i,e,s,c,o,l)})},Ft.API.putTotalPages=function(t){var i,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(i=new RegExp(t,"g"),e=this.internal.getNumberOfPages()):(i=new RegExp(this.pdfEscape16(t,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var s=1;s<=this.internal.getNumberOfPages();s++)for(var c=0;c<this.internal.pages[s].length;c++)this.internal.pages[s][c]=this.internal.pages[s][c].replace(i,e);return this},Ft.API.viewerPreferences=function(t,i){var e;t=t||{},i=i||!1;var s,c,r,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},l=Object.keys(o),a=[],n=0,u=0,h=0;function d(m,g){var p,v=!1;for(p=0;p<m.length;p+=1)m[p]===g&&(v=!0);return v}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,t==="reset"||i===!0){var f=l.length;for(h=0;h<f;h+=1)e[l[h]].value=e[l[h]].defaultValue,e[l[h]].explicitSet=!1}if(br(t)==="object"){for(c in t)if(r=t[c],d(l,c)&&r!==void 0){if(e[c].type==="boolean"&&typeof r=="boolean")e[c].value=r;else if(e[c].type==="name"&&d(e[c].valueSet,r))e[c].value=r;else if(e[c].type==="integer"&&Number.isInteger(r))e[c].value=r;else if(e[c].type==="array"){for(n=0;n<r.length;n+=1)if(s=!0,r[n].length===1&&typeof r[n][0]=="number")a.push(String(r[n]-1));else if(r[n].length>1){for(u=0;u<r[n].length;u+=1)typeof r[n][u]!="number"&&(s=!1);s===!0&&a.push([r[n][0]-1,r[n][1]-1].join(" "))}e[c].value="["+a.join(" ")+"]"}else e[c].value=e[c].defaultValue;e[c].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,g=[];for(m in e)e[m].explicitSet===!0&&(e[m].type==="name"?g.push("/"+m+" /"+e[m].value):g.push("/"+m+" "+e[m].value));g.length!==0&&this.internal.write(`/ViewerPreferences
51
+ <<
52
+ `+g.join(`
53
+ `)+`
54
+ >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},Ft.API.addMetadata=function(t,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:i??"http://jspdf.default.namespaceuri/",rawXml:typeof i=="boolean"&&i},this.internal.events.subscribe("putCatalog",Sw),this.internal.events.subscribe("postPutResources",_w)),this},(function(t){var i=t.API,e=i.pdfEscape16=function(r,o){for(var l,a=o.metadata.Unicode.widths,n=["","0","00","000","0000"],u=[""],h=0,d=r.length;h<d;++h){if(l=o.metadata.characterToGlyph(r.charCodeAt(h)),o.metadata.glyIdsUsed.push(l),o.metadata.toUnicode[l]=r.charCodeAt(h),a.indexOf(l)==-1&&(a.push(l),a.push([parseInt(o.metadata.widthOfGlyph(l),10)])),l=="0")return u.join("");l=l.toString(16),u.push(n[4-l.length],l)}return u.join("")},s=function(r){var o,l,a,n,u,h,d;for(u=`/CIDInit /ProcSet findresource begin
55
+ 12 dict begin
56
+ begincmap
57
+ /CIDSystemInfo <<
58
+ /Registry (Adobe)
59
+ /Ordering (UCS)
60
+ /Supplement 0
61
+ >> def
62
+ /CMapName /Adobe-Identity-UCS def
63
+ /CMapType 2 def
64
+ 1 begincodespacerange
65
+ <0000><ffff>
66
+ endcodespacerange`,a=[],h=0,d=(l=Object.keys(r).sort(function(f,m){return f-m})).length;h<d;h++)o=l[h],a.length>=100&&(u+=`
67
+ `+a.length+` beginbfchar
68
+ `+a.join(`
69
+ `)+`
70
+ endbfchar`,a=[]),r[o]!==void 0&&r[o]!==null&&typeof r[o].toString=="function"&&(n=("0000"+r[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),a.push("<"+o+"><"+n+">"));return a.length&&(u+=`
71
+ `+a.length+` beginbfchar
72
+ `+a.join(`
73
+ `)+`
74
+ endbfchar
75
+ `),u+`endcmap
76
+ CMapName currentdict /CMap defineresource pop
77
+ end
78
+ end`};i.events.push(["putFont",function(r){(function(o){var l=o.font,a=o.out,n=o.newObject,u=o.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var h=l.metadata.Unicode.widths,d=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),f="",m=0;m<d.length;m++)f+=String.fromCharCode(d[m]);var g=n();u({data:f,addLength1:!0,objectId:g}),a("endobj");var p=n();u({data:s(l.metadata.toUnicode),addLength1:!0,objectId:p}),a("endobj");var v=n();a("<<"),a("/Type /FontDescriptor"),a("/FontName /"+to(l.fontName)),a("/FontFile2 "+g+" 0 R"),a("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),a("/Flags "+l.metadata.flags),a("/StemV "+l.metadata.stemV),a("/ItalicAngle "+l.metadata.italicAngle),a("/Ascent "+l.metadata.ascender),a("/Descent "+l.metadata.decender),a("/CapHeight "+l.metadata.capHeight),a(">>"),a("endobj");var b=n();a("<<"),a("/Type /Font"),a("/BaseFont /"+to(l.fontName)),a("/FontDescriptor "+v+" 0 R"),a("/W "+t.API.PDFObject.convert(h)),a("/CIDToGIDMap /Identity"),a("/DW 1000"),a("/Subtype /CIDFontType2"),a("/CIDSystemInfo"),a("<<"),a("/Supplement 0"),a("/Registry (Adobe)"),a("/Ordering ("+l.encoding+")"),a(">>"),a(">>"),a("endobj"),l.objectNumber=n(),a("<<"),a("/Type /Font"),a("/Subtype /Type0"),a("/ToUnicode "+p+" 0 R"),a("/BaseFont /"+to(l.fontName)),a("/Encoding /"+l.encoding),a("/DescendantFonts ["+b+" 0 R]"),a(">>"),a("endobj"),l.isAlreadyPutted=!0}})(r)}]),i.events.push(["putFont",function(r){(function(o){var l=o.font,a=o.out,n=o.newObject,u=o.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var h=l.metadata.rawData,d="",f=0;f<h.length;f++)d+=String.fromCharCode(h[f]);var m=n();u({data:d,addLength1:!0,objectId:m}),a("endobj");var g=n();u({data:s(l.metadata.toUnicode),addLength1:!0,objectId:g}),a("endobj");var p=n();a("<<"),a("/Descent "+l.metadata.decender),a("/CapHeight "+l.metadata.capHeight),a("/StemV "+l.metadata.stemV),a("/Type /FontDescriptor"),a("/FontFile2 "+m+" 0 R"),a("/Flags 96"),a("/FontBBox "+t.API.PDFObject.convert(l.metadata.bbox)),a("/FontName /"+to(l.fontName)),a("/ItalicAngle "+l.metadata.italicAngle),a("/Ascent "+l.metadata.ascender),a(">>"),a("endobj"),l.objectNumber=n();for(var v=0;v<l.metadata.hmtx.widths.length;v++)l.metadata.hmtx.widths[v]=parseInt(l.metadata.hmtx.widths[v]*(1e3/l.metadata.head.unitsPerEm));a("<</Subtype/TrueType/Type/Font/ToUnicode "+g+" 0 R/BaseFont/"+to(l.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+t.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),a("endobj"),l.isAlreadyPutted=!0}})(r)}]);var c=function(r){var o,l=r.text||"",a=r.x,n=r.y,u=r.options||{},h=r.mutex||{},d=h.pdfEscape,f=h.activeFontKey,m=h.fonts,g=f,p="",v=0,b="",x=m[g].encoding;if(m[g].encoding!=="Identity-H")return{text:l,x:a,y:n,options:u,mutex:h};for(b=l,g=f,Array.isArray(l)&&(b=l[0]),v=0;v<b.length;v+=1)m[g].metadata.hasOwnProperty("cmap")&&(o=m[g].metadata.cmap.unicode.codeMap[b[v].charCodeAt(0)]),o||b[v].charCodeAt(0)<256&&m[g].metadata.hasOwnProperty("Unicode")?p+=b[v]:p+="";var A="";return parseInt(g.slice(1))<14||x==="WinAnsiEncoding"?A=d(p,g).split("").map(function(M){return M.charCodeAt(0).toString(16)}).join(""):x==="Identity-H"&&(A=e(p,m[g])),h.isHex=!0,{text:A,x:a,y:n,options:u,mutex:h}};i.events.push(["postProcessText",function(r){var o=r.text||"",l=[],a={text:o,x:r.x,y:r.y,options:r.options,mutex:r.mutex};if(Array.isArray(o)){var n=0;for(n=0;n<o.length;n+=1)Array.isArray(o[n])&&o[n].length===3?l.push([c(Object.assign({},a,{text:o[n][0]})).text,o[n][1],o[n][2]]):l.push(c(Object.assign({},a,{text:o[n]})).text);r.text=l}else r.text=c(Object.assign({},a,{text:o})).text}])})(Ft),(function(t){var i=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};t.existsFileInVFS=function(e){return i.call(this),this.internal.vFS[e]!==void 0},t.addFileToVFS=function(e,s){return i.call(this),this.internal.vFS[e]=s,this},t.getFileFromVFS=function(e){return i.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(Ft.API),(function(t){t.__bidiEngine__=t.prototype.__bidiEngine__=function(s){var c,r,o,l,a,n,u,h=i,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},g={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),b=!1,x=0;this.__bidiEngine__={};var A=function(z){var D=z.charCodeAt(),N=D>>8,E=g[N];return E!==void 0?h[256*E+(255&D)]:N===252||N===253?"AL":v.test(N)?"L":N===8?"R":"N"},M=function(z){for(var D,N=0;N<z.length;N++){if((D=A(z.charAt(N)))==="L")return!1;if(D==="R")return!0}return!1},V=function(z,D,N,E){var C,w,S,_,k=D[E];switch(k){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"N":case"AN":break;case"EN":b&&(k="AN");break;case"AL":b=!0,k="R";break;case"WS":case"BN":k="N";break;case"CS":E<1||E+1>=D.length||(C=N[E-1])!=="EN"&&C!=="AN"||(w=D[E+1])!=="EN"&&w!=="AN"?k="N":b&&(w="AN"),k=w===C?w:"N";break;case"ES":k=(C=E>0?N[E-1]:"B")==="EN"&&E+1<D.length&&D[E+1]==="EN"?"EN":"N";break;case"ET":if(E>0&&N[E-1]==="EN"){k="EN";break}if(b){k="N";break}for(S=E+1,_=D.length;S<_&&D[S]==="ET";)S++;k=S<_&&D[S]==="EN"?"EN":"N";break;case"NSM":if(o&&!l){for(_=D.length,S=E+1;S<_&&D[S]==="NSM";)S++;if(S<_){var T=z[E],j=T>=1425&&T<=2303||T===64286;if(C=D[S],j&&(C==="R"||C==="AL")){k="R";break}}}k=E<1||(C=D[E-1])==="B"?"N":N[E-1];break;case"B":b=!1,c=!0,k=x;break;case"S":r=!0,k="N"}return k},W=function(z,D,N){var E=z.split("");return N&&R(E,N,{hiLevel:x}),E.reverse(),D&&D.reverse(),E.join("")},R=function(z,D,N){var E,C,w,S,_,k=-1,T=z.length,j=0,P=[],U=x?f:d,q=[];for(b=!1,c=!1,r=!1,C=0;C<T;C++)q[C]=A(z[C]);for(w=0;w<T;w++){if(_=j,P[w]=V(z,q,P,w),E=240&(j=U[_][m[P[w]]]),j&=15,D[w]=S=U[j][5],E>0)if(E===16){for(C=k;C<w;C++)D[C]=1;k=-1}else k=-1;if(U[j][6])k===-1&&(k=w);else if(k>-1){for(C=k;C<w;C++)D[C]=S;k=-1}q[w]==="B"&&(D[w]=0),N.hiLevel|=S}r&&(function(Z,B,X){for(var L=0;L<X;L++)if(Z[L]==="S"){B[L]=x;for(var I=L-1;I>=0&&Z[I]==="WS";I--)B[I]=x}})(q,D,T)},F=function(z,D,N,E,C){if(!(C.hiLevel<z)){if(z===1&&x===1&&!c)return D.reverse(),void(N&&N.reverse());for(var w,S,_,k,T=D.length,j=0;j<T;){if(E[j]>=z){for(_=j+1;_<T&&E[_]>=z;)_++;for(k=j,S=_-1;k<S;k++,S--)w=D[k],D[k]=D[S],D[S]=w,N&&(w=N[k],N[k]=N[S],N[S]=w);j=_}j++}}},$=function(z,D,N){var E=z.split(""),C={hiLevel:x};return N||(N=[]),R(E,N,C),(function(w,S,_){if(_.hiLevel!==0&&u)for(var k,T=0;T<w.length;T++)S[T]===1&&(k=p.indexOf(w[T]))>=0&&(w[T]=p[k+1])})(E,N,C),F(2,E,D,N,C),F(1,E,D,N,C),E.join("")};return this.__bidiEngine__.doBidiReorder=function(z,D,N){if((function(C,w){if(w)for(var S=0;S<C.length;S++)w[S]=S;l===void 0&&(l=M(C)),n===void 0&&(n=M(C))})(z,D),o||!a||n)if(o&&a&&l^n)x=l?1:0,z=W(z,D,N);else if(!o&&a&&n)x=l?1:0,z=$(z,D,N),z=W(z,D);else if(!o||l||a||n){if(o&&!a&&l^n)z=W(z,D),l?(x=0,z=$(z,D,N)):(x=1,z=$(z,D,N),z=W(z,D));else if(o&&l&&!a&&n)x=1,z=$(z,D,N),z=W(z,D);else if(!o&&!a&&l^n){var E=u;l?(x=1,z=$(z,D,N),x=0,u=!1,z=$(z,D,N),u=E):(x=0,z=$(z,D,N),z=W(z,D),x=1,u=!1,z=$(z,D,N),u=E,z=W(z,D))}}else x=0,z=$(z,D,N);else x=l?1:0,z=$(z,D,N);return z},this.__bidiEngine__.setOptions=function(z){z&&(o=z.isInputVisual,a=z.isOutputVisual,l=z.isInputRtl,n=z.isOutputRtl,u=z.isSymmetricSwapping)},this.__bidiEngine__.setOptions(s),this.__bidiEngine__};var i=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],e=new t.__bidiEngine__({isInputVisual:!0});t.API.events.push(["postProcessText",function(s){var c=s.text;s.x,s.y;var r=s.options||{};s.mutex,r.lang;var o=[];if(r.isInputVisual=typeof r.isInputVisual!="boolean"||r.isInputVisual,e.setOptions(r),Object.prototype.toString.call(c)==="[object Array]"){var l=0;for(o=[],l=0;l<c.length;l+=1)Object.prototype.toString.call(c[l])==="[object Array]"?o.push([e.doBidiReorder(c[l][0]),c[l][1],c[l][2]]):o.push([e.doBidiReorder(c[l])]);s.text=o}else s.text=e.doBidiReorder(c);e.setOptions({isInputVisual:!0})}])})(Ft),Ft.API.TTFFont=(function(){function t(i){var e;if(this.rawData=i,e=this.contents=new $a(i),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new jw(this),this.registerTTF()}return t.open=function(i){return new t(i)},t.prototype.parse=function(){return this.directory=new kw(this.contents),this.head=new Aw(this),this.name=new Mw(this),this.cmap=new c1(this),this.toUnicode={},this.hhea=new Nw(this),this.maxp=new Iw(this),this.hmtx=new Rw(this),this.post=new Tw(this),this.os2=new Ew(this),this.loca=new Bw(this),this.glyf=new Lw(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var i,e,s,c,r;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,l,a,n;for(n=[],o=0,l=(a=this.bbox).length;o<l;o++)i=a[o],n.push(Math.round(i*this.scaleFactor));return n}).call(this),this.stemV=0,this.post.exists?(s=255&(c=this.post.italic_angle),32768&(e=c>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+s)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(r=this.familyClass)===1||r===2||r===3||r===4||r===5||r===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(i){var e;return((e=this.cmap.unicode)!=null?e.codeMap[i]:void 0)||0},t.prototype.widthOfGlyph=function(i){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(i).advance*e},t.prototype.widthOfString=function(i,e,s){var c,r,o,l;for(o=0,r=0,l=(i=""+i).length;0<=l?r<l:r>l;r=0<=l?++r:--r)c=i.charCodeAt(r),o+=this.widthOfGlyph(this.characterToGlyph(c))+s*(1e3/e)||0;return o*(e/1e3)},t.prototype.lineHeight=function(i,e){var s;return e==null&&(e=!1),s=e?this.lineGap:0,(this.ascender+s-this.decender)/1e3*i},t})();var Ti,$a=(function(){function t(i){this.data=i??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(i){return this.data[this.pos++]=i},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(i){return this.writeByte(i>>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt32=function(){var i;return(i=this.readUInt32())>=2147483648?i-4294967296:i},t.prototype.writeInt32=function(i){return i<0&&(i+=4294967296),this.writeUInt32(i)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(i){return this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt16=function(){var i;return(i=this.readUInt16())>=32768?i-65536:i},t.prototype.writeInt16=function(i){return i<0&&(i+=65536),this.writeUInt16(i)},t.prototype.readString=function(i){var e,s;for(s=[],e=0;0<=i?e<i:e>i;e=0<=i?++e:--e)s[e]=String.fromCharCode(this.readByte());return s.join("")},t.prototype.writeString=function(i){var e,s,c;for(c=[],e=0,s=i.length;0<=s?e<s:e>s;e=0<=s?++e:--e)c.push(this.writeByte(i.charCodeAt(e)));return c},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(i){return this.writeInt16(i)},t.prototype.readLongLong=function(){var i,e,s,c,r,o,l,a;return i=this.readByte(),e=this.readByte(),s=this.readByte(),c=this.readByte(),r=this.readByte(),o=this.readByte(),l=this.readByte(),a=this.readByte(),128&i?-1*(72057594037927940*(255^i)+281474976710656*(255^e)+1099511627776*(255^s)+4294967296*(255^c)+16777216*(255^r)+65536*(255^o)+256*(255^l)+(255^a)+1):72057594037927940*i+281474976710656*e+1099511627776*s+4294967296*c+16777216*r+65536*o+256*l+a},t.prototype.writeLongLong=function(i){var e,s;return e=Math.floor(i/4294967296),s=4294967295&i,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(s>>24&255),this.writeByte(s>>16&255),this.writeByte(s>>8&255),this.writeByte(255&s)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(i){return this.writeInt32(i)},t.prototype.read=function(i){var e,s;for(e=[],s=0;0<=i?s<i:s>i;s=0<=i?++s:--s)e.push(this.readByte());return e},t.prototype.write=function(i){var e,s,c,r;for(r=[],s=0,c=i.length;s<c;s++)e=i[s],r.push(this.writeByte(e));return r},t})(),kw=(function(){var t;function i(e){var s,c,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},c=0,r=this.tableCount;0<=r?c<r:c>r;c=0<=r?++c:--c)s={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[s.tag]=s}return i.prototype.encode=function(e){var s,c,r,o,l,a,n,u,h,d,f,m,g;for(g in f=Object.keys(e).length,a=Math.log(2),h=16*Math.floor(Math.log(f)/a),o=Math.floor(h/a),u=16*f-h,(c=new $a).writeInt(this.scalarType),c.writeShort(f),c.writeShort(h),c.writeShort(o),c.writeShort(u),r=16*f,n=c.pos+r,l=null,m=[],e)for(d=e[g],c.writeString(g),c.writeInt(t(d)),c.writeInt(n),c.writeInt(d.length),m=m.concat(d),g==="head"&&(l=n),n+=d.length;n%4;)m.push(0),n++;return c.write(m),s=2981146554-t(c.data),c.pos=l+8,c.writeUInt32(s),c.data},t=function(e){var s,c,r,o;for(e=f1.call(e);e.length%4;)e.push(0);for(r=new $a(e),c=0,s=0,o=e.length;s<o;s=s+=4)c+=r.readUInt32();return 4294967295&c},i})(),Cw={}.hasOwnProperty,Xi=function(t,i){for(var e in i)Cw.call(i,e)&&(t[e]=i[e]);function s(){this.constructor=t}return s.prototype=i.prototype,t.prototype=new s,t.__super__=i.prototype,t};Ti=(function(){function t(i){var e;this.file=i,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t})();var Aw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="head",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.revision=i.readInt(),this.checkSumAdjustment=i.readInt(),this.magicNumber=i.readInt(),this.flags=i.readShort(),this.unitsPerEm=i.readShort(),this.created=i.readLongLong(),this.modified=i.readLongLong(),this.xMin=i.readShort(),this.yMin=i.readShort(),this.xMax=i.readShort(),this.yMax=i.readShort(),this.macStyle=i.readShort(),this.lowestRecPPEM=i.readShort(),this.fontDirectionHint=i.readShort(),this.indexToLocFormat=i.readShort(),this.glyphDataFormat=i.readShort()},t.prototype.encode=function(i){var e;return(e=new $a).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(i),e.writeShort(this.glyphDataFormat),e.data},t})(),om=(function(){function t(i,e){var s,c,r,o,l,a,n,u,h,d,f,m,g,p,v,b,x;switch(this.platformID=i.readUInt16(),this.encodingID=i.readShort(),this.offset=e+i.readInt(),h=i.pos,i.pos=this.offset,this.format=i.readUInt16(),this.length=i.readUInt16(),this.language=i.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(a=0;a<256;++a)this.codeMap[a]=i.readByte();break;case 4:for(f=i.readUInt16(),d=f/2,i.pos+=6,r=(function(){var A,M;for(M=[],a=A=0;0<=d?A<d:A>d;a=0<=d?++A:--A)M.push(i.readUInt16());return M})(),i.pos+=2,g=(function(){var A,M;for(M=[],a=A=0;0<=d?A<d:A>d;a=0<=d?++A:--A)M.push(i.readUInt16());return M})(),n=(function(){var A,M;for(M=[],a=A=0;0<=d?A<d:A>d;a=0<=d?++A:--A)M.push(i.readUInt16());return M})(),u=(function(){var A,M;for(M=[],a=A=0;0<=d?A<d:A>d;a=0<=d?++A:--A)M.push(i.readUInt16());return M})(),c=(this.length-i.pos+this.offset)/2,l=(function(){var A,M;for(M=[],a=A=0;0<=c?A<c:A>c;a=0<=c?++A:--A)M.push(i.readUInt16());return M})(),a=v=0,x=r.length;v<x;a=++v)for(p=r[a],s=b=m=g[a];m<=p?b<=p:b>=p;s=m<=p?++b:--b)u[a]===0?o=s+n[a]:(o=l[u[a]/2+(s-m)-(d-a)]||0)!==0&&(o+=n[a]),this.codeMap[s]=65535&o}i.pos=h}return t.encode=function(i,e){var s,c,r,o,l,a,n,u,h,d,f,m,g,p,v,b,x,A,M,V,W,R,F,$,z,D,N,E,C,w,S,_,k,T,j,P,U,q,Z,B,X,L,I,G,ee,se;switch(E=new $a,o=Object.keys(i).sort(function(te,re){return te-re}),e){case"macroman":for(g=0,p=(function(){var te=[];for(m=0;m<256;++m)te.push(0);return te})(),b={0:0},r={},C=0,k=o.length;C<k;C++)b[I=i[c=o[C]]]==null&&(b[I]=++g),r[c]={old:i[c],new:b[i[c]]},p[c]=b[i[c]];return E.writeUInt16(1),E.writeUInt16(0),E.writeUInt32(12),E.writeUInt16(0),E.writeUInt16(262),E.writeUInt16(0),E.write(p),{charMap:r,subtable:E.data,maxGlyphID:g+1};case"unicode":for(D=[],h=[],x=0,b={},s={},v=n=null,w=0,T=o.length;w<T;w++)b[M=i[c=o[w]]]==null&&(b[M]=++x),s[c]={old:M,new:b[M]},l=b[M]-c,v!=null&&l===n||(v&&h.push(v),D.push(c),n=l),v=c;for(v&&h.push(v),h.push(65535),D.push(65535),$=2*(F=D.length),R=2*Math.pow(Math.log(F)/Math.LN2,2),d=Math.log(R/2)/Math.LN2,W=2*F-R,a=[],V=[],f=[],m=S=0,j=D.length;S<j;m=++S){if(z=D[m],u=h[m],z===65535){a.push(0),V.push(0);break}if(z-(N=s[z].new)>=32768)for(a.push(0),V.push(2*(f.length+F-m)),c=_=z;z<=u?_<=u:_>=u;c=z<=u?++_:--_)f.push(s[c].new);else a.push(N-z),V.push(0)}for(E.writeUInt16(3),E.writeUInt16(1),E.writeUInt32(12),E.writeUInt16(4),E.writeUInt16(16+8*F+2*f.length),E.writeUInt16(0),E.writeUInt16($),E.writeUInt16(R),E.writeUInt16(d),E.writeUInt16(W),X=0,P=h.length;X<P;X++)c=h[X],E.writeUInt16(c);for(E.writeUInt16(0),L=0,U=D.length;L<U;L++)c=D[L],E.writeUInt16(c);for(G=0,q=a.length;G<q;G++)l=a[G],E.writeUInt16(l);for(ee=0,Z=V.length;ee<Z;ee++)A=V[ee],E.writeUInt16(A);for(se=0,B=f.length;se<B;se++)g=f[se],E.writeUInt16(g);return{charMap:s,subtable:E.data,maxGlyphID:x+1}}},t})(),c1=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="cmap",t.prototype.parse=function(i){var e,s,c;for(i.pos=this.offset,this.version=i.readUInt16(),c=i.readUInt16(),this.tables=[],this.unicode=null,s=0;0<=c?s<c:s>c;s=0<=c?++s:--s)e=new om(i,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(i,e){var s,c;return e==null&&(e="macroman"),s=om.encode(i,e),(c=new $a).writeUInt16(0),c.writeUInt16(1),s.table=c.data.concat(s.subtable),s},t})(),Nw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="hhea",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.ascender=i.readShort(),this.decender=i.readShort(),this.lineGap=i.readShort(),this.advanceWidthMax=i.readShort(),this.minLeftSideBearing=i.readShort(),this.minRightSideBearing=i.readShort(),this.xMaxExtent=i.readShort(),this.caretSlopeRise=i.readShort(),this.caretSlopeRun=i.readShort(),this.caretOffset=i.readShort(),i.pos+=8,this.metricDataFormat=i.readShort(),this.numberOfMetrics=i.readUInt16()},t})(),Ew=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="OS/2",t.prototype.parse=function(i){if(i.pos=this.offset,this.version=i.readUInt16(),this.averageCharWidth=i.readShort(),this.weightClass=i.readUInt16(),this.widthClass=i.readUInt16(),this.type=i.readShort(),this.ySubscriptXSize=i.readShort(),this.ySubscriptYSize=i.readShort(),this.ySubscriptXOffset=i.readShort(),this.ySubscriptYOffset=i.readShort(),this.ySuperscriptXSize=i.readShort(),this.ySuperscriptYSize=i.readShort(),this.ySuperscriptXOffset=i.readShort(),this.ySuperscriptYOffset=i.readShort(),this.yStrikeoutSize=i.readShort(),this.yStrikeoutPosition=i.readShort(),this.familyClass=i.readShort(),this.panose=(function(){var e,s;for(s=[],e=0;e<10;++e)s.push(i.readByte());return s})(),this.charRange=(function(){var e,s;for(s=[],e=0;e<4;++e)s.push(i.readInt());return s})(),this.vendorID=i.readString(4),this.selection=i.readShort(),this.firstCharIndex=i.readShort(),this.lastCharIndex=i.readShort(),this.version>0&&(this.ascent=i.readShort(),this.descent=i.readShort(),this.lineGap=i.readShort(),this.winAscent=i.readShort(),this.winDescent=i.readShort(),this.codePageRange=(function(){var e,s;for(s=[],e=0;e<2;e=++e)s.push(i.readInt());return s})(),this.version>1))return this.xHeight=i.readShort(),this.capHeight=i.readShort(),this.defaultChar=i.readShort(),this.breakChar=i.readShort(),this.maxContext=i.readShort()},t})(),Tw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="post",t.prototype.parse=function(i){var e,s,c;switch(i.pos=this.offset,this.format=i.readInt(),this.italicAngle=i.readInt(),this.underlinePosition=i.readShort(),this.underlineThickness=i.readShort(),this.isFixedPitch=i.readInt(),this.minMemType42=i.readInt(),this.maxMemType42=i.readInt(),this.minMemType1=i.readInt(),this.maxMemType1=i.readInt(),this.format){case 65536:case 196608:break;case 131072:var r;for(s=i.readUInt16(),this.glyphNameIndex=[],r=0;0<=s?r<s:r>s;r=0<=s?++r:--r)this.glyphNameIndex.push(i.readUInt16());for(this.names=[],c=[];i.pos<this.offset+this.length;)e=i.readByte(),c.push(this.names.push(i.readString(e)));return c;case 151552:return s=i.readUInt16(),this.offsets=i.read(s);case 262144:return this.map=(function(){var o,l,a;for(a=[],r=o=0,l=this.file.maxp.numGlyphs;0<=l?o<l:o>l;r=0<=l?++o:--o)a.push(i.readUInt32());return a}).call(this)}},t})(),Pw=function(t,i){this.raw=t,this.length=t.length,this.platformID=i.platformID,this.encodingID=i.encodingID,this.languageID=i.languageID},Mw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="name",t.prototype.parse=function(i){var e,s,c,r,o,l,a,n,u,h,d;for(i.pos=this.offset,i.readShort(),e=i.readShort(),l=i.readShort(),s=[],r=0;0<=e?r<e:r>e;r=0<=e?++r:--r)s.push({platformID:i.readShort(),encodingID:i.readShort(),languageID:i.readShort(),nameID:i.readShort(),length:i.readShort(),offset:this.offset+l+i.readShort()});for(a={},r=u=0,h=s.length;u<h;r=++u)c=s[r],i.pos=c.offset,n=i.readString(c.length),o=new Pw(n,c),a[d=c.nameID]==null&&(a[d]=[]),a[c.nameID].push(o);this.strings=a,this.copyright=a[0],this.fontFamily=a[1],this.fontSubfamily=a[2],this.uniqueSubfamily=a[3],this.fontName=a[4],this.version=a[5];try{this.postscriptName=a[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=a[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=a[7],this.manufacturer=a[8],this.designer=a[9],this.description=a[10],this.vendorUrl=a[11],this.designerUrl=a[12],this.license=a[13],this.licenseUrl=a[14],this.preferredFamily=a[15],this.preferredSubfamily=a[17],this.compatibleFull=a[18],this.sampleText=a[19]},t})(),Iw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="maxp",t.prototype.parse=function(i){return i.pos=this.offset,this.version=i.readInt(),this.numGlyphs=i.readUInt16(),this.maxPoints=i.readUInt16(),this.maxContours=i.readUInt16(),this.maxCompositePoints=i.readUInt16(),this.maxComponentContours=i.readUInt16(),this.maxZones=i.readUInt16(),this.maxTwilightPoints=i.readUInt16(),this.maxStorage=i.readUInt16(),this.maxFunctionDefs=i.readUInt16(),this.maxInstructionDefs=i.readUInt16(),this.maxStackElements=i.readUInt16(),this.maxSizeOfInstructions=i.readUInt16(),this.maxComponentElements=i.readUInt16(),this.maxComponentDepth=i.readUInt16()},t})(),Rw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="hmtx",t.prototype.parse=function(i){var e,s,c,r,o,l,a;for(i.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:i.readUInt16(),lsb:i.readInt16()});for(c=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var n,u;for(u=[],e=n=0;0<=c?n<c:n>c;e=0<=c?++n:--n)u.push(i.readInt16());return u})(),this.widths=(function(){var n,u,h,d;for(d=[],n=0,u=(h=this.metrics).length;n<u;n++)r=h[n],d.push(r.advance);return d}).call(this),s=this.widths[this.widths.length-1],a=[],e=o=0;0<=c?o<c:o>c;e=0<=c?++o:--o)a.push(this.widths.push(s));return a},t.prototype.forGlyph=function(i){return i in this.metrics?this.metrics[i]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[i-this.metrics.length]}},t})(),f1=[].slice,Lw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(i){var e,s,c,r,o,l,a,n,u,h;return i in this.cache?this.cache[i]:(r=this.file.loca,e=this.file.contents,s=r.indexOf(i),(c=r.lengthOf(i))===0?this.cache[i]=null:(e.pos=this.offset+s,o=(l=new $a(e.read(c))).readShort(),n=l.readShort(),h=l.readShort(),a=l.readShort(),u=l.readShort(),this.cache[i]=o===-1?new Fw(l,n,h,a,u):new Ow(l,o,n,h,a,u),this.cache[i]))},t.prototype.encode=function(i,e,s){var c,r,o,l,a;for(o=[],r=[],l=0,a=e.length;l<a;l++)c=i[e[l]],r.push(o.length),c&&(o=o.concat(c.encode(s)));return r.push(o.length),{table:o,offsets:r}},t})(),Ow=(function(){function t(i,e,s,c,r,o){this.raw=i,this.numberOfContours=e,this.xMin=s,this.yMin=c,this.xMax=r,this.yMax=o,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t})(),Fw=(function(){function t(i,e,s,c,r){var o,l;for(this.raw=i,this.xMin=e,this.yMin=s,this.xMax=c,this.yMax=r,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;l=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&l;)o.pos+=1&l?4:2,128&l?o.pos+=8:64&l?o.pos+=4:8&l&&(o.pos+=2)}return t.prototype.encode=function(){var i,e,s;for(e=new $a(f1.call(this.raw.data)),i=0,s=this.glyphIDs.length;i<s;++i)e.pos=this.glyphOffsets[i];return e.data},t})(),Bw=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Xi(t,Ti),t.prototype.tag="loca",t.prototype.parse=function(i){var e,s;return i.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var c,r;for(r=[],s=0,c=this.length;s<c;s+=2)r.push(2*i.readUInt16());return r}).call(this):(function(){var c,r;for(r=[],s=0,c=this.length;s<c;s+=4)r.push(i.readUInt32());return r}).call(this)},t.prototype.indexOf=function(i){return this.offsets[i]},t.prototype.lengthOf=function(i){return this.offsets[i+1]-this.offsets[i]},t.prototype.encode=function(i,e){for(var s=new Uint32Array(this.offsets.length),c=0,r=0,o=0;o<s.length;++o)if(s[o]=c,r<e.length&&e[r]==o){++r,s[o]=c;var l=this.offsets[o],a=this.offsets[o+1]-l;a>0&&(c+=a)}for(var n=new Array(4*s.length),u=0;u<s.length;++u)n[4*u+3]=255&s[u],n[4*u+2]=(65280&s[u])>>8,n[4*u+1]=(16711680&s[u])>>16,n[4*u]=(4278190080&s[u])>>24;return n},t})(),jw=(function(){function t(i){this.font=i,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var i,e,s,c,r;for(e in c=this.font.cmap.tables[0].codeMap,i={},r=this.subset)s=r[e],i[e]=c[s];return i},t.prototype.glyphsFor=function(i){var e,s,c,r,o,l,a;for(c={},o=0,l=i.length;o<l;o++)c[r=i[o]]=this.font.glyf.glyphFor(r);for(r in e=[],c)(s=c[r])!=null&&s.compound&&e.push.apply(e,s.glyphIDs);if(e.length>0)for(r in a=this.glyphsFor(e))s=a[r],c[r]=s;return c},t.prototype.encode=function(i,e){var s,c,r,o,l,a,n,u,h,d,f,m,g,p,v;for(c in s=c1.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(i),f={0:0},v=s.charMap)f[(a=v[c]).old]=a.new;for(m in d=s.maxGlyphID,o)m in f||(f[m]=d++);return u=(function(b){var x,A;for(x in A={},b)A[b[x]]=x;return A})(f),h=Object.keys(u).sort(function(b,x){return b-x}),g=(function(){var b,x,A;for(A=[],b=0,x=h.length;b<x;b++)l=h[b],A.push(u[l]);return A})(),r=this.font.glyf.encode(o,g,f),n=this.font.loca.encode(r.offsets,g),p={cmap:this.font.cmap.raw(),glyf:r.table,loca:n,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},t})();Ft.API.PDFObject=(function(){var t;function i(){}return t=function(e,s){return(Array(s+1).join("0")+e).slice(-s)},i.convert=function(e){var s,c,r,o;if(Array.isArray(e))return"["+(function(){var l,a,n;for(n=[],l=0,a=e.length;l<a;l++)s=e[l],n.push(i.convert(s));return n})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e?.isString)return"("+e+")";if(e instanceof Date)return"(D:"+t(e.getUTCFullYear(),4)+t(e.getUTCMonth(),2)+t(e.getUTCDate(),2)+t(e.getUTCHours(),2)+t(e.getUTCMinutes(),2)+t(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(c in r=["<<"],e)o=e[c],r.push("/"+c+" "+i.convert(o));return r.push(">>"),r.join(`
79
+ `)}return""+e},i})();function d1(t,i,e,s,c){s=s||{};var r=1.15,o=c.internal.scaleFactor,l=c.internal.getFontSize()/o,a=c.getLineHeightFactor?c.getLineHeightFactor():r,n=l*a,u=/\r\n|\r|\n/g,h="",d=1;if((s.valign==="middle"||s.valign==="bottom"||s.halign==="center"||s.halign==="right")&&(h=typeof t=="string"?t.split(u):t,d=h.length||1),e+=l*(2-r),s.valign==="middle"?e-=d/2*n:s.valign==="bottom"&&(e-=d*n),s.halign==="center"||s.halign==="right"){var f=l;if(s.halign==="center"&&(f*=.5),h&&d>=1){for(var m=0;m<h.length;m++)c.text(h[m],i-c.getStringUnitWidth(h[m])*f,e),e+=n;return c}i-=c.getStringUnitWidth(t)*f}return s.halign==="justify"?c.text(t,i,e,{maxWidth:s.maxWidth||100,align:"justify"}):c.text(t,i,e),c}var lm={},oo=(function(){function t(i){this.jsPDFDocument=i,this.userStyles={textColor:i.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:i.internal.getFontSize(),fontStyle:i.internal.getFont().fontStyle,font:i.internal.getFont().fontName,lineWidth:i.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:i.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return t.setDefaults=function(i,e){e===void 0&&(e=null),e?e.__autoTableDocumentDefaults=i:lm=i},t.unifyColor=function(i){return Array.isArray(i)?i:typeof i=="number"?[i,i,i]:typeof i=="string"?[i]:null},t.prototype.applyStyles=function(i,e){var s,c,r;e===void 0&&(e=!1),i.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(i.fontStyle);var o=this.jsPDFDocument.internal.getFont(),l=o.fontStyle,a=o.fontName;if(i.font&&(a=i.font),i.fontStyle){l=i.fontStyle;var n=this.getFontList()[a];n&&n.indexOf(l)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(n[0]),l=n[0])}if(this.jsPDFDocument.setFont(a,l),i.fontSize&&this.jsPDFDocument.setFontSize(i.fontSize),!e){var u=t.unifyColor(i.fillColor);u&&(s=this.jsPDFDocument).setFillColor.apply(s,u),u=t.unifyColor(i.textColor),u&&(c=this.jsPDFDocument).setTextColor.apply(c,u),u=t.unifyColor(i.lineColor),u&&(r=this.jsPDFDocument).setDrawColor.apply(r,u),typeof i.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(i.lineWidth)}},t.prototype.splitTextToSize=function(i,e,s){return this.jsPDFDocument.splitTextToSize(i,e,s)},t.prototype.rect=function(i,e,s,c,r){return this.jsPDFDocument.rect(i,e,s,c,r)},t.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},t.prototype.getTextWidth=function(i){return this.jsPDFDocument.getTextWidth(i)},t.prototype.getDocument=function(){return this.jsPDFDocument},t.prototype.setPage=function(i){this.jsPDFDocument.setPage(i)},t.prototype.addPage=function(){return this.jsPDFDocument.addPage()},t.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},t.prototype.getGlobalOptions=function(){return lm||{}},t.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},t.prototype.pageSize=function(){var i=this.jsPDFDocument.internal.pageSize;return i.width==null&&(i={width:i.getWidth(),height:i.getHeight()}),i},t.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},t.prototype.getLineHeightFactor=function(){var i=this.jsPDFDocument;return i.getLineHeightFactor?i.getLineHeightFactor():1.15},t.prototype.getLineHeight=function(i){return i/this.scaleFactor()*this.getLineHeightFactor()},t.prototype.pageNumber=function(){var i=this.jsPDFDocument.internal.getCurrentPageInfo();return i?i.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},t})(),Ff=function(t,i){return Ff=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(e[c]=s[c])},Ff(t,i)};function h1(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");Ff(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var p1=(function(t){h1(i,t);function i(e){var s=t.call(this)||this;return s._element=e,s}return i})(Array);function Dw(t){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/t,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function Vw(t){var i={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return i[t]}function Nu(t,i,e){e.applyStyles(i,!0);var s=Array.isArray(t)?t:[t],c=s.map(function(r){return e.getTextWidth(r)}).reduce(function(r,o){return Math.max(r,o)},0);return c}function m1(t,i,e,s){var c=i.settings.tableLineWidth,r=i.settings.tableLineColor;t.applyStyles({lineWidth:c,lineColor:r});var o=g1(c,!1);o&&t.rect(e.x,e.y,i.getWidth(t.pageSize().width),s.y-e.y,o)}function g1(t,i){var e=t>0,s=i||i===0;return e&&s?"DF":e?"S":s?"F":null}function qu(t,i){var e,s,c,r;if(t=t||i,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(t.length===3)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(t.length===2)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t.length===1?t=t[0]:t=i}return typeof t=="object"?(typeof t.vertical=="number"&&(t.top=t.vertical,t.bottom=t.vertical),typeof t.horizontal=="number"&&(t.right=t.horizontal,t.left=t.horizontal),{left:(e=t.left)!==null&&e!==void 0?e:i,top:(s=t.top)!==null&&s!==void 0?s:i,right:(c=t.right)!==null&&c!==void 0?c:i,bottom:(r=t.bottom)!==null&&r!==void 0?r:i}):(typeof t!="number"&&(t=i),{top:t,right:t,bottom:t,left:t})}function v1(t,i){var e=qu(i.settings.margin,0);return t.pageSize().width-(e.left+e.right)}function zw(t,i,e,s,c){var r={},o=1.3333333333333333,l=ef(i,function(x){return c.getComputedStyle(x).backgroundColor});l!=null&&(r.fillColor=l);var a=ef(i,function(x){return c.getComputedStyle(x).color});a!=null&&(r.textColor=a);var n=$w(s,e);n&&(r.cellPadding=n);var u="borderTopColor",h=o*e,d=s.borderTopWidth;if(s.borderBottomWidth===d&&s.borderRightWidth===d&&s.borderLeftWidth===d){var f=(parseFloat(d)||0)/h;f&&(r.lineWidth=f)}else r.lineWidth={top:(parseFloat(s.borderTopWidth)||0)/h,right:(parseFloat(s.borderRightWidth)||0)/h,bottom:(parseFloat(s.borderBottomWidth)||0)/h,left:(parseFloat(s.borderLeftWidth)||0)/h},r.lineWidth.top||(r.lineWidth.right?u="borderRightColor":r.lineWidth.bottom?u="borderBottomColor":r.lineWidth.left&&(u="borderLeftColor"));var m=ef(i,function(x){return c.getComputedStyle(x)[u]});m!=null&&(r.lineColor=m);var g=["left","right","center","justify"];g.indexOf(s.textAlign)!==-1&&(r.halign=s.textAlign),g=["middle","bottom","top"],g.indexOf(s.verticalAlign)!==-1&&(r.valign=s.verticalAlign);var p=parseInt(s.fontSize||"");isNaN(p)||(r.fontSize=p/o);var v=Uw(s);v&&(r.fontStyle=v);var b=(s.fontFamily||"").toLowerCase();return t.indexOf(b)!==-1&&(r.font=b),r}function Uw(t){var i="";return(t.fontWeight==="bold"||t.fontWeight==="bolder"||parseInt(t.fontWeight)>=700)&&(i="bold"),(t.fontStyle==="italic"||t.fontStyle==="oblique")&&(i+="italic"),i}function ef(t,i){var e=b1(t,i);if(!e)return null;var s=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!s||!Array.isArray(s))return null;var c=[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])],r=parseInt(s[4]);return r===0||isNaN(c[0])||isNaN(c[1])||isNaN(c[2])?null:c}function b1(t,i){var e=i(t);return e==="rgba(0, 0, 0, 0)"||e==="transparent"||e==="initial"||e==="inherit"?t.parentElement==null?null:b1(t.parentElement,i):e}function $w(t,i){var e=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],s=96/(72/i),c=(parseInt(t.lineHeight)-parseInt(t.fontSize))/i/2,r=e.map(function(l){return parseInt(l||"0")/s}),o=qu(r,0);return c>o.top&&(o.top=c),c>o.bottom&&(o.bottom=c),o}function y1(t,i,e,s,c){var r,o;s===void 0&&(s=!1),c===void 0&&(c=!1);var l;typeof i=="string"?l=e.document.querySelector(i):l=i;var a=Object.keys(t.getFontList()),n=t.scaleFactor(),u=[],h=[],d=[];if(!l)return console.error("Html table could not be found with input: ",i),{head:u,body:h,foot:d};for(var f=0;f<l.rows.length;f++){var m=l.rows[f],g=(o=(r=m?.parentElement)===null||r===void 0?void 0:r.tagName)===null||o===void 0?void 0:o.toLowerCase(),p=qw(a,n,e,m,s,c);p&&(g==="thead"?u.push(p):g==="tfoot"?d.push(p):h.push(p))}return{head:u,body:h,foot:d}}function qw(t,i,e,s,c,r){for(var o=new p1(s),l=0;l<s.cells.length;l++){var a=s.cells[l],n=e.getComputedStyle(a);if(c||n.display!=="none"){var u=void 0;r&&(u=zw(t,a,i,n,e)),o.push({rowSpan:a.rowSpan,colSpan:a.colSpan,styles:u,_element:a,content:Hw(a)})}}var h=e.getComputedStyle(s);if(o.length>0&&(c||h.display!=="none"))return o}function Hw(t){var i=t.cloneNode(!0);return i.innerHTML=i.innerHTML.replace(/\n/g,"").replace(/ +/g," "),i.innerHTML=i.innerHTML.split(/<br.*?>/).map(function(e){return e.trim()}).join(`
80
+ `),i.innerText||i.textContent||""}function Ww(t,i,e){for(var s=0,c=[t,i,e];s<c.length;s++){var r=c[s];r&&typeof r!="object"&&console.error("The options parameter should be of type object, is: "+typeof r),r.startY&&typeof r.startY!="number"&&(console.error("Invalid value for startY option",r.startY),delete r.startY)}}function ca(t,i,e,s,c){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),o=1;o<arguments.length;o++){var l=arguments[o];if(l!=null)for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(r[a]=l[a])}return r}function w1(t,i){var e=new oo(t),s=e.getDocumentOptions(),c=e.getGlobalOptions();Ww(c,s,i);var r=ca({},c,s,i),o;typeof window<"u"&&(o=window);var l=Gw(c,s,i),a=Xw(c,s,i),n=Kw(e,r),u=Zw(e,r,o);return{id:i.tableId,content:u,hooks:a,styles:l,settings:n}}function Gw(t,i,e){for(var s={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},c=function(a){if(a==="columnStyles"){var n=t[a],u=i[a],h=e[a];s.columnStyles=ca({},n,u,h)}else{var d=[t,i,e],f=d.map(function(m){return m[a]||{}});s[a]=ca({},f[0],f[1],f[2])}},r=0,o=Object.keys(s);r<o.length;r++){var l=o[r];c(l)}return s}function Xw(t,i,e){for(var s=[t,i,e],c={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},r=0,o=s;r<o.length;r++){var l=o[r];l.didParseCell&&c.didParseCell.push(l.didParseCell),l.willDrawCell&&c.willDrawCell.push(l.willDrawCell),l.didDrawCell&&c.didDrawCell.push(l.didDrawCell),l.willDrawPage&&c.willDrawPage.push(l.willDrawPage),l.didDrawPage&&c.didDrawPage.push(l.didDrawPage)}return c}function Kw(t,i){var e,s,c,r,o,l,a,n,u,h,d,f,m=qu(i.margin,40/t.scaleFactor()),g=(e=Yw(t,i.startY))!==null&&e!==void 0?e:m.top,p;i.showFoot===!0?p="everyPage":i.showFoot===!1?p="never":p=(s=i.showFoot)!==null&&s!==void 0?s:"everyPage";var v;i.showHead===!0?v="everyPage":i.showHead===!1?v="never":v=(c=i.showHead)!==null&&c!==void 0?c:"everyPage";var b=(r=i.useCss)!==null&&r!==void 0?r:!1,x=i.theme||(b?"plain":"striped"),A=!!i.horizontalPageBreak,M=(o=i.horizontalPageBreakRepeat)!==null&&o!==void 0?o:null;return{includeHiddenHtml:(l=i.includeHiddenHtml)!==null&&l!==void 0?l:!1,useCss:b,theme:x,startY:g,margin:m,pageBreak:(a=i.pageBreak)!==null&&a!==void 0?a:"auto",rowPageBreak:(n=i.rowPageBreak)!==null&&n!==void 0?n:"auto",tableWidth:(u=i.tableWidth)!==null&&u!==void 0?u:"auto",showHead:v,showFoot:p,tableLineWidth:(h=i.tableLineWidth)!==null&&h!==void 0?h:0,tableLineColor:(d=i.tableLineColor)!==null&&d!==void 0?d:200,horizontalPageBreak:A,horizontalPageBreakRepeat:M,horizontalPageBreakBehaviour:(f=i.horizontalPageBreakBehaviour)!==null&&f!==void 0?f:"afterAllRows"}}function Yw(t,i){var e=t.getLastAutoTable(),s=t.scaleFactor(),c=t.pageNumber(),r=!1;if(e&&e.startPageNumber){var o=e.startPageNumber+e.pageNumber-1;r=o===c}return typeof i=="number"?i:(i==null||i===!1)&&r&&e?.finalY!=null?e.finalY+20/s:null}function Zw(t,i,e){var s=i.head||[],c=i.body||[],r=i.foot||[];if(i.html){var o=i.includeHiddenHtml;if(e){var l=y1(t,i.html,e,o,i.useCss)||{};s=l.head||s,c=l.body||s,r=l.foot||s}else console.error("Cannot parse html in non browser environment")}var a=i.columns||Jw(s,c,r);return{columns:a,head:s,body:c,foot:r}}function Jw(t,i,e){var s=t[0]||i[0]||e[0]||[],c=[];return Object.keys(s).filter(function(r){return r!=="_element"}).forEach(function(r){var o=1,l;Array.isArray(s)?l=s[parseInt(r)]:l=s[r],typeof l=="object"&&!Array.isArray(l)&&(o=l?.colSpan||1);for(var a=0;a<o;a++){var n=void 0;Array.isArray(s)?n=c.length:n=r+(a>0?"_".concat(a):"");var u={dataKey:n};c.push(u)}}),c}var Bf=(function(){function t(i,e,s){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=s,this.doc=i.getDocument()}return t})(),Qw=(function(t){h1(i,t);function i(e,s,c,r,o,l){var a=t.call(this,e,s,l)||this;return a.cell=c,a.row=r,a.column=o,a.section=r.section,a}return i})(Bf),e3=(function(){function t(i,e){this.pageNumber=1,this.id=i.id,this.settings=i.settings,this.styles=i.styles,this.hooks=i.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(i){return this.head.reduce(function(e,s){return e+s.getMaxCellHeight(i)},0)},t.prototype.getFootHeight=function(i){return this.foot.reduce(function(e,s){return e+s.getMaxCellHeight(i)},0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(i,e,s,c,r,o){for(var l=0,a=e;l<a.length;l++){var n=a[l],u=new Qw(i,this,s,c,r,o),h=n(u)===!1;if(s.text=Array.isArray(s.text)?s.text:[s.text],h)return!1}return!0},t.prototype.callEndPageHooks=function(i,e){i.applyStyles(i.userStyles);for(var s=0,c=this.hooks.didDrawPage;s<c.length;s++){var r=c[s];r(new Bf(i,this,e))}},t.prototype.callWillDrawPageHooks=function(i,e){for(var s=0,c=this.hooks.willDrawPage;s<c.length;s++){var r=c[s];r(new Bf(i,this,e))}},t.prototype.getWidth=function(i){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var e=this.columns.reduce(function(c,r){return c+r.wrappedWidth},0);return e}else{var s=this.settings.margin;return i-s.left-s.right}},t})(),x1=(function(){function t(i,e,s,c,r){r===void 0&&(r=!1),this.height=0,this.raw=i,i instanceof p1&&(this.raw=i._element,this.element=i._element),this.index=e,this.section=s,this.cells=c,this.spansMultiplePages=r}return t.prototype.getMaxCellHeight=function(i){var e=this;return i.reduce(function(s,c){var r;return Math.max(s,((r=e.cells[c.index])===null||r===void 0?void 0:r.height)||0)},0)},t.prototype.hasRowSpan=function(i){var e=this;return i.filter(function(s){var c=e.cells[s.index];return c?c.rowSpan>1:!1}).length>0},t.prototype.canEntireRowFit=function(i,e){return this.getMaxCellHeight(e)<=i},t.prototype.getMinimumRowHeight=function(i,e){var s=this;return i.reduce(function(c,r){var o=s.cells[r.index];if(!o)return 0;var l=e.getLineHeight(o.styles.fontSize),a=o.padding("vertical"),n=a+l;return n>c?n:c},0)},t})(),_1=(function(){function t(i,e,s){var c;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=s,this.raw=i;var r=i;i!=null&&typeof i=="object"&&!Array.isArray(i)?(this.rowSpan=i.rowSpan||1,this.colSpan=i.colSpan||1,r=(c=i.content)!==null&&c!==void 0?c:i,i._element&&(this.raw=i._element)):(this.rowSpan=1,this.colSpan=1);var o=r!=null?""+r:"",l=/\r\n|\r|\n/g;this.text=o.split(l)}return t.prototype.getTextPos=function(){var i;if(this.styles.valign==="top")i=this.y+this.padding("top");else if(this.styles.valign==="bottom")i=this.y+this.height-this.padding("bottom");else{var e=this.height-this.padding("vertical");i=this.y+e/2+this.padding("top")}var s;if(this.styles.halign==="right")s=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var c=this.width-this.padding("horizontal");s=this.x+c/2+this.padding("left")}else s=this.x+this.padding("left");return{x:s,y:i}},t.prototype.getContentHeight=function(i,e){e===void 0&&(e=1.15);var s=Array.isArray(this.text)?this.text.length:1,c=this.styles.fontSize/i*e,r=s*c+this.padding("vertical");return Math.max(r,this.styles.minCellHeight)},t.prototype.padding=function(i){var e=qu(this.styles.cellPadding,0);return i==="vertical"?e.top+e.bottom:i==="horizontal"?e.left+e.right:e[i]},t})(),t3=(function(){function t(i,e,s){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=i,this.raw=e,this.index=s}return t.prototype.getMaxCustomCellWidth=function(i){for(var e=0,s=0,c=i.allRows();s<c.length;s++){var r=c[s],o=r.cells[this.index];o&&typeof o.styles.cellWidth=="number"&&(e=Math.max(e,o.styles.cellWidth))}return e},t})();function r3(t,i){n3(t,i);var e=[],s=0;i.columns.forEach(function(r){var o=r.getMaxCustomCellWidth(i);o?r.width=o:(r.width=r.wrappedWidth,e.push(r)),s+=r.width});var c=i.getWidth(t.pageSize().width)-s;c&&(c=jf(e,c,function(r){return Math.max(r.minReadableWidth,r.minWidth)})),c&&(c=jf(e,c,function(r){return r.minWidth})),c=Math.abs(c),!i.settings.horizontalPageBreak&&c>.1/t.scaleFactor()&&(c=c<1?c:Math.round(c),console.log("Of the table content, ".concat(c," units width could not fit page"))),a3(i),s3(i,t),i3(i)}function n3(t,i){var e=t.scaleFactor(),s=i.settings.horizontalPageBreak,c=v1(t,i);i.allRows().forEach(function(r){for(var o=0,l=i.columns;o<l.length;o++){var a=l[o],n=r.cells[a.index];if(n){var u=i.hooks.didParseCell;i.callCellHooks(t,u,n,r,a,null);var h=n.padding("horizontal");n.contentWidth=Nu(n.text,n.styles,t)+h;var d=Nu(n.text.join(" ").split(/[^\S\u00A0]+/),n.styles,t);if(n.minReadableWidth=d+n.padding("horizontal"),typeof n.styles.cellWidth=="number")n.minWidth=n.styles.cellWidth,n.wrappedWidth=n.styles.cellWidth;else if(n.styles.cellWidth==="wrap"||s===!0)n.contentWidth>c?(n.minWidth=c,n.wrappedWidth=c):(n.minWidth=n.contentWidth,n.wrappedWidth=n.contentWidth);else{var f=10/e;n.minWidth=n.styles.minCellWidth||f,n.wrappedWidth=n.contentWidth,n.minWidth>n.wrappedWidth&&(n.wrappedWidth=n.minWidth)}}}}),i.allRows().forEach(function(r){for(var o=0,l=i.columns;o<l.length;o++){var a=l[o],n=r.cells[a.index];if(n&&n.colSpan===1)a.wrappedWidth=Math.max(a.wrappedWidth,n.wrappedWidth),a.minWidth=Math.max(a.minWidth,n.minWidth),a.minReadableWidth=Math.max(a.minReadableWidth,n.minReadableWidth);else{var u=i.styles.columnStyles[a.dataKey]||i.styles.columnStyles[a.index]||{},h=u.cellWidth||u.minCellWidth;h&&typeof h=="number"&&(a.minWidth=h,a.wrappedWidth=h)}n&&(n.colSpan>1&&!a.minWidth&&(a.minWidth=n.minWidth),n.colSpan>1&&!a.wrappedWidth&&(a.wrappedWidth=n.minWidth))}})}function jf(t,i,e){for(var s=i,c=t.reduce(function(f,m){return f+m.wrappedWidth},0),r=0;r<t.length;r++){var o=t[r],l=o.wrappedWidth/c,a=s*l,n=o.width+a,u=e(o),h=n<u?u:n;i-=h-o.width,o.width=h}if(i=Math.round(i*1e10)/1e10,i){var d=t.filter(function(f){return i<0?f.width>e(f):!0});d.length&&(i=jf(d,i,e))}return i}function i3(t){for(var i={},e=1,s=t.allRows(),c=0;c<s.length;c++)for(var r=s[c],o=0,l=t.columns;o<l.length;o++){var a=l[o],n=i[a.index];if(e>1)e--,delete r.cells[a.index];else if(n)n.cell.height+=r.height,e=n.cell.colSpan,delete r.cells[a.index],n.left--,n.left<=1&&delete i[a.index];else{var u=r.cells[a.index];if(!u)continue;if(u.height=r.height,u.rowSpan>1){var h=s.length-c,d=u.rowSpan>h?h:u.rowSpan;i[a.index]={cell:u,left:d,row:r}}}}}function a3(t){for(var i=t.allRows(),e=0;e<i.length;e++)for(var s=i[e],c=null,r=0,o=0,l=0;l<t.columns.length;l++){var a=t.columns[l];if(o-=1,o>1&&t.columns[l+1])r+=a.width,delete s.cells[a.index];else if(c){var n=c;delete s.cells[a.index],c=null,n.width=a.width+r}else{var n=s.cells[a.index];if(!n)continue;if(o=n.colSpan,r=0,n.colSpan>1){c=n,r+=a.width;continue}n.width=a.width+r}}}function s3(t,i){for(var e={count:0,height:0},s=0,c=t.allRows();s<c.length;s++){for(var r=c[s],o=0,l=t.columns;o<l.length;o++){var a=l[o],n=r.cells[a.index];if(n){i.applyStyles(n.styles,!0);var u=n.width-n.padding("horizontal");if(n.styles.overflow==="linebreak")n.text=i.splitTextToSize(n.text,u+1/i.scaleFactor(),{fontSize:n.styles.fontSize});else if(n.styles.overflow==="ellipsize")n.text=um(n.text,u,n.styles,i,"...");else if(n.styles.overflow==="hidden")n.text=um(n.text,u,n.styles,i,"");else if(typeof n.styles.overflow=="function"){var h=n.styles.overflow(n.text,u);typeof h=="string"?n.text=[h]:n.text=h}n.contentHeight=n.getContentHeight(i.scaleFactor(),i.getLineHeightFactor());var d=n.contentHeight/n.rowSpan;n.rowSpan>1&&e.count*e.height<d*n.rowSpan?e={height:d,count:n.rowSpan}:e&&e.count>0&&e.height>d&&(d=e.height),d>r.height&&(r.height=d)}}e.count--}}function um(t,i,e,s,c){return t.map(function(r){return o3(r,i,e,s,c)})}function o3(t,i,e,s,c){var r=1e4*s.scaleFactor();if(i=Math.ceil(i*r)/r,i>=Nu(t,e,s))return t;for(;i<Nu(t+c,e,s)&&!(t.length<=1);)t=t.substring(0,t.length-1);return t.trim()+c}function S1(t,i){var e=new oo(t),s=l3(i,e.scaleFactor()),c=new e3(i,s);return r3(e,c),e.applyStyles(e.userStyles),c}function l3(t,i){var e=t.content,s=c3(e.columns);if(e.head.length===0){var c=cm(s,"head");c&&e.head.push(c)}if(e.foot.length===0){var c=cm(s,"foot");c&&e.foot.push(c)}var r=t.settings.theme,o=t.styles;return{columns:s,head:tf("head",e.head,s,o,r,i),body:tf("body",e.body,s,o,r,i),foot:tf("foot",e.foot,s,o,r,i)}}function tf(t,i,e,s,c,r){var o={},l=i.map(function(a,n){for(var u=0,h={},d=0,f=0,m=0,g=e;m<g.length;m++){var p=g[m];if(o[p.index]==null||o[p.index].left===0)if(f===0){var v=void 0;Array.isArray(a)?v=a[p.index-d-u]:v=a[p.dataKey];var b={};typeof v=="object"&&!Array.isArray(v)&&(b=v?.styles||{});var x=f3(t,p,n,c,s,r,b),A=new _1(v,x,t);h[p.dataKey]=A,h[p.index]=A,f=A.colSpan-1,o[p.index]={left:A.rowSpan-1,times:f}}else f--,d++;else o[p.index].left--,f=o[p.index].times,u++}return new x1(a,n,t,h)});return l}function cm(t,i){var e={};return t.forEach(function(s){if(s.raw!=null){var c=u3(i,s.raw);c!=null&&(e[s.dataKey]=c)}}),Object.keys(e).length>0?e:null}function u3(t,i){if(t==="head"){if(typeof i=="object")return i.header||null;if(typeof i=="string"||typeof i=="number")return i}else if(t==="foot"&&typeof i=="object")return i.footer;return null}function c3(t){return t.map(function(i,e){var s,c;return typeof i=="object"?c=(s=i.dataKey)!==null&&s!==void 0?s:e:c=e,new t3(c,i,e)})}function f3(t,i,e,s,c,r,o){var l=Vw(s),a;t==="head"?a=c.headStyles:t==="body"?a=c.bodyStyles:t==="foot"&&(a=c.footStyles);var n=ca({},l.table,l[t],c.styles,a),u=c.columnStyles[i.dataKey]||c.columnStyles[i.index]||{},h=t==="body"?u:{},d=t==="body"&&e%2===0?ca({},l.alternateRow,c.alternateRowStyles):{},f=Dw(r),m=ca({},f,n,d,h);return ca(m,o)}function d3(t,i,e){var s;e===void 0&&(e={});var c=v1(t,i),r=new Map,o=[],l=[],a=[];Array.isArray(i.settings.horizontalPageBreakRepeat)?a=i.settings.horizontalPageBreakRepeat:(typeof i.settings.horizontalPageBreakRepeat=="string"||typeof i.settings.horizontalPageBreakRepeat=="number")&&(a=[i.settings.horizontalPageBreakRepeat]),a.forEach(function(d){var f=i.columns.find(function(m){return m.dataKey===d||m.index===d});f&&!r.has(f.index)&&(r.set(f.index,!0),o.push(f.index),l.push(i.columns[f.index]),c-=f.wrappedWidth)});for(var n=!0,u=(s=e?.start)!==null&&s!==void 0?s:0;u<i.columns.length;){if(r.has(u)){u++;continue}var h=i.columns[u].wrappedWidth;if(n||c>=h)n=!1,o.push(u),l.push(i.columns[u]),c-=h;else break;u++}return{colIndexes:o,columns:l,lastIndex:u-1}}function h3(t,i){for(var e=[],s=0;s<i.columns.length;s++){var c=d3(t,i,{start:s});c.columns.length&&(e.push(c),s=c.lastIndex)}return e}function k1(t,i){var e=i.settings,s=e.startY,c=e.margin,r={x:c.left,y:s},o=i.getHeadHeight(i.columns)+i.getFootHeight(i.columns),l=s+c.bottom+o;if(e.pageBreak==="avoid"){var a=i.body,n=a.reduce(function(d,f){return d+f.height},0);l+=n}var u=new oo(t);(e.pageBreak==="always"||e.startY!=null&&l>u.pageSize().height)&&(A1(u),r.y=c.top),i.callWillDrawPageHooks(u,r);var h=ca({},r);i.startPageNumber=u.pageNumber(),e.horizontalPageBreak?p3(u,i,h,r):(u.applyStyles(u.userStyles),(e.showHead==="firstPage"||e.showHead==="everyPage")&&i.head.forEach(function(d){return pa(u,i,d,r,i.columns)}),u.applyStyles(u.userStyles),i.body.forEach(function(d,f){var m=f===i.body.length-1;Eu(u,i,d,m,h,r,i.columns)}),u.applyStyles(u.userStyles),(e.showFoot==="lastPage"||e.showFoot==="everyPage")&&i.foot.forEach(function(d){return pa(u,i,d,r,i.columns)})),m1(u,i,h,r),i.callEndPageHooks(u,r),i.finalY=r.y,t.lastAutoTable=i,u.applyStyles(u.userStyles)}function p3(t,i,e,s){var c=h3(t,i),r=i.settings;if(r.horizontalPageBreakBehaviour==="afterAllRows")c.forEach(function(n,u){t.applyStyles(t.userStyles),u>0?Ko(t,i,e,s,n.columns,!0):fm(t,i,s,n.columns),m3(t,i,e,s,n.columns),rf(t,i,s,n.columns)});else for(var o=-1,l=c[0],a=function(){var n=o;if(l){t.applyStyles(t.userStyles);var u=l.columns;o>=0?Ko(t,i,e,s,u,!0):fm(t,i,s,u),n=dm(t,i,o+1,s,u),rf(t,i,s,u)}var h=n-o;c.slice(1).forEach(function(d){t.applyStyles(t.userStyles),Ko(t,i,e,s,d.columns,!0),dm(t,i,o+1,s,d.columns,h),rf(t,i,s,d.columns)}),o=n};o<i.body.length-1;)a()}function fm(t,i,e,s){var c=i.settings;t.applyStyles(t.userStyles),(c.showHead==="firstPage"||c.showHead==="everyPage")&&i.head.forEach(function(r){return pa(t,i,r,e,s)})}function m3(t,i,e,s,c){t.applyStyles(t.userStyles),i.body.forEach(function(r,o){var l=o===i.body.length-1;Eu(t,i,r,l,e,s,c)})}function dm(t,i,e,s,c,r){t.applyStyles(t.userStyles),r=r??i.body.length;for(var o=Math.min(e+r,i.body.length),l=-1,a=i.body.slice(e,o),n=0;n<a.length;n++){var u=a[n],h=e+n===i.body.length-1,d=C1(t,i,h,s);if(u.canEntireRowFit(d,c))pa(t,i,u,s,c),l=e+n;else break}return l}function rf(t,i,e,s){var c=i.settings;t.applyStyles(t.userStyles),(c.showFoot==="lastPage"||c.showFoot==="everyPage")&&i.foot.forEach(function(r){return pa(t,i,r,e,s)})}function g3(t,i,e){var s=e.getLineHeight(t.styles.fontSize),c=t.padding("vertical"),r=Math.floor((i-c)/s);return Math.max(0,r)}function v3(t,i,e,s){var c={};t.spansMultiplePages=!0,t.height=0;for(var r=0,o=0,l=e.columns;o<l.length;o++){var a=l[o],n=t.cells[a.index];if(n){Array.isArray(n.text)||(n.text=[n.text]);var u=new _1(n.raw,n.styles,n.section);u=ca(u,n),u.text=[];var h=g3(n,i,s);n.text.length>h&&(u.text=n.text.splice(h,n.text.length));var d=s.scaleFactor(),f=s.getLineHeightFactor();n.contentHeight=n.getContentHeight(d,f),n.contentHeight>=i&&(n.contentHeight=i,u.styles.minCellHeight-=i),n.contentHeight>t.height&&(t.height=n.contentHeight),u.contentHeight=u.getContentHeight(d,f),u.contentHeight>r&&(r=u.contentHeight),c[a.index]=u}}var m=new x1(t.raw,-1,t.section,c,!0);m.height=r;for(var g=0,p=e.columns;g<p.length;g++){var a=p[g],u=m.cells[a.index];u&&(u.height=m.height);var n=t.cells[a.index];n&&(n.height=t.height)}return m}function b3(t,i,e,s){var c=t.pageSize().height,r=s.settings.margin,o=r.top+r.bottom,l=c-o;i.section==="body"&&(l-=s.getHeadHeight(s.columns)+s.getFootHeight(s.columns));var a=i.getMinimumRowHeight(s.columns,t),n=a<e;if(a>l)return console.log("Will not be able to print row ".concat(i.index," correctly since it's minimum height is larger than page height")),!0;if(!n)return!1;var u=i.hasRowSpan(s.columns),h=i.getMaxCellHeight(s.columns)>l;return h?(u&&console.log("The content of row ".concat(i.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(u||s.settings.rowPageBreak==="avoid")}function Eu(t,i,e,s,c,r,o){var l=C1(t,i,s,r);if(e.canEntireRowFit(l,o))pa(t,i,e,r,o);else if(b3(t,e,l,i)){var a=v3(e,l,i,t);pa(t,i,e,r,o),Ko(t,i,c,r,o),Eu(t,i,a,s,c,r,o)}else Ko(t,i,c,r,o),Eu(t,i,e,s,c,r,o)}function pa(t,i,e,s,c){s.x=i.settings.margin.left;for(var r=0,o=c;r<o.length;r++){var l=o[r],a=e.cells[l.index];if(!a){s.x+=l.width;continue}t.applyStyles(a.styles),a.x=s.x,a.y=s.y;var n=i.callCellHooks(t,i.hooks.willDrawCell,a,e,l,s);if(n===!1){s.x+=l.width;continue}y3(t,a,s);var u=a.getTextPos();d1(a.text,u.x,u.y,{halign:a.styles.halign,valign:a.styles.valign,maxWidth:Math.ceil(a.width-a.padding("left")-a.padding("right"))},t.getDocument()),i.callCellHooks(t,i.hooks.didDrawCell,a,e,l,s),s.x+=l.width}s.y+=e.height}function y3(t,i,e){var s=i.styles;if(t.getDocument().setFillColor(t.getDocument().getFillColor()),typeof s.lineWidth=="number"){var c=g1(s.lineWidth,s.fillColor);c&&t.rect(i.x,e.y,i.width,i.height,c)}else typeof s.lineWidth=="object"&&(s.fillColor&&t.rect(i.x,e.y,i.width,i.height,"F"),w3(t,i,e,s.lineWidth))}function w3(t,i,e,s){var c,r,o,l;s.top&&(c=e.x,r=e.y,o=e.x+i.width,l=e.y,s.right&&(o+=.5*s.right),s.left&&(c-=.5*s.left),a(s.top,c,r,o,l)),s.bottom&&(c=e.x,r=e.y+i.height,o=e.x+i.width,l=e.y+i.height,s.right&&(o+=.5*s.right),s.left&&(c-=.5*s.left),a(s.bottom,c,r,o,l)),s.left&&(c=e.x,r=e.y,o=e.x,l=e.y+i.height,s.top&&(r-=.5*s.top),s.bottom&&(l+=.5*s.bottom),a(s.left,c,r,o,l)),s.right&&(c=e.x+i.width,r=e.y,o=e.x+i.width,l=e.y+i.height,s.top&&(r-=.5*s.top),s.bottom&&(l+=.5*s.bottom),a(s.right,c,r,o,l));function a(n,u,h,d,f){t.getDocument().setLineWidth(n),t.getDocument().line(u,h,d,f,"S")}}function C1(t,i,e,s){var c=i.settings.margin.bottom,r=i.settings.showFoot;return(r==="everyPage"||r==="lastPage"&&e)&&(c+=i.getFootHeight(i.columns)),t.pageSize().height-s.y-c}function Ko(t,i,e,s,c,r){c===void 0&&(c=[]),r===void 0&&(r=!1),t.applyStyles(t.userStyles),i.settings.showFoot==="everyPage"&&!r&&i.foot.forEach(function(l){return pa(t,i,l,s,c)}),i.callEndPageHooks(t,s);var o=i.settings.margin;m1(t,i,e,s),A1(t),i.pageNumber++,s.x=o.left,s.y=o.top,e.y=o.top,i.callWillDrawPageHooks(t,s),i.settings.showHead==="everyPage"&&(i.head.forEach(function(l){return pa(t,i,l,s,c)}),t.applyStyles(t.userStyles))}function A1(t){var i=t.pageNumber();t.setPage(i+1);var e=t.pageNumber();return e===i?(t.addPage(),!0):!1}function x3(t){t.API.autoTable=function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];var s=i[0],c=w1(this,s),r=S1(this,c);return k1(this,r),this},t.API.lastAutoTable=!1,t.API.autoTableText=function(i,e,s,c){d1(i,e,s,c,this)},t.API.autoTableSetDefaults=function(i){return oo.setDefaults(i,this),this},t.autoTableSetDefaults=function(i,e){oo.setDefaults(i,e)},t.API.autoTableHtmlToJson=function(i,e){var s;if(e===void 0&&(e=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var c=new oo(this),r=y1(c,i,window,e,!1),o=r.head,l=r.body,a=((s=o[0])===null||s===void 0?void 0:s.map(function(n){return n.content}))||[];return{columns:a,rows:l,data:l}}}var nf;function _3(t,i){var e=w1(t,i),s=S1(t,e);k1(t,s)}try{if(typeof window<"u"&&window){var hm=window,pm=hm.jsPDF||((nf=hm.jspdf)===null||nf===void 0?void 0:nf.jsPDF);pm&&x3(pm)}}catch(t){console.error("Could not apply autoTable plugin",t)}var ur=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function N1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function nu(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var af={exports:{}};var mm;function S3(){return mm||(mm=1,(function(t,i){(function(e){t.exports=e()})((function(){return(function e(s,c,r){function o(n,u){if(!c[n]){if(!s[n]){var h=typeof nu=="function"&&nu;if(!u&&h)return h(n,!0);if(l)return l(n,!0);var d=new Error("Cannot find module '"+n+"'");throw d.code="MODULE_NOT_FOUND",d}var f=c[n]={exports:{}};s[n][0].call(f.exports,(function(m){return o(s[n][1][m]||m)}),f,f.exports,e,s,c,r)}return c[n].exports}for(var l=typeof nu=="function"&&nu,a=0;a<r.length;a++)o(r[a]);return o})({1:[function(e,s,c){const r=e("fs"),o=e("fast-csv"),l=e("dayjs/plugin/customParseFormat"),a=e("dayjs/plugin/utc"),n=e("dayjs").extend(l).extend(a),u=e("../utils/stream-buf"),{fs:{exists:h}}=e("../utils/utils"),d={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};s.exports=class{constructor(f){this.workbook=f,this.worksheet=null}async readFile(f,m){if(m=m||{},!await h(f))throw new Error("File not found: "+f);const g=r.createReadStream(f),p=await this.read(g,m);return g.close(),p}read(f,m){return m=m||{},new Promise((g,p)=>{const v=this.workbook.addWorksheet(m.sheetName),b=m.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],x=m.map||function(M){if(M==="")return null;const V=Number(M);if(!Number.isNaN(V)&&V!==1/0)return V;const W=b.reduce((F,$)=>{if(F)return F;const z=n(M,$,!0);return z.isValid()?z:null},null);if(W)return new Date(W.valueOf());const R=d[M];return R!==void 0?R:M},A=o.parse(m.parserOptions).on("data",M=>{v.addRow(M.map(x))}).on("end",()=>{A.emit("worksheet",v)});A.on("worksheet",g).on("error",p),f.pipe(A)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(f,m){return new Promise((g,p)=>{m=m||{};const v=this.workbook.getWorksheet(m.sheetName||m.sheetId),b=o.format(m.formatterOptions);f.on("finish",()=>{g()}),b.on("error",p),b.pipe(f);const{dateFormat:x,dateUTC:A}=m,M=m.map||(R=>{if(R){if(R.text||R.hyperlink)return R.hyperlink||R.text||"";if(R.formula||R.result)return R.result||"";if(R instanceof Date)return x?A?n.utc(R).format(x):n(R).format(x):A?n.utc(R).format():n(R).format();if(R.error)return R.error;if(typeof R=="object")return JSON.stringify(R)}return R}),V=m.includeEmptyRows===void 0||m.includeEmptyRows;let W=1;v&&v.eachRow((R,F)=>{if(V)for(;W++<F-1;)b.write([]);const{values:$}=R;$.shift(),b.write($.map(M)),W=F}),b.end()})}writeFile(f,m){const g={encoding:(m=m||{}).encoding||"utf8"},p=r.createWriteStream(f,g);return this.write(p,m)}async writeBuffer(f){const m=new u;return await this.write(m,f),m.read()}}},{"../utils/stream-buf":24,"../utils/utils":27,dayjs:391,"dayjs/plugin/customParseFormat":392,"dayjs/plugin/utc":393,"fast-csv":424,fs:216}],2:[function(e,s,c){const r=e("../utils/col-cache");class o{constructor(a,n){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=a,n)if(typeof n=="string"){const h=r.decodeAddress(n);this.nativeCol=h.col+u,this.nativeColOff=0,this.nativeRow=h.row+u,this.nativeRowOff=0}else n.nativeCol!==void 0?(this.nativeCol=n.nativeCol||0,this.nativeColOff=n.nativeColOff||0,this.nativeRow=n.nativeRow||0,this.nativeRowOff=n.nativeRowOff||0):n.col!==void 0?(this.col=n.col+u,this.row=n.row+u):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(a){return a instanceof o||a==null?a:new o(a)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(a){this.nativeCol=Math.floor(a),this.nativeColOff=Math.floor((a-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(a){this.nativeRow=Math.floor(a),this.nativeRowOff=Math.floor((a-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(a){this.nativeCol=a.nativeCol,this.nativeColOff=a.nativeColOff,this.nativeRow=a.nativeRow,this.nativeRowOff=a.nativeRowOff}}s.exports=o},{"../utils/col-cache":19}],3:[function(e,s,c){const r=e("../utils/col-cache"),o=e("../utils/under-dash"),l=e("./enums"),{slideFormula:a}=e("../utils/shared-formula"),n=e("./note");class u{constructor(f,m,g){if(!f||!m)throw new Error("A Cell needs a Row");this._row=f,this._column=m,r.validateAddress(g),this._address=g,this._value=h.create(u.Types.Null,this),this.style=this._mergeStyle(f.style,m.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(f){this.style.numFmt=f}get font(){return this.style.font}set font(f){this.style.font=f}get alignment(){return this.style.alignment}set alignment(f){this.style.alignment=f}get border(){return this.style.border}set border(f){this.style.border=f}get fill(){return this.style.fill}set fill(f){this.style.fill=f}get protection(){return this.style.protection}set protection(f){this.style.protection=f}_mergeStyle(f,m,g){const p=f&&f.numFmt||m&&m.numFmt;p&&(g.numFmt=p);const v=f&&f.font||m&&m.font;v&&(g.font=v);const b=f&&f.alignment||m&&m.alignment;b&&(g.alignment=b);const x=f&&f.border||m&&m.border;x&&(g.border=x);const A=f&&f.fill||m&&m.fill;A&&(g.fill=A);const M=f&&f.protection||m&&m.protection;return M&&(g.protection=M),g}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===u.Types.Merge}merge(f,m){this._value.release(),this._value=h.create(u.Types.Merge,this,f),m||(this.style=f.style)}unmerge(){this.type===u.Types.Merge&&(this._value.release(),this._value=h.create(u.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(f){return this._value.type===u.Types.Merge&&this._value.isMergedTo(f)}get master(){return this.type===u.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===u.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(f){this.type!==u.Types.Merge?(this._value.release(),this._value=h.create(h.getType(f),this,f)):this._value.master.value=f}get note(){return this._comment&&this._comment.note}set note(f){this._comment=new n(f)}get text(){return this._value.toString()}get html(){return o.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(f){this.type===u.Types.String&&(this._value=h.create(u.Types.Hyperlink,this,{text:this._value.value,hyperlink:f}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:f}=this._row;return{sheetName:f.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(f){this.names=[f]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(f){const{definedNames:m}=this.workbook;m.removeAllNames(this.fullAddress),f.forEach(g=>{m.addEx(this.fullAddress,g)})}addName(f){this.workbook.definedNames.addEx(this.fullAddress,f)}removeName(f){this.workbook.definedNames.removeEx(this.fullAddress,f)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(f){this._dataValidations.add(this.address,f)}get model(){const{model:f}=this._value;return f.style=this.style,this._comment&&(f.comment=this._comment.model),f}set model(f){this._value.release(),this._value=h.create(f.type,this),this._value.model=f,f.comment&&f.comment.type==="note"&&(this._comment=n.fromModel(f.comment)),f.style?this.style=f.style:this.style={}}}u.Types=l.ValueType;const h={getType:d=>d==null?u.Types.Null:d instanceof String||typeof d=="string"?u.Types.String:typeof d=="number"?u.Types.Number:typeof d=="boolean"?u.Types.Boolean:d instanceof Date?u.Types.Date:d.text&&d.hyperlink?u.Types.Hyperlink:d.formula||d.sharedFormula?u.Types.Formula:d.richText?u.Types.RichText:d.sharedString?u.Types.SharedString:d.error?u.Types.Error:u.Types.JSON,types:[{t:u.Types.Null,f:class{constructor(d){this.model={address:d.address,type:u.Types.Null}}get value(){return null}set value(d){}get type(){return u.Types.Null}get effectiveType(){return u.Types.Null}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return""}release(){}toString(){return""}}},{t:u.Types.Number,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.Number,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}get type(){return u.Types.Number}get effectiveType(){return u.Types.Number}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:u.Types.String,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.String,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}get type(){return u.Types.String}get effectiveType(){return u.Types.String}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:u.Types.Date,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.Date,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}get type(){return u.Types.Date}get effectiveType(){return u.Types.Date}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:u.Types.Hyperlink,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.Hyperlink,text:f?f.text:void 0,hyperlink:f?f.hyperlink:void 0},f&&f.tooltip&&(this.model.tooltip=f.tooltip)}get value(){const d={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(d.tooltip=this.model.tooltip),d}set value(d){this.model={text:d.text,hyperlink:d.hyperlink},d.tooltip&&(this.model.tooltip=d.tooltip)}get text(){return this.model.text}set text(d){this.model.text=d}get hyperlink(){return this.model.hyperlink}set hyperlink(d){this.model.hyperlink=d}get type(){return u.Types.Hyperlink}get effectiveType(){return u.Types.Hyperlink}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:u.Types.Formula,f:class{constructor(d,f){this.cell=d,this.model={address:d.address,type:u.Types.Formula,shareType:f?f.shareType:void 0,ref:f?f.ref:void 0,formula:f?f.formula:void 0,sharedFormula:f?f.sharedFormula:void 0,result:f?f.result:void 0}}_copyModel(d){const f={},m=g=>{const p=d[g];p&&(f[g]=p)};return m("formula"),m("result"),m("ref"),m("shareType"),m("sharedFormula"),f}get value(){return this._copyModel(this.model)}set value(d){this.model=this._copyModel(d)}validate(d){switch(h.getType(d)){case u.Types.Null:case u.Types.String:case u.Types.Number:case u.Types.Date:break;case u.Types.Hyperlink:case u.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(d){this.model.formula=d}get formulaType(){return this.model.formula?l.FormulaType.Master:this.model.sharedFormula?l.FormulaType.Shared:l.FormulaType.None}get result(){return this.model.result}set result(d){this.model.result=d}get type(){return u.Types.Formula}get effectiveType(){const d=this.model.result;return d==null?l.ValueType.Null:d instanceof String||typeof d=="string"?l.ValueType.String:typeof d=="number"?l.ValueType.Number:d instanceof Date?l.ValueType.Date:d.text&&d.hyperlink?l.ValueType.Hyperlink:d.formula?l.ValueType.Formula:l.ValueType.Null}get address(){return this.model.address}set address(d){this.model.address=d}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:d}=this.cell,f=d.findCell(this.model.sharedFormula);this._translatedFormula=f&&a(f.formula,f.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:u.Types.Merge,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.Merge,master:f?f.address:void 0},this._master=f,f&&f.addMergeRef()}get value(){return this._master.value}set value(d){d instanceof u?(this._master&&this._master.releaseMergeRef(),d.addMergeRef(),this._master=d):this._master.value=d}isMergedTo(d){return d===this._master}get master(){return this._master}get type(){return u.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:u.Types.JSON,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.String,value:JSON.stringify(f),rawValue:f}}get value(){return this.model.rawValue}set value(d){this.model.rawValue=d,this.model.value=JSON.stringify(d)}get type(){return u.Types.String}get effectiveType(){return u.Types.String}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:u.Types.SharedString,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.SharedString,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}get type(){return u.Types.SharedString}get effectiveType(){return u.Types.SharedString}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:u.Types.RichText,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.String,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}toString(){return this.model.value.richText.map(d=>d.text).join("")}get type(){return u.Types.RichText}get effectiveType(){return u.Types.RichText}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:u.Types.Boolean,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.Boolean,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}get type(){return u.Types.Boolean}get effectiveType(){return u.Types.Boolean}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:u.Types.Error,f:class{constructor(d,f){this.model={address:d.address,type:u.Types.Error,value:f}}get value(){return this.model.value}set value(d){this.model.value=d}get type(){return u.Types.Error}get effectiveType(){return u.Types.Error}get address(){return this.model.address}set address(d){this.model.address=d}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((d,f)=>(d[f.t]=f.f,d),[]),create(d,f,m){const g=this.types[d];if(!g)throw new Error("Could not create Value of type "+d);return new g(f,m)}};s.exports=u},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,s,c){const r=e("../utils/under-dash"),o=e("./enums"),l=e("../utils/col-cache");class a{constructor(u,h,d){this._worksheet=u,this._number=h,d!==!1&&(this.defn=d)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return l.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(u){u?(this.key=u.key,this.width=u.width!==void 0?u.width:9,this.outlineLevel=u.outlineLevel,u.style?this.style=u.style:this.style={},this.header=u.header,this._hidden=!!u.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(u){u!==void 0?(this._header=u,this.headers.forEach((h,d)=>{this._worksheet.getCell(d+1,this.number).value=h})):this._header=void 0}get key(){return this._key}set key(u){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=u,u&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(u){this._hidden=u}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(u){this._outlineLevel=u}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(u){return this.width===u.width&&this.hidden===u.hidden&&this.outlineLevel===u.outlineLevel&&r.isEqual(this.style,u.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;const u=this.style;return!u||!(u.font||u.numFmt||u.alignment||u.border||u.fill||u.protection)}get headerCount(){return this.headers.length}eachCell(u,h){const d=this.number;h||(h=u,u=null),this._worksheet.eachRow(u,(f,m)=>{h(f.getCell(d),m)})}get values(){const u=[];return this.eachCell((h,d)=>{h&&h.type!==o.ValueType.Null&&(u[d]=h.value)}),u}set values(u){if(!u)return;const h=this.number;let d=0;u.hasOwnProperty("0")&&(d=1),u.forEach((f,m)=>{this._worksheet.getCell(m+d,h).value=f})}_applyStyle(u,h){return this.style[u]=h,this.eachCell(d=>{d[u]=h}),h}get numFmt(){return this.style.numFmt}set numFmt(u){this._applyStyle("numFmt",u)}get font(){return this.style.font}set font(u){this._applyStyle("font",u)}get alignment(){return this.style.alignment}set alignment(u){this._applyStyle("alignment",u)}get protection(){return this.style.protection}set protection(u){this._applyStyle("protection",u)}get border(){return this.style.border}set border(u){this._applyStyle("border",u)}get fill(){return this.style.fill}set fill(u){this._applyStyle("fill",u)}static toModel(u){const h=[];let d=null;return u&&u.forEach((f,m)=>{f.isDefault?d&&(d=null):d&&f.equivalentTo(d)?d.max=m+1:(d={min:m+1,max:m+1,width:f.width!==void 0?f.width:9,style:f.style,isCustomWidth:f.isCustomWidth,hidden:f.hidden,outlineLevel:f.outlineLevel,collapsed:f.collapsed},h.push(d))}),h.length?h:void 0}static fromModel(u,h){const d=[];let f=1,m=0;for(h=(h=h||[]).sort((function(g,p){return g.min-p.min}));m<h.length;){const g=h[m++];for(;f<g.min;)d.push(new a(u,f++));for(;f<=g.max;)d.push(new a(u,f++,g))}return d.length?d:null}}s.exports=a},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,s,c){s.exports=class{constructor(r){this.model=r||{}}add(r,o){return this.model[r]=o}find(r){return this.model[r]}remove(r){this.model[r]=void 0}}},{}],6:[function(e,s,c){const r=e("../utils/under-dash"),o=e("../utils/col-cache"),l=e("../utils/cell-matrix"),a=e("./range"),n=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;s.exports=class{constructor(){this.matrixMap={}}getMatrix(u){return this.matrixMap[u]||(this.matrixMap[u]=new l)}add(u,h){const d=o.decodeEx(u);this.addEx(d,h)}addEx(u,h){const d=this.getMatrix(h);if(u.top)for(let f=u.left;f<=u.right;f++)for(let m=u.top;m<=u.bottom;m++){const g={sheetName:u.sheetName,address:o.n2l(f)+m,row:m,col:f};d.addCellEx(g)}else d.addCellEx(u)}remove(u,h){const d=o.decodeEx(u);this.removeEx(d,h)}removeEx(u,h){this.getMatrix(h).removeCellEx(u)}removeAllNames(u){r.each(this.matrixMap,h=>{h.removeCellEx(u)})}forEach(u){r.each(this.matrixMap,(h,d)=>{h.forEach(f=>{u(d,f)})})}getNames(u){return this.getNamesEx(o.decodeEx(u))}getNamesEx(u){return r.map(this.matrixMap,(h,d)=>h.findCellEx(u)&&d).filter(Boolean)}_explore(u,h){h.mark=!1;const{sheetName:d}=h,f=new a(h.row,h.col,h.row,h.col,d);let m,g;function p(b,x){const A=u.findCellAt(d,b,h.col);return!(!A||!A.mark)&&(f[x]=b,A.mark=!1,!0)}for(g=h.row-1;p(g,"top");g--);for(g=h.row+1;p(g,"bottom");g++);function v(b,x){const A=[];for(g=f.top;g<=f.bottom;g++){const M=u.findCellAt(d,g,b);if(!M||!M.mark)return!1;A.push(M)}f[x]=b;for(let M=0;M<A.length;M++)A[M].mark=!1;return!0}for(m=h.col-1;v(m,"left");m--);for(m=h.col+1;v(m,"right");m++);return f}getRanges(u,h){return(h=h||this.matrixMap[u])?(h.forEach(d=>{d.mark=!0}),{name:u,ranges:h.map(d=>d.mark&&this._explore(h,d)).filter(Boolean).map(d=>d.$shortRange)}):{name:u,ranges:[]}}normaliseMatrix(u,h){u.forEachInSheet(h,(d,f,m)=>{d&&(d.row===f&&d.col===m||(d.row=f,d.col=m,d.address=o.n2l(m)+f))})}spliceRows(u,h,d,f){r.each(this.matrixMap,m=>{m.spliceRows(u,h,d,f),this.normaliseMatrix(m,u)})}spliceColumns(u,h,d,f){r.each(this.matrixMap,m=>{m.spliceColumns(u,h,d,f),this.normaliseMatrix(m,u)})}get model(){return r.map(this.matrixMap,(u,h)=>this.getRanges(h,u)).filter(u=>u.ranges.length)}set model(u){const h=this.matrixMap={};u.forEach(d=>{const f=h[d.name]=new l;d.ranges.forEach(m=>{n.test(m.split("!").pop()||"")&&f.addCell(m)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,s,c){s.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,s,c){const r=e("../utils/col-cache"),o=e("./anchor");s.exports=class{constructor(l,a){this.worksheet=l,this.model=a}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(l){let{type:a,imageId:n,range:u,hyperlinks:h}=l;if(this.type=a,this.imageId=n,a==="image")if(typeof u=="string"){const d=r.decode(u);this.range={tl:new o(this.worksheet,{col:d.left,row:d.top},-1),br:new o(this.worksheet,{col:d.right,row:d.bottom},0),editAs:"oneCell"}}else this.range={tl:new o(this.worksheet,u.tl,0),br:u.br&&new o(this.worksheet,u.br,0),ext:u.ext,editAs:u.editAs,hyperlinks:h||u.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,s,c){const r=e("../utils/under-dash");class o{constructor(a){this.note=a}get model(){let a=null;return typeof this.note==="string"?a={type:"note",note:{texts:[{text:this.note}]}}:a={type:"note",note:this.note},r.deepMerge({},o.DEFAULT_CONFIGS,a)}set model(a){const{note:n}=a,{texts:u}=n;u.length===1&&Object.keys(u[0]).length===1?this.note=u[0].text:this.note=n}static fromModel(a){const n=new o;return n.model=a,n}}o.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},s.exports=o},{"../utils/under-dash":26}],10:[function(e,s,c){const r=e("../utils/col-cache");class o{constructor(){this.decode(arguments)}setTLBR(a,n,u,h,d){if(arguments.length<4){const f=r.decodeAddress(a),m=r.decodeAddress(n);this.model={top:Math.min(f.row,m.row),left:Math.min(f.col,m.col),bottom:Math.max(f.row,m.row),right:Math.max(f.col,m.col),sheetName:u},this.setTLBR(f.row,f.col,m.row,m.col,d)}else this.model={top:Math.min(a,u),left:Math.min(n,h),bottom:Math.max(a,u),right:Math.max(n,h),sheetName:d}}decode(a){switch(a.length){case 5:this.setTLBR(a[0],a[1],a[2],a[3],a[4]);break;case 4:this.setTLBR(a[0],a[1],a[2],a[3]);break;case 3:this.setTLBR(a[0],a[1],a[2]);break;case 2:this.setTLBR(a[0],a[1]);break;case 1:{const n=a[0];if(n instanceof o)this.model={top:n.model.top,left:n.model.left,bottom:n.model.bottom,right:n.model.right,sheetName:n.sheetName};else if(n instanceof Array)this.decode(n);else if(n.top&&n.left&&n.bottom&&n.right)this.model={top:n.top,left:n.left,bottom:n.bottom,right:n.right,sheetName:n.sheetName};else{const u=r.decodeEx(n);u.top?this.model={top:u.top,left:u.left,bottom:u.bottom,right:u.right,sheetName:u.sheetName}:this.model={top:u.row,left:u.col,bottom:u.row,right:u.col,sheetName:u.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+a.length)}}get top(){return this.model.top||1}set top(a){this.model.top=a}get left(){return this.model.left||1}set left(a){this.model.left=a}get bottom(){return this.model.bottom||1}set bottom(a){this.model.bottom=a}get right(){return this.model.right||1}set right(a){this.model.right=a}get sheetName(){return this.model.sheetName}set sheetName(a){this.model.sheetName=a}get _serialisedSheetName(){const{sheetName:a}=this.model;return a?/^[a-zA-Z0-9]*$/.test(a)?a+"!":`'${a}'!`:""}expand(a,n,u,h){(!this.model.top||a<this.top)&&(this.top=a),(!this.model.left||n<this.left)&&(this.left=n),(!this.model.bottom||u>this.bottom)&&(this.bottom=u),(!this.model.right||h>this.right)&&(this.right=h)}expandRow(a){if(a){const{dimensions:n,number:u}=a;n&&this.expand(u,n.min,u,n.max)}}expandToAddress(a){const n=r.decodeEx(a);this.expand(n.row,n.col,n.row,n.col)}get tl(){return r.n2l(this.left)+this.top}get $t$l(){return`$${r.n2l(this.left)}$${this.top}`}get br(){return r.n2l(this.right)+this.bottom}get $b$r(){return`$${r.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(a){return(!a.sheetName||!this.sheetName||a.sheetName===this.sheetName)&&!(a.bottom<this.top)&&!(a.top>this.bottom)&&!(a.right<this.left)&&!(a.left>this.right)}contains(a){const n=r.decodeEx(a);return this.containsEx(n)}containsEx(a){return(!a.sheetName||!this.sheetName||a.sheetName===this.sheetName)&&a.row>=this.top&&a.row<=this.bottom&&a.col>=this.left&&a.col<=this.right}forEachAddress(a){for(let n=this.left;n<=this.right;n++)for(let u=this.top;u<=this.bottom;u++)a(r.encodeAddress(u,n),u,n)}}s.exports=o},{"../utils/col-cache":19}],11:[function(e,s,c){const r=e("../utils/under-dash"),o=e("./enums"),l=e("../utils/col-cache"),a=e("./cell");s.exports=class{constructor(n,u){this._worksheet=n,this._number=u,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(n){return this._cells[n-1]}getCellEx(n){let u=this._cells[n.col-1];if(!u){const h=this._worksheet.getColumn(n.col);u=new a(this,h,n.address),this._cells[n.col-1]=u}return u}getCell(n){if(typeof n=="string"){const u=this._worksheet.getColumnKey(n);n=u?u.number:l.l2n(n)}return this._cells[n-1]||this.getCellEx({address:l.encodeAddress(this._number,n),row:this._number,col:n})}splice(n,u){const h=n+u;for(var d=arguments.length,f=new Array(d>2?d-2:0),m=2;m<d;m++)f[m-2]=arguments[m];const g=f.length-u,p=this._cells.length;let v,b,x;if(g<0)for(v=n+f.length;v<=p;v++)x=this._cells[v-1],b=this._cells[v-g-1],b?(x=this.getCell(v),x.value=b.value,x.style=b.style,x._comment=b._comment):x&&(x.value=null,x.style={},x._comment=void 0);else if(g>0)for(v=p;v>=h;v--)b=this._cells[v-1],b?(x=this.getCell(v+g),x.value=b.value,x.style=b.style,x._comment=b._comment):this._cells[v+g-1]=void 0;for(v=0;v<f.length;v++)x=this.getCell(n+v),x.value=f[v],x.style={},x._comment=void 0}eachCell(n,u){if(u||(u=n,n=null),n&&n.includeEmpty){const h=this._cells.length;for(let d=1;d<=h;d++)u(this.getCell(d),d)}else this._cells.forEach((h,d)=>{h&&h.type!==o.ValueType.Null&&u(h,d+1)})}addPageBreak(n,u){const h=this._worksheet,d=Math.max(0,n-1)||0,f=Math.max(0,u-1)||16838,m={id:this._number,max:f,man:1};d&&(m.min=d),h.rowBreaks.push(m)}get values(){const n=[];return this._cells.forEach(u=>{u&&u.type!==o.ValueType.Null&&(n[u.col]=u.value)}),n}set values(n){if(this._cells=[],n)if(n instanceof Array){let u=0;n.hasOwnProperty("0")&&(u=1),n.forEach((h,d)=>{h!==void 0&&(this.getCellEx({address:l.encodeAddress(this._number,d+u),row:this._number,col:d+u}).value=h)})}else this._worksheet.eachColumnKey((u,h)=>{n[h]!==void 0&&(this.getCellEx({address:l.encodeAddress(this._number,u.number),row:this._number,col:u.number}).value=n[h])})}get hasValues(){return r.some(this._cells,n=>n&&n.type!==o.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let n=0;return this.eachCell(()=>{n++}),n}get dimensions(){let n=0,u=0;return this._cells.forEach(h=>{h&&h.type!==o.ValueType.Null&&((!n||n>h.col)&&(n=h.col),u<h.col&&(u=h.col))}),n>0?{min:n,max:u}:null}_applyStyle(n,u){return this.style[n]=u,this._cells.forEach(h=>{h&&(h[n]=u)}),u}get numFmt(){return this.style.numFmt}set numFmt(n){this._applyStyle("numFmt",n)}get font(){return this.style.font}set font(n){this._applyStyle("font",n)}get alignment(){return this.style.alignment}set alignment(n){this._applyStyle("alignment",n)}get protection(){return this.style.protection}set protection(n){this._applyStyle("protection",n)}get border(){return this.style.border}set border(n){this._applyStyle("border",n)}get fill(){return this.style.fill}set fill(n){this._applyStyle("fill",n)}get hidden(){return!!this._hidden}set hidden(n){this._hidden=n}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(n){this._outlineLevel=n}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const n=[];let u=0,h=0;return this._cells.forEach(d=>{if(d){const f=d.model;f&&((!u||u>d.col)&&(u=d.col),h<d.col&&(h=d.col),n.push(f))}}),this.height||n.length?{cells:n,number:this.number,min:u,max:h,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(n){if(n.number!==this._number)throw new Error("Invalid row number in model");let u;this._cells=[],n.cells.forEach(h=>{switch(h.type){case a.Types.Merge:break;default:{let d;if(h.address)d=l.decodeAddress(h.address);else if(u){const{row:f}=u,m=u.col+1;d={row:f,col:m,address:l.encodeAddress(f,m),$col$row:`$${l.n2l(m)}$${f}`}}u=d,this.getCellEx(d).model=h;break}}}),n.height?this.height=n.height:delete this.height,this.hidden=n.hidden,this.outlineLevel=n.outlineLevel||0,this.style=n.style&&JSON.parse(JSON.stringify(n.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,s,c){const r=e("../utils/col-cache");class o{constructor(a,n,u){this.table=a,this.column=n,this.index=u}_set(a,n){this.table.cacheState(),this.column[a]=n}get name(){return this.column.name}set name(a){this._set("name",a)}get filterButton(){return this.column.filterButton}set filterButton(a){this.column.filterButton=a}get style(){return this.column.style}set style(a){this.column.style=a}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(a){this._set("totalsRowLabel",a)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(a){this._set("totalsRowFunction",a)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(a){this._set("totalsRowResult",a)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(a){this._set("totalsRowFormula",a)}}s.exports=class{constructor(l,a){this.worksheet=l,a&&(this.table=a,this.validate(),this.store())}getFormula(l){switch(l.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${l.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${l.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${l.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${l.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${l.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${l.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${l.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${l.name}])`;case"custom":return l.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+l.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:l}=this,a=(g,p,v)=>{g[p]===void 0&&(g[p]=v)};a(l,"headerRow",!0),a(l,"totalsRow",!1),a(l,"style",{}),a(l.style,"theme","TableStyleMedium2"),a(l.style,"showFirstColumn",!1),a(l.style,"showLastColumn",!1),a(l.style,"showRowStripes",!1),a(l.style,"showColumnStripes",!1);const n=(g,p)=>{if(!g)throw new Error(p)};n(l.ref,"Table must have ref"),n(l.columns,"Table must have column definitions"),n(l.rows,"Table must have row definitions"),l.tl=r.decodeAddress(l.ref);const{row:u,col:h}=l.tl;n(u>0,"Table must be on valid row"),n(h>0,"Table must be on valid col");const{width:d,filterHeight:f,tableHeight:m}=this;l.autoFilterRef=r.encode(u,h,u+f-1,h+d-1),l.tableRef=r.encode(u,h,u+m-1,h+d-1),l.columns.forEach((g,p)=>{n(g.name,`Column ${p} must have a name`),p===0?a(g,"totalsRowLabel","Total"):(a(g,"totalsRowFunction","none"),g.totalsRowFormula=this.getFormula(g))})}store(){const l=(f,m)=>{m&&Object.keys(m).forEach(g=>{f[g]=m[g]})},{worksheet:a,table:n}=this,{row:u,col:h}=n.tl;let d=0;if(n.headerRow){const f=a.getRow(u+d++);n.columns.forEach((m,g)=>{const{style:p,name:v}=m,b=f.getCell(h+g);b.value=v,l(b,p)})}if(n.rows.forEach(f=>{const m=a.getRow(u+d++);f.forEach((g,p)=>{const v=m.getCell(h+p);v.value=g,l(v,n.columns[p].style)})}),n.totalsRow){const f=a.getRow(u+d++);n.columns.forEach((m,g)=>{const p=f.getCell(h+g);if(g===0)p.value=m.totalsRowLabel;else{const v=this.getFormula(m);p.value=v?{formula:m.totalsRowFormula,result:m.totalsRowResult}:null}l(p,m.style)})}}load(l){const{table:a}=this,{row:n,col:u}=a.tl;let h=0;if(a.headerRow){const d=l.getRow(n+h++);a.columns.forEach((f,m)=>{d.getCell(u+m).value=f.name})}if(a.rows.forEach(d=>{const f=l.getRow(n+h++);d.forEach((m,g)=>{f.getCell(u+g).value=m})}),a.totalsRow){const d=l.getRow(n+h++);a.columns.forEach((f,m)=>{const g=d.getCell(u+m);m===0?g.value=f.totalsRowLabel:this.getFormula(f)&&(g.value={formula:f.totalsRowFormula,result:f.totalsRowResult})})}}get model(){return this.table}set model(l){this.table=l}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const l=r.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let a=0;a<this._cache.tableHeight;a++){const n=this.worksheet.getRow(l.row+a);for(let u=0;u<this._cache.width;u++)n.getCell(l.col+u).value=null}else{for(let a=this.tableHeight;a<this._cache.tableHeight;a++){const n=this.worksheet.getRow(l.row+a);for(let u=0;u<this._cache.width;u++)n.getCell(l.col+u).value=null}for(let a=0;a<this.tableHeight;a++){const n=this.worksheet.getRow(l.row+a);for(let u=this.width;u<this._cache.width;u++)n.getCell(l.col+u).value=null}}this.store()}addRow(l,a){this.cacheState(),a===void 0?this.table.rows.push(l):this.table.rows.splice(a,0,l)}removeRows(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(l,a)}getColumn(l){const a=this.table.columns[l];return new o(this,a,l)}addColumn(l,a,n){this.cacheState(),n===void 0?(this.table.columns.push(l),this.table.rows.forEach((u,h)=>{u.push(a[h])})):(this.table.columns.splice(n,0,l),this.table.rows.forEach((u,h)=>{u.splice(n,0,a[h])}))}removeColumns(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(l,a),this.table.rows.forEach(n=>{n.splice(l,a)})}_assign(l,a,n){this.cacheState(),l[a]=n}get ref(){return this.table.ref}set ref(l){this._assign(this.table,"ref",l)}get name(){return this.table.name}set name(l){this.table.name=l}get displayName(){return this.table.displyName||this.table.name}set displayNamename(l){this.table.displayName=l}get headerRow(){return this.table.headerRow}set headerRow(l){this._assign(this.table,"headerRow",l)}get totalsRow(){return this.table.totalsRow}set totalsRow(l){this._assign(this.table,"totalsRow",l)}get theme(){return this.table.style.name}set theme(l){this.table.style.name=l}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(l){this.table.style.showFirstColumn=l}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(l){this.table.style.showLastColumn=l}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(l){this.table.style.showRowStripes=l}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(l){this.table.style.showColumnStripes=l}}},{"../utils/col-cache":19}],13:[function(e,s,c){const r=e("./worksheet"),o=e("./defined-names"),l=e("../xlsx/xlsx"),a=e("../csv/csv");s.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new o}get xlsx(){return this._xlsx||(this._xlsx=new l(this)),this._xlsx}get csv(){return this._csv||(this._csv=new a(this)),this._csv}get nextId(){for(let n=1;n<this._worksheets.length;n++)if(!this._worksheets[n])return n;return this._worksheets.length||1}addWorksheet(n,u){const h=this.nextId;u&&(typeof u=="string"?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),u={properties:{tabColor:{argb:u}}}):(u.argb||u.theme||u.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),u={properties:{tabColor:u}}));const d=this._worksheets.reduce((g,p)=>(p&&p.orderNo)>g?p.orderNo:g,0),f=Object.assign({},u,{id:h,name:n,orderNo:d+1,workbook:this}),m=new r(f);return this._worksheets[h]=m,m}removeWorksheetEx(n){delete this._worksheets[n.id]}removeWorksheet(n){const u=this.getWorksheet(n);u&&u.destroy()}getWorksheet(n){return n===void 0?this._worksheets.find(Boolean):typeof n=="number"?this._worksheets[n]:typeof n=="string"?this._worksheets.find(u=>u&&u.name===n):void 0}get worksheets(){return this._worksheets.slice(1).sort((n,u)=>n.orderNo-u.orderNo).filter(Boolean)}eachSheet(n){this.worksheets.forEach(u=>{n(u,u.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(n){const u=this.media.length;return this.media.push(Object.assign({},n,{type:"image"})),u}getImage(n){return this.media[n]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(n=>n.model),sheets:this.worksheets.map(n=>n.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(n){this.creator=n.creator,this.lastModifiedBy=n.lastModifiedBy,this.lastPrinted=n.lastPrinted,this.created=n.created,this.modified=n.modified,this.company=n.company,this.manager=n.manager,this.title=n.title,this.subject=n.subject,this.keywords=n.keywords,this.category=n.category,this.description=n.description,this.language=n.language,this.revision=n.revision,this.contentStatus=n.contentStatus,this.properties=n.properties,this.calcProperties=n.calcProperties,this._worksheets=[],n.worksheets.forEach(u=>{const{id:h,name:d,state:f}=u,m=n.sheets&&n.sheets.findIndex(g=>g.id===h);(this._worksheets[h]=new r({id:h,name:d,orderNo:m,state:f,workbook:this})).model=u}),this._definedNames.model=n.definedNames,this.views=n.views,this._themes=n.themes,this.media=n.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,s,c){const r=e("../utils/under-dash"),o=e("../utils/col-cache"),l=e("./range"),a=e("./row"),n=e("./column"),u=e("./enums"),h=e("./image"),d=e("./table"),f=e("./data-validations"),m=e("../utils/encryptor"),{copyStyle:g}=e("../utils/copy-style");s.exports=class{constructor(p){p=p||{},this._workbook=p.workbook,this.id=p.id,this.orderNo=p.orderNo,this.name=p.name,this.state=p.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},p.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!p.pageSetup||!p.pageSetup.fitToWidth&&!p.pageSetup.fitToHeight||p.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},p.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},p.headerFooter),this.dataValidations=new f,this.views=p.views||[],this.autoFilter=p.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(p){if(p===void 0&&(p="sheet"+this.id),this._name!==p){if(typeof p!="string")throw new Error("The name has to be a string.");if(p==="")throw new Error("The name can't be empty.");if(p==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(p))throw new Error(`Worksheet name ${p} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(p))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+p);if(p&&p.length>31&&(console.warn(`Worksheet name ${p} exceeds 31 chars. This will be truncated`),p=p.substring(0,31)),this._workbook._worksheets.find(v=>v&&v.name.toLowerCase()===p.toLowerCase()))throw new Error("Worksheet name already exists: "+p);this._name=p}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const p=new l;return this._rows.forEach(v=>{if(v){const b=v.dimensions;b&&p.expand(v.number,b.min,v.number,b.max)}}),p}get columns(){return this._columns}set columns(p){this._headerRowCount=p.reduce((x,A)=>{const M=(A.header?1:A.headers&&A.headers.length)||0;return Math.max(x,M)},0);let v=1;const b=this._columns=[];p.forEach(x=>{const A=new n(this,v++,!1);b.push(A),A.defn=x})}getColumnKey(p){return this._keys[p]}setColumnKey(p,v){this._keys[p]=v}deleteColumnKey(p){delete this._keys[p]}eachColumnKey(p){r.each(this._keys,p)}getColumn(p){if(typeof p=="string"){const v=this._keys[p];if(v)return v;p=o.l2n(p)}if(this._columns||(this._columns=[]),p>this._columns.length){let v=this._columns.length+1;for(;v<=p;)this._columns.push(new n(this,v++))}return this._columns[p-1]}spliceColumns(p,v){const b=this._rows.length;for(var x=arguments.length,A=new Array(x>2?x-2:0),M=2;M<x;M++)A[M-2]=arguments[M];if(A.length>0)for(let F=0;F<b;F++){const $=[p,v];A.forEach(D=>{$.push(D[F]||null)});const z=this.getRow(F+1);z.splice.apply(z,$)}else this._rows.forEach(F=>{F&&F.splice(p,v)});const V=A.length-v,W=p+v,R=this._columns.length;if(V<0)for(let F=p+A.length;F<=R;F++)this.getColumn(F).defn=this.getColumn(F-V).defn;else if(V>0)for(let F=R;F>=W;F--)this.getColumn(F+V).defn=this.getColumn(F).defn;for(let F=p;F<p+A.length;F++)this.getColumn(F).defn=null;this.workbook.definedNames.spliceColumns(this.name,p,v,A.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let p=0;return this.eachRow(v=>{p=Math.max(p,v.cellCount)}),p}get actualColumnCount(){const p=[];let v=0;return this.eachRow(b=>{b.eachCell(x=>{let{col:A}=x;p[A]||(p[A]=!0,v++)})}),v}_commitRow(){}get _lastRowNumber(){const p=this._rows;let v=p.length;for(;v>0&&p[v-1]===void 0;)v--;return v}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(p){return this._rows[p-1]}findRows(p,v){return this._rows.slice(p-1,p-1+v)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let p=0;return this.eachRow(()=>{p++}),p}getRow(p){let v=this._rows[p-1];return v||(v=this._rows[p-1]=new a(this,p)),v}getRows(p,v){if(v<1)return;const b=[];for(let x=p;x<p+v;x++)b.push(this.getRow(x));return b}addRow(p){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=this._nextRow,x=this.getRow(b);return x.values=p,this._setStyleOption(b,v[0]==="i"?v:"n"),x}addRows(p){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const b=[];return p.forEach(x=>{b.push(this.addRow(x,v))}),b}insertRow(p,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(p,0,v),this._setStyleOption(p,b),this.getRow(p)}insertRows(p,v){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(p,0,...v),b!=="n")for(let x=0;x<v.length;x++)b[0]==="o"&&this.findRow(v.length+p+x)!==void 0?this._copyStyle(v.length+p+x,p+x,b[1]==="+"):b[0]==="i"&&this.findRow(p-1)!==void 0&&this._copyStyle(p-1,p+x,b[1]==="+");return this.getRows(p,v.length)}_setStyleOption(p){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";v[0]==="o"&&this.findRow(p+1)!==void 0?this._copyStyle(p+1,p,v[1]==="+"):v[0]==="i"&&this.findRow(p-1)!==void 0&&this._copyStyle(p-1,p,v[1]==="+")}_copyStyle(p,v){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this.getRow(p),A=this.getRow(v);A.style=g(x.style),x.eachCell({includeEmpty:b},(M,V)=>{A.getCell(V).style=g(M.style)}),A.height=x.height}duplicateRow(p,v){let b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];const x=this._rows[p-1],A=new Array(v).fill(x.values);this.spliceRows(p+1,b?0:v,...A);for(let M=0;M<v;M++){const V=this._rows[p+M];V.style=x.style,V.height=x.height,x.eachCell({includeEmpty:!0},(W,R)=>{V.getCell(R).style=W.style})}}spliceRows(p,v){const b=p+v;for(var x=arguments.length,A=new Array(x>2?x-2:0),M=2;M<x;M++)A[M-2]=arguments[M];const V=A.length,W=V-v,R=this._rows.length;let F,$;if(W<0)for(p===R&&(this._rows[R-1]=void 0),F=b;F<=R;F++)if($=this._rows[F-1],$){const z=this.getRow(F+W);z.values=$.values,z.style=$.style,z.height=$.height,$.eachCell({includeEmpty:!0},(D,N)=>{z.getCell(N).style=D.style}),this._rows[F-1]=void 0}else this._rows[F+W-1]=void 0;else if(W>0)for(F=R;F>=b;F--)if($=this._rows[F-1],$){const z=this.getRow(F+W);z.values=$.values,z.style=$.style,z.height=$.height,$.eachCell({includeEmpty:!0},(D,N)=>{if(z.getCell(N).style=D.style,D._value.constructor.name==="MergeValue"){const E=this.getRow(D._row._number+V).getCell(N),C=D._value._master,w=this.getRow(C._row._number+V).getCell(C._column._number);E.merge(w)}})}else this._rows[F+W-1]=void 0;for(F=0;F<V;F++){const z=this.getRow(p+F);z.style={},z.values=A[F]}this.workbook.definedNames.spliceRows(this.name,p,v,V)}eachRow(p,v){if(v||(v=p,p=void 0),p&&p.includeEmpty){const b=this._rows.length;for(let x=1;x<=b;x++)v(this.getRow(x),x)}else this._rows.forEach(b=>{b&&b.hasValues&&v(b,b.number)})}getSheetValues(){const p=[];return this._rows.forEach(v=>{v&&(p[v.number]=v.values)}),p}findCell(p,v){const b=o.getAddress(p,v),x=this._rows[b.row-1];return x?x.findCell(b.col):void 0}getCell(p,v){const b=o.getAddress(p,v);return this.getRow(b.row).getCellEx(b)}mergeCells(){for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];const x=new l(v);this._mergeCellsInternal(x)}mergeCellsWithoutStyle(){for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];const x=new l(v);this._mergeCellsInternal(x,!0)}_mergeCellsInternal(p,v){r.each(this._merges,x=>{if(x.intersects(p))throw new Error("Cannot merge already merged cells")});const b=this.getCell(p.top,p.left);for(let x=p.top;x<=p.bottom;x++)for(let A=p.left;A<=p.right;A++)(x>p.top||A>p.left)&&this.getCell(x,A).merge(b,v);this._merges[b.address]=p}_unMergeMaster(p){const v=this._merges[p.address];if(v){for(let b=v.top;b<=v.bottom;b++)for(let x=v.left;x<=v.right;x++)this.getCell(b,x).unmerge();delete this._merges[p.address]}}get hasMerges(){return r.some(this._merges,Boolean)}unMergeCells(){for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];const x=new l(v);for(let A=x.top;A<=x.bottom;A++)for(let M=x.left;M<=x.right;M++){const V=this.findCell(A,M);V&&(V.type===u.ValueType.Merge?this._unMergeMaster(V.master):this._merges[V.address]&&this._unMergeMaster(V))}}fillFormula(p,v,b){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"shared";const A=o.decode(p),{top:M,left:V,bottom:W,right:R}=A,F=R-V+1,$=o.encodeAddress(M,V),z=x==="shared";let D;D=typeof b=="function"?b:Array.isArray(b)?Array.isArray(b[0])?(E,C)=>b[E-M][C-V]:(E,C)=>b[(E-M)*F+(C-V)]:()=>{};let N=!0;for(let E=M;E<=W;E++)for(let C=V;C<=R;C++)N?(this.getCell(E,C).value={shareType:x,formula:v,ref:p,result:D(E,C)},N=!1):this.getCell(E,C).value=z?{sharedFormula:$,result:D(E,C)}:D(E,C)}addImage(p,v){const b={type:"image",imageId:p,range:v};this._media.push(new h(this,b))}getImages(){return this._media.filter(p=>p.type==="image")}addBackgroundImage(p){const v={type:"background",imageId:p};this._media.push(new h(this,v))}getBackgroundImageId(){const p=this._media.find(v=>v.type==="background");return p&&p.imageId}protect(p,v){return new Promise(b=>{this.sheetProtection={sheet:!0},v&&"spinCount"in v&&(v.spinCount=Number.isFinite(v.spinCount)?Math.round(Math.max(0,v.spinCount)):1e5),p&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=m.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=v&&"spinCount"in v?v.spinCount:1e5,this.sheetProtection.hashValue=m.convertPasswordToHash(p,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),v&&(this.sheetProtection=Object.assign(this.sheetProtection,v),!p&&"spinCount"in v&&delete this.sheetProtection.spinCount),b()})}unprotect(){this.sheetProtection=null}addTable(p){const v=new d(this,p);return this.tables[p.name]=v,v}getTable(p){return this.tables[p]}removeTable(p){delete this.tables[p]}getTables(){return Object.values(this.tables)}addConditionalFormatting(p){this.conditionalFormattings.push(p)}removeConditionalFormatting(p){typeof p=="number"?this.conditionalFormattings.splice(p,1):this.conditionalFormattings=p instanceof Function?this.conditionalFormattings.filter(p):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(p){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=p}get model(){const p={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(x=>x.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(x=>x.model),conditionalFormattings:this.conditionalFormattings};p.cols=n.toModel(this.columns);const v=p.rows=[],b=p.dimensions=new l;return this._rows.forEach(x=>{const A=x&&x.model;A&&(b.expand(A.number,A.min,A.number,A.max),v.push(A))}),p.merges=[],r.each(this._merges,x=>{p.merges.push(x.range)}),p}_parseRows(p){this._rows=[],p.rows.forEach(v=>{const b=new a(this,v.number);this._rows[b.number-1]=b,b.model=v})}_parseMergeCells(p){r.each(p.mergeCells,v=>{this.mergeCellsWithoutStyle(v)})}set model(p){this.name=p.name,this._columns=n.fromModel(this,p.cols),this._parseRows(p),this._parseMergeCells(p),this.dataValidations=new f(p.dataValidations),this.properties=p.properties,this.pageSetup=p.pageSetup,this.headerFooter=p.headerFooter,this.views=p.views,this.autoFilter=p.autoFilter,this._media=p.media.map(v=>new h(this,v)),this.sheetProtection=p.sheetProtection,this.tables=p.tables.reduce((v,b)=>{const x=new d;return x.model=b,v[b.name]=x,v},{}),this.conditionalFormattings=p.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,s,c){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");const r={Workbook:e("./doc/workbook")},o=e("./doc/enums");Object.keys(o).forEach(l=>{r[l]=o[l]}),s.exports=r},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,s,c){const r=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");c.bufferToString=function(o){return typeof o=="string"?o:r?r.decode(o):o.toString()}},{}],17:[function(e,s,c){const r=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:o}=e("buffer");c.stringToBuffer=function(l){return typeof l!="string"?l:r?o.from(r.encode(l).buffer):o.from(l)}},{buffer:220}],18:[function(e,s,c){const r=e("./under-dash"),o=e("./col-cache");s.exports=class{constructor(l){this.template=l,this.sheets={}}addCell(l){this.addCellEx(o.decodeEx(l))}getCell(l){return this.findCellEx(o.decodeEx(l),!0)}findCell(l){return this.findCellEx(o.decodeEx(l),!1)}findCellAt(l,a,n){const u=this.sheets[l],h=u&&u[a];return h&&h[n]}addCellEx(l){if(l.top)for(let a=l.top;a<=l.bottom;a++)for(let n=l.left;n<=l.right;n++)this.getCellAt(l.sheetName,a,n);else this.findCellEx(l,!0)}getCellEx(l){return this.findCellEx(l,!0)}findCellEx(l,a){const n=this.findSheet(l,a),u=this.findSheetRow(n,l,a);return this.findRowCell(u,l,a)}getCellAt(l,a,n){const u=this.sheets[l]||(this.sheets[l]=[]),h=u[a]||(u[a]=[]);return h[n]||(h[n]={sheetName:l,address:o.n2l(n)+a,row:a,col:n})}removeCellEx(l){const a=this.findSheet(l);if(!a)return;const n=this.findSheetRow(a,l);n&&delete n[l.col]}forEachInSheet(l,a){const n=this.sheets[l];n&&n.forEach((u,h)=>{u&&u.forEach((d,f)=>{d&&a(d,h,f)})})}forEach(l){r.each(this.sheets,(a,n)=>{this.forEachInSheet(n,l)})}map(l){const a=[];return this.forEach(n=>{a.push(l(n))}),a}findSheet(l,a){const n=l.sheetName;return this.sheets[n]?this.sheets[n]:a?this.sheets[n]=[]:void 0}findSheetRow(l,a,n){const{row:u}=a;return l&&l[u]?l[u]:n?l[u]=[]:void 0}findRowCell(l,a,n){const{col:u}=a;return l&&l[u]?l[u]:n?l[u]=this.template?Object.assign(a,JSON.parse(JSON.stringify(this.template))):a:void 0}spliceRows(l,a,n,u){const h=this.sheets[l];if(h){const d=[];for(let f=0;f<u;f++)d.push([]);h.splice(a,n,...d)}}spliceColumns(l,a,n,u){const h=this.sheets[l];if(h){const d=[];for(let f=0;f<u;f++)d.push(null);r.each(h,f=>{f.splice(a,n,...d)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,s,c){const r=/^[A-Z]+\d+$/,o={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:l=>l<=26?1:l<=676?2:3,_fill(l){let a,n,u,h,d,f=1;if(l>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&l>=1){for(;f<=26;)a=this._dictionary[f-1],this._n2l[f]=a,this._l2n[a]=f,f++;this._l2nFill=1}if(this._l2nFill<2&&l>=2){for(f=27;f<=702;)n=f-27,u=n%26,h=Math.floor(n/26),a=this._dictionary[h]+this._dictionary[u],this._n2l[f]=a,this._l2n[a]=f,f++;this._l2nFill=2}if(this._l2nFill<3&&l>=3){for(f=703;f<=16384;)n=f-703,u=n%26,h=Math.floor(n/26)%26,d=Math.floor(n/676),a=this._dictionary[d]+this._dictionary[h]+this._dictionary[u],this._n2l[f]=a,this._l2n[a]=f,f++;this._l2nFill=3}},l2n(l){if(this._l2n[l]||this._fill(l.length),!this._l2n[l])throw new Error("Out of bounds. Invalid column letter: "+l);return this._l2n[l]},n2l(l){if(l<1||l>16384)throw new Error(l+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[l]||this._fill(this._level(l)),this._n2l[l]},_hash:{},validateAddress(l){if(!r.test(l))throw new Error("Invalid Address: "+l);return!0},decodeAddress(l){const a=l.length<5&&this._hash[l];if(a)return a;let n=!1,u="",h=0,d=!1,f="",m=0;for(let p,v=0;v<l.length;v++)if(p=l.charCodeAt(v),!d&&p>=65&&p<=90)n=!0,u+=l[v],h=26*h+p-64;else if(p>=48&&p<=57)d=!0,f+=l[v],m=10*m+p-48;else if(d&&n&&p!==36)break;if(n){if(h>16384)throw new Error("Out of bounds. Invalid column letter: "+u)}else h=void 0;d||(m=void 0);const g={address:l=u+f,col:h,row:m,$col$row:`$${u}$${f}`};return h<=100&&m<=100&&(this._hash[l]=g,this._hash[g.$col$row]=g),g},getAddress(l,a){if(a){const n=this.n2l(a)+l;return this.decodeAddress(n)}return this.decodeAddress(l)},decode(l){const a=l.split(":");if(a.length===2){const n=this.decodeAddress(a[0]),u=this.decodeAddress(a[1]),h={top:Math.min(n.row,u.row),left:Math.min(n.col,u.col),bottom:Math.max(n.row,u.row),right:Math.max(n.col,u.col)};return h.tl=this.n2l(h.left)+h.top,h.br=this.n2l(h.right)+h.bottom,h.dimensions=`${h.tl}:${h.br}`,h}return this.decodeAddress(l)},decodeEx(l){const a=l.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),n=a[1]||a[2],u=a[3],h=u.split(":");if(h.length>1){let f=this.decodeAddress(h[0]),m=this.decodeAddress(h[1]);const g=Math.min(f.row,m.row),p=Math.min(f.col,m.col),v=Math.max(f.row,m.row),b=Math.max(f.col,m.col);return f=this.n2l(p)+g,m=this.n2l(b)+v,{top:g,left:p,bottom:v,right:b,sheetName:n,tl:{address:f,col:p,row:g,$col$row:`$${this.n2l(p)}$${g}`,sheetName:n},br:{address:m,col:b,row:v,$col$row:`$${this.n2l(b)}$${v}`,sheetName:n},dimensions:`${f}:${m}`}}if(u.startsWith("#"))return n?{sheetName:n,error:u}:{error:u};const d=this.decodeAddress(u);return n?{sheetName:n,...d}:d},encodeAddress:(l,a)=>o.n2l(a)+l,encode(){switch(arguments.length){case 2:return o.encodeAddress(arguments[0],arguments[1]);case 4:return`${o.encodeAddress(arguments[0],arguments[1])}:${o.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(l,a){const[n,u,,h,d]=l,[f,m]=a;return f>=n&&f<=h&&m>=u&&m<=d}};s.exports=o},{}],20:[function(e,s,c){const r=(l,a)=>({...l,...a.reduce((n,u)=>(l[u]&&(n[u]={...l[u]}),n),{})}),o=function(l,a,n){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];l[n]&&(a[n]=r(l[n],u))};c.copyStyle=l=>{if(!l)return l;if(a=l,Object.keys(a).length===0)return{};var a;const n={...l};return o(l,n,"font",["color"]),o(l,n,"alignment"),o(l,n,"protection"),l.border&&(o(l,n,"border"),o(l.border,n.border,"top",["color"]),o(l.border,n.border,"left",["color"]),o(l.border,n.border,"bottom",["color"]),o(l.border,n.border,"right",["color"]),o(l.border,n.border,"diagonal",["color"])),l.fill&&(o(l,n,"fill",["fgColor","bgColor","center"]),l.fill.stops&&(n.fill.stops=l.fill.stops.map(u=>r(u,["color"])))),n}},{}],21:[function(e,s,c){(function(r){(function(){const o=e("crypto"),l={hash(a){const n=o.createHash(a);for(var u=arguments.length,h=new Array(u>1?u-1:0),d=1;d<u;d++)h[d-1]=arguments[d];return n.update(r.concat(h)),n.digest()},convertPasswordToHash(a,n,u,h){if(n=n.toLowerCase(),o.getHashes().indexOf(n)<0)throw new Error(`Hash algorithm '${n}' not supported!`);const d=r.from(a,"utf16le");let f=this.hash(n,r.from(u,"base64"),d);for(let m=0;m<h;m++){const g=r.alloc(4);g.writeUInt32LE(m,0),f=this.hash(n,f,g)}return f.toString("base64")},randomBytes:a=>o.randomBytes(a)};s.exports=l}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,s,c){const{SaxesParser:r}=e("saxes"),{PassThrough:o}=e("readable-stream"),{bufferToString:l}=e("./browser-buffer-decode");s.exports=async function*(a){a.pipe&&!a[Symbol.asyncIterator]&&(a=a.pipe(new o));const n=new r;let u;n.on("error",d=>{u=d});let h=[];n.on("opentag",d=>h.push({eventType:"opentag",value:d})),n.on("text",d=>h.push({eventType:"text",value:d})),n.on("closetag",d=>h.push({eventType:"closetag",value:d}));for await(const d of a){if(n.write(l(d)),u)throw u;yield h,h=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,s,c){const r=e("./col-cache"),o=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,l=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;s.exports={slideFormula:function(a,n,u){const h=r.decode(n),d=r.decode(u);return a.replace(o,(f,m,g,p,v)=>{if(v)return f;const b=l.exec(p);if(b){const x=b[1],A=b[2].toUpperCase(),M=b[3],V=b[4];if(A.length>3||A.length===3&&A>"XFD")return f;let W=r.l2n(A),R=parseInt(V,10);return x||(W+=d.col-h.col),M||(R+=d.row-h.row),(m||"")+(x||"")+r.n2l(W)+(M||"")+R}return f})}}},{"./col-cache":19}],24:[function(e,s,c){(function(r,o){(function(){const l=e("readable-stream"),a=e("./utils"),n=e("./string-buf");class u{constructor(p,v){this._data=p,this._encoding=v}get length(){return this.toBuffer().length}copy(p,v,b,x){return this.toBuffer().copy(p,v,b,x)}toBuffer(){return this._buffer||(this._buffer=o.from(this._data,this._encoding)),this._buffer}}class h{constructor(p){this._data=p}get length(){return this._data.length}copy(p,v,b,x){return this._data._buf.copy(p,v,b,x)}toBuffer(){return this._data.toBuffer()}}class d{constructor(p){this._data=p}get length(){return this._data.length}copy(p,v,b,x){this._data.copy(p,v,b,x)}toBuffer(){return this._data}}class f{constructor(p){this.size=p,this.buffer=o.alloc(p),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;const p=o.alloc(this.iWrite-this.iRead);return this.buffer.copy(p,0,this.iRead,this.iWrite),p}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(p){let v;return p===0?null:p===void 0||p>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=o.alloc(p),this.buffer.copy(v,0,this.iRead,p),this.iRead+=p,v)}write(p,v,b){const x=Math.min(b,this.size-this.iWrite);return p.copy(this.buffer,this.iWrite,v,v+x),this.iWrite+=x,x}}const m=function(g){g=g||{},this.bufSize=g.bufSize||1048576,this.buffers=[],this.batch=g.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};a.inherits(m,l.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return o.concat(this.buffers.map(g=>g.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const p=this.buffers[this.buffers.length-1];if(!p.full)return p}const g=new f(this.bufSize);return this.buffers.push(g),g},async _pipe(g){await Promise.all(this.pipes.map((function(p){return new Promise(v=>{p.write(g.toBuffer(),()=>{v()})})})))},_writeToBuffers(g){let p=0;const v=g.length;for(;p<v;)p+=this._getWritableBuffer().write(g,p,v-p)},async write(g,p,v){let b;if(p instanceof Function&&(v=p,p="utf8"),v=v||a.nop,g instanceof n)b=new h(g);else if(g instanceof o)b=new d(g);else{if(!(typeof g=="string"||g instanceof String||g instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");b=new u(g,p)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(b);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(b),r.nextTick(v)):(await this._pipe(b),v());else this.paused||this.emit("data",b.toBuffer()),this._writeToBuffers(b),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(g,p,v){const b=x=>{x?v(x):(this._flush(),this.pipes.forEach(A=>{A.end()}),this.emit("finish"))};g?this.write(g,p,b):b()},read(g){let p;if(g){for(p=[];g&&this.buffers.length&&!this.buffers[0].eod;){const v=this.buffers[0],b=v.read(g);g-=b.length,p.push(b),v.eod&&v.full&&this.buffers.shift()}return o.concat(p)}return p=this.buffers.map(v=>v.toBuffer()).filter(Boolean),this.buffers=[],o.concat(p)},setEncoding(g){this.encoding=g},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(g){this.pipes.push(g),!this.paused&&this.buffers.length&&this.end()},unpipe(g){this.pipes=this.pipes.filter(p=>p!==g)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),s.exports=m}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,s,c){(function(r){(function(){s.exports=class{constructor(o){this._buf=r.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=r.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(o){o=o||0,this._buffer=void 0,this._inPos=o}_grow(o){let l=2*this._buf.length;for(;l<o;)l*=2;const a=r.alloc(l);this._buf.copy(a,0),this._buf=a}addText(o){this._buffer=void 0;let l=this._inPos+this._buf.write(o,this._inPos,this._encoding);for(;l>=this._buf.length-4;)this._grow(this._inPos+o.length),l=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=l}addStringBuf(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,s,c){const{toString:r}=Object.prototype,o=/["&<>]/,l={each:function(a,n){a&&(Array.isArray(a)?a.forEach(n):Object.keys(a).forEach(u=>{n(a[u],u)}))},some:function(a,n){return!!a&&(Array.isArray(a)?a.some(n):Object.keys(a).some(u=>n(a[u],u)))},every:function(a,n){return!a||(Array.isArray(a)?a.every(n):Object.keys(a).every(u=>n(a[u],u)))},map:function(a,n){return a?Array.isArray(a)?a.map(n):Object.keys(a).map(u=>n(a[u],u)):[]},keyBy:(a,n)=>a.reduce((u,h)=>(u[h[n]]=h,u),{}),isEqual:function(a,n){const u=typeof a,h=typeof n,d=Array.isArray(a),f=Array.isArray(n);let m;if(u!==h)return!1;switch(typeof a){case"object":if(d||f)return!(!d||!f)&&a.length===n.length&&a.every((g,p)=>{const v=n[p];return l.isEqual(g,v)});if(a===null||n===null)return a===n;if(m=Object.keys(a),Object.keys(n).length!==m.length)return!1;for(const g of m)if(!n.hasOwnProperty(g))return!1;return l.every(a,(g,p)=>{const v=n[p];return l.isEqual(g,v)});default:return a===n}},escapeHtml(a){const n=o.exec(a);if(!n)return a;let u="",h="",d=0,f=n.index;for(;f<a.length;f++){switch(a.charAt(f)){case'"':h="&quot;";break;case"&":h="&amp;";break;case"'":h="&apos;";break;case"<":h="&lt;";break;case">":h="&gt;";break;default:continue}d!==f&&(u+=a.substring(d,f)),d=f+1,u+=h}return d!==f?u+a.substring(d,f):u},strcmp:(a,n)=>a<n?-1:a>n?1:0,isUndefined:a=>r.call(a)==="[object Undefined]",isObject:a=>r.call(a)==="[object Object]",deepMerge(){const a=arguments[0]||{},{length:n}=arguments;let u,h,d;function f(m,g){u=a[g],d=Array.isArray(m),l.isObject(m)||d?(d?(d=!1,h=u&&Array.isArray(u)?u:[]):h=u&&l.isObject(u)?u:{},a[g]=l.deepMerge(h,m)):l.isUndefined(m)||(a[g]=m)}for(let m=0;m<n;m++)l.each(arguments[m],f);return a}};s.exports=l},{}],27:[function(e,s,c){(function(r,o){(function(){const l=e("fs"),a=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,n={nop(){},promiseImmediate:u=>new Promise(h=>{r.setImmediate?o(()=>{h(u)}):setTimeout(()=>{h(u)},1)}),inherits:function(u,h,d,f){u.super_=h,f||(f=d,d=null),d&&Object.keys(d).forEach(g=>{Object.defineProperty(u,g,Object.getOwnPropertyDescriptor(d,g))});const m={constructor:{value:u,enumerable:!1,writable:!1,configurable:!0}};f&&Object.keys(f).forEach(g=>{m[g]=Object.getOwnPropertyDescriptor(f,g)}),u.prototype=Object.create(h.prototype,m)},dateToExcel:(u,h)=>25569+u.getTime()/864e5-(h?1462:0),excelToDate(u,h){const d=Math.round(24*(u-25569+(h?1462:0))*3600*1e3);return new Date(d)},parsePath(u){const h=u.lastIndexOf("/");return{path:u.substring(0,h),name:u.substring(h+1)}},getRelsPath(u){const h=n.parsePath(u);return`${h.path}/_rels/${h.name}.rels`},xmlEncode(u){const h=a.exec(u);if(!h)return u;let d="",f="",m=0,g=h.index;for(;g<u.length;g++){const p=u.charCodeAt(g);switch(p){case 34:f="&quot;";break;case 38:f="&amp;";break;case 39:f="&apos;";break;case 60:f="&lt;";break;case 62:f="&gt;";break;case 127:f="";break;default:if(p<=31&&(p<=8||p>=11&&p!==13)){f="";break}continue}m!==g&&(d+=u.substring(m,g)),m=g+1,f&&(d+=f)}return m!==g?d+u.substring(m,g):d},xmlDecode:u=>u.replace(/&([a-z]*);/g,h=>{switch(h){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return h}}),validInt(u){const h=parseInt(u,10);return Number.isNaN(h)?0:h},isDateFmt(u){return u?(u=(u=u.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:u=>new Promise(h=>{l.access(u,l.constants.F_OK,d=>{h(!d)})})},toIsoDateString:u=>u.toIsoString().subsstr(0,10),parseBoolean:u=>u===!0||u==="true"||u===1||u==="1"};s.exports=n}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,s,c){const r=e("./under-dash"),o=e("./utils");function l(u,h,d){u.push(` ${h}="${o.xmlEncode(d.toString())}"`)}function a(u,h){if(h){const d=[];r.each(h,(f,m)=>{f!==void 0&&l(d,m,f)}),u.push(d.join(""))}}class n{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(h){const d=this._xml;d.push("<?xml"),a(d,h),d.push(`?>
81
+ `)}openNode(h,d){const f=this.tos,m=this._xml;f&&this.open&&m.push(">"),this._stack.push(h),m.push("<"),m.push(h),a(m,d),this.leaf=!0,this.open=!0}addAttribute(h,d){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");d!==void 0&&l(this._xml,h,d)}addAttributes(h){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");a(this._xml,h)}writeText(h){const d=this._xml;this.open&&(d.push(">"),this.open=!1),this.leaf=!1,d.push(o.xmlEncode(h.toString()))}writeXml(h){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(h)}closeNode(){const h=this._stack.pop(),d=this._xml;this.leaf?d.push("/>"):(d.push("</"),d.push(h),d.push(">")),this.open=!1,this.leaf=!1}leafNode(h,d,f){this.openNode(h,d),f!==void 0&&this.writeText(f),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const h=this._rollbacks.pop();this._xml.length>h.xml&&this._xml.splice(h.xml,this._xml.length-h.xml),this._stack.length>h.stack&&this._stack.splice(h.stack,this._stack.length-h.stack),this.leaf=h.leaf,this.open=h.open}get xml(){return this.closeAll(),this._xml.join("")}}n.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},s.exports=n},{"./under-dash":26,"./utils":27}],29:[function(e,s,c){(function(r){(function(){const o=e("events"),l=e("jszip"),a=e("./stream-buf"),{stringToBuffer:n}=e("./browser-buffer-encode");class u extends o.EventEmitter{constructor(d){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},d),this.zip=new l,this.stream=new a}append(d,f){f.hasOwnProperty("base64")&&f.base64?this.zip.file(f.name,d,{base64:!0}):(r.browser&&typeof d=="string"&&(d=n(d)),this.zip.file(f.name,d))}async finalize(){const d=await this.zip.generateAsync(this.options);this.stream.end(d),this.emit("finish")}read(d){return this.stream.read(d)}setEncoding(d){return this.stream.setEncoding(d)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(d,f){return this.stream.pipe(d,f)}unpipe(d){return this.stream.unpipe(d)}unshift(d){return this.stream.unshift(d)}wrap(d){return this.stream.wrap(d)}}s.exports={ZipWriter:u}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,s,c){s.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,s,c){s.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,s,c){const r=e("../../utils/parse-sax"),o=e("../../utils/xml-stream");class l{prepare(){}render(){}parseOpen(n){}parseText(n){}parseClose(n){}reconcile(n,u){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(n=>{n instanceof l?n.reset():n.xform&&n.xform.reset()})}mergeModel(n){this.model=Object.assign(this.model||{},n)}async parse(n){for await(const u of n)for(const{eventType:h,value:d}of u)if(h==="opentag")this.parseOpen(d);else if(h==="text")this.parseText(d);else if(h==="closetag"&&!this.parseClose(d.name))return this.model;return this.model}async parseStream(n){return this.parse(r(n))}get xml(){return this.toXml(this.model)}toXml(n){const u=new o;return this.render(u,n),u.xml}static toAttribute(n,u){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(n===void 0){if(h)return u}else if(h||n!==u)return n.toString()}static toStringAttribute(n,u){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return l.toAttribute(n,u,h)}static toStringValue(n,u){return n===void 0?u:n}static toBoolAttribute(n,u){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(n===void 0){if(h)return u}else if(h||n!==u)return n?"1":"0"}static toBoolValue(n,u){return n===void 0?u:n==="1"}static toIntAttribute(n,u){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return l.toAttribute(n,u,h)}static toIntValue(n,u){return n===void 0?u:parseInt(n,10)}static toFloatAttribute(n,u){let h=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return l.toAttribute(n,u,h)}static toFloatValue(n,u){return n===void 0?u:parseFloat(n)}}s.exports=l},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,s,c){const r=e("../base-xform"),o=e("../../../utils/col-cache");function l(n){try{return o.decodeEx(n),!0}catch{return!1}}function a(n){const u=[];let h=!1,d="";return n.split(",").forEach(f=>{if(!f)return;const m=(f.match(/'/g)||[]).length;if(!m)return void(h?d+=f+",":l(f)&&u.push(f));const g=m%2==0;!h&&g&&l(f)?u.push(f):h&&!g?(h=!1,l(d+f)&&u.push(d+f),d=""):(h=!0,d+=f+",")}),u}s.exports=class extends r{render(n,u){n.openNode("definedName",{name:u.name,localSheetId:u.localSheetId}),n.writeText(u.ranges.join(",")),n.closeNode()}parseOpen(n){return n.name==="definedName"?(this._parsedName=n.attributes.name,this._parsedLocalSheetId=n.attributes.localSheetId,this._parsedText=[],!0):!1}parseText(n){this._parsedText.push(n)}parseClose(){return this.model={name:this._parsedName,ranges:a(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,s,c){const r=e("../../../utils/utils"),o=e("../base-xform");s.exports=class extends o{render(l,a){l.leafNode("sheet",{sheetId:a.id,name:a.name,state:a.state,"r:id":a.rId})}parseOpen(l){return l.name==="sheet"&&(this.model={name:r.xmlDecode(l.attributes.name),id:parseInt(l.attributes.sheetId,10),state:l.attributes.state,rId:l.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{render(o,l){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:l.fullCalcOnLoad?1:void 0})}parseOpen(o){return o.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{render(o,l){o.leafNode("workbookPr",{date1904:l.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{render(o,l){const a={xWindow:l.x||0,yWindow:l.y||0,windowWidth:l.width||12e3,windowHeight:l.height||24e3,firstSheet:l.firstSheet,activeTab:l.activeTab};l.visibility&&l.visibility!=="visible"&&(a.visibility=l.visibility),o.leafNode("workbookView",a)}parseOpen(o){if(o.name==="workbookView"){const l=this.model={},a=function(u,h,d){const f=h!==void 0?l[u]=h:d;f!==void 0&&(l[u]=f)},n=function(u,h,d){const f=h!==void 0?l[u]=parseInt(h,10):d;f!==void 0&&(l[u]=f)};return n("x",o.attributes.xWindow,0),n("y",o.attributes.yWindow,0),n("width",o.attributes.windowWidth,25e3),n("height",o.attributes.windowHeight,1e4),a("visibility",o.attributes.visibility,"visible"),n("activeTab",o.attributes.activeTab,void 0),n("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),l=e("../../../utils/xml-stream"),a=e("../base-xform"),n=e("../static-xform"),u=e("../list-xform"),h=e("./defined-name-xform"),d=e("./sheet-xform"),f=e("./workbook-view-xform"),m=e("./workbook-properties-xform"),g=e("./workbook-calc-properties-xform");class p extends a{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new m,bookViews:new u({tag:"bookViews",count:!1,childXform:new f}),sheets:new u({tag:"sheets",count:!1,childXform:new d}),definedNames:new u({tag:"definedNames",count:!1,childXform:new h}),calcPr:new g}}prepare(b){b.sheets=b.worksheets;const x=[];let A=0;b.sheets.forEach(M=>{if(M.pageSetup&&M.pageSetup.printArea&&M.pageSetup.printArea.split("&&").forEach(V=>{const W=V.split(":"),R={name:"_xlnm.Print_Area",ranges:[`'${M.name}'!$${W[0]}:$${W[1]}`],localSheetId:A};x.push(R)}),M.pageSetup&&(M.pageSetup.printTitlesRow||M.pageSetup.printTitlesColumn)){const V=[];if(M.pageSetup.printTitlesColumn){const R=M.pageSetup.printTitlesColumn.split(":");V.push(`'${M.name}'!$${R[0]}:$${R[1]}`)}if(M.pageSetup.printTitlesRow){const R=M.pageSetup.printTitlesRow.split(":");V.push(`'${M.name}'!$${R[0]}:$${R[1]}`)}const W={name:"_xlnm.Print_Titles",ranges:V,localSheetId:A};x.push(W)}A++}),x.length&&(b.definedNames=b.definedNames.concat(x)),(b.media||[]).forEach((M,V)=>{M.name=M.type+(V+1)})}render(b,x){b.openXml(l.StdDocAttributes),b.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(b),this.map.workbookPr.render(b,x.properties),this.map.bookViews.render(b,x.views),this.map.sheets.render(b,x.sheets),this.map.definedNames.render(b,x.definedNames),this.map.calcPr.render(b,x.calcProperties),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):(b.name==="workbook"||(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b)),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){return this.parser?(this.parser.parseClose(b)||(this.parser=void 0),!0):b==="workbook"?(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1):!0}reconcile(b){const x=(b.workbookRels||[]).reduce((R,F)=>(R[F.Id]=F,R),{}),A=[];let M,V=0;(b.sheets||[]).forEach(R=>{const F=x[R.rId];F&&(M=b.worksheetHash["xl/"+F.Target.replace(/^(\s|\/xl\/)+/,"")],M&&(M.name=R.name,M.id=R.id,M.state=R.state,A[V++]=M))});const W=[];r.each(b.definedNames,R=>{if(R.name==="_xlnm.Print_Area"){if(M=A[R.localSheetId],M){M.pageSetup||(M.pageSetup={});const F=o.decodeEx(R.ranges[0]);M.pageSetup.printArea=M.pageSetup.printArea?`${M.pageSetup.printArea}&&${F.dimensions}`:F.dimensions}}else if(R.name==="_xlnm.Print_Titles"){if(M=A[R.localSheetId],M){M.pageSetup||(M.pageSetup={});const F=R.ranges.join(","),$=/\$/g,z=/\$\d+:\$\d+/,D=F.match(z);if(D&&D.length){const C=D[0];M.pageSetup.printTitlesRow=C.replace($,"")}const N=/\$[A-Z]+:\$[A-Z]+/,E=F.match(N);if(E&&E.length){const C=E[0];M.pageSetup.printTitlesColumn=C.replace($,"")}}}else W.push(R)}),b.definedNames=W,b.media.forEach((R,F)=>{R.index=F})}}p.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},p.STATIC_XFORMS={fileVersion:new n({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},s.exports=p},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,s,c){const r=e("../strings/rich-text-xform"),o=e("../../../utils/utils"),l=e("../base-xform"),a=s.exports=function(n){this.model=n};o.inherits(a,l,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new r),this._richTextXform},render(n,u){u=u||this.model,n.openNode("comment",{ref:u.ref,authorId:0}),n.openNode("text"),u&&u.note&&u.note.texts&&u.note.texts.forEach(h=>{this.richTextXform.render(n,h)}),n.closeNode(),n.closeNode()},parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;switch(n.name){case"comment":return this.model={type:"note",note:{texts:[]},...n.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(n),!0;default:return!1}},parseText(n){this.parser&&this.parser.parseText(n)},parseClose(n){switch(n){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(n),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../../../utils/utils"),l=e("../base-xform"),a=e("./comment-xform"),n=s.exports=function(){this.map={comment:new a}};o.inherits(n,l,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(u,h){h=h||this.model,u.openXml(r.StdDocAttributes),u.openNode("comments",n.COMMENTS_ATTRIBUTES),u.openNode("authors"),u.leafNode("author",null,"Author"),u.closeNode(),u.openNode("commentList"),h.comments.forEach(d=>{this.map.comment.render(u,d)}),u.closeNode(),u.closeNode()},parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(u),!0;default:return!1}},parseText(u){this.parser&&this.parser.parseText(u)},parseClose(u){switch(u){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(u),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,l,a){(l===a[2]||this.tag==="x:SizeWithCells"&&l===a[1])&&o.leafNode(this.tag)}parseOpen(o){return o.name===this.tag?(this.model={},this.model[this.tag]=!0,!0):!1}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{constructor(o){super(),this._model=o}get tag(){return this._model&&this._model.tag}render(o,l){o.leafNode(this.tag,null,l)}parseOpen(o){return o.name===this.tag?(this.text="",!0):!1}parseText(o){this.text=o}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"x:Anchor"}getAnchorRect(o){const l=Math.floor(o.left),a=Math.floor(68*(o.left-l)),n=Math.floor(o.top),u=Math.floor(18*(o.top-n)),h=Math.floor(o.right),d=Math.floor(68*(o.right-h)),f=Math.floor(o.bottom);return[l,a,n,u,h,d,f,Math.floor(18*(o.bottom-f))]}getDefaultRect(o){const l=o.col,a=Math.max(o.row-2,0);return[l,6,a,14,l+2,2,a+4,16]}render(o,l){const a=l.anchor?this.getAnchorRect(l.anchor):this.getDefaultRect(l.refAddress);o.leafNode("x:Anchor",null,a.join(", "))}parseOpen(o){return o.name===this.tag?(this.text="",!0):!1}parseText(o){this.text=o}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,s,c){const r=e("../base-xform"),o=e("./vml-anchor-xform"),l=e("./style/vml-protection-xform"),a=e("./style/vml-position-xform"),n=["twoCells","oneCells","absolute"];s.exports=class extends r{constructor(){super(),this.map={"x:Anchor":new o,"x:Locked":new l({tag:"x:Locked"}),"x:LockText":new l({tag:"x:LockText"}),"x:SizeWithCells":new a({tag:"x:SizeWithCells"}),"x:MoveWithCells":new a({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(u,h){const{protection:d,editAs:f}=h.note;u.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(u,f,n),this.map["x:SizeWithCells"].render(u,f,n),this.map["x:Anchor"].render(u,h),this.map["x:Locked"].render(u,d.locked),u.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(u,d.lockText),u.leafNode("x:Row",null,h.refAddress.row-1),u.leafNode("x:Column",null,h.refAddress.col-1),u.closeNode()}parseOpen(u){return u.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u===this.tag?(this.normalizeModel(),!1):!0}normalizeModel(){const u=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),h=Object.keys(u).length;this.model.editAs=n[h],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("./vml-shape-xform");class a extends o{constructor(){super(),this.map={"v:shape":new l}}get tag(){return"xml"}render(u,h){u.openXml(r.StdDocAttributes),u.openNode(this.tag,a.DRAWING_ATTRIBUTES),u.openNode("o:shapelayout",{"v:ext":"edit"}),u.leafNode("o:idmap",{"v:ext":"edit",data:1}),u.closeNode(),u.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),u.leafNode("v:stroke",{joinstyle:"miter"}),u.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),u.closeNode(),h.comments.forEach((d,f)=>{this.map["v:shape"].render(u,d,f)}),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):u!==this.tag}reconcile(u,h){u.anchors.forEach(d=>{d.br?this.map["xdr:twoCellAnchor"].reconcile(d,h):this.map["xdr:oneCellAnchor"].reconcile(d,h)})}}a.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},s.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,s,c){const r=e("../base-xform"),o=e("./vml-textbox-xform"),l=e("./vml-client-data-xform");class a extends r{constructor(){super(),this.map={"v:textbox":new o,"x:ClientData":new l}}get tag(){return"v:shape"}render(u,h,d){u.openNode("v:shape",a.V_SHAPE_ATTRIBUTES(h,d)),u.leafNode("v:fill",{color2:"infoBackground [80]"}),u.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),u.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(u,h),this.map["x:ClientData"].render(u,h),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={margins:{insetmode:u.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u===this.tag?(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1):!0}}a.V_SHAPE_ATTRIBUTES=(n,u)=>({id:"_x0000_s"+(1025+u),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":n.note.margins&&n.note.margins.insetmode}),s.exports=a},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"v:textbox"}conversionUnit(o,l,a){return`${parseFloat(o)*l.toFixed(2)}${a}`}reverseConversionUnit(o){return(o||"").split(",").map(l=>Number(parseFloat(this.conversionUnit(parseFloat(l),.1,"")).toFixed(2)))}render(o,l){const a={style:"mso-direction-alt:auto"};if(l&&l.note){let{inset:n}=l.note&&l.note.margins;Array.isArray(n)&&(n=n.map(u=>this.conversionUnit(u,10,"mm")).join(",")),n&&(a.inset=n)}o.openNode("v:textbox",a),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={inset:this.reverseConversionUnit(o.attributes.inset)}),!0}parseText(){}parseClose(o){return o!==this.tag}}},{"../base-xform":32}],48:[function(e,s,c){const r=e("./base-xform");s.exports=class extends r{createNewModel(o){return{}}parseOpen(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}parseText(o){this.parser&&this.parser.parseText(o)}onParserClose(o,l){this.model[o]=l.model}parseClose(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}},{"./base-xform":32}],49:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{render(o,l){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,l.length),o.closeNode(),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="HeadingPairs"}parseText(){}parseClose(o){return o!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{render(o,l){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:l.length,baseType:"lpstr"}),l.forEach(a=>{o.leafNode("vt:lpstr",void 0,a.name)}),o.closeNode(),o.closeNode()}parseOpen(o){return o.name==="TitlesOfParts"}parseText(){}parseClose(o){return o!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("../simple/string-xform"),a=e("./app-heading-pairs-xform"),n=e("./app-titles-of-parts-xform");class u extends o{constructor(){super(),this.map={Company:new l({tag:"Company"}),Manager:new l({tag:"Manager"}),HeadingPairs:new a,TitleOfParts:new n}}render(d,f){d.openXml(r.StdDocAttributes),d.openNode("Properties",u.PROPERTY_ATTRIBUTES),d.leafNode("Application",void 0,"Microsoft Excel"),d.leafNode("DocSecurity",void 0,"0"),d.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(d,f.worksheets),this.map.TitleOfParts.render(d,f.worksheets),this.map.Company.render(d,f.company||""),this.map.Manager.render(d,f.manager),d.leafNode("LinksUpToDate",void 0,"false"),d.leafNode("SharedDoc",void 0,"false"),d.leafNode("HyperlinksChanged",void 0,"false"),d.leafNode("AppVersion",void 0,"16.0300"),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):d.name==="Properties"?!0:(this.parser=this.map[d.name],!!this.parser&&(this.parser.parseOpen(d),!0))}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d==="Properties"?(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1):!0}}u.DateFormat=function(h){return h.toISOString().replace(/[.]\d{3,6}/,"")},u.DateAttrs={"xsi:type":"dcterms:W3CDTF"},u.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},s.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform");class l extends o{render(n,u){n.openXml(r.StdDocAttributes),n.openNode("Types",l.PROPERTY_ATTRIBUTES);const h={};(u.media||[]).forEach(d=>{if(d.type==="image"){const f=d.extension;h[f]||(h[f]=!0,n.leafNode("Default",{Extension:f,ContentType:"image/"+f}))}}),n.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),n.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),n.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),u.worksheets.forEach(d=>{const f=`/xl/worksheets/sheet${d.id}.xml`;n.leafNode("Override",{PartName:f,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),n.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),n.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),u.sharedStrings&&u.sharedStrings.count&&n.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),u.tables&&u.tables.forEach(d=>{n.leafNode("Override",{PartName:"/xl/tables/"+d.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),u.drawings&&u.drawings.forEach(d=>{n.leafNode("Override",{PartName:`/xl/drawings/${d.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),u.commentRefs&&(n.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),u.commentRefs.forEach(d=>{let{commentName:f}=d;n.leafNode("Override",{PartName:`/xl/${f}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),n.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),n.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),n.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},s.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("../simple/date-xform"),a=e("../simple/string-xform"),n=e("../simple/integer-xform");class u extends o{constructor(){super(),this.map={"dc:creator":new a({tag:"dc:creator"}),"dc:title":new a({tag:"dc:title"}),"dc:subject":new a({tag:"dc:subject"}),"dc:description":new a({tag:"dc:description"}),"dc:identifier":new a({tag:"dc:identifier"}),"dc:language":new a({tag:"dc:language"}),"cp:keywords":new a({tag:"cp:keywords"}),"cp:category":new a({tag:"cp:category"}),"cp:lastModifiedBy":new a({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new l({tag:"cp:lastPrinted",format:u.DateFormat}),"cp:revision":new n({tag:"cp:revision"}),"cp:version":new a({tag:"cp:version"}),"cp:contentStatus":new a({tag:"cp:contentStatus"}),"cp:contentType":new a({tag:"cp:contentType"}),"dcterms:created":new l({tag:"dcterms:created",attrs:u.DateAttrs,format:u.DateFormat}),"dcterms:modified":new l({tag:"dcterms:modified",attrs:u.DateAttrs,format:u.DateFormat})}}render(d,f){d.openXml(r.StdDocAttributes),d.openNode("cp:coreProperties",u.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(d,f.creator),this.map["dc:title"].render(d,f.title),this.map["dc:subject"].render(d,f.subject),this.map["dc:description"].render(d,f.description),this.map["dc:identifier"].render(d,f.identifier),this.map["dc:language"].render(d,f.language),this.map["cp:keywords"].render(d,f.keywords),this.map["cp:category"].render(d,f.category),this.map["cp:lastModifiedBy"].render(d,f.lastModifiedBy),this.map["cp:lastPrinted"].render(d,f.lastPrinted),this.map["cp:revision"].render(d,f.revision),this.map["cp:version"].render(d,f.version),this.map["cp:contentStatus"].render(d,f.contentStatus),this.map["cp:contentType"].render(d,f.contentType),this.map["dcterms:created"].render(d,f.created),this.map["dcterms:modified"].render(d,f.modified),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[d.name],this.parser)return this.parser.parseOpen(d),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(d))}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+d)}}}u.DateFormat=function(h){return h.toISOString().replace(/[.]\d{3}/,"")},u.DateAttrs={"xsi:type":"dcterms:W3CDTF"},u.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},s.exports=u},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{render(o,l){o.leafNode("Relationship",l)}parseOpen(o){return o.name==="Relationship"?(this.model=o.attributes,!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("./relationship-xform");class a extends o{constructor(){super(),this.map={Relationship:new l}}render(u,h){h=h||this._values,u.openXml(r.StdDocAttributes),u.openNode("Relationships",a.RELATIONSHIPS_ATTRIBUTES),h.forEach(d=>{this.map.Relationship.render(u,d)}),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[u.name],this.parser)return this.parser.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(u==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: "+u)}}a.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},s.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{parseOpen(o){return this.parser?(this.parser.parseOpen(o),!0):(o.name===this.tag?(this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}}):(this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)),!0)}parseText(o){this.parser&&this.parser.parseText(o)}reconcilePicture(o,l){if(o&&o.rId){const a=l.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(a){const n=a[1],u=l.mediaIndex[n];return l.media[u]}}}}},{"../base-xform":32}],57:[function(e,s,c){const r=e("../base-xform"),o=e("./blip-xform");s.exports=class extends r{constructor(){super(),this.map={"a:blip":new o}}get tag(){return"xdr:blipFill"}render(l,a){l.openNode(this.tag),this.map["a:blip"].render(l,a),l.openNode("a:stretch"),l.leafNode("a:fillRect"),l.closeNode(),l.closeNode()}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}parseText(){}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l===this.tag?(this.model=this.map["a:blip"].model,!1):!0}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"a:blip"}render(o,l){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":l.rId,cstate:"print"})}parseOpen(o){return o.name===this.tag&&(this.model={rId:o.attributes["r:embed"]}),!0}parseText(){}parseClose(o){return o!==this.tag}}},{"../base-xform":32}],59:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"xdr:cNvPicPr"}render(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){return o!==this.tag}}},{"../base-xform":32}],60:[function(e,s,c){const r=e("../base-xform"),o=e("./hlink-click-xform"),l=e("./ext-lst-xform");s.exports=class extends r{constructor(){super(),this.map={"a:hlinkClick":new o,"a:extLst":new l}}get tag(){return"xdr:cNvPr"}render(a,n){a.openNode(this.tag,{id:n.index,name:"Picture "+n.index}),this.map["a:hlinkClick"].render(a,n),this.map["a:extLst"].render(a,n),a.closeNode()}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):(a.name===this.tag?this.reset():(this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)),!0)}parseText(){}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):a===this.tag?(this.model=this.map["a:hlinkClick"].model,!1):!0}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,s,c){const r=e("../base-xform"),o=e("../simple/integer-xform");s.exports=class extends r{constructor(l){super(),this.tag=l.tag,this.map={"xdr:col":new o({tag:"xdr:col",zero:!0}),"xdr:colOff":new o({tag:"xdr:colOff",zero:!0}),"xdr:row":new o({tag:"xdr:row",zero:!0}),"xdr:rowOff":new o({tag:"xdr:rowOff",zero:!0})}}render(l,a){l.openNode(this.tag),this.map["xdr:col"].render(l,a.nativeCol),this.map["xdr:colOff"].render(l,a.nativeColOff),this.map["xdr:row"].render(l,a.nativeRow),this.map["xdr:rowOff"].render(l,a.nativeRowOff),l.closeNode()}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):(l.name===this.tag?this.reset():(this.parser=this.map[l.name],this.parser&&this.parser.parseOpen(l)),!0)}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return this.parser?(this.parser.parseClose(l)||(this.parser=void 0),!0):l===this.tag?(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1):!0}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,s,c){const r=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),l=e("../base-xform"),a=e("./two-cell-anchor-xform"),n=e("./one-cell-anchor-xform");class u extends l{constructor(){super(),this.map={"xdr:twoCellAnchor":new a,"xdr:oneCellAnchor":new n}}prepare(d){d.anchors.forEach((f,m)=>{f.anchorType=(function(g){return(typeof g.range=="string"?r.decode(g.range):g.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(f),this.map[f.anchorType].prepare(f,{index:m})})}get tag(){return"xdr:wsDr"}render(d,f){d.openXml(o.StdDocAttributes),d.openNode(this.tag,u.DRAWING_ATTRIBUTES),f.anchors.forEach(m=>{this.map[m.anchorType].render(d,m)}),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):(d.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)),!0)}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):d!==this.tag}reconcile(d,f){d.anchors.forEach(m=>{m.br?this.map["xdr:twoCellAnchor"].reconcile(m,f):this.map["xdr:oneCellAnchor"].reconcile(m,f)})}}u.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},s.exports=u},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"a:extLst"}render(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}parseOpen(o){switch(o.name){case this.tag:default:return!0}}parseText(){}parseClose(o){return o!==this.tag}}},{"../base-xform":32}],64:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{constructor(o){super(),this.tag=o.tag,this.map={}}render(o,l){o.openNode(this.tag);const a=Math.floor(9525*l.width),n=Math.floor(9525*l.height);o.addAttribute("cx",a),o.addAttribute("cy",n),o.closeNode()}parseOpen(o){return o.name===this.tag&&(this.model={width:parseInt(o.attributes.cx||"0",10)/9525,height:parseInt(o.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"a:hlinkClick"}render(o,l){l.hyperlinks&&l.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":l.hyperlinks.rId,tooltip:l.hyperlinks.tooltip})}parseOpen(o){return o.name===this.tag&&(this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}}),!0}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,s,c){const r=e("../base-xform"),o=e("./c-nv-pr-xform"),l=e("./c-nv-pic-pr-xform");s.exports=class extends r{constructor(){super(),this.map={"xdr:cNvPr":new o,"xdr:cNvPicPr":new l}}get tag(){return"xdr:nvPicPr"}render(a,n){a.openNode(this.tag),this.map["xdr:cNvPr"].render(a,n),this.map["xdr:cNvPicPr"].render(a,n),a.closeNode()}parseOpen(a){return this.parser?(this.parser.parseOpen(a),!0):(a.name===this.tag?this.reset():(this.parser=this.map[a.name],this.parser&&this.parser.parseOpen(a)),!0)}parseText(){}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.parser=void 0),!0):a===this.tag?(this.model=this.map["xdr:cNvPr"].model,!1):!0}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,s,c){const r=e("./base-cell-anchor-xform"),o=e("../static-xform"),l=e("./cell-position-xform"),a=e("./ext-xform"),n=e("./pic-xform");s.exports=class extends r{constructor(){super(),this.map={"xdr:from":new l({tag:"xdr:from"}),"xdr:ext":new a({tag:"xdr:ext"}),"xdr:pic":new n,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(u,h){this.map["xdr:pic"].prepare(u.picture,h)}render(u,h){u.openNode(this.tag,{editAs:h.range.editAs||"oneCell"}),this.map["xdr:from"].render(u,h.range.tl),this.map["xdr:ext"].render(u,h.range.ext),this.map["xdr:pic"].render(u,h.picture),this.map["xdr:clientData"].render(u,{}),u.closeNode()}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u===this.tag?(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1):!0}reconcile(u,h){u.medium=this.reconcilePicture(u.picture,h)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,s,c){const r=e("../base-xform"),o=e("../static-xform"),l=e("./blip-fill-xform"),a=e("./nv-pic-pr-xform"),n=e("./sp-pr");s.exports=class extends r{constructor(){super(),this.map={"xdr:nvPicPr":new a,"xdr:blipFill":new l,"xdr:spPr":new o(n)}}get tag(){return"xdr:pic"}prepare(u,h){u.index=h.index+1}render(u,h){u.openNode(this.tag),this.map["xdr:nvPicPr"].render(u,h),this.map["xdr:blipFill"].render(u,h),this.map["xdr:spPr"].render(u,h),u.closeNode()}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}parseText(){}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):u!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,s,c){s.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,s,c){const r=e("./base-cell-anchor-xform"),o=e("../static-xform"),l=e("./cell-position-xform"),a=e("./pic-xform");s.exports=class extends r{constructor(){super(),this.map={"xdr:from":new l({tag:"xdr:from"}),"xdr:to":new l({tag:"xdr:to"}),"xdr:pic":new a,"xdr:clientData":new o({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(n,u){this.map["xdr:pic"].prepare(n.picture,u)}render(n,u){n.openNode(this.tag,{editAs:u.range.editAs||"oneCell"}),this.map["xdr:from"].render(n,u.range.tl),this.map["xdr:to"].render(n,u.range.br),this.map["xdr:pic"].render(n,u.picture),this.map["xdr:clientData"].render(n,{}),n.closeNode()}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n===this.tag?(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1):!0}reconcile(n,u){n.medium=this.reconcilePicture(n.picture,u)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,s,c){const r=e("./base-xform");s.exports=class extends r{constructor(o){super(),this.tag=o.tag,this.always=!!o.always,this.count=o.count,this.empty=o.empty,this.$count=o.$count||"count",this.$=o.$,this.childXform=o.childXform,this.maxItems=o.maxItems}prepare(o,l){const{childXform:a}=this;o&&o.forEach((n,u)=>{l.index=u,a.prepare(n,l)})}render(o,l){if(this.always||l&&l.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,l&&l.length||0);const{childXform:a}=this;(l||[]).forEach((n,u)=>{a.render(o,n,u)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}parseOpen(o){return this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}parseText(o){this.parser&&this.parser.parseText(o)}parseClose(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(o,l){if(o){const{childXform:a}=this;o.forEach(n=>{a.reconcile(n,l)})}}}},{"./base-xform":32}],72:[function(e,s,c){const r=e("../../../utils/col-cache"),o=e("../base-xform");s.exports=class extends o{get tag(){return"autoFilter"}render(l,a){if(a)if(typeof a=="string")l.leafNode("autoFilter",{ref:a});else{const n=function(d){return typeof d=="string"?d:r.getAddress(d.row,d.column).address},u=n(a.from),h=n(a.to);u&&h&&l.leafNode("autoFilter",{ref:`${u}:${h}`})}}parseOpen(l){l.name==="autoFilter"&&(this.model=l.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,s,c){const r=e("../../../utils/utils"),o=e("../base-xform"),l=e("../../../doc/range"),a=e("../../../doc/enums"),n=e("../strings/rich-text-xform");function u(h){if(h==null)return a.ValueType.Null;if(h instanceof String||typeof h=="string")return a.ValueType.String;if(typeof h=="number")return a.ValueType.Number;if(typeof h=="boolean")return a.ValueType.Boolean;if(h instanceof Date)return a.ValueType.Date;if(h.text&&h.hyperlink)return a.ValueType.Hyperlink;if(h.formula)return a.ValueType.Formula;if(h.error)return a.ValueType.Error;throw new Error("I could not understand type of value")}s.exports=class extends o{constructor(){super(),this.richTextXForm=new n}get tag(){return"c"}prepare(h,d){const f=d.styles.addStyleModel(h.style||{},(function(m){return m.type===a.ValueType.Formula?u(m.result):m.type})(h));switch(f&&(h.styleId=f),h.comment&&d.comments.push({...h.comment,ref:h.address}),h.type){case a.ValueType.String:case a.ValueType.RichText:d.sharedStrings&&(h.ssId=d.sharedStrings.add(h.value));break;case a.ValueType.Date:d.date1904&&(h.date1904=!0);break;case a.ValueType.Hyperlink:d.sharedStrings&&h.text!==void 0&&h.text!==null&&(h.ssId=d.sharedStrings.add(h.text)),d.hyperlinks.push({address:h.address,target:h.hyperlink,tooltip:h.tooltip});break;case a.ValueType.Merge:d.merges.add(h);break;case a.ValueType.Formula:if(d.date1904&&(h.date1904=!0),h.shareType==="shared"&&(h.si=d.siFormulae++),h.formula)d.formulae[h.address]=h;else if(h.sharedFormula){const m=d.formulae[h.sharedFormula];if(!m)throw new Error("Shared Formula master must exist above and or left of clone for cell "+h.address);m.si===void 0?(m.shareType="shared",m.si=d.siFormulae++,m.range=new l(m.address,h.address)):m.range&&m.range.expandToAddress(h.address),h.si=m.si}}}renderFormula(h,d){let f=null;switch(d.shareType){case"shared":f={t:"shared",ref:d.ref||d.range.range,si:d.si};break;case"array":f={t:"array",ref:d.ref};break;default:d.si!==void 0&&(f={t:"shared",si:d.si})}switch(u(d.result)){case a.ValueType.Null:h.leafNode("f",f,d.formula);break;case a.ValueType.String:h.addAttribute("t","str"),h.leafNode("f",f,d.formula),h.leafNode("v",null,d.result);break;case a.ValueType.Number:h.leafNode("f",f,d.formula),h.leafNode("v",null,d.result);break;case a.ValueType.Boolean:h.addAttribute("t","b"),h.leafNode("f",f,d.formula),h.leafNode("v",null,d.result?1:0);break;case a.ValueType.Error:h.addAttribute("t","e"),h.leafNode("f",f,d.formula),h.leafNode("v",null,d.result.error);break;case a.ValueType.Date:h.leafNode("f",f,d.formula),h.leafNode("v",null,r.dateToExcel(d.result,d.date1904));break;default:throw new Error("I could not understand type of value")}}render(h,d){if(d.type!==a.ValueType.Null||d.styleId){switch(h.openNode("c"),h.addAttribute("r",d.address),d.styleId&&h.addAttribute("s",d.styleId),d.type){case a.ValueType.Null:break;case a.ValueType.Number:h.leafNode("v",null,d.value);break;case a.ValueType.Boolean:h.addAttribute("t","b"),h.leafNode("v",null,d.value?"1":"0");break;case a.ValueType.Error:h.addAttribute("t","e"),h.leafNode("v",null,d.value.error);break;case a.ValueType.String:case a.ValueType.RichText:d.ssId!==void 0?(h.addAttribute("t","s"),h.leafNode("v",null,d.ssId)):d.value&&d.value.richText?(h.addAttribute("t","inlineStr"),h.openNode("is"),d.value.richText.forEach(f=>{this.richTextXForm.render(h,f)}),h.closeNode("is")):(h.addAttribute("t","str"),h.leafNode("v",null,d.value));break;case a.ValueType.Date:h.leafNode("v",null,r.dateToExcel(d.value,d.date1904));break;case a.ValueType.Hyperlink:d.ssId!==void 0?(h.addAttribute("t","s"),h.leafNode("v",null,d.ssId)):(h.addAttribute("t","str"),h.leafNode("v",null,d.text));break;case a.ValueType.Formula:this.renderFormula(h,d);break;case a.ValueType.Merge:}h.closeNode()}}parseOpen(h){if(this.parser)return this.parser.parseOpen(h),!0;switch(h.name){case"c":return this.model={address:h.attributes.r},this.t=h.attributes.t,h.attributes.s&&(this.model.styleId=parseInt(h.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=h.attributes.si,this.model.shareType=h.attributes.t,this.model.ref=h.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(h),!0;default:return!1}}parseText(h){if(this.parser)this.parser.parseText(h);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+h:h;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+h:h:this.model.value=this.model.value?this.model.value+h:h}}parseClose(h){switch(h){case"c":{const{model:d}=this;if(d.formula||d.shareType)d.type=a.ValueType.Formula,d.value&&(this.t==="str"?d.result=r.xmlDecode(d.value):this.t==="b"?d.result=parseInt(d.value,10)!==0:this.t==="e"?d.result={error:d.value}:d.result=parseFloat(d.value),d.value=void 0);else if(d.value!==void 0)switch(this.t){case"s":d.type=a.ValueType.String,d.value=parseInt(d.value,10);break;case"str":d.type=a.ValueType.String,d.value=r.xmlDecode(d.value);break;case"inlineStr":d.type=a.ValueType.String;break;case"b":d.type=a.ValueType.Boolean,d.value=parseInt(d.value,10)!==0;break;case"e":d.type=a.ValueType.Error,d.value={error:d.value};break;default:d.type=a.ValueType.Number,d.value=parseFloat(d.value)}else d.styleId?d.type=a.ValueType.Null:d.type=a.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(h),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(h),!0)}}reconcile(h,d){const f=h.styleId&&d.styles&&d.styles.getStyleModel(h.styleId);switch(f&&(h.style=f),h.styleId!==void 0&&(h.styleId=void 0),h.type){case a.ValueType.String:typeof h.value=="number"&&d.sharedStrings&&(h.value=d.sharedStrings.getString(h.value)),h.value.richText&&(h.type=a.ValueType.RichText);break;case a.ValueType.Number:f&&r.isDateFmt(f.numFmt)&&(h.type=a.ValueType.Date,h.value=r.excelToDate(h.value,d.date1904));break;case a.ValueType.Formula:h.result!==void 0&&f&&r.isDateFmt(f.numFmt)&&(h.result=r.excelToDate(h.result,d.date1904)),h.shareType==="shared"&&(h.ref?d.formulae[h.si]=h.address:(h.sharedFormula=d.formulae[h.si],delete h.shareType),delete h.si)}const m=d.hyperlinkMap[h.address];m&&(h.type===a.ValueType.Formula?(h.text=h.result,h.result=void 0):(h.text=h.value,h.value=void 0),h.type=a.ValueType.Hyperlink,h.hyperlink=m);const g=d.commentsMap&&d.commentsMap[h.address];g&&(h.comment=g)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{get tag(){return"x14:cfIcon"}render(o,l){o.leafNode(this.tag,{iconSet:l.iconSet,iconId:l.iconId})}parseOpen(o){let{attributes:l}=o;this.model={iconSet:l.iconSet,iconId:r.toIntValue(l.iconId)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],75:[function(e,s,c){const{v4:r}=e("uuid"),o=e("../../base-xform"),l=e("../../composite-xform"),a=e("./databar-ext-xform"),n=e("./icon-set-ext-xform"),u={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class h extends l{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new a,"x14:iconSet":this.iconSetXform=new n}}get tag(){return"x14:cfRule"}static isExt(f){return f.type==="dataBar"?a.isExt(f):!(f.type!=="iconSet"||!f.custom&&!u[f.iconSet])}prepare(f){h.isExt(f)&&(f.x14Id=`{${r()}}`.toUpperCase())}render(f,m){if(h.isExt(m))switch(m.type){case"dataBar":this.renderDataBar(f,m);break;case"iconSet":this.renderIconSet(f,m)}}renderDataBar(f,m){f.openNode(this.tag,{type:"dataBar",id:m.x14Id}),this.databarXform.render(f,m),f.closeNode()}renderIconSet(f,m){f.openNode(this.tag,{type:"iconSet",priority:m.priority,id:m.x14Id||`{${r()}}`}),this.iconSetXform.render(f,m),f.closeNode()}createNewModel(f){let{attributes:m}=f;return{type:m.type,x14Id:m.id,priority:o.toIntValue(m.priority)}}onParserClose(f,m){Object.assign(this.model,m.model)}}s.exports=h},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,s,c){const r=e("../../composite-xform"),o=e("./f-ext-xform");s.exports=class extends r{constructor(){super(),this.map={"xm:f":this.fExtXform=new o}}get tag(){return"x14:cfvo"}render(l,a){l.openNode(this.tag,{type:a.type}),a.value!==void 0&&this.fExtXform.render(l,a.value),l.closeNode()}createNewModel(l){return{type:l.attributes.type}}onParserClose(l,a){l==="xm:f"&&(this.model.value=a.model?parseFloat(a.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,s,c){const r=e("../../composite-xform"),o=e("./sqref-ext-xform"),l=e("./cf-rule-ext-xform");s.exports=class extends r{constructor(){super(),this.map={"xm:sqref":this.sqRef=new o,"x14:cfRule":this.cfRule=new l}}get tag(){return"x14:conditionalFormatting"}prepare(a,n){a.rules.forEach(u=>{this.cfRule.prepare(u,n)})}render(a,n){n.rules.some(l.isExt)&&(a.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),n.rules.filter(l.isExt).forEach(u=>this.cfRule.render(a,u)),this.sqRef.render(a,n.ref),a.closeNode())}createNewModel(){return{rules:[]}}onParserClose(a,n){switch(a){case"xm:sqref":this.model.ref=n.model;break;case"x14:cfRule":this.model.rules.push(n.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,s,c){const r=e("../../composite-xform"),o=e("./cf-rule-ext-xform"),l=e("./conditional-formatting-ext-xform");s.exports=class extends r{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new l}}get tag(){return"x14:conditionalFormattings"}hasContent(a){return a.hasExtContent===void 0&&(a.hasExtContent=a.some(n=>n.rules.some(o.isExt))),a.hasExtContent}prepare(a,n){a.forEach(u=>{this.cfXform.prepare(u,n)})}render(a,n){this.hasContent(n)&&(a.openNode(this.tag),n.forEach(u=>this.cfXform.render(a,u)),a.closeNode())}createNewModel(){return[]}onParserClose(a,n){this.model.push(n.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,s,c){const r=e("../../base-xform"),o=e("../../composite-xform"),l=e("../../style/color-xform"),a=e("./cfvo-ext-xform");s.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:borderColor":this.borderColorXform=new l("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new l("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new l("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new l("x14:axisColor")}}static isExt(n){return!n.gradient}get tag(){return"x14:dataBar"}render(n,u){n.openNode(this.tag,{minLength:r.toIntAttribute(u.minLength,0,!0),maxLength:r.toIntAttribute(u.maxLength,100,!0),border:r.toBoolAttribute(u.border,!1),gradient:r.toBoolAttribute(u.gradient,!0),negativeBarColorSameAsPositive:r.toBoolAttribute(u.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolAttribute(u.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toAttribute(u.axisPosition,"auto"),direction:r.toAttribute(u.direction,"leftToRight")}),u.cfvo.forEach(h=>{this.cfvoXform.render(n,h)}),this.borderColorXform.render(n,u.borderColor),this.negativeBorderColorXform.render(n,u.negativeBorderColor),this.negativeFillColorXform.render(n,u.negativeFillColor),this.axisColorXform.render(n,u.axisColor),n.closeNode()}createNewModel(n){let{attributes:u}=n;return{cfvo:[],minLength:r.toIntValue(u.minLength,0),maxLength:r.toIntValue(u.maxLength,100),border:r.toBoolValue(u.border,!1),gradient:r.toBoolValue(u.gradient,!0),negativeBarColorSameAsPositive:r.toBoolValue(u.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:r.toBoolValue(u.negativeBarBorderColorSameAsPositive,!0),axisPosition:r.toStringValue(u.axisPosition,"auto"),direction:r.toStringValue(u.direction,"leftToRight")}}onParserClose(n,u){const[,h]=n.split(":");h==="cfvo"?this.model.cfvo.push(u.model):this.model[h]=u.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{get tag(){return"xm:f"}render(o,l){o.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],81:[function(e,s,c){const r=e("../../base-xform"),o=e("../../composite-xform"),l=e("./cfvo-ext-xform"),a=e("./cf-icon-ext-xform");s.exports=class extends o{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new l,"x14:cfIcon":this.cfIconXform=new a}}get tag(){return"x14:iconSet"}render(n,u){n.openNode(this.tag,{iconSet:r.toStringAttribute(u.iconSet),reverse:r.toBoolAttribute(u.reverse,!1),showValue:r.toBoolAttribute(u.showValue,!0),custom:r.toBoolAttribute(u.icons,!1)}),u.cfvo.forEach(h=>{this.cfvoXform.render(n,h)}),u.icons&&u.icons.forEach((h,d)=>{h.iconId=d,this.cfIconXform.render(n,h)}),n.closeNode()}createNewModel(n){let{attributes:u}=n;return{cfvo:[],iconSet:r.toStringValue(u.iconSet,"3TrafficLights"),reverse:r.toBoolValue(u.reverse,!1),showValue:r.toBoolValue(u.showValue,!0)}}onParserClose(n,u){const[,h]=n.split(":");switch(h){case"cfvo":this.model.cfvo.push(u.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(u.model);break;default:this.model[h]=u.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{get tag(){return"xm:sqref"}render(o,l){o.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],83:[function(e,s,c){const r=e("../../base-xform"),o=e("../../composite-xform"),l=e("../../../../doc/range"),a=e("./databar-xform"),n=e("./ext-lst-ref-xform"),u=e("./formula-xform"),h=e("./color-scale-xform"),d=e("./icon-set-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},m=p=>{const{type:v,operator:b}=p;switch(v){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:v};default:return{type:v,operator:b}}};class g extends o{constructor(){super(),this.map={dataBar:this.databarXform=new a,extLst:this.extLstRefXform=new n,formula:this.formulaXform=new u,colorScale:this.colorScaleXform=new h,iconSet:this.iconSetXform=new d}}get tag(){return"cfRule"}static isPrimitive(v){return v.type!=="iconSet"||!v.custom&&!f[v.iconSet]}render(v,b){switch(b.type){case"expression":this.renderExpression(v,b);break;case"cellIs":this.renderCellIs(v,b);break;case"top10":this.renderTop10(v,b);break;case"aboveAverage":this.renderAboveAverage(v,b);break;case"dataBar":this.renderDataBar(v,b);break;case"colorScale":this.renderColorScale(v,b);break;case"iconSet":this.renderIconSet(v,b);break;case"containsText":this.renderText(v,b);break;case"timePeriod":this.renderTimePeriod(v,b)}}renderExpression(v,b){v.openNode(this.tag,{type:"expression",dxfId:b.dxfId,priority:b.priority}),this.formulaXform.render(v,b.formulae[0]),v.closeNode()}renderCellIs(v,b){v.openNode(this.tag,{type:"cellIs",dxfId:b.dxfId,priority:b.priority,operator:b.operator}),b.formulae.forEach(x=>{this.formulaXform.render(v,x)}),v.closeNode()}renderTop10(v,b){v.leafNode(this.tag,{type:"top10",dxfId:b.dxfId,priority:b.priority,percent:r.toBoolAttribute(b.percent,!1),bottom:r.toBoolAttribute(b.bottom,!1),rank:r.toIntValue(b.rank,10,!0)})}renderAboveAverage(v,b){v.leafNode(this.tag,{type:"aboveAverage",dxfId:b.dxfId,priority:b.priority,aboveAverage:r.toBoolAttribute(b.aboveAverage,!0)})}renderDataBar(v,b){v.openNode(this.tag,{type:"dataBar",priority:b.priority}),this.databarXform.render(v,b),this.extLstRefXform.render(v,b),v.closeNode()}renderColorScale(v,b){v.openNode(this.tag,{type:"colorScale",priority:b.priority}),this.colorScaleXform.render(v,b),v.closeNode()}renderIconSet(v,b){g.isPrimitive(b)&&(v.openNode(this.tag,{type:"iconSet",priority:b.priority}),this.iconSetXform.render(v,b),v.closeNode())}renderText(v,b){v.openNode(this.tag,{type:b.operator,dxfId:b.dxfId,priority:b.priority,operator:r.toStringAttribute(b.operator,"containsText")});const x=(A=>{if(A.formulae&&A.formulae[0])return A.formulae[0];const M=new l(A.ref),{tl:V}=M;switch(A.operator){case"containsText":return`NOT(ISERROR(SEARCH("${A.text}",${V})))`;case"containsBlanks":return`LEN(TRIM(${V}))=0`;case"notContainsBlanks":return`LEN(TRIM(${V}))>0`;case"containsErrors":return`ISERROR(${V})`;case"notContainsErrors":return`NOT(ISERROR(${V}))`;default:return}})(b);x&&this.formulaXform.render(v,x),v.closeNode()}renderTimePeriod(v,b){v.openNode(this.tag,{type:"timePeriod",dxfId:b.dxfId,priority:b.priority,timePeriod:b.timePeriod});const x=(A=>{if(A.formulae&&A.formulae[0])return A.formulae[0];const M=new l(A.ref),{tl:V}=M;switch(A.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${V},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${V},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${V},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${V},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${V},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${V},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${V},1)=TODAY()-1`;case"today":return`FLOOR(${V},1)=TODAY()`;case"tomorrow":return`FLOOR(${V},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${V},1)<=6,FLOOR(${V},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${V})=MONTH(EDATE(TODAY(),0-1)),YEAR(${V})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${V})=MONTH(TODAY()),YEAR(${V})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${V})=MONTH(EDATE(TODAY(),0+1)),YEAR(${V})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(b);x&&this.formulaXform.render(v,x),v.closeNode()}createNewModel(v){let{attributes:b}=v;return{...m(b),dxfId:r.toIntValue(b.dxfId),priority:r.toIntValue(b.priority),timePeriod:b.timePeriod,percent:r.toBoolValue(b.percent),bottom:r.toBoolValue(b.bottom),rank:r.toIntValue(b.rank),aboveAverage:r.toBoolValue(b.aboveAverage)}}onParserClose(v,b){switch(v){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,b.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(b.model)}}}s.exports=g},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{get tag(){return"cfvo"}render(o,l){o.leafNode(this.tag,{type:l.type,val:l.value})}parseOpen(o){this.model={type:o.attributes.type,value:r.toFloatValue(o.attributes.val)}}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],85:[function(e,s,c){const r=e("../../composite-xform"),o=e("../../style/color-xform"),l=e("./cfvo-xform");s.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new l,color:this.colorXform=new o}}get tag(){return"colorScale"}render(a,n){a.openNode(this.tag),n.cfvo.forEach(u=>{this.cfvoXform.render(a,u)}),n.color.forEach(u=>{this.colorXform.render(a,u)}),a.closeNode()}createNewModel(a){return{cfvo:[],color:[]}}onParserClose(a,n){this.model[a].push(n.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,s,c){const r=e("../../composite-xform"),o=e("./cf-rule-xform");s.exports=class extends r{constructor(){super(),this.map={cfRule:new o}}get tag(){return"conditionalFormatting"}render(l,a){a.rules.some(o.isPrimitive)&&(l.openNode(this.tag,{sqref:a.ref}),a.rules.forEach(n=>{o.isPrimitive(n)&&(n.ref=a.ref,this.map.cfRule.render(l,n))}),l.closeNode())}createNewModel(l){let{attributes:a}=l;return{ref:a.sqref,rules:[]}}onParserClose(l,a){this.model.rules.push(a.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,s,c){const r=e("../../base-xform"),o=e("./conditional-formatting-xform");s.exports=class extends r{constructor(){super(),this.cfXform=new o}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(l,a){let n=l.reduce((u,h)=>Math.max(u,...h.rules.map(d=>d.priority||0)),1);l.forEach(u=>{u.rules.forEach(h=>{h.priority||(h.priority=n++),h.style&&(h.dxfId=a.styles.addDxfStyle(h.style))})})}render(l,a){a.forEach(n=>{this.cfXform.render(l,n)})}parseOpen(l){return this.parser?(this.parser.parseOpen(l),!0):l.name==="conditionalFormatting"?(this.parser=this.cfXform,this.parser.parseOpen(l),!0):!1}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){return!!this.parser&&(!!this.parser.parseClose(l)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(l,a){l.forEach(n=>{n.rules.forEach(u=>{u.dxfId!==void 0&&(u.style=a.styles.getDxfStyle(u.dxfId),delete u.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,s,c){const r=e("../../composite-xform"),o=e("../../style/color-xform"),l=e("./cfvo-xform");s.exports=class extends r{constructor(){super(),this.map={cfvo:this.cfvoXform=new l,color:this.colorXform=new o}}get tag(){return"dataBar"}render(a,n){a.openNode(this.tag),n.cfvo.forEach(u=>{this.cfvoXform.render(a,u)}),this.colorXform.render(a,n.color),a.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(a,n){switch(a){case"cfvo":this.model.cfvo.push(n.model);break;case"color":this.model.color=n.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,s,c){const r=e("../../base-xform"),o=e("../../composite-xform");class l extends r{get tag(){return"x14:id"}render(u,h){u.leafNode(this.tag,null,h)}parseOpen(){this.model=""}parseText(u){this.model+=u}parseClose(u){return u!==this.tag}}class a extends o{constructor(){super(),this.map={"x14:id":this.idXform=new l}}get tag(){return"ext"}render(u,h){u.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(u,h.x14Id),u.closeNode()}createNewModel(){return{}}onParserClose(u,h){this.model.x14Id=h.model}}s.exports=class extends o{constructor(){super(),this.map={ext:new a}}get tag(){return"extLst"}render(n,u){n.openNode(this.tag),this.map.ext.render(n,u),n.closeNode()}createNewModel(){return{}}onParserClose(n,u){Object.assign(this.model,u.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,s,c){const r=e("../../base-xform");s.exports=class extends r{get tag(){return"formula"}render(o,l){o.leafNode(this.tag,null,l)}parseOpen(){this.model=""}parseText(o){this.model+=o}parseClose(o){return o!==this.tag}}},{"../../base-xform":32}],91:[function(e,s,c){const r=e("../../base-xform"),o=e("../../composite-xform"),l=e("./cfvo-xform");s.exports=class extends o{constructor(){super(),this.map={cfvo:this.cfvoXform=new l}}get tag(){return"iconSet"}render(a,n){a.openNode(this.tag,{iconSet:r.toStringAttribute(n.iconSet,"3TrafficLights"),reverse:r.toBoolAttribute(n.reverse,!1),showValue:r.toBoolAttribute(n.showValue,!0)}),n.cfvo.forEach(u=>{this.cfvoXform.render(a,u)}),a.closeNode()}createNewModel(a){let{attributes:n}=a;return{iconSet:r.toStringValue(n.iconSet,"3TrafficLights"),reverse:r.toBoolValue(n.reverse),showValue:r.toBoolValue(n.showValue),cfvo:[]}}onParserClose(a,n){this.model[a].push(n.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,s,c){const r=e("../../../utils/utils"),o=e("../base-xform");s.exports=class extends o{get tag(){return"col"}prepare(l,a){const n=a.styles.addStyleModel(l.style||{});n&&(l.styleId=n)}render(l,a){l.openNode("col"),l.addAttribute("min",a.min),l.addAttribute("max",a.max),a.width&&l.addAttribute("width",a.width),a.styleId&&l.addAttribute("style",a.styleId),a.hidden&&l.addAttribute("hidden","1"),a.bestFit&&l.addAttribute("bestFit","1"),a.outlineLevel&&l.addAttribute("outlineLevel",a.outlineLevel),a.collapsed&&l.addAttribute("collapsed","1"),l.addAttribute("customWidth","1"),l.closeNode()}parseOpen(l){if(l.name==="col"){const a=this.model={min:parseInt(l.attributes.min||"0",10),max:parseInt(l.attributes.max||"0",10),width:l.attributes.width===void 0?void 0:parseFloat(l.attributes.width||"0")};return l.attributes.style&&(a.styleId=parseInt(l.attributes.style,10)),r.parseBoolean(l.attributes.hidden)&&(a.hidden=!0),r.parseBoolean(l.attributes.bestFit)&&(a.bestFit=!0),l.attributes.outlineLevel&&(a.outlineLevel=parseInt(l.attributes.outlineLevel,10)),r.parseBoolean(l.attributes.collapsed)&&(a.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(l,a){l.styleId&&(l.style=a.styles.getStyleModel(l.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../../../utils/utils"),l=e("../../../utils/col-cache"),a=e("../base-xform"),n=e("../../../doc/range");function u(d,f,m,g){const p=f[m];p!==void 0?d[m]=p:g!==void 0&&(d[m]=g)}function h(d,f,m,g){const p=f[m];p!==void 0&&(d[m]=o.parseBoolean(p))}s.exports=class extends a{get tag(){return"dataValidations"}render(d,f){const m=(function(g){const p=r.map(g,(x,A)=>({address:A,dataValidation:x,marked:!1})).sort((x,A)=>r.strcmp(x.address,A.address)),v=r.keyBy(p,"address"),b=(x,A,M)=>{for(let V=0;V<A;V++){const W=l.encodeAddress(x.row+V,M);if(!g[W]||!r.isEqual(g[x.address],g[W]))return!1}return!0};return p.map(x=>{if(!x.marked){const A=l.decodeEx(x.address);if(A.dimensions)return v[A.dimensions].marked=!0,{...x.dataValidation,sqref:x.address};let M=1,V=l.encodeAddress(A.row+M,A.col);for(;g[V]&&r.isEqual(x.dataValidation,g[V]);)M++,V=l.encodeAddress(A.row+M,A.col);let W=1;for(;b(A,M,A.col+W);)W++;for(let R=0;R<M;R++)for(let F=0;F<W;F++)V=l.encodeAddress(A.row+R,A.col+F),v[V].marked=!0;if(M>1||W>1){const R=A.row+(M-1),F=A.col+(W-1);return{...x.dataValidation,sqref:`${x.address}:${l.encodeAddress(R,F)}`}}return{...x.dataValidation,sqref:x.address}}return null}).filter(Boolean)})(f);m.length&&(d.openNode("dataValidations",{count:m.length}),m.forEach(g=>{d.openNode("dataValidation"),g.type!=="any"&&(d.addAttribute("type",g.type),g.operator&&g.type!=="list"&&g.operator!=="between"&&d.addAttribute("operator",g.operator),g.allowBlank&&d.addAttribute("allowBlank","1")),g.showInputMessage&&d.addAttribute("showInputMessage","1"),g.promptTitle&&d.addAttribute("promptTitle",g.promptTitle),g.prompt&&d.addAttribute("prompt",g.prompt),g.showErrorMessage&&d.addAttribute("showErrorMessage","1"),g.errorStyle&&d.addAttribute("errorStyle",g.errorStyle),g.errorTitle&&d.addAttribute("errorTitle",g.errorTitle),g.error&&d.addAttribute("error",g.error),d.addAttribute("sqref",g.sqref),(g.formulae||[]).forEach((p,v)=>{d.openNode("formula"+(v+1)),g.type==="date"?d.writeText(o.dateToExcel(new Date(p))):d.writeText(p),d.closeNode()}),d.closeNode()}),d.closeNode())}parseOpen(d){switch(d.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=d.attributes.sqref;const f={type:d.attributes.type||"any",formulae:[]};switch(d.attributes.type&&h(f,d.attributes,"allowBlank"),h(f,d.attributes,"showInputMessage"),h(f,d.attributes,"showErrorMessage"),f.type){case"any":case"list":case"custom":break;default:u(f,d.attributes,"operator","between")}return u(f,d.attributes,"promptTitle"),u(f,d.attributes,"prompt"),u(f,d.attributes,"errorStyle"),u(f,d.attributes,"errorTitle"),u(f,d.attributes,"error"),this._dataValidation=f,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(d){this._formula&&this._formula.push(d)}parseClose(d){switch(d){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(f=>{f.includes(":")?new n(f).forEachAddress(m=>{this.model[m]=this._dataValidation}):this.model[f]=this._dataValidation}),!0;case"formula1":case"formula2":{let f=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":f=parseInt(f,10);break;case"decimal":f=parseFloat(f);break;case"date":f=o.excelToDate(parseFloat(f))}return this._dataValidation.formulae.push(f),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"dimension"}render(o,l){l&&o.leafNode("dimension",{ref:l})}parseOpen(o){return o.name==="dimension"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"drawing"}render(o,l){l&&o.leafNode(this.tag,{"r:id":l.rId})}parseOpen(o){return o.name===this.tag?(this.model={rId:o.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,s,c){const r=e("../composite-xform"),o=e("./cf-ext/conditional-formattings-ext-xform");class l extends r{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new o}}get tag(){return"ext"}hasContent(n){return this.conditionalFormattings.hasContent(n.conditionalFormattings)}prepare(n,u){this.conditionalFormattings.prepare(n.conditionalFormattings,u)}render(n,u){n.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(n,u.conditionalFormattings),n.closeNode()}createNewModel(){return{}}onParserClose(n,u){this.model[n]=u.model}}s.exports=class extends r{constructor(){super(),this.map={ext:this.ext=new l}}get tag(){return"extLst"}prepare(a,n){this.ext.prepare(a,n)}hasContent(a){return this.ext.hasContent(a)}render(a,n){this.hasContent(n)&&(a.openNode("extLst"),this.ext.render(a,n),a.closeNode())}createNewModel(){return{}}onParserClose(a,n){Object.assign(this.model,n.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"headerFooter"}render(o,l){if(l){o.addRollback();let a=!1;o.openNode("headerFooter"),l.differentFirst&&(o.addAttribute("differentFirst","1"),a=!0),l.differentOddEven&&(o.addAttribute("differentOddEven","1"),a=!0),l.oddHeader&&typeof l.oddHeader=="string"&&(o.leafNode("oddHeader",null,l.oddHeader),a=!0),l.oddFooter&&typeof l.oddFooter=="string"&&(o.leafNode("oddFooter",null,l.oddFooter),a=!0),l.evenHeader&&typeof l.evenHeader=="string"&&(o.leafNode("evenHeader",null,l.evenHeader),a=!0),l.evenFooter&&typeof l.evenFooter=="string"&&(o.leafNode("evenFooter",null,l.evenFooter),a=!0),l.firstHeader&&typeof l.firstHeader=="string"&&(o.leafNode("firstHeader",null,l.firstHeader),a=!0),l.firstFooter&&typeof l.firstFooter=="string"&&(o.leafNode("firstFooter",null,l.firstFooter),a=!0),a?(o.closeNode(),o.commit()):o.rollback()}}parseOpen(o){switch(o.name){case"headerFooter":return this.model={},o.attributes.differentFirst&&(this.model.differentFirst=parseInt(o.attributes.differentFirst,0)===1),o.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(o.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(o){switch(this.currentNode){case"oddHeader":this.model.oddHeader=o;break;case"oddFooter":this.model.oddFooter=o;break;case"evenHeader":this.model.evenHeader=o;break;case"evenFooter":this.model.evenFooter=o;break;case"firstHeader":this.model.firstHeader=o;break;case"firstFooter":this.model.firstFooter=o}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"hyperlink"}render(o,l){this.isInternalLink(l)?o.leafNode("hyperlink",{ref:l.address,"r:id":l.rId,tooltip:l.tooltip,location:l.target}):o.leafNode("hyperlink",{ref:l.address,"r:id":l.rId,tooltip:l.tooltip})}parseOpen(o){return o.name==="hyperlink"&&(this.model={address:o.attributes.ref,rId:o.attributes["r:id"],tooltip:o.attributes.tooltip},o.attributes.location&&(this.model.target=o.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(o){return o.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(o.target)}}},{"../base-xform":32}],99:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"mergeCell"}render(o,l){o.leafNode("mergeCell",{ref:l})}parseOpen(o){return o.name==="mergeCell"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../../../doc/range"),l=e("../../../utils/col-cache"),a=e("../../../doc/enums");s.exports=class{constructor(){this.merges={}}add(n){if(this.merges[n.master])this.merges[n.master].expandToAddress(n.address);else{const u=`${n.master}:${n.address}`;this.merges[n.master]=new o(u)}}get mergeCells(){return r.map(this.merges,n=>n.range)}reconcile(n,u){r.each(n,h=>{const d=l.decode(h);for(let f=d.top;f<=d.bottom;f++){const m=u[f-1];for(let g=d.left;g<=d.right;g++){const p=m.cells[g-1];p?p.type===a.ValueType.Merge&&(p.master=d.tl):m.cells[g]={type:a.ValueType.Null,address:l.encodeAddress(f,g)}}}})}getMasterAddress(n){const u=this.hash[n];return u&&u.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,s,c){const r=e("../base-xform"),o=l=>l!==void 0;s.exports=class extends r{get tag(){return"outlinePr"}render(l,a){return!(!a||!o(a.summaryBelow)&&!o(a.summaryRight))&&(l.leafNode(this.tag,{summaryBelow:o(a.summaryBelow)?Number(a.summaryBelow):void 0,summaryRight:o(a.summaryRight)?Number(a.summaryRight):void 0}),!0)}parseOpen(l){return l.name===this.tag&&(this.model={summaryBelow:o(l.attributes.summaryBelow)?!!Number(l.attributes.summaryBelow):void 0,summaryRight:o(l.attributes.summaryRight)?!!Number(l.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"brk"}render(o,l){o.leafNode("brk",l)}parseOpen(o){return o.name==="brk"&&(this.model=o.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../base-xform");s.exports=class extends o{get tag(){return"pageMargins"}render(l,a){if(a){const n={left:a.left,right:a.right,top:a.top,bottom:a.bottom,header:a.header,footer:a.footer};r.some(n,u=>u!==void 0)&&l.leafNode(this.tag,n)}}parseOpen(l){return l.name===this.tag?(this.model={left:parseFloat(l.attributes.left||.7),right:parseFloat(l.attributes.right||.7),top:parseFloat(l.attributes.top||.75),bottom:parseFloat(l.attributes.bottom||.75),header:parseFloat(l.attributes.header||.3),footer:parseFloat(l.attributes.footer||.3)},!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"pageSetUpPr"}render(o,l){return!(!l||!l.fitToPage)&&(o.leafNode(this.tag,{fitToPage:l.fitToPage?"1":void 0}),!0)}parseOpen(o){return o.name===this.tag&&(this.model={fitToPage:o.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../base-xform");function l(h){return h?"1":void 0}function a(h){if(h==="overThenDown")return h}function n(h){switch(h){case"atEnd":case"asDisplyed":return h;default:return}}function u(h){switch(h){case"dash":case"blank":case"NA":return h;default:return}}s.exports=class extends o{get tag(){return"pageSetup"}render(h,d){if(d){const f={paperSize:d.paperSize,orientation:d.orientation,horizontalDpi:d.horizontalDpi,verticalDpi:d.verticalDpi,pageOrder:a(d.pageOrder),blackAndWhite:l(d.blackAndWhite),draft:l(d.draft),cellComments:n(d.cellComments),errors:u(d.errors),scale:d.scale,fitToWidth:d.fitToWidth,fitToHeight:d.fitToHeight,firstPageNumber:d.firstPageNumber,useFirstPageNumber:l(d.firstPageNumber),usePrinterDefaults:l(d.usePrinterDefaults),copies:d.copies};r.some(f,m=>m!==void 0)&&h.leafNode(this.tag,f)}}parseOpen(h){if(h.name===this.tag)return this.model={paperSize:(d=h.attributes.paperSize,d!==void 0?parseInt(d,10):void 0),orientation:h.attributes.orientation||"portrait",horizontalDpi:parseInt(h.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(h.attributes.verticalDpi||"4294967295",10),pageOrder:h.attributes.pageOrder||"downThenOver",blackAndWhite:h.attributes.blackAndWhite==="1",draft:h.attributes.draft==="1",cellComments:h.attributes.cellComments||"None",errors:h.attributes.errors||"displayed",scale:parseInt(h.attributes.scale||"100",10),fitToWidth:parseInt(h.attributes.fitToWidth||"1",10),fitToHeight:parseInt(h.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(h.attributes.firstPageNumber||"1",10),useFirstPageNumber:h.attributes.useFirstPageNumber==="1",usePrinterDefaults:h.attributes.usePrinterDefaults==="1",copies:parseInt(h.attributes.copies||"1",10)},!0;return!1;var d}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"picture"}render(o,l){l&&o.leafNode(this.tag,{"r:id":l.rId})}parseOpen(o){return o.name===this.tag?(this.model={rId:o.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../base-xform");function l(a){return a?"1":void 0}s.exports=class extends o{get tag(){return"printOptions"}render(a,n){if(n){const u={headings:l(n.showRowColHeaders),gridLines:l(n.showGridLines),horizontalCentered:l(n.horizontalCentered),verticalCentered:l(n.verticalCentered)};r.some(u,h=>h!==void 0)&&a.leafNode(this.tag,u)}}parseOpen(a){return a.name===this.tag?(this.model={showRowColHeaders:a.attributes.headings==="1",showGridLines:a.attributes.gridLines==="1",horizontalCentered:a.attributes.horizontalCentered==="1",verticalCentered:a.attributes.verticalCentered==="1"},!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,s,c){const r=e("./page-breaks-xform"),o=e("../list-xform");s.exports=class extends o{constructor(){super({tag:"rowBreaks",count:!0,childXform:new r})}render(l,a){if(a&&a.length){l.openNode(this.tag,this.$),this.count&&(l.addAttribute(this.$count,a.length),l.addAttribute("manualBreakCount",a.length));const{childXform:n}=this;a.forEach(u=>{n.render(l,u)}),l.closeNode()}else this.empty&&l.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,s,c){const r=e("../base-xform"),o=e("../../../utils/utils"),l=e("./cell-xform");s.exports=class extends r{constructor(a){super(),this.maxItems=a&&a.maxItems,this.map={c:new l}}get tag(){return"row"}prepare(a,n){const u=n.styles.addStyleModel(a.style);u&&(a.styleId=u);const h=this.map.c;a.cells.forEach(d=>{h.prepare(d,n)})}render(a,n,u){a.openNode("row"),a.addAttribute("r",n.number),n.height&&(a.addAttribute("ht",n.height),a.addAttribute("customHeight","1")),n.hidden&&a.addAttribute("hidden","1"),n.min>0&&n.max>0&&n.min<=n.max&&a.addAttribute("spans",`${n.min}:${n.max}`),n.styleId&&(a.addAttribute("s",n.styleId),a.addAttribute("customFormat","1")),a.addAttribute("x14ac:dyDescent","0.25"),n.outlineLevel&&a.addAttribute("outlineLevel",n.outlineLevel),n.collapsed&&a.addAttribute("collapsed","1");const h=this.map.c;n.cells.forEach(d=>{h.render(a,d,u)}),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;if(a.name==="row"){this.numRowsSeen+=1;const n=a.attributes.spans?a.attributes.spans.split(":").map(h=>parseInt(h,10)):[void 0,void 0],u=this.model={number:parseInt(a.attributes.r,10),min:n[0],max:n[1],cells:[]};return a.attributes.s&&(u.styleId=parseInt(a.attributes.s,10)),o.parseBoolean(a.attributes.hidden)&&(u.hidden=!0),o.parseBoolean(a.attributes.bestFit)&&(u.bestFit=!0),a.attributes.ht&&(u.height=parseFloat(a.attributes.ht)),a.attributes.outlineLevel&&(u.outlineLevel=parseInt(a.attributes.outlineLevel,10)),o.parseBoolean(a.attributes.collapsed)&&(u.collapsed=!0),!0}return this.parser=this.map[a.name],!!this.parser&&(this.parser.parseOpen(a),!0)}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(a,n){a.style=a.styleId?n.styles.getStyleModel(a.styleId):{},a.styleId!==void 0&&(a.styleId=void 0);const u=this.map.c;a.cells.forEach(h=>{u.reconcile(h,n)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../base-xform");s.exports=class extends o{get tag(){return"sheetFormatPr"}render(l,a){if(a){const n={defaultRowHeight:a.defaultRowHeight,outlineLevelRow:a.outlineLevelRow,outlineLevelCol:a.outlineLevelCol,"x14ac:dyDescent":a.dyDescent};a.defaultColWidth&&(n.defaultColWidth=a.defaultColWidth),a.defaultRowHeight&&a.defaultRowHeight===15||(n.customHeight="1"),r.some(n,u=>u!==void 0)&&l.leafNode("sheetFormatPr",n)}}parseOpen(l){return l.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(l.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(l.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(l.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(l.attributes.outlineLevelCol||"0",10)},l.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(l.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,s,c){const r=e("../base-xform"),o=e("../style/color-xform"),l=e("./page-setup-properties-xform"),a=e("./outline-properties-xform");s.exports=class extends r{constructor(){super(),this.map={tabColor:new o("tabColor"),pageSetUpPr:new l,outlinePr:new a}}get tag(){return"sheetPr"}render(n,u){if(u){n.addRollback(),n.openNode("sheetPr");let h=!1;h=this.map.tabColor.render(n,u.tabColor)||h,h=this.map.pageSetUpPr.render(n,u.pageSetup)||h,h=this.map.outlinePr.render(n,u.outlineProperties)||h,h?(n.closeNode(),n.commit()):n.rollback()}}parseOpen(n){return this.parser?(this.parser.parseOpen(n),!0):n.name===this.tag?(this.reset(),!0):!!this.map[n.name]&&(this.parser=this.map[n.name],this.parser.parseOpen(n),!0)}parseText(n){return!!this.parser&&(this.parser.parseText(n),!0)}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../base-xform");function l(n,u){return n?u:void 0}function a(n,u){return n===u||void 0}s.exports=class extends o{get tag(){return"sheetProtection"}render(n,u){if(u){const h={sheet:l(u.sheet,"1"),selectLockedCells:u.selectLockedCells===!1?"1":void 0,selectUnlockedCells:u.selectUnlockedCells===!1?"1":void 0,formatCells:l(u.formatCells,"0"),formatColumns:l(u.formatColumns,"0"),formatRows:l(u.formatRows,"0"),insertColumns:l(u.insertColumns,"0"),insertRows:l(u.insertRows,"0"),insertHyperlinks:l(u.insertHyperlinks,"0"),deleteColumns:l(u.deleteColumns,"0"),deleteRows:l(u.deleteRows,"0"),sort:l(u.sort,"0"),autoFilter:l(u.autoFilter,"0"),pivotTables:l(u.pivotTables,"0")};u.sheet&&(h.algorithmName=u.algorithmName,h.hashValue=u.hashValue,h.saltValue=u.saltValue,h.spinCount=u.spinCount,h.objects=l(u.objects===!1,"1"),h.scenarios=l(u.scenarios===!1,"1")),r.some(h,d=>d!==void 0)&&n.leafNode(this.tag,h)}}parseOpen(n){return n.name===this.tag?(this.model={sheet:a(n.attributes.sheet,"1"),objects:n.attributes.objects!=="1"&&void 0,scenarios:n.attributes.scenarios!=="1"&&void 0,selectLockedCells:n.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:n.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:a(n.attributes.formatCells,"0"),formatColumns:a(n.attributes.formatColumns,"0"),formatRows:a(n.attributes.formatRows,"0"),insertColumns:a(n.attributes.insertColumns,"0"),insertRows:a(n.attributes.insertRows,"0"),insertHyperlinks:a(n.attributes.insertHyperlinks,"0"),deleteColumns:a(n.attributes.deleteColumns,"0"),deleteRows:a(n.attributes.deleteRows,"0"),sort:a(n.attributes.sort,"0"),autoFilter:a(n.attributes.autoFilter,"0"),pivotTables:a(n.attributes.pivotTables,"0")},n.attributes.algorithmName&&(this.model.algorithmName=n.attributes.algorithmName,this.model.hashValue=n.attributes.hashValue,this.model.saltValue=n.attributes.saltValue,this.model.spinCount=parseInt(n.attributes.spinCount,10)),!0):!1}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,s,c){const r=e("../../../utils/col-cache"),o=e("../base-xform"),l={frozen:"frozen",frozenSplit:"frozen",split:"split"};s.exports=class extends o{get tag(){return"sheetView"}prepare(a){switch(a.state){case"frozen":case"split":break;default:a.state="normal"}}render(a,n){a.openNode("sheetView",{workbookViewId:n.workbookViewId||0});const u=function(g,p,v){v&&a.addAttribute(g,p)};let h,d,f,m;switch(u("rightToLeft","1",n.rightToLeft===!0),u("tabSelected","1",n.tabSelected),u("showRuler","0",n.showRuler===!1),u("showRowColHeaders","0",n.showRowColHeaders===!1),u("showGridLines","0",n.showGridLines===!1),u("zoomScale",n.zoomScale,n.zoomScale),u("zoomScaleNormal",n.zoomScaleNormal,n.zoomScaleNormal),u("view",n.style,n.style),n.state){case"frozen":d=n.xSplit||0,f=n.ySplit||0,h=n.topLeftCell||r.getAddress(f+1,d+1).address,m=(n.xSplit&&n.ySplit?"bottomRight":n.xSplit&&"topRight")||"bottomLeft",a.leafNode("pane",{xSplit:n.xSplit||void 0,ySplit:n.ySplit||void 0,topLeftCell:h,activePane:m,state:"frozen"}),a.leafNode("selection",{pane:m,activeCell:n.activeCell,sqref:n.activeCell});break;case"split":n.activePane==="topLeft"&&(n.activePane=void 0),a.leafNode("pane",{xSplit:n.xSplit||void 0,ySplit:n.ySplit||void 0,topLeftCell:n.topLeftCell,activePane:n.activePane}),a.leafNode("selection",{pane:n.activePane,activeCell:n.activeCell,sqref:n.activeCell});break;case"normal":n.activeCell&&a.leafNode("selection",{activeCell:n.activeCell,sqref:n.activeCell})}a.closeNode()}parseOpen(a){switch(a.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(a.attributes.workbookViewId,10),rightToLeft:a.attributes.rightToLeft==="1",tabSelected:a.attributes.tabSelected==="1",showRuler:a.attributes.showRuler!=="0",showRowColHeaders:a.attributes.showRowColHeaders!=="0",showGridLines:a.attributes.showGridLines!=="0",zoomScale:parseInt(a.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(a.attributes.zoomScaleNormal||"100",10),style:a.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(a.attributes.xSplit||"0",10),ySplit:parseInt(a.attributes.ySplit||"0",10),topLeftCell:a.attributes.topLeftCell,activePane:a.attributes.activePane||"topLeft",state:a.attributes.state},!0;case"selection":{const n=a.attributes.pane||"topLeft";return this.selections[n]={pane:n,activeCell:a.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(a){let n,u;return a==="sheetView"?(this.sheetView&&this.pane?(n=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:l[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(n.activePane=this.pane.activePane),u=this.selections[this.pane.activePane],u&&u.activeCell&&(n.activeCell=u.activeCell),this.sheetView.style&&(n.style=this.sheetView.style)):(n=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},u=this.selections.topLeft,u&&u.activeCell&&(n.activeCell=u.activeCell),this.sheetView.style&&(n.style=this.sheetView.style)),!1):!0}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"tablePart"}render(o,l){l&&o.leafNode(this.tag,{"r:id":l.rId})}parseOpen(o){return o.name===this.tag?(this.model={rId:o.attributes["r:id"]},!0):!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../../../utils/col-cache"),l=e("../../../utils/xml-stream"),a=e("../../rel-type"),n=e("./merges"),u=e("../base-xform"),h=e("../list-xform"),d=e("./row-xform"),f=e("./col-xform"),m=e("./dimension-xform"),g=e("./hyperlink-xform"),p=e("./merge-cell-xform"),v=e("./data-validations-xform"),b=e("./sheet-properties-xform"),x=e("./sheet-format-properties-xform"),A=e("./sheet-view-xform"),M=e("./sheet-protection-xform"),V=e("./page-margins-xform"),W=e("./page-setup-xform"),R=e("./print-options-xform"),F=e("./auto-filter-xform"),$=e("./picture-xform"),z=e("./drawing-xform"),D=e("./table-part-xform"),N=e("./row-breaks-xform"),E=e("./header-footer-xform"),C=e("./cf/conditional-formattings-xform"),w=e("./ext-lst-xform"),S=(k,T)=>{if(!T||!T.length)return k;if(!k||!k.length)return T;const j={},P={};return k.forEach(U=>{j[U.ref]=U,U.rules.forEach(q=>{const{x14Id:Z}=q;Z&&(P[Z]=q)})}),T.forEach(U=>{U.rules.forEach(q=>{const Z=P[q.x14Id];Z?((B,X)=>{Object.keys(X).forEach(L=>{const I=B[L],G=X[L];I===void 0&&G!==void 0&&(B[L]=G)})})(Z,q):j[U.ref]?j[U.ref].rules.push(q):k.push({ref:U.ref,rules:[q]})})}),k};class _ extends u{constructor(T){super();const{maxRows:j,maxCols:P,ignoreNodes:U}=T||{};this.ignoreNodes=U||[],this.map={sheetPr:new b,dimension:new m,sheetViews:new h({tag:"sheetViews",count:!1,childXform:new A}),sheetFormatPr:new x,cols:new h({tag:"cols",count:!1,childXform:new f}),sheetData:new h({tag:"sheetData",count:!1,empty:!0,childXform:new d({maxItems:P}),maxItems:j}),autoFilter:new F,mergeCells:new h({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new N,hyperlinks:new h({tag:"hyperlinks",count:!1,childXform:new g}),pageMargins:new V,dataValidations:new v,pageSetup:new W,headerFooter:new E,printOptions:new R,picture:new $,drawing:new z,sheetProtection:new M,tableParts:new h({tag:"tableParts",count:!0,childXform:new D}),conditionalFormatting:new C,extLst:new w}}prepare(T,j){j.merges=new n,T.hyperlinks=j.hyperlinks=[],T.comments=j.comments=[],j.formulae={},j.siFormulae=0,this.map.cols.prepare(T.cols,j),this.map.sheetData.prepare(T.rows,j),this.map.conditionalFormatting.prepare(T.conditionalFormattings,j),T.mergeCells=j.merges.mergeCells;const P=T.rels=[];function U(B){return"rId"+(B.length+1)}if(T.hyperlinks.forEach(B=>{const X=U(P);B.rId=X,P.push({Id:X,Type:a.Hyperlink,Target:B.target,TargetMode:"External"})}),T.comments.length>0){const B={Id:U(P),Type:a.Comments,Target:`../comments${T.id}.xml`};P.push(B);const X={Id:U(P),Type:a.VmlDrawing,Target:`../drawings/vmlDrawing${T.id}.vml`};P.push(X),T.comments.forEach(L=>{L.refAddress=o.decodeAddress(L.ref)}),j.commentRefs.push({commentName:"comments"+T.id,vmlDrawing:"vmlDrawing"+T.id})}const q=[];let Z;T.media.forEach(B=>{if(B.type==="background"){const X=U(P);Z=j.media[B.imageId],P.push({Id:X,Type:a.Image,Target:`../media/${Z.name}.${Z.extension}`}),T.background={rId:X},T.image=j.media[B.imageId]}else if(B.type==="image"){let{drawing:X}=T;Z=j.media[B.imageId],X||(X=T.drawing={rId:U(P),name:"drawing"+ ++j.drawingsCount,anchors:[],rels:[]},j.drawings.push(X),P.push({Id:X.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${X.name}.xml`}));let L=this.preImageId===B.imageId?q[B.imageId]:q[X.rels.length];L||(L=U(X.rels),q[X.rels.length]=L,X.rels.push({Id:L,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Z.name}.${Z.extension}`}));const I={picture:{rId:L},range:B.range};if(B.hyperlinks&&B.hyperlinks.hyperlink){const G=U(X.rels);q[X.rels.length]=G,I.picture.hyperlinks={tooltip:B.hyperlinks.tooltip,rId:G},X.rels.push({Id:G,Type:a.Hyperlink,Target:B.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=B.imageId,X.anchors.push(I)}}),T.tables.forEach(B=>{const X=U(P);B.rId=X,P.push({Id:X,Type:a.Table,Target:"../tables/"+B.target}),B.columns.forEach(L=>{const{style:I}=L;I&&(L.dxfId=j.styles.addDxfStyle(I))})}),this.map.extLst.prepare(T,j)}render(T,j){T.openXml(l.StdDocAttributes),T.openNode("worksheet",_.WORKSHEET_ATTRIBUTES);const P=j.properties?{defaultRowHeight:j.properties.defaultRowHeight,dyDescent:j.properties.dyDescent,outlineLevelCol:j.properties.outlineLevelCol,outlineLevelRow:j.properties.outlineLevelRow}:void 0;j.properties&&j.properties.defaultColWidth&&(P.defaultColWidth=j.properties.defaultColWidth);const U={outlineProperties:j.properties&&j.properties.outlineProperties,tabColor:j.properties&&j.properties.tabColor,pageSetup:j.pageSetup&&j.pageSetup.fitToPage?{fitToPage:j.pageSetup.fitToPage}:void 0},q=j.pageSetup&&j.pageSetup.margins,Z={showRowColHeaders:j.pageSetup&&j.pageSetup.showRowColHeaders,showGridLines:j.pageSetup&&j.pageSetup.showGridLines,horizontalCentered:j.pageSetup&&j.pageSetup.horizontalCentered,verticalCentered:j.pageSetup&&j.pageSetup.verticalCentered},B=j.sheetProtection;this.map.sheetPr.render(T,U),this.map.dimension.render(T,j.dimensions),this.map.sheetViews.render(T,j.views),this.map.sheetFormatPr.render(T,P),this.map.cols.render(T,j.cols),this.map.sheetData.render(T,j.rows),this.map.sheetProtection.render(T,B),this.map.autoFilter.render(T,j.autoFilter),this.map.mergeCells.render(T,j.mergeCells),this.map.conditionalFormatting.render(T,j.conditionalFormattings),this.map.dataValidations.render(T,j.dataValidations),this.map.hyperlinks.render(T,j.hyperlinks),this.map.printOptions.render(T,Z),this.map.pageMargins.render(T,q),this.map.pageSetup.render(T,j.pageSetup),this.map.headerFooter.render(T,j.headerFooter),this.map.rowBreaks.render(T,j.rowBreaks),this.map.drawing.render(T,j.drawing),this.map.picture.render(T,j.background),this.map.tableParts.render(T,j.tables),this.map.extLst.render(T,j),j.rels&&j.rels.forEach(X=>{X.Type===a.VmlDrawing&&T.leafNode("legacyDrawing",{"r:id":X.Id})}),T.closeNode()}parseOpen(T){return this.parser?(this.parser.parseOpen(T),!0):T.name==="worksheet"?(r.each(this.map,j=>{j.reset()}),!0):(this.map[T.name]&&!this.ignoreNodes.includes(T.name)&&(this.parser=this.map[T.name],this.parser.parseOpen(T)),!0)}parseText(T){this.parser&&this.parser.parseText(T)}parseClose(T){if(this.parser)return this.parser.parseClose(T)||(this.parser=void 0),!0;if(T==="worksheet"){const j=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(j.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(j.outlineProperties=this.map.sheetPr.model.outlineProperties);const P={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},U=Object.assign(P,this.map.pageSetup.model,this.map.printOptions.model),q=S(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:j,views:this.map.sheetViews.model,pageSetup:U,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:q},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}else return!0}reconcile(T,j){const P=(T.relationships||[]).reduce((q,Z)=>{if(q[Z.Id]=Z,Z.Type===a.Comments&&(T.comments=j.comments[Z.Target].comments),Z.Type===a.VmlDrawing&&T.comments&&T.comments.length){const B=j.vmlDrawings[Z.Target].comments;T.comments.forEach((X,L)=>{X.note=Object.assign({},X.note,B[L])})}return q},{});if(j.commentsMap=(T.comments||[]).reduce((q,Z)=>(Z.ref&&(q[Z.ref]=Z),q),{}),j.hyperlinkMap=(T.hyperlinks||[]).reduce((q,Z)=>(Z.rId&&(q[Z.address]=P[Z.rId].Target),q),{}),j.formulae={},T.rows=T.rows&&T.rows.filter(Boolean)||[],T.rows.forEach(q=>{q.cells=q.cells&&q.cells.filter(Boolean)||[]}),this.map.cols.reconcile(T.cols,j),this.map.sheetData.reconcile(T.rows,j),this.map.conditionalFormatting.reconcile(T.conditionalFormattings,j),T.media=[],T.drawing){const q=P[T.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(q){const Z=q[1];j.drawings[Z].anchors.forEach(B=>{if(B.medium){const X={type:"image",imageId:B.medium.index,range:B.range,hyperlinks:B.picture.hyperlinks};T.media.push(X)}})}}const U=T.background&&P[T.background.rId];if(U){const q=U.Target.split("/media/")[1],Z=j.mediaIndex&&j.mediaIndex[q];Z!==void 0&&T.media.push({type:"background",imageId:Z})}T.tables=(T.tables||[]).map(q=>{const Z=P[q.rId];return j.tables[Z.Target]}),delete T.relationships,delete T.hyperlinks,delete T.comments}}_.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},s.exports=_},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{constructor(o){super(),this.tag=o.tag,this.attr=o.attr}render(o,l){l&&(o.openNode(this.tag),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this._format=o.format||function(l){try{return Number.isNaN(l.getTime())?"":l.toISOString()}catch{return""}},this._parse=o.parse||function(l){return new Date(l)}}render(o,l){l&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,this._format(l)):o.writeText(this._format(l)),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=this._parse(o.attributes[this.attr]):this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs,this.zero=o.zero}render(o,l){(l||this.zero)&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,l):o.writeText(l),o.closeNode())}parseOpen(o){return o.name===this.tag&&(this.attr?this.model=parseInt(o.attributes[this.attr],10):this.text=[],!0)}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{constructor(o){super(),this.tag=o.tag,this.attr=o.attr,this.attrs=o.attrs}render(o,l){l!==void 0&&(o.openNode(this.tag),this.attrs&&o.addAttributes(this.attrs),this.attr?o.addAttribute(this.attr,l):o.writeText(l),o.closeNode())}parseOpen(o){o.name===this.tag&&(this.attr?this.model=o.attributes[this.attr]:this.text=[])}parseText(o){this.attr||this.text.push(o)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,s,c){const r=e("./base-xform"),o=e("../../utils/xml-stream");s.exports=class extends r{constructor(l){super(),this._model=l}render(l){if(!this._xml){const a=new o;(function n(u,h){u.openNode(h.tag,h.$),h.c&&h.c.forEach(d=>{n(u,d)}),h.t&&u.writeText(h.t),u.closeNode()})(a,this._model),this._xml=a.xml}l.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(l){return l!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,s,c){const r=e("./text-xform"),o=e("./rich-text-xform"),l=e("../base-xform");s.exports=class extends l{constructor(){super(),this.map={r:new o,t:new r}}get tag(){return"rPh"}render(a,n){if(a.openNode(this.tag,{sb:n.sb||0,eb:n.eb||0}),n&&n.hasOwnProperty("richText")&&n.richText){const{r:u}=this.map;n.richText.forEach(h=>{u.render(a,h)})}else n&&this.map.t.render(a,n.text);a.closeNode()}parseOpen(a){const{name:n}=a;return this.parser?(this.parser.parseOpen(a),!0):n===this.tag?(this.model={sb:parseInt(a.attributes.sb,10),eb:parseInt(a.attributes.eb,10)},!0):(this.parser=this.map[n],!!this.parser&&(this.parser.parseOpen(a),!0))}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser){if(!this.parser.parseClose(a)){switch(a){case"r":{let n=this.model.richText;n||(n=this.model.richText=[]),n.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return a!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,s,c){const r=e("./text-xform"),o=e("../style/font-xform"),l=e("../base-xform");class a extends l{constructor(u){super(),this.model=u}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new r)}get fontXform(){return this._fontXform||(this._fontXform=new o(a.FONT_OPTIONS))}render(u,h){h=h||this.model,u.openNode("r"),h.font&&this.fontXform.render(u,h.font),this.textXform.render(u,h.text),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(u),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){switch(u){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(u),!0}}}a.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},s.exports=a},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,s,c){const r=e("./text-xform"),o=e("./rich-text-xform"),l=e("./phonetic-text-xform"),a=e("../base-xform");s.exports=class extends a{constructor(n){super(),this.model=n,this.map={r:new o,t:new r,rPh:new l}}get tag(){return"si"}render(n,u){n.openNode(this.tag),u&&u.hasOwnProperty("richText")&&u.richText?u.richText.length?u.richText.forEach(h=>{this.map.r.render(n,h)}):this.map.t.render(n,""):u!=null&&this.map.t.render(n,u),n.closeNode()}parseOpen(n){const{name:u}=n;return this.parser?(this.parser.parseOpen(n),!0):u===this.tag?(this.model={},!0):(this.parser=this.map[u],!!this.parser&&(this.parser.parseOpen(n),!0))}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser){if(!this.parser.parseClose(n)){switch(n){case"r":{let u=this.model.richText;u||(u=this.model.richText=[]),u.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return n!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("./shared-string-xform");s.exports=class extends o{constructor(a){super(),this.model=a||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new l)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(a){return this.model.values[a]}add(a){return a.richText?this.addRichText(a):this.addText(a)}addText(a){let n=this.hash[a];return n===void 0&&(n=this.hash[a]=this.model.values.length,this.model.values.push(a)),this.model.count++,n}addRichText(a){const n=this.sharedStringXform.toXml(a);let u=this.rich[n];return u===void 0&&(u=this.rich[n]=this.model.values.length,this.model.values.push(a)),this.model.count++,u}render(a,n){n=n||this._values,a.openXml(r.StdDocAttributes),a.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:n.count,uniqueCount:n.values.length});const u=this.sharedStringXform;n.values.forEach(h=>{u.render(a,h)}),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(a),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(a))}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){if(this.parser)return this.parser.parseClose(a)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if(a==="sst")return!1;throw new Error("Unexpected xml node in parseClose: "+a)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"t"}render(o,l){o.openNode("t"),/^\s|\n|\s$/.test(l)&&o.addAttribute("xml:space","preserve"),o.writeText(l),o.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(o,l)=>String.fromCharCode(parseInt(l,16)))}parseOpen(o){return o.name==="t"?(this._text=[],!0):!1}parseText(o){this._text.push(o)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,s,c){const r=e("../../../doc/enums"),o=e("../../../utils/utils"),l=e("../base-xform"),a={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((u,h)=>(u[h]=!0,u),{}),horizontal(u){return this.horizontalValues[u]?u:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((u,h)=>(u[h]=!0,u),{}),vertical(u){return u==="middle"?"center":this.verticalValues[u]?u:void 0},wrapText:u=>!!u||void 0,shrinkToFit:u=>!!u||void 0,textRotation(u){return u==="vertical"||(u=o.validInt(u))>=-90&&u<=90?u:void 0},indent:u=>(u=o.validInt(u),Math.max(0,u)),readingOrder(u){switch(u){case"ltr":return r.ReadingOrder.LeftToRight;case"rtl":return r.ReadingOrder.RightToLeft;default:return}}},n={toXml(u){if(u=a.textRotation(u)){if(u==="vertical")return 255;const h=Math.round(u);if(h>=0&&h<=90)return h;if(h<0&&h>=-90)return 90-h}},toModel(u){const h=o.validInt(u);if(h!==void 0){if(h===255)return"vertical";if(h>=0&&h<=90)return h;if(h>90&&h<=180)return 90-h}}};s.exports=class extends l{get tag(){return"alignment"}render(u,h){u.addRollback(),u.openNode("alignment");let d=!1;function f(m,g){g&&(u.addAttribute(m,g),d=!0)}f("horizontal",a.horizontal(h.horizontal)),f("vertical",a.vertical(h.vertical)),f("wrapText",!!a.wrapText(h.wrapText)&&"1"),f("shrinkToFit",!!a.shrinkToFit(h.shrinkToFit)&&"1"),f("indent",a.indent(h.indent)),f("textRotation",n.toXml(h.textRotation)),f("readingOrder",a.readingOrder(h.readingOrder)),u.closeNode(),d?u.commit():u.rollback()}parseOpen(u){const h={};let d=!1;function f(m,g,p){m&&(h[g]=p,d=!0)}f(u.attributes.horizontal,"horizontal",u.attributes.horizontal),f(u.attributes.vertical,"vertical",u.attributes.vertical==="center"?"middle":u.attributes.vertical),f(u.attributes.wrapText,"wrapText",o.parseBoolean(u.attributes.wrapText)),f(u.attributes.shrinkToFit,"shrinkToFit",o.parseBoolean(u.attributes.shrinkToFit)),f(u.attributes.indent,"indent",parseInt(u.attributes.indent,10)),f(u.attributes.textRotation,"textRotation",n.toModel(u.attributes.textRotation)),f(u.attributes.readingOrder,"readingOrder",u.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=d?h:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,s,c){const r=e("../base-xform"),o=e("../../../utils/utils"),l=e("./color-xform");class a extends r{constructor(u){super(),this.name=u,this.map={color:new l}}get tag(){return this.name}render(u,h,d){const f=h&&h.color||d||this.defaultColor;u.openNode(this.name),h&&h.style&&(u.addAttribute("style",h.style),f&&this.map.color.render(u,f)),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case this.name:{const{style:h}=u.attributes;return this.model=h?{style:h}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(u),!0;default:return!1}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):(u===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(u){return a.validStyleValues[u]}}a.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((n,u)=>(n[u]=!0,n),{}),s.exports=class extends r{constructor(){super(),this.map={top:new a("top"),left:new a("left"),bottom:new a("bottom"),right:new a("right"),diagonal:new a("diagonal")}}render(n,u){const{color:h}=u;function d(f,m){f&&!f.color&&u.color&&(f={...f,color:u.color}),m.render(n,f,h)}n.openNode("border"),u.diagonal&&u.diagonal.style&&(u.diagonal.up&&n.addAttribute("diagonalUp","1"),u.diagonal.down&&n.addAttribute("diagonalDown","1")),d(u.left,this.map.left),d(u.right,this.map.right),d(u.top,this.map.top),d(u.bottom,this.map.bottom),d(u.diagonal,this.map.diagonal),n.closeNode()}parseOpen(n){return this.parser?(this.parser.parseOpen(n),!0):n.name==="border"?(this.reset(),this.diagonalUp=o.parseBoolean(n.attributes.diagonalUp),this.diagonalDown=o.parseBoolean(n.attributes.diagonalDown),!0):(this.parser=this.map[n.name],!!this.parser&&(this.parser.parseOpen(n),!0))}parseText(n){this.parser&&this.parser.parseText(n)}parseClose(n){if(this.parser)return this.parser.parseClose(n)||(this.parser=void 0),!0;if(n==="border"){const u=this.model={},h=function(d,f,m){f&&(m&&Object.assign(f,m),u[d]=f)};h("left",this.map.left.model),h("right",this.map.right.model),h("top",this.map.top.model),h("bottom",this.map.bottom.model),h("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{constructor(o){super(),this.name=o||"color"}get tag(){return this.name}render(o,l){return!!l&&(o.openNode(this.name),l.argb?o.addAttribute("rgb",l.argb):l.theme!==void 0?(o.addAttribute("theme",l.theme),l.tint!==void 0&&o.addAttribute("tint",l.tint)):l.indexed!==void 0?o.addAttribute("indexed",l.indexed):o.addAttribute("auto","1"),o.closeNode(),!0)}parseOpen(o){return o.name===this.name&&(o.attributes.rgb?this.model={argb:o.attributes.rgb}:o.attributes.theme?(this.model={theme:parseInt(o.attributes.theme,10)},o.attributes.tint&&(this.model.tint=parseFloat(o.attributes.tint))):o.attributes.indexed?this.model={indexed:parseInt(o.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,s,c){const r=e("../base-xform"),o=e("./alignment-xform"),l=e("./border-xform"),a=e("./fill-xform"),n=e("./font-xform"),u=e("./numfmt-xform"),h=e("./protection-xform");s.exports=class extends r{constructor(){super(),this.map={alignment:new o,border:new l,fill:new a,font:new n,numFmt:new u,protection:new h}}get tag(){return"dxf"}render(d,f){if(d.openNode(this.tag),f.font&&this.map.font.render(d,f.font),f.numFmt&&f.numFmtId){const m={id:f.numFmtId,formatCode:f.numFmt};this.map.numFmt.render(d,m)}f.fill&&this.map.fill.render(d,f.fill),f.alignment&&this.map.alignment.render(d,f.alignment),f.border&&this.map.border.render(d,f.border),f.protection&&this.map.protection.render(d,f.protection),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):d.name===this.tag?(this.reset(),!0):(this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d),!0)}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.parser=void 0),!0):d!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,s,c){const r=e("../base-xform"),o=e("./color-xform");class l extends r{constructor(){super(),this.map={color:new o}}get tag(){return"stop"}render(d,f){d.openNode("stop"),d.addAttribute("position",f.position),this.map.color.render(d,f.color),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"stop":return this.model={position:parseFloat(d.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(d),!0;default:return!1}}parseText(){}parseClose(d){return!!this.parser&&(this.parser.parseClose(d)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class a extends r{constructor(){super(),this.map={fgColor:new o("fgColor"),bgColor:new o("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(d,f){d.openNode("patternFill"),d.addAttribute("patternType",f.pattern),f.fgColor&&this.map.fgColor.render(d,f.fgColor),f.bgColor&&this.map.bgColor.render(d,f.bgColor),d.closeNode()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):d.name==="patternFill"?(this.model={type:"pattern",pattern:d.attributes.patternType},!0):(this.parser=this.map[d.name],!!this.parser&&(this.parser.parseOpen(d),!0))}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return!!this.parser&&(this.parser.parseClose(d)||(this.parser.model&&(this.model[d]=this.parser.model),this.parser=void 0),!0)}}class n extends r{constructor(){super(),this.map={stop:new l}}get name(){return"gradient"}get tag(){return"gradientFill"}render(d,f){switch(d.openNode("gradientFill"),f.gradient){case"angle":d.addAttribute("degree",f.degree);break;case"path":d.addAttribute("type","path"),f.center.left&&(d.addAttribute("left",f.center.left),f.center.right===void 0&&d.addAttribute("right",f.center.left)),f.center.right&&d.addAttribute("right",f.center.right),f.center.top&&(d.addAttribute("top",f.center.top),f.center.bottom===void 0&&d.addAttribute("bottom",f.center.top)),f.center.bottom&&d.addAttribute("bottom",f.center.bottom)}const m=this.map.stop;f.stops.forEach(g=>{m.render(d,g)}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"gradientFill":{const f=this.model={stops:[]};return d.attributes.degree?(f.gradient="angle",f.degree=parseInt(d.attributes.degree,10)):d.attributes.type==="path"&&(f.gradient="path",f.center={left:d.attributes.left?parseFloat(d.attributes.left):0,top:d.attributes.top?parseFloat(d.attributes.top):0},d.attributes.right!==d.attributes.left&&(f.center.right=d.attributes.right?parseFloat(d.attributes.right):0),d.attributes.bottom!==d.attributes.top&&(f.center.bottom=d.attributes.bottom?parseFloat(d.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(d),!0;default:return!1}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return!!this.parser&&(this.parser.parseClose(d)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class u extends r{constructor(){super(),this.map={patternFill:new a,gradientFill:new n}}get tag(){return"fill"}render(d,f){switch(d.addRollback(),d.openNode("fill"),f.type){case"pattern":this.map.patternFill.render(d,f);break;case"gradient":this.map.gradientFill.render(d,f);break;default:return void d.rollback()}d.closeNode(),d.commit()}parseOpen(d){return this.parser?(this.parser.parseOpen(d),!0):d.name==="fill"?(this.model={},!0):(this.parser=this.map[d.name],!!this.parser&&(this.parser.parseOpen(d),!0))}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return!!this.parser&&(this.parser.parseClose(d)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(d){return u.validPatternValues[d]}}u.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((h,d)=>(h[d]=!0,h),{}),u.StopXform=l,u.PatternFillXform=a,u.GradientFillXform=n,s.exports=u},{"../base-xform":32,"./color-xform":128}],131:[function(e,s,c){const r=e("./color-xform"),o=e("../simple/boolean-xform"),l=e("../simple/integer-xform"),a=e("../simple/string-xform"),n=e("./underline-xform"),u=e("../../../utils/under-dash"),h=e("../base-xform");class d extends h{constructor(m){super(),this.options=m||d.OPTIONS,this.map={b:{prop:"bold",xform:new o({tag:"b",attr:"val"})},i:{prop:"italic",xform:new o({tag:"i",attr:"val"})},u:{prop:"underline",xform:new n},charset:{prop:"charset",xform:new l({tag:"charset",attr:"val"})},color:{prop:"color",xform:new r},condense:{prop:"condense",xform:new o({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new o({tag:"extend",attr:"val"})},family:{prop:"family",xform:new l({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new o({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new a({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new a({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new o({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new o({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new l({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new a({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(m,g){const{map:p}=this;m.openNode(this.options.tagName),u.each(this.map,(v,b)=>{p[b].xform.render(m,g[v.prop])}),m.closeNode()}parseOpen(m){return this.parser?(this.parser.parseOpen(m),!0):this.map[m.name]?(this.parser=this.map[m.name].xform,this.parser.parseOpen(m)):m.name===this.options.tagName?(this.model={},!0):!1}parseText(m){this.parser&&this.parser.parseText(m)}parseClose(m){if(this.parser&&!this.parser.parseClose(m)){const g=this.map[m];return this.parser.model&&(this.model[g.prop]=this.parser.model),this.parser=void 0,!0}return m!==this.options.tagName}}d.OPTIONS={tagName:"font",fontNameTag:"name"},s.exports=d},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,s,c){const r=e("../../../utils/under-dash"),o=e("../../defaultnumformats"),l=e("../base-xform"),a=(function(){const u={};return r.each(o,(h,d)=>{h.f&&(u[h.f]=parseInt(d,10))}),u})();class n extends l{constructor(h,d){super(),this.id=h,this.formatCode=d}get tag(){return"numFmt"}render(h,d){h.leafNode("numFmt",{numFmtId:d.id,formatCode:d.formatCode})}parseOpen(h){return h.name==="numFmt"?(this.model={id:parseInt(h.attributes.numFmtId,10),formatCode:h.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0):!1}parseText(){}parseClose(){return!1}}n.getDefaultFmtId=function(u){return a[u]},n.getDefaultFmtCode=function(u){return o[u]&&o[u].f},s.exports=n},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,s,c){const r=e("../base-xform"),o={boolean:(l,a)=>l===void 0?a:l};s.exports=class extends r{get tag(){return"protection"}render(l,a){l.addRollback(),l.openNode("protection");let n=!1;function u(h,d){d!==void 0&&(l.addAttribute(h,d),n=!0)}u("locked",o.boolean(a.locked,!0)?void 0:"0"),u("hidden",o.boolean(a.hidden,!1)?"1":void 0),l.closeNode(),n?l.commit():l.rollback()}parseOpen(l){const a={locked:l.attributes.locked!=="0",hidden:l.attributes.hidden==="1"},n=!a.locked||a.hidden;this.model=n?a:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,s,c){const r=e("../base-xform"),o=e("./alignment-xform"),l=e("./protection-xform");s.exports=class extends r{constructor(a){super(),this.xfId=!(!a||!a.xfId),this.map={alignment:new o,protection:new l}}get tag(){return"xf"}render(a,n){a.openNode("xf",{numFmtId:n.numFmtId||0,fontId:n.fontId||0,fillId:n.fillId||0,borderId:n.borderId||0}),this.xfId&&a.addAttribute("xfId",n.xfId||0),n.numFmtId&&a.addAttribute("applyNumberFormat","1"),n.fontId&&a.addAttribute("applyFont","1"),n.fillId&&a.addAttribute("applyFill","1"),n.borderId&&a.addAttribute("applyBorder","1"),n.alignment&&a.addAttribute("applyAlignment","1"),n.protection&&a.addAttribute("applyProtection","1"),n.alignment&&this.map.alignment.render(a,n.alignment),n.protection&&this.map.protection.render(a,n.protection),a.closeNode()}parseOpen(a){if(this.parser)return this.parser.parseOpen(a),!0;switch(a.name){case"xf":return this.model={numFmtId:parseInt(a.attributes.numFmtId,10),fontId:parseInt(a.attributes.fontId,10),fillId:parseInt(a.attributes.fillId,10),borderId:parseInt(a.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(a.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(a),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(a),!0;default:return!1}}parseText(a){this.parser&&this.parser.parseText(a)}parseClose(a){return this.parser?(this.parser.parseClose(a)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):a!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,s,c){const r=e("../../../doc/enums"),o=e("../../../utils/xml-stream"),l=e("../base-xform"),a=e("../static-xform"),n=e("../list-xform"),u=e("./font-xform"),h=e("./fill-xform"),d=e("./border-xform"),f=e("./numfmt-xform"),m=e("./style-xform"),g=e("./dxf-xform");class p extends l{constructor(b){super(),this.map={numFmts:new n({tag:"numFmts",count:!0,childXform:new f}),fonts:new n({tag:"fonts",count:!0,childXform:new u,$:{"x14ac:knownFonts":1}}),fills:new n({tag:"fills",count:!0,childXform:new h}),borders:new n({tag:"borders",count:!0,childXform:new d}),cellStyleXfs:new n({tag:"cellStyleXfs",count:!0,childXform:new m}),cellXfs:new n({tag:"cellXfs",count:!0,childXform:new m({xfId:!0})}),dxfs:new n({tag:"dxfs",always:!0,count:!0,childXform:new g}),numFmt:new f,font:new u,fill:new h,border:new d,style:new m({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},b&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(b,x){x=x||this.model,b.openXml(o.StdDocAttributes),b.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(x.numFmts&&x.numFmts.length&&(b.openNode("numFmts",{count:x.numFmts.length}),x.numFmts.forEach(A=>{b.writeXml(A)}),b.closeNode()),x.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),b.openNode("fonts",{count:x.fonts.length,"x14ac:knownFonts":1}),x.fonts.forEach(A=>{b.writeXml(A)}),b.closeNode(),b.openNode("fills",{count:x.fills.length}),x.fills.forEach(A=>{b.writeXml(A)}),b.closeNode(),b.openNode("borders",{count:x.borders.length}),x.borders.forEach(A=>{b.writeXml(A)}),b.closeNode(),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),b.openNode("cellXfs",{count:x.styles.length}),x.styles.forEach(A=>{b.writeXml(A)}),b.closeNode()):(this.map.numFmts.render(b,x.numFmts),this.map.fonts.render(b,x.fonts),this.map.fills.render(b,x.fills),this.map.borders.render(b,x.borders),this.map.cellStyleXfs.render(b,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(b,x.styles)),p.STATIC_XFORMS.cellStyles.render(b),this.map.dxfs.render(b,x.dxfs),p.STATIC_XFORMS.tableStyles.render(b),p.STATIC_XFORMS.extLst.render(b),b.closeNode()}parseOpen(b){return this.parser?(this.parser.parseOpen(b),!0):b.name==="styleSheet"?(this.initIndex(),!0):(this.parser=this.map[b.name],this.parser&&this.parser.parseOpen(b),!0)}parseText(b){this.parser&&this.parser.parseText(b)}parseClose(b){if(this.parser)return this.parser.parseClose(b)||(this.parser=void 0),!0;switch(b){case"styleSheet":{this.model={};const x=(A,M)=>{M.model&&M.model.length&&(this.model[A]=M.model)};if(x("numFmts",this.map.numFmts),x("fonts",this.map.fonts),x("fills",this.map.fills),x("borders",this.map.borders),x("styles",this.map.cellXfs),x("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const A=this.index.numFmt;this.model.numFmts.forEach(M=>{A[M.id]=M.formatCode})}return!1}default:return!0}}addStyleModel(b,x){if(!b)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(b))return this.weakMap.get(b);const A={};if(x=x||r.ValueType.Number,b.numFmt)A.numFmtId=this._addNumFmtStr(b.numFmt);else switch(x){case r.ValueType.Number:A.numFmtId=this._addNumFmtStr("General");break;case r.ValueType.Date:A.numFmtId=this._addNumFmtStr("mm-dd-yy")}b.font&&(A.fontId=this._addFont(b.font)),b.border&&(A.borderId=this._addBorder(b.border)),b.fill&&(A.fillId=this._addFill(b.fill)),b.alignment&&(A.alignment=b.alignment),b.protection&&(A.protection=b.protection);const M=this._addStyle(A);return this.weakMap&&this.weakMap.set(b,M),M}getStyleModel(b){const x=this.model.styles[b];if(!x)return null;let A=this.index.model[b];if(A)return A;if(A=this.index.model[b]={},x.numFmtId){const V=this.index.numFmt[x.numFmtId]||f.getDefaultFmtCode(x.numFmtId);V&&(A.numFmt=V)}function M(V,W,R){if(R||R===0){const F=W[R];F&&(A[V]=F)}}return M("font",this.model.fonts,x.fontId),M("border",this.model.borders,x.borderId),M("fill",this.model.fills,x.fillId),x.alignment&&(A.alignment=x.alignment),x.protection&&(A.protection=x.protection),A}addDxfStyle(b){return b.numFmt&&(b.numFmtId=this._addNumFmtStr(b.numFmt)),this.model.dxfs.push(b),this.model.dxfs.length-1}getDxfStyle(b){return this.model.dxfs[b]}_addStyle(b){const x=this.map.style.toXml(b);let A=this.index.style[x];return A===void 0&&(A=this.index.style[x]=this.model.styles.length,this.model.styles.push(x)),A}_addNumFmtStr(b){let x=f.getDefaultFmtId(b);if(x!==void 0||(x=this.index.numFmt[b],x!==void 0))return x;x=this.index.numFmt[b]=164+this.model.numFmts.length;const A=this.map.numFmt.toXml({id:x,formatCode:b});return this.model.numFmts.push(A),x}_addFont(b){const x=this.map.font.toXml(b);let A=this.index.font[x];return A===void 0&&(A=this.index.font[x]=this.model.fonts.length,this.model.fonts.push(x)),A}_addBorder(b){const x=this.map.border.toXml(b);let A=this.index.border[x];return A===void 0&&(A=this.index.border[x]=this.model.borders.length,this.model.borders.push(x)),A}_addFill(b){const x=this.map.fill.toXml(b);let A=this.index.fill[x];return A===void 0&&(A=this.index.fill[x]=this.model.fills.length,this.model.fills.push(x)),A}}p.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},p.STATIC_XFORMS={cellStyles:new a({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new a({tag:"dxfs",$:{count:0}}),tableStyles:new a({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new a({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},p.Mock=class extends p{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(v){return v.autodrain(),Promise.resolve()}addStyleModel(v,b){return b===r.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const v={numFmtId:f.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(v)}return this._dateStyleId}getStyleModel(){return{}}},s.exports=p},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,s,c){const r=e("../base-xform");class o extends r{constructor(a){super(),this.model=a}get tag(){return"u"}render(a,n){if((n=n||this.model)===!0)a.leafNode("u");else{const u=o.Attributes[n];u&&a.leafNode("u",u)}}parseOpen(a){a.name==="u"&&(this.model=a.attributes.val||!0)}parseText(){}parseClose(){return!1}}o.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},s.exports=o},{"../base-xform":32}],137:[function(e,s,c){const r=e("../base-xform"),o=e("./filter-column-xform");s.exports=class extends r{constructor(){super(),this.map={filterColumn:new o}}get tag(){return"autoFilter"}prepare(l){l.columns.forEach((a,n)=>{this.map.filterColumn.prepare(a,{index:n})})}render(l,a){return l.openNode(this.tag,{ref:a.autoFilterRef}),a.columns.forEach(n=>{this.map.filterColumn.render(l,n)}),l.closeNode(),!0}parseOpen(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case this.tag:return this.model={autoFilterRef:l.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[l.name],this.parser)return this.parseOpen(l),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(l))}}parseText(l){this.parser&&this.parser.parseText(l)}parseClose(l){if(this.parser)return this.parser.parseClose(l)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(l===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+l)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"customFilter"}render(o,l){o.leafNode(this.tag,{val:l.val,operator:l.operator})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val,operator:o.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,s,c){const r=e("../base-xform"),o=e("../list-xform"),l=e("./custom-filter-xform"),a=e("./filter-xform");s.exports=class extends r{constructor(){super(),this.map={customFilters:new o({tag:"customFilters",count:!1,empty:!0,childXform:new l}),filters:new o({tag:"filters",count:!1,empty:!0,childXform:new a})}}get tag(){return"filterColumn"}prepare(n,u){n.colId=u.index.toString()}render(n,u){return u.customFilters?(n.openNode(this.tag,{colId:u.colId,hiddenButton:u.filterButton?"0":"1"}),this.map.customFilters.render(n,u.customFilters),n.closeNode(),!0):(n.leafNode(this.tag,{colId:u.colId,hiddenButton:u.filterButton?"0":"1"}),!0)}parseOpen(n){if(this.parser)return this.parser.parseOpen(n),!0;const{attributes:u}=n;switch(n.name){case this.tag:return this.model={filterButton:u.hiddenButton==="0"},!0;default:if(this.parser=this.map[n.name],this.parser)return this.parseOpen(n),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(n))}}parseText(){}parseClose(n){return this.parser?(this.parser.parseClose(n)||(this.parser=void 0),!0):n===this.tag?(this.model.customFilters=this.map.customFilters.model,!1):!0}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"filter"}render(o,l){o.leafNode(this.tag,{val:l.val})}parseOpen(o){return o.name===this.tag&&(this.model={val:o.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"tableColumn"}prepare(o,l){o.id=l.index+1}render(o,l){return o.leafNode(this.tag,{id:l.id.toString(),name:l.name,totalsRowLabel:l.totalsRowLabel,totalsRowFunction:l.totalsRowFunction,dxfId:l.dxfId}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:l}=o;return this.model={name:l.name,totalsRowLabel:l.totalsRowLabel,totalsRowFunction:l.totalsRowFunction,dxfId:l.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,s,c){const r=e("../base-xform");s.exports=class extends r{get tag(){return"tableStyleInfo"}render(o,l){return o.leafNode(this.tag,{name:l.theme?l.theme:void 0,showFirstColumn:l.showFirstColumn?"1":"0",showLastColumn:l.showLastColumn?"1":"0",showRowStripes:l.showRowStripes?"1":"0",showColumnStripes:l.showColumnStripes?"1":"0"}),!0}parseOpen(o){if(o.name===this.tag){const{attributes:l}=o;return this.model={theme:l.name?l.name:null,showFirstColumn:l.showFirstColumn==="1",showLastColumn:l.showLastColumn==="1",showRowStripes:l.showRowStripes==="1",showColumnStripes:l.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,s,c){const r=e("../../../utils/xml-stream"),o=e("../base-xform"),l=e("../list-xform"),a=e("./auto-filter-xform"),n=e("./table-column-xform"),u=e("./table-style-info-xform");class h extends o{constructor(){super(),this.map={autoFilter:new a,tableColumns:new l({tag:"tableColumns",count:!0,empty:!0,childXform:new n}),tableStyleInfo:new u}}prepare(f,m){this.map.autoFilter.prepare(f),this.map.tableColumns.prepare(f.columns,m)}get tag(){return"table"}render(f,m){f.openXml(r.StdDocAttributes),f.openNode(this.tag,{...h.TABLE_ATTRIBUTES,id:m.id,name:m.name,displayName:m.displayName||m.name,ref:m.tableRef,totalsRowCount:m.totalsRow?"1":void 0,totalsRowShown:m.totalsRow?void 0:"1",headerRowCount:m.headerRow?"1":"0"}),this.map.autoFilter.render(f,m),this.map.tableColumns.render(f,m.columns),this.map.tableStyleInfo.render(f,m.style),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;const{name:m,attributes:g}=f;return m===this.tag?(this.reset(),this.model={name:g.name,displayName:g.displayName||g.name,tableRef:g.ref,totalsRow:g.totalsRowCount==="1",headerRow:g.headerRowCount==="1"}):(this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)),!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f===this.tag?(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((m,g)=>{this.model.columns[g].filterButton=m.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1):!0}reconcile(f,m){f.columns.forEach(g=>{g.dxfId!==void 0&&(g.style=m.styles.getDxfStyle(g.dxfId))})}}h.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},s.exports=h},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,s,c){(function(r,o){(function(){const l=e("fs"),a=e("jszip"),{PassThrough:n}=e("readable-stream"),u=e("../utils/zip-stream"),h=e("../utils/stream-buf"),d=e("../utils/utils"),f=e("../utils/xml-stream"),{bufferToString:m}=e("../utils/browser-buffer-decode"),g=e("./xform/style/styles-xform"),p=e("./xform/core/core-xform"),v=e("./xform/strings/shared-strings-xform"),b=e("./xform/core/relationships-xform"),x=e("./xform/core/content-types-xform"),A=e("./xform/core/app-xform"),M=e("./xform/book/workbook-xform"),V=e("./xform/sheet/worksheet-xform"),W=e("./xform/drawing/drawing-xform"),R=e("./xform/table/table-xform"),F=e("./xform/comment/comments-xform"),$=e("./xform/comment/vml-notes-xform"),z=e("./xml/theme1");class D{constructor(E){this.workbook=E}async readFile(E,C){if(!await d.fs.exists(E))throw new Error("File not found: "+E);const w=l.createReadStream(E);try{const S=await this.read(w,C);return w.close(),S}catch(S){throw w.close(),S}}parseRels(E){return new b().parseStream(E)}parseWorkbook(E){return new M().parseStream(E)}parseSharedStrings(E){return new v().parseStream(E)}reconcile(E,C){const w=new M,S=new V(C),_=new W,k=new R;w.reconcile(E);const T={media:E.media,mediaIndex:E.mediaIndex};Object.keys(E.drawings).forEach(U=>{const q=E.drawings[U],Z=E.drawingRels[U];Z&&(T.rels=Z.reduce((B,X)=>(B[X.Id]=X,B),{}),(q.anchors||[]).forEach(B=>{const X=B.picture&&B.picture.hyperlinks;X&&T.rels[X.rId]&&(X.hyperlink=T.rels[X.rId].Target,delete X.rId)}),_.reconcile(q,T))});const j={styles:E.styles};Object.values(E.tables).forEach(U=>{k.reconcile(U,j)});const P={styles:E.styles,sharedStrings:E.sharedStrings,media:E.media,mediaIndex:E.mediaIndex,date1904:E.properties&&E.properties.date1904,drawings:E.drawings,comments:E.comments,tables:E.tables,vmlDrawings:E.vmlDrawings};E.worksheets.forEach(U=>{U.relationships=E.worksheetRels[U.sheetNo],S.reconcile(U,P)}),delete E.worksheetHash,delete E.worksheetRels,delete E.globalRels,delete E.sharedStrings,delete E.workbookRels,delete E.sheetDefs,delete E.styles,delete E.mediaIndex,delete E.drawings,delete E.drawingRels,delete E.vmlDrawings}async _processWorksheetEntry(E,C,w,S,_){const k=new V(S),T=await k.parseStream(E);T.sheetNo=w,C.worksheetHash[_]=T,C.worksheets.push(T)}async _processCommentEntry(E,C,w){const S=new F,_=await S.parseStream(E);C.comments[`../${w}.xml`]=_}async _processTableEntry(E,C,w){const S=new R,_=await S.parseStream(E);C.tables[`../tables/${w}.xml`]=_}async _processWorksheetRelsEntry(E,C,w){const S=new b,_=await S.parseStream(E);C.worksheetRels[w]=_}async _processMediaEntry(E,C,w){const S=w.lastIndexOf(".");if(S>=1){const _=w.substr(S+1),k=w.substr(0,S);await new Promise((T,j)=>{const P=new h;P.on("finish",()=>{C.mediaIndex[w]=C.media.length,C.mediaIndex[k]=C.media.length;const U={type:"image",name:k,extension:_,buffer:P.toBuffer()};C.media.push(U),T()}),E.on("error",U=>{j(U)}),E.pipe(P)})}}async _processDrawingEntry(E,C,w){const S=new W,_=await S.parseStream(E);C.drawings[w]=_}async _processDrawingRelsEntry(E,C,w){const S=new b,_=await S.parseStream(E);C.drawingRels[w]=_}async _processVmlDrawingEntry(E,C,w){const S=new $,_=await S.parseStream(E);C.vmlDrawings[`../drawings/${w}.vml`]=_}async _processThemeEntry(E,C,w){await new Promise((S,_)=>{const k=new h;E.on("error",_),k.on("error",_),k.on("finish",()=>{C.themes[w]=k.read().toString(),S()}),E.pipe(k)})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(E,C){!E[Symbol.asyncIterator]&&E.pipe&&(E=E.pipe(new n));const w=[];for await(const S of E)w.push(S);return this.load(o.concat(w),C)}async load(E,C){let w;w=C&&C.base64?o.from(E.toString(),"base64"):E;const S={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},_=await a.loadAsync(w);for(const k of Object.values(_.files))if(!k.dir){let T,j=k.name;if(j[0]==="/"&&(j=j.substr(1)),j.match(/xl\/media\//)||j.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))T=new n,T.write(await k.async("nodebuffer"));else{let P;T=new n({writableObjectMode:!0,readableObjectMode:!0}),P=r.browser?m(await k.async("nodebuffer")):await k.async("string");const U=16384;for(let q=0;q<P.length;q+=U)T.write(P.substring(q,q+U))}switch(T.end(),j){case"_rels/.rels":S.globalRels=await this.parseRels(T);break;case"xl/workbook.xml":{const P=await this.parseWorkbook(T);S.sheets=P.sheets,S.definedNames=P.definedNames,S.views=P.views,S.properties=P.properties,S.calcProperties=P.calcProperties;break}case"xl/_rels/workbook.xml.rels":S.workbookRels=await this.parseRels(T);break;case"xl/sharedStrings.xml":S.sharedStrings=new v,await S.sharedStrings.parseStream(T);break;case"xl/styles.xml":S.styles=new g,await S.styles.parseStream(T);break;case"docProps/app.xml":{const P=new A,U=await P.parseStream(T);S.company=U.company,S.manager=U.manager;break}case"docProps/core.xml":{const P=new p,U=await P.parseStream(T);Object.assign(S,U);break}default:{let P=j.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(P){await this._processWorksheetEntry(T,S,P[1],C,j);break}if(P=j.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),P){await this._processWorksheetRelsEntry(T,S,P[1]);break}if(P=j.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),P){await this._processThemeEntry(T,S,P[1]);break}if(P=j.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),P){await this._processMediaEntry(T,S,P[1]);break}if(P=j.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),P){await this._processDrawingEntry(T,S,P[1]);break}if(P=j.match(/xl\/(comments\d+)[.]xml/),P){await this._processCommentEntry(T,S,P[1]);break}if(P=j.match(/xl\/tables\/(table\d+)[.]xml/),P){await this._processTableEntry(T,S,P[1]);break}if(P=j.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),P){await this._processDrawingRelsEntry(T,S,P[1]);break}if(P=j.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),P){await this._processVmlDrawingEntry(T,S,P[1]);break}}}}return this.reconcile(S,C),this.workbook.model=S,this.workbook}async addMedia(E,C){await Promise.all(C.media.map(async w=>{if(w.type==="image"){const S=`xl/media/${w.name}.${w.extension}`;if(w.filename){const _=await(function(k,T){return new Promise((j,P)=>{l.readFile(k,T,(U,q)=>{U?P(U):j(q)})})})(w.filename);return E.append(_,{name:S})}if(w.buffer)return E.append(w.buffer,{name:S});if(w.base64){const _=w.base64,k=_.substring(_.indexOf(",")+1);return E.append(k,{name:S,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(E,C){const w=new W,S=new b;C.worksheets.forEach(_=>{const{drawing:k}=_;if(k){w.prepare(k,{});let T=w.toXml(k);E.append(T,{name:`xl/drawings/${k.name}.xml`}),T=S.toXml(k.rels),E.append(T,{name:`xl/drawings/_rels/${k.name}.xml.rels`})}})}addTables(E,C){const w=new R;C.worksheets.forEach(S=>{const{tables:_}=S;_.forEach(k=>{w.prepare(k,{});const T=w.toXml(k);E.append(T,{name:"xl/tables/"+k.target})})})}async addContentTypes(E,C){const w=new x().toXml(C);E.append(w,{name:"[Content_Types].xml"})}async addApp(E,C){const w=new A().toXml(C);E.append(w,{name:"docProps/app.xml"})}async addCore(E,C){const w=new p;E.append(w.toXml(C),{name:"docProps/core.xml"})}async addThemes(E,C){const w=C.themes||{theme1:z};Object.keys(w).forEach(S=>{const _=w[S],k=`xl/theme/${S}.xml`;E.append(_,{name:k})})}async addOfficeRels(E){const C=new b().toXml([{Id:"rId1",Type:D.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:D.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:D.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);E.append(C,{name:"_rels/.rels"})}async addWorkbookRels(E,C){let w=1;const S=[{Id:"rId"+w++,Type:D.RelType.Styles,Target:"styles.xml"},{Id:"rId"+w++,Type:D.RelType.Theme,Target:"theme/theme1.xml"}];C.sharedStrings.count&&S.push({Id:"rId"+w++,Type:D.RelType.SharedStrings,Target:"sharedStrings.xml"}),C.worksheets.forEach(k=>{k.rId="rId"+w++,S.push({Id:k.rId,Type:D.RelType.Worksheet,Target:`worksheets/sheet${k.id}.xml`})});const _=new b().toXml(S);E.append(_,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(E,C){C.sharedStrings&&C.sharedStrings.count&&E.append(C.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(E,C){const{xml:w}=C.styles;w&&E.append(w,{name:"xl/styles.xml"})}async addWorkbook(E,C){const w=new M;E.append(w.toXml(C),{name:"xl/workbook.xml"})}async addWorksheets(E,C){const w=new V,S=new b,_=new F,k=new $;C.worksheets.forEach(T=>{let j=new f;w.render(j,T),E.append(j.xml,{name:`xl/worksheets/sheet${T.id}.xml`}),T.rels&&T.rels.length&&(j=new f,S.render(j,T.rels),E.append(j.xml,{name:`xl/worksheets/_rels/sheet${T.id}.xml.rels`})),T.comments.length>0&&(j=new f,_.render(j,T),E.append(j.xml,{name:`xl/comments${T.id}.xml`}),j=new f,k.render(j,T),E.append(j.xml,{name:`xl/drawings/vmlDrawing${T.id}.vml`}))})}_finalize(E){return new Promise((C,w)=>{E.on("finish",()=>{C(this)}),E.on("error",w),E.finalize()})}prepareModel(E,C){E.creator=E.creator||"ExcelJS",E.lastModifiedBy=E.lastModifiedBy||"ExcelJS",E.created=E.created||new Date,E.modified=E.modified||new Date,E.useSharedStrings=C.useSharedStrings===void 0||C.useSharedStrings,E.useStyles=C.useStyles===void 0||C.useStyles,E.sharedStrings=new v,E.styles=E.useStyles?new g(!0):new g.Mock;const w=new M,S=new V;w.prepare(E);const _={sharedStrings:E.sharedStrings,styles:E.styles,date1904:E.properties.date1904,drawingsCount:0,media:E.media};_.drawings=E.drawings=[],_.commentRefs=E.commentRefs=[];let k=0;E.tables=[],E.worksheets.forEach(T=>{T.tables.forEach(j=>{k++,j.target=`table${k}.xml`,j.id=k,E.tables.push(j)}),S.prepare(T,_)})}async write(E,C){C=C||{};const{model:w}=this.workbook,S=new u.ZipWriter(C.zip);return S.pipe(E),this.prepareModel(w,C),await this.addContentTypes(S,w),await this.addOfficeRels(S,w),await this.addWorkbookRels(S,w),await this.addWorksheets(S,w),await this.addSharedStrings(S,w),await this.addDrawings(S,w),await this.addTables(S,w),await Promise.all([this.addThemes(S,w),this.addStyles(S,w)]),await this.addMedia(S,w),await Promise.all([this.addApp(S,w),this.addCore(S,w)]),await this.addWorkbook(S,w),this._finalize(S)}writeFile(E,C){const w=l.createWriteStream(E);return new Promise((S,_)=>{w.on("finish",()=>{S()}),w.on("error",k=>{_(k)}),this.write(w,C).then(()=>{w.end()}).catch(k=>{_(k)})})}async writeBuffer(E){const C=new h;return await this.write(C,E),C.read()}}D.RelType=e("./rel-type"),s.exports=D}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,s,c){s.exports=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
82
+ <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>`},{}],146:[function(e,s,c){(function(r){(function(){Object.defineProperty(c,"__esModule",{value:!0}),c.CsvFormatterStream=void 0;const o=e("stream"),l=e("./formatter");class a extends o.Transform{constructor(u){super({writableObjectMode:u.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=u,this.rowFormatter=new l.RowFormatter(u),this.hasWrittenBOM=!u.writeBOM}transform(u){return this.rowFormatter.rowTransform=u,this}_transform(u,h,d){let f=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(u,(m,g)=>m?(f=!0,d(m)):(g&&g.forEach(p=>{this.push(r.from(p,"utf8"))}),f=!0,d()))}catch(m){if(f)throw m;d(m)}}_flush(u){this.rowFormatter.finish((h,d)=>h?u(h):(d&&d.forEach(f=>{this.push(r.from(f,"utf8"))}),u()))}}c.CsvFormatterStream=a}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.FormatterOptions=void 0,c.FormatterOptions=class{constructor(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var o;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=`
83
+ `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,r||{}),r?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),r?.quote===!0?this.quote='"':r?.quote===!1&&(this.quote=""),typeof r?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((o=r.writeHeaders)===null||o===void 0||o),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,s,c){var r=function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(c,"__esModule",{value:!0}),c.FieldFormatter=void 0;const o=r(e("lodash.isboolean")),l=r(e("lodash.isnil")),a=r(e("lodash.escaperegexp"));c.FieldFormatter=class{constructor(n){this._headers=null,this.formatterOptions=n,n.headers!==null&&(this.headers=n.headers),this.REPLACE_REGEXP=new RegExp(n.quote,"g");const u=`[${n.delimiter}${a.default(n.rowDelimiter)}|\r|
84
+ ]`;this.ESCAPE_REGEXP=new RegExp(u)}set headers(n){this._headers=n}shouldQuote(n,u){const h=u?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return o.default(h)?h:Array.isArray(h)?h[n]:this._headers!==null&&h[this._headers[n]]}format(n,u,h){const d=(""+(l.default(n)?"":n)).replace(/\0/g,""),{formatterOptions:f}=this;return f.quote!==""&&d.indexOf(f.quote)!==-1?this.quoteField(d.replace(this.REPLACE_REGEXP,f.escapedQuote)):d.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(u,h)?this.quoteField(d):d}quoteField(n){const{quote:u}=this.formatterOptions;return`${u}${n}${u}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,s,c){var r=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(c,"__esModule",{value:!0}),c.RowFormatter=void 0;const o=r(e("lodash.isfunction")),l=r(e("lodash.isequal")),a=e("./FieldFormatter"),n=e("../types");class u{constructor(d){this.rowCount=0,this.formatterOptions=d,this.fieldFormatter=new a.FieldFormatter(d),this.headers=d.headers,this.shouldWriteHeaders=d.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),d.transform&&(this.rowTransform=d.transform)}static isRowHashArray(d){return!!Array.isArray(d)&&Array.isArray(d[0])&&d[0].length===2}static isRowArray(d){return Array.isArray(d)&&!this.isRowHashArray(d)}static gatherHeaders(d){return u.isRowHashArray(d)?d.map(f=>f[0]):Array.isArray(d)?d:Object.keys(d)}static createTransform(d){return n.isSyncTransform(d)?(f,m)=>{let g=null;try{g=d(f)}catch(p){return m(p)}return m(null,g)}:(f,m)=>{d(f,m)}}set rowTransform(d){if(!o.default(d))throw new TypeError("The transform should be a function");this._rowTransform=u.createTransform(d)}format(d,f){this.callTransformer(d,(m,g)=>{if(m)return f(m);if(!d)return f(null);const p=[];if(g){const{shouldFormatColumns:v,headers:b}=this.checkHeaders(g);if(this.shouldWriteHeaders&&b&&!this.hasWrittenHeaders&&(p.push(this.formatColumns(b,!0)),this.hasWrittenHeaders=!0),v){const x=this.gatherColumns(g);p.push(this.formatColumns(x,!1))}}return f(null,p)})}finish(d){const f=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return d(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));f.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&f.push(this.formatterOptions.rowDelimiter),d(null,f)}checkHeaders(d){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const f=u.gatherHeaders(d);return this.headers=f,this.fieldFormatter.headers=f,this.shouldWriteHeaders?{shouldFormatColumns:!l.default(f,d),headers:f}:{shouldFormatColumns:!0,headers:null}}gatherColumns(d){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(d)?u.isRowHashArray(d)?this.headers.map((f,m)=>{const g=d[m];return g?g[1]:""}):u.isRowArray(d)&&!this.shouldWriteHeaders?d:this.headers.map((f,m)=>d[m]):this.headers.map(f=>d[f])}callTransformer(d,f){return this._rowTransform?this._rowTransform(d,f):f(null,d)}formatColumns(d,f){const m=d.map((p,v)=>this.fieldFormatter.format(p,v,f)).join(this.formatterOptions.delimiter),{rowCount:g}=this;return this.rowCount+=1,g?[this.formatterOptions.rowDelimiter,m].join(""):m}}c.RowFormatter=u},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.FieldFormatter=c.RowFormatter=void 0;var r=e("./RowFormatter");Object.defineProperty(c,"RowFormatter",{enumerable:!0,get:function(){return r.RowFormatter}});var o=e("./FieldFormatter");Object.defineProperty(c,"FieldFormatter",{enumerable:!0,get:function(){return o.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,s,c){(function(r){(function(){var o=Object.create?function(v,b,x,A){A===void 0&&(A=x),Object.defineProperty(v,A,{enumerable:!0,get:function(){return b[x]}})}:function(v,b,x,A){A===void 0&&(A=x),v[A]=b[x]},l=Object.create?function(v,b){Object.defineProperty(v,"default",{enumerable:!0,value:b})}:function(v,b){v.default=b},a=function(v){if(v&&v.__esModule)return v;var b={};if(v!=null)for(var x in v)x!=="default"&&Object.prototype.hasOwnProperty.call(v,x)&&o(b,v,x);return l(b,v),b},n=function(v,b){for(var x in v)x==="default"||Object.prototype.hasOwnProperty.call(b,x)||o(b,v,x)};Object.defineProperty(c,"__esModule",{value:!0}),c.writeToPath=c.writeToString=c.writeToBuffer=c.writeToStream=c.write=c.format=c.FormatterOptions=c.CsvFormatterStream=void 0;const u=e("util"),h=e("stream"),d=a(e("fs")),f=e("./FormatterOptions"),m=e("./CsvFormatterStream");n(e("./types"),c);var g=e("./CsvFormatterStream");Object.defineProperty(c,"CsvFormatterStream",{enumerable:!0,get:function(){return g.CsvFormatterStream}});var p=e("./FormatterOptions");Object.defineProperty(c,"FormatterOptions",{enumerable:!0,get:function(){return p.FormatterOptions}}),c.format=v=>new m.CsvFormatterStream(new f.FormatterOptions(v)),c.write=(v,b)=>{const x=c.format(b),A=u.promisify((M,V)=>{x.write(M,void 0,V)});return v.reduce((M,V)=>M.then(()=>A(V)),Promise.resolve()).then(()=>x.end()).catch(M=>{x.emit("error",M)}),x},c.writeToStream=(v,b,x)=>c.write(b,x).pipe(v),c.writeToBuffer=function(v){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const x=[],A=new h.Writable({write(M,V,W){x.push(M),W()}});return new Promise((M,V)=>{A.on("error",V).on("finish",()=>M(r.concat(x))),c.write(v,b).pipe(A)})},c.writeToString=(v,b)=>c.writeToBuffer(v,b).then(x=>x.toString()),c.writeToPath=(v,b,x)=>{const A=d.createWriteStream(v,{encoding:"utf8"});return c.write(b,x).pipe(A)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.isSyncTransform=void 0,c.isSyncTransform=r=>r.length===1},{}],153:[function(e,s,c){(function(r){(function(){Object.defineProperty(c,"__esModule",{value:!0}),c.CsvParserStream=void 0;const o=e("string_decoder"),l=e("stream"),a=e("./transforms"),n=e("./parser");class u extends l.Transform{constructor(d){super({objectMode:d.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=d,this.parser=new n.Parser(d),this.headerTransformer=new a.HeaderTransformer(d),this.decoder=new o.StringDecoder(d.encoding),this.rowTransformerValidator=new a.RowTransformerValidator}get hasHitRowLimit(){return this.parserOptions.limitRows&&this.rowCount>=this.parserOptions.maxRows}get shouldEmitRows(){return this.parsedRowCount>this.parserOptions.skipRows}get shouldSkipLine(){return this.parsedLineCount<=this.parserOptions.skipLines}transform(d){return this.rowTransformerValidator.rowTransform=d,this}validate(d){return this.rowTransformerValidator.rowValidator=d,this}emit(d){if(d==="end")return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var f=arguments.length,m=new Array(f>1?f-1:0),g=1;g<f;g++)m[g-1]=arguments[g];return super.emit(d,...m)}_transform(d,f,m){if(this.hasHitRowLimit)return m();const g=u.wrapDoneCallback(m);try{const{lines:p}=this,v=p+this.decoder.write(d),b=this.parse(v,!0);return this.processRows(b,g)}catch(p){return g(p)}}_flush(d){const f=u.wrapDoneCallback(d);if(this.hasHitRowLimit)return f();try{const m=this.lines+this.decoder.end(),g=this.parse(m,!1);return this.processRows(g,f)}catch(m){return f(m)}}parse(d,f){if(!d)return[];const{line:m,rows:g}=this.parser.parse(d,f);return this.lines=m,g}processRows(d,f){const m=d.length,g=p=>{const v=A=>A?f(A):p%100!=0?g(p+1):void r(()=>g(p+1));if(this.checkAndEmitHeaders(),p>=m||this.hasHitRowLimit)return f();if(this.parsedLineCount+=1,this.shouldSkipLine)return v();const b=d[p];this.rowCount+=1,this.parsedRowCount+=1;const x=this.rowCount;return this.transformRow(b,(A,M)=>{if(A)return this.rowCount-=1,v(A);if(!M)return v(new Error("expected transform result"));if(M.isValid){if(M.row)return this.pushRow(M.row,v)}else this.emit("data-invalid",M.row,x,M.reason);return v()})};g(0)}transformRow(d,f){try{this.headerTransformer.transform(d,(m,g)=>m?f(m):g?g.isValid?g.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(g.row,f):this.skipRow(f):(this.rowCount-=1,this.parsedRowCount-=1,f(null,{row:null,isValid:!0})):this.shouldEmitRows?f(null,{isValid:!1,row:d}):this.skipRow(f):f(new Error("Expected result from header transform")))}catch(m){f(m)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(d){return this.rowCount-=1,d(null,{row:null,isValid:!0})}pushRow(d,f){try{this.parserOptions.objectMode?this.push(d):this.push(JSON.stringify(d)),f()}catch(m){f(m)}}static wrapDoneCallback(d){let f=!1;return function(m){if(m){if(f)throw m;return f=!0,void d(m)}for(var g=arguments.length,p=new Array(g>1?g-1:0),v=1;v<g;v++)p[v-1]=arguments[v];d(...p)}}}c.CsvParserStream=u}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,s,c){var r=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(c,"__esModule",{value:!0}),c.ParserOptions=void 0;const o=r(e("lodash.escaperegexp")),l=r(e("lodash.isnil"));c.ParserOptions=class{constructor(a){var n;if(this.objectMode=!0,this.delimiter=",",this.ignoreEmpty=!1,this.quote='"',this.escape=null,this.escapeChar=this.quote,this.comment=null,this.supportsComments=!1,this.ltrim=!1,this.rtrim=!1,this.trim=!1,this.headers=null,this.renameHeaders=!1,this.strictColumnHandling=!1,this.discardUnmappedColumns=!1,this.carriageReturn="\r",this.encoding="utf8",this.limitRows=!1,this.maxRows=0,this.skipLines=0,this.skipRows=0,Object.assign(this,a||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=o.default(this.delimiter),this.escapeChar=(n=this.escape)!==null&&n!==void 0?n:this.quote,this.supportsComments=!l.default(this.comment),this.NEXT_TOKEN_REGEXP=new RegExp(`([^\\s]|\\r\\n|\\n|\\r|${this.escapedDelimiter})`),this.maxRows>0&&(this.limitRows=!0)}}},{"lodash.escaperegexp":442,"lodash.isnil":447}],155:[function(e,s,c){var r=Object.create?function(g,p,v,b){b===void 0&&(b=v),Object.defineProperty(g,b,{enumerable:!0,get:function(){return p[v]}})}:function(g,p,v,b){b===void 0&&(b=v),g[b]=p[v]},o=Object.create?function(g,p){Object.defineProperty(g,"default",{enumerable:!0,value:p})}:function(g,p){g.default=p},l=function(g){if(g&&g.__esModule)return g;var p={};if(g!=null)for(var v in g)v!=="default"&&Object.prototype.hasOwnProperty.call(g,v)&&r(p,g,v);return o(p,g),p},a=function(g,p){for(var v in g)v==="default"||Object.prototype.hasOwnProperty.call(p,v)||r(p,g,v)};Object.defineProperty(c,"__esModule",{value:!0}),c.parseString=c.parseFile=c.parseStream=c.parse=c.ParserOptions=c.CsvParserStream=void 0;const n=l(e("fs")),u=e("stream"),h=e("./ParserOptions"),d=e("./CsvParserStream");a(e("./types"),c);var f=e("./CsvParserStream");Object.defineProperty(c,"CsvParserStream",{enumerable:!0,get:function(){return f.CsvParserStream}});var m=e("./ParserOptions");Object.defineProperty(c,"ParserOptions",{enumerable:!0,get:function(){return m.ParserOptions}}),c.parse=g=>new d.CsvParserStream(new h.ParserOptions(g)),c.parseStream=(g,p)=>g.pipe(new d.CsvParserStream(new h.ParserOptions(p))),c.parseFile=function(g){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.createReadStream(g).pipe(new d.CsvParserStream(new h.ParserOptions(p)))},c.parseString=(g,p)=>{const v=new u.Readable;return v.push(g),v.push(null),v.pipe(new d.CsvParserStream(new h.ParserOptions(p)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Parser=void 0;const r=e("./Scanner"),o=e("./RowParser"),l=e("./Token");class a{constructor(u){this.parserOptions=u,this.rowParser=new o.RowParser(this.parserOptions)}static removeBOM(u){return u&&u.charCodeAt(0)===65279?u.slice(1):u}parse(u,h){const d=new r.Scanner({line:a.removeBOM(u),parserOptions:this.parserOptions,hasMoreData:h});return this.parserOptions.supportsComments?this.parseWithComments(d):this.parseWithoutComments(d)}parseWithoutComments(u){const h=[];let d=!0;for(;d;)d=this.parseRow(u,h);return{line:u.line,rows:h}}parseWithComments(u){const{parserOptions:h}=this,d=[];for(let f=u.nextCharacterToken;f!==null;f=u.nextCharacterToken)if(l.Token.isTokenComment(f,h)){if(u.advancePastLine()===null)return{line:u.lineFromCursor,rows:d};if(!u.hasMoreCharacters)return{line:u.lineFromCursor,rows:d};u.truncateToCursor()}else if(!this.parseRow(u,d))break;return{line:u.line,rows:d}}parseRow(u,h){if(!u.nextNonSpaceToken)return!1;const d=this.rowParser.parse(u);return d!==null&&(this.parserOptions.ignoreEmpty&&o.RowParser.isEmptyRow(d)||h.push(d),!0)}}c.Parser=a},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.RowParser=void 0;const r=e("./column"),o=e("./Token");c.RowParser=class{constructor(l){this.parserOptions=l,this.columnParser=new r.ColumnParser(l)}static isEmptyRow(l){return l.join("").replace(/\s+/g,"")===""}parse(l){const{parserOptions:a}=this,{hasMoreData:n}=l,u=l,h=[];let d=this.getStartToken(u,h);for(;d;){if(o.Token.isTokenRowDelimiter(d))return u.advancePastToken(d),!u.hasMoreCharacters&&o.Token.isTokenCarriageReturn(d,a)&&n?null:(u.truncateToCursor(),h);if(!this.shouldSkipColumnParse(u,d,h)){const f=this.columnParser.parse(u);if(f===null)return null;h.push(f)}d=u.nextNonSpaceToken}return n?null:(u.truncateToCursor(),h)}getStartToken(l,a){const n=l.nextNonSpaceToken;return n!==null&&o.Token.isTokenDelimiter(n,this.parserOptions)?(a.push(""),l.nextNonSpaceToken):n}shouldSkipColumnParse(l,a,n){const{parserOptions:u}=this;if(o.Token.isTokenDelimiter(a,u)){l.advancePastToken(a);const h=l.nextCharacterToken;if(!l.hasMoreCharacters||h!==null&&o.Token.isTokenRowDelimiter(h)||h!==null&&o.Token.isTokenDelimiter(h,u))return n.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Scanner=void 0;const r=e("./Token"),o=/((?:\r\n)|\n|\r)/;c.Scanner=class{constructor(l){this.cursor=0,this.line=l.line,this.lineLength=this.line.length,this.parserOptions=l.parserOptions,this.hasMoreData=l.hasMoreData,this.cursor=l.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:l}=this,a=this.parserOptions.NEXT_TOKEN_REGEXP;if(l.search(a)===-1)return null;const n=a.exec(l);if(n==null)return null;const u=n[1],h=this.cursor+(n.index||0);return new r.Token({token:u,startCursor:h,endCursor:h+u.length-1})}get nextCharacterToken(){const{cursor:l,lineLength:a}=this;return a<=l?null:new r.Token({token:this.line[l],startCursor:l,endCursor:l})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const l=o.exec(this.lineFromCursor);return l?(this.cursor+=(l.index||0)+l[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(l){return this.cursor=l,this}advanceToToken(l){return this.cursor=l.startCursor,this}advancePastToken(l){return this.cursor=l.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Token=void 0,c.Token=class{constructor(r){this.token=r.token,this.startCursor=r.startCursor,this.endCursor=r.endCursor}static isTokenRowDelimiter(r){const o=r.token;return o==="\r"||o===`
85
+ `||o===`\r
86
+ `}static isTokenCarriageReturn(r,o){return r.token===o.carriageReturn}static isTokenComment(r,o){return o.supportsComments&&!!r&&r.token===o.comment}static isTokenEscapeCharacter(r,o){return r.token===o.escapeChar}static isTokenQuote(r,o){return r.token===o.quote}static isTokenDelimiter(r,o){return r.token===o.delimiter}}},{}],160:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.ColumnFormatter=void 0,c.ColumnFormatter=class{constructor(r){r.trim?this.format=o=>o.trim():r.ltrim?this.format=o=>o.trimLeft():r.rtrim?this.format=o=>o.trimRight():this.format=o=>o}}},{}],161:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.ColumnParser=void 0;const r=e("./NonQuotedColumnParser"),o=e("./QuotedColumnParser"),l=e("../Token");c.ColumnParser=class{constructor(a){this.parserOptions=a,this.quotedColumnParser=new o.QuotedColumnParser(a),this.nonQuotedColumnParser=new r.NonQuotedColumnParser(a)}parse(a){const{nextNonSpaceToken:n}=a;return n!==null&&l.Token.isTokenQuote(n,this.parserOptions)?(a.advanceToToken(n),this.quotedColumnParser.parse(a)):this.nonQuotedColumnParser.parse(a)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.NonQuotedColumnParser=void 0;const r=e("./ColumnFormatter"),o=e("../Token");c.NonQuotedColumnParser=class{constructor(l){this.parserOptions=l,this.columnFormatter=new r.ColumnFormatter(l)}parse(l){if(!l.hasMoreCharacters)return null;const{parserOptions:a}=this,n=[];let u=l.nextCharacterToken;for(;u&&!o.Token.isTokenDelimiter(u,a)&&!o.Token.isTokenRowDelimiter(u);u=l.nextCharacterToken)n.push(u.token),l.advancePastToken(u);return this.columnFormatter.format(n.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.QuotedColumnParser=void 0;const r=e("./ColumnFormatter"),o=e("../Token");c.QuotedColumnParser=class{constructor(l){this.parserOptions=l,this.columnFormatter=new r.ColumnFormatter(l)}parse(l){if(!l.hasMoreCharacters)return null;const a=l.cursor,{foundClosingQuote:n,col:u}=this.gatherDataBetweenQuotes(l);if(!n){if(l.advanceTo(a),!l.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${l.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(l),u}gatherDataBetweenQuotes(l){const{parserOptions:a}=this;let n=!1,u=!1;const h=[];let d=l.nextCharacterToken;for(;!u&&d!==null;d=l.nextCharacterToken){const f=o.Token.isTokenQuote(d,a);if(!n&&f)n=!0;else if(n)if(o.Token.isTokenEscapeCharacter(d,a)){l.advancePastToken(d);const m=l.nextCharacterToken;m!==null&&(o.Token.isTokenQuote(m,a)||o.Token.isTokenEscapeCharacter(m,a))?(h.push(m.token),d=m):f?u=!0:h.push(d.token)}else f?u=!0:h.push(d.token);l.advancePastToken(d)}return{col:this.columnFormatter.format(h.join("")),foundClosingQuote:u}}checkForMalformedColumn(l){const{parserOptions:a}=this,{nextNonSpaceToken:n}=l;if(n){const u=o.Token.isTokenDelimiter(n,a),h=o.Token.isTokenRowDelimiter(n);if(!u&&!h){const d=l.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${a.escapedDelimiter}' OR new line got: '${n.token}'. at '${d}`)}l.advanceToToken(n)}else l.hasMoreData||l.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.ColumnFormatter=c.QuotedColumnParser=c.NonQuotedColumnParser=c.ColumnParser=void 0;var r=e("./ColumnParser");Object.defineProperty(c,"ColumnParser",{enumerable:!0,get:function(){return r.ColumnParser}});var o=e("./NonQuotedColumnParser");Object.defineProperty(c,"NonQuotedColumnParser",{enumerable:!0,get:function(){return o.NonQuotedColumnParser}});var l=e("./QuotedColumnParser");Object.defineProperty(c,"QuotedColumnParser",{enumerable:!0,get:function(){return l.QuotedColumnParser}});var a=e("./ColumnFormatter");Object.defineProperty(c,"ColumnFormatter",{enumerable:!0,get:function(){return a.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.QuotedColumnParser=c.NonQuotedColumnParser=c.ColumnParser=c.Token=c.Scanner=c.RowParser=c.Parser=void 0;var r=e("./Parser");Object.defineProperty(c,"Parser",{enumerable:!0,get:function(){return r.Parser}});var o=e("./RowParser");Object.defineProperty(c,"RowParser",{enumerable:!0,get:function(){return o.RowParser}});var l=e("./Scanner");Object.defineProperty(c,"Scanner",{enumerable:!0,get:function(){return l.Scanner}});var a=e("./Token");Object.defineProperty(c,"Token",{enumerable:!0,get:function(){return a.Token}});var n=e("./column");Object.defineProperty(c,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}}),Object.defineProperty(c,"NonQuotedColumnParser",{enumerable:!0,get:function(){return n.NonQuotedColumnParser}}),Object.defineProperty(c,"QuotedColumnParser",{enumerable:!0,get:function(){return n.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,s,c){var r=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(c,"__esModule",{value:!0}),c.HeaderTransformer=void 0;const o=r(e("lodash.isundefined")),l=r(e("lodash.isfunction")),a=r(e("lodash.uniq")),n=r(e("lodash.groupby"));c.HeaderTransformer=class{constructor(u){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=u,u.headers===!0?this.shouldUseFirstRow=!0:Array.isArray(u.headers)?this.setHeaders(u.headers):l.default(u.headers)&&(this.headersTransform=u.headers)}transform(u,h){return this.shouldMapRow(u)?h(null,this.processRow(u)):h(null,{row:null,isValid:!0})}shouldMapRow(u){const{parserOptions:h}=this;if(!this.headersTransform&&h.renameHeaders&&!this.processedFirstRow){if(!this.receivedHeaders)throw new Error("Error renaming headers: new headers must be provided in an array");return this.processedFirstRow=!0,!1}if(!this.receivedHeaders&&Array.isArray(u)){if(this.headersTransform)this.setHeaders(this.headersTransform(u));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(u)}return!1}return!0}processRow(u){if(!this.headers)return{row:u,isValid:!0};const{parserOptions:h}=this;if(!h.discardUnmappedColumns&&u.length>this.headersLength){if(!h.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${u.length}`);return{row:u,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${u.length}`}}return h.strictColumnHandling&&u.length<this.headersLength?{row:u,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${u.length}`}:{row:this.mapHeaders(u),isValid:!0}}mapHeaders(u){const h={},{headers:d,headersLength:f}=this;for(let m=0;m<f;m+=1){const g=d[m];if(!o.default(g)){const p=u[m];o.default(p)?h[g]="":h[g]=p}}return h}setHeaders(u){var h;const d=u.filter(f=>!!f);if(a.default(d).length!==d.length){const f=n.default(d),m=Object.keys(f).filter(g=>f[g].length>1);throw new Error("Duplicate headers found "+JSON.stringify(m))}this.headers=u,this.receivedHeaders=!0,this.headersLength=((h=this.headers)===null||h===void 0?void 0:h.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,s,c){var r=function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(c,"__esModule",{value:!0}),c.RowTransformerValidator=void 0;const o=r(e("lodash.isfunction")),l=e("../types");class a{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(u){return l.isSyncTransform(u)?(h,d)=>{let f=null;try{f=u(h)}catch(m){return d(m)}return d(null,f)}:u}static createValidator(u){return l.isSyncValidate(u)?(h,d)=>{d(null,{row:h,isValid:u(h)})}:(h,d)=>{u(h,(f,m,g)=>f?d(f):d(null,m?{row:h,isValid:m,reason:g}:{row:h,isValid:!1,reason:g}))}}set rowTransform(u){if(!o.default(u))throw new TypeError("The transform should be a function");this._rowTransform=a.createTransform(u)}set rowValidator(u){if(!o.default(u))throw new TypeError("The validate should be a function");this._rowValidator=a.createValidator(u)}transformAndValidate(u,h){return this.callTransformer(u,(d,f)=>d?h(d):f?this.callValidator(f,(m,g)=>m?h(m):g&&!g.isValid?h(null,{row:f,isValid:!1,reason:g.reason}):h(null,{row:f,isValid:!0})):h(null,{row:null,isValid:!0}))}callTransformer(u,h){return this._rowTransform?this._rowTransform(u,h):h(null,u)}callValidator(u,h){return this._rowValidator?this._rowValidator(u,h):h(null,{row:u,isValid:!0})}}c.RowTransformerValidator=a},{"../types":169,"lodash.isfunction":446}],168:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.HeaderTransformer=c.RowTransformerValidator=void 0;var r=e("./RowTransformerValidator");Object.defineProperty(c,"RowTransformerValidator",{enumerable:!0,get:function(){return r.RowTransformerValidator}});var o=e("./HeaderTransformer");Object.defineProperty(c,"HeaderTransformer",{enumerable:!0,get:function(){return o.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.isSyncValidate=c.isSyncTransform=void 0,c.isSyncTransform=r=>r.length===1,c.isSyncValidate=r=>r.length===1},{}],170:[function(e,s,c){const r=c;r.bignum=e("bn.js"),r.define=e("./asn1/api").define,r.base=e("./asn1/base"),r.constants=e("./asn1/constants"),r.decoders=e("./asn1/decoders"),r.encoders=e("./asn1/encoders")},{"./asn1/api":171,"./asn1/base":173,"./asn1/constants":177,"./asn1/decoders":179,"./asn1/encoders":182,"bn.js":184}],171:[function(e,s,c){const r=e("./encoders"),o=e("./decoders"),l=e("inherits");function a(n,u){this.name=n,this.body=u,this.decoders={},this.encoders={}}c.define=function(n,u){return new a(n,u)},a.prototype._createNamed=function(n){const u=this.name;function h(d){this._initNamed(d,u)}return l(h,n),h.prototype._initNamed=function(d,f){n.call(this,d,f)},new h(this)},a.prototype._getDecoder=function(n){return n=n||"der",this.decoders.hasOwnProperty(n)||(this.decoders[n]=this._createNamed(o[n])),this.decoders[n]},a.prototype.decode=function(n,u,h){return this._getDecoder(u).decode(n,h)},a.prototype._getEncoder=function(n){return n=n||"der",this.encoders.hasOwnProperty(n)||(this.encoders[n]=this._createNamed(r[n])),this.encoders[n]},a.prototype.encode=function(n,u,h){return this._getEncoder(u).encode(n,h)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,s,c){const r=e("inherits"),o=e("../base/reporter").Reporter,l=e("safer-buffer").Buffer;function a(u,h){o.call(this,h),l.isBuffer(u)?(this.base=u,this.offset=0,this.length=u.length):this.error("Input not Buffer")}function n(u,h){if(Array.isArray(u))this.length=0,this.value=u.map((function(d){return n.isEncoderBuffer(d)||(d=new n(d,h)),this.length+=d.length,d}),this);else if(typeof u=="number"){if(!(0<=u&&u<=255))return h.error("non-byte EncoderBuffer value");this.value=u,this.length=1}else if(typeof u=="string")this.value=u,this.length=l.byteLength(u);else{if(!l.isBuffer(u))return h.error("Unsupported type: "+typeof u);this.value=u,this.length=u.length}}r(a,o),c.DecoderBuffer=a,a.isDecoderBuffer=function(u){return u instanceof a?!0:typeof u=="object"&&l.isBuffer(u.base)&&u.constructor.name==="DecoderBuffer"&&typeof u.offset=="number"&&typeof u.length=="number"&&typeof u.save=="function"&&typeof u.restore=="function"&&typeof u.isEmpty=="function"&&typeof u.readUInt8=="function"&&typeof u.skip=="function"&&typeof u.raw=="function"},a.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},a.prototype.restore=function(u){const h=new a(this.base);return h.offset=u.offset,h.length=this.offset,this.offset=u.offset,o.prototype.restore.call(this,u.reporter),h},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(u){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(u||"DecoderBuffer overrun")},a.prototype.skip=function(u,h){if(!(this.offset+u<=this.length))return this.error(h||"DecoderBuffer overrun");const d=new a(this.base);return d._reporterState=this._reporterState,d.offset=this.offset,d.length=this.offset+u,this.offset+=u,d},a.prototype.raw=function(u){return this.base.slice(u?u.offset:this.offset,this.length)},c.EncoderBuffer=n,n.isEncoderBuffer=function(u){return u instanceof n?!0:typeof u=="object"&&u.constructor.name==="EncoderBuffer"&&typeof u.length=="number"&&typeof u.join=="function"},n.prototype.join=function(u,h){return u||(u=l.alloc(this.length)),h||(h=0),this.length===0||(Array.isArray(this.value)?this.value.forEach((function(d){d.join(u,h),h+=d.length})):(typeof this.value=="number"?u[h]=this.value:typeof this.value=="string"?u.write(this.value,h):l.isBuffer(this.value)&&this.value.copy(u,h),h+=this.length)),u}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,s,c){const r=c;r.Reporter=e("./reporter").Reporter,r.DecoderBuffer=e("./buffer").DecoderBuffer,r.EncoderBuffer=e("./buffer").EncoderBuffer,r.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,s,c){const r=e("../base/reporter").Reporter,o=e("../base/buffer").EncoderBuffer,l=e("../base/buffer").DecoderBuffer,a=e("minimalistic-assert"),n=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(n);function h(f,m,g){const p={};this._baseState=p,p.name=g,p.enc=f,p.parent=m||null,p.children=null,p.tag=null,p.args=null,p.reverseArgs=null,p.choice=null,p.optional=!1,p.any=!1,p.obj=!1,p.use=null,p.useDecoder=null,p.key=null,p.default=null,p.explicit=null,p.implicit=null,p.contains=null,p.parent||(p.children=[],this._wrap())}s.exports=h;const d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];h.prototype.clone=function(){const f=this._baseState,m={};d.forEach((function(p){m[p]=f[p]}));const g=new this.constructor(m.parent);return g._baseState=m,g},h.prototype._wrap=function(){const f=this._baseState;u.forEach((function(m){this[m]=function(){const g=new this.constructor(this);return f.children.push(g),g[m].apply(g,arguments)}}),this)},h.prototype._init=function(f){const m=this._baseState;a(m.parent===null),f.call(this),m.children=m.children.filter((function(g){return g._baseState.parent===this}),this),a.equal(m.children.length,1,"Root node can have only one child")},h.prototype._useArgs=function(f){const m=this._baseState,g=f.filter((function(p){return p instanceof this.constructor}),this);f=f.filter((function(p){return!(p instanceof this.constructor)}),this),g.length!==0&&(a(m.children===null),m.children=g,g.forEach((function(p){p._baseState.parent=this}),this)),f.length!==0&&(a(m.args===null),m.args=f,m.reverseArgs=f.map((function(p){if(typeof p!="object"||p.constructor!==Object)return p;const v={};return Object.keys(p).forEach((function(b){b==(0|b)&&(b|=0);const x=p[b];v[x]=b})),v})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(f){h.prototype[f]=function(){const m=this._baseState;throw new Error(f+" not implemented for encoding: "+m.enc)}})),n.forEach((function(f){h.prototype[f]=function(){const m=this._baseState,g=Array.prototype.slice.call(arguments);return a(m.tag===null),m.tag=f,this._useArgs(g),this}})),h.prototype.use=function(f){a(f);const m=this._baseState;return a(m.use===null),m.use=f,this},h.prototype.optional=function(){return this._baseState.optional=!0,this},h.prototype.def=function(f){const m=this._baseState;return a(m.default===null),m.default=f,m.optional=!0,this},h.prototype.explicit=function(f){const m=this._baseState;return a(m.explicit===null&&m.implicit===null),m.explicit=f,this},h.prototype.implicit=function(f){const m=this._baseState;return a(m.explicit===null&&m.implicit===null),m.implicit=f,this},h.prototype.obj=function(){const f=this._baseState,m=Array.prototype.slice.call(arguments);return f.obj=!0,m.length!==0&&this._useArgs(m),this},h.prototype.key=function(f){const m=this._baseState;return a(m.key===null),m.key=f,this},h.prototype.any=function(){return this._baseState.any=!0,this},h.prototype.choice=function(f){const m=this._baseState;return a(m.choice===null),m.choice=f,this._useArgs(Object.keys(f).map((function(g){return f[g]}))),this},h.prototype.contains=function(f){const m=this._baseState;return a(m.use===null),m.contains=f,this},h.prototype._decode=function(f,m){const g=this._baseState;if(g.parent===null)return f.wrapResult(g.children[0]._decode(f,m));let p,v=g.default,b=!0,x=null;if(g.key!==null&&(x=f.enterKey(g.key)),g.optional){let A=null;if(g.explicit!==null?A=g.explicit:g.implicit!==null?A=g.implicit:g.tag!==null&&(A=g.tag),A!==null||g.any){if(b=this._peekTag(f,A,g.any),f.isError(b))return b}else{const M=f.save();try{g.choice===null?this._decodeGeneric(g.tag,f,m):this._decodeChoice(f,m),b=!0}catch{b=!1}f.restore(M)}}if(g.obj&&b&&(p=f.enterObject()),b){if(g.explicit!==null){const M=this._decodeTag(f,g.explicit);if(f.isError(M))return M;f=M}const A=f.offset;if(g.use===null&&g.choice===null){let M;g.any&&(M=f.save());const V=this._decodeTag(f,g.implicit!==null?g.implicit:g.tag,g.any);if(f.isError(V))return V;g.any?v=f.raw(M):f=V}if(m&&m.track&&g.tag!==null&&m.track(f.path(),A,f.length,"tagged"),m&&m.track&&g.tag!==null&&m.track(f.path(),f.offset,f.length,"content"),g.any||(v=g.choice===null?this._decodeGeneric(g.tag,f,m):this._decodeChoice(f,m)),f.isError(v))return v;if(g.any||g.choice!==null||g.children===null||g.children.forEach((function(M){M._decode(f,m)})),g.contains&&(g.tag==="octstr"||g.tag==="bitstr")){const M=new l(v);v=this._getUse(g.contains,f._reporterState.obj)._decode(M,m)}}return g.obj&&b&&(v=f.leaveObject(p)),g.key===null||v===null&&b!==!0?x!==null&&f.exitKey(x):f.leaveKey(x,g.key,v),v},h.prototype._decodeGeneric=function(f,m,g){const p=this._baseState;return f==="seq"||f==="set"?null:f==="seqof"||f==="setof"?this._decodeList(m,f,p.args[0],g):/str$/.test(f)?this._decodeStr(m,f,g):f==="objid"&&p.args?this._decodeObjid(m,p.args[0],p.args[1],g):f==="objid"?this._decodeObjid(m,null,null,g):f==="gentime"||f==="utctime"?this._decodeTime(m,f,g):f==="null_"?this._decodeNull(m,g):f==="bool"?this._decodeBool(m,g):f==="objDesc"?this._decodeStr(m,f,g):f==="int"||f==="enum"?this._decodeInt(m,p.args&&p.args[0],g):p.use!==null?this._getUse(p.use,m._reporterState.obj)._decode(m,g):m.error("unknown tag: "+f)},h.prototype._getUse=function(f,m){const g=this._baseState;return g.useDecoder=this._use(f,m),a(g.useDecoder._baseState.parent===null),g.useDecoder=g.useDecoder._baseState.children[0],g.implicit!==g.useDecoder._baseState.implicit&&(g.useDecoder=g.useDecoder.clone(),g.useDecoder._baseState.implicit=g.implicit),g.useDecoder},h.prototype._decodeChoice=function(f,m){const g=this._baseState;let p=null,v=!1;return Object.keys(g.choice).some((function(b){const x=f.save(),A=g.choice[b];try{const M=A._decode(f,m);if(f.isError(M))return!1;p={type:b,value:M},v=!0}catch{return f.restore(x),!1}return!0}),this),v?p:f.error("Choice not matched")},h.prototype._createEncoderBuffer=function(f){return new o(f,this.reporter)},h.prototype._encode=function(f,m,g){const p=this._baseState;if(p.default!==null&&p.default===f)return;const v=this._encodeValue(f,m,g);return v===void 0||this._skipDefault(v,m,g)?void 0:v},h.prototype._encodeValue=function(f,m,g){const p=this._baseState;if(p.parent===null)return p.children[0]._encode(f,m||new r);let v=null;if(this.reporter=m,p.optional&&f===void 0){if(p.default===null)return;f=p.default}let b=null,x=!1;if(p.any)v=this._createEncoderBuffer(f);else if(p.choice)v=this._encodeChoice(f,m);else if(p.contains)b=this._getUse(p.contains,g)._encode(f,m),x=!0;else if(p.children)b=p.children.map((function(A){if(A._baseState.tag==="null_")return A._encode(null,m,f);if(A._baseState.key===null)return m.error("Child should have a key");const M=m.enterKey(A._baseState.key);if(typeof f!="object")return m.error("Child expected, but input is not object");const V=A._encode(f[A._baseState.key],m,f);return m.leaveKey(M),V}),this).filter((function(A){return A})),b=this._createEncoderBuffer(b);else if(p.tag==="seqof"||p.tag==="setof"){if(!p.args||p.args.length!==1)return m.error("Too many args for : "+p.tag);if(!Array.isArray(f))return m.error("seqof/setof, but data is not Array");const A=this.clone();A._baseState.implicit=null,b=this._createEncoderBuffer(f.map((function(M){const V=this._baseState;return this._getUse(V.args[0],f)._encode(M,m)}),A))}else p.use!==null?v=this._getUse(p.use,g)._encode(f,m):(b=this._encodePrimitive(p.tag,f),x=!0);if(!p.any&&p.choice===null){const A=p.implicit!==null?p.implicit:p.tag,M=p.implicit===null?"universal":"context";A===null?p.use===null&&m.error("Tag could be omitted only for .use()"):p.use===null&&(v=this._encodeComposite(A,x,M,b))}return p.explicit!==null&&(v=this._encodeComposite(p.explicit,!1,"context",v)),v},h.prototype._encodeChoice=function(f,m){const g=this._baseState,p=g.choice[f.type];return p||a(!1,f.type+" not found in "+JSON.stringify(Object.keys(g.choice))),p._encode(f.value,m)},h.prototype._encodePrimitive=function(f,m){const g=this._baseState;if(/str$/.test(f))return this._encodeStr(m,f);if(f==="objid"&&g.args)return this._encodeObjid(m,g.reverseArgs[0],g.args[1]);if(f==="objid")return this._encodeObjid(m,null,null);if(f==="gentime"||f==="utctime")return this._encodeTime(m,f);if(f==="null_")return this._encodeNull();if(f==="int"||f==="enum")return this._encodeInt(m,g.args&&g.reverseArgs[0]);if(f==="bool")return this._encodeBool(m);if(f==="objDesc")return this._encodeStr(m,f);throw new Error("Unsupported tag: "+f)},h.prototype._isNumstr=function(f){return/^[0-9 ]*$/.test(f)},h.prototype._isPrintstr=function(f){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(f)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,s,c){const r=e("inherits");function o(a){this._reporterState={obj:null,path:[],options:a||{},errors:[]}}function l(a,n){this.path=a,this.rethrow(n)}c.Reporter=o,o.prototype.isError=function(a){return a instanceof l},o.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},o.prototype.restore=function(a){const n=this._reporterState;n.obj=a.obj,n.path=n.path.slice(0,a.pathLen)},o.prototype.enterKey=function(a){return this._reporterState.path.push(a)},o.prototype.exitKey=function(a){const n=this._reporterState;n.path=n.path.slice(0,a-1)},o.prototype.leaveKey=function(a,n,u){const h=this._reporterState;this.exitKey(a),h.obj!==null&&(h.obj[n]=u)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const a=this._reporterState,n=a.obj;return a.obj={},n},o.prototype.leaveObject=function(a){const n=this._reporterState,u=n.obj;return n.obj=a,u},o.prototype.error=function(a){let n;const u=this._reporterState,h=a instanceof l;if(n=h?a:new l(u.path.map((function(d){return"["+JSON.stringify(d)+"]"})).join(""),a.message||a,a.stack),!u.options.partial)throw n;return h||u.errors.push(n),n},o.prototype.wrapResult=function(a){const n=this._reporterState;return n.options.partial?{result:this.isError(a)?null:a,errors:n.errors}:a},r(l,Error),l.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,l),!this.stack)try{throw new Error(this.message)}catch(n){this.stack=n.stack}return this}},{inherits:440}],176:[function(e,s,c){function r(o){const l={};return Object.keys(o).forEach((function(a){(0|a)==a&&(a|=0);const n=o[a];l[n]=a})),l}c.tagClass={0:"universal",1:"application",2:"context",3:"private"},c.tagClassByName=r(c.tagClass),c.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},c.tagByName=r(c.tag)},{}],177:[function(e,s,c){const r=c;r._reverse=function(o){const l={};return Object.keys(o).forEach((function(a){(0|a)==a&&(a|=0);const n=o[a];l[n]=a})),l},r.der=e("./der")},{"./der":176}],178:[function(e,s,c){const r=e("inherits"),o=e("bn.js"),l=e("../base/buffer").DecoderBuffer,a=e("../base/node"),n=e("../constants/der");function u(m){this.enc="der",this.name=m.name,this.entity=m,this.tree=new h,this.tree._init(m.body)}function h(m){a.call(this,"der",m)}function d(m,g){let p=m.readUInt8(g);if(m.isError(p))return p;const v=n.tagClass[p>>6],b=(32&p)==0;if((31&p)==31){let x=p;for(p=0;(128&x)==128;){if(x=m.readUInt8(g),m.isError(x))return x;p<<=7,p|=127&x}}else p&=31;return{cls:v,primitive:b,tag:p,tagStr:n.tag[p]}}function f(m,g,p){let v=m.readUInt8(p);if(m.isError(v))return v;if(!g&&v===128)return null;if((128&v)==0)return v;const b=127&v;if(b>4)return m.error("length octect is too long");v=0;for(let x=0;x<b;x++){v<<=8;const A=m.readUInt8(p);if(m.isError(A))return A;v|=A}return v}s.exports=u,u.prototype.decode=function(m,g){return l.isDecoderBuffer(m)||(m=new l(m,g)),this.tree._decode(m,g)},r(h,a),h.prototype._peekTag=function(m,g,p){if(m.isEmpty())return!1;const v=m.save(),b=d(m,'Failed to peek tag: "'+g+'"');return m.isError(b)?b:(m.restore(v),b.tag===g||b.tagStr===g||b.tagStr+"of"===g||p)},h.prototype._decodeTag=function(m,g,p){const v=d(m,'Failed to decode tag of "'+g+'"');if(m.isError(v))return v;let b=f(m,v.primitive,'Failed to get length of "'+g+'"');if(m.isError(b))return b;if(!p&&v.tag!==g&&v.tagStr!==g&&v.tagStr+"of"!==g)return m.error('Failed to match tag: "'+g+'"');if(v.primitive||b!==null)return m.skip(b,'Failed to match body of: "'+g+'"');const x=m.save(),A=this._skipUntilEnd(m,'Failed to skip indefinite length body: "'+this.tag+'"');return m.isError(A)?A:(b=m.offset-x.offset,m.restore(x),m.skip(b,'Failed to match body of: "'+g+'"'))},h.prototype._skipUntilEnd=function(m,g){for(;;){const p=d(m,g);if(m.isError(p))return p;const v=f(m,p.primitive,g);if(m.isError(v))return v;let b;if(b=p.primitive||v!==null?m.skip(v):this._skipUntilEnd(m,g),m.isError(b))return b;if(p.tagStr==="end")break}},h.prototype._decodeList=function(m,g,p,v){const b=[];for(;!m.isEmpty();){const x=this._peekTag(m,"end");if(m.isError(x))return x;const A=p.decode(m,"der",v);if(m.isError(A)&&x)break;b.push(A)}return b},h.prototype._decodeStr=function(m,g){if(g==="bitstr"){const p=m.readUInt8();return m.isError(p)?p:{unused:p,data:m.raw()}}if(g==="bmpstr"){const p=m.raw();if(p.length%2==1)return m.error("Decoding of string type: bmpstr length mismatch");let v="";for(let b=0;b<p.length/2;b++)v+=String.fromCharCode(p.readUInt16BE(2*b));return v}if(g==="numstr"){const p=m.raw().toString("ascii");return this._isNumstr(p)?p:m.error("Decoding of string type: numstr unsupported characters")}if(g==="octstr"||g==="objDesc")return m.raw();if(g==="printstr"){const p=m.raw().toString("ascii");return this._isPrintstr(p)?p:m.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(g)?m.raw().toString():m.error("Decoding of string type: "+g+" unsupported")},h.prototype._decodeObjid=function(m,g,p){let v;const b=[];let x=0,A=0;for(;!m.isEmpty();)A=m.readUInt8(),x<<=7,x|=127&A,(128&A)==0&&(b.push(x),x=0);128&A&&b.push(x);const M=b[0]/40|0,V=b[0]%40;if(v=p?b:[M,V].concat(b.slice(1)),g){let W=g[v.join(" ")];W===void 0&&(W=g[v.join(".")]),W!==void 0&&(v=W)}return v},h.prototype._decodeTime=function(m,g){const p=m.raw().toString();let v,b,x,A,M,V;if(g==="gentime")v=0|p.slice(0,4),b=0|p.slice(4,6),x=0|p.slice(6,8),A=0|p.slice(8,10),M=0|p.slice(10,12),V=0|p.slice(12,14);else{if(g!=="utctime")return m.error("Decoding "+g+" time is not supported yet");v=0|p.slice(0,2),b=0|p.slice(2,4),x=0|p.slice(4,6),A=0|p.slice(6,8),M=0|p.slice(8,10),V=0|p.slice(10,12),v=v<70?2e3+v:1900+v}return Date.UTC(v,b-1,x,A,M,V,0)},h.prototype._decodeNull=function(){return null},h.prototype._decodeBool=function(m){const g=m.readUInt8();return m.isError(g)?g:g!==0},h.prototype._decodeInt=function(m,g){const p=m.raw();let v=new o(p);return g&&(v=g[v.toString(10)]||v),v},h.prototype._use=function(m,g){return typeof m=="function"&&(m=m(g)),m._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,s,c){const r=c;r.der=e("./der"),r.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,s,c){const r=e("inherits"),o=e("safer-buffer").Buffer,l=e("./der");function a(n){l.call(this,n),this.enc="pem"}r(a,l),s.exports=a,a.prototype.decode=function(n,u){const h=n.toString().split(/[\r\n]+/g),d=u.label.toUpperCase(),f=/^-----(BEGIN|END) ([^-]+)-----$/;let m=-1,g=-1;for(let b=0;b<h.length;b++){const x=h[b].match(f);if(x!==null&&x[2]===d){if(m!==-1){if(x[1]!=="END")break;g=b;break}if(x[1]!=="BEGIN")break;m=b}}if(m===-1||g===-1)throw new Error("PEM section not found for: "+d);const p=h.slice(m+1,g).join("");p.replace(/[^a-z0-9+/=]+/gi,"");const v=o.from(p,"base64");return l.prototype.decode.call(this,v,u)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,s,c){const r=e("inherits"),o=e("safer-buffer").Buffer,l=e("../base/node"),a=e("../constants/der");function n(d){this.enc="der",this.name=d.name,this.entity=d,this.tree=new u,this.tree._init(d.body)}function u(d){l.call(this,"der",d)}function h(d){return d<10?"0"+d:d}s.exports=n,n.prototype.encode=function(d,f){return this.tree._encode(d,f).join()},r(u,l),u.prototype._encodeComposite=function(d,f,m,g){const p=(function(x,A,M,V){let W;if(x==="seqof"?x="seq":x==="setof"&&(x="set"),a.tagByName.hasOwnProperty(x))W=a.tagByName[x];else{if(typeof x!="number"||(0|x)!==x)return V.error("Unknown tag: "+x);W=x}return W>=31?V.error("Multi-octet tag encoding unsupported"):(A||(W|=32),W|=a.tagClassByName[M||"universal"]<<6,W)})(d,f,m,this.reporter);if(g.length<128){const x=o.alloc(2);return x[0]=p,x[1]=g.length,this._createEncoderBuffer([x,g])}let v=1;for(let x=g.length;x>=256;x>>=8)v++;const b=o.alloc(2+v);b[0]=p,b[1]=128|v;for(let x=1+v,A=g.length;A>0;x--,A>>=8)b[x]=255&A;return this._createEncoderBuffer([b,g])},u.prototype._encodeStr=function(d,f){if(f==="bitstr")return this._createEncoderBuffer([0|d.unused,d.data]);if(f==="bmpstr"){const m=o.alloc(2*d.length);for(let g=0;g<d.length;g++)m.writeUInt16BE(d.charCodeAt(g),2*g);return this._createEncoderBuffer(m)}return f==="numstr"?this._isNumstr(d)?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: numstr supports only digits and space"):f==="printstr"?this._isPrintstr(d)?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(f)||f==="objDesc"?this._createEncoderBuffer(d):this.reporter.error("Encoding of string type: "+f+" unsupported")},u.prototype._encodeObjid=function(d,f,m){if(typeof d=="string"){if(!f)return this.reporter.error("string objid given, but no values map found");if(!f.hasOwnProperty(d))return this.reporter.error("objid not found in values map");d=f[d].split(/[\s.]+/g);for(let b=0;b<d.length;b++)d[b]|=0}else if(Array.isArray(d)){d=d.slice();for(let b=0;b<d.length;b++)d[b]|=0}if(!Array.isArray(d))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(d));if(!m){if(d[1]>=40)return this.reporter.error("Second objid identifier OOB");d.splice(0,2,40*d[0]+d[1])}let g=0;for(let b=0;b<d.length;b++){let x=d[b];for(g++;x>=128;x>>=7)g++}const p=o.alloc(g);let v=p.length-1;for(let b=d.length-1;b>=0;b--){let x=d[b];for(p[v--]=127&x;(x>>=7)>0;)p[v--]=128|127&x}return this._createEncoderBuffer(p)},u.prototype._encodeTime=function(d,f){let m;const g=new Date(d);return f==="gentime"?m=[h(g.getUTCFullYear()),h(g.getUTCMonth()+1),h(g.getUTCDate()),h(g.getUTCHours()),h(g.getUTCMinutes()),h(g.getUTCSeconds()),"Z"].join(""):f==="utctime"?m=[h(g.getUTCFullYear()%100),h(g.getUTCMonth()+1),h(g.getUTCDate()),h(g.getUTCHours()),h(g.getUTCMinutes()),h(g.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+f+" time is not supported yet"),this._encodeStr(m,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(d,f){if(typeof d=="string"){if(!f)return this.reporter.error("String int or enum given, but no values map");if(!f.hasOwnProperty(d))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(d));d=f[d]}if(typeof d!="number"&&!o.isBuffer(d)){const p=d.toArray();!d.sign&&128&p[0]&&p.unshift(0),d=o.from(p)}if(o.isBuffer(d)){let p=d.length;d.length===0&&p++;const v=o.alloc(p);return d.copy(v),d.length===0&&(v[0]=0),this._createEncoderBuffer(v)}if(d<128)return this._createEncoderBuffer(d);if(d<256)return this._createEncoderBuffer([0,d]);let m=1;for(let p=d;p>=256;p>>=8)m++;const g=new Array(m);for(let p=g.length-1;p>=0;p--)g[p]=255&d,d>>=8;return 128&g[0]&&g.unshift(0),this._createEncoderBuffer(o.from(g))},u.prototype._encodeBool=function(d){return this._createEncoderBuffer(d?255:0)},u.prototype._use=function(d,f){return typeof d=="function"&&(d=d(f)),d._getEncoder("der").tree},u.prototype._skipDefault=function(d,f,m){const g=this._baseState;let p;if(g.default===null)return!1;const v=d.join();if(g.defaultBuffer===void 0&&(g.defaultBuffer=this._encodeValue(g.default,f,m).join()),v.length!==g.defaultBuffer.length)return!1;for(p=0;p<v.length;p++)if(v[p]!==g.defaultBuffer[p])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,s,c){const r=c;r.der=e("./der"),r.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,s,c){const r=e("inherits"),o=e("./der");function l(a){o.call(this,a),this.enc="pem"}r(l,o),s.exports=l,l.prototype.encode=function(a,n){const u=o.prototype.encode.call(this,a).toString("base64"),h=["-----BEGIN "+n.label+"-----"];for(let d=0;d<u.length;d+=64)h.push(u.slice(d,d+64));return h.push("-----END "+n.label+"-----"),h.join(`
87
+ `)}},{"./der":181,inherits:440}],184:[function(e,s,c){(function(r,o){function l(N,E){if(!N)throw new Error(E||"Assertion failed")}function a(N,E){N.super_=E;var C=function(){};C.prototype=E.prototype,N.prototype=new C,N.prototype.constructor=N}function n(N,E,C){if(n.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&(E!=="le"&&E!=="be"||(C=E,E=10),this._init(N||0,E||10,C||"be"))}var u;typeof r=="object"?r.exports=n:(void 0).BN=n,n.BN=n,n.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function h(N,E){var C=N.charCodeAt(E);return C>=65&&C<=70?C-55:C>=97&&C<=102?C-87:C-48&15}function d(N,E,C){var w=h(N,C);return C-1>=E&&(w|=h(N,C-1)<<4),w}function f(N,E,C,w){for(var S=0,_=Math.min(N.length,C),k=E;k<_;k++){var T=N.charCodeAt(k)-48;S*=w,S+=T>=49?T-49+10:T>=17?T-17+10:T}return S}n.isBN=function(N){return N instanceof n||N!==null&&typeof N=="object"&&N.constructor.wordSize===n.wordSize&&Array.isArray(N.words)},n.max=function(N,E){return N.cmp(E)>0?N:E},n.min=function(N,E){return N.cmp(E)<0?N:E},n.prototype._init=function(N,E,C){if(typeof N=="number")return this._initNumber(N,E,C);if(typeof N=="object")return this._initArray(N,E,C);E==="hex"&&(E=16),l(E===(0|E)&&E>=2&&E<=36);var w=0;(N=N.toString().replace(/\s+/g,""))[0]==="-"&&(w++,this.negative=1),w<N.length&&(E===16?this._parseHex(N,w,C):(this._parseBase(N,E,w),C==="le"&&this._initArray(this.toArray(),E,C)))},n.prototype._initNumber=function(N,E,C){N<0&&(this.negative=1,N=-N),N<67108864?(this.words=[67108863&N],this.length=1):N<4503599627370496?(this.words=[67108863&N,N/67108864&67108863],this.length=2):(l(N<9007199254740992),this.words=[67108863&N,N/67108864&67108863,1],this.length=3),C==="le"&&this._initArray(this.toArray(),E,C)},n.prototype._initArray=function(N,E,C){if(l(typeof N.length=="number"),N.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(N.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var S,_,k=0;if(C==="be")for(w=N.length-1,S=0;w>=0;w-=3)_=N[w]|N[w-1]<<8|N[w-2]<<16,this.words[S]|=_<<k&67108863,this.words[S+1]=_>>>26-k&67108863,(k+=24)>=26&&(k-=26,S++);else if(C==="le")for(w=0,S=0;w<N.length;w+=3)_=N[w]|N[w+1]<<8|N[w+2]<<16,this.words[S]|=_<<k&67108863,this.words[S+1]=_>>>26-k&67108863,(k+=24)>=26&&(k-=26,S++);return this.strip()},n.prototype._parseHex=function(N,E,C){this.length=Math.ceil((N.length-E)/6),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var S,_=0,k=0;if(C==="be")for(w=N.length-1;w>=E;w-=2)S=d(N,E,w)<<_,this.words[k]|=67108863&S,_>=18?(_-=18,k+=1,this.words[k]|=S>>>26):_+=8;else for(w=(N.length-E)%2==0?E+1:E;w<N.length;w+=2)S=d(N,E,w)<<_,this.words[k]|=67108863&S,_>=18?(_-=18,k+=1,this.words[k]|=S>>>26):_+=8;this.strip()},n.prototype._parseBase=function(N,E,C){this.words=[0],this.length=1;for(var w=0,S=1;S<=67108863;S*=E)w++;w--,S=S/E|0;for(var _=N.length-C,k=_%w,T=Math.min(_,_-k)+C,j=0,P=C;P<T;P+=w)j=f(N,P,P+w,E),this.imuln(S),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j);if(k!==0){var U=1;for(j=f(N,P,N.length,E),P=0;P<k;P++)U*=E;this.imuln(U),this.words[0]+j<67108864?this.words[0]+=j:this._iaddn(j)}this.strip()},n.prototype.copy=function(N){N.words=new Array(this.length);for(var E=0;E<this.length;E++)N.words[E]=this.words[E];N.length=this.length,N.negative=this.negative,N.red=this.red},n.prototype.clone=function(){var N=new n(null);return this.copy(N),N},n.prototype._expand=function(N){for(;this.length<N;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var m=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],g=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function v(N,E,C){C.negative=E.negative^N.negative;var w=N.length+E.length|0;C.length=w,w=w-1|0;var S=0|N.words[0],_=0|E.words[0],k=S*_,T=67108863&k,j=k/67108864|0;C.words[0]=T;for(var P=1;P<w;P++){for(var U=j>>>26,q=67108863&j,Z=Math.min(P,E.length-1),B=Math.max(0,P-N.length+1);B<=Z;B++){var X=P-B|0;U+=(k=(S=0|N.words[X])*(_=0|E.words[B])+q)/67108864|0,q=67108863&k}C.words[P]=0|q,j=0|U}return j!==0?C.words[P]=0|j:C.length--,C.strip()}n.prototype.toString=function(N,E){var C;if(E=0|E||1,(N=N||10)===16||N==="hex"){C="";for(var w=0,S=0,_=0;_<this.length;_++){var k=this.words[_],T=(16777215&(k<<w|S)).toString(16);C=(S=k>>>24-w&16777215)!==0||_!==this.length-1?m[6-T.length]+T+C:T+C,(w+=2)>=26&&(w-=26,_--)}for(S!==0&&(C=S.toString(16)+C);C.length%E!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}if(N===(0|N)&&N>=2&&N<=36){var j=g[N],P=p[N];C="";var U=this.clone();for(U.negative=0;!U.isZero();){var q=U.modn(P).toString(N);C=(U=U.idivn(P)).isZero()?q+C:m[j-q.length]+q+C}for(this.isZero()&&(C="0"+C);C.length%E!=0;)C="0"+C;return this.negative!==0&&(C="-"+C),C}l(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=67108864*this.words[1]:this.length===3&&this.words[2]===1?N+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(N,E){return l(u!==void 0),this.toArrayLike(u,N,E)},n.prototype.toArray=function(N,E){return this.toArrayLike(Array,N,E)},n.prototype.toArrayLike=function(N,E,C){var w=this.byteLength(),S=C||Math.max(1,w);l(w<=S,"byte array longer than desired length"),l(S>0,"Requested array length <= 0"),this.strip();var _,k,T=E==="le",j=new N(S),P=this.clone();if(T){for(k=0;!P.isZero();k++)_=P.andln(255),P.iushrn(8),j[k]=_;for(;k<S;k++)j[k]=0}else{for(k=0;k<S-w;k++)j[k]=0;for(k=0;!P.isZero();k++)_=P.andln(255),P.iushrn(8),j[S-k-1]=_}return j},Math.clz32?n.prototype._countBits=function(N){return 32-Math.clz32(N)}:n.prototype._countBits=function(N){var E=N,C=0;return E>=4096&&(C+=13,E>>>=13),E>=64&&(C+=7,E>>>=7),E>=8&&(C+=4,E>>>=4),E>=2&&(C+=2,E>>>=2),C+E},n.prototype._zeroBits=function(N){if(N===0)return 26;var E=N,C=0;return(8191&E)==0&&(C+=13,E>>>=13),(127&E)==0&&(C+=7,E>>>=7),(15&E)==0&&(C+=4,E>>>=4),(3&E)==0&&(C+=2,E>>>=2),(1&E)==0&&C++,C},n.prototype.bitLength=function(){var N=this.words[this.length-1],E=this._countBits(N);return 26*(this.length-1)+E},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,E=0;E<this.length;E++){var C=this._zeroBits(this.words[E]);if(N+=C,C!==26)break}return N},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(N){return this.negative!==0?this.abs().inotn(N).iaddn(1):this.clone()},n.prototype.fromTwos=function(N){return this.testn(N-1)?this.notn(N).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(N){for(;this.length<N.length;)this.words[this.length++]=0;for(var E=0;E<N.length;E++)this.words[E]=this.words[E]|N.words[E];return this.strip()},n.prototype.ior=function(N){return l((this.negative|N.negative)==0),this.iuor(N)},n.prototype.or=function(N){return this.length>N.length?this.clone().ior(N):N.clone().ior(this)},n.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},n.prototype.iuand=function(N){var E;E=this.length>N.length?N:this;for(var C=0;C<E.length;C++)this.words[C]=this.words[C]&N.words[C];return this.length=E.length,this.strip()},n.prototype.iand=function(N){return l((this.negative|N.negative)==0),this.iuand(N)},n.prototype.and=function(N){return this.length>N.length?this.clone().iand(N):N.clone().iand(this)},n.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},n.prototype.iuxor=function(N){var E,C;this.length>N.length?(E=this,C=N):(E=N,C=this);for(var w=0;w<C.length;w++)this.words[w]=E.words[w]^C.words[w];if(this!==E)for(;w<E.length;w++)this.words[w]=E.words[w];return this.length=E.length,this.strip()},n.prototype.ixor=function(N){return l((this.negative|N.negative)==0),this.iuxor(N)},n.prototype.xor=function(N){return this.length>N.length?this.clone().ixor(N):N.clone().ixor(this)},n.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},n.prototype.inotn=function(N){l(typeof N=="number"&&N>=0);var E=0|Math.ceil(N/26),C=N%26;this._expand(E),C>0&&E--;for(var w=0;w<E;w++)this.words[w]=67108863&~this.words[w];return C>0&&(this.words[w]=~this.words[w]&67108863>>26-C),this.strip()},n.prototype.notn=function(N){return this.clone().inotn(N)},n.prototype.setn=function(N,E){l(typeof N=="number"&&N>=0);var C=N/26|0,w=N%26;return this._expand(C+1),this.words[C]=E?this.words[C]|1<<w:this.words[C]&~(1<<w),this.strip()},n.prototype.iadd=function(N){var E,C,w;if(this.negative!==0&&N.negative===0)return this.negative=0,E=this.isub(N),this.negative^=1,this._normSign();if(this.negative===0&&N.negative!==0)return N.negative=0,E=this.isub(N),N.negative=1,E._normSign();this.length>N.length?(C=this,w=N):(C=N,w=this);for(var S=0,_=0;_<w.length;_++)E=(0|C.words[_])+(0|w.words[_])+S,this.words[_]=67108863&E,S=E>>>26;for(;S!==0&&_<C.length;_++)E=(0|C.words[_])+S,this.words[_]=67108863&E,S=E>>>26;if(this.length=C.length,S!==0)this.words[this.length]=S,this.length++;else if(C!==this)for(;_<C.length;_++)this.words[_]=C.words[_];return this},n.prototype.add=function(N){var E;return N.negative!==0&&this.negative===0?(N.negative=0,E=this.sub(N),N.negative^=1,E):N.negative===0&&this.negative!==0?(this.negative=0,E=N.sub(this),this.negative=1,E):this.length>N.length?this.clone().iadd(N):N.clone().iadd(this)},n.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var E=this.iadd(N);return N.negative=1,E._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var C,w,S=this.cmp(N);if(S===0)return this.negative=0,this.length=1,this.words[0]=0,this;S>0?(C=this,w=N):(C=N,w=this);for(var _=0,k=0;k<w.length;k++)_=(E=(0|C.words[k])-(0|w.words[k])+_)>>26,this.words[k]=67108863&E;for(;_!==0&&k<C.length;k++)_=(E=(0|C.words[k])+_)>>26,this.words[k]=67108863&E;if(_===0&&k<C.length&&C!==this)for(;k<C.length;k++)this.words[k]=C.words[k];return this.length=Math.max(this.length,k),C!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(N){return this.clone().isub(N)};var b=function(N,E,C){var w,S,_,k=N.words,T=E.words,j=C.words,P=0,U=0|k[0],q=8191&U,Z=U>>>13,B=0|k[1],X=8191&B,L=B>>>13,I=0|k[2],G=8191&I,ee=I>>>13,se=0|k[3],te=8191&se,re=se>>>13,J=0|k[4],de=8191&J,ne=J>>>13,fe=0|k[5],ue=8191&fe,ye=fe>>>13,be=0|k[6],we=8191&be,Se=be>>>13,Pe=0|k[7],Le=8191&Pe,De=Pe>>>13,Ge=0|k[8],Ve=8191&Ge,qe=Ge>>>13,et=0|k[9],We=8191&et,dt=et>>>13,Ke=0|T[0],Oe=8191&Ke,Xe=Ke>>>13,ut=0|T[1],ze=8191&ut,bt=ut>>>13,ct=0|T[2],nt=8191&ct,Mt=ct>>>13,ht=0|T[3],it=8191&ht,Pt=ht>>>13,Qt=0|T[4],mt=8191&Qt,qt=Qt>>>13,ir=0|T[5],rt=8191&ir,Zt=ir>>>13,ar=0|T[6],It=8191&ar,xe=ar>>>13,Ce=0|T[7],Re=8191&Ce,tt=Ce>>>13,Ct=0|T[8],ot=8191&Ct,At=Ct>>>13,yt=0|T[9],gt=8191&yt,Rt=yt>>>13;C.negative=N.negative^E.negative,C.length=19;var Nt=(P+(w=Math.imul(q,Oe))|0)+((8191&(S=(S=Math.imul(q,Xe))+Math.imul(Z,Oe)|0))<<13)|0;P=((_=Math.imul(Z,Xe))+(S>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,w=Math.imul(X,Oe),S=(S=Math.imul(X,Xe))+Math.imul(L,Oe)|0,_=Math.imul(L,Xe);var Dt=(P+(w=w+Math.imul(q,ze)|0)|0)+((8191&(S=(S=S+Math.imul(q,bt)|0)+Math.imul(Z,ze)|0))<<13)|0;P=((_=_+Math.imul(Z,bt)|0)+(S>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,w=Math.imul(G,Oe),S=(S=Math.imul(G,Xe))+Math.imul(ee,Oe)|0,_=Math.imul(ee,Xe),w=w+Math.imul(X,ze)|0,S=(S=S+Math.imul(X,bt)|0)+Math.imul(L,ze)|0,_=_+Math.imul(L,bt)|0;var mr=(P+(w=w+Math.imul(q,nt)|0)|0)+((8191&(S=(S=S+Math.imul(q,Mt)|0)+Math.imul(Z,nt)|0))<<13)|0;P=((_=_+Math.imul(Z,Mt)|0)+(S>>>13)|0)+(mr>>>26)|0,mr&=67108863,w=Math.imul(te,Oe),S=(S=Math.imul(te,Xe))+Math.imul(re,Oe)|0,_=Math.imul(re,Xe),w=w+Math.imul(G,ze)|0,S=(S=S+Math.imul(G,bt)|0)+Math.imul(ee,ze)|0,_=_+Math.imul(ee,bt)|0,w=w+Math.imul(X,nt)|0,S=(S=S+Math.imul(X,Mt)|0)+Math.imul(L,nt)|0,_=_+Math.imul(L,Mt)|0;var fr=(P+(w=w+Math.imul(q,it)|0)|0)+((8191&(S=(S=S+Math.imul(q,Pt)|0)+Math.imul(Z,it)|0))<<13)|0;P=((_=_+Math.imul(Z,Pt)|0)+(S>>>13)|0)+(fr>>>26)|0,fr&=67108863,w=Math.imul(de,Oe),S=(S=Math.imul(de,Xe))+Math.imul(ne,Oe)|0,_=Math.imul(ne,Xe),w=w+Math.imul(te,ze)|0,S=(S=S+Math.imul(te,bt)|0)+Math.imul(re,ze)|0,_=_+Math.imul(re,bt)|0,w=w+Math.imul(G,nt)|0,S=(S=S+Math.imul(G,Mt)|0)+Math.imul(ee,nt)|0,_=_+Math.imul(ee,Mt)|0,w=w+Math.imul(X,it)|0,S=(S=S+Math.imul(X,Pt)|0)+Math.imul(L,it)|0,_=_+Math.imul(L,Pt)|0;var Cr=(P+(w=w+Math.imul(q,mt)|0)|0)+((8191&(S=(S=S+Math.imul(q,qt)|0)+Math.imul(Z,mt)|0))<<13)|0;P=((_=_+Math.imul(Z,qt)|0)+(S>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,w=Math.imul(ue,Oe),S=(S=Math.imul(ue,Xe))+Math.imul(ye,Oe)|0,_=Math.imul(ye,Xe),w=w+Math.imul(de,ze)|0,S=(S=S+Math.imul(de,bt)|0)+Math.imul(ne,ze)|0,_=_+Math.imul(ne,bt)|0,w=w+Math.imul(te,nt)|0,S=(S=S+Math.imul(te,Mt)|0)+Math.imul(re,nt)|0,_=_+Math.imul(re,Mt)|0,w=w+Math.imul(G,it)|0,S=(S=S+Math.imul(G,Pt)|0)+Math.imul(ee,it)|0,_=_+Math.imul(ee,Pt)|0,w=w+Math.imul(X,mt)|0,S=(S=S+Math.imul(X,qt)|0)+Math.imul(L,mt)|0,_=_+Math.imul(L,qt)|0;var Ar=(P+(w=w+Math.imul(q,rt)|0)|0)+((8191&(S=(S=S+Math.imul(q,Zt)|0)+Math.imul(Z,rt)|0))<<13)|0;P=((_=_+Math.imul(Z,Zt)|0)+(S>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,w=Math.imul(we,Oe),S=(S=Math.imul(we,Xe))+Math.imul(Se,Oe)|0,_=Math.imul(Se,Xe),w=w+Math.imul(ue,ze)|0,S=(S=S+Math.imul(ue,bt)|0)+Math.imul(ye,ze)|0,_=_+Math.imul(ye,bt)|0,w=w+Math.imul(de,nt)|0,S=(S=S+Math.imul(de,Mt)|0)+Math.imul(ne,nt)|0,_=_+Math.imul(ne,Mt)|0,w=w+Math.imul(te,it)|0,S=(S=S+Math.imul(te,Pt)|0)+Math.imul(re,it)|0,_=_+Math.imul(re,Pt)|0,w=w+Math.imul(G,mt)|0,S=(S=S+Math.imul(G,qt)|0)+Math.imul(ee,mt)|0,_=_+Math.imul(ee,qt)|0,w=w+Math.imul(X,rt)|0,S=(S=S+Math.imul(X,Zt)|0)+Math.imul(L,rt)|0,_=_+Math.imul(L,Zt)|0;var Hr=(P+(w=w+Math.imul(q,It)|0)|0)+((8191&(S=(S=S+Math.imul(q,xe)|0)+Math.imul(Z,It)|0))<<13)|0;P=((_=_+Math.imul(Z,xe)|0)+(S>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,w=Math.imul(Le,Oe),S=(S=Math.imul(Le,Xe))+Math.imul(De,Oe)|0,_=Math.imul(De,Xe),w=w+Math.imul(we,ze)|0,S=(S=S+Math.imul(we,bt)|0)+Math.imul(Se,ze)|0,_=_+Math.imul(Se,bt)|0,w=w+Math.imul(ue,nt)|0,S=(S=S+Math.imul(ue,Mt)|0)+Math.imul(ye,nt)|0,_=_+Math.imul(ye,Mt)|0,w=w+Math.imul(de,it)|0,S=(S=S+Math.imul(de,Pt)|0)+Math.imul(ne,it)|0,_=_+Math.imul(ne,Pt)|0,w=w+Math.imul(te,mt)|0,S=(S=S+Math.imul(te,qt)|0)+Math.imul(re,mt)|0,_=_+Math.imul(re,qt)|0,w=w+Math.imul(G,rt)|0,S=(S=S+Math.imul(G,Zt)|0)+Math.imul(ee,rt)|0,_=_+Math.imul(ee,Zt)|0,w=w+Math.imul(X,It)|0,S=(S=S+Math.imul(X,xe)|0)+Math.imul(L,It)|0,_=_+Math.imul(L,xe)|0;var me=(P+(w=w+Math.imul(q,Re)|0)|0)+((8191&(S=(S=S+Math.imul(q,tt)|0)+Math.imul(Z,Re)|0))<<13)|0;P=((_=_+Math.imul(Z,tt)|0)+(S>>>13)|0)+(me>>>26)|0,me&=67108863,w=Math.imul(Ve,Oe),S=(S=Math.imul(Ve,Xe))+Math.imul(qe,Oe)|0,_=Math.imul(qe,Xe),w=w+Math.imul(Le,ze)|0,S=(S=S+Math.imul(Le,bt)|0)+Math.imul(De,ze)|0,_=_+Math.imul(De,bt)|0,w=w+Math.imul(we,nt)|0,S=(S=S+Math.imul(we,Mt)|0)+Math.imul(Se,nt)|0,_=_+Math.imul(Se,Mt)|0,w=w+Math.imul(ue,it)|0,S=(S=S+Math.imul(ue,Pt)|0)+Math.imul(ye,it)|0,_=_+Math.imul(ye,Pt)|0,w=w+Math.imul(de,mt)|0,S=(S=S+Math.imul(de,qt)|0)+Math.imul(ne,mt)|0,_=_+Math.imul(ne,qt)|0,w=w+Math.imul(te,rt)|0,S=(S=S+Math.imul(te,Zt)|0)+Math.imul(re,rt)|0,_=_+Math.imul(re,Zt)|0,w=w+Math.imul(G,It)|0,S=(S=S+Math.imul(G,xe)|0)+Math.imul(ee,It)|0,_=_+Math.imul(ee,xe)|0,w=w+Math.imul(X,Re)|0,S=(S=S+Math.imul(X,tt)|0)+Math.imul(L,Re)|0,_=_+Math.imul(L,tt)|0;var Ee=(P+(w=w+Math.imul(q,ot)|0)|0)+((8191&(S=(S=S+Math.imul(q,At)|0)+Math.imul(Z,ot)|0))<<13)|0;P=((_=_+Math.imul(Z,At)|0)+(S>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,w=Math.imul(We,Oe),S=(S=Math.imul(We,Xe))+Math.imul(dt,Oe)|0,_=Math.imul(dt,Xe),w=w+Math.imul(Ve,ze)|0,S=(S=S+Math.imul(Ve,bt)|0)+Math.imul(qe,ze)|0,_=_+Math.imul(qe,bt)|0,w=w+Math.imul(Le,nt)|0,S=(S=S+Math.imul(Le,Mt)|0)+Math.imul(De,nt)|0,_=_+Math.imul(De,Mt)|0,w=w+Math.imul(we,it)|0,S=(S=S+Math.imul(we,Pt)|0)+Math.imul(Se,it)|0,_=_+Math.imul(Se,Pt)|0,w=w+Math.imul(ue,mt)|0,S=(S=S+Math.imul(ue,qt)|0)+Math.imul(ye,mt)|0,_=_+Math.imul(ye,qt)|0,w=w+Math.imul(de,rt)|0,S=(S=S+Math.imul(de,Zt)|0)+Math.imul(ne,rt)|0,_=_+Math.imul(ne,Zt)|0,w=w+Math.imul(te,It)|0,S=(S=S+Math.imul(te,xe)|0)+Math.imul(re,It)|0,_=_+Math.imul(re,xe)|0,w=w+Math.imul(G,Re)|0,S=(S=S+Math.imul(G,tt)|0)+Math.imul(ee,Re)|0,_=_+Math.imul(ee,tt)|0,w=w+Math.imul(X,ot)|0,S=(S=S+Math.imul(X,At)|0)+Math.imul(L,ot)|0,_=_+Math.imul(L,At)|0;var $e=(P+(w=w+Math.imul(q,gt)|0)|0)+((8191&(S=(S=S+Math.imul(q,Rt)|0)+Math.imul(Z,gt)|0))<<13)|0;P=((_=_+Math.imul(Z,Rt)|0)+(S>>>13)|0)+($e>>>26)|0,$e&=67108863,w=Math.imul(We,ze),S=(S=Math.imul(We,bt))+Math.imul(dt,ze)|0,_=Math.imul(dt,bt),w=w+Math.imul(Ve,nt)|0,S=(S=S+Math.imul(Ve,Mt)|0)+Math.imul(qe,nt)|0,_=_+Math.imul(qe,Mt)|0,w=w+Math.imul(Le,it)|0,S=(S=S+Math.imul(Le,Pt)|0)+Math.imul(De,it)|0,_=_+Math.imul(De,Pt)|0,w=w+Math.imul(we,mt)|0,S=(S=S+Math.imul(we,qt)|0)+Math.imul(Se,mt)|0,_=_+Math.imul(Se,qt)|0,w=w+Math.imul(ue,rt)|0,S=(S=S+Math.imul(ue,Zt)|0)+Math.imul(ye,rt)|0,_=_+Math.imul(ye,Zt)|0,w=w+Math.imul(de,It)|0,S=(S=S+Math.imul(de,xe)|0)+Math.imul(ne,It)|0,_=_+Math.imul(ne,xe)|0,w=w+Math.imul(te,Re)|0,S=(S=S+Math.imul(te,tt)|0)+Math.imul(re,Re)|0,_=_+Math.imul(re,tt)|0,w=w+Math.imul(G,ot)|0,S=(S=S+Math.imul(G,At)|0)+Math.imul(ee,ot)|0,_=_+Math.imul(ee,At)|0;var Qe=(P+(w=w+Math.imul(X,gt)|0)|0)+((8191&(S=(S=S+Math.imul(X,Rt)|0)+Math.imul(L,gt)|0))<<13)|0;P=((_=_+Math.imul(L,Rt)|0)+(S>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,w=Math.imul(We,nt),S=(S=Math.imul(We,Mt))+Math.imul(dt,nt)|0,_=Math.imul(dt,Mt),w=w+Math.imul(Ve,it)|0,S=(S=S+Math.imul(Ve,Pt)|0)+Math.imul(qe,it)|0,_=_+Math.imul(qe,Pt)|0,w=w+Math.imul(Le,mt)|0,S=(S=S+Math.imul(Le,qt)|0)+Math.imul(De,mt)|0,_=_+Math.imul(De,qt)|0,w=w+Math.imul(we,rt)|0,S=(S=S+Math.imul(we,Zt)|0)+Math.imul(Se,rt)|0,_=_+Math.imul(Se,Zt)|0,w=w+Math.imul(ue,It)|0,S=(S=S+Math.imul(ue,xe)|0)+Math.imul(ye,It)|0,_=_+Math.imul(ye,xe)|0,w=w+Math.imul(de,Re)|0,S=(S=S+Math.imul(de,tt)|0)+Math.imul(ne,Re)|0,_=_+Math.imul(ne,tt)|0,w=w+Math.imul(te,ot)|0,S=(S=S+Math.imul(te,At)|0)+Math.imul(re,ot)|0,_=_+Math.imul(re,At)|0;var pt=(P+(w=w+Math.imul(G,gt)|0)|0)+((8191&(S=(S=S+Math.imul(G,Rt)|0)+Math.imul(ee,gt)|0))<<13)|0;P=((_=_+Math.imul(ee,Rt)|0)+(S>>>13)|0)+(pt>>>26)|0,pt&=67108863,w=Math.imul(We,it),S=(S=Math.imul(We,Pt))+Math.imul(dt,it)|0,_=Math.imul(dt,Pt),w=w+Math.imul(Ve,mt)|0,S=(S=S+Math.imul(Ve,qt)|0)+Math.imul(qe,mt)|0,_=_+Math.imul(qe,qt)|0,w=w+Math.imul(Le,rt)|0,S=(S=S+Math.imul(Le,Zt)|0)+Math.imul(De,rt)|0,_=_+Math.imul(De,Zt)|0,w=w+Math.imul(we,It)|0,S=(S=S+Math.imul(we,xe)|0)+Math.imul(Se,It)|0,_=_+Math.imul(Se,xe)|0,w=w+Math.imul(ue,Re)|0,S=(S=S+Math.imul(ue,tt)|0)+Math.imul(ye,Re)|0,_=_+Math.imul(ye,tt)|0,w=w+Math.imul(de,ot)|0,S=(S=S+Math.imul(de,At)|0)+Math.imul(ne,ot)|0,_=_+Math.imul(ne,At)|0;var st=(P+(w=w+Math.imul(te,gt)|0)|0)+((8191&(S=(S=S+Math.imul(te,Rt)|0)+Math.imul(re,gt)|0))<<13)|0;P=((_=_+Math.imul(re,Rt)|0)+(S>>>13)|0)+(st>>>26)|0,st&=67108863,w=Math.imul(We,mt),S=(S=Math.imul(We,qt))+Math.imul(dt,mt)|0,_=Math.imul(dt,qt),w=w+Math.imul(Ve,rt)|0,S=(S=S+Math.imul(Ve,Zt)|0)+Math.imul(qe,rt)|0,_=_+Math.imul(qe,Zt)|0,w=w+Math.imul(Le,It)|0,S=(S=S+Math.imul(Le,xe)|0)+Math.imul(De,It)|0,_=_+Math.imul(De,xe)|0,w=w+Math.imul(we,Re)|0,S=(S=S+Math.imul(we,tt)|0)+Math.imul(Se,Re)|0,_=_+Math.imul(Se,tt)|0,w=w+Math.imul(ue,ot)|0,S=(S=S+Math.imul(ue,At)|0)+Math.imul(ye,ot)|0,_=_+Math.imul(ye,At)|0;var lt=(P+(w=w+Math.imul(de,gt)|0)|0)+((8191&(S=(S=S+Math.imul(de,Rt)|0)+Math.imul(ne,gt)|0))<<13)|0;P=((_=_+Math.imul(ne,Rt)|0)+(S>>>13)|0)+(lt>>>26)|0,lt&=67108863,w=Math.imul(We,rt),S=(S=Math.imul(We,Zt))+Math.imul(dt,rt)|0,_=Math.imul(dt,Zt),w=w+Math.imul(Ve,It)|0,S=(S=S+Math.imul(Ve,xe)|0)+Math.imul(qe,It)|0,_=_+Math.imul(qe,xe)|0,w=w+Math.imul(Le,Re)|0,S=(S=S+Math.imul(Le,tt)|0)+Math.imul(De,Re)|0,_=_+Math.imul(De,tt)|0,w=w+Math.imul(we,ot)|0,S=(S=S+Math.imul(we,At)|0)+Math.imul(Se,ot)|0,_=_+Math.imul(Se,At)|0;var Jt=(P+(w=w+Math.imul(ue,gt)|0)|0)+((8191&(S=(S=S+Math.imul(ue,Rt)|0)+Math.imul(ye,gt)|0))<<13)|0;P=((_=_+Math.imul(ye,Rt)|0)+(S>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,w=Math.imul(We,It),S=(S=Math.imul(We,xe))+Math.imul(dt,It)|0,_=Math.imul(dt,xe),w=w+Math.imul(Ve,Re)|0,S=(S=S+Math.imul(Ve,tt)|0)+Math.imul(qe,Re)|0,_=_+Math.imul(qe,tt)|0,w=w+Math.imul(Le,ot)|0,S=(S=S+Math.imul(Le,At)|0)+Math.imul(De,ot)|0,_=_+Math.imul(De,At)|0;var zt=(P+(w=w+Math.imul(we,gt)|0)|0)+((8191&(S=(S=S+Math.imul(we,Rt)|0)+Math.imul(Se,gt)|0))<<13)|0;P=((_=_+Math.imul(Se,Rt)|0)+(S>>>13)|0)+(zt>>>26)|0,zt&=67108863,w=Math.imul(We,Re),S=(S=Math.imul(We,tt))+Math.imul(dt,Re)|0,_=Math.imul(dt,tt),w=w+Math.imul(Ve,ot)|0,S=(S=S+Math.imul(Ve,At)|0)+Math.imul(qe,ot)|0,_=_+Math.imul(qe,At)|0;var Ht=(P+(w=w+Math.imul(Le,gt)|0)|0)+((8191&(S=(S=S+Math.imul(Le,Rt)|0)+Math.imul(De,gt)|0))<<13)|0;P=((_=_+Math.imul(De,Rt)|0)+(S>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,w=Math.imul(We,ot),S=(S=Math.imul(We,At))+Math.imul(dt,ot)|0,_=Math.imul(dt,At);var Lt=(P+(w=w+Math.imul(Ve,gt)|0)|0)+((8191&(S=(S=S+Math.imul(Ve,Rt)|0)+Math.imul(qe,gt)|0))<<13)|0;P=((_=_+Math.imul(qe,Rt)|0)+(S>>>13)|0)+(Lt>>>26)|0,Lt&=67108863;var er=(P+(w=Math.imul(We,gt))|0)+((8191&(S=(S=Math.imul(We,Rt))+Math.imul(dt,gt)|0))<<13)|0;return P=((_=Math.imul(dt,Rt))+(S>>>13)|0)+(er>>>26)|0,er&=67108863,j[0]=Nt,j[1]=Dt,j[2]=mr,j[3]=fr,j[4]=Cr,j[5]=Ar,j[6]=Hr,j[7]=me,j[8]=Ee,j[9]=$e,j[10]=Qe,j[11]=pt,j[12]=st,j[13]=lt,j[14]=Jt,j[15]=zt,j[16]=Ht,j[17]=Lt,j[18]=er,P!==0&&(j[19]=P,C.length++),C};function x(N,E,C){return new A().mulp(N,E,C)}function A(N,E){this.x=N,this.y=E}Math.imul||(b=v),n.prototype.mulTo=function(N,E){var C=this.length+N.length;return this.length===10&&N.length===10?b(this,N,E):C<63?v(this,N,E):C<1024?(function(w,S,_){_.negative=S.negative^w.negative,_.length=w.length+S.length;for(var k=0,T=0,j=0;j<_.length-1;j++){var P=T;T=0;for(var U=67108863&k,q=Math.min(j,S.length-1),Z=Math.max(0,j-w.length+1);Z<=q;Z++){var B=j-Z,X=(0|w.words[B])*(0|S.words[Z]),L=67108863&X;U=67108863&(L=L+U|0),T+=(P=(P=P+(X/67108864|0)|0)+(L>>>26)|0)>>>26,P&=67108863}_.words[j]=U,k=P,P=T}return k!==0?_.words[j]=k:_.length--,_.strip()})(this,N,E):x(this,N,E)},A.prototype.makeRBT=function(N){for(var E=new Array(N),C=n.prototype._countBits(N)-1,w=0;w<N;w++)E[w]=this.revBin(w,C,N);return E},A.prototype.revBin=function(N,E,C){if(N===0||N===C-1)return N;for(var w=0,S=0;S<E;S++)w|=(1&N)<<E-S-1,N>>=1;return w},A.prototype.permute=function(N,E,C,w,S,_){for(var k=0;k<_;k++)w[k]=E[N[k]],S[k]=C[N[k]]},A.prototype.transform=function(N,E,C,w,S,_){this.permute(_,N,E,C,w,S);for(var k=1;k<S;k<<=1)for(var T=k<<1,j=Math.cos(2*Math.PI/T),P=Math.sin(2*Math.PI/T),U=0;U<S;U+=T)for(var q=j,Z=P,B=0;B<k;B++){var X=C[U+B],L=w[U+B],I=C[U+B+k],G=w[U+B+k],ee=q*I-Z*G;G=q*G+Z*I,I=ee,C[U+B]=X+I,w[U+B]=L+G,C[U+B+k]=X-I,w[U+B+k]=L-G,B!==T&&(ee=j*q-P*Z,Z=j*Z+P*q,q=ee)}},A.prototype.guessLen13b=function(N,E){var C=1|Math.max(E,N),w=1&C,S=0;for(C=C/2|0;C;C>>>=1)S++;return 1<<S+1+w},A.prototype.conjugate=function(N,E,C){if(!(C<=1))for(var w=0;w<C/2;w++){var S=N[w];N[w]=N[C-w-1],N[C-w-1]=S,S=E[w],E[w]=-E[C-w-1],E[C-w-1]=-S}},A.prototype.normalize13b=function(N,E){for(var C=0,w=0;w<E/2;w++){var S=8192*Math.round(N[2*w+1]/E)+Math.round(N[2*w]/E)+C;N[w]=67108863&S,C=S<67108864?0:S/67108864|0}return N},A.prototype.convert13b=function(N,E,C,w){for(var S=0,_=0;_<E;_++)S+=0|N[_],C[2*_]=8191&S,S>>>=13,C[2*_+1]=8191&S,S>>>=13;for(_=2*E;_<w;++_)C[_]=0;l(S===0),l((-8192&S)==0)},A.prototype.stub=function(N){for(var E=new Array(N),C=0;C<N;C++)E[C]=0;return E},A.prototype.mulp=function(N,E,C){var w=2*this.guessLen13b(N.length,E.length),S=this.makeRBT(w),_=this.stub(w),k=new Array(w),T=new Array(w),j=new Array(w),P=new Array(w),U=new Array(w),q=new Array(w),Z=C.words;Z.length=w,this.convert13b(N.words,N.length,k,w),this.convert13b(E.words,E.length,P,w),this.transform(k,_,T,j,w,S),this.transform(P,_,U,q,w,S);for(var B=0;B<w;B++){var X=T[B]*U[B]-j[B]*q[B];j[B]=T[B]*q[B]+j[B]*U[B],T[B]=X}return this.conjugate(T,j,w),this.transform(T,j,Z,_,w,S),this.conjugate(Z,_,w),this.normalize13b(Z,w),C.negative=N.negative^E.negative,C.length=N.length+E.length,C.strip()},n.prototype.mul=function(N){var E=new n(null);return E.words=new Array(this.length+N.length),this.mulTo(N,E)},n.prototype.mulf=function(N){var E=new n(null);return E.words=new Array(this.length+N.length),x(this,N,E)},n.prototype.imul=function(N){return this.clone().mulTo(N,this)},n.prototype.imuln=function(N){l(typeof N=="number"),l(N<67108864);for(var E=0,C=0;C<this.length;C++){var w=(0|this.words[C])*N,S=(67108863&w)+(67108863&E);E>>=26,E+=w/67108864|0,E+=S>>>26,this.words[C]=67108863&S}return E!==0&&(this.words[C]=E,this.length++),this},n.prototype.muln=function(N){return this.clone().imuln(N)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(N){var E=(function(_){for(var k=new Array(_.bitLength()),T=0;T<k.length;T++){var j=T/26|0,P=T%26;k[T]=(_.words[j]&1<<P)>>>P}return k})(N);if(E.length===0)return new n(1);for(var C=this,w=0;w<E.length&&E[w]===0;w++,C=C.sqr());if(++w<E.length)for(var S=C.sqr();w<E.length;w++,S=S.sqr())E[w]!==0&&(C=C.mul(S));return C},n.prototype.iushln=function(N){l(typeof N=="number"&&N>=0);var E,C=N%26,w=(N-C)/26,S=67108863>>>26-C<<26-C;if(C!==0){var _=0;for(E=0;E<this.length;E++){var k=this.words[E]&S,T=(0|this.words[E])-k<<C;this.words[E]=T|_,_=k>>>26-C}_&&(this.words[E]=_,this.length++)}if(w!==0){for(E=this.length-1;E>=0;E--)this.words[E+w]=this.words[E];for(E=0;E<w;E++)this.words[E]=0;this.length+=w}return this.strip()},n.prototype.ishln=function(N){return l(this.negative===0),this.iushln(N)},n.prototype.iushrn=function(N,E,C){var w;l(typeof N=="number"&&N>=0),w=E?(E-E%26)/26:0;var S=N%26,_=Math.min((N-S)/26,this.length),k=67108863^67108863>>>S<<S,T=C;if(w-=_,w=Math.max(0,w),T){for(var j=0;j<_;j++)T.words[j]=this.words[j];T.length=_}if(_!==0)if(this.length>_)for(this.length-=_,j=0;j<this.length;j++)this.words[j]=this.words[j+_];else this.words[0]=0,this.length=1;var P=0;for(j=this.length-1;j>=0&&(P!==0||j>=w);j--){var U=0|this.words[j];this.words[j]=P<<26-S|U>>>S,P=U&k}return T&&P!==0&&(T.words[T.length++]=P),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(N,E,C){return l(this.negative===0),this.iushrn(N,E,C)},n.prototype.shln=function(N){return this.clone().ishln(N)},n.prototype.ushln=function(N){return this.clone().iushln(N)},n.prototype.shrn=function(N){return this.clone().ishrn(N)},n.prototype.ushrn=function(N){return this.clone().iushrn(N)},n.prototype.testn=function(N){l(typeof N=="number"&&N>=0);var E=N%26,C=(N-E)/26,w=1<<E;return!(this.length<=C)&&!!(this.words[C]&w)},n.prototype.imaskn=function(N){l(typeof N=="number"&&N>=0);var E=N%26,C=(N-E)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=C)return this;if(E!==0&&C++,this.length=Math.min(C,this.length),E!==0){var w=67108863^67108863>>>E<<E;this.words[this.length-1]&=w}return this.strip()},n.prototype.maskn=function(N){return this.clone().imaskn(N)},n.prototype.iaddn=function(N){return l(typeof N=="number"),l(N<67108864),N<0?this.isubn(-N):this.negative!==0?this.length===1&&(0|this.words[0])<N?(this.words[0]=N-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(N),this.negative=1,this):this._iaddn(N)},n.prototype._iaddn=function(N){this.words[0]+=N;for(var E=0;E<this.length&&this.words[E]>=67108864;E++)this.words[E]-=67108864,E===this.length-1?this.words[E+1]=1:this.words[E+1]++;return this.length=Math.max(this.length,E+1),this},n.prototype.isubn=function(N){if(l(typeof N=="number"),l(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var E=0;E<this.length&&this.words[E]<0;E++)this.words[E]+=67108864,this.words[E+1]-=1;return this.strip()},n.prototype.addn=function(N){return this.clone().iaddn(N)},n.prototype.subn=function(N){return this.clone().isubn(N)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(N,E,C){var w,S,_=N.length+C;this._expand(_);var k=0;for(w=0;w<N.length;w++){S=(0|this.words[w+C])+k;var T=(0|N.words[w])*E;k=((S-=67108863&T)>>26)-(T/67108864|0),this.words[w+C]=67108863&S}for(;w<this.length-C;w++)k=(S=(0|this.words[w+C])+k)>>26,this.words[w+C]=67108863&S;if(k===0)return this.strip();for(l(k===-1),k=0,w=0;w<this.length;w++)k=(S=-(0|this.words[w])+k)>>26,this.words[w]=67108863&S;return this.negative=1,this.strip()},n.prototype._wordDiv=function(N,E){var C=(this.length,N.length),w=this.clone(),S=N,_=0|S.words[S.length-1];(C=26-this._countBits(_))!==0&&(S=S.ushln(C),w.iushln(C),_=0|S.words[S.length-1]);var k,T=w.length-S.length;if(E!=="mod"){(k=new n(null)).length=T+1,k.words=new Array(k.length);for(var j=0;j<k.length;j++)k.words[j]=0}var P=w.clone()._ishlnsubmul(S,1,T);P.negative===0&&(w=P,k&&(k.words[T]=1));for(var U=T-1;U>=0;U--){var q=67108864*(0|w.words[S.length+U])+(0|w.words[S.length+U-1]);for(q=Math.min(q/_|0,67108863),w._ishlnsubmul(S,q,U);w.negative!==0;)q--,w.negative=0,w._ishlnsubmul(S,1,U),w.isZero()||(w.negative^=1);k&&(k.words[U]=q)}return k&&k.strip(),w.strip(),E!=="div"&&C!==0&&w.iushrn(C),{div:k||null,mod:w}},n.prototype.divmod=function(N,E,C){return l(!N.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:this.negative!==0&&N.negative===0?(_=this.neg().divmod(N,E),E!=="mod"&&(w=_.div.neg()),E!=="div"&&(S=_.mod.neg(),C&&S.negative!==0&&S.iadd(N)),{div:w,mod:S}):this.negative===0&&N.negative!==0?(_=this.divmod(N.neg(),E),E!=="mod"&&(w=_.div.neg()),{div:w,mod:_.mod}):(this.negative&N.negative)!=0?(_=this.neg().divmod(N.neg(),E),E!=="div"&&(S=_.mod.neg(),C&&S.negative!==0&&S.isub(N)),{div:_.div,mod:S}):N.length>this.length||this.cmp(N)<0?{div:new n(0),mod:this}:N.length===1?E==="div"?{div:this.divn(N.words[0]),mod:null}:E==="mod"?{div:null,mod:new n(this.modn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new n(this.modn(N.words[0]))}:this._wordDiv(N,E);var w,S,_},n.prototype.div=function(N){return this.divmod(N,"div",!1).div},n.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},n.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},n.prototype.divRound=function(N){var E=this.divmod(N);if(E.mod.isZero())return E.div;var C=E.div.negative!==0?E.mod.isub(N):E.mod,w=N.ushrn(1),S=N.andln(1),_=C.cmp(w);return _<0||S===1&&_===0?E.div:E.div.negative!==0?E.div.isubn(1):E.div.iaddn(1)},n.prototype.modn=function(N){l(N<=67108863);for(var E=(1<<26)%N,C=0,w=this.length-1;w>=0;w--)C=(E*C+(0|this.words[w]))%N;return C},n.prototype.idivn=function(N){l(N<=67108863);for(var E=0,C=this.length-1;C>=0;C--){var w=(0|this.words[C])+67108864*E;this.words[C]=w/N|0,E=w%N}return this.strip()},n.prototype.divn=function(N){return this.clone().idivn(N)},n.prototype.egcd=function(N){l(N.negative===0),l(!N.isZero());var E=this,C=N.clone();E=E.negative!==0?E.umod(N):E.clone();for(var w=new n(1),S=new n(0),_=new n(0),k=new n(1),T=0;E.isEven()&&C.isEven();)E.iushrn(1),C.iushrn(1),++T;for(var j=C.clone(),P=E.clone();!E.isZero();){for(var U=0,q=1;(E.words[0]&q)==0&&U<26;++U,q<<=1);if(U>0)for(E.iushrn(U);U-- >0;)(w.isOdd()||S.isOdd())&&(w.iadd(j),S.isub(P)),w.iushrn(1),S.iushrn(1);for(var Z=0,B=1;(C.words[0]&B)==0&&Z<26;++Z,B<<=1);if(Z>0)for(C.iushrn(Z);Z-- >0;)(_.isOdd()||k.isOdd())&&(_.iadd(j),k.isub(P)),_.iushrn(1),k.iushrn(1);E.cmp(C)>=0?(E.isub(C),w.isub(_),S.isub(k)):(C.isub(E),_.isub(w),k.isub(S))}return{a:_,b:k,gcd:C.iushln(T)}},n.prototype._invmp=function(N){l(N.negative===0),l(!N.isZero());var E=this,C=N.clone();E=E.negative!==0?E.umod(N):E.clone();for(var w,S=new n(1),_=new n(0),k=C.clone();E.cmpn(1)>0&&C.cmpn(1)>0;){for(var T=0,j=1;(E.words[0]&j)==0&&T<26;++T,j<<=1);if(T>0)for(E.iushrn(T);T-- >0;)S.isOdd()&&S.iadd(k),S.iushrn(1);for(var P=0,U=1;(C.words[0]&U)==0&&P<26;++P,U<<=1);if(P>0)for(C.iushrn(P);P-- >0;)_.isOdd()&&_.iadd(k),_.iushrn(1);E.cmp(C)>=0?(E.isub(C),S.isub(_)):(C.isub(E),_.isub(S))}return(w=E.cmpn(1)===0?S:_).cmpn(0)<0&&w.iadd(N),w},n.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var E=this.clone(),C=N.clone();E.negative=0,C.negative=0;for(var w=0;E.isEven()&&C.isEven();w++)E.iushrn(1),C.iushrn(1);for(;;){for(;E.isEven();)E.iushrn(1);for(;C.isEven();)C.iushrn(1);var S=E.cmp(C);if(S<0){var _=E;E=C,C=_}else if(S===0||C.cmpn(1)===0)break;E.isub(C)}return C.iushln(w)},n.prototype.invm=function(N){return this.egcd(N).a.umod(N)},n.prototype.isEven=function(){return(1&this.words[0])==0},n.prototype.isOdd=function(){return(1&this.words[0])==1},n.prototype.andln=function(N){return this.words[0]&N},n.prototype.bincn=function(N){l(typeof N=="number");var E=N%26,C=(N-E)/26,w=1<<E;if(this.length<=C)return this._expand(C+1),this.words[C]|=w,this;for(var S=w,_=C;S!==0&&_<this.length;_++){var k=0|this.words[_];S=(k+=S)>>>26,k&=67108863,this.words[_]=k}return S!==0&&(this.words[_]=S,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(N){var E,C=N<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;if(this.strip(),this.length>1)E=1;else{C&&(N=-N),l(N<=67108863,"Number is too big");var w=0|this.words[0];E=w===N?0:w<N?-1:1}return this.negative!==0?0|-E:E},n.prototype.cmp=function(N){if(this.negative!==0&&N.negative===0)return-1;if(this.negative===0&&N.negative!==0)return 1;var E=this.ucmp(N);return this.negative!==0?0|-E:E},n.prototype.ucmp=function(N){if(this.length>N.length)return 1;if(this.length<N.length)return-1;for(var E=0,C=this.length-1;C>=0;C--){var w=0|this.words[C],S=0|N.words[C];if(w!==S){w<S?E=-1:w>S&&(E=1);break}}return E},n.prototype.gtn=function(N){return this.cmpn(N)===1},n.prototype.gt=function(N){return this.cmp(N)===1},n.prototype.gten=function(N){return this.cmpn(N)>=0},n.prototype.gte=function(N){return this.cmp(N)>=0},n.prototype.ltn=function(N){return this.cmpn(N)===-1},n.prototype.lt=function(N){return this.cmp(N)===-1},n.prototype.lten=function(N){return this.cmpn(N)<=0},n.prototype.lte=function(N){return this.cmp(N)<=0},n.prototype.eqn=function(N){return this.cmpn(N)===0},n.prototype.eq=function(N){return this.cmp(N)===0},n.red=function(N){return new z(N)},n.prototype.toRed=function(N){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},n.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(N){return this.red=N,this},n.prototype.forceRed=function(N){return l(!this.red,"Already a number in reduction context"),this._forceRed(N)},n.prototype.redAdd=function(N){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},n.prototype.redIAdd=function(N){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},n.prototype.redSub=function(N){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},n.prototype.redISub=function(N){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},n.prototype.redShl=function(N){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},n.prototype.redMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},n.prototype.redIMul=function(N){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},n.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(N){return l(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var M={k256:null,p224:null,p192:null,p25519:null};function V(N,E){this.name=N,this.p=new n(E,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function W(){V.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function R(){V.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function F(){V.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function $(){V.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function z(N){if(typeof N=="string"){var E=n._prime(N);this.m=E.p,this.prime=E}else l(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}function D(N){z.call(this,N),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V.prototype._tmp=function(){var N=new n(null);return N.words=new Array(Math.ceil(this.n/13)),N},V.prototype.ireduce=function(N){var E,C=N;do this.split(C,this.tmp),E=(C=(C=this.imulK(C)).iadd(this.tmp)).bitLength();while(E>this.n);var w=E<this.n?-1:C.ucmp(this.p);return w===0?(C.words[0]=0,C.length=1):w>0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},V.prototype.split=function(N,E){N.iushrn(this.n,0,E)},V.prototype.imulK=function(N){return N.imul(this.k)},a(W,V),W.prototype.split=function(N,E){for(var C=Math.min(N.length,9),w=0;w<C;w++)E.words[w]=N.words[w];if(E.length=C,N.length<=9)return N.words[0]=0,void(N.length=1);var S=N.words[9];for(E.words[E.length++]=4194303&S,w=10;w<N.length;w++){var _=0|N.words[w];N.words[w-10]=(4194303&_)<<4|S>>>22,S=_}S>>>=22,N.words[w-10]=S,S===0&&N.length>10?N.length-=10:N.length-=9},W.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var E=0,C=0;C<N.length;C++){var w=0|N.words[C];E+=977*w,N.words[C]=67108863&E,E=64*w+(E/67108864|0)}return N.words[N.length-1]===0&&(N.length--,N.words[N.length-1]===0&&N.length--),N},a(R,V),a(F,V),a($,V),$.prototype.imulK=function(N){for(var E=0,C=0;C<N.length;C++){var w=19*(0|N.words[C])+E,S=67108863&w;w>>>=26,N.words[C]=S,E=w}return E!==0&&(N.words[N.length++]=E),N},n._prime=function(N){if(M[N])return M[N];var E;if(N==="k256")E=new W;else if(N==="p224")E=new R;else if(N==="p192")E=new F;else{if(N!=="p25519")throw new Error("Unknown prime "+N);E=new $}return M[N]=E,E},z.prototype._verify1=function(N){l(N.negative===0,"red works only with positives"),l(N.red,"red works only with red numbers")},z.prototype._verify2=function(N,E){l((N.negative|E.negative)==0,"red works only with positives"),l(N.red&&N.red===E.red,"red works only with red numbers")},z.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):N.umod(this.m)._forceRed(this)},z.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},z.prototype.add=function(N,E){this._verify2(N,E);var C=N.add(E);return C.cmp(this.m)>=0&&C.isub(this.m),C._forceRed(this)},z.prototype.iadd=function(N,E){this._verify2(N,E);var C=N.iadd(E);return C.cmp(this.m)>=0&&C.isub(this.m),C},z.prototype.sub=function(N,E){this._verify2(N,E);var C=N.sub(E);return C.cmpn(0)<0&&C.iadd(this.m),C._forceRed(this)},z.prototype.isub=function(N,E){this._verify2(N,E);var C=N.isub(E);return C.cmpn(0)<0&&C.iadd(this.m),C},z.prototype.shl=function(N,E){return this._verify1(N),this.imod(N.ushln(E))},z.prototype.imul=function(N,E){return this._verify2(N,E),this.imod(N.imul(E))},z.prototype.mul=function(N,E){return this._verify2(N,E),this.imod(N.mul(E))},z.prototype.isqr=function(N){return this.imul(N,N.clone())},z.prototype.sqr=function(N){return this.mul(N,N)},z.prototype.sqrt=function(N){if(N.isZero())return N.clone();var E=this.m.andln(3);if(l(E%2==1),E===3){var C=this.m.add(new n(1)).iushrn(2);return this.pow(N,C)}for(var w=this.m.subn(1),S=0;!w.isZero()&&w.andln(1)===0;)S++,w.iushrn(1);l(!w.isZero());var _=new n(1).toRed(this),k=_.redNeg(),T=this.m.subn(1).iushrn(1),j=this.m.bitLength();for(j=new n(2*j*j).toRed(this);this.pow(j,T).cmp(k)!==0;)j.redIAdd(k);for(var P=this.pow(j,w),U=this.pow(N,w.addn(1).iushrn(1)),q=this.pow(N,w),Z=S;q.cmp(_)!==0;){for(var B=q,X=0;B.cmp(_)!==0;X++)B=B.redSqr();l(X<Z);var L=this.pow(P,new n(1).iushln(Z-X-1));U=U.redMul(L),P=L.redSqr(),q=q.redMul(P),Z=X}return U},z.prototype.invm=function(N){var E=N._invmp(this.m);return E.negative!==0?(E.negative=0,this.imod(E).redNeg()):this.imod(E)},z.prototype.pow=function(N,E){if(E.isZero())return new n(1).toRed(this);if(E.cmpn(1)===0)return N.clone();var C=new Array(16);C[0]=new n(1).toRed(this),C[1]=N;for(var w=2;w<C.length;w++)C[w]=this.mul(C[w-1],N);var S=C[0],_=0,k=0,T=E.bitLength()%26;for(T===0&&(T=26),w=E.length-1;w>=0;w--){for(var j=E.words[w],P=T-1;P>=0;P--){var U=j>>P&1;S!==C[0]&&(S=this.sqr(S)),U!==0||_!==0?(_<<=1,_|=U,(++k===4||w===0&&P===0)&&(S=this.mul(S,C[_]),k=0,_=0)):k=0}T=26}return S},z.prototype.convertTo=function(N){var E=N.umod(this.m);return E===N?E.clone():E},z.prototype.convertFrom=function(N){var E=N.clone();return E.red=null,E},n.mont=function(N){return new D(N)},a(D,z),D.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},D.prototype.convertFrom=function(N){var E=this.imod(N.mul(this.rinv));return E.red=null,E},D.prototype.imul=function(N,E){if(N.isZero()||E.isZero())return N.words[0]=0,N.length=1,N;var C=N.imul(E),w=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=C.isub(w).iushrn(this.shift),_=S;return S.cmp(this.m)>=0?_=S.isub(this.m):S.cmpn(0)<0&&(_=S.iadd(this.m)),_._forceRed(this)},D.prototype.mul=function(N,E){if(N.isZero()||E.isZero())return new n(0)._forceRed(this);var C=N.mul(E),w=C.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),S=C.isub(w).iushrn(this.shift),_=S;return S.cmp(this.m)>=0?_=S.isub(this.m):S.cmpn(0)<0&&(_=S.iadd(this.m)),_._forceRed(this)},D.prototype.invm=function(N){return this.imod(N._invmp(this.m).mul(this.r2))._forceRed(this)}})(s===void 0||s)},{buffer:188}],185:[function(e,s,c){c.byteLength=function(f){var m=h(f),g=m[0],p=m[1];return 3*(g+p)/4-p},c.toByteArray=function(f){var m,g,p=h(f),v=p[0],b=p[1],x=new l((function(V,W,R){return 3*(W+R)/4-R})(0,v,b)),A=0,M=b>0?v-4:v;for(g=0;g<M;g+=4)m=o[f.charCodeAt(g)]<<18|o[f.charCodeAt(g+1)]<<12|o[f.charCodeAt(g+2)]<<6|o[f.charCodeAt(g+3)],x[A++]=m>>16&255,x[A++]=m>>8&255,x[A++]=255&m;return b===2&&(m=o[f.charCodeAt(g)]<<2|o[f.charCodeAt(g+1)]>>4,x[A++]=255&m),b===1&&(m=o[f.charCodeAt(g)]<<10|o[f.charCodeAt(g+1)]<<4|o[f.charCodeAt(g+2)]>>2,x[A++]=m>>8&255,x[A++]=255&m),x},c.fromByteArray=function(f){for(var m,g=f.length,p=g%3,v=[],b=0,x=g-p;b<x;b+=16383)v.push(d(f,b,b+16383>x?x:b+16383));return p===1?(m=f[g-1],v.push(r[m>>2]+r[m<<4&63]+"==")):p===2&&(m=(f[g-2]<<8)+f[g-1],v.push(r[m>>10]+r[m>>4&63]+r[m<<2&63]+"=")),v.join("")};for(var r=[],o=[],l=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,u=a.length;n<u;++n)r[n]=a[n],o[a.charCodeAt(n)]=n;function h(f){var m=f.length;if(m%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var g=f.indexOf("=");return g===-1&&(g=m),[g,g===m?0:4-g%4]}function d(f,m,g){for(var p,v,b=[],x=m;x<g;x+=3)p=(f[x]<<16&16711680)+(f[x+1]<<8&65280)+(255&f[x+2]),b.push(r[(v=p)>>18&63]+r[v>>12&63]+r[v>>6&63]+r[63&v]);return b.join("")}o[45]=62,o[95]=63},{}],186:[function(e,s,c){(function(r,o){function l(C,w){if(!C)throw new Error(w||"Assertion failed")}function a(C,w){C.super_=w;var S=function(){};S.prototype=w.prototype,C.prototype=new S,C.prototype.constructor=C}function n(C,w,S){if(n.isBN(C))return C;this.negative=0,this.words=null,this.length=0,this.red=null,C!==null&&(w!=="le"&&w!=="be"||(S=w,w=10),this._init(C||0,w||10,S||"be"))}var u;typeof r=="object"?r.exports=n:(void 0).BN=n,n.BN=n,n.wordSize=26;try{u=typeof window<"u"&&window.Buffer!==void 0?window.Buffer:e("buffer").Buffer}catch{}function h(C,w){var S=C.charCodeAt(w);return S>=48&&S<=57?S-48:S>=65&&S<=70?S-55:S>=97&&S<=102?S-87:void l(!1,"Invalid character in "+C)}function d(C,w,S){var _=h(C,S);return S-1>=w&&(_|=h(C,S-1)<<4),_}function f(C,w,S,_){for(var k=0,T=0,j=Math.min(C.length,S),P=w;P<j;P++){var U=C.charCodeAt(P)-48;k*=_,T=U>=49?U-49+10:U>=17?U-17+10:U,l(U>=0&&T<_,"Invalid character"),k+=T}return k}function m(C,w){C.words=w.words,C.length=w.length,C.negative=w.negative,C.red=w.red}if(n.isBN=function(C){return C instanceof n||C!==null&&typeof C=="object"&&C.constructor.wordSize===n.wordSize&&Array.isArray(C.words)},n.max=function(C,w){return C.cmp(w)>0?C:w},n.min=function(C,w){return C.cmp(w)<0?C:w},n.prototype._init=function(C,w,S){if(typeof C=="number")return this._initNumber(C,w,S);if(typeof C=="object")return this._initArray(C,w,S);w==="hex"&&(w=16),l(w===(0|w)&&w>=2&&w<=36);var _=0;(C=C.toString().replace(/\s+/g,""))[0]==="-"&&(_++,this.negative=1),_<C.length&&(w===16?this._parseHex(C,_,S):(this._parseBase(C,w,_),S==="le"&&this._initArray(this.toArray(),w,S)))},n.prototype._initNumber=function(C,w,S){C<0&&(this.negative=1,C=-C),C<67108864?(this.words=[67108863&C],this.length=1):C<4503599627370496?(this.words=[67108863&C,C/67108864&67108863],this.length=2):(l(C<9007199254740992),this.words=[67108863&C,C/67108864&67108863,1],this.length=3),S==="le"&&this._initArray(this.toArray(),w,S)},n.prototype._initArray=function(C,w,S){if(l(typeof C.length=="number"),C.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(C.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var k,T,j=0;if(S==="be")for(_=C.length-1,k=0;_>=0;_-=3)T=C[_]|C[_-1]<<8|C[_-2]<<16,this.words[k]|=T<<j&67108863,this.words[k+1]=T>>>26-j&67108863,(j+=24)>=26&&(j-=26,k++);else if(S==="le")for(_=0,k=0;_<C.length;_+=3)T=C[_]|C[_+1]<<8|C[_+2]<<16,this.words[k]|=T<<j&67108863,this.words[k+1]=T>>>26-j&67108863,(j+=24)>=26&&(j-=26,k++);return this._strip()},n.prototype._parseHex=function(C,w,S){this.length=Math.ceil((C.length-w)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var k,T=0,j=0;if(S==="be")for(_=C.length-1;_>=w;_-=2)k=d(C,w,_)<<T,this.words[j]|=67108863&k,T>=18?(T-=18,j+=1,this.words[j]|=k>>>26):T+=8;else for(_=(C.length-w)%2==0?w+1:w;_<C.length;_+=2)k=d(C,w,_)<<T,this.words[j]|=67108863&k,T>=18?(T-=18,j+=1,this.words[j]|=k>>>26):T+=8;this._strip()},n.prototype._parseBase=function(C,w,S){this.words=[0],this.length=1;for(var _=0,k=1;k<=67108863;k*=w)_++;_--,k=k/w|0;for(var T=C.length-S,j=T%_,P=Math.min(T,T-j)+S,U=0,q=S;q<P;q+=_)U=f(C,q,q+_,w),this.imuln(k),this.words[0]+U<67108864?this.words[0]+=U:this._iaddn(U);if(j!==0){var Z=1;for(U=f(C,q,C.length,w),q=0;q<j;q++)Z*=w;this.imuln(Z),this.words[0]+U<67108864?this.words[0]+=U:this._iaddn(U)}this._strip()},n.prototype.copy=function(C){C.words=new Array(this.length);for(var w=0;w<this.length;w++)C.words[w]=this.words[w];C.length=this.length,C.negative=this.negative,C.red=this.red},n.prototype._move=function(C){m(C,this)},n.prototype.clone=function(){var C=new n(null);return this.copy(C),C},n.prototype._expand=function(C){for(;this.length<C;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=g}catch{n.prototype.inspect=g}else n.prototype.inspect=g;function g(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var p=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],v=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(C,w){var S;if(w=0|w||1,(C=C||10)===16||C==="hex"){S="";for(var _=0,k=0,T=0;T<this.length;T++){var j=this.words[T],P=(16777215&(j<<_|k)).toString(16);k=j>>>24-_&16777215,(_+=2)>=26&&(_-=26,T--),S=k!==0||T!==this.length-1?p[6-P.length]+P+S:P+S}for(k!==0&&(S=k.toString(16)+S);S.length%w!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}if(C===(0|C)&&C>=2&&C<=36){var U=v[C],q=b[C];S="";var Z=this.clone();for(Z.negative=0;!Z.isZero();){var B=Z.modrn(q).toString(C);S=(Z=Z.idivn(q)).isZero()?B+S:p[U-B.length]+B+S}for(this.isZero()&&(S="0"+S);S.length%w!=0;)S="0"+S;return this.negative!==0&&(S="-"+S),S}l(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var C=this.words[0];return this.length===2?C+=67108864*this.words[1]:this.length===3&&this.words[2]===1?C+=4503599627370496+67108864*this.words[1]:this.length>2&&l(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-C:C},n.prototype.toJSON=function(){return this.toString(16,2)},u&&(n.prototype.toBuffer=function(C,w){return this.toArrayLike(u,C,w)}),n.prototype.toArray=function(C,w){return this.toArrayLike(Array,C,w)};function x(C,w,S){S.negative=w.negative^C.negative;var _=C.length+w.length|0;S.length=_,_=_-1|0;var k=0|C.words[0],T=0|w.words[0],j=k*T,P=67108863&j,U=j/67108864|0;S.words[0]=P;for(var q=1;q<_;q++){for(var Z=U>>>26,B=67108863&U,X=Math.min(q,w.length-1),L=Math.max(0,q-C.length+1);L<=X;L++){var I=q-L|0;Z+=(j=(k=0|C.words[I])*(T=0|w.words[L])+B)/67108864|0,B=67108863&j}S.words[q]=0|B,U=0|Z}return U!==0?S.words[q]=0|U:S.length--,S._strip()}n.prototype.toArrayLike=function(C,w,S){this._strip();var _=this.byteLength(),k=S||Math.max(1,_);l(_<=k,"byte array longer than desired length"),l(k>0,"Requested array length <= 0");var T=(function(j,P){return j.allocUnsafe?j.allocUnsafe(P):new j(P)})(C,k);return this["_toArrayLike"+(w==="le"?"LE":"BE")](T,_),T},n.prototype._toArrayLikeLE=function(C,w){for(var S=0,_=0,k=0,T=0;k<this.length;k++){var j=this.words[k]<<T|_;C[S++]=255&j,S<C.length&&(C[S++]=j>>8&255),S<C.length&&(C[S++]=j>>16&255),T===6?(S<C.length&&(C[S++]=j>>24&255),_=0,T=0):(_=j>>>24,T+=2)}if(S<C.length)for(C[S++]=_;S<C.length;)C[S++]=0},n.prototype._toArrayLikeBE=function(C,w){for(var S=C.length-1,_=0,k=0,T=0;k<this.length;k++){var j=this.words[k]<<T|_;C[S--]=255&j,S>=0&&(C[S--]=j>>8&255),S>=0&&(C[S--]=j>>16&255),T===6?(S>=0&&(C[S--]=j>>24&255),_=0,T=0):(_=j>>>24,T+=2)}if(S>=0)for(C[S--]=_;S>=0;)C[S--]=0},Math.clz32?n.prototype._countBits=function(C){return 32-Math.clz32(C)}:n.prototype._countBits=function(C){var w=C,S=0;return w>=4096&&(S+=13,w>>>=13),w>=64&&(S+=7,w>>>=7),w>=8&&(S+=4,w>>>=4),w>=2&&(S+=2,w>>>=2),S+w},n.prototype._zeroBits=function(C){if(C===0)return 26;var w=C,S=0;return(8191&w)==0&&(S+=13,w>>>=13),(127&w)==0&&(S+=7,w>>>=7),(15&w)==0&&(S+=4,w>>>=4),(3&w)==0&&(S+=2,w>>>=2),(1&w)==0&&S++,S},n.prototype.bitLength=function(){var C=this.words[this.length-1],w=this._countBits(C);return 26*(this.length-1)+w},n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var C=0,w=0;w<this.length;w++){var S=this._zeroBits(this.words[w]);if(C+=S,S!==26)break}return C},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(C){return this.negative!==0?this.abs().inotn(C).iaddn(1):this.clone()},n.prototype.fromTwos=function(C){return this.testn(C-1)?this.notn(C).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(C){for(;this.length<C.length;)this.words[this.length++]=0;for(var w=0;w<C.length;w++)this.words[w]=this.words[w]|C.words[w];return this._strip()},n.prototype.ior=function(C){return l((this.negative|C.negative)==0),this.iuor(C)},n.prototype.or=function(C){return this.length>C.length?this.clone().ior(C):C.clone().ior(this)},n.prototype.uor=function(C){return this.length>C.length?this.clone().iuor(C):C.clone().iuor(this)},n.prototype.iuand=function(C){var w;w=this.length>C.length?C:this;for(var S=0;S<w.length;S++)this.words[S]=this.words[S]&C.words[S];return this.length=w.length,this._strip()},n.prototype.iand=function(C){return l((this.negative|C.negative)==0),this.iuand(C)},n.prototype.and=function(C){return this.length>C.length?this.clone().iand(C):C.clone().iand(this)},n.prototype.uand=function(C){return this.length>C.length?this.clone().iuand(C):C.clone().iuand(this)},n.prototype.iuxor=function(C){var w,S;this.length>C.length?(w=this,S=C):(w=C,S=this);for(var _=0;_<S.length;_++)this.words[_]=w.words[_]^S.words[_];if(this!==w)for(;_<w.length;_++)this.words[_]=w.words[_];return this.length=w.length,this._strip()},n.prototype.ixor=function(C){return l((this.negative|C.negative)==0),this.iuxor(C)},n.prototype.xor=function(C){return this.length>C.length?this.clone().ixor(C):C.clone().ixor(this)},n.prototype.uxor=function(C){return this.length>C.length?this.clone().iuxor(C):C.clone().iuxor(this)},n.prototype.inotn=function(C){l(typeof C=="number"&&C>=0);var w=0|Math.ceil(C/26),S=C%26;this._expand(w),S>0&&w--;for(var _=0;_<w;_++)this.words[_]=67108863&~this.words[_];return S>0&&(this.words[_]=~this.words[_]&67108863>>26-S),this._strip()},n.prototype.notn=function(C){return this.clone().inotn(C)},n.prototype.setn=function(C,w){l(typeof C=="number"&&C>=0);var S=C/26|0,_=C%26;return this._expand(S+1),this.words[S]=w?this.words[S]|1<<_:this.words[S]&~(1<<_),this._strip()},n.prototype.iadd=function(C){var w,S,_;if(this.negative!==0&&C.negative===0)return this.negative=0,w=this.isub(C),this.negative^=1,this._normSign();if(this.negative===0&&C.negative!==0)return C.negative=0,w=this.isub(C),C.negative=1,w._normSign();this.length>C.length?(S=this,_=C):(S=C,_=this);for(var k=0,T=0;T<_.length;T++)w=(0|S.words[T])+(0|_.words[T])+k,this.words[T]=67108863&w,k=w>>>26;for(;k!==0&&T<S.length;T++)w=(0|S.words[T])+k,this.words[T]=67108863&w,k=w>>>26;if(this.length=S.length,k!==0)this.words[this.length]=k,this.length++;else if(S!==this)for(;T<S.length;T++)this.words[T]=S.words[T];return this},n.prototype.add=function(C){var w;return C.negative!==0&&this.negative===0?(C.negative=0,w=this.sub(C),C.negative^=1,w):C.negative===0&&this.negative!==0?(this.negative=0,w=C.sub(this),this.negative=1,w):this.length>C.length?this.clone().iadd(C):C.clone().iadd(this)},n.prototype.isub=function(C){if(C.negative!==0){C.negative=0;var w=this.iadd(C);return C.negative=1,w._normSign()}if(this.negative!==0)return this.negative=0,this.iadd(C),this.negative=1,this._normSign();var S,_,k=this.cmp(C);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;k>0?(S=this,_=C):(S=C,_=this);for(var T=0,j=0;j<_.length;j++)T=(w=(0|S.words[j])-(0|_.words[j])+T)>>26,this.words[j]=67108863&w;for(;T!==0&&j<S.length;j++)T=(w=(0|S.words[j])+T)>>26,this.words[j]=67108863&w;if(T===0&&j<S.length&&S!==this)for(;j<S.length;j++)this.words[j]=S.words[j];return this.length=Math.max(this.length,j),S!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(C){return this.clone().isub(C)};var A=function(C,w,S){var _,k,T,j=C.words,P=w.words,U=S.words,q=0,Z=0|j[0],B=8191&Z,X=Z>>>13,L=0|j[1],I=8191&L,G=L>>>13,ee=0|j[2],se=8191&ee,te=ee>>>13,re=0|j[3],J=8191&re,de=re>>>13,ne=0|j[4],fe=8191&ne,ue=ne>>>13,ye=0|j[5],be=8191&ye,we=ye>>>13,Se=0|j[6],Pe=8191&Se,Le=Se>>>13,De=0|j[7],Ge=8191&De,Ve=De>>>13,qe=0|j[8],et=8191&qe,We=qe>>>13,dt=0|j[9],Ke=8191&dt,Oe=dt>>>13,Xe=0|P[0],ut=8191&Xe,ze=Xe>>>13,bt=0|P[1],ct=8191&bt,nt=bt>>>13,Mt=0|P[2],ht=8191&Mt,it=Mt>>>13,Pt=0|P[3],Qt=8191&Pt,mt=Pt>>>13,qt=0|P[4],ir=8191&qt,rt=qt>>>13,Zt=0|P[5],ar=8191&Zt,It=Zt>>>13,xe=0|P[6],Ce=8191&xe,Re=xe>>>13,tt=0|P[7],Ct=8191&tt,ot=tt>>>13,At=0|P[8],yt=8191&At,gt=At>>>13,Rt=0|P[9],Nt=8191&Rt,Dt=Rt>>>13;S.negative=C.negative^w.negative,S.length=19;var mr=(q+(_=Math.imul(B,ut))|0)+((8191&(k=(k=Math.imul(B,ze))+Math.imul(X,ut)|0))<<13)|0;q=((T=Math.imul(X,ze))+(k>>>13)|0)+(mr>>>26)|0,mr&=67108863,_=Math.imul(I,ut),k=(k=Math.imul(I,ze))+Math.imul(G,ut)|0,T=Math.imul(G,ze);var fr=(q+(_=_+Math.imul(B,ct)|0)|0)+((8191&(k=(k=k+Math.imul(B,nt)|0)+Math.imul(X,ct)|0))<<13)|0;q=((T=T+Math.imul(X,nt)|0)+(k>>>13)|0)+(fr>>>26)|0,fr&=67108863,_=Math.imul(se,ut),k=(k=Math.imul(se,ze))+Math.imul(te,ut)|0,T=Math.imul(te,ze),_=_+Math.imul(I,ct)|0,k=(k=k+Math.imul(I,nt)|0)+Math.imul(G,ct)|0,T=T+Math.imul(G,nt)|0;var Cr=(q+(_=_+Math.imul(B,ht)|0)|0)+((8191&(k=(k=k+Math.imul(B,it)|0)+Math.imul(X,ht)|0))<<13)|0;q=((T=T+Math.imul(X,it)|0)+(k>>>13)|0)+(Cr>>>26)|0,Cr&=67108863,_=Math.imul(J,ut),k=(k=Math.imul(J,ze))+Math.imul(de,ut)|0,T=Math.imul(de,ze),_=_+Math.imul(se,ct)|0,k=(k=k+Math.imul(se,nt)|0)+Math.imul(te,ct)|0,T=T+Math.imul(te,nt)|0,_=_+Math.imul(I,ht)|0,k=(k=k+Math.imul(I,it)|0)+Math.imul(G,ht)|0,T=T+Math.imul(G,it)|0;var Ar=(q+(_=_+Math.imul(B,Qt)|0)|0)+((8191&(k=(k=k+Math.imul(B,mt)|0)+Math.imul(X,Qt)|0))<<13)|0;q=((T=T+Math.imul(X,mt)|0)+(k>>>13)|0)+(Ar>>>26)|0,Ar&=67108863,_=Math.imul(fe,ut),k=(k=Math.imul(fe,ze))+Math.imul(ue,ut)|0,T=Math.imul(ue,ze),_=_+Math.imul(J,ct)|0,k=(k=k+Math.imul(J,nt)|0)+Math.imul(de,ct)|0,T=T+Math.imul(de,nt)|0,_=_+Math.imul(se,ht)|0,k=(k=k+Math.imul(se,it)|0)+Math.imul(te,ht)|0,T=T+Math.imul(te,it)|0,_=_+Math.imul(I,Qt)|0,k=(k=k+Math.imul(I,mt)|0)+Math.imul(G,Qt)|0,T=T+Math.imul(G,mt)|0;var Hr=(q+(_=_+Math.imul(B,ir)|0)|0)+((8191&(k=(k=k+Math.imul(B,rt)|0)+Math.imul(X,ir)|0))<<13)|0;q=((T=T+Math.imul(X,rt)|0)+(k>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,_=Math.imul(be,ut),k=(k=Math.imul(be,ze))+Math.imul(we,ut)|0,T=Math.imul(we,ze),_=_+Math.imul(fe,ct)|0,k=(k=k+Math.imul(fe,nt)|0)+Math.imul(ue,ct)|0,T=T+Math.imul(ue,nt)|0,_=_+Math.imul(J,ht)|0,k=(k=k+Math.imul(J,it)|0)+Math.imul(de,ht)|0,T=T+Math.imul(de,it)|0,_=_+Math.imul(se,Qt)|0,k=(k=k+Math.imul(se,mt)|0)+Math.imul(te,Qt)|0,T=T+Math.imul(te,mt)|0,_=_+Math.imul(I,ir)|0,k=(k=k+Math.imul(I,rt)|0)+Math.imul(G,ir)|0,T=T+Math.imul(G,rt)|0;var me=(q+(_=_+Math.imul(B,ar)|0)|0)+((8191&(k=(k=k+Math.imul(B,It)|0)+Math.imul(X,ar)|0))<<13)|0;q=((T=T+Math.imul(X,It)|0)+(k>>>13)|0)+(me>>>26)|0,me&=67108863,_=Math.imul(Pe,ut),k=(k=Math.imul(Pe,ze))+Math.imul(Le,ut)|0,T=Math.imul(Le,ze),_=_+Math.imul(be,ct)|0,k=(k=k+Math.imul(be,nt)|0)+Math.imul(we,ct)|0,T=T+Math.imul(we,nt)|0,_=_+Math.imul(fe,ht)|0,k=(k=k+Math.imul(fe,it)|0)+Math.imul(ue,ht)|0,T=T+Math.imul(ue,it)|0,_=_+Math.imul(J,Qt)|0,k=(k=k+Math.imul(J,mt)|0)+Math.imul(de,Qt)|0,T=T+Math.imul(de,mt)|0,_=_+Math.imul(se,ir)|0,k=(k=k+Math.imul(se,rt)|0)+Math.imul(te,ir)|0,T=T+Math.imul(te,rt)|0,_=_+Math.imul(I,ar)|0,k=(k=k+Math.imul(I,It)|0)+Math.imul(G,ar)|0,T=T+Math.imul(G,It)|0;var Ee=(q+(_=_+Math.imul(B,Ce)|0)|0)+((8191&(k=(k=k+Math.imul(B,Re)|0)+Math.imul(X,Ce)|0))<<13)|0;q=((T=T+Math.imul(X,Re)|0)+(k>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,_=Math.imul(Ge,ut),k=(k=Math.imul(Ge,ze))+Math.imul(Ve,ut)|0,T=Math.imul(Ve,ze),_=_+Math.imul(Pe,ct)|0,k=(k=k+Math.imul(Pe,nt)|0)+Math.imul(Le,ct)|0,T=T+Math.imul(Le,nt)|0,_=_+Math.imul(be,ht)|0,k=(k=k+Math.imul(be,it)|0)+Math.imul(we,ht)|0,T=T+Math.imul(we,it)|0,_=_+Math.imul(fe,Qt)|0,k=(k=k+Math.imul(fe,mt)|0)+Math.imul(ue,Qt)|0,T=T+Math.imul(ue,mt)|0,_=_+Math.imul(J,ir)|0,k=(k=k+Math.imul(J,rt)|0)+Math.imul(de,ir)|0,T=T+Math.imul(de,rt)|0,_=_+Math.imul(se,ar)|0,k=(k=k+Math.imul(se,It)|0)+Math.imul(te,ar)|0,T=T+Math.imul(te,It)|0,_=_+Math.imul(I,Ce)|0,k=(k=k+Math.imul(I,Re)|0)+Math.imul(G,Ce)|0,T=T+Math.imul(G,Re)|0;var $e=(q+(_=_+Math.imul(B,Ct)|0)|0)+((8191&(k=(k=k+Math.imul(B,ot)|0)+Math.imul(X,Ct)|0))<<13)|0;q=((T=T+Math.imul(X,ot)|0)+(k>>>13)|0)+($e>>>26)|0,$e&=67108863,_=Math.imul(et,ut),k=(k=Math.imul(et,ze))+Math.imul(We,ut)|0,T=Math.imul(We,ze),_=_+Math.imul(Ge,ct)|0,k=(k=k+Math.imul(Ge,nt)|0)+Math.imul(Ve,ct)|0,T=T+Math.imul(Ve,nt)|0,_=_+Math.imul(Pe,ht)|0,k=(k=k+Math.imul(Pe,it)|0)+Math.imul(Le,ht)|0,T=T+Math.imul(Le,it)|0,_=_+Math.imul(be,Qt)|0,k=(k=k+Math.imul(be,mt)|0)+Math.imul(we,Qt)|0,T=T+Math.imul(we,mt)|0,_=_+Math.imul(fe,ir)|0,k=(k=k+Math.imul(fe,rt)|0)+Math.imul(ue,ir)|0,T=T+Math.imul(ue,rt)|0,_=_+Math.imul(J,ar)|0,k=(k=k+Math.imul(J,It)|0)+Math.imul(de,ar)|0,T=T+Math.imul(de,It)|0,_=_+Math.imul(se,Ce)|0,k=(k=k+Math.imul(se,Re)|0)+Math.imul(te,Ce)|0,T=T+Math.imul(te,Re)|0,_=_+Math.imul(I,Ct)|0,k=(k=k+Math.imul(I,ot)|0)+Math.imul(G,Ct)|0,T=T+Math.imul(G,ot)|0;var Qe=(q+(_=_+Math.imul(B,yt)|0)|0)+((8191&(k=(k=k+Math.imul(B,gt)|0)+Math.imul(X,yt)|0))<<13)|0;q=((T=T+Math.imul(X,gt)|0)+(k>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,_=Math.imul(Ke,ut),k=(k=Math.imul(Ke,ze))+Math.imul(Oe,ut)|0,T=Math.imul(Oe,ze),_=_+Math.imul(et,ct)|0,k=(k=k+Math.imul(et,nt)|0)+Math.imul(We,ct)|0,T=T+Math.imul(We,nt)|0,_=_+Math.imul(Ge,ht)|0,k=(k=k+Math.imul(Ge,it)|0)+Math.imul(Ve,ht)|0,T=T+Math.imul(Ve,it)|0,_=_+Math.imul(Pe,Qt)|0,k=(k=k+Math.imul(Pe,mt)|0)+Math.imul(Le,Qt)|0,T=T+Math.imul(Le,mt)|0,_=_+Math.imul(be,ir)|0,k=(k=k+Math.imul(be,rt)|0)+Math.imul(we,ir)|0,T=T+Math.imul(we,rt)|0,_=_+Math.imul(fe,ar)|0,k=(k=k+Math.imul(fe,It)|0)+Math.imul(ue,ar)|0,T=T+Math.imul(ue,It)|0,_=_+Math.imul(J,Ce)|0,k=(k=k+Math.imul(J,Re)|0)+Math.imul(de,Ce)|0,T=T+Math.imul(de,Re)|0,_=_+Math.imul(se,Ct)|0,k=(k=k+Math.imul(se,ot)|0)+Math.imul(te,Ct)|0,T=T+Math.imul(te,ot)|0,_=_+Math.imul(I,yt)|0,k=(k=k+Math.imul(I,gt)|0)+Math.imul(G,yt)|0,T=T+Math.imul(G,gt)|0;var pt=(q+(_=_+Math.imul(B,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(B,Dt)|0)+Math.imul(X,Nt)|0))<<13)|0;q=((T=T+Math.imul(X,Dt)|0)+(k>>>13)|0)+(pt>>>26)|0,pt&=67108863,_=Math.imul(Ke,ct),k=(k=Math.imul(Ke,nt))+Math.imul(Oe,ct)|0,T=Math.imul(Oe,nt),_=_+Math.imul(et,ht)|0,k=(k=k+Math.imul(et,it)|0)+Math.imul(We,ht)|0,T=T+Math.imul(We,it)|0,_=_+Math.imul(Ge,Qt)|0,k=(k=k+Math.imul(Ge,mt)|0)+Math.imul(Ve,Qt)|0,T=T+Math.imul(Ve,mt)|0,_=_+Math.imul(Pe,ir)|0,k=(k=k+Math.imul(Pe,rt)|0)+Math.imul(Le,ir)|0,T=T+Math.imul(Le,rt)|0,_=_+Math.imul(be,ar)|0,k=(k=k+Math.imul(be,It)|0)+Math.imul(we,ar)|0,T=T+Math.imul(we,It)|0,_=_+Math.imul(fe,Ce)|0,k=(k=k+Math.imul(fe,Re)|0)+Math.imul(ue,Ce)|0,T=T+Math.imul(ue,Re)|0,_=_+Math.imul(J,Ct)|0,k=(k=k+Math.imul(J,ot)|0)+Math.imul(de,Ct)|0,T=T+Math.imul(de,ot)|0,_=_+Math.imul(se,yt)|0,k=(k=k+Math.imul(se,gt)|0)+Math.imul(te,yt)|0,T=T+Math.imul(te,gt)|0;var st=(q+(_=_+Math.imul(I,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(I,Dt)|0)+Math.imul(G,Nt)|0))<<13)|0;q=((T=T+Math.imul(G,Dt)|0)+(k>>>13)|0)+(st>>>26)|0,st&=67108863,_=Math.imul(Ke,ht),k=(k=Math.imul(Ke,it))+Math.imul(Oe,ht)|0,T=Math.imul(Oe,it),_=_+Math.imul(et,Qt)|0,k=(k=k+Math.imul(et,mt)|0)+Math.imul(We,Qt)|0,T=T+Math.imul(We,mt)|0,_=_+Math.imul(Ge,ir)|0,k=(k=k+Math.imul(Ge,rt)|0)+Math.imul(Ve,ir)|0,T=T+Math.imul(Ve,rt)|0,_=_+Math.imul(Pe,ar)|0,k=(k=k+Math.imul(Pe,It)|0)+Math.imul(Le,ar)|0,T=T+Math.imul(Le,It)|0,_=_+Math.imul(be,Ce)|0,k=(k=k+Math.imul(be,Re)|0)+Math.imul(we,Ce)|0,T=T+Math.imul(we,Re)|0,_=_+Math.imul(fe,Ct)|0,k=(k=k+Math.imul(fe,ot)|0)+Math.imul(ue,Ct)|0,T=T+Math.imul(ue,ot)|0,_=_+Math.imul(J,yt)|0,k=(k=k+Math.imul(J,gt)|0)+Math.imul(de,yt)|0,T=T+Math.imul(de,gt)|0;var lt=(q+(_=_+Math.imul(se,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(se,Dt)|0)+Math.imul(te,Nt)|0))<<13)|0;q=((T=T+Math.imul(te,Dt)|0)+(k>>>13)|0)+(lt>>>26)|0,lt&=67108863,_=Math.imul(Ke,Qt),k=(k=Math.imul(Ke,mt))+Math.imul(Oe,Qt)|0,T=Math.imul(Oe,mt),_=_+Math.imul(et,ir)|0,k=(k=k+Math.imul(et,rt)|0)+Math.imul(We,ir)|0,T=T+Math.imul(We,rt)|0,_=_+Math.imul(Ge,ar)|0,k=(k=k+Math.imul(Ge,It)|0)+Math.imul(Ve,ar)|0,T=T+Math.imul(Ve,It)|0,_=_+Math.imul(Pe,Ce)|0,k=(k=k+Math.imul(Pe,Re)|0)+Math.imul(Le,Ce)|0,T=T+Math.imul(Le,Re)|0,_=_+Math.imul(be,Ct)|0,k=(k=k+Math.imul(be,ot)|0)+Math.imul(we,Ct)|0,T=T+Math.imul(we,ot)|0,_=_+Math.imul(fe,yt)|0,k=(k=k+Math.imul(fe,gt)|0)+Math.imul(ue,yt)|0,T=T+Math.imul(ue,gt)|0;var Jt=(q+(_=_+Math.imul(J,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(J,Dt)|0)+Math.imul(de,Nt)|0))<<13)|0;q=((T=T+Math.imul(de,Dt)|0)+(k>>>13)|0)+(Jt>>>26)|0,Jt&=67108863,_=Math.imul(Ke,ir),k=(k=Math.imul(Ke,rt))+Math.imul(Oe,ir)|0,T=Math.imul(Oe,rt),_=_+Math.imul(et,ar)|0,k=(k=k+Math.imul(et,It)|0)+Math.imul(We,ar)|0,T=T+Math.imul(We,It)|0,_=_+Math.imul(Ge,Ce)|0,k=(k=k+Math.imul(Ge,Re)|0)+Math.imul(Ve,Ce)|0,T=T+Math.imul(Ve,Re)|0,_=_+Math.imul(Pe,Ct)|0,k=(k=k+Math.imul(Pe,ot)|0)+Math.imul(Le,Ct)|0,T=T+Math.imul(Le,ot)|0,_=_+Math.imul(be,yt)|0,k=(k=k+Math.imul(be,gt)|0)+Math.imul(we,yt)|0,T=T+Math.imul(we,gt)|0;var zt=(q+(_=_+Math.imul(fe,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(fe,Dt)|0)+Math.imul(ue,Nt)|0))<<13)|0;q=((T=T+Math.imul(ue,Dt)|0)+(k>>>13)|0)+(zt>>>26)|0,zt&=67108863,_=Math.imul(Ke,ar),k=(k=Math.imul(Ke,It))+Math.imul(Oe,ar)|0,T=Math.imul(Oe,It),_=_+Math.imul(et,Ce)|0,k=(k=k+Math.imul(et,Re)|0)+Math.imul(We,Ce)|0,T=T+Math.imul(We,Re)|0,_=_+Math.imul(Ge,Ct)|0,k=(k=k+Math.imul(Ge,ot)|0)+Math.imul(Ve,Ct)|0,T=T+Math.imul(Ve,ot)|0,_=_+Math.imul(Pe,yt)|0,k=(k=k+Math.imul(Pe,gt)|0)+Math.imul(Le,yt)|0,T=T+Math.imul(Le,gt)|0;var Ht=(q+(_=_+Math.imul(be,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(be,Dt)|0)+Math.imul(we,Nt)|0))<<13)|0;q=((T=T+Math.imul(we,Dt)|0)+(k>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,_=Math.imul(Ke,Ce),k=(k=Math.imul(Ke,Re))+Math.imul(Oe,Ce)|0,T=Math.imul(Oe,Re),_=_+Math.imul(et,Ct)|0,k=(k=k+Math.imul(et,ot)|0)+Math.imul(We,Ct)|0,T=T+Math.imul(We,ot)|0,_=_+Math.imul(Ge,yt)|0,k=(k=k+Math.imul(Ge,gt)|0)+Math.imul(Ve,yt)|0,T=T+Math.imul(Ve,gt)|0;var Lt=(q+(_=_+Math.imul(Pe,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(Pe,Dt)|0)+Math.imul(Le,Nt)|0))<<13)|0;q=((T=T+Math.imul(Le,Dt)|0)+(k>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,_=Math.imul(Ke,Ct),k=(k=Math.imul(Ke,ot))+Math.imul(Oe,Ct)|0,T=Math.imul(Oe,ot),_=_+Math.imul(et,yt)|0,k=(k=k+Math.imul(et,gt)|0)+Math.imul(We,yt)|0,T=T+Math.imul(We,gt)|0;var er=(q+(_=_+Math.imul(Ge,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(Ge,Dt)|0)+Math.imul(Ve,Nt)|0))<<13)|0;q=((T=T+Math.imul(Ve,Dt)|0)+(k>>>13)|0)+(er>>>26)|0,er&=67108863,_=Math.imul(Ke,yt),k=(k=Math.imul(Ke,gt))+Math.imul(Oe,yt)|0,T=Math.imul(Oe,gt);var lr=(q+(_=_+Math.imul(et,Nt)|0)|0)+((8191&(k=(k=k+Math.imul(et,Dt)|0)+Math.imul(We,Nt)|0))<<13)|0;q=((T=T+Math.imul(We,Dt)|0)+(k>>>13)|0)+(lr>>>26)|0,lr&=67108863;var gr=(q+(_=Math.imul(Ke,Nt))|0)+((8191&(k=(k=Math.imul(Ke,Dt))+Math.imul(Oe,Nt)|0))<<13)|0;return q=((T=Math.imul(Oe,Dt))+(k>>>13)|0)+(gr>>>26)|0,gr&=67108863,U[0]=mr,U[1]=fr,U[2]=Cr,U[3]=Ar,U[4]=Hr,U[5]=me,U[6]=Ee,U[7]=$e,U[8]=Qe,U[9]=pt,U[10]=st,U[11]=lt,U[12]=Jt,U[13]=zt,U[14]=Ht,U[15]=Lt,U[16]=er,U[17]=lr,U[18]=gr,q!==0&&(U[19]=q,S.length++),S};function M(C,w,S){S.negative=w.negative^C.negative,S.length=C.length+w.length;for(var _=0,k=0,T=0;T<S.length-1;T++){var j=k;k=0;for(var P=67108863&_,U=Math.min(T,w.length-1),q=Math.max(0,T-C.length+1);q<=U;q++){var Z=T-q,B=(0|C.words[Z])*(0|w.words[q]),X=67108863&B;P=67108863&(X=X+P|0),k+=(j=(j=j+(B/67108864|0)|0)+(X>>>26)|0)>>>26,j&=67108863}S.words[T]=P,_=j,j=k}return _!==0?S.words[T]=_:S.length--,S._strip()}function V(C,w,S){return M(C,w,S)}Math.imul||(A=x),n.prototype.mulTo=function(C,w){var S=this.length+C.length;return this.length===10&&C.length===10?A(this,C,w):S<63?x(this,C,w):S<1024?M(this,C,w):V(this,C,w)},n.prototype.mul=function(C){var w=new n(null);return w.words=new Array(this.length+C.length),this.mulTo(C,w)},n.prototype.mulf=function(C){var w=new n(null);return w.words=new Array(this.length+C.length),V(this,C,w)},n.prototype.imul=function(C){return this.clone().mulTo(C,this)},n.prototype.imuln=function(C){var w=C<0;w&&(C=-C),l(typeof C=="number"),l(C<67108864);for(var S=0,_=0;_<this.length;_++){var k=(0|this.words[_])*C,T=(67108863&k)+(67108863&S);S>>=26,S+=k/67108864|0,S+=T>>>26,this.words[_]=67108863&T}return S!==0&&(this.words[_]=S,this.length++),w?this.ineg():this},n.prototype.muln=function(C){return this.clone().imuln(C)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(C){var w=(function(T){for(var j=new Array(T.bitLength()),P=0;P<j.length;P++){var U=P/26|0,q=P%26;j[P]=T.words[U]>>>q&1}return j})(C);if(w.length===0)return new n(1);for(var S=this,_=0;_<w.length&&w[_]===0;_++,S=S.sqr());if(++_<w.length)for(var k=S.sqr();_<w.length;_++,k=k.sqr())w[_]!==0&&(S=S.mul(k));return S},n.prototype.iushln=function(C){l(typeof C=="number"&&C>=0);var w,S=C%26,_=(C-S)/26,k=67108863>>>26-S<<26-S;if(S!==0){var T=0;for(w=0;w<this.length;w++){var j=this.words[w]&k,P=(0|this.words[w])-j<<S;this.words[w]=P|T,T=j>>>26-S}T&&(this.words[w]=T,this.length++)}if(_!==0){for(w=this.length-1;w>=0;w--)this.words[w+_]=this.words[w];for(w=0;w<_;w++)this.words[w]=0;this.length+=_}return this._strip()},n.prototype.ishln=function(C){return l(this.negative===0),this.iushln(C)},n.prototype.iushrn=function(C,w,S){var _;l(typeof C=="number"&&C>=0),_=w?(w-w%26)/26:0;var k=C%26,T=Math.min((C-k)/26,this.length),j=67108863^67108863>>>k<<k,P=S;if(_-=T,_=Math.max(0,_),P){for(var U=0;U<T;U++)P.words[U]=this.words[U];P.length=T}if(T!==0)if(this.length>T)for(this.length-=T,U=0;U<this.length;U++)this.words[U]=this.words[U+T];else this.words[0]=0,this.length=1;var q=0;for(U=this.length-1;U>=0&&(q!==0||U>=_);U--){var Z=0|this.words[U];this.words[U]=q<<26-k|Z>>>k,q=Z&j}return P&&q!==0&&(P.words[P.length++]=q),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(C,w,S){return l(this.negative===0),this.iushrn(C,w,S)},n.prototype.shln=function(C){return this.clone().ishln(C)},n.prototype.ushln=function(C){return this.clone().iushln(C)},n.prototype.shrn=function(C){return this.clone().ishrn(C)},n.prototype.ushrn=function(C){return this.clone().iushrn(C)},n.prototype.testn=function(C){l(typeof C=="number"&&C>=0);var w=C%26,S=(C-w)/26,_=1<<w;return!(this.length<=S)&&!!(this.words[S]&_)},n.prototype.imaskn=function(C){l(typeof C=="number"&&C>=0);var w=C%26,S=(C-w)/26;if(l(this.negative===0,"imaskn works only with positive numbers"),this.length<=S)return this;if(w!==0&&S++,this.length=Math.min(S,this.length),w!==0){var _=67108863^67108863>>>w<<w;this.words[this.length-1]&=_}return this._strip()},n.prototype.maskn=function(C){return this.clone().imaskn(C)},n.prototype.iaddn=function(C){return l(typeof C=="number"),l(C<67108864),C<0?this.isubn(-C):this.negative!==0?this.length===1&&(0|this.words[0])<=C?(this.words[0]=C-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(C),this.negative=1,this):this._iaddn(C)},n.prototype._iaddn=function(C){this.words[0]+=C;for(var w=0;w<this.length&&this.words[w]>=67108864;w++)this.words[w]-=67108864,w===this.length-1?this.words[w+1]=1:this.words[w+1]++;return this.length=Math.max(this.length,w+1),this},n.prototype.isubn=function(C){if(l(typeof C=="number"),l(C<67108864),C<0)return this.iaddn(-C);if(this.negative!==0)return this.negative=0,this.iaddn(C),this.negative=1,this;if(this.words[0]-=C,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var w=0;w<this.length&&this.words[w]<0;w++)this.words[w]+=67108864,this.words[w+1]-=1;return this._strip()},n.prototype.addn=function(C){return this.clone().iaddn(C)},n.prototype.subn=function(C){return this.clone().isubn(C)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(C,w,S){var _,k,T=C.length+S;this._expand(T);var j=0;for(_=0;_<C.length;_++){k=(0|this.words[_+S])+j;var P=(0|C.words[_])*w;j=((k-=67108863&P)>>26)-(P/67108864|0),this.words[_+S]=67108863&k}for(;_<this.length-S;_++)j=(k=(0|this.words[_+S])+j)>>26,this.words[_+S]=67108863&k;if(j===0)return this._strip();for(l(j===-1),j=0,_=0;_<this.length;_++)j=(k=-(0|this.words[_])+j)>>26,this.words[_]=67108863&k;return this.negative=1,this._strip()},n.prototype._wordDiv=function(C,w){var S=(this.length,C.length),_=this.clone(),k=C,T=0|k.words[k.length-1];(S=26-this._countBits(T))!==0&&(k=k.ushln(S),_.iushln(S),T=0|k.words[k.length-1]);var j,P=_.length-k.length;if(w!=="mod"){(j=new n(null)).length=P+1,j.words=new Array(j.length);for(var U=0;U<j.length;U++)j.words[U]=0}var q=_.clone()._ishlnsubmul(k,1,P);q.negative===0&&(_=q,j&&(j.words[P]=1));for(var Z=P-1;Z>=0;Z--){var B=67108864*(0|_.words[k.length+Z])+(0|_.words[k.length+Z-1]);for(B=Math.min(B/T|0,67108863),_._ishlnsubmul(k,B,Z);_.negative!==0;)B--,_.negative=0,_._ishlnsubmul(k,1,Z),_.isZero()||(_.negative^=1);j&&(j.words[Z]=B)}return j&&j._strip(),_._strip(),w!=="div"&&S!==0&&_.iushrn(S),{div:j||null,mod:_}},n.prototype.divmod=function(C,w,S){return l(!C.isZero()),this.isZero()?{div:new n(0),mod:new n(0)}:this.negative!==0&&C.negative===0?(T=this.neg().divmod(C,w),w!=="mod"&&(_=T.div.neg()),w!=="div"&&(k=T.mod.neg(),S&&k.negative!==0&&k.iadd(C)),{div:_,mod:k}):this.negative===0&&C.negative!==0?(T=this.divmod(C.neg(),w),w!=="mod"&&(_=T.div.neg()),{div:_,mod:T.mod}):(this.negative&C.negative)!=0?(T=this.neg().divmod(C.neg(),w),w!=="div"&&(k=T.mod.neg(),S&&k.negative!==0&&k.isub(C)),{div:T.div,mod:k}):C.length>this.length||this.cmp(C)<0?{div:new n(0),mod:this}:C.length===1?w==="div"?{div:this.divn(C.words[0]),mod:null}:w==="mod"?{div:null,mod:new n(this.modrn(C.words[0]))}:{div:this.divn(C.words[0]),mod:new n(this.modrn(C.words[0]))}:this._wordDiv(C,w);var _,k,T},n.prototype.div=function(C){return this.divmod(C,"div",!1).div},n.prototype.mod=function(C){return this.divmod(C,"mod",!1).mod},n.prototype.umod=function(C){return this.divmod(C,"mod",!0).mod},n.prototype.divRound=function(C){var w=this.divmod(C);if(w.mod.isZero())return w.div;var S=w.div.negative!==0?w.mod.isub(C):w.mod,_=C.ushrn(1),k=C.andln(1),T=S.cmp(_);return T<0||k===1&&T===0?w.div:w.div.negative!==0?w.div.isubn(1):w.div.iaddn(1)},n.prototype.modrn=function(C){var w=C<0;w&&(C=-C),l(C<=67108863);for(var S=(1<<26)%C,_=0,k=this.length-1;k>=0;k--)_=(S*_+(0|this.words[k]))%C;return w?-_:_},n.prototype.modn=function(C){return this.modrn(C)},n.prototype.idivn=function(C){var w=C<0;w&&(C=-C),l(C<=67108863);for(var S=0,_=this.length-1;_>=0;_--){var k=(0|this.words[_])+67108864*S;this.words[_]=k/C|0,S=k%C}return this._strip(),w?this.ineg():this},n.prototype.divn=function(C){return this.clone().idivn(C)},n.prototype.egcd=function(C){l(C.negative===0),l(!C.isZero());var w=this,S=C.clone();w=w.negative!==0?w.umod(C):w.clone();for(var _=new n(1),k=new n(0),T=new n(0),j=new n(1),P=0;w.isEven()&&S.isEven();)w.iushrn(1),S.iushrn(1),++P;for(var U=S.clone(),q=w.clone();!w.isZero();){for(var Z=0,B=1;(w.words[0]&B)==0&&Z<26;++Z,B<<=1);if(Z>0)for(w.iushrn(Z);Z-- >0;)(_.isOdd()||k.isOdd())&&(_.iadd(U),k.isub(q)),_.iushrn(1),k.iushrn(1);for(var X=0,L=1;(S.words[0]&L)==0&&X<26;++X,L<<=1);if(X>0)for(S.iushrn(X);X-- >0;)(T.isOdd()||j.isOdd())&&(T.iadd(U),j.isub(q)),T.iushrn(1),j.iushrn(1);w.cmp(S)>=0?(w.isub(S),_.isub(T),k.isub(j)):(S.isub(w),T.isub(_),j.isub(k))}return{a:T,b:j,gcd:S.iushln(P)}},n.prototype._invmp=function(C){l(C.negative===0),l(!C.isZero());var w=this,S=C.clone();w=w.negative!==0?w.umod(C):w.clone();for(var _,k=new n(1),T=new n(0),j=S.clone();w.cmpn(1)>0&&S.cmpn(1)>0;){for(var P=0,U=1;(w.words[0]&U)==0&&P<26;++P,U<<=1);if(P>0)for(w.iushrn(P);P-- >0;)k.isOdd()&&k.iadd(j),k.iushrn(1);for(var q=0,Z=1;(S.words[0]&Z)==0&&q<26;++q,Z<<=1);if(q>0)for(S.iushrn(q);q-- >0;)T.isOdd()&&T.iadd(j),T.iushrn(1);w.cmp(S)>=0?(w.isub(S),k.isub(T)):(S.isub(w),T.isub(k))}return(_=w.cmpn(1)===0?k:T).cmpn(0)<0&&_.iadd(C),_},n.prototype.gcd=function(C){if(this.isZero())return C.abs();if(C.isZero())return this.abs();var w=this.clone(),S=C.clone();w.negative=0,S.negative=0;for(var _=0;w.isEven()&&S.isEven();_++)w.iushrn(1),S.iushrn(1);for(;;){for(;w.isEven();)w.iushrn(1);for(;S.isEven();)S.iushrn(1);var k=w.cmp(S);if(k<0){var T=w;w=S,S=T}else if(k===0||S.cmpn(1)===0)break;w.isub(S)}return S.iushln(_)},n.prototype.invm=function(C){return this.egcd(C).a.umod(C)},n.prototype.isEven=function(){return(1&this.words[0])==0},n.prototype.isOdd=function(){return(1&this.words[0])==1},n.prototype.andln=function(C){return this.words[0]&C},n.prototype.bincn=function(C){l(typeof C=="number");var w=C%26,S=(C-w)/26,_=1<<w;if(this.length<=S)return this._expand(S+1),this.words[S]|=_,this;for(var k=_,T=S;k!==0&&T<this.length;T++){var j=0|this.words[T];k=(j+=k)>>>26,j&=67108863,this.words[T]=j}return k!==0&&(this.words[T]=k,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(C){var w,S=C<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;if(this._strip(),this.length>1)w=1;else{S&&(C=-C),l(C<=67108863,"Number is too big");var _=0|this.words[0];w=_===C?0:_<C?-1:1}return this.negative!==0?0|-w:w},n.prototype.cmp=function(C){if(this.negative!==0&&C.negative===0)return-1;if(this.negative===0&&C.negative!==0)return 1;var w=this.ucmp(C);return this.negative!==0?0|-w:w},n.prototype.ucmp=function(C){if(this.length>C.length)return 1;if(this.length<C.length)return-1;for(var w=0,S=this.length-1;S>=0;S--){var _=0|this.words[S],k=0|C.words[S];if(_!==k){_<k?w=-1:_>k&&(w=1);break}}return w},n.prototype.gtn=function(C){return this.cmpn(C)===1},n.prototype.gt=function(C){return this.cmp(C)===1},n.prototype.gten=function(C){return this.cmpn(C)>=0},n.prototype.gte=function(C){return this.cmp(C)>=0},n.prototype.ltn=function(C){return this.cmpn(C)===-1},n.prototype.lt=function(C){return this.cmp(C)===-1},n.prototype.lten=function(C){return this.cmpn(C)<=0},n.prototype.lte=function(C){return this.cmp(C)<=0},n.prototype.eqn=function(C){return this.cmpn(C)===0},n.prototype.eq=function(C){return this.cmp(C)===0},n.red=function(C){return new N(C)},n.prototype.toRed=function(C){return l(!this.red,"Already a number in reduction context"),l(this.negative===0,"red works only with positives"),C.convertTo(this)._forceRed(C)},n.prototype.fromRed=function(){return l(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(C){return this.red=C,this},n.prototype.forceRed=function(C){return l(!this.red,"Already a number in reduction context"),this._forceRed(C)},n.prototype.redAdd=function(C){return l(this.red,"redAdd works only with red numbers"),this.red.add(this,C)},n.prototype.redIAdd=function(C){return l(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,C)},n.prototype.redSub=function(C){return l(this.red,"redSub works only with red numbers"),this.red.sub(this,C)},n.prototype.redISub=function(C){return l(this.red,"redISub works only with red numbers"),this.red.isub(this,C)},n.prototype.redShl=function(C){return l(this.red,"redShl works only with red numbers"),this.red.shl(this,C)},n.prototype.redMul=function(C){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.mul(this,C)},n.prototype.redIMul=function(C){return l(this.red,"redMul works only with red numbers"),this.red._verify2(this,C),this.red.imul(this,C)},n.prototype.redSqr=function(){return l(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return l(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return l(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return l(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return l(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(C){return l(this.red&&!C.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,C)};var W={k256:null,p224:null,p192:null,p25519:null};function R(C,w){this.name=C,this.p=new n(w,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function F(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function $(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function z(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function D(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(C){if(typeof C=="string"){var w=n._prime(C);this.m=w.p,this.prime=w}else l(C.gtn(1),"modulus must be greater than 1"),this.m=C,this.prime=null}function E(C){N.call(this,C),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}R.prototype._tmp=function(){var C=new n(null);return C.words=new Array(Math.ceil(this.n/13)),C},R.prototype.ireduce=function(C){var w,S=C;do this.split(S,this.tmp),w=(S=(S=this.imulK(S)).iadd(this.tmp)).bitLength();while(w>this.n);var _=w<this.n?-1:S.ucmp(this.p);return _===0?(S.words[0]=0,S.length=1):_>0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},R.prototype.split=function(C,w){C.iushrn(this.n,0,w)},R.prototype.imulK=function(C){return C.imul(this.k)},a(F,R),F.prototype.split=function(C,w){for(var S=Math.min(C.length,9),_=0;_<S;_++)w.words[_]=C.words[_];if(w.length=S,C.length<=9)return C.words[0]=0,void(C.length=1);var k=C.words[9];for(w.words[w.length++]=4194303&k,_=10;_<C.length;_++){var T=0|C.words[_];C.words[_-10]=(4194303&T)<<4|k>>>22,k=T}k>>>=22,C.words[_-10]=k,k===0&&C.length>10?C.length-=10:C.length-=9},F.prototype.imulK=function(C){C.words[C.length]=0,C.words[C.length+1]=0,C.length+=2;for(var w=0,S=0;S<C.length;S++){var _=0|C.words[S];w+=977*_,C.words[S]=67108863&w,w=64*_+(w/67108864|0)}return C.words[C.length-1]===0&&(C.length--,C.words[C.length-1]===0&&C.length--),C},a($,R),a(z,R),a(D,R),D.prototype.imulK=function(C){for(var w=0,S=0;S<C.length;S++){var _=19*(0|C.words[S])+w,k=67108863&_;_>>>=26,C.words[S]=k,w=_}return w!==0&&(C.words[C.length++]=w),C},n._prime=function(C){if(W[C])return W[C];var w;if(C==="k256")w=new F;else if(C==="p224")w=new $;else if(C==="p192")w=new z;else{if(C!=="p25519")throw new Error("Unknown prime "+C);w=new D}return W[C]=w,w},N.prototype._verify1=function(C){l(C.negative===0,"red works only with positives"),l(C.red,"red works only with red numbers")},N.prototype._verify2=function(C,w){l((C.negative|w.negative)==0,"red works only with positives"),l(C.red&&C.red===w.red,"red works only with red numbers")},N.prototype.imod=function(C){return this.prime?this.prime.ireduce(C)._forceRed(this):(m(C,C.umod(this.m)._forceRed(this)),C)},N.prototype.neg=function(C){return C.isZero()?C.clone():this.m.sub(C)._forceRed(this)},N.prototype.add=function(C,w){this._verify2(C,w);var S=C.add(w);return S.cmp(this.m)>=0&&S.isub(this.m),S._forceRed(this)},N.prototype.iadd=function(C,w){this._verify2(C,w);var S=C.iadd(w);return S.cmp(this.m)>=0&&S.isub(this.m),S},N.prototype.sub=function(C,w){this._verify2(C,w);var S=C.sub(w);return S.cmpn(0)<0&&S.iadd(this.m),S._forceRed(this)},N.prototype.isub=function(C,w){this._verify2(C,w);var S=C.isub(w);return S.cmpn(0)<0&&S.iadd(this.m),S},N.prototype.shl=function(C,w){return this._verify1(C),this.imod(C.ushln(w))},N.prototype.imul=function(C,w){return this._verify2(C,w),this.imod(C.imul(w))},N.prototype.mul=function(C,w){return this._verify2(C,w),this.imod(C.mul(w))},N.prototype.isqr=function(C){return this.imul(C,C.clone())},N.prototype.sqr=function(C){return this.mul(C,C)},N.prototype.sqrt=function(C){if(C.isZero())return C.clone();var w=this.m.andln(3);if(l(w%2==1),w===3){var S=this.m.add(new n(1)).iushrn(2);return this.pow(C,S)}for(var _=this.m.subn(1),k=0;!_.isZero()&&_.andln(1)===0;)k++,_.iushrn(1);l(!_.isZero());var T=new n(1).toRed(this),j=T.redNeg(),P=this.m.subn(1).iushrn(1),U=this.m.bitLength();for(U=new n(2*U*U).toRed(this);this.pow(U,P).cmp(j)!==0;)U.redIAdd(j);for(var q=this.pow(U,_),Z=this.pow(C,_.addn(1).iushrn(1)),B=this.pow(C,_),X=k;B.cmp(T)!==0;){for(var L=B,I=0;L.cmp(T)!==0;I++)L=L.redSqr();l(I<X);var G=this.pow(q,new n(1).iushln(X-I-1));Z=Z.redMul(G),q=G.redSqr(),B=B.redMul(q),X=I}return Z},N.prototype.invm=function(C){var w=C._invmp(this.m);return w.negative!==0?(w.negative=0,this.imod(w).redNeg()):this.imod(w)},N.prototype.pow=function(C,w){if(w.isZero())return new n(1).toRed(this);if(w.cmpn(1)===0)return C.clone();var S=new Array(16);S[0]=new n(1).toRed(this),S[1]=C;for(var _=2;_<S.length;_++)S[_]=this.mul(S[_-1],C);var k=S[0],T=0,j=0,P=w.bitLength()%26;for(P===0&&(P=26),_=w.length-1;_>=0;_--){for(var U=w.words[_],q=P-1;q>=0;q--){var Z=U>>q&1;k!==S[0]&&(k=this.sqr(k)),Z!==0||T!==0?(T<<=1,T|=Z,(++j===4||_===0&&q===0)&&(k=this.mul(k,S[T]),j=0,T=0)):j=0}P=26}return k},N.prototype.convertTo=function(C){var w=C.umod(this.m);return w===C?w.clone():w},N.prototype.convertFrom=function(C){var w=C.clone();return w.red=null,w},n.mont=function(C){return new E(C)},a(E,N),E.prototype.convertTo=function(C){return this.imod(C.ushln(this.shift))},E.prototype.convertFrom=function(C){var w=this.imod(C.mul(this.rinv));return w.red=null,w},E.prototype.imul=function(C,w){if(C.isZero()||w.isZero())return C.words[0]=0,C.length=1,C;var S=C.imul(w),_=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=S.isub(_).iushrn(this.shift),T=k;return k.cmp(this.m)>=0?T=k.isub(this.m):k.cmpn(0)<0&&(T=k.iadd(this.m)),T._forceRed(this)},E.prototype.mul=function(C,w){if(C.isZero()||w.isZero())return new n(0)._forceRed(this);var S=C.mul(w),_=S.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=S.isub(_).iushrn(this.shift),T=k;return k.cmp(this.m)>=0?T=k.isub(this.m):k.cmpn(0)<0&&(T=k.iadd(this.m)),T._forceRed(this)},E.prototype.invm=function(C){return this.imod(C._invmp(this.m).mul(this.r2))._forceRed(this)}})(s===void 0||s)},{buffer:188}],187:[function(e,s,c){var r;function o(a){this.rand=a}if(s.exports=function(a){return r||(r=new o(null)),r.generate(a)},s.exports.Rand=o,o.prototype.generate=function(a){return this._rand(a)},o.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var n=new Uint8Array(a),u=0;u<n.length;u++)n[u]=this.rand.getByte();return n},typeof self=="object")self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(a){var n=new Uint8Array(a);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(a){var n=new Uint8Array(a);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var l=e("crypto");if(typeof l.randomBytes!="function")throw new Error("Not supported");o.prototype._rand=function(a){return l.randomBytes(a)}}catch{}},{crypto:188}],188:[function(e,s,c){},{}],189:[function(e,s,c){var r=e("safe-buffer").Buffer;function o(d){r.isBuffer(d)||(d=r.from(d));for(var f=d.length/4|0,m=new Array(f),g=0;g<f;g++)m[g]=d.readUInt32BE(4*g);return m}function l(d){for(;0<d.length;d++)d[0]=0}function a(d,f,m,g,p){for(var v,b,x,A,M=m[0],V=m[1],W=m[2],R=m[3],F=d[0]^f[0],$=d[1]^f[1],z=d[2]^f[2],D=d[3]^f[3],N=4,E=1;E<p;E++)v=M[F>>>24]^V[$>>>16&255]^W[z>>>8&255]^R[255&D]^f[N++],b=M[$>>>24]^V[z>>>16&255]^W[D>>>8&255]^R[255&F]^f[N++],x=M[z>>>24]^V[D>>>16&255]^W[F>>>8&255]^R[255&$]^f[N++],A=M[D>>>24]^V[F>>>16&255]^W[$>>>8&255]^R[255&z]^f[N++],F=v,$=b,z=x,D=A;return v=(g[F>>>24]<<24|g[$>>>16&255]<<16|g[z>>>8&255]<<8|g[255&D])^f[N++],b=(g[$>>>24]<<24|g[z>>>16&255]<<16|g[D>>>8&255]<<8|g[255&F])^f[N++],x=(g[z>>>24]<<24|g[D>>>16&255]<<16|g[F>>>8&255]<<8|g[255&$])^f[N++],A=(g[D>>>24]<<24|g[F>>>16&255]<<16|g[$>>>8&255]<<8|g[255&z])^f[N++],[v>>>=0,b>>>=0,x>>>=0,A>>>=0]}var n=[0,1,2,4,8,16,32,64,128,27,54],u=(function(){for(var d=new Array(256),f=0;f<256;f++)d[f]=f<128?f<<1:f<<1^283;for(var m=[],g=[],p=[[],[],[],[]],v=[[],[],[],[]],b=0,x=0,A=0;A<256;++A){var M=x^x<<1^x<<2^x<<3^x<<4;M=M>>>8^255&M^99,m[b]=M,g[M]=b;var V=d[b],W=d[V],R=d[W],F=257*d[M]^16843008*M;p[0][b]=F<<24|F>>>8,p[1][b]=F<<16|F>>>16,p[2][b]=F<<8|F>>>24,p[3][b]=F,F=16843009*R^65537*W^257*V^16843008*b,v[0][M]=F<<24|F>>>8,v[1][M]=F<<16|F>>>16,v[2][M]=F<<8|F>>>24,v[3][M]=F,b===0?b=x=1:(b=V^d[d[d[R^V]]],x^=d[d[x]])}return{SBOX:m,INV_SBOX:g,SUB_MIX:p,INV_SUB_MIX:v}})();function h(d){this._key=o(d),this._reset()}h.blockSize=16,h.keySize=32,h.prototype.blockSize=h.blockSize,h.prototype.keySize=h.keySize,h.prototype._reset=function(){for(var d=this._key,f=d.length,m=f+6,g=4*(m+1),p=[],v=0;v<f;v++)p[v]=d[v];for(v=f;v<g;v++){var b=p[v-1];v%f==0?(b=b<<8|b>>>24,b=u.SBOX[b>>>24]<<24|u.SBOX[b>>>16&255]<<16|u.SBOX[b>>>8&255]<<8|u.SBOX[255&b],b^=n[v/f|0]<<24):f>6&&v%f==4&&(b=u.SBOX[b>>>24]<<24|u.SBOX[b>>>16&255]<<16|u.SBOX[b>>>8&255]<<8|u.SBOX[255&b]),p[v]=p[v-f]^b}for(var x=[],A=0;A<g;A++){var M=g-A,V=p[M-(A%4?0:4)];x[A]=A<4||M<=4?V:u.INV_SUB_MIX[0][u.SBOX[V>>>24]]^u.INV_SUB_MIX[1][u.SBOX[V>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[V>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&V]]}this._nRounds=m,this._keySchedule=p,this._invKeySchedule=x},h.prototype.encryptBlockRaw=function(d){return a(d=o(d),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},h.prototype.encryptBlock=function(d){var f=this.encryptBlockRaw(d),m=r.allocUnsafe(16);return m.writeUInt32BE(f[0],0),m.writeUInt32BE(f[1],4),m.writeUInt32BE(f[2],8),m.writeUInt32BE(f[3],12),m},h.prototype.decryptBlock=function(d){var f=(d=o(d))[1];d[1]=d[3],d[3]=f;var m=a(d,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),g=r.allocUnsafe(16);return g.writeUInt32BE(m[0],0),g.writeUInt32BE(m[3],4),g.writeUInt32BE(m[2],8),g.writeUInt32BE(m[1],12),g},h.prototype.scrub=function(){l(this._keySchedule),l(this._invKeySchedule),l(this._key)},s.exports.AES=h},{"safe-buffer":494}],190:[function(e,s,c){var r=e("./aes"),o=e("safe-buffer").Buffer,l=e("cipher-base"),a=e("inherits"),n=e("./ghash"),u=e("buffer-xor"),h=e("./incr32");function d(f,m,g,p){l.call(this);var v=o.alloc(4,0);this._cipher=new r.AES(m);var b=this._cipher.encryptBlock(v);this._ghash=new n(b),g=(function(x,A,M){if(A.length===12)return x._finID=o.concat([A,o.from([0,0,0,1])]),o.concat([A,o.from([0,0,0,2])]);var V=new n(M),W=A.length,R=W%16;V.update(A),R&&(R=16-R,V.update(o.alloc(R,0))),V.update(o.alloc(8,0));var F=8*W,$=o.alloc(8);$.writeUIntBE(F,0,8),V.update($),x._finID=V.state;var z=o.from(x._finID);return h(z),z})(this,g,b),this._prev=o.from(g),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=p,this._alen=0,this._len=0,this._mode=f,this._authTag=null,this._called=!1}a(d,l),d.prototype._update=function(f){if(!this._called&&this._alen){var m=16-this._alen%16;m<16&&(m=o.alloc(m,0),this._ghash.update(m))}this._called=!0;var g=this._mode.encrypt(this,f);return this._decrypt?this._ghash.update(f):this._ghash.update(g),this._len+=f.length,g},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var f=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&(function(m,g){var p=0;m.length!==g.length&&p++;for(var v=Math.min(m.length,g.length),b=0;b<v;++b)p+=m[b]^g[b];return p})(f,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=f,this._cipher.scrub()},d.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},d.prototype.setAuthTag=function(f){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=f},d.prototype.setAAD=function(f){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(f),this._alen+=f.length},s.exports=d},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,s,c){var r=e("./encrypter"),o=e("./decrypter"),l=e("./modes/list.json");c.createCipher=c.Cipher=r.createCipher,c.createCipheriv=c.Cipheriv=r.createCipheriv,c.createDecipher=c.Decipher=o.createDecipher,c.createDecipheriv=c.Decipheriv=o.createDecipheriv,c.listCiphers=c.getCiphers=function(){return Object.keys(l)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,s,c){var r=e("./authCipher"),o=e("safe-buffer").Buffer,l=e("./modes"),a=e("./streamCipher"),n=e("cipher-base"),u=e("./aes"),h=e("evp_bytestokey");function d(g,p,v){n.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(p),this._prev=o.from(v),this._mode=g,this._autopadding=!0}function f(){this.cache=o.allocUnsafe(0)}function m(g,p,v){var b=l[g.toLowerCase()];if(!b)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=o.from(v)),b.mode!=="GCM"&&v.length!==b.iv)throw new TypeError("invalid iv length "+v.length);if(typeof p=="string"&&(p=o.from(p)),p.length!==b.key/8)throw new TypeError("invalid key length "+p.length);return b.type==="stream"?new a(b.module,p,v,!0):b.type==="auth"?new r(b.module,p,v,!0):new d(b.module,p,v)}e("inherits")(d,n),d.prototype._update=function(g){var p,v;this._cache.add(g);for(var b=[];p=this._cache.get(this._autopadding);)v=this._mode.decrypt(this,p),b.push(v);return o.concat(b)},d.prototype._final=function(){var g=this._cache.flush();if(this._autopadding)return(function(p){var v=p[15];if(v<1||v>16)throw new Error("unable to decrypt data");for(var b=-1;++b<v;)if(p[b+(16-v)]!==v)throw new Error("unable to decrypt data");if(v!==16)return p.slice(0,16-v)})(this._mode.decrypt(this,g));if(g)throw new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(g){return this._autopadding=!!g,this},f.prototype.add=function(g){this.cache=o.concat([this.cache,g])},f.prototype.get=function(g){var p;if(g){if(this.cache.length>16)return p=this.cache.slice(0,16),this.cache=this.cache.slice(16),p}else if(this.cache.length>=16)return p=this.cache.slice(0,16),this.cache=this.cache.slice(16),p;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},c.createDecipher=function(g,p){var v=l[g.toLowerCase()];if(!v)throw new TypeError("invalid suite type");var b=h(p,!1,v.key,v.iv);return m(g,b.key,b.iv)},c.createDecipheriv=m},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,s,c){var r=e("./modes"),o=e("./authCipher"),l=e("safe-buffer").Buffer,a=e("./streamCipher"),n=e("cipher-base"),u=e("./aes"),h=e("evp_bytestokey");function d(p,v,b){n.call(this),this._cache=new m,this._cipher=new u.AES(v),this._prev=l.from(b),this._mode=p,this._autopadding=!0}e("inherits")(d,n),d.prototype._update=function(p){var v,b;this._cache.add(p);for(var x=[];v=this._cache.get();)b=this._mode.encrypt(this,v),x.push(b);return l.concat(x)};var f=l.alloc(16,16);function m(){this.cache=l.allocUnsafe(0)}function g(p,v,b){var x=r[p.toLowerCase()];if(!x)throw new TypeError("invalid suite type");if(typeof v=="string"&&(v=l.from(v)),v.length!==x.key/8)throw new TypeError("invalid key length "+v.length);if(typeof b=="string"&&(b=l.from(b)),x.mode!=="GCM"&&b.length!==x.iv)throw new TypeError("invalid iv length "+b.length);return x.type==="stream"?new a(x.module,v,b):x.type==="auth"?new o(x.module,v,b):new d(x.module,v,b)}d.prototype._final=function(){var p=this._cache.flush();if(this._autopadding)return p=this._mode.encrypt(this,p),this._cipher.scrub(),p;if(!p.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(p){return this._autopadding=!!p,this},m.prototype.add=function(p){this.cache=l.concat([this.cache,p])},m.prototype.get=function(){if(this.cache.length>15){var p=this.cache.slice(0,16);return this.cache=this.cache.slice(16),p}return null},m.prototype.flush=function(){for(var p=16-this.cache.length,v=l.allocUnsafe(p),b=-1;++b<p;)v.writeUInt8(p,b);return l.concat([this.cache,v])},c.createCipheriv=g,c.createCipher=function(p,v){var b=r[p.toLowerCase()];if(!b)throw new TypeError("invalid suite type");var x=h(v,!1,b.key,b.iv);return g(p,x.key,x.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,s,c){var r=e("safe-buffer").Buffer,o=r.alloc(16,0);function l(n){var u=r.allocUnsafe(16);return u.writeUInt32BE(n[0]>>>0,0),u.writeUInt32BE(n[1]>>>0,4),u.writeUInt32BE(n[2]>>>0,8),u.writeUInt32BE(n[3]>>>0,12),u}function a(n){this.h=n,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(n){for(var u=-1;++u<n.length;)this.state[u]^=n[u];this._multiply()},a.prototype._multiply=function(){for(var n,u,h,d=[(n=this.h).readUInt32BE(0),n.readUInt32BE(4),n.readUInt32BE(8),n.readUInt32BE(12)],f=[0,0,0,0],m=-1;++m<128;){for((this.state[~~(m/8)]&1<<7-m%8)!=0&&(f[0]^=d[0],f[1]^=d[1],f[2]^=d[2],f[3]^=d[3]),h=(1&d[3])!=0,u=3;u>0;u--)d[u]=d[u]>>>1|(1&d[u-1])<<31;d[0]=d[0]>>>1,h&&(d[0]=d[0]^225<<24)}this.state=l(f)},a.prototype.update=function(n){var u;for(this.cache=r.concat([this.cache,n]);this.cache.length>=16;)u=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(u)},a.prototype.final=function(n,u){return this.cache.length&&this.ghash(r.concat([this.cache,o],16)),this.ghash(l([0,n,0,u])),this.state},s.exports=a},{"safe-buffer":494}],195:[function(e,s,c){s.exports=function(r){for(var o,l=r.length;l--;){if((o=r.readUInt8(l))!==255){o++,r.writeUInt8(o,l);break}r.writeUInt8(0,l)}}},{}],196:[function(e,s,c){var r=e("buffer-xor");c.encrypt=function(o,l){var a=r(l,o._prev);return o._prev=o._cipher.encryptBlock(a),o._prev},c.decrypt=function(o,l){var a=o._prev;o._prev=l;var n=o._cipher.decryptBlock(l);return r(n,a)}},{"buffer-xor":219}],197:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("buffer-xor");function l(a,n,u){var h=n.length,d=o(n,a._cache);return a._cache=a._cache.slice(h),a._prev=r.concat([a._prev,u?n:d]),d}c.encrypt=function(a,n,u){for(var h,d=r.allocUnsafe(0);n.length;){if(a._cache.length===0&&(a._cache=a._cipher.encryptBlock(a._prev),a._prev=r.allocUnsafe(0)),!(a._cache.length<=n.length)){d=r.concat([d,l(a,n,u)]);break}h=a._cache.length,d=r.concat([d,l(a,n.slice(0,h),u)]),n=n.slice(h)}return d}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,s,c){var r=e("safe-buffer").Buffer;function o(a,n,u){for(var h,d,f=-1,m=0;++f<8;)h=n&1<<7-f?128:0,m+=(128&(d=a._cipher.encryptBlock(a._prev)[0]^h))>>f%8,a._prev=l(a._prev,u?h:d);return m}function l(a,n){var u=a.length,h=-1,d=r.allocUnsafe(a.length);for(a=r.concat([a,r.from([n])]);++h<u;)d[h]=a[h]<<1|a[h+1]>>7;return d}c.encrypt=function(a,n,u){for(var h=n.length,d=r.allocUnsafe(h),f=-1;++f<h;)d[f]=o(a,n[f],u);return d}},{"safe-buffer":494}],199:[function(e,s,c){var r=e("safe-buffer").Buffer;function o(l,a,n){var u=l._cipher.encryptBlock(l._prev)[0]^a;return l._prev=r.concat([l._prev.slice(1),r.from([n?a:u])]),u}c.encrypt=function(l,a,n){for(var u=a.length,h=r.allocUnsafe(u),d=-1;++d<u;)h[d]=o(l,a[d],n);return h}},{"safe-buffer":494}],200:[function(e,s,c){var r=e("buffer-xor"),o=e("safe-buffer").Buffer,l=e("../incr32");function a(n){var u=n._cipher.encryptBlockRaw(n._prev);return l(n._prev),u}c.encrypt=function(n,u){var h=Math.ceil(u.length/16),d=n._cache.length;n._cache=o.concat([n._cache,o.allocUnsafe(16*h)]);for(var f=0;f<h;f++){var m=a(n),g=d+16*f;n._cache.writeUInt32BE(m[0],g+0),n._cache.writeUInt32BE(m[1],g+4),n._cache.writeUInt32BE(m[2],g+8),n._cache.writeUInt32BE(m[3],g+12)}var p=n._cache.slice(0,u.length);return n._cache=n._cache.slice(u.length),r(u,p)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,s,c){c.encrypt=function(r,o){return r._cipher.encryptBlock(o)},c.decrypt=function(r,o){return r._cipher.decryptBlock(o)}},{}],202:[function(e,s,c){var r={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},o=e("./list.json");for(var l in o)o[l].module=r[o[l].mode];s.exports=o},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,s,c){s.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],204:[function(e,s,c){(function(r){(function(){var o=e("buffer-xor");function l(a){return a._prev=a._cipher.encryptBlock(a._prev),a._prev}c.encrypt=function(a,n){for(;a._cache.length<n.length;)a._cache=r.concat([a._cache,l(a)]);var u=a._cache.slice(0,n.length);return a._cache=a._cache.slice(n.length),o(n,u)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,s,c){var r=e("./aes"),o=e("safe-buffer").Buffer,l=e("cipher-base");function a(n,u,h,d){l.call(this),this._cipher=new r.AES(u),this._prev=o.from(h),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=d,this._mode=n}e("inherits")(a,l),a.prototype._update=function(n){return this._mode.encrypt(this,n,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},s.exports=a},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,s,c){var r=e("browserify-des"),o=e("browserify-aes/browser"),l=e("browserify-aes/modes"),a=e("browserify-des/modes"),n=e("evp_bytestokey");function u(d,f,m){if(d=d.toLowerCase(),l[d])return o.createCipheriv(d,f,m);if(a[d])return new r({key:f,iv:m,mode:d});throw new TypeError("invalid suite type")}function h(d,f,m){if(d=d.toLowerCase(),l[d])return o.createDecipheriv(d,f,m);if(a[d])return new r({key:f,iv:m,mode:d,decrypt:!0});throw new TypeError("invalid suite type")}c.createCipher=c.Cipher=function(d,f){var m,g;if(d=d.toLowerCase(),l[d])m=l[d].key,g=l[d].iv;else{if(!a[d])throw new TypeError("invalid suite type");m=8*a[d].key,g=a[d].iv}var p=n(f,!1,m,g);return u(d,p.key,p.iv)},c.createCipheriv=c.Cipheriv=u,c.createDecipher=c.Decipher=function(d,f){var m,g;if(d=d.toLowerCase(),l[d])m=l[d].key,g=l[d].iv;else{if(!a[d])throw new TypeError("invalid suite type");m=8*a[d].key,g=a[d].iv}var p=n(f,!1,m,g);return h(d,p.key,p.iv)},c.createDecipheriv=c.Decipheriv=h,c.listCiphers=c.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,s,c){var r=e("cipher-base"),o=e("des.js"),l=e("inherits"),a=e("safe-buffer").Buffer,n={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function u(h){r.call(this);var d,f=h.mode.toLowerCase(),m=n[f];d=h.decrypt?"decrypt":"encrypt";var g=h.key;a.isBuffer(g)||(g=a.from(g)),f!=="des-ede"&&f!=="des-ede-cbc"||(g=a.concat([g,g.slice(0,8)]));var p=h.iv;a.isBuffer(p)||(p=a.from(p)),this._des=m.create({key:g,iv:p,type:d})}n.des=n["des-cbc"],n.des3=n["des-ede3-cbc"],s.exports=u,l(u,r),u.prototype._update=function(h){return a.from(this._des.update(h))},u.prototype._final=function(){return a.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,s,c){c["des-ecb"]={key:8,iv:0},c["des-cbc"]=c.des={key:8,iv:8},c["des-ede3-cbc"]=c.des3={key:24,iv:8},c["des-ede3"]={key:24,iv:0},c["des-ede-cbc"]={key:16,iv:8},c["des-ede"]={key:16,iv:0}},{}],209:[function(e,s,c){(function(r){(function(){var o=e("bn.js"),l=e("randombytes");function a(u){var h,d=u.modulus.byteLength();do h=new o(l(d));while(h.cmp(u.modulus)>=0||!h.umod(u.prime1)||!h.umod(u.prime2));return h}function n(u,h){var d=(function(W){var R=a(W);return{blinder:R.toRed(o.mont(W.modulus)).redPow(new o(W.publicExponent)).fromRed(),unblinder:R.invm(W.modulus)}})(h),f=h.modulus.byteLength(),m=new o(u).mul(d.blinder).umod(h.modulus),g=m.toRed(o.mont(h.prime1)),p=m.toRed(o.mont(h.prime2)),v=h.coefficient,b=h.prime1,x=h.prime2,A=g.redPow(h.exponent1).fromRed(),M=p.redPow(h.exponent2).fromRed(),V=A.isub(M).imul(v).umod(b).imul(x);return M.iadd(V).imul(d.unblinder).umod(h.modulus).toArrayLike(r,"be",f)}n.getr=a,s.exports=n}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,s,c){s.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,s,c){s.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],212:[function(e,s,c){s.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],213:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("create-hash"),l=e("readable-stream"),a=e("inherits"),n=e("./sign"),u=e("./verify"),h=e("./algorithms.json");function d(p){l.Writable.call(this);var v=h[p];if(!v)throw new Error("Unknown message digest");this._hashType=v.hash,this._hash=o(v.hash),this._tag=v.id,this._signType=v.sign}function f(p){l.Writable.call(this);var v=h[p];if(!v)throw new Error("Unknown message digest");this._hash=o(v.hash),this._tag=v.id,this._signType=v.sign}function m(p){return new d(p)}function g(p){return new f(p)}Object.keys(h).forEach((function(p){h[p].id=r.from(h[p].id,"hex"),h[p.toLowerCase()]=h[p]})),a(d,l.Writable),d.prototype._write=function(p,v,b){this._hash.update(p),b()},d.prototype.update=function(p,v){return typeof p=="string"&&(p=r.from(p,v)),this._hash.update(p),this},d.prototype.sign=function(p,v){this.end();var b=this._hash.digest(),x=n(b,p,this._hashType,this._signType,this._tag);return v?x.toString(v):x},a(f,l.Writable),f.prototype._write=function(p,v,b){this._hash.update(p),b()},f.prototype.update=function(p,v){return typeof p=="string"&&(p=r.from(p,v)),this._hash.update(p),this},f.prototype.verify=function(p,v,b){typeof v=="string"&&(v=r.from(v,b)),this.end();var x=this._hash.digest();return u(v,x,p,this._signType,this._tag)},s.exports={Sign:m,Verify:g,createSign:m,createVerify:g}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("create-hmac"),l=e("browserify-rsa"),a=e("elliptic").ec,n=e("bn.js"),u=e("parse-asn1"),h=e("./curves.json");function d(p,v,b,x){if((p=r.from(p.toArray())).length<v.byteLength()){var A=r.alloc(v.byteLength()-p.length);p=r.concat([A,p])}var M=b.length,V=(function(F,$){F=(F=f(F,$)).mod($);var z=r.from(F.toArray());if(z.length<$.byteLength()){var D=r.alloc($.byteLength()-z.length);z=r.concat([D,z])}return z})(b,v),W=r.alloc(M);W.fill(1);var R=r.alloc(M);return R=o(x,R).update(W).update(r.from([0])).update(p).update(V).digest(),W=o(x,R).update(W).digest(),{k:R=o(x,R).update(W).update(r.from([1])).update(p).update(V).digest(),v:W=o(x,R).update(W).digest()}}function f(p,v){var b=new n(p),x=(p.length<<3)-v.bitLength();return x>0&&b.ishrn(x),b}function m(p,v,b){var x,A;do{for(x=r.alloc(0);8*x.length<p.bitLength();)v.v=o(b,v.k).update(v.v).digest(),x=r.concat([x,v.v]);A=f(x,p),v.k=o(b,v.k).update(v.v).update(r.from([0])).digest(),v.v=o(b,v.k).update(v.v).digest()}while(A.cmp(p)!==-1);return A}function g(p,v,b,x){return p.toRed(n.mont(b)).redPow(v).fromRed().mod(x)}s.exports=function(p,v,b,x,A){var M=u(v);if(M.curve){if(x!=="ecdsa"&&x!=="ecdsa/rsa")throw new Error("wrong private key type");return(function(F,$){var z=h[$.curve.join(".")];if(!z)throw new Error("unknown curve "+$.curve.join("."));var D=new a(z).keyFromPrivate($.privateKey).sign(F);return r.from(D.toDER())})(p,M)}if(M.type==="dsa"){if(x!=="dsa")throw new Error("wrong private key type");return(function(F,$,z){for(var D,N=$.params.priv_key,E=$.params.p,C=$.params.q,w=$.params.g,S=new n(0),_=f(F,C).mod(C),k=!1,T=d(N,C,F,z);k===!1;)D=m(C,T,z),S=g(w,D,E,C),(k=D.invm(C).imul(_.add(N.mul(S))).mod(C)).cmpn(0)===0&&(k=!1,S=new n(0));return(function(j,P){j=j.toArray(),P=P.toArray(),128&j[0]&&(j=[0].concat(j)),128&P[0]&&(P=[0].concat(P));var U=[48,j.length+P.length+4,2,j.length];return U=U.concat(j,[2,P.length],P),r.from(U)})(S,k)})(p,M,b)}if(x!=="rsa"&&x!=="ecdsa/rsa")throw new Error("wrong private key type");p=r.concat([A,p]);for(var V=M.modulus.byteLength(),W=[0,1];p.length+W.length+1<V;)W.push(255);W.push(0);for(var R=-1;++R<p.length;)W.push(p[R]);return l(W,M)},s.exports.getKey=d,s.exports.makeKey=m},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("bn.js"),l=e("elliptic").ec,a=e("parse-asn1"),n=e("./curves.json");function u(h,d){if(h.cmpn(0)<=0)throw new Error("invalid sig");if(h.cmp(d)>=d)throw new Error("invalid sig")}s.exports=function(h,d,f,m,g){var p=a(f);if(p.type==="ec"){if(m!=="ecdsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");return(function(W,R,F){var $=n[F.data.algorithm.curve.join(".")];if(!$)throw new Error("unknown curve "+F.data.algorithm.curve.join("."));var z=new l($),D=F.data.subjectPrivateKey.data;return z.verify(R,W,D)})(h,d,p)}if(p.type==="dsa"){if(m!=="dsa")throw new Error("wrong public key type");return(function(W,R,F){var $=F.data.p,z=F.data.q,D=F.data.g,N=F.data.pub_key,E=a.signature.decode(W,"der"),C=E.s,w=E.r;u(C,z),u(w,z);var S=o.mont($),_=C.invm(z);return D.toRed(S).redPow(new o(R).mul(_).mod(z)).fromRed().mul(N.toRed(S).redPow(w.mul(_).mod(z)).fromRed()).mod($).mod(z).cmp(w)===0})(h,d,p)}if(m!=="rsa"&&m!=="ecdsa/rsa")throw new Error("wrong public key type");d=r.concat([g,d]);for(var v=p.modulus.byteLength(),b=[1],x=0;d.length+b.length+2<v;)b.push(255),x++;b.push(0);for(var A=-1;++A<d.length;)b.push(d[A]);b=r.from(b);var M=o.mont(p.modulus);h=(h=new o(h).toRed(M)).redPow(new o(p.publicExponent)),h=r.from(h.fromRed().toArray());var V=x<8?1:0;for(v=Math.min(h.length,b.length),h.length!==b.length&&(V=1),A=-1;++A<v;)V|=h[A]^b[A];return V===0}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,s,c){},{}],217:[function(e,s,c){var r=e("buffer"),o=r.Buffer;function l(n,u){for(var h in n)u[h]=n[h]}function a(n,u,h){return o(n,u,h)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?s.exports=r:(l(r,c),c.Buffer=a),l(o,a),a.from=function(n,u,h){if(typeof n=="number")throw new TypeError("Argument must not be a number");return o(n,u,h)},a.alloc=function(n,u,h){if(typeof n!="number")throw new TypeError("Argument must be a number");var d=o(n);return u!==void 0?typeof h=="string"?d.fill(u,h):d.fill(u):d.fill(0),d},a.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return o(n)},a.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}},{buffer:220}],218:[function(e,s,c){var r=e("safe-buffer").Buffer,o=r.isEncoding||function(p){switch((p=""+p)&&p.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 l(p){var v;switch(this.encoding=(function(b){var x=(function(A){if(!A)return"utf8";for(var M;;)switch(A){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 A;default:if(M)return;A=(""+A).toLowerCase(),M=!0}})(b);if(typeof x!="string"&&(r.isEncoding===o||!o(b)))throw new Error("Unknown encoding: "+b);return x||b})(p),this.encoding){case"utf16le":this.text=u,this.end=h,v=4;break;case"utf8":this.fillLast=n,v=4;break;case"base64":this.text=d,this.end=f,v=3;break;default:return this.write=m,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(v)}function a(p){return p<=127?0:p>>5==6?2:p>>4==14?3:p>>3==30?4:p>>6==2?-1:-2}function n(p){var v=this.lastTotal-this.lastNeed,b=(function(x,A,M){if((192&A[0])!=128)return x.lastNeed=0,"�";if(x.lastNeed>1&&A.length>1){if((192&A[1])!=128)return x.lastNeed=1,"�";if(x.lastNeed>2&&A.length>2&&(192&A[2])!=128)return x.lastNeed=2,"�"}})(this,p);return b!==void 0?b:this.lastNeed<=p.length?(p.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(p.copy(this.lastChar,v,0,p.length),void(this.lastNeed-=p.length))}function u(p,v){if((p.length-v)%2==0){var b=p.toString("utf16le",v);if(b){var x=b.charCodeAt(b.length-1);if(x>=55296&&x<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1],b.slice(0,-1)}return b}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=p[p.length-1],p.toString("utf16le",v,p.length-1)}function h(p){var v=p&&p.length?this.write(p):"";if(this.lastNeed){var b=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,b)}return v}function d(p,v){var b=(p.length-v)%3;return b===0?p.toString("base64",v):(this.lastNeed=3-b,this.lastTotal=3,b===1?this.lastChar[0]=p[p.length-1]:(this.lastChar[0]=p[p.length-2],this.lastChar[1]=p[p.length-1]),p.toString("base64",v,p.length-b))}function f(p){var v=p&&p.length?this.write(p):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function m(p){return p.toString(this.encoding)}function g(p){return p&&p.length?this.write(p):""}c.StringDecoder=l,l.prototype.write=function(p){if(p.length===0)return"";var v,b;if(this.lastNeed){if((v=this.fillLast(p))===void 0)return"";b=this.lastNeed,this.lastNeed=0}else b=0;return b<p.length?v?v+this.text(p,b):this.text(p,b):v||""},l.prototype.end=function(p){var v=p&&p.length?this.write(p):"";return this.lastNeed?v+"�":v},l.prototype.text=function(p,v){var b=(function(A,M,V){var W=M.length-1;if(W<V)return 0;var R=a(M[W]);return R>=0?(R>0&&(A.lastNeed=R-1),R):--W<V||R===-2?0:(R=a(M[W]))>=0?(R>0&&(A.lastNeed=R-2),R):--W<V||R===-2?0:(R=a(M[W]))>=0?(R>0&&(R===2?R=0:A.lastNeed=R-3),R):0})(this,p,v);if(!this.lastNeed)return p.toString("utf8",v);this.lastTotal=b;var x=p.length-(b-this.lastNeed);return p.copy(this.lastChar,0,x),p.toString("utf8",v,x)},l.prototype.fillLast=function(p){if(this.lastNeed<=p.length)return p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);p.copy(this.lastChar,this.lastTotal-this.lastNeed,0,p.length),this.lastNeed-=p.length}},{"safe-buffer":217}],219:[function(e,s,c){(function(r){(function(){s.exports=function(o,l){for(var a=Math.min(o.length,l.length),n=new r(a),u=0;u<a;++u)n[u]=o[u]^l[u];return n}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,s,c){(function(r){(function(){var o=e("base64-js"),l=e("ieee754");c.Buffer=n,c.SlowBuffer=function(L){return+L!=L&&(L=0),n.alloc(+L)},c.INSPECT_MAX_BYTES=50;function a(L){if(L>2147483647)throw new RangeError('The value "'+L+'" is invalid for option "size"');var I=new Uint8Array(L);return I.__proto__=n.prototype,I}function n(L,I,G){if(typeof L=="number"){if(typeof I=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(L)}return u(L,I,G)}function u(L,I,G){if(typeof L=="string")return(function(te,re){if(typeof re=="string"&&re!==""||(re="utf8"),!n.isEncoding(re))throw new TypeError("Unknown encoding: "+re);var J=0|g(te,re),de=a(J),ne=de.write(te,re);return ne!==J&&(de=de.slice(0,ne)),de})(L,I);if(ArrayBuffer.isView(L))return f(L);if(L==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(B(L,ArrayBuffer)||L&&B(L.buffer,ArrayBuffer))return(function(te,re,J){if(re<0||te.byteLength<re)throw new RangeError('"offset" is outside of buffer bounds');if(te.byteLength<re+(J||0))throw new RangeError('"length" is outside of buffer bounds');var de;return de=re===void 0&&J===void 0?new Uint8Array(te):J===void 0?new Uint8Array(te,re):new Uint8Array(te,re,J),de.__proto__=n.prototype,de})(L,I,G);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ee=L.valueOf&&L.valueOf();if(ee!=null&&ee!==L)return n.from(ee,I,G);var se=(function(te){if(n.isBuffer(te)){var re=0|m(te.length),J=a(re);return J.length===0||te.copy(J,0,0,re),J}if(te.length!==void 0)return typeof te.length!="number"||X(te.length)?a(0):f(te);if(te.type==="Buffer"&&Array.isArray(te.data))return f(te.data)})(L);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return n.from(L[Symbol.toPrimitive]("string"),I,G);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function h(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function d(L){return h(L),a(L<0?0:0|m(L))}function f(L){for(var I=L.length<0?0:0|m(L.length),G=a(I),ee=0;ee<I;ee+=1)G[ee]=255&L[ee];return G}function m(L){if(L>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|L}function g(L,I){if(n.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||B(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);var G=L.length,ee=arguments.length>2&&arguments[2]===!0;if(!ee&&G===0)return 0;for(var se=!1;;)switch(I){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":return U(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*G;case"hex":return G>>>1;case"base64":return q(L).length;default:if(se)return ee?-1:U(L).length;I=(""+I).toLowerCase(),se=!0}}function p(L,I,G){var ee=!1;if((I===void 0||I<0)&&(I=0),I>this.length||((G===void 0||G>this.length)&&(G=this.length),G<=0)||(G>>>=0)<=(I>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return E(this,I,G);case"utf8":case"utf-8":return z(this,I,G);case"ascii":return D(this,I,G);case"latin1":case"binary":return N(this,I,G);case"base64":return $(this,I,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,I,G);default:if(ee)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),ee=!0}}function v(L,I,G){var ee=L[I];L[I]=L[G],L[G]=ee}function b(L,I,G,ee,se){if(L.length===0)return-1;if(typeof G=="string"?(ee=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),X(G=+G)&&(G=se?0:L.length-1),G<0&&(G=L.length+G),G>=L.length){if(se)return-1;G=L.length-1}else if(G<0){if(!se)return-1;G=0}if(typeof I=="string"&&(I=n.from(I,ee)),n.isBuffer(I))return I.length===0?-1:x(L,I,G,ee,se);if(typeof I=="number")return I&=255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(L,I,G):Uint8Array.prototype.lastIndexOf.call(L,I,G):x(L,[I],G,ee,se);throw new TypeError("val must be string, number or Buffer")}function x(L,I,G,ee,se){var te,re=1,J=L.length,de=I.length;if(ee!==void 0&&((ee=String(ee).toLowerCase())==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(L.length<2||I.length<2)return-1;re=2,J/=2,de/=2,G/=2}function ne(be,we){return re===1?be[we]:be.readUInt16BE(we*re)}if(se){var fe=-1;for(te=G;te<J;te++)if(ne(L,te)===ne(I,fe===-1?0:te-fe)){if(fe===-1&&(fe=te),te-fe+1===de)return fe*re}else fe!==-1&&(te-=te-fe),fe=-1}else for(G+de>J&&(G=J-de),te=G;te>=0;te--){for(var ue=!0,ye=0;ye<de;ye++)if(ne(L,te+ye)!==ne(I,ye)){ue=!1;break}if(ue)return te}return-1}function A(L,I,G,ee){G=Number(G)||0;var se=L.length-G;ee?(ee=Number(ee))>se&&(ee=se):ee=se;var te=I.length;ee>te/2&&(ee=te/2);for(var re=0;re<ee;++re){var J=parseInt(I.substr(2*re,2),16);if(X(J))return re;L[G+re]=J}return re}function M(L,I,G,ee){return Z(U(I,L.length-G),L,G,ee)}function V(L,I,G,ee){return Z((function(se){for(var te=[],re=0;re<se.length;++re)te.push(255&se.charCodeAt(re));return te})(I),L,G,ee)}function W(L,I,G,ee){return V(L,I,G,ee)}function R(L,I,G,ee){return Z(q(I),L,G,ee)}function F(L,I,G,ee){return Z((function(se,te){for(var re,J,de,ne=[],fe=0;fe<se.length&&!((te-=2)<0);++fe)re=se.charCodeAt(fe),J=re>>8,de=re%256,ne.push(de),ne.push(J);return ne})(I,L.length-G),L,G,ee)}function $(L,I,G){return I===0&&G===L.length?o.fromByteArray(L):o.fromByteArray(L.slice(I,G))}function z(L,I,G){G=Math.min(L.length,G);for(var ee=[],se=I;se<G;){var te,re,J,de,ne=L[se],fe=null,ue=ne>239?4:ne>223?3:ne>191?2:1;if(se+ue<=G)switch(ue){case 1:ne<128&&(fe=ne);break;case 2:(192&(te=L[se+1]))==128&&(de=(31&ne)<<6|63&te)>127&&(fe=de);break;case 3:te=L[se+1],re=L[se+2],(192&te)==128&&(192&re)==128&&(de=(15&ne)<<12|(63&te)<<6|63&re)>2047&&(de<55296||de>57343)&&(fe=de);break;case 4:te=L[se+1],re=L[se+2],J=L[se+3],(192&te)==128&&(192&re)==128&&(192&J)==128&&(de=(15&ne)<<18|(63&te)<<12|(63&re)<<6|63&J)>65535&&de<1114112&&(fe=de)}fe===null?(fe=65533,ue=1):fe>65535&&(fe-=65536,ee.push(fe>>>10&1023|55296),fe=56320|1023&fe),ee.push(fe),se+=ue}return(function(ye){var be=ye.length;if(be<=4096)return String.fromCharCode.apply(String,ye);for(var we="",Se=0;Se<be;)we+=String.fromCharCode.apply(String,ye.slice(Se,Se+=4096));return we})(ee)}c.kMaxLength=2147483647,n.TYPED_ARRAY_SUPPORT=(function(){try{var L=new Uint8Array(1);return L.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},L.foo()===42}catch{return!1}})(),n.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."),Object.defineProperty(n.prototype,"parent",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.buffer}}),Object.defineProperty(n.prototype,"offset",{enumerable:!0,get:function(){if(n.isBuffer(this))return this.byteOffset}}),typeof Symbol<"u"&&Symbol.species!=null&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),n.poolSize=8192,n.from=function(L,I,G){return u(L,I,G)},n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,n.alloc=function(L,I,G){return(function(ee,se,te){return h(ee),ee<=0?a(ee):se!==void 0?typeof te=="string"?a(ee).fill(se,te):a(ee).fill(se):a(ee)})(L,I,G)},n.allocUnsafe=function(L){return d(L)},n.allocUnsafeSlow=function(L){return d(L)},n.isBuffer=function(L){return L!=null&&L._isBuffer===!0&&L!==n.prototype},n.compare=function(L,I){if(B(L,Uint8Array)&&(L=n.from(L,L.offset,L.byteLength)),B(I,Uint8Array)&&(I=n.from(I,I.offset,I.byteLength)),!n.isBuffer(L)||!n.isBuffer(I))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(L===I)return 0;for(var G=L.length,ee=I.length,se=0,te=Math.min(G,ee);se<te;++se)if(L[se]!==I[se]){G=L[se],ee=I[se];break}return G<ee?-1:ee<G?1:0},n.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}},n.concat=function(L,I){if(!Array.isArray(L))throw new TypeError('"list" argument must be an Array of Buffers');if(L.length===0)return n.alloc(0);var G;if(I===void 0)for(I=0,G=0;G<L.length;++G)I+=L[G].length;var ee=n.allocUnsafe(I),se=0;for(G=0;G<L.length;++G){var te=L[G];if(B(te,Uint8Array)&&(te=n.from(te)),!n.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(ee,se),se+=te.length}return ee},n.byteLength=g,n.prototype._isBuffer=!0,n.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 I=0;I<L;I+=2)v(this,I,I+1);return this},n.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 I=0;I<L;I+=4)v(this,I,I+3),v(this,I+1,I+2);return this},n.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 I=0;I<L;I+=8)v(this,I,I+7),v(this,I+1,I+6),v(this,I+2,I+5),v(this,I+3,I+4);return this},n.prototype.toString=function(){var L=this.length;return L===0?"":arguments.length===0?z(this,0,L):p.apply(this,arguments)},n.prototype.toLocaleString=n.prototype.toString,n.prototype.equals=function(L){if(!n.isBuffer(L))throw new TypeError("Argument must be a Buffer");return this===L||n.compare(this,L)===0},n.prototype.inspect=function(){var L="",I=c.INSPECT_MAX_BYTES;return L=this.toString("hex",0,I).replace(/(.{2})/g,"$1 ").trim(),this.length>I&&(L+=" ... "),"<Buffer "+L+">"},n.prototype.compare=function(L,I,G,ee,se){if(B(L,Uint8Array)&&(L=n.from(L,L.offset,L.byteLength)),!n.isBuffer(L))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof L);if(I===void 0&&(I=0),G===void 0&&(G=L?L.length:0),ee===void 0&&(ee=0),se===void 0&&(se=this.length),I<0||G>L.length||ee<0||se>this.length)throw new RangeError("out of range index");if(ee>=se&&I>=G)return 0;if(ee>=se)return-1;if(I>=G)return 1;if(this===L)return 0;for(var te=(se>>>=0)-(ee>>>=0),re=(G>>>=0)-(I>>>=0),J=Math.min(te,re),de=this.slice(ee,se),ne=L.slice(I,G),fe=0;fe<J;++fe)if(de[fe]!==ne[fe]){te=de[fe],re=ne[fe];break}return te<re?-1:re<te?1:0},n.prototype.includes=function(L,I,G){return this.indexOf(L,I,G)!==-1},n.prototype.indexOf=function(L,I,G){return b(this,L,I,G,!0)},n.prototype.lastIndexOf=function(L,I,G){return b(this,L,I,G,!1)},n.prototype.write=function(L,I,G,ee){if(I===void 0)ee="utf8",G=this.length,I=0;else if(G===void 0&&typeof I=="string")ee=I,G=this.length,I=0;else{if(!isFinite(I))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");I>>>=0,isFinite(G)?(G>>>=0,ee===void 0&&(ee="utf8")):(ee=G,G=void 0)}var se=this.length-I;if((G===void 0||G>se)&&(G=se),L.length>0&&(G<0||I<0)||I>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var te=!1;;)switch(ee){case"hex":return A(this,L,I,G);case"utf8":case"utf-8":return M(this,L,I,G);case"ascii":return V(this,L,I,G);case"latin1":case"binary":return W(this,L,I,G);case"base64":return R(this,L,I,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,L,I,G);default:if(te)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),te=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(L,I,G){var ee="";G=Math.min(L.length,G);for(var se=I;se<G;++se)ee+=String.fromCharCode(127&L[se]);return ee}function N(L,I,G){var ee="";G=Math.min(L.length,G);for(var se=I;se<G;++se)ee+=String.fromCharCode(L[se]);return ee}function E(L,I,G){var ee=L.length;(!I||I<0)&&(I=0),(!G||G<0||G>ee)&&(G=ee);for(var se="",te=I;te<G;++te)se+=P(L[te]);return se}function C(L,I,G){for(var ee=L.slice(I,G),se="",te=0;te<ee.length;te+=2)se+=String.fromCharCode(ee[te]+256*ee[te+1]);return se}function w(L,I,G){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+I>G)throw new RangeError("Trying to access beyond buffer length")}function S(L,I,G,ee,se,te){if(!n.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(I>se||I<te)throw new RangeError('"value" argument is out of bounds');if(G+ee>L.length)throw new RangeError("Index out of range")}function _(L,I,G,ee,se,te){if(G+ee>L.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function k(L,I,G,ee,se){return I=+I,G>>>=0,se||_(L,0,G,4),l.write(L,I,G,ee,23,4),G+4}function T(L,I,G,ee,se){return I=+I,G>>>=0,se||_(L,0,G,8),l.write(L,I,G,ee,52,8),G+8}n.prototype.slice=function(L,I){var G=this.length;(L=~~L)<0?(L+=G)<0&&(L=0):L>G&&(L=G),(I=I===void 0?G:~~I)<0?(I+=G)<0&&(I=0):I>G&&(I=G),I<L&&(I=L);var ee=this.subarray(L,I);return ee.__proto__=n.prototype,ee},n.prototype.readUIntLE=function(L,I,G){L>>>=0,I>>>=0,G||w(L,I,this.length);for(var ee=this[L],se=1,te=0;++te<I&&(se*=256);)ee+=this[L+te]*se;return ee},n.prototype.readUIntBE=function(L,I,G){L>>>=0,I>>>=0,G||w(L,I,this.length);for(var ee=this[L+--I],se=1;I>0&&(se*=256);)ee+=this[L+--I]*se;return ee},n.prototype.readUInt8=function(L,I){return L>>>=0,I||w(L,1,this.length),this[L]},n.prototype.readUInt16LE=function(L,I){return L>>>=0,I||w(L,2,this.length),this[L]|this[L+1]<<8},n.prototype.readUInt16BE=function(L,I){return L>>>=0,I||w(L,2,this.length),this[L]<<8|this[L+1]},n.prototype.readUInt32LE=function(L,I){return L>>>=0,I||w(L,4,this.length),(this[L]|this[L+1]<<8|this[L+2]<<16)+16777216*this[L+3]},n.prototype.readUInt32BE=function(L,I){return L>>>=0,I||w(L,4,this.length),16777216*this[L]+(this[L+1]<<16|this[L+2]<<8|this[L+3])},n.prototype.readIntLE=function(L,I,G){L>>>=0,I>>>=0,G||w(L,I,this.length);for(var ee=this[L],se=1,te=0;++te<I&&(se*=256);)ee+=this[L+te]*se;return ee>=(se*=128)&&(ee-=Math.pow(2,8*I)),ee},n.prototype.readIntBE=function(L,I,G){L>>>=0,I>>>=0,G||w(L,I,this.length);for(var ee=I,se=1,te=this[L+--ee];ee>0&&(se*=256);)te+=this[L+--ee]*se;return te>=(se*=128)&&(te-=Math.pow(2,8*I)),te},n.prototype.readInt8=function(L,I){return L>>>=0,I||w(L,1,this.length),128&this[L]?-1*(255-this[L]+1):this[L]},n.prototype.readInt16LE=function(L,I){L>>>=0,I||w(L,2,this.length);var G=this[L]|this[L+1]<<8;return 32768&G?4294901760|G:G},n.prototype.readInt16BE=function(L,I){L>>>=0,I||w(L,2,this.length);var G=this[L+1]|this[L]<<8;return 32768&G?4294901760|G:G},n.prototype.readInt32LE=function(L,I){return L>>>=0,I||w(L,4,this.length),this[L]|this[L+1]<<8|this[L+2]<<16|this[L+3]<<24},n.prototype.readInt32BE=function(L,I){return L>>>=0,I||w(L,4,this.length),this[L]<<24|this[L+1]<<16|this[L+2]<<8|this[L+3]},n.prototype.readFloatLE=function(L,I){return L>>>=0,I||w(L,4,this.length),l.read(this,L,!0,23,4)},n.prototype.readFloatBE=function(L,I){return L>>>=0,I||w(L,4,this.length),l.read(this,L,!1,23,4)},n.prototype.readDoubleLE=function(L,I){return L>>>=0,I||w(L,8,this.length),l.read(this,L,!0,52,8)},n.prototype.readDoubleBE=function(L,I){return L>>>=0,I||w(L,8,this.length),l.read(this,L,!1,52,8)},n.prototype.writeUIntLE=function(L,I,G,ee){L=+L,I>>>=0,G>>>=0,ee||S(this,L,I,G,Math.pow(2,8*G)-1,0);var se=1,te=0;for(this[I]=255&L;++te<G&&(se*=256);)this[I+te]=L/se&255;return I+G},n.prototype.writeUIntBE=function(L,I,G,ee){L=+L,I>>>=0,G>>>=0,ee||S(this,L,I,G,Math.pow(2,8*G)-1,0);var se=G-1,te=1;for(this[I+se]=255&L;--se>=0&&(te*=256);)this[I+se]=L/te&255;return I+G},n.prototype.writeUInt8=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,1,255,0),this[I]=255&L,I+1},n.prototype.writeUInt16LE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,2,65535,0),this[I]=255&L,this[I+1]=L>>>8,I+2},n.prototype.writeUInt16BE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,2,65535,0),this[I]=L>>>8,this[I+1]=255&L,I+2},n.prototype.writeUInt32LE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,4,4294967295,0),this[I+3]=L>>>24,this[I+2]=L>>>16,this[I+1]=L>>>8,this[I]=255&L,I+4},n.prototype.writeUInt32BE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,4,4294967295,0),this[I]=L>>>24,this[I+1]=L>>>16,this[I+2]=L>>>8,this[I+3]=255&L,I+4},n.prototype.writeIntLE=function(L,I,G,ee){if(L=+L,I>>>=0,!ee){var se=Math.pow(2,8*G-1);S(this,L,I,G,se-1,-se)}var te=0,re=1,J=0;for(this[I]=255&L;++te<G&&(re*=256);)L<0&&J===0&&this[I+te-1]!==0&&(J=1),this[I+te]=(L/re>>0)-J&255;return I+G},n.prototype.writeIntBE=function(L,I,G,ee){if(L=+L,I>>>=0,!ee){var se=Math.pow(2,8*G-1);S(this,L,I,G,se-1,-se)}var te=G-1,re=1,J=0;for(this[I+te]=255&L;--te>=0&&(re*=256);)L<0&&J===0&&this[I+te+1]!==0&&(J=1),this[I+te]=(L/re>>0)-J&255;return I+G},n.prototype.writeInt8=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,1,127,-128),L<0&&(L=255+L+1),this[I]=255&L,I+1},n.prototype.writeInt16LE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,2,32767,-32768),this[I]=255&L,this[I+1]=L>>>8,I+2},n.prototype.writeInt16BE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,2,32767,-32768),this[I]=L>>>8,this[I+1]=255&L,I+2},n.prototype.writeInt32LE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,4,2147483647,-2147483648),this[I]=255&L,this[I+1]=L>>>8,this[I+2]=L>>>16,this[I+3]=L>>>24,I+4},n.prototype.writeInt32BE=function(L,I,G){return L=+L,I>>>=0,G||S(this,L,I,4,2147483647,-2147483648),L<0&&(L=4294967295+L+1),this[I]=L>>>24,this[I+1]=L>>>16,this[I+2]=L>>>8,this[I+3]=255&L,I+4},n.prototype.writeFloatLE=function(L,I,G){return k(this,L,I,!0,G)},n.prototype.writeFloatBE=function(L,I,G){return k(this,L,I,!1,G)},n.prototype.writeDoubleLE=function(L,I,G){return T(this,L,I,!0,G)},n.prototype.writeDoubleBE=function(L,I,G){return T(this,L,I,!1,G)},n.prototype.copy=function(L,I,G,ee){if(!n.isBuffer(L))throw new TypeError("argument should be a Buffer");if(G||(G=0),ee||ee===0||(ee=this.length),I>=L.length&&(I=L.length),I||(I=0),ee>0&&ee<G&&(ee=G),ee===G||L.length===0||this.length===0)return 0;if(I<0)throw new RangeError("targetStart out of bounds");if(G<0||G>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),L.length-I<ee-G&&(ee=L.length-I+G);var se=ee-G;if(this===L&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(I,G,ee);else if(this===L&&G<I&&I<ee)for(var te=se-1;te>=0;--te)L[te+I]=this[te+G];else Uint8Array.prototype.set.call(L,this.subarray(G,ee),I);return se},n.prototype.fill=function(L,I,G,ee){if(typeof L=="string"){if(typeof I=="string"?(ee=I,I=0,G=this.length):typeof G=="string"&&(ee=G,G=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!n.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(L.length===1){var se=L.charCodeAt(0);(ee==="utf8"&&se<128||ee==="latin1")&&(L=se)}}else typeof L=="number"&&(L&=255);if(I<0||this.length<I||this.length<G)throw new RangeError("Out of range index");if(G<=I)return this;var te;if(I>>>=0,G=G===void 0?this.length:G>>>0,L||(L=0),typeof L=="number")for(te=I;te<G;++te)this[te]=L;else{var re=n.isBuffer(L)?L:n.from(L,ee),J=re.length;if(J===0)throw new TypeError('The value "'+L+'" is invalid for argument "value"');for(te=0;te<G-I;++te)this[te+I]=re[te%J]}return this};var j=/[^+/0-9A-Za-z-_]/g;function P(L){return L<16?"0"+L.toString(16):L.toString(16)}function U(L,I){var G;I=I||1/0;for(var ee=L.length,se=null,te=[],re=0;re<ee;++re){if((G=L.charCodeAt(re))>55295&&G<57344){if(!se){if(G>56319){(I-=3)>-1&&te.push(239,191,189);continue}if(re+1===ee){(I-=3)>-1&&te.push(239,191,189);continue}se=G;continue}if(G<56320){(I-=3)>-1&&te.push(239,191,189),se=G;continue}G=65536+(se-55296<<10|G-56320)}else se&&(I-=3)>-1&&te.push(239,191,189);if(se=null,G<128){if((I-=1)<0)break;te.push(G)}else if(G<2048){if((I-=2)<0)break;te.push(G>>6|192,63&G|128)}else if(G<65536){if((I-=3)<0)break;te.push(G>>12|224,G>>6&63|128,63&G|128)}else{if(!(G<1114112))throw new Error("Invalid code point");if((I-=4)<0)break;te.push(G>>18|240,G>>12&63|128,G>>6&63|128,63&G|128)}}return te}function q(L){return o.toByteArray((function(I){if((I=(I=I.split("=")[0]).trim().replace(j,"")).length<2)return"";for(;I.length%4!=0;)I+="=";return I})(L))}function Z(L,I,G,ee){for(var se=0;se<ee&&!(se+G>=I.length||se>=L.length);++se)I[se+G]=L[se];return se}function B(L,I){return L instanceof I||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===I.name}function X(L){return L!=L}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("stream").Transform,l=e("string_decoder").StringDecoder;function a(n){o.call(this),this.hashMode=typeof n=="string",this.hashMode?this[n]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,o),a.prototype.update=function(n,u,h){typeof n=="string"&&(n=r.from(n,u));var d=this._update(n);return this.hashMode?this:(h&&(d=this._toString(d,h)),d)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(n,u,h){var d;try{this.hashMode?this._update(n):this.push(this._update(n))}catch(f){d=f}finally{h(d)}},a.prototype._flush=function(n){var u;try{this.push(this.__final())}catch(h){u=h}n(u)},a.prototype._finalOrDigest=function(n){var u=this.__final()||r.alloc(0);return n&&(u=this._toString(u,n,!0)),u},a.prototype._toString=function(n,u,h){if(this._decoder||(this._decoder=new l(u),this._encoding=u),this._encoding!==u)throw new Error("can't switch encodings");var d=this._decoder.write(n);return h&&(d+=this._decoder.end()),d},s.exports=a},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,s,c){var r=e("../internals/is-callable"),o=e("../internals/try-to-string"),l=TypeError;s.exports=function(a){if(r(a))return a;throw new l(o(a)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,s,c){var r=e("../internals/is-constructor"),o=e("../internals/try-to-string"),l=TypeError;s.exports=function(a){if(r(a))return a;throw new l(o(a)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,s,c){var r=e("../internals/is-callable"),o=String,l=TypeError;s.exports=function(a){if(typeof a=="object"||r(a))return a;throw new l("Can't set "+o(a)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,s,c){var r=e("../internals/well-known-symbol"),o=e("../internals/object-create"),l=e("../internals/object-define-property").f,a=r("unscopables"),n=Array.prototype;n[a]===void 0&&l(n,a,{configurable:!0,value:o(null)}),s.exports=function(u){n[a][u]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,s,c){var r=e("../internals/object-is-prototype-of"),o=TypeError;s.exports=function(l,a){if(r(a,l))return l;throw new o("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,s,c){var r=e("../internals/is-object"),o=String,l=TypeError;s.exports=function(a){if(r(a))return a;throw new l(o(a)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,s,c){var r=e("../internals/to-indexed-object"),o=e("../internals/to-absolute-index"),l=e("../internals/length-of-array-like"),a=function(n){return function(u,h,d){var f,m=r(u),g=l(m),p=o(d,g);if(n&&h!=h){for(;g>p;)if((f=m[p++])!=f)return!0}else for(;g>p;p++)if((n||p in m)&&m[p]===h)return n||p||0;return!n&&-1}};s.exports={includes:a(!0),indexOf:a(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,s,c){var r=e("../internals/function-bind-context"),o=e("../internals/function-uncurry-this"),l=e("../internals/indexed-object"),a=e("../internals/to-object"),n=e("../internals/length-of-array-like"),u=e("../internals/array-species-create"),h=o([].push),d=function(f){var m=f===1,g=f===2,p=f===3,v=f===4,b=f===6,x=f===7,A=f===5||b;return function(M,V,W,R){for(var F,$,z=a(M),D=l(z),N=r(V,W),E=n(D),C=0,w=R||u,S=m?w(M,E):g||x?w(M,0):void 0;E>C;C++)if((A||C in D)&&($=N(F=D[C],C,z),f))if(m)S[C]=$;else if($)switch(f){case 3:return!0;case 5:return F;case 6:return C;case 2:h(S,F)}else switch(f){case 4:return!1;case 7:h(S,F)}return b?-1:p||v?v:S}};s.exports={forEach:d(0),map:d(1),filter:d(2),some:d(3),every:d(4),find:d(5),findIndex:d(6),filterReject:d(7)}},{"../internals/array-species-create":233,"../internals/function-bind-context":262,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/length-of-array-like":299,"../internals/to-object":344}],230:[function(e,s,c){var r=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),l=e("../internals/create-property"),a=Array,n=Math.max;s.exports=function(u,h,d){for(var f=o(u),m=r(h,f),g=r(d===void 0?f:d,f),p=a(n(g-m,0)),v=0;m<g;m++,v++)l(p,v,u[m]);return p.length=v,p}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,s,c){var r=e("../internals/function-uncurry-this");s.exports=r([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,s,c){var r=e("../internals/is-array"),o=e("../internals/is-constructor"),l=e("../internals/is-object"),a=e("../internals/well-known-symbol")("species"),n=Array;s.exports=function(u){var h;return r(u)&&(h=u.constructor,(o(h)&&(h===n||r(h.prototype))||l(h)&&(h=h[a])===null)&&(h=void 0)),h===void 0?n:h}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,s,c){var r=e("../internals/array-species-constructor");s.exports=function(o,l){return new(r(o))(l===0?0:l)}},{"../internals/array-species-constructor":232}],234:[function(e,s,c){var r=e("../internals/well-known-symbol")("iterator"),o=!1;try{var l=0,a={next:function(){return{done:!!l++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch{}s.exports=function(n,u){try{if(!u&&!o)return!1}catch{return!1}var h=!1;try{var d={};d[r]=function(){return{next:function(){return{done:h=!0}}}},n(d)}catch{}return h}},{"../internals/well-known-symbol":357}],235:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=r({}.toString),l=r("".slice);s.exports=function(a){return l(o(a),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,s,c){var r=e("../internals/to-string-tag-support"),o=e("../internals/is-callable"),l=e("../internals/classof-raw"),a=e("../internals/well-known-symbol")("toStringTag"),n=Object,u=l((function(){return arguments})())==="Arguments";s.exports=r?l:function(h){var d,f,m;return h===void 0?"Undefined":h===null?"Null":typeof(f=(function(g,p){try{return g[p]}catch{}})(d=n(h),a))=="string"?f:u?l(d):(m=l(d))==="Object"&&o(d.callee)?"Arguments":m}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,s,c){var r=e("../internals/has-own-property"),o=e("../internals/own-keys"),l=e("../internals/object-get-own-property-descriptor"),a=e("../internals/object-define-property");s.exports=function(n,u,h){for(var d=o(u),f=a.f,m=l.f,g=0;g<d.length;g++){var p=d[g];r(n,p)||h&&r(h,p)||f(n,p,m(u,p))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,s,c){var r=e("../internals/well-known-symbol")("match");s.exports=function(o){var l=/./;try{"/./"[o](l)}catch{try{return l[r]=!1,"/./"[o](l)}catch{}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,s,c){var r=e("../internals/fails");s.exports=!r((function(){function o(){}return o.prototype.constructor=null,Object.getPrototypeOf(new o)!==o.prototype}))},{"../internals/fails":260}],240:[function(e,s,c){s.exports=function(r,o){return{value:r,done:o}}},{}],241:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/object-define-property"),l=e("../internals/create-property-descriptor");s.exports=r?function(a,n,u){return o.f(a,n,l(1,u))}:function(a,n,u){return a[n]=u,a}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,s,c){s.exports=function(r,o){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:o}}},{}],243:[function(e,s,c){var r=e("../internals/to-property-key"),o=e("../internals/object-define-property"),l=e("../internals/create-property-descriptor");s.exports=function(a,n,u){var h=r(n);h in a?o.f(a,h,l(0,u)):a[h]=u}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,s,c){var r=e("../internals/make-built-in"),o=e("../internals/object-define-property");s.exports=function(l,a,n){return n.get&&r(n.get,a,{getter:!0}),n.set&&r(n.set,a,{setter:!0}),o.f(l,a,n)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,s,c){var r=e("../internals/is-callable"),o=e("../internals/object-define-property"),l=e("../internals/make-built-in"),a=e("../internals/define-global-property");s.exports=function(n,u,h,d){d||(d={});var f=d.enumerable,m=d.name!==void 0?d.name:u;if(r(h)&&l(h,m,d),d.global)f?n[u]=h:a(u,h);else{try{d.unsafe?n[u]&&(f=!0):delete n[u]}catch{}f?n[u]=h:o.f(n,u,{value:h,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return n}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,s,c){var r=e("../internals/global"),o=Object.defineProperty;s.exports=function(l,a){try{o(r,l,{value:a,configurable:!0,writable:!0})}catch{r[l]=a}return a}},{"../internals/global":274}],247:[function(e,s,c){var r=e("../internals/fails");s.exports=!r((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}))},{"../internals/fails":260}],248:[function(e,s,c){var r=typeof document=="object"&&document.all,o=r===void 0&&r!==void 0;s.exports={all:r,IS_HTMLDDA:o}},{}],249:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/is-object"),l=r.document,a=o(l)&&o(l.createElement);s.exports=function(n){return a?l.createElement(n):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,s,c){var r=e("../internals/engine-is-deno"),o=e("../internals/engine-is-node");s.exports=!r&&!o&&typeof window=="object"&&typeof document=="object"},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,s,c){s.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},{}],252:[function(e,s,c){var r=e("../internals/engine-user-agent");s.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble<"u"},{"../internals/engine-user-agent":256}],253:[function(e,s,c){var r=e("../internals/engine-user-agent");s.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},{"../internals/engine-user-agent":256}],254:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/classof-raw");s.exports=o(r.process)==="process"},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,s,c){var r=e("../internals/engine-user-agent");s.exports=/web0s(?!.*chrome)/i.test(r)},{"../internals/engine-user-agent":256}],256:[function(e,s,c){s.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},{}],257:[function(e,s,c){var r,o,l=e("../internals/global"),a=e("../internals/engine-user-agent"),n=l.process,u=l.Deno,h=n&&n.versions||u&&u.version,d=h&&h.v8;d&&(o=(r=d.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),s.exports=o},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,s,c){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/object-get-own-property-descriptor").f,l=e("../internals/create-non-enumerable-property"),a=e("../internals/define-built-in"),n=e("../internals/define-global-property"),u=e("../internals/copy-constructor-properties"),h=e("../internals/is-forced");s.exports=function(d,f){var m,g,p,v,b,x=d.target,A=d.global,M=d.stat;if(m=A?r:M?r[x]||n(x,{}):(r[x]||{}).prototype)for(g in f){if(v=f[g],p=d.dontCallGetSet?(b=o(m,g))&&b.value:m[g],!h(A?g:x+(M?".":"#")+g,d.forced)&&p!==void 0){if(typeof v==typeof p)continue;u(v,p)}(d.sham||p&&p.sham)&&l(v,"sham",!0),a(m,g,v,d)}}},{"../internals/copy-constructor-properties":237,"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/define-global-property":246,"../internals/global":274,"../internals/is-forced":287,"../internals/object-get-own-property-descriptor":309}],260:[function(e,s,c){s.exports=function(r){try{return!!r()}catch{return!0}}},{}],261:[function(e,s,c){var r=e("../internals/function-bind-native"),o=Function.prototype,l=o.apply,a=o.call;s.exports=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(l):function(){return a.apply(l,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,s,c){var r=e("../internals/function-uncurry-this-clause"),o=e("../internals/a-callable"),l=e("../internals/function-bind-native"),a=r(r.bind);s.exports=function(n,u){return o(n),u===void 0?n:l?a(n,u):function(){return n.apply(u,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,s,c){var r=e("../internals/fails");s.exports=!r((function(){var o=(function(){}).bind();return typeof o!="function"||o.hasOwnProperty("prototype")}))},{"../internals/fails":260}],264:[function(e,s,c){var r=e("../internals/function-bind-native"),o=Function.prototype.call;s.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/has-own-property"),l=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,n=o(l,"name"),u=n&&(function(){}).name==="something",h=n&&(!r||r&&a(l,"name").configurable);s.exports={EXISTS:n,PROPER:u,CONFIGURABLE:h}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/a-callable");s.exports=function(l,a,n){try{return r(o(Object.getOwnPropertyDescriptor(l,a)[n]))}catch{}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,s,c){var r=e("../internals/classof-raw"),o=e("../internals/function-uncurry-this");s.exports=function(l){if(r(l)==="Function")return o(l)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,s,c){var r=e("../internals/function-bind-native"),o=Function.prototype,l=o.call,a=r&&o.bind.bind(l,l);s.exports=r?a:function(n){return function(){return l.apply(n,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/is-callable"),l=function(a){return o(a)?a:void 0};s.exports=function(a,n){return arguments.length<2?l(r[a]):r[a]&&r[a][n]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,s,c){var r=e("../internals/classof"),o=e("../internals/get-method"),l=e("../internals/is-null-or-undefined"),a=e("../internals/iterators"),n=e("../internals/well-known-symbol")("iterator");s.exports=function(u){if(!l(u))return o(u,n)||o(u,"@@iterator")||a[r(u)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,s,c){var r=e("../internals/function-call"),o=e("../internals/a-callable"),l=e("../internals/an-object"),a=e("../internals/try-to-string"),n=e("../internals/get-iterator-method"),u=TypeError;s.exports=function(h,d){var f=arguments.length<2?n(h):d;if(o(f))return l(r(f,h));throw new u(a(h)+" is not iterable")}},{"../internals/a-callable":222,"../internals/an-object":227,"../internals/function-call":264,"../internals/get-iterator-method":270,"../internals/try-to-string":349}],272:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/is-array"),l=e("../internals/is-callable"),a=e("../internals/classof-raw"),n=e("../internals/to-string"),u=r([].push);s.exports=function(h){if(l(h))return h;if(o(h)){for(var d=h.length,f=[],m=0;m<d;m++){var g=h[m];typeof g=="string"?u(f,g):typeof g!="number"&&a(g)!=="Number"&&a(g)!=="String"||u(f,n(g))}var p=f.length,v=!0;return function(b,x){if(v)return v=!1,x;if(o(this))return x;for(var A=0;A<p;A++)if(f[A]===b)return x}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,s,c){var r=e("../internals/a-callable"),o=e("../internals/is-null-or-undefined");s.exports=function(l,a){var n=l[a];return o(n)?void 0:r(n)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,s,c){(function(r){(function(){var o=function(l){return l&&l.Math===Math&&l};s.exports=o(typeof globalThis=="object"&&globalThis)||o(typeof window=="object"&&window)||o(typeof self=="object"&&self)||o(typeof r=="object"&&r)||(function(){return this})()||this||Function("return this")()}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],275:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/to-object"),l=r({}.hasOwnProperty);s.exports=Object.hasOwn||function(a,n){return l(o(a),n)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,s,c){s.exports={}},{}],277:[function(e,s,c){s.exports=function(r,o){try{arguments.length===1?console.error(r):console.error(r,o)}catch{}}},{}],278:[function(e,s,c){var r=e("../internals/get-built-in");s.exports=r("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/fails"),l=e("../internals/document-create-element");s.exports=!r&&!o((function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!==7}))},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/fails"),l=e("../internals/classof-raw"),a=Object,n=r("".split);s.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(u){return l(u)==="String"?n(u,""):a(u)}:a},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurry-this":268}],281:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/is-callable"),l=e("../internals/shared-store"),a=r(Function.toString);o(l.inspectSource)||(l.inspectSource=function(n){return a(n)}),s.exports=l.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,s,c){var r,o,l,a=e("../internals/weak-map-basic-detection"),n=e("../internals/global"),u=e("../internals/is-object"),h=e("../internals/create-non-enumerable-property"),d=e("../internals/has-own-property"),f=e("../internals/shared-store"),m=e("../internals/shared-key"),g=e("../internals/hidden-keys"),p=n.TypeError,v=n.WeakMap;if(a||f.state){var b=f.state||(f.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,r=function(A,M){if(b.has(A))throw new p("Object already initialized");return M.facade=A,b.set(A,M),M},o=function(A){return b.get(A)||{}},l=function(A){return b.has(A)}}else{var x=m("state");g[x]=!0,r=function(A,M){if(d(A,x))throw new p("Object already initialized");return M.facade=A,h(A,x,M),M},o=function(A){return d(A,x)?A[x]:{}},l=function(A){return d(A,x)}}s.exports={set:r,get:o,has:l,enforce:function(A){return l(A)?o(A):r(A,{})},getterFor:function(A){return function(M){var V;if(!u(M)||(V=o(M)).type!==A)throw new p("Incompatible receiver, "+A+" required");return V}}}},{"../internals/create-non-enumerable-property":241,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/is-object":289,"../internals/shared-key":332,"../internals/shared-store":333,"../internals/weak-map-basic-detection":354}],283:[function(e,s,c){var r=e("../internals/well-known-symbol"),o=e("../internals/iterators"),l=r("iterator"),a=Array.prototype;s.exports=function(n){return n!==void 0&&(o.Array===n||a[l]===n)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,s,c){var r=e("../internals/classof-raw");s.exports=Array.isArray||function(o){return r(o)==="Array"}},{"../internals/classof-raw":235}],285:[function(e,s,c){var r=e("../internals/document-all"),o=r.all;s.exports=r.IS_HTMLDDA?function(l){return typeof l=="function"||l===o}:function(l){return typeof l=="function"}},{"../internals/document-all":248}],286:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/fails"),l=e("../internals/is-callable"),a=e("../internals/classof"),n=e("../internals/get-built-in"),u=e("../internals/inspect-source"),h=function(){},d=[],f=n("Reflect","construct"),m=/^\s*(?:class|function)\b/,g=r(m.exec),p=!m.test(h),v=function(x){if(!l(x))return!1;try{return f(h,d,x),!0}catch{return!1}},b=function(x){if(!l(x))return!1;switch(a(x)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!g(m,u(x))}catch{return!0}};b.sham=!0,s.exports=!f||o((function(){var x;return v(v.call)||!v(Object)||!v((function(){x=!0}))||x}))?b:v},{"../internals/classof":236,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/inspect-source":281,"../internals/is-callable":285}],287:[function(e,s,c){var r=e("../internals/fails"),o=e("../internals/is-callable"),l=/#|\.prototype\./,a=function(f,m){var g=u[n(f)];return g===d||g!==h&&(o(m)?r(m):!!m)},n=a.normalize=function(f){return String(f).replace(l,".").toLowerCase()},u=a.data={},h=a.NATIVE="N",d=a.POLYFILL="P";s.exports=a},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,s,c){s.exports=function(r){return r==null}},{}],289:[function(e,s,c){var r=e("../internals/is-callable"),o=e("../internals/document-all"),l=o.all;s.exports=o.IS_HTMLDDA?function(a){return typeof a=="object"?a!==null:r(a)||a===l}:function(a){return typeof a=="object"?a!==null:r(a)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,s,c){s.exports=!1},{}],291:[function(e,s,c){var r=e("../internals/is-object"),o=e("../internals/classof-raw"),l=e("../internals/well-known-symbol")("match");s.exports=function(a){var n;return r(a)&&((n=a[l])!==void 0?!!n:o(a)==="RegExp")}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,s,c){var r=e("../internals/get-built-in"),o=e("../internals/is-callable"),l=e("../internals/object-is-prototype-of"),a=e("../internals/use-symbol-as-uid"),n=Object;s.exports=a?function(u){return typeof u=="symbol"}:function(u){var h=r("Symbol");return o(h)&&l(h.prototype,n(u))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,s,c){var r=e("../internals/function-bind-context"),o=e("../internals/function-call"),l=e("../internals/an-object"),a=e("../internals/try-to-string"),n=e("../internals/is-array-iterator-method"),u=e("../internals/length-of-array-like"),h=e("../internals/object-is-prototype-of"),d=e("../internals/get-iterator"),f=e("../internals/get-iterator-method"),m=e("../internals/iterator-close"),g=TypeError,p=function(b,x){this.stopped=b,this.result=x},v=p.prototype;s.exports=function(b,x,A){var M,V,W,R,F,$,z,D=A&&A.that,N=!(!A||!A.AS_ENTRIES),E=!(!A||!A.IS_RECORD),C=!(!A||!A.IS_ITERATOR),w=!(!A||!A.INTERRUPTED),S=r(x,D),_=function(T){return M&&m(M,"normal",T),new p(!0,T)},k=function(T){return N?(l(T),w?S(T[0],T[1],_):S(T[0],T[1])):w?S(T,_):S(T)};if(E)M=b.iterator;else if(C)M=b;else{if(!(V=f(b)))throw new g(a(b)+" is not iterable");if(n(V)){for(W=0,R=u(b);R>W;W++)if((F=k(b[W]))&&h(v,F))return F;return new p(!1)}M=d(b,V)}for($=E?b.next:M.next;!(z=o($,M)).done;){try{F=k(z.value)}catch(T){m(M,"throw",T)}if(typeof F=="object"&&F&&h(v,F))return F}return new p(!1)}},{"../internals/an-object":227,"../internals/function-bind-context":262,"../internals/function-call":264,"../internals/get-iterator":271,"../internals/get-iterator-method":270,"../internals/is-array-iterator-method":283,"../internals/iterator-close":294,"../internals/length-of-array-like":299,"../internals/object-is-prototype-of":314,"../internals/try-to-string":349}],294:[function(e,s,c){var r=e("../internals/function-call"),o=e("../internals/an-object"),l=e("../internals/get-method");s.exports=function(a,n,u){var h,d;o(a);try{if(!(h=l(a,"return"))){if(n==="throw")throw u;return u}h=r(h,a)}catch(f){d=!0,h=f}if(n==="throw")throw u;if(d)throw h;return o(h),u}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,s,c){var r=e("../internals/iterators-core").IteratorPrototype,o=e("../internals/object-create"),l=e("../internals/create-property-descriptor"),a=e("../internals/set-to-string-tag"),n=e("../internals/iterators"),u=function(){return this};s.exports=function(h,d,f,m){var g=d+" Iterator";return h.prototype=o(r,{next:l(+!m,f)}),a(h,g,!1,!0),n[g]=u,h}},{"../internals/create-property-descriptor":242,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-create":306,"../internals/set-to-string-tag":331}],296:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/function-call"),l=e("../internals/is-pure"),a=e("../internals/function-name"),n=e("../internals/is-callable"),u=e("../internals/iterator-create-constructor"),h=e("../internals/object-get-prototype-of"),d=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),m=e("../internals/create-non-enumerable-property"),g=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),v=e("../internals/iterators"),b=e("../internals/iterators-core"),x=a.PROPER,A=a.CONFIGURABLE,M=b.IteratorPrototype,V=b.BUGGY_SAFARI_ITERATORS,W=p("iterator"),R=function(){return this};s.exports=function(F,$,z,D,N,E,C){u(z,$,D);var w,S,_,k=function(B){if(B===N&&q)return q;if(!V&&B&&B in P)return P[B];switch(B){case"keys":case"values":case"entries":return function(){return new z(this,B)}}return function(){return new z(this)}},T=$+" Iterator",j=!1,P=F.prototype,U=P[W]||P["@@iterator"]||N&&P[N],q=!V&&U||k(N),Z=$==="Array"&&P.entries||U;if(Z&&(w=h(Z.call(new F)))!==Object.prototype&&w.next&&(l||h(w)===M||(d?d(w,M):n(w[W])||g(w,W,R)),f(w,T,!0,!0),l&&(v[T]=R)),x&&N==="values"&&U&&U.name!=="values"&&(!l&&A?m(P,"name","values"):(j=!0,q=function(){return o(U,this)})),N)if(S={values:k("values"),keys:E?q:k("keys"),entries:k("entries")},C)for(_ in S)(V||j||!(_ in P))&&g(P,_,S[_]);else r({target:$,proto:!0,forced:V||j},S);return l&&!C||P[W]===q||g(P,W,q,{name:N}),v[$]=q,S}},{"../internals/create-non-enumerable-property":241,"../internals/define-built-in":245,"../internals/export":259,"../internals/function-call":264,"../internals/function-name":265,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/iterator-create-constructor":295,"../internals/iterators":298,"../internals/iterators-core":297,"../internals/object-get-prototype-of":313,"../internals/object-set-prototype-of":318,"../internals/set-to-string-tag":331,"../internals/well-known-symbol":357}],297:[function(e,s,c){var r,o,l,a=e("../internals/fails"),n=e("../internals/is-callable"),u=e("../internals/is-object"),h=e("../internals/object-create"),d=e("../internals/object-get-prototype-of"),f=e("../internals/define-built-in"),m=e("../internals/well-known-symbol"),g=e("../internals/is-pure"),p=m("iterator"),v=!1;[].keys&&("next"in(l=[].keys())?(o=d(d(l)))!==Object.prototype&&(r=o):v=!0),!u(r)||a((function(){var b={};return r[p].call(b)!==b}))?r={}:g&&(r=h(r)),n(r[p])||f(r,p,(function(){return this})),s.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},{"../internals/define-built-in":245,"../internals/fails":260,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-get-prototype-of":313,"../internals/well-known-symbol":357}],298:[function(e,s,c){arguments[4][276][0].apply(c,arguments)},{dup:276}],299:[function(e,s,c){var r=e("../internals/to-length");s.exports=function(o){return r(o.length)}},{"../internals/to-length":343}],300:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/fails"),l=e("../internals/is-callable"),a=e("../internals/has-own-property"),n=e("../internals/descriptors"),u=e("../internals/function-name").CONFIGURABLE,h=e("../internals/inspect-source"),d=e("../internals/internal-state"),f=d.enforce,m=d.get,g=String,p=Object.defineProperty,v=r("".slice),b=r("".replace),x=r([].join),A=n&&!o((function(){return p((function(){}),"length",{value:8}).length!==8})),M=String(String).split("String"),V=s.exports=function(W,R,F){v(g(R),0,7)==="Symbol("&&(R="["+b(g(R),/^Symbol\(([^)]*)\)/,"$1")+"]"),F&&F.getter&&(R="get "+R),F&&F.setter&&(R="set "+R),(!a(W,"name")||u&&W.name!==R)&&(n?p(W,"name",{value:R,configurable:!0}):W.name=R),A&&F&&a(F,"arity")&&W.length!==F.arity&&p(W,"length",{value:F.arity});try{F&&a(F,"constructor")&&F.constructor?n&&p(W,"prototype",{writable:!1}):W.prototype&&(W.prototype=void 0)}catch{}var $=f(W);return a($,"source")||($.source=x(M,typeof R=="string"?R:"")),W};Function.prototype.toString=V((function(){return l(this)&&m(this).source||h(this)}),"toString")},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-name":265,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/inspect-source":281,"../internals/internal-state":282,"../internals/is-callable":285}],301:[function(e,s,c){var r=Math.ceil,o=Math.floor;s.exports=Math.trunc||function(l){var a=+l;return(a>0?o:r)(a)}},{}],302:[function(e,s,c){var r,o,l,a,n,u=e("../internals/global"),h=e("../internals/function-bind-context"),d=e("../internals/object-get-own-property-descriptor").f,f=e("../internals/task").set,m=e("../internals/queue"),g=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),v=e("../internals/engine-is-webos-webkit"),b=e("../internals/engine-is-node"),x=u.MutationObserver||u.WebKitMutationObserver,A=u.document,M=u.process,V=u.Promise,W=d(u,"queueMicrotask"),R=W&&W.value;if(!R){var F=new m,$=function(){var z,D;for(b&&(z=M.domain)&&z.exit();D=F.get();)try{D()}catch(N){throw F.head&&r(),N}z&&z.enter()};g||b||v||!x||!A?!p&&V&&V.resolve?((a=V.resolve(void 0)).constructor=V,n=h(a.then,a),r=function(){n($)}):b?r=function(){M.nextTick($)}:(f=h(f,u),r=function(){f($)}):(o=!0,l=A.createTextNode(""),new x($).observe(l,{characterData:!0}),r=function(){l.data=o=!o}),R=function(z){F.head||r(),F.add(z)}}s.exports=R},{"../internals/engine-is-ios":253,"../internals/engine-is-ios-pebble":252,"../internals/engine-is-node":254,"../internals/engine-is-webos-webkit":255,"../internals/function-bind-context":262,"../internals/global":274,"../internals/object-get-own-property-descriptor":309,"../internals/queue":328,"../internals/task":339}],303:[function(e,s,c){var r=e("../internals/a-callable"),o=TypeError,l=function(a){var n,u;this.promise=new a((function(h,d){if(n!==void 0||u!==void 0)throw new o("Bad Promise constructor");n=h,u=d})),this.resolve=r(n),this.reject=r(u)};s.exports.f=function(a){return new l(a)}},{"../internals/a-callable":222}],304:[function(e,s,c){var r=e("../internals/is-regexp"),o=TypeError;s.exports=function(l){if(r(l))throw new o("The method doesn't accept regular expressions");return l}},{"../internals/is-regexp":291}],305:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/function-uncurry-this"),l=e("../internals/function-call"),a=e("../internals/fails"),n=e("../internals/object-keys"),u=e("../internals/object-get-own-property-symbols"),h=e("../internals/object-property-is-enumerable"),d=e("../internals/to-object"),f=e("../internals/indexed-object"),m=Object.assign,g=Object.defineProperty,p=o([].concat);s.exports=!m||a((function(){if(r&&m({b:1},m(g({},"a",{enumerable:!0,get:function(){g(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},b={},x=Symbol("assign detection");return v[x]=7,"abcdefghijklmnopqrst".split("").forEach((function(A){b[A]=A})),m({},v)[x]!==7||n(m({},b)).join("")!=="abcdefghijklmnopqrst"}))?function(v,b){for(var x=d(v),A=arguments.length,M=1,V=u.f,W=h.f;A>M;)for(var R,F=f(arguments[M++]),$=V?p(n(F),V(F)):n(F),z=$.length,D=0;z>D;)R=$[D++],r&&!l(W,F,R)||(x[R]=F[R]);return x}:m},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/indexed-object":280,"../internals/object-get-own-property-symbols":312,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-object":344}],306:[function(e,s,c){var r,o=e("../internals/an-object"),l=e("../internals/object-define-properties"),a=e("../internals/enum-bug-keys"),n=e("../internals/hidden-keys"),u=e("../internals/html"),h=e("../internals/document-create-element"),d=e("../internals/shared-key"),f=d("IE_PROTO"),m=function(){},g=function(b){return"<script>"+b+"<\/script>"},p=function(b){b.write(g("")),b.close();var x=b.parentWindow.Object;return b=null,x},v=function(){try{r=new ActiveXObject("htmlfile")}catch{}var b,x;v=typeof document<"u"?document.domain&&r?p(r):((x=h("iframe")).style.display="none",u.appendChild(x),x.src="javascript:",(b=x.contentWindow.document).open(),b.write(g("document.F=Object")),b.close(),b.F):p(r);for(var A=a.length;A--;)delete v.prototype[a[A]];return v()};n[f]=!0,s.exports=Object.create||function(b,x){var A;return b!==null?(m.prototype=o(b),A=new m,m.prototype=null,A[f]=b):A=v(),x===void 0?A:l.f(A,x)}},{"../internals/an-object":227,"../internals/document-create-element":249,"../internals/enum-bug-keys":258,"../internals/hidden-keys":276,"../internals/html":278,"../internals/object-define-properties":307,"../internals/shared-key":332}],307:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/v8-prototype-define-bug"),l=e("../internals/object-define-property"),a=e("../internals/an-object"),n=e("../internals/to-indexed-object"),u=e("../internals/object-keys");c.f=r&&!o?Object.defineProperties:function(h,d){a(h);for(var f,m=n(d),g=u(d),p=g.length,v=0;p>v;)l.f(h,f=g[v++],m[f]);return h}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/object-define-property":308,"../internals/object-keys":316,"../internals/to-indexed-object":341,"../internals/v8-prototype-define-bug":352}],308:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/ie8-dom-define"),l=e("../internals/v8-prototype-define-bug"),a=e("../internals/an-object"),n=e("../internals/to-property-key"),u=TypeError,h=Object.defineProperty,d=Object.getOwnPropertyDescriptor;c.f=r?l?function(f,m,g){if(a(f),m=n(m),a(g),typeof f=="function"&&m==="prototype"&&"value"in g&&"writable"in g&&!g.writable){var p=d(f,m);p&&p.writable&&(f[m]=g.value,g={configurable:"configurable"in g?g.configurable:p.configurable,enumerable:"enumerable"in g?g.enumerable:p.enumerable,writable:!1})}return h(f,m,g)}:h:function(f,m,g){if(a(f),m=n(m),a(g),o)try{return h(f,m,g)}catch{}if("get"in g||"set"in g)throw new u("Accessors not supported");return"value"in g&&(f[m]=g.value),f}},{"../internals/an-object":227,"../internals/descriptors":247,"../internals/ie8-dom-define":279,"../internals/to-property-key":346,"../internals/v8-prototype-define-bug":352}],309:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/function-call"),l=e("../internals/object-property-is-enumerable"),a=e("../internals/create-property-descriptor"),n=e("../internals/to-indexed-object"),u=e("../internals/to-property-key"),h=e("../internals/has-own-property"),d=e("../internals/ie8-dom-define"),f=Object.getOwnPropertyDescriptor;c.f=r?f:function(m,g){if(m=n(m),g=u(g),d)try{return f(m,g)}catch{}if(h(m,g))return a(!o(l.f,m,g),m[g])}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/function-call":264,"../internals/has-own-property":275,"../internals/ie8-dom-define":279,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341,"../internals/to-property-key":346}],310:[function(e,s,c){var r=e("../internals/classof-raw"),o=e("../internals/to-indexed-object"),l=e("../internals/object-get-own-property-names").f,a=e("../internals/array-slice-simple"),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];s.exports.f=function(u){return n&&r(u)==="Window"?(function(h){try{return l(h)}catch{return a(n)}})(u):l(o(u))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,s,c){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys").concat("length","prototype");c.f=Object.getOwnPropertyNames||function(l){return r(l,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,s,c){c.f=Object.getOwnPropertySymbols},{}],313:[function(e,s,c){var r=e("../internals/has-own-property"),o=e("../internals/is-callable"),l=e("../internals/to-object"),a=e("../internals/shared-key"),n=e("../internals/correct-prototype-getter"),u=a("IE_PROTO"),h=Object,d=h.prototype;s.exports=n?h.getPrototypeOf:function(f){var m=l(f);if(r(m,u))return m[u];var g=m.constructor;return o(g)&&m instanceof g?g.prototype:m instanceof h?d:null}},{"../internals/correct-prototype-getter":239,"../internals/has-own-property":275,"../internals/is-callable":285,"../internals/shared-key":332,"../internals/to-object":344}],314:[function(e,s,c){var r=e("../internals/function-uncurry-this");s.exports=r({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=e("../internals/has-own-property"),l=e("../internals/to-indexed-object"),a=e("../internals/array-includes").indexOf,n=e("../internals/hidden-keys"),u=r([].push);s.exports=function(h,d){var f,m=l(h),g=0,p=[];for(f in m)!o(n,f)&&o(m,f)&&u(p,f);for(;d.length>g;)o(m,f=d[g++])&&(~a(p,f)||u(p,f));return p}},{"../internals/array-includes":228,"../internals/function-uncurry-this":268,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/to-indexed-object":341}],316:[function(e,s,c){var r=e("../internals/object-keys-internal"),o=e("../internals/enum-bug-keys");s.exports=Object.keys||function(l){return r(l,o)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,s,c){var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,l=o&&!r.call({1:2},1);c.f=l?function(a){var n=o(this,a);return!!n&&n.enumerable}:r},{}],318:[function(e,s,c){var r=e("../internals/function-uncurry-this-accessor"),o=e("../internals/an-object"),l=e("../internals/a-possible-prototype");s.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var a,n=!1,u={};try{(a=r(Object.prototype,"__proto__","set"))(u,[]),n=u instanceof Array}catch{}return function(h,d){return o(h),l(d),n?a(h,d):h.__proto__=d,h}})():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/fails"),l=e("../internals/function-uncurry-this"),a=e("../internals/object-get-prototype-of"),n=e("../internals/object-keys"),u=e("../internals/to-indexed-object"),h=l(e("../internals/object-property-is-enumerable").f),d=l([].push),f=r&&o((function(){var g=Object.create(null);return g[2]=2,!h(g,2)})),m=function(g){return function(p){for(var v,b=u(p),x=n(b),A=f&&a(b)===null,M=x.length,V=0,W=[];M>V;)v=x[V++],r&&!(A?v in b:h(b,v))||d(W,g?[v,b[v]]:b[v]);return W}};s.exports={entries:m(!0),values:m(!1)}},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-uncurry-this":268,"../internals/object-get-prototype-of":313,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/to-indexed-object":341}],320:[function(e,s,c){var r=e("../internals/function-call"),o=e("../internals/is-callable"),l=e("../internals/is-object"),a=TypeError;s.exports=function(n,u){var h,d;if(u==="string"&&o(h=n.toString)&&!l(d=r(h,n))||o(h=n.valueOf)&&!l(d=r(h,n))||u!=="string"&&o(h=n.toString)&&!l(d=r(h,n)))return d;throw new a("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,s,c){var r=e("../internals/get-built-in"),o=e("../internals/function-uncurry-this"),l=e("../internals/object-get-own-property-names"),a=e("../internals/object-get-own-property-symbols"),n=e("../internals/an-object"),u=o([].concat);s.exports=r("Reflect","ownKeys")||function(h){var d=l.f(n(h)),f=a.f;return f?u(d,f(h)):d}},{"../internals/an-object":227,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-symbols":312}],322:[function(e,s,c){var r=e("../internals/global");s.exports=r},{"../internals/global":274}],323:[function(e,s,c){s.exports=function(r){try{return{error:!1,value:r()}}catch(o){return{error:!0,value:o}}}},{}],324:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/promise-native-constructor"),l=e("../internals/is-callable"),a=e("../internals/is-forced"),n=e("../internals/inspect-source"),u=e("../internals/well-known-symbol"),h=e("../internals/engine-is-browser"),d=e("../internals/engine-is-deno"),f=e("../internals/is-pure"),m=e("../internals/engine-v8-version"),g=o&&o.prototype,p=u("species"),v=!1,b=l(r.PromiseRejectionEvent),x=a("Promise",(function(){var A=n(o),M=A!==String(o);if(!M&&m===66||f&&(!g.catch||!g.finally))return!0;if(!m||m<51||!/native code/.test(A)){var V=new o((function(R){R(1)})),W=function(R){R((function(){}),(function(){}))};if((V.constructor={})[p]=W,!(v=V.then((function(){}))instanceof W))return!0}return!M&&(h||d)&&!b}));s.exports={CONSTRUCTOR:x,REJECTION_EVENT:b,SUBCLASSING:v}},{"../internals/engine-is-browser":250,"../internals/engine-is-deno":251,"../internals/engine-v8-version":257,"../internals/global":274,"../internals/inspect-source":281,"../internals/is-callable":285,"../internals/is-forced":287,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/well-known-symbol":357}],325:[function(e,s,c){var r=e("../internals/global");s.exports=r.Promise},{"../internals/global":274}],326:[function(e,s,c){var r=e("../internals/an-object"),o=e("../internals/is-object"),l=e("../internals/new-promise-capability");s.exports=function(a,n){if(r(a),o(n)&&n.constructor===a)return n;var u=l.f(a);return(0,u.resolve)(n),u.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,s,c){var r=e("../internals/promise-native-constructor"),o=e("../internals/check-correctness-of-iteration"),l=e("../internals/promise-constructor-detection").CONSTRUCTOR;s.exports=l||!o((function(a){r.all(a).then(void 0,(function(){}))}))},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,s,c){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(o){var l={item:o,next:null},a=this.tail;a?a.next=l:this.head=l,this.tail=l},get:function(){var o=this.head;if(o)return(this.head=o.next)===null&&(this.tail=null),o.item}},s.exports=r},{}],329:[function(e,s,c){var r=e("../internals/is-null-or-undefined"),o=TypeError;s.exports=function(l){if(r(l))throw new o("Can't call method on "+l);return l}},{"../internals/is-null-or-undefined":288}],330:[function(e,s,c){var r=e("../internals/get-built-in"),o=e("../internals/define-built-in-accessor"),l=e("../internals/well-known-symbol"),a=e("../internals/descriptors"),n=l("species");s.exports=function(u){var h=r(u);a&&h&&!h[n]&&o(h,n,{configurable:!0,get:function(){return this}})}},{"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],331:[function(e,s,c){var r=e("../internals/object-define-property").f,o=e("../internals/has-own-property"),l=e("../internals/well-known-symbol")("toStringTag");s.exports=function(a,n,u){a&&!u&&(a=a.prototype),a&&!o(a,l)&&r(a,l,{configurable:!0,value:n})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,s,c){var r=e("../internals/shared"),o=e("../internals/uid"),l=r("keys");s.exports=function(a){return l[a]||(l[a]=o(a))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/define-global-property"),l=r["__core-js_shared__"]||o("__core-js_shared__",{});s.exports=l},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,s,c){var r=e("../internals/is-pure"),o=e("../internals/shared-store");(s.exports=function(l,a){return o[l]||(o[l]=a!==void 0?a:{})})("versions",[]).push({version:"3.33.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":290,"../internals/shared-store":333}],335:[function(e,s,c){var r=e("../internals/an-object"),o=e("../internals/a-constructor"),l=e("../internals/is-null-or-undefined"),a=e("../internals/well-known-symbol")("species");s.exports=function(n,u){var h,d=r(n).constructor;return d===void 0||l(h=r(d)[a])?u:o(h)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,s,c){var r=e("../internals/engine-v8-version"),o=e("../internals/fails"),l=e("../internals/global").String;s.exports=!!Object.getOwnPropertySymbols&&!o((function(){var a=Symbol("symbol detection");return!l(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,s,c){var r=e("../internals/function-call"),o=e("../internals/get-built-in"),l=e("../internals/well-known-symbol"),a=e("../internals/define-built-in");s.exports=function(){var n=o("Symbol"),u=n&&n.prototype,h=u&&u.valueOf,d=l("toPrimitive");u&&!u[d]&&a(u,d,(function(f){return r(h,this)}),{arity:1})}},{"../internals/define-built-in":245,"../internals/function-call":264,"../internals/get-built-in":269,"../internals/well-known-symbol":357}],338:[function(e,s,c){var r=e("../internals/symbol-constructor-detection");s.exports=r&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,s,c){var r,o,l,a,n=e("../internals/global"),u=e("../internals/function-apply"),h=e("../internals/function-bind-context"),d=e("../internals/is-callable"),f=e("../internals/has-own-property"),m=e("../internals/fails"),g=e("../internals/html"),p=e("../internals/array-slice"),v=e("../internals/document-create-element"),b=e("../internals/validate-arguments-length"),x=e("../internals/engine-is-ios"),A=e("../internals/engine-is-node"),M=n.setImmediate,V=n.clearImmediate,W=n.process,R=n.Dispatch,F=n.Function,$=n.MessageChannel,z=n.String,D=0,N={};m((function(){r=n.location}));var E=function(_){if(f(N,_)){var k=N[_];delete N[_],k()}},C=function(_){return function(){E(_)}},w=function(_){E(_.data)},S=function(_){n.postMessage(z(_),r.protocol+"//"+r.host)};M&&V||(M=function(_){b(arguments.length,1);var k=d(_)?_:F(_),T=p(arguments,1);return N[++D]=function(){u(k,void 0,T)},o(D),D},V=function(_){delete N[_]},A?o=function(_){W.nextTick(C(_))}:R&&R.now?o=function(_){R.now(C(_))}:$&&!x?(a=(l=new $).port2,l.port1.onmessage=w,o=h(a.postMessage,a)):n.addEventListener&&d(n.postMessage)&&!n.importScripts&&r&&r.protocol!=="file:"&&!m(S)?(o=S,n.addEventListener("message",w,!1)):o="onreadystatechange"in v("script")?function(_){g.appendChild(v("script")).onreadystatechange=function(){g.removeChild(this),E(_)}}:function(_){setTimeout(C(_),0)}),s.exports={set:M,clear:V}},{"../internals/array-slice":231,"../internals/document-create-element":249,"../internals/engine-is-ios":253,"../internals/engine-is-node":254,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-bind-context":262,"../internals/global":274,"../internals/has-own-property":275,"../internals/html":278,"../internals/is-callable":285,"../internals/validate-arguments-length":353}],340:[function(e,s,c){var r=e("../internals/to-integer-or-infinity"),o=Math.max,l=Math.min;s.exports=function(a,n){var u=r(a);return u<0?o(u+n,0):l(u,n)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,s,c){var r=e("../internals/indexed-object"),o=e("../internals/require-object-coercible");s.exports=function(l){return r(o(l))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,s,c){var r=e("../internals/math-trunc");s.exports=function(o){var l=+o;return l!=l||l===0?0:r(l)}},{"../internals/math-trunc":301}],343:[function(e,s,c){var r=e("../internals/to-integer-or-infinity"),o=Math.min;s.exports=function(l){return l>0?o(r(l),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,s,c){var r=e("../internals/require-object-coercible"),o=Object;s.exports=function(l){return o(r(l))}},{"../internals/require-object-coercible":329}],345:[function(e,s,c){var r=e("../internals/function-call"),o=e("../internals/is-object"),l=e("../internals/is-symbol"),a=e("../internals/get-method"),n=e("../internals/ordinary-to-primitive"),u=e("../internals/well-known-symbol"),h=TypeError,d=u("toPrimitive");s.exports=function(f,m){if(!o(f)||l(f))return f;var g,p=a(f,d);if(p){if(m===void 0&&(m="default"),g=r(p,f,m),!o(g)||l(g))return g;throw new h("Can't convert object to primitive value")}return m===void 0&&(m="number"),n(f,m)}},{"../internals/function-call":264,"../internals/get-method":273,"../internals/is-object":289,"../internals/is-symbol":292,"../internals/ordinary-to-primitive":320,"../internals/well-known-symbol":357}],346:[function(e,s,c){var r=e("../internals/to-primitive"),o=e("../internals/is-symbol");s.exports=function(l){var a=r(l,"string");return o(a)?a:a+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,s,c){var r={};r[e("../internals/well-known-symbol")("toStringTag")]="z",s.exports=String(r)==="[object z]"},{"../internals/well-known-symbol":357}],348:[function(e,s,c){var r=e("../internals/classof"),o=String;s.exports=function(l){if(r(l)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return o(l)}},{"../internals/classof":236}],349:[function(e,s,c){var r=String;s.exports=function(o){try{return r(o)}catch{return"Object"}}},{}],350:[function(e,s,c){var r=e("../internals/function-uncurry-this"),o=0,l=Math.random(),a=r(1 .toString);s.exports=function(n){return"Symbol("+(n===void 0?"":n)+")_"+a(++o+l,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,s,c){var r=e("../internals/symbol-constructor-detection");s.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/symbol-constructor-detection":336}],352:[function(e,s,c){var r=e("../internals/descriptors"),o=e("../internals/fails");s.exports=r&&o((function(){return Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype!==42}))},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,s,c){var r=TypeError;s.exports=function(o,l){if(o<l)throw new r("Not enough arguments");return o}},{}],354:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/is-callable"),l=r.WeakMap;s.exports=o(l)&&/native code/.test(String(l))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,s,c){var r=e("../internals/path"),o=e("../internals/has-own-property"),l=e("../internals/well-known-symbol-wrapped"),a=e("../internals/object-define-property").f;s.exports=function(n){var u=r.Symbol||(r.Symbol={});o(u,n)||a(u,n,{value:l.f(n)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,s,c){var r=e("../internals/well-known-symbol");c.f=r},{"../internals/well-known-symbol":357}],357:[function(e,s,c){var r=e("../internals/global"),o=e("../internals/shared"),l=e("../internals/has-own-property"),a=e("../internals/uid"),n=e("../internals/symbol-constructor-detection"),u=e("../internals/use-symbol-as-uid"),h=r.Symbol,d=o("wks"),f=u?h.for||h:h&&h.withoutSetter||a;s.exports=function(m){return l(d,m)||(d[m]=n&&l(h,m)?h[m]:f("Symbol."+m)),d[m]}},{"../internals/global":274,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-constructor-detection":336,"../internals/uid":350,"../internals/use-symbol-as-uid":351}],358:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/array-iteration").findIndex,l=e("../internals/add-to-unscopables"),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),l("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/array-iteration").find,l=e("../internals/add-to-unscopables"),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),l("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/array-includes").includes,l=e("../internals/fails"),a=e("../internals/add-to-unscopables");r({target:"Array",proto:!0,forced:l((function(){return!Array(1).includes()}))},{includes:function(n){return o(this,n,arguments.length>1?arguments[1]:void 0)}}),a("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,s,c){var r=e("../internals/to-indexed-object"),o=e("../internals/add-to-unscopables"),l=e("../internals/iterators"),a=e("../internals/internal-state"),n=e("../internals/object-define-property").f,u=e("../internals/iterator-define"),h=e("../internals/create-iter-result-object"),d=e("../internals/is-pure"),f=e("../internals/descriptors"),m=a.set,g=a.getterFor("Array Iterator");s.exports=u(Array,"Array",(function(v,b){m(this,{type:"Array Iterator",target:r(v),index:0,kind:b})}),(function(){var v=g(this),b=v.target,x=v.kind,A=v.index++;if(!b||A>=b.length)return v.target=void 0,h(void 0,!0);switch(x){case"keys":return h(A,!1);case"values":return h(b[A],!1)}return h([A,b[A]],!1)}),"values");var p=l.Arguments=l.Array;if(o("keys"),o("values"),o("entries"),!d&&f&&p.name!=="values")try{n(p,"name",{value:"values"})}catch{}},{"../internals/add-to-unscopables":225,"../internals/create-iter-result-object":240,"../internals/descriptors":247,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/iterator-define":296,"../internals/iterators":298,"../internals/object-define-property":308,"../internals/to-indexed-object":341}],362:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/get-built-in"),l=e("../internals/function-apply"),a=e("../internals/function-call"),n=e("../internals/function-uncurry-this"),u=e("../internals/fails"),h=e("../internals/is-callable"),d=e("../internals/is-symbol"),f=e("../internals/array-slice"),m=e("../internals/get-json-replacer-function"),g=e("../internals/symbol-constructor-detection"),p=String,v=o("JSON","stringify"),b=n(/./.exec),x=n("".charAt),A=n("".charCodeAt),M=n("".replace),V=n(1 .toString),W=/[\uD800-\uDFFF]/g,R=/^[\uD800-\uDBFF]$/,F=/^[\uDC00-\uDFFF]$/,$=!g||u((function(){var E=o("Symbol")("stringify detection");return v([E])!=="[null]"||v({a:E})!=="{}"||v(Object(E))!=="{}"})),z=u((function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'})),D=function(E,C){var w=f(arguments),S=m(C);if(h(S)||E!==void 0&&!d(E))return w[1]=function(_,k){if(h(S)&&(k=a(S,this,p(_),k)),!d(k))return k},l(v,null,w)},N=function(E,C,w){var S=x(w,C-1),_=x(w,C+1);return b(R,E)&&!b(F,_)||b(F,E)&&!b(R,S)?"\\u"+V(A(E,0),16):E};v&&r({target:"JSON",stat:!0,arity:3,forced:$||z},{stringify:function(E,C,w){var S=f(arguments),_=l($?D:v,null,S);return z&&typeof _=="string"?M(_,W,N):_}})},{"../internals/array-slice":231,"../internals/export":259,"../internals/fails":260,"../internals/function-apply":261,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/get-built-in":269,"../internals/get-json-replacer-function":272,"../internals/is-callable":285,"../internals/is-symbol":292,"../internals/symbol-constructor-detection":336}],363:[function(e,s,c){e("../internals/export")({target:"Number",stat:!0},{isNaN:function(r){return r!=r}})},{"../internals/export":259}],364:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/object-assign");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/symbol-constructor-detection"),l=e("../internals/fails"),a=e("../internals/object-get-own-property-symbols"),n=e("../internals/to-object");r({target:"Object",stat:!0,forced:!o||l((function(){a.f(1)}))},{getOwnPropertySymbols:function(u){var h=a.f;return h?h(n(u)):[]}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-get-own-property-symbols":312,"../internals/symbol-constructor-detection":336,"../internals/to-object":344}],366:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/to-object"),l=e("../internals/object-keys");r({target:"Object",stat:!0,forced:e("../internals/fails")((function(){l(1)}))},{keys:function(a){return l(o(a))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/object-to-array").values;r({target:"Object",stat:!0},{values:function(l){return o(l)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/function-call"),l=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),n=e("../internals/perform"),u=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(h){var d=this,f=a.f(d),m=f.resolve,g=f.reject,p=n((function(){var v=l(d.resolve),b=[],x=0,A=1;u(h,(function(M){var V=x++,W=!1;A++,o(v,d,M).then((function(R){W||(W=!0,b[V]=R,--A||m(b))}),g)})),--A||m(b)}));return p.error&&g(p.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],369:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/is-pure"),l=e("../internals/promise-constructor-detection").CONSTRUCTOR,a=e("../internals/promise-native-constructor"),n=e("../internals/get-built-in"),u=e("../internals/is-callable"),h=e("../internals/define-built-in"),d=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:l,real:!0},{catch:function(m){return this.then(void 0,m)}}),!o&&u(a)){var f=n("Promise").prototype.catch;d.catch!==f&&h(d,"catch",f,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],370:[function(e,s,c){var r,o,l,a=e("../internals/export"),n=e("../internals/is-pure"),u=e("../internals/engine-is-node"),h=e("../internals/global"),d=e("../internals/function-call"),f=e("../internals/define-built-in"),m=e("../internals/object-set-prototype-of"),g=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),v=e("../internals/a-callable"),b=e("../internals/is-callable"),x=e("../internals/is-object"),A=e("../internals/an-instance"),M=e("../internals/species-constructor"),V=e("../internals/task").set,W=e("../internals/microtask"),R=e("../internals/host-report-errors"),F=e("../internals/perform"),$=e("../internals/queue"),z=e("../internals/internal-state"),D=e("../internals/promise-native-constructor"),N=e("../internals/promise-constructor-detection"),E=e("../internals/new-promise-capability"),C=N.CONSTRUCTOR,w=N.REJECTION_EVENT,S=N.SUBCLASSING,_=z.getterFor("Promise"),k=z.set,T=D&&D.prototype,j=D,P=T,U=h.TypeError,q=h.document,Z=h.process,B=E.f,X=B,L=!!(q&&q.createEvent&&h.dispatchEvent),I=function(ue){var ye;return!(!x(ue)||!b(ye=ue.then))&&ye},G=function(ue,ye){var be,we,Se,Pe=ye.value,Le=ye.state===1,De=Le?ue.ok:ue.fail,Ge=ue.resolve,Ve=ue.reject,qe=ue.domain;try{De?(Le||(ye.rejection===2&&J(ye),ye.rejection=1),De===!0?be=Pe:(qe&&qe.enter(),be=De(Pe),qe&&(qe.exit(),Se=!0)),be===ue.promise?Ve(new U("Promise-chain cycle")):(we=I(be))?d(we,be,Ge,Ve):Ge(be)):Ve(Pe)}catch(et){qe&&!Se&&qe.exit(),Ve(et)}},ee=function(ue,ye){ue.notified||(ue.notified=!0,W((function(){for(var be,we=ue.reactions;be=we.get();)G(be,ue);ue.notified=!1,ye&&!ue.rejection&&te(ue)})))},se=function(ue,ye,be){var we,Se;L?((we=q.createEvent("Event")).promise=ye,we.reason=be,we.initEvent(ue,!1,!0),h.dispatchEvent(we)):we={promise:ye,reason:be},!w&&(Se=h["on"+ue])?Se(we):ue==="unhandledrejection"&&R("Unhandled promise rejection",be)},te=function(ue){d(V,h,(function(){var ye,be=ue.facade,we=ue.value;if(re(ue)&&(ye=F((function(){u?Z.emit("unhandledRejection",we,be):se("unhandledrejection",be,we)})),ue.rejection=u||re(ue)?2:1,ye.error))throw ye.value}))},re=function(ue){return ue.rejection!==1&&!ue.parent},J=function(ue){d(V,h,(function(){var ye=ue.facade;u?Z.emit("rejectionHandled",ye):se("rejectionhandled",ye,ue.value)}))},de=function(ue,ye,be){return function(we){ue(ye,we,be)}},ne=function(ue,ye,be){ue.done||(ue.done=!0,be&&(ue=be),ue.value=ye,ue.state=2,ee(ue,!0))},fe=function(ue,ye,be){if(!ue.done){ue.done=!0,be&&(ue=be);try{if(ue.facade===ye)throw new U("Promise can't be resolved itself");var we=I(ye);we?W((function(){var Se={done:!1};try{d(we,ye,de(fe,Se,ue),de(ne,Se,ue))}catch(Pe){ne(Se,Pe,ue)}})):(ue.value=ye,ue.state=1,ee(ue,!1))}catch(Se){ne({done:!1},Se,ue)}}};if(C&&(P=(j=function(ue){A(this,P),v(ue),d(r,this);var ye=_(this);try{ue(de(fe,ye),de(ne,ye))}catch(be){ne(ye,be)}}).prototype,(r=function(ue){k(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new $,rejection:!1,state:0,value:void 0})}).prototype=f(P,"then",(function(ue,ye){var be=_(this),we=B(M(this,j));return be.parent=!0,we.ok=!b(ue)||ue,we.fail=b(ye)&&ye,we.domain=u?Z.domain:void 0,be.state===0?be.reactions.add(we):W((function(){G(we,be)})),we.promise})),o=function(){var ue=new r,ye=_(ue);this.promise=ue,this.resolve=de(fe,ye),this.reject=de(ne,ye)},E.f=B=function(ue){return ue===j||ue===void 0?new o(ue):X(ue)},!n&&b(D)&&T!==Object.prototype)){l=T.then,S||f(T,"then",(function(ue,ye){var be=this;return new j((function(we,Se){d(l,be,we,Se)})).then(ue,ye)}),{unsafe:!0});try{delete T.constructor}catch{}m&&m(T,P)}a({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:j}),g(j,"Promise",!1,!0),p("Promise")},{"../internals/a-callable":222,"../internals/an-instance":226,"../internals/define-built-in":245,"../internals/engine-is-node":254,"../internals/export":259,"../internals/function-call":264,"../internals/global":274,"../internals/host-report-errors":277,"../internals/internal-state":282,"../internals/is-callable":285,"../internals/is-object":289,"../internals/is-pure":290,"../internals/microtask":302,"../internals/new-promise-capability":303,"../internals/object-set-prototype-of":318,"../internals/perform":323,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/queue":328,"../internals/set-species":330,"../internals/set-to-string-tag":331,"../internals/species-constructor":335,"../internals/task":339}],371:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/is-pure"),l=e("../internals/promise-native-constructor"),a=e("../internals/fails"),n=e("../internals/get-built-in"),u=e("../internals/is-callable"),h=e("../internals/species-constructor"),d=e("../internals/promise-resolve"),f=e("../internals/define-built-in"),m=l&&l.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!l&&a((function(){m.finally.call({then:function(){}},(function(){}))}))},{finally:function(p){var v=h(this,n("Promise")),b=u(p);return this.then(b?function(x){return d(v,p()).then((function(){return x}))}:p,b?function(x){return d(v,p()).then((function(){throw x}))}:p)}}),!o&&u(l)){var g=n("Promise").prototype.finally;m.finally!==g&&f(m,"finally",g,{unsafe:!0})}},{"../internals/define-built-in":245,"../internals/export":259,"../internals/fails":260,"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/is-pure":290,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326,"../internals/species-constructor":335}],372:[function(e,s,c){e("../modules/es.promise.constructor"),e("../modules/es.promise.all"),e("../modules/es.promise.catch"),e("../modules/es.promise.race"),e("../modules/es.promise.reject"),e("../modules/es.promise.resolve")},{"../modules/es.promise.all":368,"../modules/es.promise.catch":369,"../modules/es.promise.constructor":370,"../modules/es.promise.race":373,"../modules/es.promise.reject":374,"../modules/es.promise.resolve":375}],373:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/function-call"),l=e("../internals/a-callable"),a=e("../internals/new-promise-capability"),n=e("../internals/perform"),u=e("../internals/iterate");r({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(h){var d=this,f=a.f(d),m=f.reject,g=n((function(){var p=l(d.resolve);u(h,(function(v){o(p,d,v).then(f.resolve,m)}))}));return g.error&&m(g.value),f.promise}})},{"../internals/a-callable":222,"../internals/export":259,"../internals/function-call":264,"../internals/iterate":293,"../internals/new-promise-capability":303,"../internals/perform":323,"../internals/promise-statics-incorrect-iteration":327}],374:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/function-call"),l=e("../internals/new-promise-capability");r({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(a){var n=l.f(this);return o(n.reject,void 0,a),n.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/get-built-in"),l=e("../internals/is-pure"),a=e("../internals/promise-native-constructor"),n=e("../internals/promise-constructor-detection").CONSTRUCTOR,u=e("../internals/promise-resolve"),h=o("Promise"),d=l&&!n;r({target:"Promise",stat:!0,forced:l||n},{resolve:function(f){return u(d&&this===h?a:this,f)}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/is-pure":290,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325,"../internals/promise-resolve":326}],376:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/function-uncurry-this"),l=e("../internals/to-absolute-index"),a=RangeError,n=String.fromCharCode,u=String.fromCodePoint,h=o([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&u.length!==1},{fromCodePoint:function(d){for(var f,m=[],g=arguments.length,p=0;g>p;){if(f=+arguments[p++],l(f,1114111)!==f)throw new a(f+" is not a valid code point");m[p]=f<65536?n(f):n(55296+((f-=65536)>>10),f%1024+56320)}return h(m,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/function-uncurry-this"),l=e("../internals/not-a-regexp"),a=e("../internals/require-object-coercible"),n=e("../internals/to-string"),u=e("../internals/correct-is-regexp-logic"),h=o("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(d){return!!~h(n(a(this)),n(l(d)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":238,"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/not-a-regexp":304,"../internals/require-object-coercible":329,"../internals/to-string":348}],378:[function(e,s,c){e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/global"),l=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),n=e("../internals/is-pure"),u=e("../internals/descriptors"),h=e("../internals/symbol-constructor-detection"),d=e("../internals/fails"),f=e("../internals/has-own-property"),m=e("../internals/object-is-prototype-of"),g=e("../internals/an-object"),p=e("../internals/to-indexed-object"),v=e("../internals/to-property-key"),b=e("../internals/to-string"),x=e("../internals/create-property-descriptor"),A=e("../internals/object-create"),M=e("../internals/object-keys"),V=e("../internals/object-get-own-property-names"),W=e("../internals/object-get-own-property-names-external"),R=e("../internals/object-get-own-property-symbols"),F=e("../internals/object-get-own-property-descriptor"),$=e("../internals/object-define-property"),z=e("../internals/object-define-properties"),D=e("../internals/object-property-is-enumerable"),N=e("../internals/define-built-in"),E=e("../internals/define-built-in-accessor"),C=e("../internals/shared"),w=e("../internals/shared-key"),S=e("../internals/hidden-keys"),_=e("../internals/uid"),k=e("../internals/well-known-symbol"),T=e("../internals/well-known-symbol-wrapped"),j=e("../internals/well-known-symbol-define"),P=e("../internals/symbol-define-to-primitive"),U=e("../internals/set-to-string-tag"),q=e("../internals/internal-state"),Z=e("../internals/array-iteration").forEach,B=w("hidden"),X=q.set,L=q.getterFor("Symbol"),I=Object.prototype,G=o.Symbol,ee=G&&G.prototype,se=o.RangeError,te=o.TypeError,re=o.QObject,J=F.f,de=$.f,ne=W.f,fe=D.f,ue=a([].push),ye=C("symbols"),be=C("op-symbols"),we=C("wks"),Se=!re||!re.prototype||!re.prototype.findChild,Pe=function(Ke,Oe,Xe){var ut=J(I,Oe);ut&&delete I[Oe],de(Ke,Oe,Xe),ut&&Ke!==I&&de(I,Oe,ut)},Le=u&&d((function(){return A(de({},"a",{get:function(){return de(this,"a",{value:7}).a}})).a!==7}))?Pe:de,De=function(Ke,Oe){var Xe=ye[Ke]=A(ee);return X(Xe,{type:"Symbol",tag:Ke,description:Oe}),u||(Xe.description=Oe),Xe},Ge=function(Ke,Oe,Xe){Ke===I&&Ge(be,Oe,Xe),g(Ke);var ut=v(Oe);return g(Xe),f(ye,ut)?(Xe.enumerable?(f(Ke,B)&&Ke[B][ut]&&(Ke[B][ut]=!1),Xe=A(Xe,{enumerable:x(0,!1)})):(f(Ke,B)||de(Ke,B,x(1,{})),Ke[B][ut]=!0),Le(Ke,ut,Xe)):de(Ke,ut,Xe)},Ve=function(Ke,Oe){g(Ke);var Xe=p(Oe),ut=M(Xe).concat(dt(Xe));return Z(ut,(function(ze){u&&!l(qe,Xe,ze)||Ge(Ke,ze,Xe[ze])})),Ke},qe=function(Ke){var Oe=v(Ke),Xe=l(fe,this,Oe);return!(this===I&&f(ye,Oe)&&!f(be,Oe))&&(!(Xe||!f(this,Oe)||!f(ye,Oe)||f(this,B)&&this[B][Oe])||Xe)},et=function(Ke,Oe){var Xe=p(Ke),ut=v(Oe);if(Xe!==I||!f(ye,ut)||f(be,ut)){var ze=J(Xe,ut);return!ze||!f(ye,ut)||f(Xe,B)&&Xe[B][ut]||(ze.enumerable=!0),ze}},We=function(Ke){var Oe=ne(p(Ke)),Xe=[];return Z(Oe,(function(ut){f(ye,ut)||f(S,ut)||ue(Xe,ut)})),Xe},dt=function(Ke){var Oe=Ke===I,Xe=ne(Oe?be:p(Ke)),ut=[];return Z(Xe,(function(ze){!f(ye,ze)||Oe&&!f(I,ze)||ue(ut,ye[ze])})),ut};h||(N(ee=(G=function(){if(m(ee,this))throw new te("Symbol is not a constructor");var Ke=arguments.length&&arguments[0]!==void 0?b(arguments[0]):void 0,Oe=_(Ke),Xe=function(ut){this===I&&l(Xe,be,ut),f(this,B)&&f(this[B],Oe)&&(this[B][Oe]=!1);var ze=x(1,ut);try{Le(this,Oe,ze)}catch(bt){if(!(bt instanceof se))throw bt;Pe(this,Oe,ze)}};return u&&Se&&Le(I,Oe,{configurable:!0,set:Xe}),De(Oe,Ke)}).prototype,"toString",(function(){return L(this).tag})),N(G,"withoutSetter",(function(Ke){return De(_(Ke),Ke)})),D.f=qe,$.f=Ge,z.f=Ve,F.f=et,V.f=W.f=We,R.f=dt,T.f=function(Ke){return De(k(Ke),Ke)},u&&(E(ee,"description",{configurable:!0,get:function(){return L(this).description}}),n||N(I,"propertyIsEnumerable",qe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!h,sham:!h},{Symbol:G}),Z(M(we),(function(Ke){j(Ke)})),r({target:"Symbol",stat:!0,forced:!h},{useSetter:function(){Se=!0},useSimple:function(){Se=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!u},{create:function(Ke,Oe){return Oe===void 0?A(Ke):Ve(A(Ke),Oe)},defineProperty:Ge,defineProperties:Ve,getOwnPropertyDescriptor:et}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:We}),P(),U(G,"Symbol"),S[B]=!0},{"../internals/an-object":227,"../internals/array-iteration":229,"../internals/create-property-descriptor":242,"../internals/define-built-in":245,"../internals/define-built-in-accessor":244,"../internals/descriptors":247,"../internals/export":259,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurry-this":268,"../internals/global":274,"../internals/has-own-property":275,"../internals/hidden-keys":276,"../internals/internal-state":282,"../internals/is-pure":290,"../internals/object-create":306,"../internals/object-define-properties":307,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/object-get-own-property-names":311,"../internals/object-get-own-property-names-external":310,"../internals/object-get-own-property-symbols":312,"../internals/object-is-prototype-of":314,"../internals/object-keys":316,"../internals/object-property-is-enumerable":317,"../internals/set-to-string-tag":331,"../internals/shared":334,"../internals/shared-key":332,"../internals/symbol-constructor-detection":336,"../internals/symbol-define-to-primitive":337,"../internals/to-indexed-object":341,"../internals/to-property-key":346,"../internals/to-string":348,"../internals/uid":350,"../internals/well-known-symbol":357,"../internals/well-known-symbol-define":355,"../internals/well-known-symbol-wrapped":356}],380:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/get-built-in"),l=e("../internals/has-own-property"),a=e("../internals/to-string"),n=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),h=n("string-to-symbol-registry"),d=n("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(f){var m=a(f);if(l(h,m))return h[m];var g=o("Symbol")(m);return h[m]=g,d[g]=m,g}})},{"../internals/export":259,"../internals/get-built-in":269,"../internals/has-own-property":275,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/to-string":348}],381:[function(e,s,c){e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.key-for"),e("../modules/es.json.stringify"),e("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":362,"../modules/es.object.get-own-property-symbols":365,"../modules/es.symbol.constructor":379,"../modules/es.symbol.for":380,"../modules/es.symbol.key-for":382}],382:[function(e,s,c){var r=e("../internals/export"),o=e("../internals/has-own-property"),l=e("../internals/is-symbol"),a=e("../internals/try-to-string"),n=e("../internals/shared"),u=e("../internals/symbol-registry-detection"),h=n("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(d){if(!l(d))throw new TypeError(a(d)+" is not a symbol");if(o(h,d))return h[d]}})},{"../internals/export":259,"../internals/has-own-property":275,"../internals/is-symbol":292,"../internals/shared":334,"../internals/symbol-registry-detection":338,"../internals/try-to-string":349}],383:[function(e,s,c){function r(o){return Object.prototype.toString.call(o)}c.isArray=function(o){return Array.isArray?Array.isArray(o):r(o)==="[object Array]"},c.isBoolean=function(o){return typeof o=="boolean"},c.isNull=function(o){return o===null},c.isNullOrUndefined=function(o){return o==null},c.isNumber=function(o){return typeof o=="number"},c.isString=function(o){return typeof o=="string"},c.isSymbol=function(o){return typeof o=="symbol"},c.isUndefined=function(o){return o===void 0},c.isRegExp=function(o){return r(o)==="[object RegExp]"},c.isObject=function(o){return typeof o=="object"&&o!==null},c.isDate=function(o){return r(o)==="[object Date]"},c.isError=function(o){return r(o)==="[object Error]"||o instanceof Error},c.isFunction=function(o){return typeof o=="function"},c.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},c.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,s,c){(function(r){(function(){var o=e("elliptic"),l=e("bn.js");s.exports=function(h){return new n(h)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function n(h){this.curveType=a[h],this.curveType||(this.curveType={name:h}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function u(h,d,f){Array.isArray(h)||(h=h.toArray());var m=new r(h);if(f&&m.length<f){var g=new r(f-m.length);g.fill(0),m=r.concat([g,m])}return d?m.toString(d):m}a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,n.prototype.generateKeys=function(h,d){return this.keys=this.curve.genKeyPair(),this.getPublicKey(h,d)},n.prototype.computeSecret=function(h,d,f){return d=d||"utf8",r.isBuffer(h)||(h=new r(h,d)),u(this.curve.keyFromPublic(h).getPublic().mul(this.keys.getPrivate()).getX(),f,this.curveType.byteLength)},n.prototype.getPublicKey=function(h,d){var f=this.keys.getPublic(d==="compressed",!0);return d==="hybrid"&&(f[f.length-1]%2?f[0]=7:f[0]=6),u(f,h)},n.prototype.getPrivateKey=function(h){return u(this.keys.getPrivate(),h)},n.prototype.setPublicKey=function(h,d){return d=d||"utf8",r.isBuffer(h)||(h=new r(h,d)),this.keys._importPublic(h),this},n.prototype.setPrivateKey=function(h,d){d=d||"utf8",r.isBuffer(h)||(h=new r(h,d));var f=new l(h);return f=f.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(f),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,s,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],386:[function(e,s,c){var r=e("inherits"),o=e("md5.js"),l=e("ripemd160"),a=e("sha.js"),n=e("cipher-base");function u(h){n.call(this,"digest"),this._hash=h}r(u,n),u.prototype._update=function(h){this._hash.update(h)},u.prototype._final=function(){return this._hash.digest()},s.exports=function(h){return(h=h.toLowerCase())==="md5"?new o:h==="rmd160"||h==="ripemd160"?new l:new u(a(h))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,s,c){var r=e("md5.js");s.exports=function(o){return new r().update(o).digest()}},{"md5.js":450}],388:[function(e,s,c){var r=e("inherits"),o=e("./legacy"),l=e("cipher-base"),a=e("safe-buffer").Buffer,n=e("create-hash/md5"),u=e("ripemd160"),h=e("sha.js"),d=a.alloc(128);function f(m,g){l.call(this,"digest"),typeof g=="string"&&(g=a.from(g));var p=m==="sha512"||m==="sha384"?128:64;this._alg=m,this._key=g,g.length>p?g=(m==="rmd160"?new u:h(m)).update(g).digest():g.length<p&&(g=a.concat([g,d],p));for(var v=this._ipad=a.allocUnsafe(p),b=this._opad=a.allocUnsafe(p),x=0;x<p;x++)v[x]=54^g[x],b[x]=92^g[x];this._hash=m==="rmd160"?new u:h(m),this._hash.update(v)}r(f,l),f.prototype._update=function(m){this._hash.update(m)},f.prototype._final=function(){var m=this._hash.digest();return(this._alg==="rmd160"?new u:h(this._alg)).update(this._opad).update(m).digest()},s.exports=function(m,g){return(m=m.toLowerCase())==="rmd160"||m==="ripemd160"?new f("rmd160",g):m==="md5"?new o(n,g):new f(m,g)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,s,c){var r=e("inherits"),o=e("safe-buffer").Buffer,l=e("cipher-base"),a=o.alloc(128);function n(u,h){l.call(this,"digest"),typeof h=="string"&&(h=o.from(h)),this._alg=u,this._key=h,h.length>64?h=u(h):h.length<64&&(h=o.concat([h,a],64));for(var d=this._ipad=o.allocUnsafe(64),f=this._opad=o.allocUnsafe(64),m=0;m<64;m++)d[m]=54^h[m],f[m]=92^h[m];this._hash=[d]}r(n,l),n.prototype._update=function(u){this._hash.push(u)},n.prototype._final=function(){var u=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,u]))},s.exports=n},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,s,c){c.randomBytes=c.rng=c.pseudoRandomBytes=c.prng=e("randombytes"),c.createHash=c.Hash=e("create-hash"),c.createHmac=c.Hmac=e("create-hmac");var r=e("browserify-sign/algos"),o=Object.keys(r),l=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);c.getHashes=function(){return l};var a=e("pbkdf2");c.pbkdf2=a.pbkdf2,c.pbkdf2Sync=a.pbkdf2Sync;var n=e("browserify-cipher");c.Cipher=n.Cipher,c.createCipher=n.createCipher,c.Cipheriv=n.Cipheriv,c.createCipheriv=n.createCipheriv,c.Decipher=n.Decipher,c.createDecipher=n.createDecipher,c.Decipheriv=n.Decipheriv,c.createDecipheriv=n.createDecipheriv,c.getCiphers=n.getCiphers,c.listCiphers=n.listCiphers;var u=e("diffie-hellman");c.DiffieHellmanGroup=u.DiffieHellmanGroup,c.createDiffieHellmanGroup=u.createDiffieHellmanGroup,c.getDiffieHellman=u.getDiffieHellman,c.createDiffieHellman=u.createDiffieHellman,c.DiffieHellman=u.DiffieHellman;var h=e("browserify-sign");c.createSign=h.createSign,c.Sign=h.Sign,c.createVerify=h.createVerify,c.Verify=h.Verify,c.createECDH=e("create-ecdh");var d=e("public-encrypt");c.publicEncrypt=d.publicEncrypt,c.privateEncrypt=d.privateEncrypt,c.publicDecrypt=d.publicDecrypt,c.privateDecrypt=d.privateDecrypt;var f=e("randomfill");c.randomFill=f.randomFill,c.randomFillSync=f.randomFillSync,c.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
88
+ `))},c.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":206,"browserify-sign":213,"browserify-sign/algos":210,"create-ecdh":384,"create-hash":386,"create-hmac":388,"diffie-hellman":400,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],391:[function(e,s,c){(function(r,o){typeof c=="object"&&s!==void 0?s.exports=o():(r=typeof globalThis<"u"?globalThis:r||self).dayjs=o()})(void 0,(function(){var r=6e4,o=36e5,l="millisecond",a="second",n="minute",u="hour",h="day",d="week",f="month",m="quarter",g="year",p="date",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var S=["th","st","nd","rd"],_=w%100;return"["+w+(S[(_-20)%10]||S[_]||S[0])+"]"}},M=function(w,S,_){var k=String(w);return!k||k.length>=S?w:""+Array(S+1-k.length).join(_)+w},V={s:M,z:function(w){var S=-w.utcOffset(),_=Math.abs(S),k=Math.floor(_/60),T=_%60;return(S<=0?"+":"-")+M(k,2,"0")+":"+M(T,2,"0")},m:function w(S,_){if(S.date()<_.date())return-w(_,S);var k=12*(_.year()-S.year())+(_.month()-S.month()),T=S.clone().add(k,f),j=_-T<0,P=S.clone().add(k+(j?-1:1),f);return+(-(k+(_-T)/(j?T-P:P-T))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:f,y:g,w:d,d:h,D:p,h:u,m:n,s:a,ms:l,Q:m}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},W="en",R={};R[W]=A;var F="$isDayjsObject",$=function(w){return w instanceof E||!(!w||!w[F])},z=function w(S,_,k){var T;if(!S)return W;if(typeof S=="string"){var j=S.toLowerCase();R[j]&&(T=j),_&&(R[j]=_,T=j);var P=S.split("-");if(!T&&P.length>1)return w(P[0])}else{var U=S.name;R[U]=S,T=U}return!k&&T&&(W=T),T||!k&&W},D=function(w,S){if($(w))return w.clone();var _=typeof S=="object"?S:{};return _.date=w,_.args=arguments,new E(_)},N=V;N.l=z,N.i=$,N.w=function(w,S){return D(w,{locale:S.$L,utc:S.$u,x:S.$x,$offset:S.$offset})};var E=(function(){function w(_){this.$L=z(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[F]=!0}var S=w.prototype;return S.parse=function(_){this.$d=(function(k){var T=k.date,j=k.utc;if(T===null)return new Date(NaN);if(N.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var P=T.match(b);if(P){var U=P[2]-1||0,q=(P[7]||"0").substring(0,3);return j?new Date(Date.UTC(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,q)):new Date(P[1],U,P[3]||1,P[4]||0,P[5]||0,P[6]||0,q)}}return new Date(T)})(_),this.init()},S.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},S.$utils=function(){return N},S.isValid=function(){return this.$d.toString()!==v},S.isSame=function(_,k){var T=D(_);return this.startOf(k)<=T&&T<=this.endOf(k)},S.isAfter=function(_,k){return D(_)<this.startOf(k)},S.isBefore=function(_,k){return this.endOf(k)<D(_)},S.$g=function(_,k,T){return N.u(_)?this[k]:this.set(T,_)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(_,k){var T=this,j=!!N.u(k)||k,P=N.p(_),U=function(ee,se){var te=N.w(T.$u?Date.UTC(T.$y,se,ee):new Date(T.$y,se,ee),T);return j?te:te.endOf(h)},q=function(ee,se){return N.w(T.toDate()[ee].apply(T.toDate("s"),(j?[0,0,0,0]:[23,59,59,999]).slice(se)),T)},Z=this.$W,B=this.$M,X=this.$D,L="set"+(this.$u?"UTC":"");switch(P){case g:return j?U(1,0):U(31,11);case f:return j?U(1,B):U(0,B+1);case d:var I=this.$locale().weekStart||0,G=(Z<I?Z+7:Z)-I;return U(j?X-G:X+(6-G),B);case h:case p:return q(L+"Hours",0);case u:return q(L+"Minutes",1);case n:return q(L+"Seconds",2);case a:return q(L+"Milliseconds",3);default:return this.clone()}},S.endOf=function(_){return this.startOf(_,!1)},S.$set=function(_,k){var T,j=N.p(_),P="set"+(this.$u?"UTC":""),U=(T={},T[h]=P+"Date",T[p]=P+"Date",T[f]=P+"Month",T[g]=P+"FullYear",T[u]=P+"Hours",T[n]=P+"Minutes",T[a]=P+"Seconds",T[l]=P+"Milliseconds",T)[j],q=j===h?this.$D+(k-this.$W):k;if(j===f||j===g){var Z=this.clone().set(p,1);Z.$d[U](q),Z.init(),this.$d=Z.set(p,Math.min(this.$D,Z.daysInMonth())).$d}else U&&this.$d[U](q);return this.init(),this},S.set=function(_,k){return this.clone().$set(_,k)},S.get=function(_){return this[N.p(_)]()},S.add=function(_,k){var T,j=this;_=Number(_);var P=N.p(k),U=function(B){var X=D(j);return N.w(X.date(X.date()+Math.round(B*_)),j)};if(P===f)return this.set(f,this.$M+_);if(P===g)return this.set(g,this.$y+_);if(P===h)return U(1);if(P===d)return U(7);var q=(T={},T[n]=r,T[u]=o,T[a]=1e3,T)[P]||1,Z=this.$d.getTime()+_*q;return N.w(Z,this)},S.subtract=function(_,k){return this.add(-1*_,k)},S.format=function(_){var k=this,T=this.$locale();if(!this.isValid())return T.invalidDate||v;var j=_||"YYYY-MM-DDTHH:mm:ssZ",P=N.z(this),U=this.$H,q=this.$m,Z=this.$M,B=T.weekdays,X=T.months,L=T.meridiem,I=function(se,te,re,J){return se&&(se[te]||se(k,j))||re[te].slice(0,J)},G=function(se){return N.s(U%12||12,se,"0")},ee=L||function(se,te,re){var J=se<12?"AM":"PM";return re?J.toLowerCase():J};return j.replace(x,(function(se,te){return te||(function(re){switch(re){case"YY":return String(k.$y).slice(-2);case"YYYY":return N.s(k.$y,4,"0");case"M":return Z+1;case"MM":return N.s(Z+1,2,"0");case"MMM":return I(T.monthsShort,Z,X,3);case"MMMM":return I(X,Z);case"D":return k.$D;case"DD":return N.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return I(T.weekdaysMin,k.$W,B,2);case"ddd":return I(T.weekdaysShort,k.$W,B,3);case"dddd":return B[k.$W];case"H":return String(U);case"HH":return N.s(U,2,"0");case"h":return G(1);case"hh":return G(2);case"a":return ee(U,q,!0);case"A":return ee(U,q,!1);case"m":return String(q);case"mm":return N.s(q,2,"0");case"s":return String(k.$s);case"ss":return N.s(k.$s,2,"0");case"SSS":return N.s(k.$ms,3,"0");case"Z":return P}return null})(se)||P.replace(":","")}))},S.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},S.diff=function(_,k,T){var j,P=this,U=N.p(k),q=D(_),Z=(q.utcOffset()-this.utcOffset())*r,B=this-q,X=function(){return N.m(P,q)};switch(U){case g:j=X()/12;break;case f:j=X();break;case m:j=X()/3;break;case d:j=(B-Z)/6048e5;break;case h:j=(B-Z)/864e5;break;case u:j=B/o;break;case n:j=B/r;break;case a:j=B/1e3;break;default:j=B}return T?j:N.a(j)},S.daysInMonth=function(){return this.endOf(f).$D},S.$locale=function(){return R[this.$L]},S.locale=function(_,k){if(!_)return this.$L;var T=this.clone(),j=z(_,k,!0);return j&&(T.$L=j),T},S.clone=function(){return N.w(this.$d,this)},S.toDate=function(){return new Date(this.valueOf())},S.toJSON=function(){return this.isValid()?this.toISOString():null},S.toISOString=function(){return this.$d.toISOString()},S.toString=function(){return this.$d.toUTCString()},w})(),C=E.prototype;return D.prototype=C,[["$ms",l],["$s",a],["$m",n],["$H",u],["$W",h],["$M",f],["$y",g],["$D",p]].forEach((function(w){C[w[1]]=function(S){return this.$g(S,w[0],w[1])}})),D.extend=function(w,S){return w.$i||(w(S,E,D),w.$i=!0),D},D.locale=z,D.isDayjs=$,D.unix=function(w){return D(1e3*w)},D.en=R[W],D.Ls=R,D.p={},D}))},{}],392:[function(e,s,c){(function(r,o){typeof c=="object"&&s!==void 0?s.exports=o():(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_customParseFormat=o()})(void 0,(function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,a=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,u={},h=function(b){return(b=+b)+(b>68?1900:2e3)},d=function(b){return function(x){this[b]=+x}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var A=x.match(/([+-]|\d\d)/g),M=60*A[1]+(+A[2]||0);return M===0?0:A[0]==="+"?-M:M})(b)}],m=function(b){var x=u[b];return x&&(x.indexOf?x:x.s.concat(x.f))},g=function(b,x){var A,M=u.meridiem;if(M){for(var V=1;V<=24;V+=1)if(b.indexOf(M(V,0,x))>-1){A=V>12;break}}else A=b===(x?"pm":"PM");return A},p={A:[n,function(b){this.afternoon=g(b,!1)}],a:[n,function(b){this.afternoon=g(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[l,d("day")],Do:[n,function(b){var x=u.ordinal,A=b.match(/\d+/);if(this.day=A[0],x)for(var M=1;M<=31;M+=1)x(M).replace(/\[|\]/g,"")===b&&(this.day=M)}],M:[a,d("month")],MM:[l,d("month")],MMM:[n,function(b){var x=m("months"),A=(m("monthsShort")||x.map((function(M){return M.slice(0,3)}))).indexOf(b)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[n,function(b){var x=m("months").indexOf(b)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(b){this.year=h(b)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(b){var x,A;x=b,A=u&&u.formats;for(var M=(b=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(D,N,E){var C=E&&E.toUpperCase();return N||A[E]||r[E]||A[C].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,S,_){return S||_.slice(1)}))}))).match(o),V=M.length,W=0;W<V;W+=1){var R=M[W],F=p[R],$=F&&F[0],z=F&&F[1];M[W]=z?{regex:$,parser:z}:R.replace(/^\[|\]$/g,"")}return function(D){for(var N={},E=0,C=0;E<V;E+=1){var w=M[E];if(typeof w=="string")C+=w.length;else{var S=w.regex,_=w.parser,k=D.slice(C),T=S.exec(k)[0];_.call(N,T),D=D.replace(T,"")}}return(function(j){var P=j.afternoon;if(P!==void 0){var U=j.hours;P?U<12&&(j.hours+=12):U===12&&(j.hours=0),delete j.afternoon}})(N),N}}return function(b,x,A){A.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(h=b.parseTwoDigitYear);var M=x.prototype,V=M.parse;M.parse=function(W){var R=W.date,F=W.utc,$=W.args;this.$u=F;var z=$[1];if(typeof z=="string"){var D=$[2]===!0,N=$[3]===!0,E=D||N,C=$[2];N&&(C=$[2]),u=this.$locale(),!D&&C&&(u=A.Ls[C]),this.$d=(function(k,T,j){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*k);var P=v(T)(k),U=P.year,q=P.month,Z=P.day,B=P.hours,X=P.minutes,L=P.seconds,I=P.milliseconds,G=P.zone,ee=new Date,se=Z||(U||q?1:ee.getDate()),te=U||ee.getFullYear(),re=0;U&&!q||(re=q>0?q-1:ee.getMonth());var J=B||0,de=X||0,ne=L||0,fe=I||0;return G?new Date(Date.UTC(te,re,se,J,de,ne,fe+60*G.offset*1e3)):j?new Date(Date.UTC(te,re,se,J,de,ne,fe)):new Date(te,re,se,J,de,ne,fe)}catch{return new Date("")}})(R,z,F),this.init(),C&&C!==!0&&(this.$L=this.locale(C).$L),E&&R!=this.format(z)&&(this.$d=new Date("")),u={}}else if(z instanceof Array)for(var w=z.length,S=1;S<=w;S+=1){$[1]=z[S-1];var _=A.apply(this,$);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}S===w&&(this.$d=new Date(""))}else V.call(this,W)}}}))},{}],393:[function(e,s,c){(function(r,o){typeof c=="object"&&s!==void 0?s.exports=o():(r=typeof globalThis<"u"?globalThis:r||self).dayjs_plugin_utc=o()})(void 0,(function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,l=/([+-]|\d\d)/g;return function(a,n,u){var h=n.prototype;u.utc=function(b){var x={date:b,utc:!0,args:arguments};return new n(x)},h.utc=function(b){var x=u(this.toDate(),{locale:this.$L,utc:!0});return b?x.add(this.utcOffset(),r):x},h.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var d=h.parse;h.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),d.call(this,b)};var f=h.init;h.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else f.call(this)};var m=h.utcOffset;h.utcOffset=function(b,x){var A=this.$utils().u;if(A(b))return this.$u?0:A(this.$offset)?m.call(this):this.$offset;if(typeof b=="string"&&(b=(function(R){R===void 0&&(R="");var F=R.match(o);if(!F)return null;var $=(""+F[0]).match(l)||["-",0,0],z=$[0],D=60*+$[1]+ +$[2];return D===0?0:z==="+"?D:-D})(b))===null)return this;var M=Math.abs(b)<=16?60*b:b,V=this;if(x)return V.$offset=M,V.$u=b===0,V;if(b!==0){var W=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(V=this.local().add(M+W,r)).$offset=M,V.$x.$localOffset=W}else V=this.utc();return V};var g=h.format;h.format=function(b){var x=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return g.call(this,x)},h.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var p=h.toDate;h.toDate=function(b){return b==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var v=h.diff;h.diff=function(b,x,A){if(b&&this.$u===b.$u)return v.call(this,b,x,A);var M=this.local(),V=u(b).local();return v.call(M,V,x,A)}}}))},{}],394:[function(e,s,c){c.utils=e("./des/utils"),c.Cipher=e("./des/cipher"),c.DES=e("./des/des"),c.CBC=e("./des/cbc"),c.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,s,c){var r=e("minimalistic-assert"),o=e("inherits"),l={};function a(n){r.equal(n.length,8,"Invalid IV length"),this.iv=new Array(8);for(var u=0;u<this.iv.length;u++)this.iv[u]=n[u]}c.instantiate=function(n){function u(m){n.call(this,m),this._cbcInit()}o(u,n);for(var h=Object.keys(l),d=0;d<h.length;d++){var f=h[d];u.prototype[f]=l[f]}return u.create=function(m){return new u(m)},u},l._cbcInit=function(){var n=new a(this.options.iv);this._cbcState=n},l._update=function(n,u,h,d){var f=this._cbcState,m=this.constructor.super_.prototype,g=f.iv;if(this.type==="encrypt"){for(var p=0;p<this.blockSize;p++)g[p]^=n[u+p];for(m._update.call(this,g,0,h,d),p=0;p<this.blockSize;p++)g[p]=h[d+p]}else{for(m._update.call(this,n,u,h,d),p=0;p<this.blockSize;p++)h[d+p]^=g[p];for(p=0;p<this.blockSize;p++)g[p]=n[u+p]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,s,c){var r=e("minimalistic-assert");function o(l){this.options=l,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=l.padding!==!1}s.exports=o,o.prototype._init=function(){},o.prototype.update=function(l){return l.length===0?[]:this.type==="decrypt"?this._updateDecrypt(l):this._updateEncrypt(l)},o.prototype._buffer=function(l,a){for(var n=Math.min(this.buffer.length-this.bufferOff,l.length-a),u=0;u<n;u++)this.buffer[this.bufferOff+u]=l[a+u];return this.bufferOff+=n,n},o.prototype._flushBuffer=function(l,a){return this._update(this.buffer,0,l,a),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(l){var a=0,n=0,u=(this.bufferOff+l.length)/this.blockSize|0,h=new Array(u*this.blockSize);this.bufferOff!==0&&(a+=this._buffer(l,a),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(h,n)));for(var d=l.length-(l.length-a)%this.blockSize;a<d;a+=this.blockSize)this._update(l,a,h,n),n+=this.blockSize;for(;a<l.length;a++,this.bufferOff++)this.buffer[this.bufferOff]=l[a];return h},o.prototype._updateDecrypt=function(l){for(var a=0,n=0,u=Math.ceil((this.bufferOff+l.length)/this.blockSize)-1,h=new Array(u*this.blockSize);u>0;u--)a+=this._buffer(l,a),n+=this._flushBuffer(h,n);return a+=this._buffer(l,a),h},o.prototype.final=function(l){var a,n;return l&&(a=this.update(l)),n=this.type==="encrypt"?this._finalEncrypt():this._finalDecrypt(),a?a.concat(n):n},o.prototype._pad=function(l,a){if(a===0)return!1;for(;a<l.length;)l[a++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var l=new Array(this.blockSize);return this._update(this.buffer,0,l,0),l},o.prototype._unpad=function(l){return l},o.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var l=new Array(this.blockSize);return this._flushBuffer(l,0),this._unpad(l)}},{"minimalistic-assert":453}],397:[function(e,s,c){var r=e("minimalistic-assert"),o=e("inherits"),l=e("./utils"),a=e("./cipher");function n(){this.tmp=new Array(2),this.keys=null}function u(d){a.call(this,d);var f=new n;this._desState=f,this.deriveKeys(f,d.key)}o(u,a),s.exports=u,u.create=function(d){return new u(d)};var h=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(d,f){d.keys=new Array(32),r.equal(f.length,this.blockSize,"Invalid key length");var m=l.readUInt32BE(f,0),g=l.readUInt32BE(f,4);l.pc1(m,g,d.tmp,0),m=d.tmp[0],g=d.tmp[1];for(var p=0;p<d.keys.length;p+=2){var v=h[p>>>1];m=l.r28shl(m,v),g=l.r28shl(g,v),l.pc2(m,g,d.keys,p)}},u.prototype._update=function(d,f,m,g){var p=this._desState,v=l.readUInt32BE(d,f),b=l.readUInt32BE(d,f+4);l.ip(v,b,p.tmp,0),v=p.tmp[0],b=p.tmp[1],this.type==="encrypt"?this._encrypt(p,v,b,p.tmp,0):this._decrypt(p,v,b,p.tmp,0),v=p.tmp[0],b=p.tmp[1],l.writeUInt32BE(m,v,g),l.writeUInt32BE(m,b,g+4)},u.prototype._pad=function(d,f){if(this.padding===!1)return!1;for(var m=d.length-f,g=f;g<d.length;g++)d[g]=m;return!0},u.prototype._unpad=function(d){if(this.padding===!1)return d;for(var f=d[d.length-1],m=d.length-f;m<d.length;m++)r.equal(d[m],f);return d.slice(0,d.length-f)},u.prototype._encrypt=function(d,f,m,g,p){for(var v=f,b=m,x=0;x<d.keys.length;x+=2){var A=d.keys[x],M=d.keys[x+1];l.expand(b,d.tmp,0),A^=d.tmp[0],M^=d.tmp[1];var V=l.substitute(A,M),W=b;b=(v^l.permute(V))>>>0,v=W}l.rip(b,v,g,p)},u.prototype._decrypt=function(d,f,m,g,p){for(var v=m,b=f,x=d.keys.length-2;x>=0;x-=2){var A=d.keys[x],M=d.keys[x+1];l.expand(v,d.tmp,0),A^=d.tmp[0],M^=d.tmp[1];var V=l.substitute(A,M),W=v;v=(b^l.permute(V))>>>0,b=W}l.rip(v,b,g,p)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,s,c){var r=e("minimalistic-assert"),o=e("inherits"),l=e("./cipher"),a=e("./des");function n(h,d){r.equal(d.length,24,"Invalid key length");var f=d.slice(0,8),m=d.slice(8,16),g=d.slice(16,24);this.ciphers=h==="encrypt"?[a.create({type:"encrypt",key:f}),a.create({type:"decrypt",key:m}),a.create({type:"encrypt",key:g})]:[a.create({type:"decrypt",key:g}),a.create({type:"encrypt",key:m}),a.create({type:"decrypt",key:f})]}function u(h){l.call(this,h);var d=new n(this.type,this.options.key);this._edeState=d}o(u,l),s.exports=u,u.create=function(h){return new u(h)},u.prototype._update=function(h,d,f,m){var g=this._edeState;g.ciphers[0]._update(h,d,f,m),g.ciphers[1]._update(f,m,f,m),g.ciphers[2]._update(f,m,f,m)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,s,c){c.readUInt32BE=function(a,n){return(a[0+n]<<24|a[1+n]<<16|a[2+n]<<8|a[3+n])>>>0},c.writeUInt32BE=function(a,n,u){a[0+u]=n>>>24,a[1+u]=n>>>16&255,a[2+u]=n>>>8&255,a[3+u]=255&n},c.ip=function(a,n,u,h){for(var d=0,f=0,m=6;m>=0;m-=2){for(var g=0;g<=24;g+=8)d<<=1,d|=n>>>g+m&1;for(g=0;g<=24;g+=8)d<<=1,d|=a>>>g+m&1}for(m=6;m>=0;m-=2){for(g=1;g<=25;g+=8)f<<=1,f|=n>>>g+m&1;for(g=1;g<=25;g+=8)f<<=1,f|=a>>>g+m&1}u[h+0]=d>>>0,u[h+1]=f>>>0},c.rip=function(a,n,u,h){for(var d=0,f=0,m=0;m<4;m++)for(var g=24;g>=0;g-=8)d<<=1,d|=n>>>g+m&1,d<<=1,d|=a>>>g+m&1;for(m=4;m<8;m++)for(g=24;g>=0;g-=8)f<<=1,f|=n>>>g+m&1,f<<=1,f|=a>>>g+m&1;u[h+0]=d>>>0,u[h+1]=f>>>0},c.pc1=function(a,n,u,h){for(var d=0,f=0,m=7;m>=5;m--){for(var g=0;g<=24;g+=8)d<<=1,d|=n>>g+m&1;for(g=0;g<=24;g+=8)d<<=1,d|=a>>g+m&1}for(g=0;g<=24;g+=8)d<<=1,d|=n>>g+m&1;for(m=1;m<=3;m++){for(g=0;g<=24;g+=8)f<<=1,f|=n>>g+m&1;for(g=0;g<=24;g+=8)f<<=1,f|=a>>g+m&1}for(g=0;g<=24;g+=8)f<<=1,f|=a>>g+m&1;u[h+0]=d>>>0,u[h+1]=f>>>0},c.r28shl=function(a,n){return a<<n&268435455|a>>>28-n};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];c.pc2=function(a,n,u,h){for(var d=0,f=0,m=r.length>>>1,g=0;g<m;g++)d<<=1,d|=a>>>r[g]&1;for(g=m;g<r.length;g++)f<<=1,f|=n>>>r[g]&1;u[h+0]=d>>>0,u[h+1]=f>>>0},c.expand=function(a,n,u){var h=0,d=0;h=(1&a)<<5|a>>>27;for(var f=23;f>=15;f-=4)h<<=6,h|=a>>>f&63;for(f=11;f>=3;f-=4)d|=a>>>f&63,d<<=6;d|=(31&a)<<1|a>>>31,n[u+0]=h>>>0,n[u+1]=d>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];c.substitute=function(a,n){for(var u=0,h=0;h<4;h++)u<<=4,u|=o[64*h+(a>>>18-6*h&63)];for(h=0;h<4;h++)u<<=4,u|=o[256+64*h+(n>>>18-6*h&63)];return u>>>0};var l=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];c.permute=function(a){for(var n=0,u=0;u<l.length;u++)n<<=1,n|=a>>>l[u]&1;return n>>>0},c.padSplit=function(a,n,u){for(var h=a.toString(2);h.length<n;)h="0"+h;for(var d=[],f=0;f<n;f+=u)d.push(h.slice(f,f+u));return d.join(" ")}},{}],400:[function(e,s,c){(function(r){(function(){var o=e("./lib/generatePrime"),l=e("./lib/primes.json"),a=e("./lib/dh"),n={binary:!0,hex:!0,base64:!0};c.DiffieHellmanGroup=c.createDiffieHellmanGroup=c.getDiffieHellman=function(u){var h=new r(l[u].prime,"hex"),d=new r(l[u].gen,"hex");return new a(h,d)},c.createDiffieHellman=c.DiffieHellman=function u(h,d,f,m){return r.isBuffer(d)||n[d]===void 0?u(h,"binary",d,f):(d=d||"binary",m=m||"binary",f=f||new r([2]),r.isBuffer(f)||(f=new r(f,m)),typeof h=="number"?new a(o(h,f),f,!0):(r.isBuffer(h)||(h=new r(h,d)),new a(h,f,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,s,c){(function(r){(function(){var o=e("bn.js"),l=new(e("miller-rabin")),a=new o(24),n=new o(11),u=new o(10),h=new o(3),d=new o(7),f=e("./generatePrime"),m=e("randombytes");function g(A,M){return M=M||"utf8",r.isBuffer(A)||(A=new r(A,M)),this._pub=new o(A),this}function p(A,M){return M=M||"utf8",r.isBuffer(A)||(A=new r(A,M)),this._priv=new o(A),this}s.exports=b;var v={};function b(A,M,V){this.setGenerator(M),this.__prime=new o(A),this._prime=o.mont(this.__prime),this._primeLen=A.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,V?(this.setPublicKey=g,this.setPrivateKey=p):this._primeCode=8}function x(A,M){var V=new r(A.toArray());return M?V.toString(M):V}Object.defineProperty(b.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=(function(A,M){var V=M.toString("hex"),W=[V,A.toString(16)].join("_");if(W in v)return v[W];var R,F=0;if(A.isEven()||!f.simpleSieve||!f.fermatTest(A)||!l.test(A))return F+=1,F+=V==="02"||V==="05"?8:4,v[W]=F,F;switch(l.test(A.shrn(1))||(F+=2),V){case"02":A.mod(a).cmp(n)&&(F+=8);break;case"05":(R=A.mod(u)).cmp(h)&&R.cmp(d)&&(F+=8);break;default:F+=4}return v[W]=F,F})(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new o(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(A){var M=(A=(A=new o(A)).toRed(this._prime)).redPow(this._priv).fromRed(),V=new r(M.toArray()),W=this.getPrime();if(V.length<W.length){var R=new r(W.length-V.length);R.fill(0),V=r.concat([R,V])}return V},b.prototype.getPublicKey=function(A){return x(this._pub,A)},b.prototype.getPrivateKey=function(A){return x(this._priv,A)},b.prototype.getPrime=function(A){return x(this.__prime,A)},b.prototype.getGenerator=function(A){return x(this._gen,A)},b.prototype.setGenerator=function(A,M){return M=M||"utf8",r.isBuffer(A)||(A=new r(A,M)),this.__gen=A,this._gen=new o(A),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,s,c){var r=e("randombytes");s.exports=A,A.simpleSieve=b,A.fermatTest=x;var o=e("bn.js"),l=new o(24),a=new(e("miller-rabin")),n=new o(1),u=new o(2),h=new o(5),d=(new o(16),new o(8),new o(10)),f=new o(3),m=(new o(7),new o(11)),g=new o(4),p=(new o(12),null);function v(){if(p!==null)return p;var M=[];M[0]=2;for(var V=1,W=3;W<1048576;W+=2){for(var R=Math.ceil(Math.sqrt(W)),F=0;F<V&&M[F]<=R&&W%M[F]!=0;F++);V!==F&&M[F]<=R||(M[V++]=W)}return p=M,M}function b(M){for(var V=v(),W=0;W<V.length;W++)if(M.modn(V[W])===0)return M.cmpn(V[W])===0;return!0}function x(M){var V=o.mont(M);return u.toRed(V).redPow(M.subn(1)).fromRed().cmpn(1)===0}function A(M,V){if(M<16)return new o(V===2||V===5?[140,123]:[140,39]);var W,R;for(V=new o(V);;){for(W=new o(r(Math.ceil(M/8)));W.bitLength()>M;)W.ishrn(1);if(W.isEven()&&W.iadd(n),W.testn(1)||W.iadd(u),V.cmp(u)){if(!V.cmp(h))for(;W.mod(d).cmp(f);)W.iadd(g)}else for(;W.mod(l).cmp(m);)W.iadd(g);if(b(R=W.shrn(1))&&b(W)&&x(R)&&x(W)&&a.test(R)&&a.test(W))return W}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,s,c){s.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],404:[function(e,s,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],405:[function(e,s,c){var r=c;r.version=e("../package.json").version,r.utils=e("./elliptic/utils"),r.rand=e("brorand"),r.curve=e("./elliptic/curve"),r.curves=e("./elliptic/curves"),r.ec=e("./elliptic/ec"),r.eddsa=e("./elliptic/eddsa")},{"../package.json":421,"./elliptic/curve":408,"./elliptic/curves":411,"./elliptic/ec":412,"./elliptic/eddsa":415,"./elliptic/utils":419,brorand:187}],406:[function(e,s,c){var r=e("bn.js"),o=e("../utils"),l=o.getNAF,a=o.getJSF,n=o.assert;function u(d,f){this.type=d,this.p=new r(f.p,16),this.red=f.prime?r.red(f.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=f.n&&new r(f.n,16),this.g=f.g&&this.pointFromJSON(f.g,f.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var m=this.n&&this.p.div(this.n);!m||m.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function h(d,f){this.curve=d,this.type=f,this.precomputed=null}s.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(d,f){n(d.precomputed);var m=d._getDoubles(),g=l(f,1,this._bitLength),p=(1<<m.step+1)-(m.step%2==0?2:1);p/=3;var v,b,x=[];for(v=0;v<g.length;v+=m.step){b=0;for(var A=v+m.step-1;A>=v;A--)b=(b<<1)+g[A];x.push(b)}for(var M=this.jpoint(null,null,null),V=this.jpoint(null,null,null),W=p;W>0;W--){for(v=0;v<x.length;v++)(b=x[v])===W?V=V.mixedAdd(m.points[v]):b===-W&&(V=V.mixedAdd(m.points[v].neg()));M=M.add(V)}return M.toP()},u.prototype._wnafMul=function(d,f){var m=4,g=d._getNAFPoints(m);m=g.wnd;for(var p=g.points,v=l(f,m,this._bitLength),b=this.jpoint(null,null,null),x=v.length-1;x>=0;x--){for(var A=0;x>=0&&v[x]===0;x--)A++;if(x>=0&&A++,b=b.dblp(A),x<0)break;var M=v[x];n(M!==0),b=d.type==="affine"?M>0?b.mixedAdd(p[M-1>>1]):b.mixedAdd(p[-M-1>>1].neg()):M>0?b.add(p[M-1>>1]):b.add(p[-M-1>>1].neg())}return d.type==="affine"?b.toP():b},u.prototype._wnafMulAdd=function(d,f,m,g,p){var v,b,x,A=this._wnafT1,M=this._wnafT2,V=this._wnafT3,W=0;for(v=0;v<g;v++){var R=(x=f[v])._getNAFPoints(d);A[v]=R.wnd,M[v]=R.points}for(v=g-1;v>=1;v-=2){var F=v-1,$=v;if(A[F]===1&&A[$]===1){var z=[f[F],null,null,f[$]];f[F].y.cmp(f[$].y)===0?(z[1]=f[F].add(f[$]),z[2]=f[F].toJ().mixedAdd(f[$].neg())):f[F].y.cmp(f[$].y.redNeg())===0?(z[1]=f[F].toJ().mixedAdd(f[$]),z[2]=f[F].add(f[$].neg())):(z[1]=f[F].toJ().mixedAdd(f[$]),z[2]=f[F].toJ().mixedAdd(f[$].neg()));var D=[-3,-1,-5,-7,0,7,5,1,3],N=a(m[F],m[$]);for(W=Math.max(N[0].length,W),V[F]=new Array(W),V[$]=new Array(W),b=0;b<W;b++){var E=0|N[0][b],C=0|N[1][b];V[F][b]=D[3*(E+1)+(C+1)],V[$][b]=0,M[F]=z}}else V[F]=l(m[F],A[F],this._bitLength),V[$]=l(m[$],A[$],this._bitLength),W=Math.max(V[F].length,W),W=Math.max(V[$].length,W)}var w=this.jpoint(null,null,null),S=this._wnafT4;for(v=W;v>=0;v--){for(var _=0;v>=0;){var k=!0;for(b=0;b<g;b++)S[b]=0|V[b][v],S[b]!==0&&(k=!1);if(!k)break;_++,v--}if(v>=0&&_++,w=w.dblp(_),v<0)break;for(b=0;b<g;b++){var T=S[b];T!==0&&(T>0?x=M[b][T-1>>1]:T<0&&(x=M[b][-T-1>>1].neg()),w=x.type==="affine"?w.mixedAdd(x):w.add(x))}}for(v=0;v<g;v++)M[v]=null;return p?w:w.toP()},u.BasePoint=h,h.prototype.eq=function(){throw new Error("Not implemented")},h.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(d,f){d=o.toArray(d,f);var m=this.p.byteLength();if((d[0]===4||d[0]===6||d[0]===7)&&d.length-1==2*m)return d[0]===6?n(d[d.length-1]%2==0):d[0]===7&&n(d[d.length-1]%2==1),this.point(d.slice(1,1+m),d.slice(1+m,1+2*m));if((d[0]===2||d[0]===3)&&d.length-1===m)return this.pointFromX(d.slice(1,1+m),d[0]===3);throw new Error("Unknown point format")},h.prototype.encodeCompressed=function(d){return this.encode(d,!0)},h.prototype._encode=function(d){var f=this.curve.p.byteLength(),m=this.getX().toArray("be",f);return d?[this.getY().isEven()?2:3].concat(m):[4].concat(m,this.getY().toArray("be",f))},h.prototype.encode=function(d,f){return o.encode(this._encode(f),d)},h.prototype.precompute=function(d){if(this.precomputed)return this;var f={doubles:null,naf:null,beta:null};return f.naf=this._getNAFPoints(8),f.doubles=this._getDoubles(4,d),f.beta=this._getBeta(),this.precomputed=f,this},h.prototype._hasDoubles=function(d){if(!this.precomputed)return!1;var f=this.precomputed.doubles;return!!f&&f.points.length>=Math.ceil((d.bitLength()+1)/f.step)},h.prototype._getDoubles=function(d,f){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var m=[this],g=this,p=0;p<f;p+=d){for(var v=0;v<d;v++)g=g.dbl();m.push(g)}return{step:d,points:m}},h.prototype._getNAFPoints=function(d){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var f=[this],m=(1<<d)-1,g=m===1?null:this.dbl(),p=1;p<m;p++)f[p]=f[p-1].add(g);return{wnd:d,points:f}},h.prototype._getBeta=function(){return null},h.prototype.dblp=function(d){for(var f=this,m=0;m<d;m++)f=f.dbl();return f}},{"../utils":419,"bn.js":420}],407:[function(e,s,c){var r=e("../utils"),o=e("bn.js"),l=e("inherits"),a=e("./base"),n=r.assert;function u(d){this.twisted=(0|d.a)!=1,this.mOneA=this.twisted&&(0|d.a)==-1,this.extended=this.mOneA,a.call(this,"edwards",d),this.a=new o(d.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(d.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(d.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),n(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(0|d.c)==1}function h(d,f,m,g,p){a.BasePoint.call(this,d,"projective"),f===null&&m===null&&g===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(f,16),this.y=new o(m,16),this.z=g?new o(g,16):this.curve.one,this.t=p&&new o(p,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}l(u,a),s.exports=u,u.prototype._mulA=function(d){return this.mOneA?d.redNeg():this.a.redMul(d)},u.prototype._mulC=function(d){return this.oneC?d:this.c.redMul(d)},u.prototype.jpoint=function(d,f,m,g){return this.point(d,f,m,g)},u.prototype.pointFromX=function(d,f){(d=new o(d,16)).red||(d=d.toRed(this.red));var m=d.redSqr(),g=this.c2.redSub(this.a.redMul(m)),p=this.one.redSub(this.c2.redMul(this.d).redMul(m)),v=g.redMul(p.redInvm()),b=v.redSqrt();if(b.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");var x=b.fromRed().isOdd();return(f&&!x||!f&&x)&&(b=b.redNeg()),this.point(d,b)},u.prototype.pointFromY=function(d,f){(d=new o(d,16)).red||(d=d.toRed(this.red));var m=d.redSqr(),g=m.redSub(this.c2),p=m.redMul(this.d).redMul(this.c2).redSub(this.a),v=g.redMul(p.redInvm());if(v.cmp(this.zero)===0){if(f)throw new Error("invalid point");return this.point(this.zero,d)}var b=v.redSqrt();if(b.redSqr().redSub(v).cmp(this.zero)!==0)throw new Error("invalid point");return b.fromRed().isOdd()!==f&&(b=b.redNeg()),this.point(b,d)},u.prototype.validate=function(d){if(d.isInfinity())return!0;d.normalize();var f=d.x.redSqr(),m=d.y.redSqr(),g=f.redMul(this.a).redAdd(m),p=this.c2.redMul(this.one.redAdd(this.d.redMul(f).redMul(m)));return g.cmp(p)===0},l(h,a.BasePoint),u.prototype.pointFromJSON=function(d){return h.fromJSON(this,d)},u.prototype.point=function(d,f,m,g){return new h(this,d,f,m,g)},h.fromJSON=function(d,f){return new h(d,f[0],f[1],f[2])},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},h.prototype._extDbl=function(){var d=this.x.redSqr(),f=this.y.redSqr(),m=this.z.redSqr();m=m.redIAdd(m);var g=this.curve._mulA(d),p=this.x.redAdd(this.y).redSqr().redISub(d).redISub(f),v=g.redAdd(f),b=v.redSub(m),x=g.redSub(f),A=p.redMul(b),M=v.redMul(x),V=p.redMul(x),W=b.redMul(v);return this.curve.point(A,M,W,V)},h.prototype._projDbl=function(){var d,f,m,g,p,v,b=this.x.redAdd(this.y).redSqr(),x=this.x.redSqr(),A=this.y.redSqr();if(this.curve.twisted){var M=(g=this.curve._mulA(x)).redAdd(A);this.zOne?(d=b.redSub(x).redSub(A).redMul(M.redSub(this.curve.two)),f=M.redMul(g.redSub(A)),m=M.redSqr().redSub(M).redSub(M)):(p=this.z.redSqr(),v=M.redSub(p).redISub(p),d=b.redSub(x).redISub(A).redMul(v),f=M.redMul(g.redSub(A)),m=M.redMul(v))}else g=x.redAdd(A),p=this.curve._mulC(this.z).redSqr(),v=g.redSub(p).redSub(p),d=this.curve._mulC(b.redISub(g)).redMul(v),f=this.curve._mulC(g).redMul(x.redISub(A)),m=g.redMul(v);return this.curve.point(d,f,m)},h.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},h.prototype._extAdd=function(d){var f=this.y.redSub(this.x).redMul(d.y.redSub(d.x)),m=this.y.redAdd(this.x).redMul(d.y.redAdd(d.x)),g=this.t.redMul(this.curve.dd).redMul(d.t),p=this.z.redMul(d.z.redAdd(d.z)),v=m.redSub(f),b=p.redSub(g),x=p.redAdd(g),A=m.redAdd(f),M=v.redMul(b),V=x.redMul(A),W=v.redMul(A),R=b.redMul(x);return this.curve.point(M,V,R,W)},h.prototype._projAdd=function(d){var f,m,g=this.z.redMul(d.z),p=g.redSqr(),v=this.x.redMul(d.x),b=this.y.redMul(d.y),x=this.curve.d.redMul(v).redMul(b),A=p.redSub(x),M=p.redAdd(x),V=this.x.redAdd(this.y).redMul(d.x.redAdd(d.y)).redISub(v).redISub(b),W=g.redMul(A).redMul(V);return this.curve.twisted?(f=g.redMul(M).redMul(b.redSub(this.curve._mulA(v))),m=A.redMul(M)):(f=g.redMul(M).redMul(b.redSub(v)),m=this.curve._mulC(A).redMul(M)),this.curve.point(W,f,m)},h.prototype.add=function(d){return this.isInfinity()?d:d.isInfinity()?this:this.curve.extended?this._extAdd(d):this._projAdd(d)},h.prototype.mul=function(d){return this._hasDoubles(d)?this.curve._fixedNafMul(this,d):this.curve._wnafMul(this,d)},h.prototype.mulAdd=function(d,f,m){return this.curve._wnafMulAdd(1,[this,f],[d,m],2,!1)},h.prototype.jmulAdd=function(d,f,m){return this.curve._wnafMulAdd(1,[this,f],[d,m],2,!0)},h.prototype.normalize=function(){if(this.zOne)return this;var d=this.z.redInvm();return this.x=this.x.redMul(d),this.y=this.y.redMul(d),this.t&&(this.t=this.t.redMul(d)),this.z=this.curve.one,this.zOne=!0,this},h.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()},h.prototype.getY=function(){return this.normalize(),this.y.fromRed()},h.prototype.eq=function(d){return this===d||this.getX().cmp(d.getX())===0&&this.getY().cmp(d.getY())===0},h.prototype.eqXToP=function(d){var f=d.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(f)===0)return!0;for(var m=d.clone(),g=this.curve.redN.redMul(this.z);;){if(m.iadd(this.curve.n),m.cmp(this.curve.p)>=0)return!1;if(f.redIAdd(g),this.x.cmp(f)===0)return!0}},h.prototype.toP=h.prototype.normalize,h.prototype.mixedAdd=h.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,s,c){var r=c;r.base=e("./base"),r.short=e("./short"),r.mont=e("./mont"),r.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,s,c){var r=e("bn.js"),o=e("inherits"),l=e("./base"),a=e("../utils");function n(h){l.call(this,"mont",h),this.a=new r(h.a,16).toRed(this.red),this.b=new r(h.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(h,d,f){l.BasePoint.call(this,h,"projective"),d===null&&f===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(d,16),this.z=new r(f,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(n,l),s.exports=n,n.prototype.validate=function(h){var d=h.normalize().x,f=d.redSqr(),m=f.redMul(d).redAdd(f.redMul(this.a)).redAdd(d);return m.redSqrt().redSqr().cmp(m)===0},o(u,l.BasePoint),n.prototype.decodePoint=function(h,d){return this.point(a.toArray(h,d),1)},n.prototype.point=function(h,d){return new u(this,h,d)},n.prototype.pointFromJSON=function(h){return u.fromJSON(this,h)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(h,d){return new u(h,d[0],d[1]||h.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.z.cmpn(0)===0},u.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),d=this.x.redSub(this.z).redSqr(),f=h.redSub(d),m=h.redMul(d),g=f.redMul(d.redAdd(this.curve.a24.redMul(f)));return this.curve.point(m,g)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(h,d){var f=this.x.redAdd(this.z),m=this.x.redSub(this.z),g=h.x.redAdd(h.z),p=h.x.redSub(h.z).redMul(f),v=g.redMul(m),b=d.z.redMul(p.redAdd(v).redSqr()),x=d.x.redMul(p.redISub(v).redSqr());return this.curve.point(b,x)},u.prototype.mul=function(h){for(var d=h.clone(),f=this,m=this.curve.point(null,null),g=[];d.cmpn(0)!==0;d.iushrn(1))g.push(d.andln(1));for(var p=g.length-1;p>=0;p--)g[p]===0?(f=f.diffAdd(m,this),m=m.dbl()):(m=f.diffAdd(m,this),f=f.dbl());return m},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(h){return this.getX().cmp(h.getX())===0},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,s,c){var r=e("../utils"),o=e("bn.js"),l=e("inherits"),a=e("./base"),n=r.assert;function u(f){a.call(this,"short",f),this.a=new o(f.a,16).toRed(this.red),this.b=new o(f.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(f),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function h(f,m,g,p){a.BasePoint.call(this,f,"affine"),m===null&&g===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(m,16),this.y=new o(g,16),p&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function d(f,m,g,p){a.BasePoint.call(this,f,"jacobian"),m===null&&g===null&&p===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(m,16),this.y=new o(g,16),this.z=new o(p,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}l(u,a),s.exports=u,u.prototype._getEndomorphism=function(f){if(this.zeroA&&this.g&&this.n&&this.p.modn(3)===1){var m,g;if(f.beta)m=new o(f.beta,16).toRed(this.red);else{var p=this._getEndoRoots(this.p);m=(m=p[0].cmp(p[1])<0?p[0]:p[1]).toRed(this.red)}if(f.lambda)g=new o(f.lambda,16);else{var v=this._getEndoRoots(this.n);this.g.mul(v[0]).x.cmp(this.g.x.redMul(m))===0?g=v[0]:(g=v[1],n(this.g.mul(g).x.cmp(this.g.x.redMul(m))===0))}return{beta:m,lambda:g,basis:f.basis?f.basis.map((function(b){return{a:new o(b.a,16),b:new o(b.b,16)}})):this._getEndoBasis(g)}}},u.prototype._getEndoRoots=function(f){var m=f===this.p?this.red:o.mont(f),g=new o(2).toRed(m).redInvm(),p=g.redNeg(),v=new o(3).toRed(m).redNeg().redSqrt().redMul(g);return[p.redAdd(v).fromRed(),p.redSub(v).fromRed()]},u.prototype._getEndoBasis=function(f){for(var m,g,p,v,b,x,A,M,V,W=this.n.ushrn(Math.floor(this.n.bitLength()/2)),R=f,F=this.n.clone(),$=new o(1),z=new o(0),D=new o(0),N=new o(1),E=0;R.cmpn(0)!==0;){var C=F.div(R);M=F.sub(C.mul(R)),V=D.sub(C.mul($));var w=N.sub(C.mul(z));if(!p&&M.cmp(W)<0)m=A.neg(),g=$,p=M.neg(),v=V;else if(p&&++E==2)break;A=M,F=R,R=M,D=$,$=V,N=z,z=w}b=M.neg(),x=V;var S=p.sqr().add(v.sqr());return b.sqr().add(x.sqr()).cmp(S)>=0&&(b=m,x=g),p.negative&&(p=p.neg(),v=v.neg()),b.negative&&(b=b.neg(),x=x.neg()),[{a:p,b:v},{a:b,b:x}]},u.prototype._endoSplit=function(f){var m=this.endo.basis,g=m[0],p=m[1],v=p.b.mul(f).divRound(this.n),b=g.b.neg().mul(f).divRound(this.n),x=v.mul(g.a),A=b.mul(p.a),M=v.mul(g.b),V=b.mul(p.b);return{k1:f.sub(x).sub(A),k2:M.add(V).neg()}},u.prototype.pointFromX=function(f,m){(f=new o(f,16)).red||(f=f.toRed(this.red));var g=f.redSqr().redMul(f).redIAdd(f.redMul(this.a)).redIAdd(this.b),p=g.redSqrt();if(p.redSqr().redSub(g).cmp(this.zero)!==0)throw new Error("invalid point");var v=p.fromRed().isOdd();return(m&&!v||!m&&v)&&(p=p.redNeg()),this.point(f,p)},u.prototype.validate=function(f){if(f.inf)return!0;var m=f.x,g=f.y,p=this.a.redMul(m),v=m.redSqr().redMul(m).redIAdd(p).redIAdd(this.b);return g.redSqr().redISub(v).cmpn(0)===0},u.prototype._endoWnafMulAdd=function(f,m,g){for(var p=this._endoWnafT1,v=this._endoWnafT2,b=0;b<f.length;b++){var x=this._endoSplit(m[b]),A=f[b],M=A._getBeta();x.k1.negative&&(x.k1.ineg(),A=A.neg(!0)),x.k2.negative&&(x.k2.ineg(),M=M.neg(!0)),p[2*b]=A,p[2*b+1]=M,v[2*b]=x.k1,v[2*b+1]=x.k2}for(var V=this._wnafMulAdd(1,p,v,2*b,g),W=0;W<2*b;W++)p[W]=null,v[W]=null;return V},l(h,a.BasePoint),u.prototype.point=function(f,m,g){return new h(this,f,m,g)},u.prototype.pointFromJSON=function(f,m){return h.fromJSON(this,f,m)},h.prototype._getBeta=function(){if(this.curve.endo){var f=this.precomputed;if(f&&f.beta)return f.beta;var m=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(f){var g=this.curve,p=function(v){return g.point(v.x.redMul(g.endo.beta),v.y)};f.beta=m,m.precomputed={beta:null,naf:f.naf&&{wnd:f.naf.wnd,points:f.naf.points.map(p)},doubles:f.doubles&&{step:f.doubles.step,points:f.doubles.points.map(p)}}}return m}},h.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},h.fromJSON=function(f,m,g){typeof m=="string"&&(m=JSON.parse(m));var p=f.point(m[0],m[1],g);if(!m[2])return p;function v(x){return f.point(x[0],x[1],g)}var b=m[2];return p.precomputed={beta:null,doubles:b.doubles&&{step:b.doubles.step,points:[p].concat(b.doubles.points.map(v))},naf:b.naf&&{wnd:b.naf.wnd,points:[p].concat(b.naf.points.map(v))}},p},h.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(f){if(this.inf)return f;if(f.inf)return this;if(this.eq(f))return this.dbl();if(this.neg().eq(f))return this.curve.point(null,null);if(this.x.cmp(f.x)===0)return this.curve.point(null,null);var m=this.y.redSub(f.y);m.cmpn(0)!==0&&(m=m.redMul(this.x.redSub(f.x).redInvm()));var g=m.redSqr().redISub(this.x).redISub(f.x),p=m.redMul(this.x.redSub(g)).redISub(this.y);return this.curve.point(g,p)},h.prototype.dbl=function(){if(this.inf)return this;var f=this.y.redAdd(this.y);if(f.cmpn(0)===0)return this.curve.point(null,null);var m=this.curve.a,g=this.x.redSqr(),p=f.redInvm(),v=g.redAdd(g).redIAdd(g).redIAdd(m).redMul(p),b=v.redSqr().redISub(this.x.redAdd(this.x)),x=v.redMul(this.x.redSub(b)).redISub(this.y);return this.curve.point(b,x)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(f){return f=new o(f,16),this.isInfinity()?this:this._hasDoubles(f)?this.curve._fixedNafMul(this,f):this.curve.endo?this.curve._endoWnafMulAdd([this],[f]):this.curve._wnafMul(this,f)},h.prototype.mulAdd=function(f,m,g){var p=[this,m],v=[f,g];return this.curve.endo?this.curve._endoWnafMulAdd(p,v):this.curve._wnafMulAdd(1,p,v,2)},h.prototype.jmulAdd=function(f,m,g){var p=[this,m],v=[f,g];return this.curve.endo?this.curve._endoWnafMulAdd(p,v,!0):this.curve._wnafMulAdd(1,p,v,2,!0)},h.prototype.eq=function(f){return this===f||this.inf===f.inf&&(this.inf||this.x.cmp(f.x)===0&&this.y.cmp(f.y)===0)},h.prototype.neg=function(f){if(this.inf)return this;var m=this.curve.point(this.x,this.y.redNeg());if(f&&this.precomputed){var g=this.precomputed,p=function(v){return v.neg()};m.precomputed={naf:g.naf&&{wnd:g.naf.wnd,points:g.naf.points.map(p)},doubles:g.doubles&&{step:g.doubles.step,points:g.doubles.points.map(p)}}}return m},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},l(d,a.BasePoint),u.prototype.jpoint=function(f,m,g){return new d(this,f,m,g)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var f=this.z.redInvm(),m=f.redSqr(),g=this.x.redMul(m),p=this.y.redMul(m).redMul(f);return this.curve.point(g,p)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(f){if(this.isInfinity())return f;if(f.isInfinity())return this;var m=f.z.redSqr(),g=this.z.redSqr(),p=this.x.redMul(m),v=f.x.redMul(g),b=this.y.redMul(m.redMul(f.z)),x=f.y.redMul(g.redMul(this.z)),A=p.redSub(v),M=b.redSub(x);if(A.cmpn(0)===0)return M.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var V=A.redSqr(),W=V.redMul(A),R=p.redMul(V),F=M.redSqr().redIAdd(W).redISub(R).redISub(R),$=M.redMul(R.redISub(F)).redISub(b.redMul(W)),z=this.z.redMul(f.z).redMul(A);return this.curve.jpoint(F,$,z)},d.prototype.mixedAdd=function(f){if(this.isInfinity())return f.toJ();if(f.isInfinity())return this;var m=this.z.redSqr(),g=this.x,p=f.x.redMul(m),v=this.y,b=f.y.redMul(m).redMul(this.z),x=g.redSub(p),A=v.redSub(b);if(x.cmpn(0)===0)return A.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=x.redSqr(),V=M.redMul(x),W=g.redMul(M),R=A.redSqr().redIAdd(V).redISub(W).redISub(W),F=A.redMul(W.redISub(R)).redISub(v.redMul(V)),$=this.z.redMul(x);return this.curve.jpoint(R,F,$)},d.prototype.dblp=function(f){if(f===0)return this;if(this.isInfinity())return this;if(!f)return this.dbl();var m;if(this.curve.zeroA||this.curve.threeA){var g=this;for(m=0;m<f;m++)g=g.dbl();return g}var p=this.curve.a,v=this.curve.tinv,b=this.x,x=this.y,A=this.z,M=A.redSqr().redSqr(),V=x.redAdd(x);for(m=0;m<f;m++){var W=b.redSqr(),R=V.redSqr(),F=R.redSqr(),$=W.redAdd(W).redIAdd(W).redIAdd(p.redMul(M)),z=b.redMul(R),D=$.redSqr().redISub(z.redAdd(z)),N=z.redISub(D),E=$.redMul(N);E=E.redIAdd(E).redISub(F);var C=V.redMul(A);m+1<f&&(M=M.redMul(F)),b=D,A=C,V=E}return this.curve.jpoint(b,V.redMul(v),A)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},d.prototype._zeroDbl=function(){var f,m,g;if(this.zOne){var p=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),x=this.x.redAdd(v).redSqr().redISub(p).redISub(b);x=x.redIAdd(x);var A=p.redAdd(p).redIAdd(p),M=A.redSqr().redISub(x).redISub(x),V=b.redIAdd(b);V=(V=V.redIAdd(V)).redIAdd(V),f=M,m=A.redMul(x.redISub(M)).redISub(V),g=this.y.redAdd(this.y)}else{var W=this.x.redSqr(),R=this.y.redSqr(),F=R.redSqr(),$=this.x.redAdd(R).redSqr().redISub(W).redISub(F);$=$.redIAdd($);var z=W.redAdd(W).redIAdd(W),D=z.redSqr(),N=F.redIAdd(F);N=(N=N.redIAdd(N)).redIAdd(N),f=D.redISub($).redISub($),m=z.redMul($.redISub(f)).redISub(N),g=(g=this.y.redMul(this.z)).redIAdd(g)}return this.curve.jpoint(f,m,g)},d.prototype._threeDbl=function(){var f,m,g;if(this.zOne){var p=this.x.redSqr(),v=this.y.redSqr(),b=v.redSqr(),x=this.x.redAdd(v).redSqr().redISub(p).redISub(b);x=x.redIAdd(x);var A=p.redAdd(p).redIAdd(p).redIAdd(this.curve.a),M=A.redSqr().redISub(x).redISub(x);f=M;var V=b.redIAdd(b);V=(V=V.redIAdd(V)).redIAdd(V),m=A.redMul(x.redISub(M)).redISub(V),g=this.y.redAdd(this.y)}else{var W=this.z.redSqr(),R=this.y.redSqr(),F=this.x.redMul(R),$=this.x.redSub(W).redMul(this.x.redAdd(W));$=$.redAdd($).redIAdd($);var z=F.redIAdd(F),D=(z=z.redIAdd(z)).redAdd(z);f=$.redSqr().redISub(D),g=this.y.redAdd(this.z).redSqr().redISub(R).redISub(W);var N=R.redSqr();N=(N=(N=N.redIAdd(N)).redIAdd(N)).redIAdd(N),m=$.redMul(z.redISub(f)).redISub(N)}return this.curve.jpoint(f,m,g)},d.prototype._dbl=function(){var f=this.curve.a,m=this.x,g=this.y,p=this.z,v=p.redSqr().redSqr(),b=m.redSqr(),x=g.redSqr(),A=b.redAdd(b).redIAdd(b).redIAdd(f.redMul(v)),M=m.redAdd(m),V=(M=M.redIAdd(M)).redMul(x),W=A.redSqr().redISub(V.redAdd(V)),R=V.redISub(W),F=x.redSqr();F=(F=(F=F.redIAdd(F)).redIAdd(F)).redIAdd(F);var $=A.redMul(R).redISub(F),z=g.redAdd(g).redMul(p);return this.curve.jpoint(W,$,z)},d.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var f=this.x.redSqr(),m=this.y.redSqr(),g=this.z.redSqr(),p=m.redSqr(),v=f.redAdd(f).redIAdd(f),b=v.redSqr(),x=this.x.redAdd(m).redSqr().redISub(f).redISub(p),A=(x=(x=(x=x.redIAdd(x)).redAdd(x).redIAdd(x)).redISub(b)).redSqr(),M=p.redIAdd(p);M=(M=(M=M.redIAdd(M)).redIAdd(M)).redIAdd(M);var V=v.redIAdd(x).redSqr().redISub(b).redISub(A).redISub(M),W=m.redMul(V);W=(W=W.redIAdd(W)).redIAdd(W);var R=this.x.redMul(A).redISub(W);R=(R=R.redIAdd(R)).redIAdd(R);var F=this.y.redMul(V.redMul(M.redISub(V)).redISub(x.redMul(A)));F=(F=(F=F.redIAdd(F)).redIAdd(F)).redIAdd(F);var $=this.z.redAdd(x).redSqr().redISub(g).redISub(A);return this.curve.jpoint(R,F,$)},d.prototype.mul=function(f,m){return f=new o(f,m),this.curve._wnafMul(this,f)},d.prototype.eq=function(f){if(f.type==="affine")return this.eq(f.toJ());if(this===f)return!0;var m=this.z.redSqr(),g=f.z.redSqr();if(this.x.redMul(g).redISub(f.x.redMul(m)).cmpn(0)!==0)return!1;var p=m.redMul(this.z),v=g.redMul(f.z);return this.y.redMul(v).redISub(f.y.redMul(p)).cmpn(0)===0},d.prototype.eqXToP=function(f){var m=this.z.redSqr(),g=f.toRed(this.curve.red).redMul(m);if(this.x.cmp(g)===0)return!0;for(var p=f.clone(),v=this.curve.redN.redMul(m);;){if(p.iadd(this.curve.n),p.cmp(this.curve.p)>=0)return!1;if(g.redIAdd(v),this.x.cmp(g)===0)return!0}},d.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},d.prototype.isInfinity=function(){return this.z.cmpn(0)===0}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,s,c){var r,o=c,l=e("hash.js"),a=e("./curve"),n=e("./utils").assert;function u(d){d.type==="short"?this.curve=new a.short(d):d.type==="edwards"?this.curve=new a.edwards(d):this.curve=new a.mont(d),this.g=this.curve.g,this.n=this.curve.n,this.hash=d.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(d,f){Object.defineProperty(o,d,{configurable:!0,enumerable:!0,get:function(){var m=new u(f);return Object.defineProperty(o,d,{configurable:!0,enumerable:!0,value:m}),m}})}o.PresetCurve=u,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:l.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:l.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:l.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:l.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:l.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:l.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=e("./precomputed/secp256k1")}catch{r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:l.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,s,c){var r=e("bn.js"),o=e("hmac-drbg"),l=e("../utils"),a=e("../curves"),n=e("brorand"),u=l.assert,h=e("./key"),d=e("./signature");function f(m){if(!(this instanceof f))return new f(m);typeof m=="string"&&(u(Object.prototype.hasOwnProperty.call(a,m),"Unknown curve "+m),m=a[m]),m instanceof a.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}s.exports=f,f.prototype.keyPair=function(m){return new h(this,m)},f.prototype.keyFromPrivate=function(m,g){return h.fromPrivate(this,m,g)},f.prototype.keyFromPublic=function(m,g){return h.fromPublic(this,m,g)},f.prototype.genKeyPair=function(m){m||(m={});for(var g=new o({hash:this.hash,pers:m.pers,persEnc:m.persEnc||"utf8",entropy:m.entropy||n(this.hash.hmacStrength),entropyEnc:m.entropy&&m.entropyEnc||"utf8",nonce:this.n.toArray()}),p=this.n.byteLength(),v=this.n.sub(new r(2));;){var b=new r(g.generate(p));if(!(b.cmp(v)>0))return b.iaddn(1),this.keyFromPrivate(b)}},f.prototype._truncateToN=function(m,g){var p=8*m.byteLength()-this.n.bitLength();return p>0&&(m=m.ushrn(p)),!g&&m.cmp(this.n)>=0?m.sub(this.n):m},f.prototype.sign=function(m,g,p,v){typeof p=="object"&&(v=p,p=null),v||(v={}),g=this.keyFromPrivate(g,p),m=this._truncateToN(new r(m,16));for(var b=this.n.byteLength(),x=g.getPrivate().toArray("be",b),A=m.toArray("be",b),M=new o({hash:this.hash,entropy:x,nonce:A,pers:v.pers,persEnc:v.persEnc||"utf8"}),V=this.n.sub(new r(1)),W=0;;W++){var R=v.k?v.k(W):new r(M.generate(this.n.byteLength()));if(!((R=this._truncateToN(R,!0)).cmpn(1)<=0||R.cmp(V)>=0)){var F=this.g.mul(R);if(!F.isInfinity()){var $=F.getX(),z=$.umod(this.n);if(z.cmpn(0)!==0){var D=R.invm(this.n).mul(z.mul(g.getPrivate()).iadd(m));if((D=D.umod(this.n)).cmpn(0)!==0){var N=(F.getY().isOdd()?1:0)|($.cmp(z)!==0?2:0);return v.canonical&&D.cmp(this.nh)>0&&(D=this.n.sub(D),N^=1),new d({r:z,s:D,recoveryParam:N})}}}}}},f.prototype.verify=function(m,g,p,v){m=this._truncateToN(new r(m,16)),p=this.keyFromPublic(p,v);var b=(g=new d(g,"hex")).r,x=g.s;if(b.cmpn(1)<0||b.cmp(this.n)>=0||x.cmpn(1)<0||x.cmp(this.n)>=0)return!1;var A,M=x.invm(this.n),V=M.mul(m).umod(this.n),W=M.mul(b).umod(this.n);return this.curve._maxwellTrick?!(A=this.g.jmulAdd(V,p.getPublic(),W)).isInfinity()&&A.eqXToP(b):!(A=this.g.mulAdd(V,p.getPublic(),W)).isInfinity()&&A.getX().umod(this.n).cmp(b)===0},f.prototype.recoverPubKey=function(m,g,p,v){u((3&p)===p,"The recovery param is more than two bits"),g=new d(g,v);var b=this.n,x=new r(m),A=g.r,M=g.s,V=1&p,W=p>>1;if(A.cmp(this.curve.p.umod(this.curve.n))>=0&&W)throw new Error("Unable to find sencond key candinate");A=W?this.curve.pointFromX(A.add(this.curve.n),V):this.curve.pointFromX(A,V);var R=g.r.invm(b),F=b.sub(x).mul(R).umod(b),$=M.mul(R).umod(b);return this.g.mulAdd(F,A,$)},f.prototype.getKeyRecoveryParam=function(m,g,p,v){if((g=new d(g,v)).recoveryParam!==null)return g.recoveryParam;for(var b=0;b<4;b++){var x;try{x=this.recoverPubKey(m,g,b)}catch{continue}if(x.eq(p))return b}throw new Error("Unable to find valid recovery factor")}},{"../curves":411,"../utils":419,"./key":413,"./signature":414,"bn.js":420,brorand:187,"hmac-drbg":438}],413:[function(e,s,c){var r=e("bn.js"),o=e("../utils").assert;function l(a,n){this.ec=a,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}s.exports=l,l.fromPublic=function(a,n,u){return n instanceof l?n:new l(a,{pub:n,pubEnc:u})},l.fromPrivate=function(a,n,u){return n instanceof l?n:new l(a,{priv:n,privEnc:u})},l.prototype.validate=function(){var a=this.getPublic();return a.isInfinity()?{result:!1,reason:"Invalid public key"}:a.validate()?a.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},l.prototype.getPublic=function(a,n){return typeof a=="string"&&(n=a,a=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,a):this.pub},l.prototype.getPrivate=function(a){return a==="hex"?this.priv.toString(16,2):this.priv},l.prototype._importPrivate=function(a,n){this.priv=new r(a,n||16),this.priv=this.priv.umod(this.ec.curve.n)},l.prototype._importPublic=function(a,n){if(a.x||a.y)return this.ec.curve.type==="mont"?o(a.x,"Need x coordinate"):this.ec.curve.type!=="short"&&this.ec.curve.type!=="edwards"||o(a.x&&a.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(a.x,a.y));this.pub=this.ec.curve.decodePoint(a,n)},l.prototype.derive=function(a){return a.validate()||o(a.validate(),"public point not validated"),a.mul(this.priv).getX()},l.prototype.sign=function(a,n,u){return this.ec.sign(a,this,n,u)},l.prototype.verify=function(a,n){return this.ec.verify(a,n,this)},l.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../utils":419,"bn.js":420}],414:[function(e,s,c){var r=e("bn.js"),o=e("../utils"),l=o.assert;function a(f,m){if(f instanceof a)return f;this._importDER(f,m)||(l(f.r&&f.s,"Signature without r or s"),this.r=new r(f.r,16),this.s=new r(f.s,16),f.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=f.recoveryParam)}function n(){this.place=0}function u(f,m){var g=f[m.place++];if(!(128&g))return g;var p=15&g;if(p===0||p>4)return!1;for(var v=0,b=0,x=m.place;b<p;b++,x++)v<<=8,v|=f[x],v>>>=0;return!(v<=127)&&(m.place=x,v)}function h(f){for(var m=0,g=f.length-1;!f[m]&&!(128&f[m+1])&&m<g;)m++;return m===0?f:f.slice(m)}function d(f,m){if(m<128)f.push(m);else{var g=1+(Math.log(m)/Math.LN2>>>3);for(f.push(128|g);--g;)f.push(m>>>(g<<3)&255);f.push(m)}}s.exports=a,a.prototype._importDER=function(f,m){f=o.toArray(f,m);var g=new n;if(f[g.place++]!==48)return!1;var p=u(f,g);if(p===!1||p+g.place!==f.length||f[g.place++]!==2)return!1;var v=u(f,g);if(v===!1)return!1;var b=f.slice(g.place,v+g.place);if(g.place+=v,f[g.place++]!==2)return!1;var x=u(f,g);if(x===!1||f.length!==x+g.place)return!1;var A=f.slice(g.place,x+g.place);if(b[0]===0){if(!(128&b[1]))return!1;b=b.slice(1)}if(A[0]===0){if(!(128&A[1]))return!1;A=A.slice(1)}return this.r=new r(b),this.s=new r(A),this.recoveryParam=null,!0},a.prototype.toDER=function(f){var m=this.r.toArray(),g=this.s.toArray();for(128&m[0]&&(m=[0].concat(m)),128&g[0]&&(g=[0].concat(g)),m=h(m),g=h(g);!(g[0]||128&g[1]);)g=g.slice(1);var p=[2];d(p,m.length),(p=p.concat(m)).push(2),d(p,g.length);var v=p.concat(g),b=[48];return d(b,v.length),b=b.concat(v),o.encode(b,f)}},{"../utils":419,"bn.js":420}],415:[function(e,s,c){var r=e("hash.js"),o=e("../curves"),l=e("../utils"),a=l.assert,n=l.parseBytes,u=e("./key"),h=e("./signature");function d(f){if(a(f==="ed25519","only tested with ed25519 so far"),!(this instanceof d))return new d(f);f=o[f].curve,this.curve=f,this.g=f.g,this.g.precompute(f.n.bitLength()+1),this.pointClass=f.point().constructor,this.encodingLength=Math.ceil(f.n.bitLength()/8),this.hash=r.sha512}s.exports=d,d.prototype.sign=function(f,m){f=n(f);var g=this.keyFromSecret(m),p=this.hashInt(g.messagePrefix(),f),v=this.g.mul(p),b=this.encodePoint(v),x=this.hashInt(b,g.pubBytes(),f).mul(g.priv()),A=p.add(x).umod(this.curve.n);return this.makeSignature({R:v,S:A,Rencoded:b})},d.prototype.verify=function(f,m,g){f=n(f),m=this.makeSignature(m);var p=this.keyFromPublic(g),v=this.hashInt(m.Rencoded(),p.pubBytes(),f),b=this.g.mul(m.S());return m.R().add(p.pub().mul(v)).eq(b)},d.prototype.hashInt=function(){for(var f=this.hash(),m=0;m<arguments.length;m++)f.update(arguments[m]);return l.intFromLE(f.digest()).umod(this.curve.n)},d.prototype.keyFromPublic=function(f){return u.fromPublic(this,f)},d.prototype.keyFromSecret=function(f){return u.fromSecret(this,f)},d.prototype.makeSignature=function(f){return f instanceof h?f:new h(this,f)},d.prototype.encodePoint=function(f){var m=f.getY().toArray("le",this.encodingLength);return m[this.encodingLength-1]|=f.getX().isOdd()?128:0,m},d.prototype.decodePoint=function(f){var m=(f=l.parseBytes(f)).length-1,g=f.slice(0,m).concat(-129&f[m]),p=(128&f[m])!=0,v=l.intFromLE(g);return this.curve.pointFromY(v,p)},d.prototype.encodeInt=function(f){return f.toArray("le",this.encodingLength)},d.prototype.decodeInt=function(f){return l.intFromLE(f)},d.prototype.isPoint=function(f){return f instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,s,c){var r=e("../utils"),o=r.assert,l=r.parseBytes,a=r.cachedProperty;function n(u,h){this.eddsa=u,this._secret=l(h.secret),u.isPoint(h.pub)?this._pub=h.pub:this._pubBytes=l(h.pub)}n.fromPublic=function(u,h){return h instanceof n?h:new n(u,{pub:h})},n.fromSecret=function(u,h){return h instanceof n?h:new n(u,{secret:h})},n.prototype.secret=function(){return this._secret},a(n,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(n,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(n,"privBytes",(function(){var u=this.eddsa,h=this.hash(),d=u.encodingLength-1,f=h.slice(0,u.encodingLength);return f[0]&=248,f[d]&=127,f[d]|=64,f})),a(n,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(n,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(n,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),n.prototype.sign=function(u){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(u,this)},n.prototype.verify=function(u,h){return this.eddsa.verify(u,h,this)},n.prototype.getSecret=function(u){return o(this._secret,"KeyPair is public only"),r.encode(this.secret(),u)},n.prototype.getPublic=function(u){return r.encode(this.pubBytes(),u)},s.exports=n},{"../utils":419}],417:[function(e,s,c){var r=e("bn.js"),o=e("../utils"),l=o.assert,a=o.cachedProperty,n=o.parseBytes;function u(h,d){this.eddsa=h,typeof d!="object"&&(d=n(d)),Array.isArray(d)&&(d={R:d.slice(0,h.encodingLength),S:d.slice(h.encodingLength)}),l(d.R&&d.S,"Signature without R or S"),h.isPoint(d.R)&&(this._R=d.R),d.S instanceof r&&(this._S=d.S),this._Rencoded=Array.isArray(d.R)?d.R:d.Rencoded,this._Sencoded=Array.isArray(d.S)?d.S:d.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},s.exports=u},{"../utils":419,"bn.js":420}],418:[function(e,s,c){s.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],419:[function(e,s,c){var r=c,o=e("bn.js"),l=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");r.assert=l,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(n,u,h){var d=new Array(Math.max(n.bitLength(),h)+1);d.fill(0);for(var f=1<<u+1,m=n.clone(),g=0;g<d.length;g++){var p,v=m.andln(f-1);m.isOdd()?(p=v>(f>>1)-1?(f>>1)-v:v,m.isubn(p)):p=0,d[g]=p,m.iushrn(1)}return d},r.getJSF=function(n,u){var h=[[],[]];n=n.clone(),u=u.clone();for(var d,f=0,m=0;n.cmpn(-f)>0||u.cmpn(-m)>0;){var g,p,v=n.andln(3)+f&3,b=u.andln(3)+m&3;v===3&&(v=-1),b===3&&(b=-1),g=(1&v)==0?0:(d=n.andln(7)+f&7)!==3&&d!==5||b!==2?v:-v,h[0].push(g),p=(1&b)==0?0:(d=u.andln(7)+m&7)!==3&&d!==5||v!==2?b:-b,h[1].push(p),2*f===g+1&&(f=1-f),2*m===p+1&&(m=1-m),n.iushrn(1),u.iushrn(1)}return h},r.cachedProperty=function(n,u,h){var d="_"+u;n.prototype[u]=function(){return this[d]!==void 0?this[d]:this[d]=h.call(this)}},r.parseBytes=function(n){return typeof n=="string"?r.toArray(n,"hex"):n},r.intFromLE=function(n){return new o(n,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,s,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],421:[function(e,s,c){s.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},{}],422:[function(e,s,c){var r=Object.create||function(R){var F=function(){};return F.prototype=R,new F},o=Object.keys||function(R){var F=[];for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&F.push($);return $},l=Function.prototype.bind||function(R){var F=this;return function(){return F.apply(R,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}s.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var n,u=10;try{var h={};Object.defineProperty&&Object.defineProperty(h,"x",{value:0}),n=h.x===0}catch{n=!1}function d(R){return R._maxListeners===void 0?a.defaultMaxListeners:R._maxListeners}function f(R,F,$){if(F)R.call($);else for(var z=R.length,D=W(R,z),N=0;N<z;++N)D[N].call($)}function m(R,F,$,z){if(F)R.call($,z);else for(var D=R.length,N=W(R,D),E=0;E<D;++E)N[E].call($,z)}function g(R,F,$,z,D){if(F)R.call($,z,D);else for(var N=R.length,E=W(R,N),C=0;C<N;++C)E[C].call($,z,D)}function p(R,F,$,z,D,N){if(F)R.call($,z,D,N);else for(var E=R.length,C=W(R,E),w=0;w<E;++w)C[w].call($,z,D,N)}function v(R,F,$,z){if(F)R.apply($,z);else for(var D=R.length,N=W(R,D),E=0;E<D;++E)N[E].apply($,z)}function b(R,F,$,z){var D,N,E;if(typeof $!="function")throw new TypeError('"listener" argument must be a function');if((N=R._events)?(N.newListener&&(R.emit("newListener",F,$.listener?$.listener:$),N=R._events),E=N[F]):(N=R._events=r(null),R._eventsCount=0),E){if(typeof E=="function"?E=N[F]=z?[$,E]:[E,$]:z?E.unshift($):E.push($),!E.warned&&(D=d(R))&&D>0&&E.length>D){E.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+E.length+' "'+String(F)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');C.name="MaxListenersExceededWarning",C.emitter=R,C.type=F,C.count=E.length,typeof console=="object"&&console.warn&&console.warn("%s: %s",C.name,C.message)}}else E=N[F]=$,++R._eventsCount;return R}function x(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var R=new Array(arguments.length),F=0;F<R.length;++F)R[F]=arguments[F];this.listener.apply(this.target,R)}}function A(R,F,$){var z={fired:!1,wrapFn:void 0,target:R,type:F,listener:$},D=l.call(x,z);return D.listener=$,z.wrapFn=D,D}function M(R,F,$){var z=R._events;if(!z)return[];var D=z[F];return D?typeof D=="function"?$?[D.listener||D]:[D]:$?(function(N){for(var E=new Array(N.length),C=0;C<E.length;++C)E[C]=N[C].listener||N[C];return E})(D):W(D,D.length):[]}function V(R){var F=this._events;if(F){var $=F[R];if(typeof $=="function")return 1;if($)return $.length}return 0}function W(R,F){for(var $=new Array(F),z=0;z<F;++z)$[z]=R[z];return $}n?Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(R){if(typeof R!="number"||R<0||R!=R)throw new TypeError('"defaultMaxListeners" must be a positive number');u=R}}):a.defaultMaxListeners=u,a.prototype.setMaxListeners=function(R){if(typeof R!="number"||R<0||isNaN(R))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=R,this},a.prototype.getMaxListeners=function(){return d(this)},a.prototype.emit=function(R){var F,$,z,D,N,E,C=R==="error";if(E=this._events)C=C&&E.error==null;else if(!C)return!1;if(C){if(arguments.length>1&&(F=arguments[1]),F instanceof Error)throw F;var w=new Error('Unhandled "error" event. ('+F+")");throw w.context=F,w}if(!($=E[R]))return!1;var S=typeof $=="function";switch(z=arguments.length){case 1:f($,S,this);break;case 2:m($,S,this,arguments[1]);break;case 3:g($,S,this,arguments[1],arguments[2]);break;case 4:p($,S,this,arguments[1],arguments[2],arguments[3]);break;default:for(D=new Array(z-1),N=1;N<z;N++)D[N-1]=arguments[N];v($,S,this,D)}return!0},a.prototype.addListener=function(R,F){return b(this,R,F,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(R,F){return b(this,R,F,!0)},a.prototype.once=function(R,F){if(typeof F!="function")throw new TypeError('"listener" argument must be a function');return this.on(R,A(this,R,F)),this},a.prototype.prependOnceListener=function(R,F){if(typeof F!="function")throw new TypeError('"listener" argument must be a function');return this.prependListener(R,A(this,R,F)),this},a.prototype.removeListener=function(R,F){var $,z,D,N,E;if(typeof F!="function")throw new TypeError('"listener" argument must be a function');if(!(z=this._events))return this;if(!($=z[R]))return this;if($===F||$.listener===F)--this._eventsCount==0?this._events=r(null):(delete z[R],z.removeListener&&this.emit("removeListener",R,$.listener||F));else if(typeof $!="function"){for(D=-1,N=$.length-1;N>=0;N--)if($[N]===F||$[N].listener===F){E=$[N].listener,D=N;break}if(D<0)return this;D===0?$.shift():(function(C,w){for(var S=w,_=S+1,k=C.length;_<k;S+=1,_+=1)C[S]=C[_];C.pop()})($,D),$.length===1&&(z[R]=$[0]),z.removeListener&&this.emit("removeListener",R,E||F)}return this},a.prototype.removeAllListeners=function(R){var F,$,z;if(!($=this._events))return this;if(!$.removeListener)return arguments.length===0?(this._events=r(null),this._eventsCount=0):$[R]&&(--this._eventsCount==0?this._events=r(null):delete $[R]),this;if(arguments.length===0){var D,N=o($);for(z=0;z<N.length;++z)(D=N[z])!=="removeListener"&&this.removeAllListeners(D);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if(typeof(F=$[R])=="function")this.removeListener(R,F);else if(F)for(z=F.length-1;z>=0;z--)this.removeListener(R,F[z]);return this},a.prototype.listeners=function(R){return M(this,R,!0)},a.prototype.rawListeners=function(R){return M(this,R,!1)},a.listenerCount=function(R,F){return typeof R.listenerCount=="function"?R.listenerCount(F):V.call(R,F)},a.prototype.listenerCount=V,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("md5.js");s.exports=function(l,a,n,u){if(r.isBuffer(l)||(l=r.from(l,"binary")),a&&(r.isBuffer(a)||(a=r.from(a,"binary")),a.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var h=n/8,d=r.alloc(h),f=r.alloc(u||0),m=r.alloc(0);h>0||u>0;){var g=new o;g.update(m),g.update(l),a&&g.update(a),m=g.digest();var p=0;if(h>0){var v=d.length-h;p=Math.min(h,m.length),m.copy(d,v,0,p),h-=p}if(p<m.length&&u>0){var b=f.length-u,x=Math.min(u,m.length-p);m.copy(f,b,p,p+x),u-=x}}return m.fill(0),{key:d,iv:f}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.CsvParserStream=c.ParserOptions=c.parseFile=c.parseStream=c.parseString=c.parse=c.FormatterOptions=c.CsvFormatterStream=c.writeToPath=c.writeToString=c.writeToBuffer=c.writeToStream=c.write=c.format=void 0;var r=e("@fast-csv/format");Object.defineProperty(c,"format",{enumerable:!0,get:function(){return r.format}}),Object.defineProperty(c,"write",{enumerable:!0,get:function(){return r.write}}),Object.defineProperty(c,"writeToStream",{enumerable:!0,get:function(){return r.writeToStream}}),Object.defineProperty(c,"writeToBuffer",{enumerable:!0,get:function(){return r.writeToBuffer}}),Object.defineProperty(c,"writeToString",{enumerable:!0,get:function(){return r.writeToString}}),Object.defineProperty(c,"writeToPath",{enumerable:!0,get:function(){return r.writeToPath}}),Object.defineProperty(c,"CsvFormatterStream",{enumerable:!0,get:function(){return r.CsvFormatterStream}}),Object.defineProperty(c,"FormatterOptions",{enumerable:!0,get:function(){return r.FormatterOptions}});var o=e("@fast-csv/parse");Object.defineProperty(c,"parse",{enumerable:!0,get:function(){return o.parse}}),Object.defineProperty(c,"parseString",{enumerable:!0,get:function(){return o.parseString}}),Object.defineProperty(c,"parseStream",{enumerable:!0,get:function(){return o.parseStream}}),Object.defineProperty(c,"parseFile",{enumerable:!0,get:function(){return o.parseFile}}),Object.defineProperty(c,"ParserOptions",{enumerable:!0,get:function(){return o.ParserOptions}}),Object.defineProperty(c,"CsvParserStream",{enumerable:!0,get:function(){return o.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("readable-stream").Transform;function l(a){o.call(this),this._block=r.allocUnsafe(a),this._blockSize=a,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(l,o),l.prototype._transform=function(a,n,u){var h=null;try{this.update(a,n)}catch(d){h=d}u(h)},l.prototype._flush=function(a){var n=null;try{this.push(this.digest())}catch(u){n=u}a(n)},l.prototype.update=function(a,n){if((function(g,p){if(!r.isBuffer(g)&&typeof g!="string")throw new TypeError(p+" must be a string or a buffer")})(a,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(a)||(a=r.from(a,n));for(var u=this._block,h=0;this._blockOffset+a.length-h>=this._blockSize;){for(var d=this._blockOffset;d<this._blockSize;)u[d++]=a[h++];this._update(),this._blockOffset=0}for(;h<a.length;)u[this._blockOffset++]=a[h++];for(var f=0,m=8*a.length;m>0;++f)this._length[f]+=m,(m=this._length[f]/4294967296|0)>0&&(this._length[f]-=4294967296*m);return this},l.prototype._update=function(){throw new Error("_update is not implemented")},l.prototype.digest=function(a){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var n=this._digest();a!==void 0&&(n=n.toString(a)),this._block.fill(0),this._blockOffset=0;for(var u=0;u<4;++u)this._length[u]=0;return n},l.prototype._digest=function(){throw new Error("_digest is not implemented")},s.exports=l},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,s,c){var r=c;r.utils=e("./hash/utils"),r.common=e("./hash/common"),r.sha=e("./hash/sha"),r.ripemd=e("./hash/ripemd"),r.hmac=e("./hash/hmac"),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,s,c){var r=e("./utils"),o=e("minimalistic-assert");function l(){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}c.BlockHash=l,l.prototype.update=function(a,n){if(a=r.toArray(a,n),this.pending?this.pending=this.pending.concat(a):this.pending=a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var u=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-u,a.length),this.pending.length===0&&(this.pending=null),a=r.join32(a,0,a.length-u,this.endian);for(var h=0;h<a.length;h+=this._delta32)this._update(a,h,h+this._delta32)}return this},l.prototype.digest=function(a){return this.update(this._pad()),o(this.pending===null),this._digest(a)},l.prototype._pad=function(){var a=this.pendingTotal,n=this._delta8,u=n-(a+this.padLength)%n,h=new Array(u+this.padLength);h[0]=128;for(var d=1;d<u;d++)h[d]=0;if(a<<=3,this.endian==="big"){for(var f=8;f<this.padLength;f++)h[d++]=0;h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=a>>>24&255,h[d++]=a>>>16&255,h[d++]=a>>>8&255,h[d++]=255&a}else for(h[d++]=255&a,h[d++]=a>>>8&255,h[d++]=a>>>16&255,h[d++]=a>>>24&255,h[d++]=0,h[d++]=0,h[d++]=0,h[d++]=0,f=8;f<this.padLength;f++)h[d++]=0;return h}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,s,c){var r=e("./utils"),o=e("minimalistic-assert");function l(a,n,u){if(!(this instanceof l))return new l(a,n,u);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(n,u))}s.exports=l,l.prototype._init=function(a){a.length>this.blockSize&&(a=new this.Hash().update(a).digest()),o(a.length<=this.blockSize);for(var n=a.length;n<this.blockSize;n++)a.push(0);for(n=0;n<a.length;n++)a[n]^=54;for(this.inner=new this.Hash().update(a),n=0;n<a.length;n++)a[n]^=106;this.outer=new this.Hash().update(a)},l.prototype.update=function(a,n){return this.inner.update(a,n),this},l.prototype.digest=function(a){return this.outer.update(this.inner.digest()),this.outer.digest(a)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,s,c){var r=e("./utils"),o=e("./common"),l=r.rotl32,a=r.sum32,n=r.sum32_3,u=r.sum32_4,h=o.BlockHash;function d(){if(!(this instanceof d))return new d;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(A,M,V,W){return A<=15?M^V^W:A<=31?M&V|~M&W:A<=47?(M|~V)^W:A<=63?M&W|V&~W:M^(V|~W)}function m(A){return A<=15?0:A<=31?1518500249:A<=47?1859775393:A<=63?2400959708:2840853838}function g(A){return A<=15?1352829926:A<=31?1548603684:A<=47?1836072691:A<=63?2053994217:0}r.inherits(d,h),c.ripemd160=d,d.blockSize=512,d.outSize=160,d.hmacStrength=192,d.padLength=64,d.prototype._update=function(A,M){for(var V=this.h[0],W=this.h[1],R=this.h[2],F=this.h[3],$=this.h[4],z=V,D=W,N=R,E=F,C=$,w=0;w<80;w++){var S=a(l(u(V,f(w,W,R,F),A[p[w]+M],m(w)),b[w]),$);V=$,$=F,F=l(R,10),R=W,W=S,S=a(l(u(z,f(79-w,D,N,E),A[v[w]+M],g(w)),x[w]),C),z=C,C=E,E=l(N,10),N=D,D=S}S=n(this.h[1],R,E),this.h[1]=n(this.h[2],F,C),this.h[2]=n(this.h[3],$,z),this.h[3]=n(this.h[4],V,D),this.h[4]=n(this.h[0],W,N),this.h[0]=S},d.prototype._digest=function(A){return A==="hex"?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[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],v=[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],b=[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]},{"./common":427,"./utils":437}],430:[function(e,s,c){c.sha1=e("./sha/1"),c.sha224=e("./sha/224"),c.sha256=e("./sha/256"),c.sha384=e("./sha/384"),c.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,s,c){var r=e("../utils"),o=e("../common"),l=e("./common"),a=r.rotl32,n=r.sum32,u=r.sum32_5,h=l.ft_1,d=o.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),s.exports=m,m.blockSize=512,m.outSize=160,m.hmacStrength=80,m.padLength=64,m.prototype._update=function(g,p){for(var v=this.W,b=0;b<16;b++)v[b]=g[p+b];for(;b<v.length;b++)v[b]=a(v[b-3]^v[b-8]^v[b-14]^v[b-16],1);var x=this.h[0],A=this.h[1],M=this.h[2],V=this.h[3],W=this.h[4];for(b=0;b<v.length;b++){var R=~~(b/20),F=u(a(x,5),h(R,A,M,V),W,v[b],f[R]);W=V,V=M,M=a(A,30),A=x,x=F}this.h[0]=n(this.h[0],x),this.h[1]=n(this.h[1],A),this.h[2]=n(this.h[2],M),this.h[3]=n(this.h[3],V),this.h[4]=n(this.h[4],W)},m.prototype._digest=function(g){return g==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,s,c){var r=e("../utils"),o=e("./256");function l(){if(!(this instanceof l))return new l;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(l,o),s.exports=l,l.blockSize=512,l.outSize=224,l.hmacStrength=192,l.padLength=64,l.prototype._digest=function(a){return a==="hex"?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,s,c){var r=e("../utils"),o=e("../common"),l=e("./common"),a=e("minimalistic-assert"),n=r.sum32,u=r.sum32_4,h=r.sum32_5,d=l.ch32,f=l.maj32,m=l.s0_256,g=l.s1_256,p=l.g0_256,v=l.g1_256,b=o.BlockHash,x=[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 A(){if(!(this instanceof A))return new A;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=x,this.W=new Array(64)}r.inherits(A,b),s.exports=A,A.blockSize=512,A.outSize=256,A.hmacStrength=192,A.padLength=64,A.prototype._update=function(M,V){for(var W=this.W,R=0;R<16;R++)W[R]=M[V+R];for(;R<W.length;R++)W[R]=u(v(W[R-2]),W[R-7],p(W[R-15]),W[R-16]);var F=this.h[0],$=this.h[1],z=this.h[2],D=this.h[3],N=this.h[4],E=this.h[5],C=this.h[6],w=this.h[7];for(a(this.k.length===W.length),R=0;R<W.length;R++){var S=h(w,g(N),d(N,E,C),this.k[R],W[R]),_=n(m(F),f(F,$,z));w=C,C=E,E=N,N=n(D,S),D=z,z=$,$=F,F=n(S,_)}this.h[0]=n(this.h[0],F),this.h[1]=n(this.h[1],$),this.h[2]=n(this.h[2],z),this.h[3]=n(this.h[3],D),this.h[4]=n(this.h[4],N),this.h[5]=n(this.h[5],E),this.h[6]=n(this.h[6],C),this.h[7]=n(this.h[7],w)},A.prototype._digest=function(M){return M==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,s,c){var r=e("../utils"),o=e("./512");function l(){if(!(this instanceof l))return new l;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(l,o),s.exports=l,l.blockSize=1024,l.outSize=384,l.hmacStrength=192,l.padLength=128,l.prototype._digest=function(a){return a==="hex"?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,s,c){var r=e("../utils"),o=e("../common"),l=e("minimalistic-assert"),a=r.rotr64_hi,n=r.rotr64_lo,u=r.shr64_hi,h=r.shr64_lo,d=r.sum64,f=r.sum64_hi,m=r.sum64_lo,g=r.sum64_4_hi,p=r.sum64_4_lo,v=r.sum64_5_hi,b=r.sum64_5_lo,x=o.BlockHash,A=[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,1322822218,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 M(){if(!(this instanceof M))return new M;x.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=A,this.W=new Array(160)}function V(_,k,T,j,P){var U=_&T^~_&P;return U<0&&(U+=4294967296),U}function W(_,k,T,j,P,U){var q=k&j^~k&U;return q<0&&(q+=4294967296),q}function R(_,k,T,j,P){var U=_&T^_&P^T&P;return U<0&&(U+=4294967296),U}function F(_,k,T,j,P,U){var q=k&j^k&U^j&U;return q<0&&(q+=4294967296),q}function $(_,k){var T=a(_,k,28)^a(k,_,2)^a(k,_,7);return T<0&&(T+=4294967296),T}function z(_,k){var T=n(_,k,28)^n(k,_,2)^n(k,_,7);return T<0&&(T+=4294967296),T}function D(_,k){var T=a(_,k,14)^a(_,k,18)^a(k,_,9);return T<0&&(T+=4294967296),T}function N(_,k){var T=n(_,k,14)^n(_,k,18)^n(k,_,9);return T<0&&(T+=4294967296),T}function E(_,k){var T=a(_,k,1)^a(_,k,8)^u(_,k,7);return T<0&&(T+=4294967296),T}function C(_,k){var T=n(_,k,1)^n(_,k,8)^h(_,k,7);return T<0&&(T+=4294967296),T}function w(_,k){var T=a(_,k,19)^a(k,_,29)^u(_,k,6);return T<0&&(T+=4294967296),T}function S(_,k){var T=n(_,k,19)^n(k,_,29)^h(_,k,6);return T<0&&(T+=4294967296),T}r.inherits(M,x),s.exports=M,M.blockSize=1024,M.outSize=512,M.hmacStrength=192,M.padLength=128,M.prototype._prepareBlock=function(_,k){for(var T=this.W,j=0;j<32;j++)T[j]=_[k+j];for(;j<T.length;j+=2){var P=w(T[j-4],T[j-3]),U=S(T[j-4],T[j-3]),q=T[j-14],Z=T[j-13],B=E(T[j-30],T[j-29]),X=C(T[j-30],T[j-29]),L=T[j-32],I=T[j-31];T[j]=g(P,U,q,Z,B,X,L,I),T[j+1]=p(P,U,q,Z,B,X,L,I)}},M.prototype._update=function(_,k){this._prepareBlock(_,k);var T=this.W,j=this.h[0],P=this.h[1],U=this.h[2],q=this.h[3],Z=this.h[4],B=this.h[5],X=this.h[6],L=this.h[7],I=this.h[8],G=this.h[9],ee=this.h[10],se=this.h[11],te=this.h[12],re=this.h[13],J=this.h[14],de=this.h[15];l(this.k.length===T.length);for(var ne=0;ne<T.length;ne+=2){var fe=J,ue=de,ye=D(I,G),be=N(I,G),we=V(I,G,ee,se,te),Se=W(I,G,ee,se,te,re),Pe=this.k[ne],Le=this.k[ne+1],De=T[ne],Ge=T[ne+1],Ve=v(fe,ue,ye,be,we,Se,Pe,Le,De,Ge),qe=b(fe,ue,ye,be,we,Se,Pe,Le,De,Ge);fe=$(j,P),ue=z(j,P),ye=R(j,P,U,q,Z),be=F(j,P,U,q,Z,B);var et=f(fe,ue,ye,be),We=m(fe,ue,ye,be);J=te,de=re,te=ee,re=se,ee=I,se=G,I=f(X,L,Ve,qe),G=m(L,L,Ve,qe),X=Z,L=B,Z=U,B=q,U=j,q=P,j=f(Ve,qe,et,We),P=m(Ve,qe,et,We)}d(this.h,0,j,P),d(this.h,2,U,q),d(this.h,4,Z,B),d(this.h,6,X,L),d(this.h,8,I,G),d(this.h,10,ee,se),d(this.h,12,te,re),d(this.h,14,J,de)},M.prototype._digest=function(_){return _==="hex"?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,s,c){var r=e("../utils").rotr32;function o(n,u,h){return n&u^~n&h}function l(n,u,h){return n&u^n&h^u&h}function a(n,u,h){return n^u^h}c.ft_1=function(n,u,h,d){return n===0?o(u,h,d):n===1||n===3?a(u,h,d):n===2?l(u,h,d):void 0},c.ch32=o,c.maj32=l,c.p32=a,c.s0_256=function(n){return r(n,2)^r(n,13)^r(n,22)},c.s1_256=function(n){return r(n,6)^r(n,11)^r(n,25)},c.g0_256=function(n){return r(n,7)^r(n,18)^n>>>3},c.g1_256=function(n){return r(n,17)^r(n,19)^n>>>10}},{"../utils":437}],437:[function(e,s,c){var r=e("minimalistic-assert"),o=e("inherits");function l(h,d){return(64512&h.charCodeAt(d))==55296&&!(d<0||d+1>=h.length)&&(64512&h.charCodeAt(d+1))==56320}function a(h){return(h>>>24|h>>>8&65280|h<<8&16711680|(255&h)<<24)>>>0}function n(h){return h.length===1?"0"+h:h}function u(h){return h.length===7?"0"+h:h.length===6?"00"+h:h.length===5?"000"+h:h.length===4?"0000"+h:h.length===3?"00000"+h:h.length===2?"000000"+h:h.length===1?"0000000"+h:h}c.inherits=o,c.toArray=function(h,d){if(Array.isArray(h))return h.slice();if(!h)return[];var f=[];if(typeof h=="string")if(d){if(d==="hex")for((h=h.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(h="0"+h),g=0;g<h.length;g+=2)f.push(parseInt(h[g]+h[g+1],16))}else for(var m=0,g=0;g<h.length;g++){var p=h.charCodeAt(g);p<128?f[m++]=p:p<2048?(f[m++]=p>>6|192,f[m++]=63&p|128):l(h,g)?(p=65536+((1023&p)<<10)+(1023&h.charCodeAt(++g)),f[m++]=p>>18|240,f[m++]=p>>12&63|128,f[m++]=p>>6&63|128,f[m++]=63&p|128):(f[m++]=p>>12|224,f[m++]=p>>6&63|128,f[m++]=63&p|128)}else for(g=0;g<h.length;g++)f[g]=0|h[g];return f},c.toHex=function(h){for(var d="",f=0;f<h.length;f++)d+=n(h[f].toString(16));return d},c.htonl=a,c.toHex32=function(h,d){for(var f="",m=0;m<h.length;m++){var g=h[m];d==="little"&&(g=a(g)),f+=u(g.toString(16))}return f},c.zero2=n,c.zero8=u,c.join32=function(h,d,f,m){var g=f-d;r(g%4==0);for(var p=new Array(g/4),v=0,b=d;v<p.length;v++,b+=4){var x;x=m==="big"?h[b]<<24|h[b+1]<<16|h[b+2]<<8|h[b+3]:h[b+3]<<24|h[b+2]<<16|h[b+1]<<8|h[b],p[v]=x>>>0}return p},c.split32=function(h,d){for(var f=new Array(4*h.length),m=0,g=0;m<h.length;m++,g+=4){var p=h[m];d==="big"?(f[g]=p>>>24,f[g+1]=p>>>16&255,f[g+2]=p>>>8&255,f[g+3]=255&p):(f[g+3]=p>>>24,f[g+2]=p>>>16&255,f[g+1]=p>>>8&255,f[g]=255&p)}return f},c.rotr32=function(h,d){return h>>>d|h<<32-d},c.rotl32=function(h,d){return h<<d|h>>>32-d},c.sum32=function(h,d){return h+d>>>0},c.sum32_3=function(h,d,f){return h+d+f>>>0},c.sum32_4=function(h,d,f,m){return h+d+f+m>>>0},c.sum32_5=function(h,d,f,m,g){return h+d+f+m+g>>>0},c.sum64=function(h,d,f,m){var g=h[d],p=m+h[d+1]>>>0,v=(p<m?1:0)+f+g;h[d]=v>>>0,h[d+1]=p},c.sum64_hi=function(h,d,f,m){return(d+m>>>0<d?1:0)+h+f>>>0},c.sum64_lo=function(h,d,f,m){return d+m>>>0},c.sum64_4_hi=function(h,d,f,m,g,p,v,b){var x=0,A=d;return x+=(A=A+m>>>0)<d?1:0,x+=(A=A+p>>>0)<p?1:0,h+f+g+v+(x+=(A=A+b>>>0)<b?1:0)>>>0},c.sum64_4_lo=function(h,d,f,m,g,p,v,b){return d+m+p+b>>>0},c.sum64_5_hi=function(h,d,f,m,g,p,v,b,x,A){var M=0,V=d;return M+=(V=V+m>>>0)<d?1:0,M+=(V=V+p>>>0)<p?1:0,M+=(V=V+b>>>0)<b?1:0,h+f+g+v+x+(M+=(V=V+A>>>0)<A?1:0)>>>0},c.sum64_5_lo=function(h,d,f,m,g,p,v,b,x,A){return d+m+p+b+A>>>0},c.rotr64_hi=function(h,d,f){return(d<<32-f|h>>>f)>>>0},c.rotr64_lo=function(h,d,f){return(h<<32-f|d>>>f)>>>0},c.shr64_hi=function(h,d,f){return h>>>f},c.shr64_lo=function(h,d,f){return(h<<32-f|d>>>f)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,s,c){var r=e("hash.js"),o=e("minimalistic-crypto-utils"),l=e("minimalistic-assert");function a(n){if(!(this instanceof a))return new a(n);this.hash=n.hash,this.predResist=!!n.predResist,this.outLen=this.hash.outSize,this.minEntropy=n.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var u=o.toArray(n.entropy,n.entropyEnc||"hex"),h=o.toArray(n.nonce,n.nonceEnc||"hex"),d=o.toArray(n.pers,n.persEnc||"hex");l(u.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(u,h,d)}s.exports=a,a.prototype._init=function(n,u,h){var d=n.concat(u).concat(h);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var f=0;f<this.V.length;f++)this.K[f]=0,this.V[f]=1;this._update(d),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(n){var u=this._hmac().update(this.V).update([0]);n&&(u=u.update(n)),this.K=u.digest(),this.V=this._hmac().update(this.V).digest(),n&&(this.K=this._hmac().update(this.V).update([1]).update(n).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(n,u,h,d){typeof u!="string"&&(d=h,h=u,u=null),n=o.toArray(n,u),h=o.toArray(h,d),l(n.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(n.concat(h||[])),this._reseed=1},a.prototype.generate=function(n,u,h,d){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof u!="string"&&(d=h,h=u,u=null),h&&(h=o.toArray(h,d||"hex"),this._update(h));for(var f=[];f.length<n;)this.V=this._hmac().update(this.V).digest(),f=f.concat(this.V);var m=f.slice(0,n);return this._update(h),this._reseed++,o.encode(m,u)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,s,c){c.read=function(r,o,l,a,n){var u,h,d=8*n-a-1,f=(1<<d)-1,m=f>>1,g=-7,p=l?n-1:0,v=l?-1:1,b=r[o+p];for(p+=v,u=b&(1<<-g)-1,b>>=-g,g+=d;g>0;u=256*u+r[o+p],p+=v,g-=8);for(h=u&(1<<-g)-1,u>>=-g,g+=a;g>0;h=256*h+r[o+p],p+=v,g-=8);if(u===0)u=1-m;else{if(u===f)return h?NaN:1/0*(b?-1:1);h+=Math.pow(2,a),u-=m}return(b?-1:1)*h*Math.pow(2,u-a)},c.write=function(r,o,l,a,n,u){var h,d,f,m=8*u-n-1,g=(1<<m)-1,p=g>>1,v=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,b=a?0:u-1,x=a?1:-1,A=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(d=isNaN(o)?1:0,h=g):(h=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-h))<1&&(h--,f*=2),(o+=h+p>=1?v/f:v*Math.pow(2,1-p))*f>=2&&(h++,f/=2),h+p>=g?(d=0,h=g):h+p>=1?(d=(o*f-1)*Math.pow(2,n),h+=p):(d=o*Math.pow(2,p-1)*Math.pow(2,n),h=0));n>=8;r[l+b]=255&d,b+=x,d/=256,n-=8);for(h=h<<n|d,m+=n;m>0;r[l+b]=255&h,b+=x,h/=256,m-=8);r[l+b-x]|=128*A}},{}],440:[function(e,s,c){typeof Object.create=="function"?s.exports=function(r,o){o&&(r.super_=o,r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:s.exports=function(r,o){if(o){r.super_=o;var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}}},{}],441:[function(e,s,c){(function(r,o,l,a,n,u,h,d){(function(){(function(f){typeof c=="object"&&s!==void 0?s.exports=f():(typeof window<"u"?window:o!==void 0?o:typeof self<"u"?self:this).JSZip=f()})((function(){return(function f(m,g,p){function v(A,M){if(!g[A]){if(!m[A]){var V=typeof e=="function"&&e;if(!M&&V)return V(A,!0);if(b)return b(A,!0);var W=new Error("Cannot find module '"+A+"'");throw W.code="MODULE_NOT_FOUND",W}var R=g[A]={exports:{}};m[A][0].call(R.exports,(function(F){return v(m[A][1][F]||F)}),R,R.exports,f,m,g,p)}return g[A].exports}for(var b=typeof e=="function"&&e,x=0;x<p.length;x++)v(p[x]);return v})({1:[function(f,m,g){var p=f("./utils"),v=f("./support"),b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";g.encode=function(x){for(var A,M,V,W,R,F,$,z=[],D=0,N=x.length,E=N,C=p.getTypeOf(x)!=="string";D<x.length;)E=N-D,V=C?(A=x[D++],M=D<N?x[D++]:0,D<N?x[D++]:0):(A=x.charCodeAt(D++),M=D<N?x.charCodeAt(D++):0,D<N?x.charCodeAt(D++):0),W=A>>2,R=(3&A)<<4|M>>4,F=1<E?(15&M)<<2|V>>6:64,$=2<E?63&V:64,z.push(b.charAt(W)+b.charAt(R)+b.charAt(F)+b.charAt($));return z.join("")},g.decode=function(x){var A,M,V,W,R,F,$=0,z=0,D="data:";if(x.substr(0,D.length)===D)throw new Error("Invalid base64 input, it looks like a data url.");var N,E=3*(x=x.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(x.charAt(x.length-1)===b.charAt(64)&&E--,x.charAt(x.length-2)===b.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(N=v.uint8array?new Uint8Array(0|E):new Array(0|E);$<x.length;)A=b.indexOf(x.charAt($++))<<2|(W=b.indexOf(x.charAt($++)))>>4,M=(15&W)<<4|(R=b.indexOf(x.charAt($++)))>>2,V=(3&R)<<6|(F=b.indexOf(x.charAt($++))),N[z++]=A,R!==64&&(N[z++]=M),F!==64&&(N[z++]=V);return N}},{"./support":30,"./utils":32}],2:[function(f,m,g){var p=f("./external"),v=f("./stream/DataWorker"),b=f("./stream/Crc32Probe"),x=f("./stream/DataLengthProbe");function A(M,V,W,R,F){this.compressedSize=M,this.uncompressedSize=V,this.crc32=W,this.compression=R,this.compressedContent=F}A.prototype={getContentWorker:function(){var M=new v(p.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new x("data_length")),V=this;return M.on("end",(function(){if(this.streamInfo.data_length!==V.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),M},getCompressedWorker:function(){return new v(p.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},A.createWorkerFrom=function(M,V,W){return M.pipe(new b).pipe(new x("uncompressedSize")).pipe(V.compressWorker(W)).pipe(new x("compressedSize")).withStreamInfo("compression",V)},m.exports=A},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(f,m,g){var p=f("./stream/GenericWorker");g.STORE={magic:"\0\0",compressWorker:function(){return new p("STORE compression")},uncompressWorker:function(){return new p("STORE decompression")}},g.DEFLATE=f("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(f,m,g){var p=f("./utils"),v=(function(){for(var b,x=[],A=0;A<256;A++){b=A;for(var M=0;M<8;M++)b=1&b?3988292384^b>>>1:b>>>1;x[A]=b}return x})();m.exports=function(b,x){return b!==void 0&&b.length?p.getTypeOf(b)!=="string"?(function(A,M,V,W){var R=v,F=0+V;A^=-1;for(var $=0;$<F;$++)A=A>>>8^R[255&(A^M[$])];return-1^A})(0|x,b,b.length):(function(A,M,V,W){var R=v,F=0+V;A^=-1;for(var $=0;$<F;$++)A=A>>>8^R[255&(A^M.charCodeAt($))];return-1^A})(0|x,b,b.length):0}},{"./utils":32}],5:[function(f,m,g){g.base64=!1,g.binary=!1,g.dir=!1,g.createFolders=!0,g.date=null,g.compression=null,g.compressionOptions=null,g.comment=null,g.unixPermissions=null,g.dosPermissions=null},{}],6:[function(f,m,g){var p;p=typeof Promise<"u"?Promise:f("lie"),m.exports={Promise:p}},{lie:37}],7:[function(f,m,g){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",v=f("pako"),b=f("./utils"),x=f("./stream/GenericWorker"),A=p?"uint8array":"array";function M(V,W){x.call(this,"FlateWorker/"+V),this._pako=null,this._pakoAction=V,this._pakoOptions=W,this.meta={}}g.magic="\b\0",b.inherits(M,x),M.prototype.processChunk=function(V){this.meta=V.meta,this._pako===null&&this._createPako(),this._pako.push(b.transformTo(A,V.data),!1)},M.prototype.flush=function(){x.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},M.prototype.cleanUp=function(){x.prototype.cleanUp.call(this),this._pako=null},M.prototype._createPako=function(){this._pako=new v[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var V=this;this._pako.onData=function(W){V.push({data:W,meta:V.meta})}},g.compressWorker=function(V){return new M("Deflate",V)},g.uncompressWorker=function(){return new M("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(f,m,g){function p(R,F){var $,z="";for($=0;$<F;$++)z+=String.fromCharCode(255&R),R>>>=8;return z}function v(R,F,$,z,D,N){var E,C,w=R.file,S=R.compression,_=N!==A.utf8encode,k=b.transformTo("string",N(w.name)),T=b.transformTo("string",A.utf8encode(w.name)),j=w.comment,P=b.transformTo("string",N(j)),U=b.transformTo("string",A.utf8encode(j)),q=T.length!==w.name.length,Z=U.length!==j.length,B="",X="",L="",I=w.dir,G=w.date,ee={crc32:0,compressedSize:0,uncompressedSize:0};F&&!$||(ee.crc32=R.crc32,ee.compressedSize=R.compressedSize,ee.uncompressedSize=R.uncompressedSize);var se=0;F&&(se|=8),_||!q&&!Z||(se|=2048);var te=0,re=0;I&&(te|=16),D==="UNIX"?(re=798,te|=(function(de,ne){var fe=de;return de||(fe=ne?16893:33204),(65535&fe)<<16})(w.unixPermissions,I)):(re=20,te|=(function(de){return 63&(de||0)})(w.dosPermissions)),E=G.getUTCHours(),E<<=6,E|=G.getUTCMinutes(),E<<=5,E|=G.getUTCSeconds()/2,C=G.getUTCFullYear()-1980,C<<=4,C|=G.getUTCMonth()+1,C<<=5,C|=G.getUTCDate(),q&&(X=p(1,1)+p(M(k),4)+T,B+="up"+p(X.length,2)+X),Z&&(L=p(1,1)+p(M(P),4)+U,B+="uc"+p(L.length,2)+L);var J="";return J+=`
89
+ \0`,J+=p(se,2),J+=S.magic,J+=p(E,2),J+=p(C,2),J+=p(ee.crc32,4),J+=p(ee.compressedSize,4),J+=p(ee.uncompressedSize,4),J+=p(k.length,2),J+=p(B.length,2),{fileRecord:V.LOCAL_FILE_HEADER+J+k+B,dirRecord:V.CENTRAL_FILE_HEADER+p(re,2)+J+p(P.length,2)+"\0\0\0\0"+p(te,4)+p(z,4)+k+B+P}}var b=f("../utils"),x=f("../stream/GenericWorker"),A=f("../utf8"),M=f("../crc32"),V=f("../signature");function W(R,F,$,z){x.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=F,this.zipPlatform=$,this.encodeFileName=z,this.streamFiles=R,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}b.inherits(W,x),W.prototype.push=function(R){var F=R.meta.percent||0,$=this.entriesCount,z=this._sources.length;this.accumulate?this.contentBuffer.push(R):(this.bytesWritten+=R.data.length,x.prototype.push.call(this,{data:R.data,meta:{currentFile:this.currentFile,percent:$?(F+100*($-z-1))/$:100}}))},W.prototype.openedSource=function(R){this.currentSourceOffset=this.bytesWritten,this.currentFile=R.file.name;var F=this.streamFiles&&!R.file.dir;if(F){var $=v(R,F,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:$.fileRecord,meta:{percent:0}})}else this.accumulate=!0},W.prototype.closedSource=function(R){this.accumulate=!1;var F=this.streamFiles&&!R.file.dir,$=v(R,F,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push($.dirRecord),F)this.push({data:(function(z){return V.DATA_DESCRIPTOR+p(z.crc32,4)+p(z.compressedSize,4)+p(z.uncompressedSize,4)})(R),meta:{percent:100}});else for(this.push({data:$.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},W.prototype.flush=function(){for(var R=this.bytesWritten,F=0;F<this.dirRecords.length;F++)this.push({data:this.dirRecords[F],meta:{percent:100}});var $=this.bytesWritten-R,z=(function(D,N,E,C,w){var S=b.transformTo("string",w(C));return V.CENTRAL_DIRECTORY_END+"\0\0\0\0"+p(D,2)+p(D,2)+p(N,4)+p(E,4)+p(S.length,2)+S})(this.dirRecords.length,$,R,this.zipComment,this.encodeFileName);this.push({data:z,meta:{percent:100}})},W.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},W.prototype.registerPrevious=function(R){this._sources.push(R);var F=this;return R.on("data",(function($){F.processChunk($)})),R.on("end",(function(){F.closedSource(F.previous.streamInfo),F._sources.length?F.prepareNextSource():F.end()})),R.on("error",(function($){F.error($)})),this},W.prototype.resume=function(){return!!x.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},W.prototype.error=function(R){var F=this._sources;if(!x.prototype.error.call(this,R))return!1;for(var $=0;$<F.length;$++)try{F[$].error(R)}catch{}return!0},W.prototype.lock=function(){x.prototype.lock.call(this);for(var R=this._sources,F=0;F<R.length;F++)R[F].lock()},m.exports=W},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(f,m,g){var p=f("../compressions"),v=f("./ZipFileWorker");g.generateWorker=function(b,x,A){var M=new v(x.streamFiles,A,x.platform,x.encodeFileName),V=0;try{b.forEach((function(W,R){V++;var F=(function(N,E){var C=N||E,w=p[C];if(!w)throw new Error(C+" is not a valid compression method !");return w})(R.options.compression,x.compression),$=R.options.compressionOptions||x.compressionOptions||{},z=R.dir,D=R.date;R._compressWorker(F,$).withStreamInfo("file",{name:W,dir:z,date:D,comment:R.comment||"",unixPermissions:R.unixPermissions,dosPermissions:R.dosPermissions}).pipe(M)})),M.entriesCount=V}catch(W){M.error(W)}return M}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(f,m,g){function p(){if(!(this instanceof p))return new p;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 v=new p;for(var b in this)typeof this[b]!="function"&&(v[b]=this[b]);return v}}(p.prototype=f("./object")).loadAsync=f("./load"),p.support=f("./support"),p.defaults=f("./defaults"),p.version="3.10.1",p.loadAsync=function(v,b){return new p().loadAsync(v,b)},p.external=f("./external"),m.exports=p},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(f,m,g){var p=f("./utils"),v=f("./external"),b=f("./utf8"),x=f("./zipEntries"),A=f("./stream/Crc32Probe"),M=f("./nodejsUtils");function V(W){return new v.Promise((function(R,F){var $=W.decompressed.getContentWorker().pipe(new A);$.on("error",(function(z){F(z)})).on("end",(function(){$.streamInfo.crc32!==W.decompressed.crc32?F(new Error("Corrupted zip : CRC32 mismatch")):R()})).resume()}))}m.exports=function(W,R){var F=this;return R=p.extend(R||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:b.utf8decode}),M.isNode&&M.isStream(W)?v.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):p.prepareContent("the loaded zip file",W,!0,R.optimizedBinaryString,R.base64).then((function($){var z=new x(R);return z.load($),z})).then((function($){var z=[v.Promise.resolve($)],D=$.files;if(R.checkCRC32)for(var N=0;N<D.length;N++)z.push(V(D[N]));return v.Promise.all(z)})).then((function($){for(var z=$.shift(),D=z.files,N=0;N<D.length;N++){var E=D[N],C=E.fileNameStr,w=p.resolve(E.fileNameStr);F.file(w,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:R.createFolders}),E.dir||(F.file(w).unsafeOriginalName=C)}return z.zipComment.length&&(F.comment=z.zipComment),F}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(f,m,g){var p=f("../utils"),v=f("../stream/GenericWorker");function b(x,A){v.call(this,"Nodejs stream input adapter for "+x),this._upstreamEnded=!1,this._bindStream(A)}p.inherits(b,v),b.prototype._bindStream=function(x){var A=this;(this._stream=x).pause(),x.on("data",(function(M){A.push({data:M,meta:{percent:0}})})).on("error",(function(M){A.isPaused?this.generatedError=M:A.error(M)})).on("end",(function(){A.isPaused?A._upstreamEnded=!0:A.end()}))},b.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},b.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},m.exports=b},{"../stream/GenericWorker":28,"../utils":32}],13:[function(f,m,g){var p=f("readable-stream").Readable;function v(b,x,A){p.call(this,x),this._helper=b;var M=this;b.on("data",(function(V,W){M.push(V)||M._helper.pause(),A&&A(W)})).on("error",(function(V){M.emit("error",V)})).on("end",(function(){M.push(null)}))}f("../utils").inherits(v,p),v.prototype._read=function(){this._helper.resume()},m.exports=v},{"../utils":32,"readable-stream":16}],14:[function(f,m,g){m.exports={isNode:l!==void 0,newBufferFrom:function(p,v){if(l.from&&l.from!==Uint8Array.from)return l.from(p,v);if(typeof p=="number")throw new Error('The "data" argument must not be a number');return new l(p,v)},allocBuffer:function(p){if(l.alloc)return l.alloc(p);var v=new l(p);return v.fill(0),v},isBuffer:function(p){return l.isBuffer(p)},isStream:function(p){return p&&typeof p.on=="function"&&typeof p.pause=="function"&&typeof p.resume=="function"}}},{}],15:[function(f,m,g){function p(w,S,_){var k,T=b.getTypeOf(S),j=b.extend(_||{},M);j.date=j.date||new Date,j.compression!==null&&(j.compression=j.compression.toUpperCase()),typeof j.unixPermissions=="string"&&(j.unixPermissions=parseInt(j.unixPermissions,8)),j.unixPermissions&&16384&j.unixPermissions&&(j.dir=!0),j.dosPermissions&&16&j.dosPermissions&&(j.dir=!0),j.dir&&(w=D(w)),j.createFolders&&(k=z(w))&&N.call(this,k,!0);var P=T==="string"&&j.binary===!1&&j.base64===!1;_&&_.binary!==void 0||(j.binary=!P),(S instanceof V&&S.uncompressedSize===0||j.dir||!S||S.length===0)&&(j.base64=!1,j.binary=!0,S="",j.compression="STORE",T="string");var U;U=S instanceof V||S instanceof x?S:F.isNode&&F.isStream(S)?new $(w,S):b.prepareContent(w,S,j.binary,j.optimizedBinaryString,j.base64);var q=new W(w,U,j);this.files[w]=q}var v=f("./utf8"),b=f("./utils"),x=f("./stream/GenericWorker"),A=f("./stream/StreamHelper"),M=f("./defaults"),V=f("./compressedObject"),W=f("./zipObject"),R=f("./generate"),F=f("./nodejsUtils"),$=f("./nodejs/NodejsStreamInputAdapter"),z=function(w){w.slice(-1)==="/"&&(w=w.substring(0,w.length-1));var S=w.lastIndexOf("/");return 0<S?w.substring(0,S):""},D=function(w){return w.slice(-1)!=="/"&&(w+="/"),w},N=function(w,S){return S=S!==void 0?S:M.createFolders,w=D(w),this.files[w]||p.call(this,w,null,{dir:!0,createFolders:S}),this.files[w]};function E(w){return Object.prototype.toString.call(w)==="[object RegExp]"}var C={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(w){var S,_,k;for(S in this.files)k=this.files[S],(_=S.slice(this.root.length,S.length))&&S.slice(0,this.root.length)===this.root&&w(_,k)},filter:function(w){var S=[];return this.forEach((function(_,k){w(_,k)&&S.push(k)})),S},file:function(w,S,_){if(arguments.length!==1)return w=this.root+w,p.call(this,w,S,_),this;if(E(w)){var k=w;return this.filter((function(j,P){return!P.dir&&k.test(j)}))}var T=this.files[this.root+w];return T&&!T.dir?T:null},folder:function(w){if(!w)return this;if(E(w))return this.filter((function(T,j){return j.dir&&w.test(T)}));var S=this.root+w,_=N.call(this,S),k=this.clone();return k.root=_.name,k},remove:function(w){w=this.root+w;var S=this.files[w];if(S||(w.slice(-1)!=="/"&&(w+="/"),S=this.files[w]),S&&!S.dir)delete this.files[w];else for(var _=this.filter((function(T,j){return j.name.slice(0,w.length)===w})),k=0;k<_.length;k++)delete this.files[_[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(w){var S,_={};try{if((_=b.extend(w||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=_.type.toLowerCase(),_.compression=_.compression.toUpperCase(),_.type==="binarystring"&&(_.type="string"),!_.type)throw new Error("No output type specified.");b.checkSupport(_.type),_.platform!=="darwin"&&_.platform!=="freebsd"&&_.platform!=="linux"&&_.platform!=="sunos"||(_.platform="UNIX"),_.platform==="win32"&&(_.platform="DOS");var k=_.comment||this.comment||"";S=R.generateWorker(this,_,k)}catch(T){(S=new x("error")).error(T)}return new A(S,_.type||"string",_.mimeType)},generateAsync:function(w,S){return this.generateInternalStream(w).accumulate(S)},generateNodeStream:function(w,S){return(w=w||{}).type||(w.type="nodebuffer"),this.generateInternalStream(w).toNodejsStream(S)}};m.exports=C},{"./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(f,m,g){m.exports=f("stream")},{stream:void 0}],17:[function(f,m,g){var p=f("./DataReader");function v(b){p.call(this,b);for(var x=0;x<this.data.length;x++)b[x]=255&b[x]}f("../utils").inherits(v,p),v.prototype.byteAt=function(b){return this.data[this.zero+b]},v.prototype.lastIndexOfSignature=function(b){for(var x=b.charCodeAt(0),A=b.charCodeAt(1),M=b.charCodeAt(2),V=b.charCodeAt(3),W=this.length-4;0<=W;--W)if(this.data[W]===x&&this.data[W+1]===A&&this.data[W+2]===M&&this.data[W+3]===V)return W-this.zero;return-1},v.prototype.readAndCheckSignature=function(b){var x=b.charCodeAt(0),A=b.charCodeAt(1),M=b.charCodeAt(2),V=b.charCodeAt(3),W=this.readData(4);return x===W[0]&&A===W[1]&&M===W[2]&&V===W[3]},v.prototype.readData=function(b){if(this.checkOffset(b),b===0)return[];var x=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,x},m.exports=v},{"../utils":32,"./DataReader":18}],18:[function(f,m,g){var p=f("../utils");function v(b){this.data=b,this.length=b.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(b){this.checkIndex(this.index+b)},checkIndex:function(b){if(this.length<this.zero+b||b<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+b+"). Corrupted zip ?")},setIndex:function(b){this.checkIndex(b),this.index=b},skip:function(b){this.setIndex(this.index+b)},byteAt:function(){},readInt:function(b){var x,A=0;for(this.checkOffset(b),x=this.index+b-1;x>=this.index;x--)A=(A<<8)+this.byteAt(x);return this.index+=b,A},readString:function(b){return p.transformTo("string",this.readData(b))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var b=this.readInt(4);return new Date(Date.UTC(1980+(b>>25&127),(b>>21&15)-1,b>>16&31,b>>11&31,b>>5&63,(31&b)<<1))}},m.exports=v},{"../utils":32}],19:[function(f,m,g){var p=f("./Uint8ArrayReader");function v(b){p.call(this,b)}f("../utils").inherits(v,p),v.prototype.readData=function(b){this.checkOffset(b);var x=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,x},m.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(f,m,g){var p=f("./DataReader");function v(b){p.call(this,b)}f("../utils").inherits(v,p),v.prototype.byteAt=function(b){return this.data.charCodeAt(this.zero+b)},v.prototype.lastIndexOfSignature=function(b){return this.data.lastIndexOf(b)-this.zero},v.prototype.readAndCheckSignature=function(b){return b===this.readData(4)},v.prototype.readData=function(b){this.checkOffset(b);var x=this.data.slice(this.zero+this.index,this.zero+this.index+b);return this.index+=b,x},m.exports=v},{"../utils":32,"./DataReader":18}],21:[function(f,m,g){var p=f("./ArrayReader");function v(b){p.call(this,b)}f("../utils").inherits(v,p),v.prototype.readData=function(b){if(this.checkOffset(b),b===0)return new Uint8Array(0);var x=this.data.subarray(this.zero+this.index,this.zero+this.index+b);return this.index+=b,x},m.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(f,m,g){var p=f("../utils"),v=f("../support"),b=f("./ArrayReader"),x=f("./StringReader"),A=f("./NodeBufferReader"),M=f("./Uint8ArrayReader");m.exports=function(V){var W=p.getTypeOf(V);return p.checkSupport(W),W!=="string"||v.uint8array?W==="nodebuffer"?new A(V):v.uint8array?new M(p.transformTo("uint8array",V)):new b(p.transformTo("array",V)):new x(V)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(f,m,g){g.LOCAL_FILE_HEADER="PK",g.CENTRAL_FILE_HEADER="PK",g.CENTRAL_DIRECTORY_END="PK",g.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",g.ZIP64_CENTRAL_DIRECTORY_END="PK",g.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(f,m,g){var p=f("./GenericWorker"),v=f("../utils");function b(x){p.call(this,"ConvertWorker to "+x),this.destType=x}v.inherits(b,p),b.prototype.processChunk=function(x){this.push({data:v.transformTo(this.destType,x.data),meta:x.meta})},m.exports=b},{"../utils":32,"./GenericWorker":28}],25:[function(f,m,g){var p=f("./GenericWorker"),v=f("../crc32");function b(){p.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}f("../utils").inherits(b,p),b.prototype.processChunk=function(x){this.streamInfo.crc32=v(x.data,this.streamInfo.crc32||0),this.push(x)},m.exports=b},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(f,m,g){var p=f("../utils"),v=f("./GenericWorker");function b(x){v.call(this,"DataLengthProbe for "+x),this.propName=x,this.withStreamInfo(x,0)}p.inherits(b,v),b.prototype.processChunk=function(x){if(x){var A=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=A+x.data.length}v.prototype.processChunk.call(this,x)},m.exports=b},{"../utils":32,"./GenericWorker":28}],27:[function(f,m,g){var p=f("../utils"),v=f("./GenericWorker");function b(x){v.call(this,"DataWorker");var A=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,x.then((function(M){A.dataIsReady=!0,A.data=M,A.max=M&&M.length||0,A.type=p.getTypeOf(M),A.isPaused||A._tickAndRepeat()}),(function(M){A.error(M)}))}p.inherits(b,v),b.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},b.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,p.delay(this._tickAndRepeat,[],this)),!0)},b.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(p.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},b.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var x=null,A=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":x=this.data.substring(this.index,A);break;case"uint8array":x=this.data.subarray(this.index,A);break;case"array":case"nodebuffer":x=this.data.slice(this.index,A)}return this.index=A,this.push({data:x,meta:{percent:this.max?this.index/this.max*100:0}})},m.exports=b},{"../utils":32,"./GenericWorker":28}],28:[function(f,m,g){function p(v){this.name=v||"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}p.prototype={push:function(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,b){return this._listeners[v].push(b),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,b){if(this._listeners[v])for(var x=0;x<this._listeners[v].length;x++)this._listeners[v][x].call(this,b)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var b=this;return v.on("data",(function(x){b.processChunk(x)})),v.on("end",(function(){b.end()})),v.on("error",(function(x){b.error(x)})),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 v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,b){return this.extraStreamInfo[v]=b,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},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 v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},m.exports=p},{}],29:[function(f,m,g){var p=f("../utils"),v=f("./ConvertWorker"),b=f("./GenericWorker"),x=f("../base64"),A=f("../support"),M=f("../external"),V=null;if(A.nodestream)try{V=f("../nodejs/NodejsStreamOutputAdapter")}catch{}function W(R,F,$){var z=F;switch(F){case"blob":case"arraybuffer":z="uint8array";break;case"base64":z="string"}try{this._internalType=z,this._outputType=F,this._mimeType=$,p.checkSupport(z),this._worker=R.pipe(new v(z)),R.lock()}catch(D){this._worker=new b("error"),this._worker.error(D)}}W.prototype={accumulate:function(R){return(function(F,$){return new M.Promise((function(z,D){var N=[],E=F._internalType,C=F._outputType,w=F._mimeType;F.on("data",(function(S,_){N.push(S),$&&$(_)})).on("error",(function(S){N=[],D(S)})).on("end",(function(){try{var S=(function(_,k,T){switch(_){case"blob":return p.newBlob(p.transformTo("arraybuffer",k),T);case"base64":return x.encode(k);default:return p.transformTo(_,k)}})(C,(function(_,k){var T,j=0,P=null,U=0;for(T=0;T<k.length;T++)U+=k[T].length;switch(_){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(P=new Uint8Array(U),T=0;T<k.length;T++)P.set(k[T],j),j+=k[T].length;return P;case"nodebuffer":return l.concat(k);default:throw new Error("concat : unsupported type '"+_+"'")}})(E,N),w);z(S)}catch(_){D(_)}N=[]})).resume()}))})(this,R)},on:function(R,F){var $=this;return R==="data"?this._worker.on(R,(function(z){F.call($,z.data,z.meta)})):this._worker.on(R,(function(){p.delay(F,arguments,$)})),this},resume:function(){return p.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(R){if(p.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new V(this,{objectMode:this._outputType!=="nodebuffer"},R)}},m.exports=W},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(f,m,g){if(g.base64=!0,g.array=!0,g.string=!0,g.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",g.nodebuffer=l!==void 0,g.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")g.blob=!1;else{var p=new ArrayBuffer(0);try{g.blob=new Blob([p],{type:"application/zip"}).size===0}catch{try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(p),g.blob=v.getBlob("application/zip").size===0}catch{g.blob=!1}}}try{g.nodestream=!!f("readable-stream").Readable}catch{g.nodestream=!1}},{"readable-stream":16}],31:[function(f,m,g){for(var p=f("./utils"),v=f("./support"),b=f("./nodejsUtils"),x=f("./stream/GenericWorker"),A=new Array(256),M=0;M<256;M++)A[M]=252<=M?6:248<=M?5:240<=M?4:224<=M?3:192<=M?2:1;function V(){x.call(this,"utf-8 decode"),this.leftOver=null}function W(){x.call(this,"utf-8 encode")}A[254]=A[254]=1,g.utf8encode=function(R){return v.nodebuffer?b.newBufferFrom(R,"utf-8"):(function(F){var $,z,D,N,E,C=F.length,w=0;for(N=0;N<C;N++)(64512&(z=F.charCodeAt(N)))==55296&&N+1<C&&(64512&(D=F.charCodeAt(N+1)))==56320&&(z=65536+(z-55296<<10)+(D-56320),N++),w+=z<128?1:z<2048?2:z<65536?3:4;for($=v.uint8array?new Uint8Array(w):new Array(w),N=E=0;E<w;N++)(64512&(z=F.charCodeAt(N)))==55296&&N+1<C&&(64512&(D=F.charCodeAt(N+1)))==56320&&(z=65536+(z-55296<<10)+(D-56320),N++),z<128?$[E++]=z:(z<2048?$[E++]=192|z>>>6:(z<65536?$[E++]=224|z>>>12:($[E++]=240|z>>>18,$[E++]=128|z>>>12&63),$[E++]=128|z>>>6&63),$[E++]=128|63&z);return $})(R)},g.utf8decode=function(R){return v.nodebuffer?p.transformTo("nodebuffer",R).toString("utf-8"):(function(F){var $,z,D,N,E=F.length,C=new Array(2*E);for($=z=0;$<E;)if((D=F[$++])<128)C[z++]=D;else if(4<(N=A[D]))C[z++]=65533,$+=N-1;else{for(D&=N===2?31:N===3?15:7;1<N&&$<E;)D=D<<6|63&F[$++],N--;1<N?C[z++]=65533:D<65536?C[z++]=D:(D-=65536,C[z++]=55296|D>>10&1023,C[z++]=56320|1023&D)}return C.length!==z&&(C.subarray?C=C.subarray(0,z):C.length=z),p.applyFromCharCode(C)})(R=p.transformTo(v.uint8array?"uint8array":"array",R))},p.inherits(V,x),V.prototype.processChunk=function(R){var F=p.transformTo(v.uint8array?"uint8array":"array",R.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var $=F;(F=new Uint8Array($.length+this.leftOver.length)).set(this.leftOver,0),F.set($,this.leftOver.length)}else F=this.leftOver.concat(F);this.leftOver=null}var z=(function(N,E){var C;for((E=E||N.length)>N.length&&(E=N.length),C=E-1;0<=C&&(192&N[C])==128;)C--;return C<0||C===0?E:C+A[N[C]]>E?C:E})(F),D=F;z!==F.length&&(v.uint8array?(D=F.subarray(0,z),this.leftOver=F.subarray(z,F.length)):(D=F.slice(0,z),this.leftOver=F.slice(z,F.length))),this.push({data:g.utf8decode(D),meta:R.meta})},V.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:g.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},g.Utf8DecodeWorker=V,p.inherits(W,x),W.prototype.processChunk=function(R){this.push({data:g.utf8encode(R.data),meta:R.meta})},g.Utf8EncodeWorker=W},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(f,m,g){var p=f("./support"),v=f("./base64"),b=f("./nodejsUtils"),x=f("./external");function A($){return $}function M($,z){for(var D=0;D<$.length;++D)z[D]=255&$.charCodeAt(D);return z}f("setimmediate"),g.newBlob=function($,z){g.checkSupport("blob");try{return new Blob([$],{type:z})}catch{try{var D=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return D.append($),D.getBlob(z)}catch{throw new Error("Bug : can't construct the Blob.")}}};var V={stringifyByChunk:function($,z,D){var N=[],E=0,C=$.length;if(C<=D)return String.fromCharCode.apply(null,$);for(;E<C;)z==="array"||z==="nodebuffer"?N.push(String.fromCharCode.apply(null,$.slice(E,Math.min(E+D,C)))):N.push(String.fromCharCode.apply(null,$.subarray(E,Math.min(E+D,C)))),E+=D;return N.join("")},stringifyByChar:function($){for(var z="",D=0;D<$.length;D++)z+=String.fromCharCode($[D]);return z},applyCanBeUsed:{uint8array:(function(){try{return p.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return p.nodebuffer&&String.fromCharCode.apply(null,b.allocBuffer(1)).length===1}catch{return!1}})()}};function W($){var z=65536,D=g.getTypeOf($),N=!0;if(D==="uint8array"?N=V.applyCanBeUsed.uint8array:D==="nodebuffer"&&(N=V.applyCanBeUsed.nodebuffer),N)for(;1<z;)try{return V.stringifyByChunk($,D,z)}catch{z=Math.floor(z/2)}return V.stringifyByChar($)}function R($,z){for(var D=0;D<$.length;D++)z[D]=$[D];return z}g.applyFromCharCode=W;var F={};F.string={string:A,array:function($){return M($,new Array($.length))},arraybuffer:function($){return F.string.uint8array($).buffer},uint8array:function($){return M($,new Uint8Array($.length))},nodebuffer:function($){return M($,b.allocBuffer($.length))}},F.array={string:W,array:A,arraybuffer:function($){return new Uint8Array($).buffer},uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return b.newBufferFrom($)}},F.arraybuffer={string:function($){return W(new Uint8Array($))},array:function($){return R(new Uint8Array($),new Array($.byteLength))},arraybuffer:A,uint8array:function($){return new Uint8Array($)},nodebuffer:function($){return b.newBufferFrom(new Uint8Array($))}},F.uint8array={string:W,array:function($){return R($,new Array($.length))},arraybuffer:function($){return $.buffer},uint8array:A,nodebuffer:function($){return b.newBufferFrom($)}},F.nodebuffer={string:W,array:function($){return R($,new Array($.length))},arraybuffer:function($){return F.nodebuffer.uint8array($).buffer},uint8array:function($){return R($,new Uint8Array($.length))},nodebuffer:A},g.transformTo=function($,z){if(z=z||"",!$)return z;g.checkSupport($);var D=g.getTypeOf(z);return F[D][$](z)},g.resolve=function($){for(var z=$.split("/"),D=[],N=0;N<z.length;N++){var E=z[N];E==="."||E===""&&N!==0&&N!==z.length-1||(E===".."?D.pop():D.push(E))}return D.join("/")},g.getTypeOf=function($){return typeof $=="string"?"string":Object.prototype.toString.call($)==="[object Array]"?"array":p.nodebuffer&&b.isBuffer($)?"nodebuffer":p.uint8array&&$ instanceof Uint8Array?"uint8array":p.arraybuffer&&$ instanceof ArrayBuffer?"arraybuffer":void 0},g.checkSupport=function($){if(!p[$.toLowerCase()])throw new Error($+" is not supported by this platform")},g.MAX_VALUE_16BITS=65535,g.MAX_VALUE_32BITS=-1,g.pretty=function($){var z,D,N="";for(D=0;D<($||"").length;D++)N+="\\x"+((z=$.charCodeAt(D))<16?"0":"")+z.toString(16).toUpperCase();return N},g.delay=function($,z,D){d((function(){$.apply(D||null,z||[])}))},g.inherits=function($,z){function D(){}D.prototype=z.prototype,$.prototype=new D},g.extend=function(){var $,z,D={};for($=0;$<arguments.length;$++)for(z in arguments[$])Object.prototype.hasOwnProperty.call(arguments[$],z)&&D[z]===void 0&&(D[z]=arguments[$][z]);return D},g.prepareContent=function($,z,D,N,E){return x.Promise.resolve(z).then((function(C){return p.blob&&(C instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(C))!==-1)&&typeof FileReader<"u"?new x.Promise((function(w,S){var _=new FileReader;_.onload=function(k){w(k.target.result)},_.onerror=function(k){S(k.target.error)},_.readAsArrayBuffer(C)})):C})).then((function(C){var w=g.getTypeOf(C);return w?(w==="arraybuffer"?C=g.transformTo("uint8array",C):w==="string"&&(E?C=v.decode(C):D&&N!==!0&&(C=(function(S){return M(S,p.uint8array?new Uint8Array(S.length):new Array(S.length))})(C))),C):x.Promise.reject(new Error("Can't read the data of '"+$+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(f,m,g){var p=f("./reader/readerFor"),v=f("./utils"),b=f("./signature"),x=f("./zipEntry"),A=f("./support");function M(V){this.files=[],this.loadOptions=V}M.prototype={checkSignature:function(V){if(!this.reader.readAndCheckSignature(V)){this.reader.index-=4;var W=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+v.pretty(W)+", expected "+v.pretty(V)+")")}},isSignature:function(V,W){var R=this.reader.index;this.reader.setIndex(V);var F=this.reader.readString(4)===W;return this.reader.setIndex(R),F},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 V=this.reader.readData(this.zipCommentLength),W=A.uint8array?"uint8array":"array",R=v.transformTo(W,V);this.zipComment=this.loadOptions.decodeFileName(R)},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 V,W,R,F=this.zip64EndOfCentralSize-44;0<F;)V=this.reader.readInt(2),W=this.reader.readInt(4),R=this.reader.readData(W),this.zip64ExtensibleData[V]={id:V,length:W,value:R}},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 V,W;for(V=0;V<this.files.length;V++)W=this.files[V],this.reader.setIndex(W.localHeaderOffset),this.checkSignature(b.LOCAL_FILE_HEADER),W.readLocalPart(this.reader),W.handleUTF8(),W.processAttributes()},readCentralDir:function(){var V;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(b.CENTRAL_FILE_HEADER);)(V=new x({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(V);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 V=this.reader.lastIndexOfSignature(b.CENTRAL_DIRECTORY_END);if(V<0)throw this.isSignature(0,b.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 file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(V);var W=V;if(this.checkSignature(b.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(V=this.reader.lastIndexOfSignature(b.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(V),this.checkSignature(b.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,b.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(b.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(b.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var R=this.centralDirOffset+this.centralDirSize;this.zip64&&(R+=20,R+=12+this.zip64EndOfCentralSize);var F=W-R;if(0<F)this.isSignature(W,b.CENTRAL_FILE_HEADER)||(this.reader.zero=F);else if(F<0)throw new Error("Corrupted zip: missing "+Math.abs(F)+" bytes.")},prepareReader:function(V){this.reader=p(V)},load:function(V){this.prepareReader(V),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},m.exports=M},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(f,m,g){var p=f("./reader/readerFor"),v=f("./utils"),b=f("./compressedObject"),x=f("./crc32"),A=f("./utf8"),M=f("./compressions"),V=f("./support");function W(R,F){this.options=R,this.loadOptions=F}W.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(R){var F,$;if(R.skip(22),this.fileNameLength=R.readInt(2),$=R.readInt(2),this.fileName=R.readData(this.fileNameLength),R.skip($),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((F=(function(z){for(var D in M)if(Object.prototype.hasOwnProperty.call(M,D)&&M[D].magic===z)return M[D];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new b(this.compressedSize,this.uncompressedSize,this.crc32,F,R.readData(this.compressedSize))},readCentralPart:function(R){this.versionMadeBy=R.readInt(2),R.skip(2),this.bitFlag=R.readInt(2),this.compressionMethod=R.readString(2),this.date=R.readDate(),this.crc32=R.readInt(4),this.compressedSize=R.readInt(4),this.uncompressedSize=R.readInt(4);var F=R.readInt(2);if(this.extraFieldsLength=R.readInt(2),this.fileCommentLength=R.readInt(2),this.diskNumberStart=R.readInt(2),this.internalFileAttributes=R.readInt(2),this.externalFileAttributes=R.readInt(4),this.localHeaderOffset=R.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");R.skip(F),this.readExtraFields(R),this.parseZIP64ExtraField(R),this.fileComment=R.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var R=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),R==0&&(this.dosPermissions=63&this.externalFileAttributes),R==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var R=p(this.extraFields[1].value);this.uncompressedSize===v.MAX_VALUE_32BITS&&(this.uncompressedSize=R.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=R.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=R.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=R.readInt(4))}},readExtraFields:function(R){var F,$,z,D=R.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});R.index+4<D;)F=R.readInt(2),$=R.readInt(2),z=R.readData($),this.extraFields[F]={id:F,length:$,value:z};R.setIndex(D)},handleUTF8:function(){var R=V.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=A.utf8decode(this.fileName),this.fileCommentStr=A.utf8decode(this.fileComment);else{var F=this.findExtraFieldUnicodePath();if(F!==null)this.fileNameStr=F;else{var $=v.transformTo(R,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName($)}var z=this.findExtraFieldUnicodeComment();if(z!==null)this.fileCommentStr=z;else{var D=v.transformTo(R,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(D)}}},findExtraFieldUnicodePath:function(){var R=this.extraFields[28789];if(R){var F=p(R.value);return F.readInt(1)!==1||x(this.fileName)!==F.readInt(4)?null:A.utf8decode(F.readData(R.length-5))}return null},findExtraFieldUnicodeComment:function(){var R=this.extraFields[25461];if(R){var F=p(R.value);return F.readInt(1)!==1||x(this.fileComment)!==F.readInt(4)?null:A.utf8decode(F.readData(R.length-5))}return null}},m.exports=W},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(f,m,g){function p(F,$,z){this.name=F,this.dir=z.dir,this.date=z.date,this.comment=z.comment,this.unixPermissions=z.unixPermissions,this.dosPermissions=z.dosPermissions,this._data=$,this._dataBinary=z.binary,this.options={compression:z.compression,compressionOptions:z.compressionOptions}}var v=f("./stream/StreamHelper"),b=f("./stream/DataWorker"),x=f("./utf8"),A=f("./compressedObject"),M=f("./stream/GenericWorker");p.prototype={internalStream:function(F){var $=null,z="string";try{if(!F)throw new Error("No output type specified.");var D=(z=F.toLowerCase())==="string"||z==="text";z!=="binarystring"&&z!=="text"||(z="string"),$=this._decompressWorker();var N=!this._dataBinary;N&&!D&&($=$.pipe(new x.Utf8EncodeWorker)),!N&&D&&($=$.pipe(new x.Utf8DecodeWorker))}catch(E){($=new M("error")).error(E)}return new v($,z,"")},async:function(F,$){return this.internalStream(F).accumulate($)},nodeStream:function(F,$){return this.internalStream(F||"nodebuffer").toNodejsStream($)},_compressWorker:function(F,$){if(this._data instanceof A&&this._data.compression.magic===F.magic)return this._data.getCompressedWorker();var z=this._decompressWorker();return this._dataBinary||(z=z.pipe(new x.Utf8EncodeWorker)),A.createWorkerFrom(z,F,$)},_decompressWorker:function(){return this._data instanceof A?this._data.getContentWorker():this._data instanceof M?this._data:new b(this._data)}};for(var V=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],W=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},R=0;R<V.length;R++)p.prototype[V[R]]=W;m.exports=p},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(f,m,g){(function(p){var v,b,x=p.MutationObserver||p.WebKitMutationObserver;if(x){var A=0,M=new x(F),V=p.document.createTextNode("");M.observe(V,{characterData:!0}),v=function(){V.data=A=++A%2}}else if(p.setImmediate||p.MessageChannel===void 0)v="document"in p&&"onreadystatechange"in p.document.createElement("script")?function(){var $=p.document.createElement("script");$.onreadystatechange=function(){F(),$.onreadystatechange=null,$.parentNode.removeChild($),$=null},p.document.documentElement.appendChild($)}:function(){setTimeout(F,0)};else{var W=new p.MessageChannel;W.port1.onmessage=F,v=function(){W.port2.postMessage(0)}}var R=[];function F(){var $,z;b=!0;for(var D=R.length;D;){for(z=R,R=[],$=-1;++$<D;)z[$]();D=R.length}b=!1}m.exports=function($){R.push($)!==1||b||v()}}).call(this,o!==void 0?o:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(f,m,g){var p=f("immediate");function v(){}var b={},x=["REJECTED"],A=["FULFILLED"],M=["PENDING"];function V(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=M,this.queue=[],this.outcome=void 0,D!==v&&$(this,D)}function W(D,N,E){this.promise=D,typeof N=="function"&&(this.onFulfilled=N,this.callFulfilled=this.otherCallFulfilled),typeof E=="function"&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function R(D,N,E){p((function(){var C;try{C=N(E)}catch(w){return b.reject(D,w)}C===D?b.reject(D,new TypeError("Cannot resolve promise with itself")):b.resolve(D,C)}))}function F(D){var N=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof N=="function")return function(){N.apply(D,arguments)}}function $(D,N){var E=!1;function C(_){E||(E=!0,b.reject(D,_))}function w(_){E||(E=!0,b.resolve(D,_))}var S=z((function(){N(w,C)}));S.status==="error"&&C(S.value)}function z(D,N){var E={};try{E.value=D(N),E.status="success"}catch(C){E.status="error",E.value=C}return E}(m.exports=V).prototype.finally=function(D){if(typeof D!="function")return this;var N=this.constructor;return this.then((function(E){return N.resolve(D()).then((function(){return E}))}),(function(E){return N.resolve(D()).then((function(){throw E}))}))},V.prototype.catch=function(D){return this.then(null,D)},V.prototype.then=function(D,N){if(typeof D!="function"&&this.state===A||typeof N!="function"&&this.state===x)return this;var E=new this.constructor(v);return this.state!==M?R(E,this.state===A?D:N,this.outcome):this.queue.push(new W(E,D,N)),E},W.prototype.callFulfilled=function(D){b.resolve(this.promise,D)},W.prototype.otherCallFulfilled=function(D){R(this.promise,this.onFulfilled,D)},W.prototype.callRejected=function(D){b.reject(this.promise,D)},W.prototype.otherCallRejected=function(D){R(this.promise,this.onRejected,D)},b.resolve=function(D,N){var E=z(F,N);if(E.status==="error")return b.reject(D,E.value);var C=E.value;if(C)$(D,C);else{D.state=A,D.outcome=N;for(var w=-1,S=D.queue.length;++w<S;)D.queue[w].callFulfilled(N)}return D},b.reject=function(D,N){D.state=x,D.outcome=N;for(var E=-1,C=D.queue.length;++E<C;)D.queue[E].callRejected(N);return D},V.resolve=function(D){return D instanceof this?D:b.resolve(new this(v),D)},V.reject=function(D){var N=new this(v);return b.reject(N,D)},V.all=function(D){var N=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var E=D.length,C=!1;if(!E)return this.resolve([]);for(var w=new Array(E),S=0,_=-1,k=new this(v);++_<E;)T(D[_],_);return k;function T(j,P){N.resolve(j).then((function(U){w[P]=U,++S!==E||C||(C=!0,b.resolve(k,w))}),(function(U){C||(C=!0,b.reject(k,U))}))}},V.race=function(D){if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=D.length,E=!1;if(!N)return this.resolve([]);for(var C,w=-1,S=new this(v);++w<N;)C=D[w],this.resolve(C).then((function(_){E||(E=!0,b.resolve(S,_))}),(function(_){E||(E=!0,b.reject(S,_))}));return S}},{immediate:36}],38:[function(f,m,g){var p={};(0,f("./lib/utils/common").assign)(p,f("./lib/deflate"),f("./lib/inflate"),f("./lib/zlib/constants")),m.exports=p},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(f,m,g){var p=f("./zlib/deflate"),v=f("./utils/common"),b=f("./utils/strings"),x=f("./zlib/messages"),A=f("./zlib/zstream"),M=Object.prototype.toString;function V(R){if(!(this instanceof V))return new V(R);this.options=v.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},R||{});var F=this.options;F.raw&&0<F.windowBits?F.windowBits=-F.windowBits:F.gzip&&0<F.windowBits&&F.windowBits<16&&(F.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var $=p.deflateInit2(this.strm,F.level,F.method,F.windowBits,F.memLevel,F.strategy);if($!==0)throw new Error(x[$]);if(F.header&&p.deflateSetHeader(this.strm,F.header),F.dictionary){var z;if(z=typeof F.dictionary=="string"?b.string2buf(F.dictionary):M.call(F.dictionary)==="[object ArrayBuffer]"?new Uint8Array(F.dictionary):F.dictionary,($=p.deflateSetDictionary(this.strm,z))!==0)throw new Error(x[$]);this._dict_set=!0}}function W(R,F){var $=new V(F);if($.push(R,!0),$.err)throw $.msg||x[$.err];return $.result}V.prototype.push=function(R,F){var $,z,D=this.strm,N=this.options.chunkSize;if(this.ended)return!1;z=F===~~F?F:F===!0?4:0,typeof R=="string"?D.input=b.string2buf(R):M.call(R)==="[object ArrayBuffer]"?D.input=new Uint8Array(R):D.input=R,D.next_in=0,D.avail_in=D.input.length;do{if(D.avail_out===0&&(D.output=new v.Buf8(N),D.next_out=0,D.avail_out=N),($=p.deflate(D,z))!==1&&$!==0)return this.onEnd($),!(this.ended=!0);D.avail_out!==0&&(D.avail_in!==0||z!==4&&z!==2)||(this.options.to==="string"?this.onData(b.buf2binstring(v.shrinkBuf(D.output,D.next_out))):this.onData(v.shrinkBuf(D.output,D.next_out)))}while((0<D.avail_in||D.avail_out===0)&&$!==1);return z===4?($=p.deflateEnd(this.strm),this.onEnd($),this.ended=!0,$===0):z!==2||(this.onEnd(0),!(D.avail_out=0))},V.prototype.onData=function(R){this.chunks.push(R)},V.prototype.onEnd=function(R){R===0&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},g.Deflate=V,g.deflate=W,g.deflateRaw=function(R,F){return(F=F||{}).raw=!0,W(R,F)},g.gzip=function(R,F){return(F=F||{}).gzip=!0,W(R,F)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(f,m,g){var p=f("./zlib/inflate"),v=f("./utils/common"),b=f("./utils/strings"),x=f("./zlib/constants"),A=f("./zlib/messages"),M=f("./zlib/zstream"),V=f("./zlib/gzheader"),W=Object.prototype.toString;function R($){if(!(this instanceof R))return new R($);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},$||{});var z=this.options;z.raw&&0<=z.windowBits&&z.windowBits<16&&(z.windowBits=-z.windowBits,z.windowBits===0&&(z.windowBits=-15)),!(0<=z.windowBits&&z.windowBits<16)||$&&$.windowBits||(z.windowBits+=32),15<z.windowBits&&z.windowBits<48&&(15&z.windowBits)==0&&(z.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new M,this.strm.avail_out=0;var D=p.inflateInit2(this.strm,z.windowBits);if(D!==x.Z_OK)throw new Error(A[D]);this.header=new V,p.inflateGetHeader(this.strm,this.header)}function F($,z){var D=new R(z);if(D.push($,!0),D.err)throw D.msg||A[D.err];return D.result}R.prototype.push=function($,z){var D,N,E,C,w,S,_=this.strm,k=this.options.chunkSize,T=this.options.dictionary,j=!1;if(this.ended)return!1;N=z===~~z?z:z===!0?x.Z_FINISH:x.Z_NO_FLUSH,typeof $=="string"?_.input=b.binstring2buf($):W.call($)==="[object ArrayBuffer]"?_.input=new Uint8Array($):_.input=$,_.next_in=0,_.avail_in=_.input.length;do{if(_.avail_out===0&&(_.output=new v.Buf8(k),_.next_out=0,_.avail_out=k),(D=p.inflate(_,x.Z_NO_FLUSH))===x.Z_NEED_DICT&&T&&(S=typeof T=="string"?b.string2buf(T):W.call(T)==="[object ArrayBuffer]"?new Uint8Array(T):T,D=p.inflateSetDictionary(this.strm,S)),D===x.Z_BUF_ERROR&&j===!0&&(D=x.Z_OK,j=!1),D!==x.Z_STREAM_END&&D!==x.Z_OK)return this.onEnd(D),!(this.ended=!0);_.next_out&&(_.avail_out!==0&&D!==x.Z_STREAM_END&&(_.avail_in!==0||N!==x.Z_FINISH&&N!==x.Z_SYNC_FLUSH)||(this.options.to==="string"?(E=b.utf8border(_.output,_.next_out),C=_.next_out-E,w=b.buf2string(_.output,E),_.next_out=C,_.avail_out=k-C,C&&v.arraySet(_.output,_.output,E,C,0),this.onData(w)):this.onData(v.shrinkBuf(_.output,_.next_out)))),_.avail_in===0&&_.avail_out===0&&(j=!0)}while((0<_.avail_in||_.avail_out===0)&&D!==x.Z_STREAM_END);return D===x.Z_STREAM_END&&(N=x.Z_FINISH),N===x.Z_FINISH?(D=p.inflateEnd(this.strm),this.onEnd(D),this.ended=!0,D===x.Z_OK):N!==x.Z_SYNC_FLUSH||(this.onEnd(x.Z_OK),!(_.avail_out=0))},R.prototype.onData=function($){this.chunks.push($)},R.prototype.onEnd=function($){$===x.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=$,this.msg=this.strm.msg},g.Inflate=R,g.inflate=F,g.inflateRaw=function($,z){return(z=z||{}).raw=!0,F($,z)},g.ungzip=F},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(f,m,g){var p=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";g.assign=function(x){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var M=A.shift();if(M){if(typeof M!="object")throw new TypeError(M+"must be non-object");for(var V in M)M.hasOwnProperty(V)&&(x[V]=M[V])}}return x},g.shrinkBuf=function(x,A){return x.length===A?x:x.subarray?x.subarray(0,A):(x.length=A,x)};var v={arraySet:function(x,A,M,V,W){if(A.subarray&&x.subarray)x.set(A.subarray(M,M+V),W);else for(var R=0;R<V;R++)x[W+R]=A[M+R]},flattenChunks:function(x){var A,M,V,W,R,F;for(A=V=0,M=x.length;A<M;A++)V+=x[A].length;for(F=new Uint8Array(V),A=W=0,M=x.length;A<M;A++)R=x[A],F.set(R,W),W+=R.length;return F}},b={arraySet:function(x,A,M,V,W){for(var R=0;R<V;R++)x[W+R]=A[M+R]},flattenChunks:function(x){return[].concat.apply([],x)}};g.setTyped=function(x){x?(g.Buf8=Uint8Array,g.Buf16=Uint16Array,g.Buf32=Int32Array,g.assign(g,v)):(g.Buf8=Array,g.Buf16=Array,g.Buf32=Array,g.assign(g,b))},g.setTyped(p)},{}],42:[function(f,m,g){var p=f("./common"),v=!0,b=!0;try{String.fromCharCode.apply(null,[0])}catch{v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{b=!1}for(var x=new p.Buf8(256),A=0;A<256;A++)x[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;function M(V,W){if(W<65537&&(V.subarray&&b||!V.subarray&&v))return String.fromCharCode.apply(null,p.shrinkBuf(V,W));for(var R="",F=0;F<W;F++)R+=String.fromCharCode(V[F]);return R}x[254]=x[254]=1,g.string2buf=function(V){var W,R,F,$,z,D=V.length,N=0;for($=0;$<D;$++)(64512&(R=V.charCodeAt($)))==55296&&$+1<D&&(64512&(F=V.charCodeAt($+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),$++),N+=R<128?1:R<2048?2:R<65536?3:4;for(W=new p.Buf8(N),$=z=0;z<N;$++)(64512&(R=V.charCodeAt($)))==55296&&$+1<D&&(64512&(F=V.charCodeAt($+1)))==56320&&(R=65536+(R-55296<<10)+(F-56320),$++),R<128?W[z++]=R:(R<2048?W[z++]=192|R>>>6:(R<65536?W[z++]=224|R>>>12:(W[z++]=240|R>>>18,W[z++]=128|R>>>12&63),W[z++]=128|R>>>6&63),W[z++]=128|63&R);return W},g.buf2binstring=function(V){return M(V,V.length)},g.binstring2buf=function(V){for(var W=new p.Buf8(V.length),R=0,F=W.length;R<F;R++)W[R]=V.charCodeAt(R);return W},g.buf2string=function(V,W){var R,F,$,z,D=W||V.length,N=new Array(2*D);for(R=F=0;R<D;)if(($=V[R++])<128)N[F++]=$;else if(4<(z=x[$]))N[F++]=65533,R+=z-1;else{for($&=z===2?31:z===3?15:7;1<z&&R<D;)$=$<<6|63&V[R++],z--;1<z?N[F++]=65533:$<65536?N[F++]=$:($-=65536,N[F++]=55296|$>>10&1023,N[F++]=56320|1023&$)}return M(N,F)},g.utf8border=function(V,W){var R;for((W=W||V.length)>V.length&&(W=V.length),R=W-1;0<=R&&(192&V[R])==128;)R--;return R<0||R===0?W:R+x[V[R]]>W?R:W}},{"./common":41}],43:[function(f,m,g){m.exports=function(p,v,b,x){for(var A=65535&p|0,M=p>>>16&65535|0,V=0;b!==0;){for(b-=V=2e3<b?2e3:b;M=M+(A=A+v[x++]|0)|0,--V;);A%=65521,M%=65521}return A|M<<16|0}},{}],44:[function(f,m,g){m.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(f,m,g){var p=(function(){for(var v,b=[],x=0;x<256;x++){v=x;for(var A=0;A<8;A++)v=1&v?3988292384^v>>>1:v>>>1;b[x]=v}return b})();m.exports=function(v,b,x,A){var M=p,V=A+x;v^=-1;for(var W=A;W<V;W++)v=v>>>8^M[255&(v^b[W])];return-1^v}},{}],46:[function(f,m,g){var p,v=f("../utils/common"),b=f("./trees"),x=f("./adler32"),A=f("./crc32"),M=f("./messages"),V=-2,W=258,R=262,F=113;function $(B,X){return B.msg=M[X],X}function z(B){return(B<<1)-(4<B?9:0)}function D(B){for(var X=B.length;0<=--X;)B[X]=0}function N(B){var X=B.state,L=X.pending;L>B.avail_out&&(L=B.avail_out),L!==0&&(v.arraySet(B.output,X.pending_buf,X.pending_out,L,B.next_out),B.next_out+=L,X.pending_out+=L,B.total_out+=L,B.avail_out-=L,X.pending-=L,X.pending===0&&(X.pending_out=0))}function E(B,X){b._tr_flush_block(B,0<=B.block_start?B.block_start:-1,B.strstart-B.block_start,X),B.block_start=B.strstart,N(B.strm)}function C(B,X){B.pending_buf[B.pending++]=X}function w(B,X){B.pending_buf[B.pending++]=X>>>8&255,B.pending_buf[B.pending++]=255&X}function S(B,X){var L,I,G=B.max_chain_length,ee=B.strstart,se=B.prev_length,te=B.nice_match,re=B.strstart>B.w_size-R?B.strstart-(B.w_size-R):0,J=B.window,de=B.w_mask,ne=B.prev,fe=B.strstart+W,ue=J[ee+se-1],ye=J[ee+se];B.prev_length>=B.good_match&&(G>>=2),te>B.lookahead&&(te=B.lookahead);do if(J[(L=X)+se]===ye&&J[L+se-1]===ue&&J[L]===J[ee]&&J[++L]===J[ee+1]){ee+=2,L++;do;while(J[++ee]===J[++L]&&J[++ee]===J[++L]&&J[++ee]===J[++L]&&J[++ee]===J[++L]&&J[++ee]===J[++L]&&J[++ee]===J[++L]&&J[++ee]===J[++L]&&J[++ee]===J[++L]&&ee<fe);if(I=W-(fe-ee),ee=fe-W,se<I){if(B.match_start=X,te<=(se=I))break;ue=J[ee+se-1],ye=J[ee+se]}}while((X=ne[X&de])>re&&--G!=0);return se<=B.lookahead?se:B.lookahead}function _(B){var X,L,I,G,ee,se,te,re,J,de,ne=B.w_size;do{if(G=B.window_size-B.lookahead-B.strstart,B.strstart>=ne+(ne-R)){for(v.arraySet(B.window,B.window,ne,ne,0),B.match_start-=ne,B.strstart-=ne,B.block_start-=ne,X=L=B.hash_size;I=B.head[--X],B.head[X]=ne<=I?I-ne:0,--L;);for(X=L=ne;I=B.prev[--X],B.prev[X]=ne<=I?I-ne:0,--L;);G+=ne}if(B.strm.avail_in===0)break;if(se=B.strm,te=B.window,re=B.strstart+B.lookahead,de=void 0,(J=G)<(de=se.avail_in)&&(de=J),L=de===0?0:(se.avail_in-=de,v.arraySet(te,se.input,se.next_in,de,re),se.state.wrap===1?se.adler=x(se.adler,te,de,re):se.state.wrap===2&&(se.adler=A(se.adler,te,de,re)),se.next_in+=de,se.total_in+=de,de),B.lookahead+=L,B.lookahead+B.insert>=3)for(ee=B.strstart-B.insert,B.ins_h=B.window[ee],B.ins_h=(B.ins_h<<B.hash_shift^B.window[ee+1])&B.hash_mask;B.insert&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[ee+3-1])&B.hash_mask,B.prev[ee&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=ee,ee++,B.insert--,!(B.lookahead+B.insert<3)););}while(B.lookahead<R&&B.strm.avail_in!==0)}function k(B,X){for(var L,I;;){if(B.lookahead<R){if(_(B),B.lookahead<R&&X===0)return 1;if(B.lookahead===0)break}if(L=0,B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,L=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),L!==0&&B.strstart-L<=B.w_size-R&&(B.match_length=S(B,L)),B.match_length>=3)if(I=b._tr_tally(B,B.strstart-B.match_start,B.match_length-3),B.lookahead-=B.match_length,B.match_length<=B.max_lazy_match&&B.lookahead>=3){for(B.match_length--;B.strstart++,B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,L=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart,--B.match_length!=0;);B.strstart++}else B.strstart+=B.match_length,B.match_length=0,B.ins_h=B.window[B.strstart],B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+1])&B.hash_mask;else I=b._tr_tally(B,0,B.window[B.strstart]),B.lookahead--,B.strstart++;if(I&&(E(B,!1),B.strm.avail_out===0))return 1}return B.insert=B.strstart<2?B.strstart:2,X===4?(E(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(E(B,!1),B.strm.avail_out===0)?1:2}function T(B,X){for(var L,I,G;;){if(B.lookahead<R){if(_(B),B.lookahead<R&&X===0)return 1;if(B.lookahead===0)break}if(L=0,B.lookahead>=3&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,L=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),B.prev_length=B.match_length,B.prev_match=B.match_start,B.match_length=2,L!==0&&B.prev_length<B.max_lazy_match&&B.strstart-L<=B.w_size-R&&(B.match_length=S(B,L),B.match_length<=5&&(B.strategy===1||B.match_length===3&&4096<B.strstart-B.match_start)&&(B.match_length=2)),B.prev_length>=3&&B.match_length<=B.prev_length){for(G=B.strstart+B.lookahead-3,I=b._tr_tally(B,B.strstart-1-B.prev_match,B.prev_length-3),B.lookahead-=B.prev_length-1,B.prev_length-=2;++B.strstart<=G&&(B.ins_h=(B.ins_h<<B.hash_shift^B.window[B.strstart+3-1])&B.hash_mask,L=B.prev[B.strstart&B.w_mask]=B.head[B.ins_h],B.head[B.ins_h]=B.strstart),--B.prev_length!=0;);if(B.match_available=0,B.match_length=2,B.strstart++,I&&(E(B,!1),B.strm.avail_out===0))return 1}else if(B.match_available){if((I=b._tr_tally(B,0,B.window[B.strstart-1]))&&E(B,!1),B.strstart++,B.lookahead--,B.strm.avail_out===0)return 1}else B.match_available=1,B.strstart++,B.lookahead--}return B.match_available&&(I=b._tr_tally(B,0,B.window[B.strstart-1]),B.match_available=0),B.insert=B.strstart<2?B.strstart:2,X===4?(E(B,!0),B.strm.avail_out===0?3:4):B.last_lit&&(E(B,!1),B.strm.avail_out===0)?1:2}function j(B,X,L,I,G){this.good_length=B,this.max_lazy=X,this.nice_length=L,this.max_chain=I,this.func=G}function P(){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=8,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 v.Buf16(1146),this.dyn_dtree=new v.Buf16(122),this.bl_tree=new v.Buf16(78),D(this.dyn_ltree),D(this.dyn_dtree),D(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(16),this.heap=new v.Buf16(573),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(573),D(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 U(B){var X;return B&&B.state?(B.total_in=B.total_out=0,B.data_type=2,(X=B.state).pending=0,X.pending_out=0,X.wrap<0&&(X.wrap=-X.wrap),X.status=X.wrap?42:F,B.adler=X.wrap===2?0:1,X.last_flush=0,b._tr_init(X),0):$(B,V)}function q(B){var X=U(B);return X===0&&(function(L){L.window_size=2*L.w_size,D(L.head),L.max_lazy_match=p[L.level].max_lazy,L.good_match=p[L.level].good_length,L.nice_match=p[L.level].nice_length,L.max_chain_length=p[L.level].max_chain,L.strstart=0,L.block_start=0,L.lookahead=0,L.insert=0,L.match_length=L.prev_length=2,L.match_available=0,L.ins_h=0})(B.state),X}function Z(B,X,L,I,G,ee){if(!B)return V;var se=1;if(X===-1&&(X=6),I<0?(se=0,I=-I):15<I&&(se=2,I-=16),G<1||9<G||L!==8||I<8||15<I||X<0||9<X||ee<0||4<ee)return $(B,V);I===8&&(I=9);var te=new P;return(B.state=te).strm=B,te.wrap=se,te.gzhead=null,te.w_bits=I,te.w_size=1<<te.w_bits,te.w_mask=te.w_size-1,te.hash_bits=G+7,te.hash_size=1<<te.hash_bits,te.hash_mask=te.hash_size-1,te.hash_shift=~~((te.hash_bits+3-1)/3),te.window=new v.Buf8(2*te.w_size),te.head=new v.Buf16(te.hash_size),te.prev=new v.Buf16(te.w_size),te.lit_bufsize=1<<G+6,te.pending_buf_size=4*te.lit_bufsize,te.pending_buf=new v.Buf8(te.pending_buf_size),te.d_buf=1*te.lit_bufsize,te.l_buf=3*te.lit_bufsize,te.level=X,te.strategy=ee,te.method=L,q(B)}p=[new j(0,0,0,0,(function(B,X){var L=65535;for(L>B.pending_buf_size-5&&(L=B.pending_buf_size-5);;){if(B.lookahead<=1){if(_(B),B.lookahead===0&&X===0)return 1;if(B.lookahead===0)break}B.strstart+=B.lookahead,B.lookahead=0;var I=B.block_start+L;if((B.strstart===0||B.strstart>=I)&&(B.lookahead=B.strstart-I,B.strstart=I,E(B,!1),B.strm.avail_out===0)||B.strstart-B.block_start>=B.w_size-R&&(E(B,!1),B.strm.avail_out===0))return 1}return B.insert=0,X===4?(E(B,!0),B.strm.avail_out===0?3:4):(B.strstart>B.block_start&&(E(B,!1),B.strm.avail_out),1)})),new j(4,4,8,4,k),new j(4,5,16,8,k),new j(4,6,32,32,k),new j(4,4,16,16,T),new j(8,16,32,32,T),new j(8,16,128,128,T),new j(8,32,128,256,T),new j(32,128,258,1024,T),new j(32,258,258,4096,T)],g.deflateInit=function(B,X){return Z(B,X,8,15,8,0)},g.deflateInit2=Z,g.deflateReset=q,g.deflateResetKeep=U,g.deflateSetHeader=function(B,X){return B&&B.state?B.state.wrap!==2?V:(B.state.gzhead=X,0):V},g.deflate=function(B,X){var L,I,G,ee;if(!B||!B.state||5<X||X<0)return B?$(B,V):V;if(I=B.state,!B.output||!B.input&&B.avail_in!==0||I.status===666&&X!==4)return $(B,B.avail_out===0?-5:V);if(I.strm=B,L=I.last_flush,I.last_flush=X,I.status===42)if(I.wrap===2)B.adler=0,C(I,31),C(I,139),C(I,8),I.gzhead?(C(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),C(I,255&I.gzhead.time),C(I,I.gzhead.time>>8&255),C(I,I.gzhead.time>>16&255),C(I,I.gzhead.time>>24&255),C(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),C(I,255&I.gzhead.os),I.gzhead.extra&&I.gzhead.extra.length&&(C(I,255&I.gzhead.extra.length),C(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(B.adler=A(B.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(C(I,0),C(I,0),C(I,0),C(I,0),C(I,0),C(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),C(I,3),I.status=F);else{var se=8+(I.w_bits-8<<4)<<8;se|=(2<=I.strategy||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6,I.strstart!==0&&(se|=32),se+=31-se%31,I.status=F,w(I,se),I.strstart!==0&&(w(I,B.adler>>>16),w(I,65535&B.adler)),B.adler=1}if(I.status===69)if(I.gzhead.extra){for(G=I.pending;I.gzindex<(65535&I.gzhead.extra.length)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>G&&(B.adler=A(B.adler,I.pending_buf,I.pending-G,G)),N(B),G=I.pending,I.pending!==I.pending_buf_size));)C(I,255&I.gzhead.extra[I.gzindex]),I.gzindex++;I.gzhead.hcrc&&I.pending>G&&(B.adler=A(B.adler,I.pending_buf,I.pending-G,G)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){G=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>G&&(B.adler=A(B.adler,I.pending_buf,I.pending-G,G)),N(B),G=I.pending,I.pending===I.pending_buf_size)){ee=1;break}ee=I.gzindex<I.gzhead.name.length?255&I.gzhead.name.charCodeAt(I.gzindex++):0,C(I,ee)}while(ee!==0);I.gzhead.hcrc&&I.pending>G&&(B.adler=A(B.adler,I.pending_buf,I.pending-G,G)),ee===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===91)if(I.gzhead.comment){G=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>G&&(B.adler=A(B.adler,I.pending_buf,I.pending-G,G)),N(B),G=I.pending,I.pending===I.pending_buf_size)){ee=1;break}ee=I.gzindex<I.gzhead.comment.length?255&I.gzhead.comment.charCodeAt(I.gzindex++):0,C(I,ee)}while(ee!==0);I.gzhead.hcrc&&I.pending>G&&(B.adler=A(B.adler,I.pending_buf,I.pending-G,G)),ee===0&&(I.status=103)}else I.status=103;if(I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&N(B),I.pending+2<=I.pending_buf_size&&(C(I,255&B.adler),C(I,B.adler>>8&255),B.adler=0,I.status=F)):I.status=F),I.pending!==0){if(N(B),B.avail_out===0)return I.last_flush=-1,0}else if(B.avail_in===0&&z(X)<=z(L)&&X!==4)return $(B,-5);if(I.status===666&&B.avail_in!==0)return $(B,-5);if(B.avail_in!==0||I.lookahead!==0||X!==0&&I.status!==666){var te=I.strategy===2?(function(re,J){for(var de;;){if(re.lookahead===0&&(_(re),re.lookahead===0)){if(J===0)return 1;break}if(re.match_length=0,de=b._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++,de&&(E(re,!1),re.strm.avail_out===0))return 1}return re.insert=0,J===4?(E(re,!0),re.strm.avail_out===0?3:4):re.last_lit&&(E(re,!1),re.strm.avail_out===0)?1:2})(I,X):I.strategy===3?(function(re,J){for(var de,ne,fe,ue,ye=re.window;;){if(re.lookahead<=W){if(_(re),re.lookahead<=W&&J===0)return 1;if(re.lookahead===0)break}if(re.match_length=0,re.lookahead>=3&&0<re.strstart&&(ne=ye[fe=re.strstart-1])===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]){ue=re.strstart+W;do;while(ne===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]&&ne===ye[++fe]&&fe<ue);re.match_length=W-(ue-fe),re.match_length>re.lookahead&&(re.match_length=re.lookahead)}if(re.match_length>=3?(de=b._tr_tally(re,1,re.match_length-3),re.lookahead-=re.match_length,re.strstart+=re.match_length,re.match_length=0):(de=b._tr_tally(re,0,re.window[re.strstart]),re.lookahead--,re.strstart++),de&&(E(re,!1),re.strm.avail_out===0))return 1}return re.insert=0,J===4?(E(re,!0),re.strm.avail_out===0?3:4):re.last_lit&&(E(re,!1),re.strm.avail_out===0)?1:2})(I,X):p[I.level].func(I,X);if(te!==3&&te!==4||(I.status=666),te===1||te===3)return B.avail_out===0&&(I.last_flush=-1),0;if(te===2&&(X===1?b._tr_align(I):X!==5&&(b._tr_stored_block(I,0,0,!1),X===3&&(D(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),N(B),B.avail_out===0))return I.last_flush=-1,0}return X!==4?0:I.wrap<=0?1:(I.wrap===2?(C(I,255&B.adler),C(I,B.adler>>8&255),C(I,B.adler>>16&255),C(I,B.adler>>24&255),C(I,255&B.total_in),C(I,B.total_in>>8&255),C(I,B.total_in>>16&255),C(I,B.total_in>>24&255)):(w(I,B.adler>>>16),w(I,65535&B.adler)),N(B),0<I.wrap&&(I.wrap=-I.wrap),I.pending!==0?0:1)},g.deflateEnd=function(B){var X;return B&&B.state?(X=B.state.status)!==42&&X!==69&&X!==73&&X!==91&&X!==103&&X!==F&&X!==666?$(B,V):(B.state=null,X===F?$(B,-3):0):V},g.deflateSetDictionary=function(B,X){var L,I,G,ee,se,te,re,J,de=X.length;if(!B||!B.state||(ee=(L=B.state).wrap)===2||ee===1&&L.status!==42||L.lookahead)return V;for(ee===1&&(B.adler=x(B.adler,X,de,0)),L.wrap=0,de>=L.w_size&&(ee===0&&(D(L.head),L.strstart=0,L.block_start=0,L.insert=0),J=new v.Buf8(L.w_size),v.arraySet(J,X,de-L.w_size,L.w_size,0),X=J,de=L.w_size),se=B.avail_in,te=B.next_in,re=B.input,B.avail_in=de,B.next_in=0,B.input=X,_(L);L.lookahead>=3;){for(I=L.strstart,G=L.lookahead-2;L.ins_h=(L.ins_h<<L.hash_shift^L.window[I+3-1])&L.hash_mask,L.prev[I&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=I,I++,--G;);L.strstart=I,L.lookahead=2,_(L)}return L.strstart+=L.lookahead,L.block_start=L.strstart,L.insert=L.lookahead,L.lookahead=0,L.match_length=L.prev_length=2,L.match_available=0,B.next_in=te,B.input=re,B.avail_in=se,L.wrap=ee,0},g.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(f,m,g){m.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(f,m,g){m.exports=function(p,v){var b,x,A,M,V,W,R,F,$,z,D,N,E,C,w,S,_,k,T,j,P,U,q,Z,B;b=p.state,x=p.next_in,Z=p.input,A=x+(p.avail_in-5),M=p.next_out,B=p.output,V=M-(v-p.avail_out),W=M+(p.avail_out-257),R=b.dmax,F=b.wsize,$=b.whave,z=b.wnext,D=b.window,N=b.hold,E=b.bits,C=b.lencode,w=b.distcode,S=(1<<b.lenbits)-1,_=(1<<b.distbits)-1;e:do{E<15&&(N+=Z[x++]<<E,E+=8,N+=Z[x++]<<E,E+=8),k=C[N&S];t:for(;;){if(N>>>=T=k>>>24,E-=T,(T=k>>>16&255)==0)B[M++]=65535&k;else{if(!(16&T)){if((64&T)==0){k=C[(65535&k)+(N&(1<<T)-1)];continue t}if(32&T){b.mode=12;break e}p.msg="invalid literal/length code",b.mode=30;break e}j=65535&k,(T&=15)&&(E<T&&(N+=Z[x++]<<E,E+=8),j+=N&(1<<T)-1,N>>>=T,E-=T),E<15&&(N+=Z[x++]<<E,E+=8,N+=Z[x++]<<E,E+=8),k=w[N&_];r:for(;;){if(N>>>=T=k>>>24,E-=T,!(16&(T=k>>>16&255))){if((64&T)==0){k=w[(65535&k)+(N&(1<<T)-1)];continue r}p.msg="invalid distance code",b.mode=30;break e}if(P=65535&k,E<(T&=15)&&(N+=Z[x++]<<E,(E+=8)<T&&(N+=Z[x++]<<E,E+=8)),R<(P+=N&(1<<T)-1)){p.msg="invalid distance too far back",b.mode=30;break e}if(N>>>=T,E-=T,(T=M-V)<P){if($<(T=P-T)&&b.sane){p.msg="invalid distance too far back",b.mode=30;break e}if(q=D,(U=0)===z){if(U+=F-T,T<j){for(j-=T;B[M++]=D[U++],--T;);U=M-P,q=B}}else if(z<T){if(U+=F+z-T,(T-=z)<j){for(j-=T;B[M++]=D[U++],--T;);if(U=0,z<j){for(j-=T=z;B[M++]=D[U++],--T;);U=M-P,q=B}}}else if(U+=z-T,T<j){for(j-=T;B[M++]=D[U++],--T;);U=M-P,q=B}for(;2<j;)B[M++]=q[U++],B[M++]=q[U++],B[M++]=q[U++],j-=3;j&&(B[M++]=q[U++],1<j&&(B[M++]=q[U++]))}else{for(U=M-P;B[M++]=B[U++],B[M++]=B[U++],B[M++]=B[U++],2<(j-=3););j&&(B[M++]=B[U++],1<j&&(B[M++]=B[U++]))}break}}break}}while(x<A&&M<W);x-=j=E>>3,N&=(1<<(E-=j<<3))-1,p.next_in=x,p.next_out=M,p.avail_in=x<A?A-x+5:5-(x-A),p.avail_out=M<W?W-M+257:257-(M-W),b.hold=N,b.bits=E}},{}],49:[function(f,m,g){var p=f("../utils/common"),v=f("./adler32"),b=f("./crc32"),x=f("./inffast"),A=f("./inftrees"),M=-2;function V(S){return(S>>>24&255)+(S>>>8&65280)+((65280&S)<<8)+((255&S)<<24)}function W(){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 p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function R(S){var _;return S&&S.state?(_=S.state,S.total_in=S.total_out=_.total=0,S.msg="",_.wrap&&(S.adler=1&_.wrap),_.mode=1,_.last=0,_.havedict=0,_.dmax=32768,_.head=null,_.hold=0,_.bits=0,_.lencode=_.lendyn=new p.Buf32(852),_.distcode=_.distdyn=new p.Buf32(592),_.sane=1,_.back=-1,0):M}function F(S){var _;return S&&S.state?((_=S.state).wsize=0,_.whave=0,_.wnext=0,R(S)):M}function $(S,_){var k,T;return S&&S.state?(T=S.state,_<0?(k=0,_=-_):(k=1+(_>>4),_<48&&(_&=15)),_&&(_<8||15<_)?M:(T.window!==null&&T.wbits!==_&&(T.window=null),T.wrap=k,T.wbits=_,F(S))):M}function z(S,_){var k,T;return S?(T=new W,(S.state=T).window=null,(k=$(S,_))!==0&&(S.state=null),k):M}var D,N,E=!0;function C(S){if(E){var _;for(D=new p.Buf32(512),N=new p.Buf32(32),_=0;_<144;)S.lens[_++]=8;for(;_<256;)S.lens[_++]=9;for(;_<280;)S.lens[_++]=7;for(;_<288;)S.lens[_++]=8;for(A(1,S.lens,0,288,D,0,S.work,{bits:9}),_=0;_<32;)S.lens[_++]=5;A(2,S.lens,0,32,N,0,S.work,{bits:5}),E=!1}S.lencode=D,S.lenbits=9,S.distcode=N,S.distbits=5}function w(S,_,k,T){var j,P=S.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new p.Buf8(P.wsize)),T>=P.wsize?(p.arraySet(P.window,_,k-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(T<(j=P.wsize-P.wnext)&&(j=T),p.arraySet(P.window,_,k-T,j,P.wnext),(T-=j)?(p.arraySet(P.window,_,k-T,T,0),P.wnext=T,P.whave=P.wsize):(P.wnext+=j,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=j))),0}g.inflateReset=F,g.inflateReset2=$,g.inflateResetKeep=R,g.inflateInit=function(S){return z(S,15)},g.inflateInit2=z,g.inflate=function(S,_){var k,T,j,P,U,q,Z,B,X,L,I,G,ee,se,te,re,J,de,ne,fe,ue,ye,be,we,Se=0,Pe=new p.Buf8(4),Le=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!S||!S.state||!S.output||!S.input&&S.avail_in!==0)return M;(k=S.state).mode===12&&(k.mode=13),U=S.next_out,j=S.output,Z=S.avail_out,P=S.next_in,T=S.input,q=S.avail_in,B=k.hold,X=k.bits,L=q,I=Z,ye=0;e:for(;;)switch(k.mode){case 1:if(k.wrap===0){k.mode=13;break}for(;X<16;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(2&k.wrap&&B===35615){Pe[k.check=0]=255&B,Pe[1]=B>>>8&255,k.check=b(k.check,Pe,2,0),X=B=0,k.mode=2;break}if(k.flags=0,k.head&&(k.head.done=!1),!(1&k.wrap)||(((255&B)<<8)+(B>>8))%31){S.msg="incorrect header check",k.mode=30;break}if((15&B)!=8){S.msg="unknown compression method",k.mode=30;break}if(X-=4,ue=8+(15&(B>>>=4)),k.wbits===0)k.wbits=ue;else if(ue>k.wbits){S.msg="invalid window size",k.mode=30;break}k.dmax=1<<ue,S.adler=k.check=1,k.mode=512&B?10:12,X=B=0;break;case 2:for(;X<16;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(k.flags=B,(255&k.flags)!=8){S.msg="unknown compression method",k.mode=30;break}if(57344&k.flags){S.msg="unknown header flags set",k.mode=30;break}k.head&&(k.head.text=B>>8&1),512&k.flags&&(Pe[0]=255&B,Pe[1]=B>>>8&255,k.check=b(k.check,Pe,2,0)),X=B=0,k.mode=3;case 3:for(;X<32;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}k.head&&(k.head.time=B),512&k.flags&&(Pe[0]=255&B,Pe[1]=B>>>8&255,Pe[2]=B>>>16&255,Pe[3]=B>>>24&255,k.check=b(k.check,Pe,4,0)),X=B=0,k.mode=4;case 4:for(;X<16;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}k.head&&(k.head.xflags=255&B,k.head.os=B>>8),512&k.flags&&(Pe[0]=255&B,Pe[1]=B>>>8&255,k.check=b(k.check,Pe,2,0)),X=B=0,k.mode=5;case 5:if(1024&k.flags){for(;X<16;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}k.length=B,k.head&&(k.head.extra_len=B),512&k.flags&&(Pe[0]=255&B,Pe[1]=B>>>8&255,k.check=b(k.check,Pe,2,0)),X=B=0}else k.head&&(k.head.extra=null);k.mode=6;case 6:if(1024&k.flags&&(q<(G=k.length)&&(G=q),G&&(k.head&&(ue=k.head.extra_len-k.length,k.head.extra||(k.head.extra=new Array(k.head.extra_len)),p.arraySet(k.head.extra,T,P,G,ue)),512&k.flags&&(k.check=b(k.check,T,G,P)),q-=G,P+=G,k.length-=G),k.length))break e;k.length=0,k.mode=7;case 7:if(2048&k.flags){if(q===0)break e;for(G=0;ue=T[P+G++],k.head&&ue&&k.length<65536&&(k.head.name+=String.fromCharCode(ue)),ue&&G<q;);if(512&k.flags&&(k.check=b(k.check,T,G,P)),q-=G,P+=G,ue)break e}else k.head&&(k.head.name=null);k.length=0,k.mode=8;case 8:if(4096&k.flags){if(q===0)break e;for(G=0;ue=T[P+G++],k.head&&ue&&k.length<65536&&(k.head.comment+=String.fromCharCode(ue)),ue&&G<q;);if(512&k.flags&&(k.check=b(k.check,T,G,P)),q-=G,P+=G,ue)break e}else k.head&&(k.head.comment=null);k.mode=9;case 9:if(512&k.flags){for(;X<16;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(B!==(65535&k.check)){S.msg="header crc mismatch",k.mode=30;break}X=B=0}k.head&&(k.head.hcrc=k.flags>>9&1,k.head.done=!0),S.adler=k.check=0,k.mode=12;break;case 10:for(;X<32;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}S.adler=k.check=V(B),X=B=0,k.mode=11;case 11:if(k.havedict===0)return S.next_out=U,S.avail_out=Z,S.next_in=P,S.avail_in=q,k.hold=B,k.bits=X,2;S.adler=k.check=1,k.mode=12;case 12:if(_===5||_===6)break e;case 13:if(k.last){B>>>=7&X,X-=7&X,k.mode=27;break}for(;X<3;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}switch(k.last=1&B,X-=1,3&(B>>>=1)){case 0:k.mode=14;break;case 1:if(C(k),k.mode=20,_!==6)break;B>>>=2,X-=2;break e;case 2:k.mode=17;break;case 3:S.msg="invalid block type",k.mode=30}B>>>=2,X-=2;break;case 14:for(B>>>=7&X,X-=7&X;X<32;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if((65535&B)!=(B>>>16^65535)){S.msg="invalid stored block lengths",k.mode=30;break}if(k.length=65535&B,X=B=0,k.mode=15,_===6)break e;case 15:k.mode=16;case 16:if(G=k.length){if(q<G&&(G=q),Z<G&&(G=Z),G===0)break e;p.arraySet(j,T,P,G,U),q-=G,P+=G,Z-=G,U+=G,k.length-=G;break}k.mode=12;break;case 17:for(;X<14;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(k.nlen=257+(31&B),B>>>=5,X-=5,k.ndist=1+(31&B),B>>>=5,X-=5,k.ncode=4+(15&B),B>>>=4,X-=4,286<k.nlen||30<k.ndist){S.msg="too many length or distance symbols",k.mode=30;break}k.have=0,k.mode=18;case 18:for(;k.have<k.ncode;){for(;X<3;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}k.lens[Le[k.have++]]=7&B,B>>>=3,X-=3}for(;k.have<19;)k.lens[Le[k.have++]]=0;if(k.lencode=k.lendyn,k.lenbits=7,be={bits:k.lenbits},ye=A(0,k.lens,0,19,k.lencode,0,k.work,be),k.lenbits=be.bits,ye){S.msg="invalid code lengths set",k.mode=30;break}k.have=0,k.mode=19;case 19:for(;k.have<k.nlen+k.ndist;){for(;re=(Se=k.lencode[B&(1<<k.lenbits)-1])>>>16&255,J=65535&Se,!((te=Se>>>24)<=X);){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(J<16)B>>>=te,X-=te,k.lens[k.have++]=J;else{if(J===16){for(we=te+2;X<we;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(B>>>=te,X-=te,k.have===0){S.msg="invalid bit length repeat",k.mode=30;break}ue=k.lens[k.have-1],G=3+(3&B),B>>>=2,X-=2}else if(J===17){for(we=te+3;X<we;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}X-=te,ue=0,G=3+(7&(B>>>=te)),B>>>=3,X-=3}else{for(we=te+7;X<we;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}X-=te,ue=0,G=11+(127&(B>>>=te)),B>>>=7,X-=7}if(k.have+G>k.nlen+k.ndist){S.msg="invalid bit length repeat",k.mode=30;break}for(;G--;)k.lens[k.have++]=ue}}if(k.mode===30)break;if(k.lens[256]===0){S.msg="invalid code -- missing end-of-block",k.mode=30;break}if(k.lenbits=9,be={bits:k.lenbits},ye=A(1,k.lens,0,k.nlen,k.lencode,0,k.work,be),k.lenbits=be.bits,ye){S.msg="invalid literal/lengths set",k.mode=30;break}if(k.distbits=6,k.distcode=k.distdyn,be={bits:k.distbits},ye=A(2,k.lens,k.nlen,k.ndist,k.distcode,0,k.work,be),k.distbits=be.bits,ye){S.msg="invalid distances set",k.mode=30;break}if(k.mode=20,_===6)break e;case 20:k.mode=21;case 21:if(6<=q&&258<=Z){S.next_out=U,S.avail_out=Z,S.next_in=P,S.avail_in=q,k.hold=B,k.bits=X,x(S,I),U=S.next_out,j=S.output,Z=S.avail_out,P=S.next_in,T=S.input,q=S.avail_in,B=k.hold,X=k.bits,k.mode===12&&(k.back=-1);break}for(k.back=0;re=(Se=k.lencode[B&(1<<k.lenbits)-1])>>>16&255,J=65535&Se,!((te=Se>>>24)<=X);){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(re&&(240&re)==0){for(de=te,ne=re,fe=J;re=(Se=k.lencode[fe+((B&(1<<de+ne)-1)>>de)])>>>16&255,J=65535&Se,!(de+(te=Se>>>24)<=X);){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}B>>>=de,X-=de,k.back+=de}if(B>>>=te,X-=te,k.back+=te,k.length=J,re===0){k.mode=26;break}if(32&re){k.back=-1,k.mode=12;break}if(64&re){S.msg="invalid literal/length code",k.mode=30;break}k.extra=15&re,k.mode=22;case 22:if(k.extra){for(we=k.extra;X<we;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}k.length+=B&(1<<k.extra)-1,B>>>=k.extra,X-=k.extra,k.back+=k.extra}k.was=k.length,k.mode=23;case 23:for(;re=(Se=k.distcode[B&(1<<k.distbits)-1])>>>16&255,J=65535&Se,!((te=Se>>>24)<=X);){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if((240&re)==0){for(de=te,ne=re,fe=J;re=(Se=k.distcode[fe+((B&(1<<de+ne)-1)>>de)])>>>16&255,J=65535&Se,!(de+(te=Se>>>24)<=X);){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}B>>>=de,X-=de,k.back+=de}if(B>>>=te,X-=te,k.back+=te,64&re){S.msg="invalid distance code",k.mode=30;break}k.offset=J,k.extra=15&re,k.mode=24;case 24:if(k.extra){for(we=k.extra;X<we;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}k.offset+=B&(1<<k.extra)-1,B>>>=k.extra,X-=k.extra,k.back+=k.extra}if(k.offset>k.dmax){S.msg="invalid distance too far back",k.mode=30;break}k.mode=25;case 25:if(Z===0)break e;if(G=I-Z,k.offset>G){if((G=k.offset-G)>k.whave&&k.sane){S.msg="invalid distance too far back",k.mode=30;break}ee=G>k.wnext?(G-=k.wnext,k.wsize-G):k.wnext-G,G>k.length&&(G=k.length),se=k.window}else se=j,ee=U-k.offset,G=k.length;for(Z<G&&(G=Z),Z-=G,k.length-=G;j[U++]=se[ee++],--G;);k.length===0&&(k.mode=21);break;case 26:if(Z===0)break e;j[U++]=k.length,Z--,k.mode=21;break;case 27:if(k.wrap){for(;X<32;){if(q===0)break e;q--,B|=T[P++]<<X,X+=8}if(I-=Z,S.total_out+=I,k.total+=I,I&&(S.adler=k.check=k.flags?b(k.check,j,I,U-I):v(k.check,j,I,U-I)),I=Z,(k.flags?B:V(B))!==k.check){S.msg="incorrect data check",k.mode=30;break}X=B=0}k.mode=28;case 28:if(k.wrap&&k.flags){for(;X<32;){if(q===0)break e;q--,B+=T[P++]<<X,X+=8}if(B!==(4294967295&k.total)){S.msg="incorrect length check",k.mode=30;break}X=B=0}k.mode=29;case 29:ye=1;break e;case 30:ye=-3;break e;case 31:return-4;default:return M}return S.next_out=U,S.avail_out=Z,S.next_in=P,S.avail_in=q,k.hold=B,k.bits=X,(k.wsize||I!==S.avail_out&&k.mode<30&&(k.mode<27||_!==4))&&w(S,S.output,S.next_out,I-S.avail_out)?(k.mode=31,-4):(L-=S.avail_in,I-=S.avail_out,S.total_in+=L,S.total_out+=I,k.total+=I,k.wrap&&I&&(S.adler=k.check=k.flags?b(k.check,j,I,S.next_out-I):v(k.check,j,I,S.next_out-I)),S.data_type=k.bits+(k.last?64:0)+(k.mode===12?128:0)+(k.mode===20||k.mode===15?256:0),(L==0&&I===0||_===4)&&ye===0&&(ye=-5),ye)},g.inflateEnd=function(S){if(!S||!S.state)return M;var _=S.state;return _.window&&(_.window=null),S.state=null,0},g.inflateGetHeader=function(S,_){var k;return S&&S.state?(2&(k=S.state).wrap)==0?M:((k.head=_).done=!1,0):M},g.inflateSetDictionary=function(S,_){var k,T=_.length;return S&&S.state?(k=S.state).wrap!==0&&k.mode!==11?M:k.mode===11&&v(1,_,T,0)!==k.check?-3:w(S,_,T,T)?(k.mode=31,-4):(k.havedict=1,0):M},g.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(f,m,g){var p=f("../utils/common"),v=[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],b=[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],x=[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],A=[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];m.exports=function(M,V,W,R,F,$,z,D){var N,E,C,w,S,_,k,T,j,P=D.bits,U=0,q=0,Z=0,B=0,X=0,L=0,I=0,G=0,ee=0,se=0,te=null,re=0,J=new p.Buf16(16),de=new p.Buf16(16),ne=null,fe=0;for(U=0;U<=15;U++)J[U]=0;for(q=0;q<R;q++)J[V[W+q]]++;for(X=P,B=15;1<=B&&J[B]===0;B--);if(B<X&&(X=B),B===0)return F[$++]=20971520,F[$++]=20971520,D.bits=1,0;for(Z=1;Z<B&&J[Z]===0;Z++);for(X<Z&&(X=Z),U=G=1;U<=15;U++)if(G<<=1,(G-=J[U])<0)return-1;if(0<G&&(M===0||B!==1))return-1;for(de[1]=0,U=1;U<15;U++)de[U+1]=de[U]+J[U];for(q=0;q<R;q++)V[W+q]!==0&&(z[de[V[W+q]]++]=q);if(_=M===0?(te=ne=z,19):M===1?(te=v,re-=257,ne=b,fe-=257,256):(te=x,ne=A,-1),U=Z,S=$,I=q=se=0,C=-1,w=(ee=1<<(L=X))-1,M===1&&852<ee||M===2&&592<ee)return 1;for(;;){for(k=U-I,j=z[q]<_?(T=0,z[q]):z[q]>_?(T=ne[fe+z[q]],te[re+z[q]]):(T=96,0),N=1<<U-I,Z=E=1<<L;F[S+(se>>I)+(E-=N)]=k<<24|T<<16|j|0,E!==0;);for(N=1<<U-1;se&N;)N>>=1;if(N!==0?(se&=N-1,se+=N):se=0,q++,--J[U]==0){if(U===B)break;U=V[W+z[q]]}if(X<U&&(se&w)!==C){for(I===0&&(I=X),S+=Z,G=1<<(L=U-I);L+I<B&&!((G-=J[L+I])<=0);)L++,G<<=1;if(ee+=1<<L,M===1&&852<ee||M===2&&592<ee)return 1;F[C=se&w]=X<<24|L<<16|S-$|0}}return se!==0&&(F[S+se]=U-I<<24|64<<16|0),D.bits=X,0}},{"../utils/common":41}],51:[function(f,m,g){m.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(f,m,g){var p=f("../utils/common");function v(ne){for(var fe=ne.length;0<=--fe;)ne[fe]=0}var b=256,x=286,A=30,M=15,V=[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],W=[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],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],$=new Array(576);v($);var z=new Array(60);v(z);var D=new Array(512);v(D);var N=new Array(256);v(N);var E=new Array(29);v(E);var C,w,S,_=new Array(A);function k(ne,fe,ue,ye,be){this.static_tree=ne,this.extra_bits=fe,this.extra_base=ue,this.elems=ye,this.max_length=be,this.has_stree=ne&&ne.length}function T(ne,fe){this.dyn_tree=ne,this.max_code=0,this.stat_desc=fe}function j(ne){return ne<256?D[ne]:D[256+(ne>>>7)]}function P(ne,fe){ne.pending_buf[ne.pending++]=255&fe,ne.pending_buf[ne.pending++]=fe>>>8&255}function U(ne,fe,ue){ne.bi_valid>16-ue?(ne.bi_buf|=fe<<ne.bi_valid&65535,P(ne,ne.bi_buf),ne.bi_buf=fe>>16-ne.bi_valid,ne.bi_valid+=ue-16):(ne.bi_buf|=fe<<ne.bi_valid&65535,ne.bi_valid+=ue)}function q(ne,fe,ue){U(ne,ue[2*fe],ue[2*fe+1])}function Z(ne,fe){for(var ue=0;ue|=1&ne,ne>>>=1,ue<<=1,0<--fe;);return ue>>>1}function B(ne,fe,ue){var ye,be,we=new Array(16),Se=0;for(ye=1;ye<=M;ye++)we[ye]=Se=Se+ue[ye-1]<<1;for(be=0;be<=fe;be++){var Pe=ne[2*be+1];Pe!==0&&(ne[2*be]=Z(we[Pe]++,Pe))}}function X(ne){var fe;for(fe=0;fe<x;fe++)ne.dyn_ltree[2*fe]=0;for(fe=0;fe<A;fe++)ne.dyn_dtree[2*fe]=0;for(fe=0;fe<19;fe++)ne.bl_tree[2*fe]=0;ne.dyn_ltree[512]=1,ne.opt_len=ne.static_len=0,ne.last_lit=ne.matches=0}function L(ne){8<ne.bi_valid?P(ne,ne.bi_buf):0<ne.bi_valid&&(ne.pending_buf[ne.pending++]=ne.bi_buf),ne.bi_buf=0,ne.bi_valid=0}function I(ne,fe,ue,ye){var be=2*fe,we=2*ue;return ne[be]<ne[we]||ne[be]===ne[we]&&ye[fe]<=ye[ue]}function G(ne,fe,ue){for(var ye=ne.heap[ue],be=ue<<1;be<=ne.heap_len&&(be<ne.heap_len&&I(fe,ne.heap[be+1],ne.heap[be],ne.depth)&&be++,!I(fe,ye,ne.heap[be],ne.depth));)ne.heap[ue]=ne.heap[be],ue=be,be<<=1;ne.heap[ue]=ye}function ee(ne,fe,ue){var ye,be,we,Se,Pe=0;if(ne.last_lit!==0)for(;ye=ne.pending_buf[ne.d_buf+2*Pe]<<8|ne.pending_buf[ne.d_buf+2*Pe+1],be=ne.pending_buf[ne.l_buf+Pe],Pe++,ye===0?q(ne,be,fe):(q(ne,(we=N[be])+b+1,fe),(Se=V[we])!==0&&U(ne,be-=E[we],Se),q(ne,we=j(--ye),ue),(Se=W[we])!==0&&U(ne,ye-=_[we],Se)),Pe<ne.last_lit;);q(ne,256,fe)}function se(ne,fe){var ue,ye,be,we=fe.dyn_tree,Se=fe.stat_desc.static_tree,Pe=fe.stat_desc.has_stree,Le=fe.stat_desc.elems,De=-1;for(ne.heap_len=0,ne.heap_max=573,ue=0;ue<Le;ue++)we[2*ue]!==0?(ne.heap[++ne.heap_len]=De=ue,ne.depth[ue]=0):we[2*ue+1]=0;for(;ne.heap_len<2;)we[2*(be=ne.heap[++ne.heap_len]=De<2?++De:0)]=1,ne.depth[be]=0,ne.opt_len--,Pe&&(ne.static_len-=Se[2*be+1]);for(fe.max_code=De,ue=ne.heap_len>>1;1<=ue;ue--)G(ne,we,ue);for(be=Le;ue=ne.heap[1],ne.heap[1]=ne.heap[ne.heap_len--],G(ne,we,1),ye=ne.heap[1],ne.heap[--ne.heap_max]=ue,ne.heap[--ne.heap_max]=ye,we[2*be]=we[2*ue]+we[2*ye],ne.depth[be]=(ne.depth[ue]>=ne.depth[ye]?ne.depth[ue]:ne.depth[ye])+1,we[2*ue+1]=we[2*ye+1]=be,ne.heap[1]=be++,G(ne,we,1),2<=ne.heap_len;);ne.heap[--ne.heap_max]=ne.heap[1],(function(Ge,Ve){var qe,et,We,dt,Ke,Oe,Xe=Ve.dyn_tree,ut=Ve.max_code,ze=Ve.stat_desc.static_tree,bt=Ve.stat_desc.has_stree,ct=Ve.stat_desc.extra_bits,nt=Ve.stat_desc.extra_base,Mt=Ve.stat_desc.max_length,ht=0;for(dt=0;dt<=M;dt++)Ge.bl_count[dt]=0;for(Xe[2*Ge.heap[Ge.heap_max]+1]=0,qe=Ge.heap_max+1;qe<573;qe++)Mt<(dt=Xe[2*Xe[2*(et=Ge.heap[qe])+1]+1]+1)&&(dt=Mt,ht++),Xe[2*et+1]=dt,ut<et||(Ge.bl_count[dt]++,Ke=0,nt<=et&&(Ke=ct[et-nt]),Oe=Xe[2*et],Ge.opt_len+=Oe*(dt+Ke),bt&&(Ge.static_len+=Oe*(ze[2*et+1]+Ke)));if(ht!==0){do{for(dt=Mt-1;Ge.bl_count[dt]===0;)dt--;Ge.bl_count[dt]--,Ge.bl_count[dt+1]+=2,Ge.bl_count[Mt]--,ht-=2}while(0<ht);for(dt=Mt;dt!==0;dt--)for(et=Ge.bl_count[dt];et!==0;)ut<(We=Ge.heap[--qe])||(Xe[2*We+1]!==dt&&(Ge.opt_len+=(dt-Xe[2*We+1])*Xe[2*We],Xe[2*We+1]=dt),et--)}})(ne,fe),B(we,De,ne.bl_count)}function te(ne,fe,ue){var ye,be,we=-1,Se=fe[1],Pe=0,Le=7,De=4;for(Se===0&&(Le=138,De=3),fe[2*(ue+1)+1]=65535,ye=0;ye<=ue;ye++)be=Se,Se=fe[2*(ye+1)+1],++Pe<Le&&be===Se||(Pe<De?ne.bl_tree[2*be]+=Pe:be!==0?(be!==we&&ne.bl_tree[2*be]++,ne.bl_tree[32]++):Pe<=10?ne.bl_tree[34]++:ne.bl_tree[36]++,we=be,De=(Pe=0)===Se?(Le=138,3):be===Se?(Le=6,3):(Le=7,4))}function re(ne,fe,ue){var ye,be,we=-1,Se=fe[1],Pe=0,Le=7,De=4;for(Se===0&&(Le=138,De=3),ye=0;ye<=ue;ye++)if(be=Se,Se=fe[2*(ye+1)+1],!(++Pe<Le&&be===Se)){if(Pe<De)for(;q(ne,be,ne.bl_tree),--Pe!=0;);else be!==0?(be!==we&&(q(ne,be,ne.bl_tree),Pe--),q(ne,16,ne.bl_tree),U(ne,Pe-3,2)):Pe<=10?(q(ne,17,ne.bl_tree),U(ne,Pe-3,3)):(q(ne,18,ne.bl_tree),U(ne,Pe-11,7));we=be,De=(Pe=0)===Se?(Le=138,3):be===Se?(Le=6,3):(Le=7,4)}}v(_);var J=!1;function de(ne,fe,ue,ye){U(ne,0+(ye?1:0),3),(function(be,we,Se,Pe){L(be),P(be,Se),P(be,~Se),p.arraySet(be.pending_buf,be.window,we,Se,be.pending),be.pending+=Se})(ne,fe,ue)}g._tr_init=function(ne){J||((function(){var fe,ue,ye,be,we,Se=new Array(16);for(be=ye=0;be<28;be++)for(E[be]=ye,fe=0;fe<1<<V[be];fe++)N[ye++]=be;for(N[ye-1]=be,be=we=0;be<16;be++)for(_[be]=we,fe=0;fe<1<<W[be];fe++)D[we++]=be;for(we>>=7;be<A;be++)for(_[be]=we<<7,fe=0;fe<1<<W[be]-7;fe++)D[256+we++]=be;for(ue=0;ue<=M;ue++)Se[ue]=0;for(fe=0;fe<=143;)$[2*fe+1]=8,fe++,Se[8]++;for(;fe<=255;)$[2*fe+1]=9,fe++,Se[9]++;for(;fe<=279;)$[2*fe+1]=7,fe++,Se[7]++;for(;fe<=287;)$[2*fe+1]=8,fe++,Se[8]++;for(B($,287,Se),fe=0;fe<A;fe++)z[2*fe+1]=5,z[2*fe]=Z(fe,5);C=new k($,V,257,x,M),w=new k(z,W,0,A,M),S=new k(new Array(0),R,0,19,7)})(),J=!0),ne.l_desc=new T(ne.dyn_ltree,C),ne.d_desc=new T(ne.dyn_dtree,w),ne.bl_desc=new T(ne.bl_tree,S),ne.bi_buf=0,ne.bi_valid=0,X(ne)},g._tr_stored_block=de,g._tr_flush_block=function(ne,fe,ue,ye){var be,we,Se=0;0<ne.level?(ne.strm.data_type===2&&(ne.strm.data_type=(function(Pe){var Le,De=4093624447;for(Le=0;Le<=31;Le++,De>>>=1)if(1&De&&Pe.dyn_ltree[2*Le]!==0)return 0;if(Pe.dyn_ltree[18]!==0||Pe.dyn_ltree[20]!==0||Pe.dyn_ltree[26]!==0)return 1;for(Le=32;Le<b;Le++)if(Pe.dyn_ltree[2*Le]!==0)return 1;return 0})(ne)),se(ne,ne.l_desc),se(ne,ne.d_desc),Se=(function(Pe){var Le;for(te(Pe,Pe.dyn_ltree,Pe.l_desc.max_code),te(Pe,Pe.dyn_dtree,Pe.d_desc.max_code),se(Pe,Pe.bl_desc),Le=18;3<=Le&&Pe.bl_tree[2*F[Le]+1]===0;Le--);return Pe.opt_len+=3*(Le+1)+5+5+4,Le})(ne),be=ne.opt_len+3+7>>>3,(we=ne.static_len+3+7>>>3)<=be&&(be=we)):be=we=ue+5,ue+4<=be&&fe!==-1?de(ne,fe,ue,ye):ne.strategy===4||we===be?(U(ne,2+(ye?1:0),3),ee(ne,$,z)):(U(ne,4+(ye?1:0),3),(function(Pe,Le,De,Ge){var Ve;for(U(Pe,Le-257,5),U(Pe,De-1,5),U(Pe,Ge-4,4),Ve=0;Ve<Ge;Ve++)U(Pe,Pe.bl_tree[2*F[Ve]+1],3);re(Pe,Pe.dyn_ltree,Le-1),re(Pe,Pe.dyn_dtree,De-1)})(ne,ne.l_desc.max_code+1,ne.d_desc.max_code+1,Se+1),ee(ne,ne.dyn_ltree,ne.dyn_dtree)),X(ne),ye&&L(ne)},g._tr_tally=function(ne,fe,ue){return ne.pending_buf[ne.d_buf+2*ne.last_lit]=fe>>>8&255,ne.pending_buf[ne.d_buf+2*ne.last_lit+1]=255&fe,ne.pending_buf[ne.l_buf+ne.last_lit]=255&ue,ne.last_lit++,fe===0?ne.dyn_ltree[2*ue]++:(ne.matches++,fe--,ne.dyn_ltree[2*(N[ue]+b+1)]++,ne.dyn_dtree[2*j(fe)]++),ne.last_lit===ne.lit_bufsize-1},g._tr_align=function(ne){U(ne,2,3),q(ne,256,$),(function(fe){fe.bi_valid===16?(P(fe,fe.bi_buf),fe.bi_buf=0,fe.bi_valid=0):8<=fe.bi_valid&&(fe.pending_buf[fe.pending++]=255&fe.bi_buf,fe.bi_buf>>=8,fe.bi_valid-=8)})(ne)}},{"../utils/common":41}],53:[function(f,m,g){m.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(f,m,g){(function(p){(function(v,b){if(!v.setImmediate){var x,A,M,V,W=1,R={},F=!1,$=v.document,z=Object.getPrototypeOf&&Object.getPrototypeOf(v);z=z&&z.setTimeout?z:v,x={}.toString.call(v.process)==="[object process]"?function(C){r.nextTick((function(){N(C)}))}:(function(){if(v.postMessage&&!v.importScripts){var C=!0,w=v.onmessage;return v.onmessage=function(){C=!1},v.postMessage("","*"),v.onmessage=w,C}})()?(V="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",E,!1):v.attachEvent("onmessage",E),function(C){v.postMessage(V+C,"*")}):v.MessageChannel?((M=new MessageChannel).port1.onmessage=function(C){N(C.data)},function(C){M.port2.postMessage(C)}):$&&"onreadystatechange"in $.createElement("script")?(A=$.documentElement,function(C){var w=$.createElement("script");w.onreadystatechange=function(){N(C),w.onreadystatechange=null,A.removeChild(w),w=null},A.appendChild(w)}):function(C){setTimeout(N,0,C)},z.setImmediate=function(C){typeof C!="function"&&(C=new Function(""+C));for(var w=new Array(arguments.length-1),S=0;S<w.length;S++)w[S]=arguments[S+1];var _={callback:C,args:w};return R[W]=_,x(W),W++},z.clearImmediate=D}function D(C){delete R[C]}function N(C){if(F)setTimeout(N,0,C);else{var w=R[C];if(w){F=!0;try{(function(S){var _=S.callback,k=S.args;switch(k.length){case 0:_();break;case 1:_(k[0]);break;case 2:_(k[0],k[1]);break;case 3:_(k[0],k[1],k[2]);break;default:_.apply(void 0,k)}})(w)}finally{D(C),F=!1}}}}function E(C){C.source===v&&typeof C.data=="string"&&C.data.indexOf(V)===0&&N(+C.data.slice(V.length))}})(typeof self>"u"?p===void 0?this:p:self)}).call(this,o!==void 0?o:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)}))}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,s,c){(function(r){(function(){var o=/[\\^$.*+?()[\]{}|]/g,l=RegExp(o.source),a=typeof r=="object"&&r&&r.Object===Object&&r,n=typeof self=="object"&&self&&self.Object===Object&&self,u=a||n||Function("return this")(),h=Object.prototype.toString,d=u.Symbol,f=d?d.prototype:void 0,m=f?f.toString:void 0;function g(p){if(typeof p=="string")return p;if((function(b){return typeof b=="symbol"||(function(x){return!!x&&typeof x=="object"})(b)&&h.call(b)=="[object Symbol]"})(p))return m?m.call(p):"";var v=p+"";return v=="0"&&1/p==-1/0?"-0":v}s.exports=function(p){var v;return(p=(v=p)==null?"":g(v))&&l.test(p)?p.replace(o,"\\$&"):p}}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],443:[function(e,s,c){(function(r){(function(){var o="[object Arguments]",l="[object Map]",a="[object Object]",n="[object Set]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,h=/^\w*$/,d=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,m=/\\(\\)?/g,g=/^\[object .+?Constructor\]$/,p=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[o]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v["[object Function]"]=v[l]=v["[object Number]"]=v[a]=v["[object RegExp]"]=v[n]=v["[object String]"]=v["[object WeakMap]"]=!1;var b=typeof r=="object"&&r&&r.Object===Object&&r,x=typeof self=="object"&&self&&self.Object===Object&&self,A=b||x||Function("return this")(),M=typeof c=="object"&&c&&!c.nodeType&&c,V=M&&typeof s=="object"&&s&&!s.nodeType&&s,W=V&&V.exports===M&&b.process,R=(function(){try{return W&&W.binding("util")}catch{}})(),F=R&&R.isTypedArray;function $(me,Ee,$e,Qe){for(var pt=-1,st=me?me.length:0;++pt<st;){var lt=me[pt];Ee(Qe,lt,$e(lt),me)}return Qe}function z(me,Ee){for(var $e=-1,Qe=me?me.length:0;++$e<Qe;)if(Ee(me[$e],$e,me))return!0;return!1}function D(me){var Ee=!1;if(me!=null&&typeof me.toString!="function")try{Ee=!!(me+"")}catch{}return Ee}function N(me){var Ee=-1,$e=Array(me.size);return me.forEach((function(Qe,pt){$e[++Ee]=[pt,Qe]})),$e}function E(me){var Ee=-1,$e=Array(me.size);return me.forEach((function(Qe){$e[++Ee]=Qe})),$e}var C,w,S,_=Array.prototype,k=Function.prototype,T=Object.prototype,j=A["__core-js_shared__"],P=(C=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||""))?"Symbol(src)_1."+C:"",U=k.toString,q=T.hasOwnProperty,Z=T.toString,B=RegExp("^"+U.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=A.Symbol,L=A.Uint8Array,I=T.propertyIsEnumerable,G=_.splice,ee=(w=Object.keys,S=Object,function(me){return w(S(me))}),se=mt(A,"DataView"),te=mt(A,"Map"),re=mt(A,"Promise"),J=mt(A,"Set"),de=mt(A,"WeakMap"),ne=mt(Object,"create"),fe=Ce(se),ue=Ce(te),ye=Ce(re),be=Ce(J),we=Ce(de),Se=X?X.prototype:void 0,Pe=Se?Se.valueOf:void 0,Le=Se?Se.toString:void 0;function De(me){var Ee=-1,$e=me?me.length:0;for(this.clear();++Ee<$e;){var Qe=me[Ee];this.set(Qe[0],Qe[1])}}function Ge(me){var Ee=-1,$e=me?me.length:0;for(this.clear();++Ee<$e;){var Qe=me[Ee];this.set(Qe[0],Qe[1])}}function Ve(me){var Ee=-1,$e=me?me.length:0;for(this.clear();++Ee<$e;){var Qe=me[Ee];this.set(Qe[0],Qe[1])}}function qe(me){var Ee=-1,$e=me?me.length:0;for(this.__data__=new Ve;++Ee<$e;)this.add(me[Ee])}function et(me){this.__data__=new Ge(me)}function We(me,Ee){var $e=yt(me)||At(me)?(function(lt,Jt){for(var zt=-1,Ht=Array(lt);++zt<lt;)Ht[zt]=Jt(zt);return Ht})(me.length,String):[],Qe=$e.length,pt=!!Qe;for(var st in me)!q.call(me,st)||pt&&(st=="length"||ir(st,Qe))||$e.push(st);return $e}function dt(me,Ee){for(var $e=me.length;$e--;)if(ot(me[$e][0],Ee))return $e;return-1}function Ke(me,Ee,$e,Qe){return Xe(me,(function(pt,st,lt){Ee(Qe,pt,$e(pt),lt)})),Qe}De.prototype.clear=function(){this.__data__=ne?ne(null):{}},De.prototype.delete=function(me){return this.has(me)&&delete this.__data__[me]},De.prototype.get=function(me){var Ee=this.__data__;if(ne){var $e=Ee[me];return $e==="__lodash_hash_undefined__"?void 0:$e}return q.call(Ee,me)?Ee[me]:void 0},De.prototype.has=function(me){var Ee=this.__data__;return ne?Ee[me]!==void 0:q.call(Ee,me)},De.prototype.set=function(me,Ee){return this.__data__[me]=ne&&Ee===void 0?"__lodash_hash_undefined__":Ee,this},Ge.prototype.clear=function(){this.__data__=[]},Ge.prototype.delete=function(me){var Ee=this.__data__,$e=dt(Ee,me);return!($e<0)&&($e==Ee.length-1?Ee.pop():G.call(Ee,$e,1),!0)},Ge.prototype.get=function(me){var Ee=this.__data__,$e=dt(Ee,me);return $e<0?void 0:Ee[$e][1]},Ge.prototype.has=function(me){return dt(this.__data__,me)>-1},Ge.prototype.set=function(me,Ee){var $e=this.__data__,Qe=dt($e,me);return Qe<0?$e.push([me,Ee]):$e[Qe][1]=Ee,this},Ve.prototype.clear=function(){this.__data__={hash:new De,map:new(te||Ge),string:new De}},Ve.prototype.delete=function(me){return Qt(this,me).delete(me)},Ve.prototype.get=function(me){return Qt(this,me).get(me)},Ve.prototype.has=function(me){return Qt(this,me).has(me)},Ve.prototype.set=function(me,Ee){return Qt(this,me).set(me,Ee),this},qe.prototype.add=qe.prototype.push=function(me){return this.__data__.set(me,"__lodash_hash_undefined__"),this},qe.prototype.has=function(me){return this.__data__.has(me)},et.prototype.clear=function(){this.__data__=new Ge},et.prototype.delete=function(me){return this.__data__.delete(me)},et.prototype.get=function(me){return this.__data__.get(me)},et.prototype.has=function(me){return this.__data__.has(me)},et.prototype.set=function(me,Ee){var $e=this.__data__;if($e instanceof Ge){var Qe=$e.__data__;if(!te||Qe.length<199)return Qe.push([me,Ee]),this;$e=this.__data__=new Ve(Qe)}return $e.set(me,Ee),this};var Oe,Xe=(Oe=function(me,Ee){return me&&ut(me,Ee,Ar)},function(me,Ee){if(me==null)return me;if(!gt(me))return Oe(me,Ee);for(var $e=me.length,Qe=-1,pt=Object(me);++Qe<$e&&Ee(pt[Qe],Qe,pt)!==!1;);return me}),ut=(function(me){return function(Ee,$e,Qe){for(var pt=-1,st=Object(Ee),lt=Qe(Ee),Jt=lt.length;Jt--;){var zt=lt[++pt];if($e(st[zt],zt,st)===!1)break}return Ee}})();function ze(me,Ee){for(var $e=0,Qe=(Ee=rt(Ee,me)?[Ee]:it(Ee)).length;me!=null&&$e<Qe;)me=me[xe(Ee[$e++])];return $e&&$e==Qe?me:void 0}function bt(me,Ee){return me!=null&&Ee in Object(me)}function ct(me,Ee,$e,Qe,pt){return me===Ee||(me==null||Ee==null||!Dt(me)&&!mr(Ee)?me!=me&&Ee!=Ee:(function(st,lt,Jt,zt,Ht,Lt){var er=yt(st),lr=yt(lt),gr="[object Array]",Gt="[object Array]";er||(gr=(gr=qt(st))==o?a:gr),lr||(Gt=(Gt=qt(lt))==o?a:Gt);var Fr=gr==a&&!D(st),Nr=Gt==a&&!D(lt),fn=gr==Gt;if(fn&&!Fr)return Lt||(Lt=new et),er||Cr(st)?Pt(st,lt,Jt,zt,Ht,Lt):(function(Vt,sr,li,bi,ba,Lr,zn){switch(li){case"[object DataView]":if(Vt.byteLength!=sr.byteLength||Vt.byteOffset!=sr.byteOffset)return!1;Vt=Vt.buffer,sr=sr.buffer;case"[object ArrayBuffer]":return!(Vt.byteLength!=sr.byteLength||!bi(new L(Vt),new L(sr)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ot(+Vt,+sr);case"[object Error]":return Vt.name==sr.name&&Vt.message==sr.message;case"[object RegExp]":case"[object String]":return Vt==sr+"";case l:var Mn=N;case n:var ui=2&Lr;if(Mn||(Mn=E),Vt.size!=sr.size&&!ui)return!1;var Mi=zn.get(Vt);if(Mi)return Mi==sr;Lr|=1,zn.set(Vt,sr);var Ii=Pt(Mn(Vt),Mn(sr),bi,ba,Lr,zn);return zn.delete(Vt),Ii;case"[object Symbol]":if(Pe)return Pe.call(Vt)==Pe.call(sr)}return!1})(st,lt,gr,Jt,zt,Ht,Lt);if(!(2&Ht)){var Wn=Fr&&q.call(st,"__wrapped__"),Qr=Nr&&q.call(lt,"__wrapped__");if(Wn||Qr){var Gn=Wn?st.value():st,bn=Qr?lt.value():lt;return Lt||(Lt=new et),Jt(Gn,bn,zt,Ht,Lt)}}return fn?(Lt||(Lt=new et),(function(Vt,sr,li,bi,ba,Lr){var zn=2&ba,Mn=Ar(Vt),ui=Mn.length,Mi=Ar(sr).length;if(ui!=Mi&&!zn)return!1;for(var Ii=ui;Ii--;){var ci=Mn[Ii];if(!(zn?ci in sr:q.call(sr,ci)))return!1}var Ls=Lr.get(Vt);if(Ls&&Lr.get(sr))return Ls==sr;var Xn=!0;Lr.set(Vt,sr),Lr.set(sr,Vt);for(var ya=zn;++Ii<ui;){ci=Mn[Ii];var Kn=Vt[ci],wa=sr[ci];if(bi)var Ri=zn?bi(wa,Kn,ci,sr,Vt,Lr):bi(Kn,wa,ci,Vt,sr,Lr);if(!(Ri===void 0?Kn===wa||li(Kn,wa,bi,ba,Lr):Ri)){Xn=!1;break}ya||(ya=ci=="constructor")}if(Xn&&!ya){var Bt=Vt.constructor,xa=sr.constructor;Bt==xa||!("constructor"in Vt)||!("constructor"in sr)||typeof Bt=="function"&&Bt instanceof Bt&&typeof xa=="function"&&xa instanceof xa||(Xn=!1)}return Lr.delete(Vt),Lr.delete(sr),Xn})(st,lt,Jt,zt,Ht,Lt)):!1})(me,Ee,ct,$e,Qe,pt))}function nt(me){return!(!Dt(me)||(function(Ee){return!!P&&P in Ee})(me))&&(Rt(me)||D(me)?B:g).test(Ce(me))}function Mt(me){return typeof me=="function"?me:me==null?Hr:typeof me=="object"?yt(me)?(function(Qe,pt){return rt(Qe)&&Zt(pt)?ar(xe(Qe),pt):function(st){var lt=(function(Jt,zt,Ht){var Lt=Jt==null?void 0:ze(Jt,zt);return Lt===void 0?Ht:Lt})(st,Qe);return lt===void 0&&lt===pt?(function(Jt,zt){return Jt!=null&&(function(Ht,Lt,er){Lt=rt(Lt,Ht)?[Lt]:it(Lt);for(var lr,gr=-1,Gt=Lt.length;++gr<Gt;){var Fr=xe(Lt[gr]);if(!(lr=Ht!=null&&er(Ht,Fr)))break;Ht=Ht[Fr]}return lr||!!(Gt=Ht?Ht.length:0)&&Nt(Gt)&&ir(Fr,Gt)&&(yt(Ht)||At(Ht))})(Jt,zt,bt)})(st,Qe):ct(pt,lt,void 0,3)}})(me[0],me[1]):(function(Qe){var pt=(function(st){for(var lt=Ar(st),Jt=lt.length;Jt--;){var zt=lt[Jt],Ht=st[zt];lt[Jt]=[zt,Ht,Zt(Ht)]}return lt})(Qe);return pt.length==1&&pt[0][2]?ar(pt[0][0],pt[0][1]):function(st){return st===Qe||(function(lt,Jt,zt,Ht){var Lt=zt.length,er=Lt;if(lt==null)return!er;for(lt=Object(lt);Lt--;){var lr=zt[Lt];if(lr[2]?lr[1]!==lt[lr[0]]:!(lr[0]in lt))return!1}for(;++Lt<er;){var gr=(lr=zt[Lt])[0],Gt=lt[gr],Fr=lr[1];if(lr[2]){if(Gt===void 0&&!(gr in lt))return!1}else{var Nr=new et,fn;if(!(fn===void 0?ct(Fr,Gt,Ht,3,Nr):fn))return!1}}return!0})(st,Qe,pt)}})(me):rt(Ee=me)?($e=xe(Ee),function(Qe){return Qe?.[$e]}):(function(Qe){return function(pt){return ze(pt,Qe)}})(Ee);var Ee,$e}function ht(me){if($e=(Ee=me)&&Ee.constructor,Qe=typeof $e=="function"&&$e.prototype||T,Ee!==Qe)return ee(me);var Ee,$e,Qe,pt=[];for(var st in Object(me))q.call(me,st)&&st!="constructor"&&pt.push(st);return pt}function it(me){return yt(me)?me:It(me)}function Pt(me,Ee,$e,Qe,pt,st){var lt=2&pt,Jt=me.length,zt=Ee.length;if(Jt!=zt&&!(lt&&zt>Jt))return!1;var Ht=st.get(me);if(Ht&&st.get(Ee))return Ht==Ee;var Lt=-1,er=!0,lr=1&pt?new qe:void 0;for(st.set(me,Ee),st.set(Ee,me);++Lt<Jt;){var gr=me[Lt],Gt=Ee[Lt];if(Qe)var Fr=lt?Qe(Gt,gr,Lt,Ee,me,st):Qe(gr,Gt,Lt,me,Ee,st);if(Fr!==void 0){if(Fr)continue;er=!1;break}if(lr){if(!z(Ee,(function(Nr,fn){if(!lr.has(fn)&&(gr===Nr||$e(gr,Nr,Qe,pt,st)))return lr.add(fn)}))){er=!1;break}}else if(gr!==Gt&&!$e(gr,Gt,Qe,pt,st)){er=!1;break}}return st.delete(me),st.delete(Ee),er}function Qt(me,Ee){var $e,Qe,pt=me.__data__;return((Qe=typeof($e=Ee))=="string"||Qe=="number"||Qe=="symbol"||Qe=="boolean"?$e!=="__proto__":$e===null)?pt[typeof Ee=="string"?"string":"hash"]:pt.map}function mt(me,Ee){var $e=(function(Qe,pt){return Qe?.[pt]})(me,Ee);return nt($e)?$e:void 0}var qt=function(me){return Z.call(me)};function ir(me,Ee){return!!(Ee=Ee??9007199254740991)&&(typeof me=="number"||p.test(me))&&me>-1&&me%1==0&&me<Ee}function rt(me,Ee){if(yt(me))return!1;var $e=typeof me;return!($e!="number"&&$e!="symbol"&&$e!="boolean"&&me!=null&&!fr(me))||h.test(me)||!u.test(me)||Ee!=null&&me in Object(Ee)}function Zt(me){return me==me&&!Dt(me)}function ar(me,Ee){return function($e){return $e!=null&&$e[me]===Ee&&(Ee!==void 0||me in Object($e))}}(se&&qt(new se(new ArrayBuffer(1)))!="[object DataView]"||te&&qt(new te)!=l||re&&qt(re.resolve())!="[object Promise]"||J&&qt(new J)!=n||de&&qt(new de)!="[object WeakMap]")&&(qt=function(me){var Ee=Z.call(me),$e=Ee==a?me.constructor:void 0,Qe=$e?Ce($e):void 0;if(Qe)switch(Qe){case fe:return"[object DataView]";case ue:return l;case ye:return"[object Promise]";case be:return n;case we:return"[object WeakMap]"}return Ee});var It=Ct((function(me){var Ee;me=(Ee=me)==null?"":(function(Qe){if(typeof Qe=="string")return Qe;if(fr(Qe))return Le?Le.call(Qe):"";var pt=Qe+"";return pt=="0"&&1/Qe==-1/0?"-0":pt})(Ee);var $e=[];return d.test(me)&&$e.push(""),me.replace(f,(function(Qe,pt,st,lt){$e.push(st?lt.replace(m,"$1"):pt||Qe)})),$e}));function xe(me){if(typeof me=="string"||fr(me))return me;var Ee=me+"";return Ee=="0"&&1/me==-1/0?"-0":Ee}function Ce(me){if(me!=null){try{return U.call(me)}catch{}try{return me+""}catch{}}return""}var Re,tt=(Re=function(me,Ee,$e){q.call(me,$e)?me[$e].push(Ee):me[$e]=[Ee]},function(me,Ee){var $e=yt(me)?$:Ke,Qe={};return $e(me,Re,Mt(Ee),Qe)});function Ct(me,Ee){if(typeof me!="function"||Ee&&typeof Ee!="function")throw new TypeError("Expected a function");var $e=function(){var Qe=arguments,pt=Ee?Ee.apply(this,Qe):Qe[0],st=$e.cache;if(st.has(pt))return st.get(pt);var lt=me.apply(this,Qe);return $e.cache=st.set(pt,lt),lt};return $e.cache=new(Ct.Cache||Ve),$e}function ot(me,Ee){return me===Ee||me!=me&&Ee!=Ee}function At(me){return(function(Ee){return mr(Ee)&&gt(Ee)})(me)&&q.call(me,"callee")&&(!I.call(me,"callee")||Z.call(me)==o)}Ct.Cache=Ve;var yt=Array.isArray;function gt(me){return me!=null&&Nt(me.length)&&!Rt(me)}function Rt(me){var Ee=Dt(me)?Z.call(me):"";return Ee=="[object Function]"||Ee=="[object GeneratorFunction]"}function Nt(me){return typeof me=="number"&&me>-1&&me%1==0&&me<=9007199254740991}function Dt(me){var Ee=typeof me;return!!me&&(Ee=="object"||Ee=="function")}function mr(me){return!!me&&typeof me=="object"}function fr(me){return typeof me=="symbol"||mr(me)&&Z.call(me)=="[object Symbol]"}var Cr=F?(function(me){return function(Ee){return me(Ee)}})(F):function(me){return mr(me)&&Nt(me.length)&&!!v[Z.call(me)]};function Ar(me){return gt(me)?We(me):ht(me)}function Hr(me){return me}s.exports=tt}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],444:[function(e,s,c){var r=Object.prototype.toString;s.exports=function(o){return o===!0||o===!1||(function(l){return!!l&&typeof l=="object"})(o)&&r.call(o)=="[object Boolean]"}},{}],445:[function(e,s,c){(function(r){(function(){var o="[object Arguments]",l="[object Map]",a="[object Object]",n="[object Set]",u=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d[o]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d[l]=d["[object Number]"]=d[a]=d["[object RegExp]"]=d[n]=d["[object String]"]=d["[object WeakMap]"]=!1;var f=typeof r=="object"&&r&&r.Object===Object&&r,m=typeof self=="object"&&self&&self.Object===Object&&self,g=f||m||Function("return this")(),p=typeof c=="object"&&c&&!c.nodeType&&c,v=p&&typeof s=="object"&&s&&!s.nodeType&&s,b=v&&v.exports===p,x=b&&f.process,A=(function(){try{return x&&x.binding&&x.binding("util")}catch{}})(),M=A&&A.isTypedArray;function V(xe,Ce){for(var Re=-1,tt=xe==null?0:xe.length;++Re<tt;)if(Ce(xe[Re],Re,xe))return!0;return!1}function W(xe){var Ce=-1,Re=Array(xe.size);return xe.forEach((function(tt,Ct){Re[++Ce]=[Ct,tt]})),Re}function R(xe){var Ce=-1,Re=Array(xe.size);return xe.forEach((function(tt){Re[++Ce]=tt})),Re}var F,$,z,D=Array.prototype,N=Function.prototype,E=Object.prototype,C=g["__core-js_shared__"],w=N.toString,S=E.hasOwnProperty,_=(F=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||""))?"Symbol(src)_1."+F:"",k=E.toString,T=RegExp("^"+w.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=b?g.Buffer:void 0,P=g.Symbol,U=g.Uint8Array,q=E.propertyIsEnumerable,Z=D.splice,B=P?P.toStringTag:void 0,X=Object.getOwnPropertySymbols,L=j?j.isBuffer:void 0,I=($=Object.keys,z=Object,function(xe){return $(z(xe))}),G=bt(g,"DataView"),ee=bt(g,"Map"),se=bt(g,"Promise"),te=bt(g,"Set"),re=bt(g,"WeakMap"),J=bt(Object,"create"),de=ht(G),ne=ht(ee),fe=ht(se),ue=ht(te),ye=ht(re),be=P?P.prototype:void 0,we=be?be.valueOf:void 0;function Se(xe){var Ce=-1,Re=xe==null?0:xe.length;for(this.clear();++Ce<Re;){var tt=xe[Ce];this.set(tt[0],tt[1])}}function Pe(xe){var Ce=-1,Re=xe==null?0:xe.length;for(this.clear();++Ce<Re;){var tt=xe[Ce];this.set(tt[0],tt[1])}}function Le(xe){var Ce=-1,Re=xe==null?0:xe.length;for(this.clear();++Ce<Re;){var tt=xe[Ce];this.set(tt[0],tt[1])}}function De(xe){var Ce=-1,Re=xe==null?0:xe.length;for(this.__data__=new Le;++Ce<Re;)this.add(xe[Ce])}function Ge(xe){var Ce=this.__data__=new Pe(xe);this.size=Ce.size}function Ve(xe,Ce){var Re=Qt(xe),tt=!Re&&Pt(xe),Ct=!Re&&!tt&&mt(xe),ot=!Re&&!tt&&!Ct&&ar(xe),At=Re||tt||Ct||ot,yt=At?(function(Nt,Dt){for(var mr=-1,fr=Array(Nt);++mr<Nt;)fr[mr]=Dt(mr);return fr})(xe.length,String):[],gt=yt.length;for(var Rt in xe)!S.call(xe,Rt)||At&&(Rt=="length"||Ct&&(Rt=="offset"||Rt=="parent")||ot&&(Rt=="buffer"||Rt=="byteLength"||Rt=="byteOffset")||Mt(Rt,gt))||yt.push(Rt);return yt}function qe(xe,Ce){for(var Re=xe.length;Re--;)if(it(xe[Re][0],Ce))return Re;return-1}function et(xe){return xe==null?xe===void 0?"[object Undefined]":"[object Null]":B&&B in Object(xe)?(function(Ce){var Re=S.call(Ce,B),tt=Ce[B];try{Ce[B]=void 0;var Ct=!0}catch{}var ot=k.call(Ce);return Ct&&(Re?Ce[B]=tt:delete Ce[B]),ot})(xe):(function(Ce){return k.call(Ce)})(xe)}function We(xe){return Zt(xe)&&et(xe)==o}function dt(xe,Ce,Re,tt,Ct){return xe===Ce||(xe==null||Ce==null||!Zt(xe)&&!Zt(Ce)?xe!=xe&&Ce!=Ce:(function(ot,At,yt,gt,Rt,Nt){var Dt=Qt(ot),mr=Qt(At),fr=Dt?"[object Array]":nt(ot),Cr=mr?"[object Array]":nt(At),Ar=(fr=fr==o?a:fr)==a,Hr=(Cr=Cr==o?a:Cr)==a,me=fr==Cr;if(me&&mt(ot)){if(!mt(At))return!1;Dt=!0,Ar=!1}if(me&&!Ar)return Nt||(Nt=new Ge),Dt||ar(ot)?Xe(ot,At,yt,gt,Rt,Nt):(function(st,lt,Jt,zt,Ht,Lt,er){switch(Jt){case"[object DataView]":if(st.byteLength!=lt.byteLength||st.byteOffset!=lt.byteOffset)return!1;st=st.buffer,lt=lt.buffer;case"[object ArrayBuffer]":return!(st.byteLength!=lt.byteLength||!Lt(new U(st),new U(lt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return it(+st,+lt);case"[object Error]":return st.name==lt.name&&st.message==lt.message;case"[object RegExp]":case"[object String]":return st==lt+"";case l:var lr=W;case n:var gr=1&zt;if(lr||(lr=R),st.size!=lt.size&&!gr)return!1;var Gt=er.get(st);if(Gt)return Gt==lt;zt|=2,er.set(st,lt);var Fr=Xe(lr(st),lr(lt),zt,Ht,Lt,er);return er.delete(st),Fr;case"[object Symbol]":if(we)return we.call(st)==we.call(lt)}return!1})(ot,At,fr,yt,gt,Rt,Nt);if(!(1&yt)){var Ee=Ar&&S.call(ot,"__wrapped__"),$e=Hr&&S.call(At,"__wrapped__");if(Ee||$e){var Qe=Ee?ot.value():ot,pt=$e?At.value():At;return Nt||(Nt=new Ge),Rt(Qe,pt,yt,gt,Nt)}}return me?(Nt||(Nt=new Ge),(function(st,lt,Jt,zt,Ht,Lt){var er=1&Jt,lr=ut(st),gr=lr.length,Gt=ut(lt).length;if(gr!=Gt&&!er)return!1;for(var Fr=gr;Fr--;){var Nr=lr[Fr];if(!(er?Nr in lt:S.call(lt,Nr)))return!1}var fn=Lt.get(st);if(fn&&Lt.get(lt))return fn==lt;var Wn=!0;Lt.set(st,lt),Lt.set(lt,st);for(var Qr=er;++Fr<gr;){Nr=lr[Fr];var Gn=st[Nr],bn=lt[Nr];if(zt)var Vt=er?zt(bn,Gn,Nr,lt,st,Lt):zt(Gn,bn,Nr,st,lt,Lt);if(!(Vt===void 0?Gn===bn||Ht(Gn,bn,Jt,zt,Lt):Vt)){Wn=!1;break}Qr||(Qr=Nr=="constructor")}if(Wn&&!Qr){var sr=st.constructor,li=lt.constructor;sr==li||!("constructor"in st)||!("constructor"in lt)||typeof sr=="function"&&sr instanceof sr&&typeof li=="function"&&li instanceof li||(Wn=!1)}return Lt.delete(st),Lt.delete(lt),Wn})(ot,At,yt,gt,Rt,Nt)):!1})(xe,Ce,Re,tt,dt,Ct))}function Ke(xe){return!(!rt(xe)||(function(Ce){return!!_&&_ in Ce})(xe))&&(qt(xe)?T:u).test(ht(xe))}function Oe(xe){if(Re=(Ce=xe)&&Ce.constructor,tt=typeof Re=="function"&&Re.prototype||E,Ce!==tt)return I(xe);var Ce,Re,tt,Ct=[];for(var ot in Object(xe))S.call(xe,ot)&&ot!="constructor"&&Ct.push(ot);return Ct}function Xe(xe,Ce,Re,tt,Ct,ot){var At=1&Re,yt=xe.length,gt=Ce.length;if(yt!=gt&&!(At&&gt>yt))return!1;var Rt=ot.get(xe);if(Rt&&ot.get(Ce))return Rt==Ce;var Nt=-1,Dt=!0,mr=2&Re?new De:void 0;for(ot.set(xe,Ce),ot.set(Ce,xe);++Nt<yt;){var fr=xe[Nt],Cr=Ce[Nt];if(tt)var Ar=At?tt(Cr,fr,Nt,Ce,xe,ot):tt(fr,Cr,Nt,xe,Ce,ot);if(Ar!==void 0){if(Ar)continue;Dt=!1;break}if(mr){if(!V(Ce,(function(Hr,me){if(Ee=me,!mr.has(Ee)&&(fr===Hr||Ct(fr,Hr,Re,tt,ot)))return mr.push(me);var Ee}))){Dt=!1;break}}else if(fr!==Cr&&!Ct(fr,Cr,Re,tt,ot)){Dt=!1;break}}return ot.delete(xe),ot.delete(Ce),Dt}function ut(xe){return(function(Ce,Re,tt){var Ct=Re(Ce);return Qt(Ce)?Ct:(function(ot,At){for(var yt=-1,gt=At.length,Rt=ot.length;++yt<gt;)ot[Rt+yt]=At[yt];return ot})(Ct,tt(Ce))})(xe,It,ct)}function ze(xe,Ce){var Re,tt,Ct=xe.__data__;return((tt=typeof(Re=Ce))=="string"||tt=="number"||tt=="symbol"||tt=="boolean"?Re!=="__proto__":Re===null)?Ct[typeof Ce=="string"?"string":"hash"]:Ct.map}function bt(xe,Ce){var Re=(function(tt,Ct){return tt?.[Ct]})(xe,Ce);return Ke(Re)?Re:void 0}Se.prototype.clear=function(){this.__data__=J?J(null):{},this.size=0},Se.prototype.delete=function(xe){var Ce=this.has(xe)&&delete this.__data__[xe];return this.size-=Ce?1:0,Ce},Se.prototype.get=function(xe){var Ce=this.__data__;if(J){var Re=Ce[xe];return Re==="__lodash_hash_undefined__"?void 0:Re}return S.call(Ce,xe)?Ce[xe]:void 0},Se.prototype.has=function(xe){var Ce=this.__data__;return J?Ce[xe]!==void 0:S.call(Ce,xe)},Se.prototype.set=function(xe,Ce){var Re=this.__data__;return this.size+=this.has(xe)?0:1,Re[xe]=J&&Ce===void 0?"__lodash_hash_undefined__":Ce,this},Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(xe){var Ce=this.__data__,Re=qe(Ce,xe);return!(Re<0)&&(Re==Ce.length-1?Ce.pop():Z.call(Ce,Re,1),--this.size,!0)},Pe.prototype.get=function(xe){var Ce=this.__data__,Re=qe(Ce,xe);return Re<0?void 0:Ce[Re][1]},Pe.prototype.has=function(xe){return qe(this.__data__,xe)>-1},Pe.prototype.set=function(xe,Ce){var Re=this.__data__,tt=qe(Re,xe);return tt<0?(++this.size,Re.push([xe,Ce])):Re[tt][1]=Ce,this},Le.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(ee||Pe),string:new Se}},Le.prototype.delete=function(xe){var Ce=ze(this,xe).delete(xe);return this.size-=Ce?1:0,Ce},Le.prototype.get=function(xe){return ze(this,xe).get(xe)},Le.prototype.has=function(xe){return ze(this,xe).has(xe)},Le.prototype.set=function(xe,Ce){var Re=ze(this,xe),tt=Re.size;return Re.set(xe,Ce),this.size+=Re.size==tt?0:1,this},De.prototype.add=De.prototype.push=function(xe){return this.__data__.set(xe,"__lodash_hash_undefined__"),this},De.prototype.has=function(xe){return this.__data__.has(xe)},Ge.prototype.clear=function(){this.__data__=new Pe,this.size=0},Ge.prototype.delete=function(xe){var Ce=this.__data__,Re=Ce.delete(xe);return this.size=Ce.size,Re},Ge.prototype.get=function(xe){return this.__data__.get(xe)},Ge.prototype.has=function(xe){return this.__data__.has(xe)},Ge.prototype.set=function(xe,Ce){var Re=this.__data__;if(Re instanceof Pe){var tt=Re.__data__;if(!ee||tt.length<199)return tt.push([xe,Ce]),this.size=++Re.size,this;Re=this.__data__=new Le(tt)}return Re.set(xe,Ce),this.size=Re.size,this};var ct=X?function(xe){return xe==null?[]:(xe=Object(xe),(function(Ce,Re){for(var tt=-1,Ct=Ce==null?0:Ce.length,ot=0,At=[];++tt<Ct;){var yt=Ce[tt];Re(yt,tt,Ce)&&(At[ot++]=yt)}return At})(X(xe),(function(Ce){return q.call(xe,Ce)})))}:function(){return[]},nt=et;function Mt(xe,Ce){return!!(Ce=Ce??9007199254740991)&&(typeof xe=="number"||h.test(xe))&&xe>-1&&xe%1==0&&xe<Ce}function ht(xe){if(xe!=null){try{return w.call(xe)}catch{}try{return xe+""}catch{}}return""}function it(xe,Ce){return xe===Ce||xe!=xe&&Ce!=Ce}(G&&nt(new G(new ArrayBuffer(1)))!="[object DataView]"||ee&&nt(new ee)!=l||se&&nt(se.resolve())!="[object Promise]"||te&&nt(new te)!=n||re&&nt(new re)!="[object WeakMap]")&&(nt=function(xe){var Ce=et(xe),Re=Ce==a?xe.constructor:void 0,tt=Re?ht(Re):"";if(tt)switch(tt){case de:return"[object DataView]";case ne:return l;case fe:return"[object Promise]";case ue:return n;case ye:return"[object WeakMap]"}return Ce});var Pt=We((function(){return arguments})())?We:function(xe){return Zt(xe)&&S.call(xe,"callee")&&!q.call(xe,"callee")},Qt=Array.isArray,mt=L||function(){return!1};function qt(xe){if(!rt(xe))return!1;var Ce=et(xe);return Ce=="[object Function]"||Ce=="[object GeneratorFunction]"||Ce=="[object AsyncFunction]"||Ce=="[object Proxy]"}function ir(xe){return typeof xe=="number"&&xe>-1&&xe%1==0&&xe<=9007199254740991}function rt(xe){var Ce=typeof xe;return xe!=null&&(Ce=="object"||Ce=="function")}function Zt(xe){return xe!=null&&typeof xe=="object"}var ar=M?(function(xe){return function(Ce){return xe(Ce)}})(M):function(xe){return Zt(xe)&&ir(xe.length)&&!!d[et(xe)]};function It(xe){return(Ce=xe)!=null&&ir(Ce.length)&&!qt(Ce)?Ve(xe):Oe(xe);var Ce}s.exports=function(xe,Ce){return dt(xe,Ce)}}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],446:[function(e,s,c){(function(r){(function(){var o=typeof r=="object"&&r&&r.Object===Object&&r,l=typeof self=="object"&&self&&self.Object===Object&&self,a=o||l||Function("return this")(),n=Object.prototype,u=n.hasOwnProperty,h=n.toString,d=a.Symbol,f=d?d.toStringTag:void 0;function m(g){return g==null?g===void 0?"[object Undefined]":"[object Null]":f&&f in Object(g)?(function(p){var v=u.call(p,f),b=p[f];try{p[f]=void 0;var x=!0}catch{}var A=h.call(p);return x&&(v?p[f]=b:delete p[f]),A})(g):(function(p){return h.call(p)})(g)}s.exports=function(g){if(!(function(v){var b=typeof v;return v!=null&&(b=="object"||b=="function")})(g))return!1;var p=m(g);return p=="[object Function]"||p=="[object GeneratorFunction]"||p=="[object AsyncFunction]"||p=="[object Proxy]"}}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],447:[function(e,s,c){s.exports=function(r){return r==null}},{}],448:[function(e,s,c){s.exports=function(r){return r===void 0}},{}],449:[function(e,s,c){(function(r){(function(){var o=/^\[object .+?Constructor\]$/,l=typeof r=="object"&&r&&r.Object===Object&&r,a=typeof self=="object"&&self&&self.Object===Object&&self,n=l||a||Function("return this")();function u(P,U){return!!(P&&P.length)&&(function(q,Z,B){if(Z!=Z)return(function(I,G,ee,se){for(var te=I.length,re=ee+-1;++re<te;)if(G(I[re],re,I))return re;return-1})(q,h,B);for(var X=B-1,L=q.length;++X<L;)if(q[X]===Z)return X;return-1})(P,U,0)>-1}function h(P){return P!=P}function d(P,U){return P.has(U)}function f(P){var U=-1,q=Array(P.size);return P.forEach((function(Z){q[++U]=Z})),q}var m,g=Array.prototype,p=Function.prototype,v=Object.prototype,b=n["__core-js_shared__"],x=(m=/[^.]+$/.exec(b&&b.keys&&b.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",A=p.toString,M=v.hasOwnProperty,V=v.toString,W=RegExp("^"+A.call(M).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),R=g.splice,F=T(n,"Map"),$=T(n,"Set"),z=T(Object,"create");function D(P){var U=-1,q=P?P.length:0;for(this.clear();++U<q;){var Z=P[U];this.set(Z[0],Z[1])}}function N(P){var U=-1,q=P?P.length:0;for(this.clear();++U<q;){var Z=P[U];this.set(Z[0],Z[1])}}function E(P){var U=-1,q=P?P.length:0;for(this.clear();++U<q;){var Z=P[U];this.set(Z[0],Z[1])}}function C(P){var U=-1,q=P?P.length:0;for(this.__data__=new E;++U<q;)this.add(P[U])}function w(P,U){for(var q,Z,B=P.length;B--;)if((q=P[B][0])===(Z=U)||q!=q&&Z!=Z)return B;return-1}function S(P){return!(!j(P)||(U=P,x&&x in U))&&((function(q){var Z=j(q)?V.call(q):"";return Z=="[object Function]"||Z=="[object GeneratorFunction]"})(P)||(function(q){var Z=!1;if(q!=null&&typeof q.toString!="function")try{Z=!!(q+"")}catch{}return Z})(P)?W:o).test((function(q){if(q!=null){try{return A.call(q)}catch{}try{return q+""}catch{}}return""})(P));var U}D.prototype.clear=function(){this.__data__=z?z(null):{}},D.prototype.delete=function(P){return this.has(P)&&delete this.__data__[P]},D.prototype.get=function(P){var U=this.__data__;if(z){var q=U[P];return q==="__lodash_hash_undefined__"?void 0:q}return M.call(U,P)?U[P]:void 0},D.prototype.has=function(P){var U=this.__data__;return z?U[P]!==void 0:M.call(U,P)},D.prototype.set=function(P,U){return this.__data__[P]=z&&U===void 0?"__lodash_hash_undefined__":U,this},N.prototype.clear=function(){this.__data__=[]},N.prototype.delete=function(P){var U=this.__data__,q=w(U,P);return!(q<0)&&(q==U.length-1?U.pop():R.call(U,q,1),!0)},N.prototype.get=function(P){var U=this.__data__,q=w(U,P);return q<0?void 0:U[q][1]},N.prototype.has=function(P){return w(this.__data__,P)>-1},N.prototype.set=function(P,U){var q=this.__data__,Z=w(q,P);return Z<0?q.push([P,U]):q[Z][1]=U,this},E.prototype.clear=function(){this.__data__={hash:new D,map:new(F||N),string:new D}},E.prototype.delete=function(P){return k(this,P).delete(P)},E.prototype.get=function(P){return k(this,P).get(P)},E.prototype.has=function(P){return k(this,P).has(P)},E.prototype.set=function(P,U){return k(this,P).set(P,U),this},C.prototype.add=C.prototype.push=function(P){return this.__data__.set(P,"__lodash_hash_undefined__"),this},C.prototype.has=function(P){return this.__data__.has(P)};var _=$&&1/f(new $([,-0]))[1]==1/0?function(P){return new $(P)}:function(){};function k(P,U){var q,Z,B=P.__data__;return((Z=typeof(q=U))=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?q!=="__proto__":q===null)?B[typeof U=="string"?"string":"hash"]:B.map}function T(P,U){var q=(function(Z,B){return Z?.[B]})(P,U);return S(q)?q:void 0}function j(P){var U=typeof P;return!!P&&(U=="object"||U=="function")}s.exports=function(P){return P&&P.length?(function(U,q,Z){var B=-1,X=u,L=U.length,I=!0,G=[],ee=G;if(L>=200){var se=_(U);if(se)return f(se);I=!1,X=d,ee=new C}else ee=G;e:for(;++B<L;){var te=U[B],re=te;if(te=te!==0?te:0,I&&re==re){for(var J=ee.length;J--;)if(ee[J]===re)continue e;G.push(te)}else X(ee,re,Z)||(ee!==G&&ee.push(re),G.push(te))}return G})(P):[]}}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],450:[function(e,s,c){var r=e("inherits"),o=e("hash-base"),l=e("safe-buffer").Buffer,a=new Array(16);function n(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(g,p){return g<<p|g>>>32-p}function h(g,p,v,b,x,A,M){return u(g+(p&v|~p&b)+x+A|0,M)+p|0}function d(g,p,v,b,x,A,M){return u(g+(p&b|v&~b)+x+A|0,M)+p|0}function f(g,p,v,b,x,A,M){return u(g+(p^v^b)+x+A|0,M)+p|0}function m(g,p,v,b,x,A,M){return u(g+(v^(p|~b))+x+A|0,M)+p|0}r(n,o),n.prototype._update=function(){for(var g=a,p=0;p<16;++p)g[p]=this._block.readInt32LE(4*p);var v=this._a,b=this._b,x=this._c,A=this._d;v=h(v,b,x,A,g[0],3614090360,7),A=h(A,v,b,x,g[1],3905402710,12),x=h(x,A,v,b,g[2],606105819,17),b=h(b,x,A,v,g[3],3250441966,22),v=h(v,b,x,A,g[4],4118548399,7),A=h(A,v,b,x,g[5],1200080426,12),x=h(x,A,v,b,g[6],2821735955,17),b=h(b,x,A,v,g[7],4249261313,22),v=h(v,b,x,A,g[8],1770035416,7),A=h(A,v,b,x,g[9],2336552879,12),x=h(x,A,v,b,g[10],4294925233,17),b=h(b,x,A,v,g[11],2304563134,22),v=h(v,b,x,A,g[12],1804603682,7),A=h(A,v,b,x,g[13],4254626195,12),x=h(x,A,v,b,g[14],2792965006,17),v=d(v,b=h(b,x,A,v,g[15],1236535329,22),x,A,g[1],4129170786,5),A=d(A,v,b,x,g[6],3225465664,9),x=d(x,A,v,b,g[11],643717713,14),b=d(b,x,A,v,g[0],3921069994,20),v=d(v,b,x,A,g[5],3593408605,5),A=d(A,v,b,x,g[10],38016083,9),x=d(x,A,v,b,g[15],3634488961,14),b=d(b,x,A,v,g[4],3889429448,20),v=d(v,b,x,A,g[9],568446438,5),A=d(A,v,b,x,g[14],3275163606,9),x=d(x,A,v,b,g[3],4107603335,14),b=d(b,x,A,v,g[8],1163531501,20),v=d(v,b,x,A,g[13],2850285829,5),A=d(A,v,b,x,g[2],4243563512,9),x=d(x,A,v,b,g[7],1735328473,14),v=f(v,b=d(b,x,A,v,g[12],2368359562,20),x,A,g[5],4294588738,4),A=f(A,v,b,x,g[8],2272392833,11),x=f(x,A,v,b,g[11],1839030562,16),b=f(b,x,A,v,g[14],4259657740,23),v=f(v,b,x,A,g[1],2763975236,4),A=f(A,v,b,x,g[4],1272893353,11),x=f(x,A,v,b,g[7],4139469664,16),b=f(b,x,A,v,g[10],3200236656,23),v=f(v,b,x,A,g[13],681279174,4),A=f(A,v,b,x,g[0],3936430074,11),x=f(x,A,v,b,g[3],3572445317,16),b=f(b,x,A,v,g[6],76029189,23),v=f(v,b,x,A,g[9],3654602809,4),A=f(A,v,b,x,g[12],3873151461,11),x=f(x,A,v,b,g[15],530742520,16),v=m(v,b=f(b,x,A,v,g[2],3299628645,23),x,A,g[0],4096336452,6),A=m(A,v,b,x,g[7],1126891415,10),x=m(x,A,v,b,g[14],2878612391,15),b=m(b,x,A,v,g[5],4237533241,21),v=m(v,b,x,A,g[12],1700485571,6),A=m(A,v,b,x,g[3],2399980690,10),x=m(x,A,v,b,g[10],4293915773,15),b=m(b,x,A,v,g[1],2240044497,21),v=m(v,b,x,A,g[8],1873313359,6),A=m(A,v,b,x,g[15],4264355552,10),x=m(x,A,v,b,g[6],2734768916,15),b=m(b,x,A,v,g[13],1309151649,21),v=m(v,b,x,A,g[4],4149444226,6),A=m(A,v,b,x,g[11],3174756917,10),x=m(x,A,v,b,g[2],718787259,15),b=m(b,x,A,v,g[9],3951481745,21),this._a=this._a+v|0,this._b=this._b+b|0,this._c=this._c+x|0,this._d=this._d+A|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var g=l.allocUnsafe(16);return g.writeInt32LE(this._a,0),g.writeInt32LE(this._b,4),g.writeInt32LE(this._c,8),g.writeInt32LE(this._d,12),g},s.exports=n},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,s,c){var r=e("bn.js"),o=e("brorand");function l(a){this.rand=a||new o.Rand}s.exports=l,l.create=function(a){return new l(a)},l.prototype._randbelow=function(a){var n=a.bitLength(),u=Math.ceil(n/8);do var h=new r(this.rand.generate(u));while(h.cmp(a)>=0);return h},l.prototype._randrange=function(a,n){var u=n.sub(a);return a.add(this._randbelow(u))},l.prototype.test=function(a,n,u){var h=a.bitLength(),d=r.mont(a),f=new r(1).toRed(d);n||(n=Math.max(1,h/48|0));for(var m=a.subn(1),g=0;!m.testn(g);g++);for(var p=a.shrn(g),v=m.toRed(d);n>0;n--){var b=this._randrange(new r(2),m);u&&u(b);var x=b.toRed(d).redPow(p);if(x.cmp(f)!==0&&x.cmp(v)!==0){for(var A=1;A<g;A++){if((x=x.redSqr()).cmp(f)===0)return!1;if(x.cmp(v)===0)break}if(A===g)return!1}}return!0},l.prototype.getDivisor=function(a,n){var u=a.bitLength(),h=r.mont(a),d=new r(1).toRed(h);n||(n=Math.max(1,u/48|0));for(var f=a.subn(1),m=0;!f.testn(m);m++);for(var g=a.shrn(m),p=f.toRed(h);n>0;n--){var v=this._randrange(new r(2),f),b=a.gcd(v);if(b.cmpn(1)!==0)return b;var x=v.toRed(h).redPow(g);if(x.cmp(d)!==0&&x.cmp(p)!==0){for(var A=1;A<m;A++){if((x=x.redSqr()).cmp(d)===0)return x.fromRed().subn(1).gcd(a);if(x.cmp(p)===0)break}if(A===m)return(x=x.redSqr()).fromRed().subn(1).gcd(a)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,s,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],453:[function(e,s,c){function r(o,l){if(!o)throw new Error(l||"Assertion failed")}s.exports=r,r.equal=function(o,l,a){if(o!=l)throw new Error(a||"Assertion failed: "+o+" != "+l)}},{}],454:[function(e,s,c){var r=c;function o(a){return a.length===1?"0"+a:a}function l(a){for(var n="",u=0;u<a.length;u++)n+=o(a[u].toString(16));return n}r.toArray=function(a,n){if(Array.isArray(a))return a.slice();if(!a)return[];var u=[];if(typeof a!="string"){for(var h=0;h<a.length;h++)u[h]=0|a[h];return u}if(n==="hex")for((a=a.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(a="0"+a),h=0;h<a.length;h+=2)u.push(parseInt(a[h]+a[h+1],16));else for(h=0;h<a.length;h++){var d=a.charCodeAt(h),f=d>>8,m=255&d;f?u.push(f,m):u.push(m)}return u},r.zero2=o,r.toHex=l,r.encode=function(a,n){return n==="hex"?l(a):a}},{}],455:[function(e,s,c){s.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],456:[function(e,s,c){var r=e("asn1.js");c.certificate=e("./certificate");var o=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));c.RSAPrivateKey=o;var l=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));c.RSAPublicKey=l;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(n),this.key("subjectPublicKey").bitstr())}));c.PublicKey=a;var n=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(n),this.key("subjectPrivateKey").octstr())}));c.PrivateKey=u;var h=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));c.EncryptedPrivateKey=h;var d=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));c.DSAPrivateKey=d,c.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(m),this.key("publicKey").optional().explicit(1).bitstr())}));c.ECPrivateKey=f;var m=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));c.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},{"./certificate":457,"asn1.js":170}],457:[function(e,s,c){var r=e("asn1.js"),o=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),l=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),n=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=r.define("RelativeDistinguishedName",(function(){this.setof(l)})),h=r.define("RDNSequence",(function(){this.seqof(u)})),d=r.define("Name",(function(){this.choice({rdnSequence:this.use(h)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),m=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),g=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(d),this.key("validity").use(f),this.key("subject").use(d),this.key("subjectPublicKeyInfo").use(n),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(m).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(g),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));s.exports=p},{"asn1.js":170}],458:[function(e,s,c){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,l=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=e("evp_bytestokey"),n=e("browserify-aes"),u=e("safe-buffer").Buffer;s.exports=function(h,d){var f,m=h.toString(),g=m.match(r);if(g){var p="aes"+g[1],v=u.from(g[2],"hex"),b=u.from(g[3].replace(/[\r\n]/g,""),"base64"),x=a(d,v.slice(0,8),parseInt(g[1],10)).key,A=[],M=n.createDecipheriv(p,x,v);A.push(M.update(b)),A.push(M.final()),f=u.concat(A)}else{var V=m.match(l);f=u.from(V[2].replace(/[\r\n]/g,""),"base64")}return{tag:m.match(o)[1],data:f}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,s,c){var r=e("./asn1"),o=e("./aesid.json"),l=e("./fixProc"),a=e("browserify-aes"),n=e("pbkdf2"),u=e("safe-buffer").Buffer;function h(d){var f;typeof d!="object"||u.isBuffer(d)||(f=d.passphrase,d=d.key),typeof d=="string"&&(d=u.from(d));var m,g,p=l(d,f),v=p.tag,b=p.data;switch(v){case"CERTIFICATE":g=r.certificate.decode(b,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(g||(g=r.PublicKey.decode(b,"der")),m=g.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(g.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return g.subjectPrivateKey=g.subjectPublicKey,{type:"ec",data:g};case"1.2.840.10040.4.1":return g.algorithm.params.pub_key=r.DSAparam.decode(g.subjectPublicKey.data,"der"),{type:"dsa",data:g.algorithm.params};default:throw new Error("unknown key id "+m)}case"ENCRYPTED PRIVATE KEY":b=(function(x,A){var M=x.algorithm.decrypt.kde.kdeparams.salt,V=parseInt(x.algorithm.decrypt.kde.kdeparams.iters.toString(),10),W=o[x.algorithm.decrypt.cipher.algo.join(".")],R=x.algorithm.decrypt.cipher.iv,F=x.subjectPrivateKey,$=parseInt(W.split("-")[1],10)/8,z=n.pbkdf2Sync(A,M,V,$,"sha1"),D=a.createDecipheriv(W,z,R),N=[];return N.push(D.update(F)),N.push(D.final()),u.concat(N)})(b=r.EncryptedPrivateKey.decode(b,"der"),f);case"PRIVATE KEY":switch(m=(g=r.PrivateKey.decode(b,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(g.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:g.algorithm.curve,privateKey:r.ECPrivateKey.decode(g.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return g.algorithm.params.priv_key=r.DSAparam.decode(g.subjectPrivateKey,"der"),{type:"dsa",params:g.algorithm.params};default:throw new Error("unknown key id "+m)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(b,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(b,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(b,"der")};case"EC PRIVATE KEY":return{curve:(b=r.ECPrivateKey.decode(b,"der")).parameters.value,privateKey:b.privateKey};default:throw new Error("unknown key type "+v)}}s.exports=h,h.signature=r.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,s,c){c.pbkdf2=e("./lib/async"),c.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,s,c){(function(r){(function(){var o,l,a=e("safe-buffer").Buffer,n=e("./precondition"),u=e("./default-encoding"),h=e("./sync"),d=e("./to-buffer"),f=r.crypto&&r.crypto.subtle,m={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},g=[];function p(){return l||(l=r.process&&r.process.nextTick?r.process.nextTick:r.queueMicrotask?r.queueMicrotask:r.setImmediate?r.setImmediate:r.setTimeout)}function v(b,x,A,M,V){return f.importKey("raw",b,{name:"PBKDF2"},!1,["deriveBits"]).then((function(W){return f.deriveBits({name:"PBKDF2",salt:x,iterations:A,hash:{name:V}},W,M<<3)})).then((function(W){return a.from(W)}))}s.exports=function(b,x,A,M,V,W){typeof V=="function"&&(W=V,V=void 0);var R=m[(V=V||"sha1").toLowerCase()];if(R&&typeof r.Promise=="function"){if(n(A,M),b=d(b,u,"Password"),x=d(x,u,"Salt"),typeof W!="function")throw new Error("No callback provided to pbkdf2");(function(F,$){F.then((function(z){p()((function(){$(null,z)}))}),(function(z){p()((function(){$(z)}))}))})((function(F){if(r.process&&!r.process.browser||!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(g[F]!==void 0)return g[F];var $=v(o=o||a.alloc(8),o,10,128,F).then((function(){return!0})).catch((function(){return!1}));return g[F]=$,$})(R).then((function(F){return F?v(b,x,A,M,R):h(b,x,A,M,V)})),W)}else p()((function(){var F;try{F=h(b,x,A,M,V)}catch($){return W($)}W(null,F)}))}}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,s,c){(function(r,o){(function(){var l;o.process&&o.process.browser?l="utf-8":o.process&&o.process.version?l=parseInt(r.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":l="utf-8",s.exports=l}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467}],463:[function(e,s,c){var r=Math.pow(2,30)-1;s.exports=function(o,l){if(typeof o!="number")throw new TypeError("Iterations not a number");if(o<0)throw new TypeError("Bad iterations");if(typeof l!="number")throw new TypeError("Key length not a number");if(l<0||l>r||l!=l)throw new TypeError("Bad key length")}},{}],464:[function(e,s,c){var r=e("create-hash/md5"),o=e("ripemd160"),l=e("sha.js"),a=e("safe-buffer").Buffer,n=e("./precondition"),u=e("./default-encoding"),h=e("./to-buffer"),d=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function m(g,p,v){var b=(function(R){function F($){return l(R).update($).digest()}return R==="rmd160"||R==="ripemd160"?function($){return new o().update($).digest()}:R==="md5"?r:F})(g),x=g==="sha512"||g==="sha384"?128:64;p.length>x?p=b(p):p.length<x&&(p=a.concat([p,d],x));for(var A=a.allocUnsafe(x+f[g]),M=a.allocUnsafe(x+f[g]),V=0;V<x;V++)A[V]=54^p[V],M[V]=92^p[V];var W=a.allocUnsafe(x+v+4);A.copy(W,0,0,x),this.ipad1=W,this.ipad2=A,this.opad=M,this.alg=g,this.blocksize=x,this.hash=b,this.size=f[g]}m.prototype.run=function(g,p){return g.copy(p,this.blocksize),this.hash(p).copy(this.opad,this.blocksize),this.hash(this.opad)},s.exports=function(g,p,v,b,x){n(v,b);var A=new m(x=x||"sha1",g=h(g,u,"Password"),(p=h(p,u,"Salt")).length),M=a.allocUnsafe(b),V=a.allocUnsafe(p.length+4);p.copy(V,0,0,p.length);for(var W=0,R=f[x],F=Math.ceil(b/R),$=1;$<=F;$++){V.writeUInt32BE($,p.length);for(var z=A.run(V,A.ipad1),D=z,N=1;N<v;N++){D=A.run(D,A.ipad2);for(var E=0;E<R;E++)z[E]^=D[E]}z.copy(M,W),W+=R}return M}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,s,c){var r=e("safe-buffer").Buffer;s.exports=function(o,l,a){if(r.isBuffer(o))return o;if(typeof o=="string")return r.from(o,l);if(ArrayBuffer.isView(o))return r.from(o.buffer);throw new TypeError(a+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,s,c){(function(r){(function(){r===void 0||!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?s.exports={nextTick:function(o,l,a,n){if(typeof o!="function")throw new TypeError('"callback" argument must be a function');var u,h,d=arguments.length;switch(d){case 0:case 1:return r.nextTick(o);case 2:return r.nextTick((function(){o.call(null,l)}));case 3:return r.nextTick((function(){o.call(null,l,a)}));case 4:return r.nextTick((function(){o.call(null,l,a,n)}));default:for(u=new Array(d-1),h=0;h<u.length;)u[h++]=arguments[h];return r.nextTick((function(){o.apply(null,u)}))}}}:s.exports=r}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,s,c){var r,o,l=s.exports={};function a(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function u(x){if(r===setTimeout)return setTimeout(x,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(x,0);try{return r(x,0)}catch{try{return r.call(null,x,0)}catch{return r.call(this,x,0)}}}(function(){try{r=typeof setTimeout=="function"?setTimeout:a}catch{r=a}try{o=typeof clearTimeout=="function"?clearTimeout:n}catch{o=n}})();var h,d=[],f=!1,m=-1;function g(){f&&h&&(f=!1,h.length?d=h.concat(d):m=-1,d.length&&p())}function p(){if(!f){var x=u(g);f=!0;for(var A=d.length;A;){for(h=d,d=[];++m<A;)h&&h[m].run();m=-1,A=d.length}h=null,f=!1,(function(M){if(o===clearTimeout)return clearTimeout(M);if((o===n||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(M);try{o(M)}catch{try{return o.call(null,M)}catch{return o.call(this,M)}}})(x)}}function v(x,A){this.fun=x,this.array=A}function b(){}l.nextTick=function(x){var A=new Array(arguments.length-1);if(arguments.length>1)for(var M=1;M<arguments.length;M++)A[M-1]=arguments[M];d.push(new v(x,A)),d.length!==1||f||u(p)},v.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=b,l.addListener=b,l.once=b,l.off=b,l.removeListener=b,l.removeAllListeners=b,l.emit=b,l.prependListener=b,l.prependOnceListener=b,l.listeners=function(x){return[]},l.binding=function(x){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(x){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},{}],468:[function(e,s,c){c.publicEncrypt=e("./publicEncrypt"),c.privateDecrypt=e("./privateDecrypt"),c.privateEncrypt=function(r,o){return c.publicEncrypt(r,o,!0)},c.publicDecrypt=function(r,o){return c.privateDecrypt(r,o,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,s,c){var r=e("create-hash"),o=e("safe-buffer").Buffer;function l(a){var n=o.allocUnsafe(4);return n.writeUInt32BE(a,0),n}s.exports=function(a,n){for(var u,h=o.alloc(0),d=0;h.length<n;)u=l(d++),h=o.concat([h,r("sha1").update(a).update(u).digest()]);return h.slice(0,n)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,s,c){arguments[4][184][0].apply(c,arguments)},{buffer:188,dup:184}],471:[function(e,s,c){var r=e("parse-asn1"),o=e("./mgf"),l=e("./xor"),a=e("bn.js"),n=e("browserify-rsa"),u=e("create-hash"),h=e("./withPublic"),d=e("safe-buffer").Buffer;s.exports=function(f,m,g){var p;p=f.padding?f.padding:g?1:4;var v,b=r(f),x=b.modulus.byteLength();if(m.length>x||new a(m).cmp(b.modulus)>=0)throw new Error("decryption error");v=g?h(new a(m),b):n(m,b);var A=d.alloc(x-v.length);if(v=d.concat([A,v],x),p===4)return(function(M,V){var W=M.modulus.byteLength(),R=u("sha1").update(d.alloc(0)).digest(),F=R.length;if(V[0]!==0)throw new Error("decryption error");var $=V.slice(1,F+1),z=V.slice(F+1),D=l($,o(z,F)),N=l(z,o(D,W-F-1));if((function(C,w){C=d.from(C),w=d.from(w);var S=0,_=C.length;C.length!==w.length&&(S++,_=Math.min(C.length,w.length));for(var k=-1;++k<_;)S+=C[k]^w[k];return S})(R,N.slice(0,F)))throw new Error("decryption error");for(var E=F;N[E]===0;)E++;if(N[E++]!==1)throw new Error("decryption error");return N.slice(E)})(b,v);if(p===1)return(function(M,V,W){for(var R=V.slice(0,2),F=2,$=0;V[F++]!==0;)if(F>=V.length){$++;break}var z=V.slice(2,F-1);if((R.toString("hex")!=="0002"&&!W||R.toString("hex")!=="0001"&&W)&&$++,z.length<8&&$++,$)throw new Error("decryption error");return V.slice(F)})(0,v,g);if(p===3)return v;throw new Error("unknown padding")}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,"safe-buffer":494}],472:[function(e,s,c){var r=e("parse-asn1"),o=e("randombytes"),l=e("create-hash"),a=e("./mgf"),n=e("./xor"),u=e("bn.js"),h=e("./withPublic"),d=e("browserify-rsa"),f=e("safe-buffer").Buffer;s.exports=function(m,g,p){var v;v=m.padding?m.padding:p?1:4;var b,x=r(m);if(v===4)b=(function(A,M){var V=A.modulus.byteLength(),W=M.length,R=l("sha1").update(f.alloc(0)).digest(),F=R.length,$=2*F;if(W>V-$-2)throw new Error("message too long");var z=f.alloc(V-W-$-2),D=V-F-1,N=o(F),E=n(f.concat([R,z,f.alloc(1,1),M],D),a(N,D)),C=n(N,a(E,F));return new u(f.concat([f.alloc(1),C,E],V))})(x,g);else if(v===1)b=(function(A,M,V){var W,R=M.length,F=A.modulus.byteLength();if(R>F-11)throw new Error("message too long");return W=V?f.alloc(F-R-3,255):(function($){for(var z,D=f.allocUnsafe($),N=0,E=o(2*$),C=0;N<$;)C===E.length&&(E=o(2*$),C=0),(z=E[C++])&&(D[N++]=z);return D})(F-R-3),new u(f.concat([f.from([0,V?1:2]),W,f.alloc(1),M],F))})(x,g,p);else{if(v!==3)throw new Error("unknown padding");if((b=new u(g)).cmp(x.modulus)>=0)throw new Error("data too long for modulus")}return p?d(b,x):h(b,x)}},{"./mgf":469,"./withPublic":473,"./xor":474,"bn.js":470,"browserify-rsa":209,"create-hash":386,"parse-asn1":459,randombytes:475,"safe-buffer":494}],473:[function(e,s,c){var r=e("bn.js"),o=e("safe-buffer").Buffer;s.exports=function(l,a){return o.from(l.toRed(r.mont(a.modulus)).redPow(new r(a.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,s,c){s.exports=function(r,o){for(var l=r.length,a=-1;++a<l;)r[a]^=o[a];return r}},{}],475:[function(e,s,c){(function(r,o){(function(){var l=e("safe-buffer").Buffer,a=o.crypto||o.msCrypto;a&&a.getRandomValues?s.exports=function(n,u){if(n>4294967295)throw new RangeError("requested too many random bytes");var h=l.allocUnsafe(n);if(n>0)if(n>65536)for(var d=0;d<n;d+=65536)a.getRandomValues(h.slice(d,d+65536));else a.getRandomValues(h);return typeof u=="function"?r.nextTick((function(){u(null,h)})):h}:s.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
90
+ Use Chrome, Firefox or Internet Explorer 11`)}}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,s,c){(function(r,o){(function(){function l(){throw new Error(`secure random number generation not supported by this browser
91
+ use chrome, FireFox or Internet Explorer 11`)}var a=e("safe-buffer"),n=e("randombytes"),u=a.Buffer,h=a.kMaxLength,d=o.crypto||o.msCrypto,f=Math.pow(2,32)-1;function m(v,b){if(typeof v!="number"||v!=v)throw new TypeError("offset must be a number");if(v>f||v<0)throw new TypeError("offset must be a uint32");if(v>h||v>b)throw new RangeError("offset out of range")}function g(v,b,x){if(typeof v!="number"||v!=v)throw new TypeError("size must be a number");if(v>f||v<0)throw new TypeError("size must be a uint32");if(v+b>x||v>h)throw new RangeError("buffer too small")}function p(v,b,x,A){if(r.browser){var M=v.buffer,V=new Uint8Array(M,b,x);return d.getRandomValues(V),A?void r.nextTick((function(){A(null,v)})):v}if(!A)return n(x).copy(v,b),v;n(x,(function(W,R){if(W)return A(W);R.copy(v,b),A(null,v)}))}d&&d.getRandomValues||!r.browser?(c.randomFill=function(v,b,x,A){if(!(u.isBuffer(v)||v instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof b=="function")A=b,b=0,x=v.length;else if(typeof x=="function")A=x,x=v.length-b;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return m(b,v.length),g(x,b,v.length),p(v,b,x,A)},c.randomFillSync=function(v,b,x){if(b===void 0&&(b=0),!(u.isBuffer(v)||v instanceof o.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return m(b,v.length),x===void 0&&(x=v.length-b),g(x,b,v.length),p(v,b,x)}):(c.randomFill=l,c.randomFillSync=l)}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,s,c){var r={};function o(a,n,u){u||(u=Error);var h=(function(d){var f,m;function g(p,v,b){return d.call(this,(function(x,A,M){return typeof n=="string"?n:n(x,A,M)})(p,v,b))||this}return m=d,(f=g).prototype=Object.create(m.prototype),f.prototype.constructor=f,f.__proto__=m,g})(u);h.prototype.name=u.name,h.prototype.code=a,r[a]=h}function l(a,n){if(Array.isArray(a)){var u=a.length;return a=a.map((function(h){return String(h)})),u>2?"one of ".concat(n," ").concat(a.slice(0,u-1).join(", "),", or ")+a[u-1]:u===2?"one of ".concat(n," ").concat(a[0]," or ").concat(a[1]):"of ".concat(n," ").concat(a[0])}return"of ".concat(n," ").concat(String(a))}o("ERR_INVALID_OPT_VALUE",(function(a,n){return'The value "'+n+'" is invalid for option "'+a+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(a,n,u){var h,d,f;if(typeof n=="string"&&(d="not ",n.substr(0,d.length)===d)?(h="must not be",n=n.replace(/^not /,"")):h="must be",(function(g,p,v){return(v===void 0||v>g.length)&&(v=g.length),g.substring(v-p.length,v)===p})(a," argument"))f="The ".concat(a," ").concat(h," ").concat(l(n,"type"));else{var m=(function(g,p,v){return typeof v!="number"&&(v=0),!(v+p.length>g.length)&&g.indexOf(p,v)!==-1})(a,".")?"property":"argument";f='The "'.concat(a,'" ').concat(m," ").concat(h," ").concat(l(n,"type"))}return f+=". Received type ".concat(typeof u)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(a){return"The "+a+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(a){return"Cannot call "+a+" 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(a){return"Unknown encoding: "+a}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),s.exports.codes=r},{}],478:[function(e,s,c){(function(r){(function(){var o=Object.keys||function(g){var p=[];for(var v in g)p.push(v);return p};s.exports=d;var l=e("./_stream_readable"),a=e("./_stream_writable");e("inherits")(d,l);for(var n=o(a.prototype),u=0;u<n.length;u++){var h=n[u];d.prototype[h]||(d.prototype[h]=a.prototype[h])}function d(g){if(!(this instanceof d))return new d(g);l.call(this,g),a.call(this,g),this.allowHalfOpen=!0,g&&(g.readable===!1&&(this.readable=!1),g.writable===!1&&(this.writable=!1),g.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||r.nextTick(m,this)}function m(g){g.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(d.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(d.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,s,c){s.exports=o;var r=e("./_stream_transform");function o(l){if(!(this instanceof o))return new o(l);r.call(this,l)}e("inherits")(o,r),o.prototype._transform=function(l,a,n){n(null,l)}},{"./_stream_transform":481,inherits:440}],480:[function(e,s,c){(function(r,o){(function(){var l;s.exports=D,D.ReadableState=z,e("events").EventEmitter;var a=function(L,I){return L.listeners(I).length},n=e("./internal/streams/stream"),u=e("buffer").Buffer,h=(o!==void 0?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},d,f=e("util");d=f&&f.debuglog?f.debuglog("stream"):function(){};var m,g,p,v=e("./internal/streams/buffer_list"),b=e("./internal/streams/destroy"),x=e("./internal/streams/state").getHighWaterMark,A=e("../errors").codes,M=A.ERR_INVALID_ARG_TYPE,V=A.ERR_STREAM_PUSH_AFTER_EOF,W=A.ERR_METHOD_NOT_IMPLEMENTED,R=A.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(D,n);var F=b.errorOrDestroy,$=["error","close","destroy","pause","resume"];function z(L,I,G){l=l||e("./_stream_duplex"),L=L||{},typeof G!="boolean"&&(G=I instanceof l),this.objectMode=!!L.objectMode,G&&(this.objectMode=this.objectMode||!!L.readableObjectMode),this.highWaterMark=x(this,L,"readableHighWaterMark",G),this.buffer=new v,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=L.emitClose!==!1,this.autoDestroy=!!L.autoDestroy,this.destroyed=!1,this.defaultEncoding=L.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,L.encoding&&(m||(m=e("string_decoder/").StringDecoder),this.decoder=new m(L.encoding),this.encoding=L.encoding)}function D(L){if(l=l||e("./_stream_duplex"),!(this instanceof D))return new D(L);var I=this instanceof l;this._readableState=new z(L,this,I),this.readable=!0,L&&(typeof L.read=="function"&&(this._read=L.read),typeof L.destroy=="function"&&(this._destroy=L.destroy)),n.call(this)}function N(L,I,G,ee,se){d("readableAddChunk",I);var te,re=L._readableState;if(I===null)re.reading=!1,(function(J,de){if(d("onEofChunk"),!de.ended){if(de.decoder){var ne=de.decoder.end();ne&&ne.length&&(de.buffer.push(ne),de.length+=de.objectMode?1:ne.length)}de.ended=!0,de.sync?w(J):(de.needReadable=!1,de.emittedReadable||(de.emittedReadable=!0,S(J)))}})(L,re);else if(se||(te=(function(J,de){var ne;fe=de,u.isBuffer(fe)||fe instanceof h||typeof de=="string"||de===void 0||J.objectMode||(ne=new M("chunk",["string","Buffer","Uint8Array"],de));var fe;return ne})(re,I)),te)F(L,te);else if(re.objectMode||I&&I.length>0)if(typeof I=="string"||re.objectMode||Object.getPrototypeOf(I)===u.prototype||(I=(function(J){return u.from(J)})(I)),ee)re.endEmitted?F(L,new R):E(L,re,I,!0);else if(re.ended)F(L,new V);else{if(re.destroyed)return!1;re.reading=!1,re.decoder&&!G?(I=re.decoder.write(I),re.objectMode||I.length!==0?E(L,re,I,!1):_(L,re)):E(L,re,I,!1)}else ee||(re.reading=!1,_(L,re));return!re.ended&&(re.length<re.highWaterMark||re.length===0)}function E(L,I,G,ee){I.flowing&&I.length===0&&!I.sync?(I.awaitDrain=0,L.emit("data",G)):(I.length+=I.objectMode?1:G.length,ee?I.buffer.unshift(G):I.buffer.push(G),I.needReadable&&w(L)),_(L,I)}Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),D.prototype.destroy=b.destroy,D.prototype._undestroy=b.undestroy,D.prototype._destroy=function(L,I){I(L)},D.prototype.push=function(L,I){var G,ee=this._readableState;return ee.objectMode?G=!0:typeof L=="string"&&((I=I||ee.defaultEncoding)!==ee.encoding&&(L=u.from(L,I),I=""),G=!0),N(this,L,I,!1,G)},D.prototype.unshift=function(L){return N(this,L,null,!0,!1)},D.prototype.isPaused=function(){return this._readableState.flowing===!1},D.prototype.setEncoding=function(L){m||(m=e("string_decoder/").StringDecoder);var I=new m(L);this._readableState.decoder=I,this._readableState.encoding=this._readableState.decoder.encoding;for(var G=this._readableState.buffer.head,ee="";G!==null;)ee+=I.write(G.data),G=G.next;return this._readableState.buffer.clear(),ee!==""&&this._readableState.buffer.push(ee),this._readableState.length=ee.length,this};function C(L,I){return L<=0||I.length===0&&I.ended?0:I.objectMode?1:L!=L?I.flowing&&I.length?I.buffer.head.data.length:I.length:(L>I.highWaterMark&&(I.highWaterMark=(function(G){return G>=1073741824?G=1073741824:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G})(L)),L<=I.length?L:I.ended?I.length:(I.needReadable=!0,0))}function w(L){var I=L._readableState;d("emitReadable",I.needReadable,I.emittedReadable),I.needReadable=!1,I.emittedReadable||(d("emitReadable",I.flowing),I.emittedReadable=!0,r.nextTick(S,L))}function S(L){var I=L._readableState;d("emitReadable_",I.destroyed,I.length,I.ended),I.destroyed||!I.length&&!I.ended||(L.emit("readable"),I.emittedReadable=!1),I.needReadable=!I.flowing&&!I.ended&&I.length<=I.highWaterMark,U(L)}function _(L,I){I.readingMore||(I.readingMore=!0,r.nextTick(k,L,I))}function k(L,I){for(;!I.reading&&!I.ended&&(I.length<I.highWaterMark||I.flowing&&I.length===0);){var G=I.length;if(d("maybeReadMore read 0"),L.read(0),G===I.length)break}I.readingMore=!1}function T(L){var I=L._readableState;I.readableListening=L.listenerCount("readable")>0,I.resumeScheduled&&!I.paused?I.flowing=!0:L.listenerCount("data")>0&&L.resume()}function j(L){d("readable nexttick read 0"),L.read(0)}function P(L,I){d("resume",I.reading),I.reading||L.read(0),I.resumeScheduled=!1,L.emit("resume"),U(L),I.flowing&&!I.reading&&L.read(0)}function U(L){var I=L._readableState;for(d("flow",I.flowing);I.flowing&&L.read()!==null;);}function q(L,I){return I.length===0?null:(I.objectMode?G=I.buffer.shift():!L||L>=I.length?(G=I.decoder?I.buffer.join(""):I.buffer.length===1?I.buffer.first():I.buffer.concat(I.length),I.buffer.clear()):G=I.buffer.consume(L,I.decoder),G);var G}function Z(L){var I=L._readableState;d("endReadable",I.endEmitted),I.endEmitted||(I.ended=!0,r.nextTick(B,I,L))}function B(L,I){if(d("endReadableNT",L.endEmitted,L.length),!L.endEmitted&&L.length===0&&(L.endEmitted=!0,I.readable=!1,I.emit("end"),L.autoDestroy)){var G=I._writableState;(!G||G.autoDestroy&&G.finished)&&I.destroy()}}function X(L,I){for(var G=0,ee=L.length;G<ee;G++)if(L[G]===I)return G;return-1}D.prototype.read=function(L){d("read",L),L=parseInt(L,10);var I=this._readableState,G=L;if(L!==0&&(I.emittedReadable=!1),L===0&&I.needReadable&&((I.highWaterMark!==0?I.length>=I.highWaterMark:I.length>0)||I.ended))return d("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?Z(this):w(this),null;if((L=C(L,I))===0&&I.ended)return I.length===0&&Z(this),null;var ee,se=I.needReadable;return d("need readable",se),(I.length===0||I.length-L<I.highWaterMark)&&d("length less than watermark",se=!0),I.ended||I.reading?d("reading or ended",se=!1):se&&(d("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(L=C(G,I))),(ee=L>0?q(L,I):null)===null?(I.needReadable=I.length<=I.highWaterMark,L=0):(I.length-=L,I.awaitDrain=0),I.length===0&&(I.ended||(I.needReadable=!0),G!==L&&I.ended&&Z(this)),ee!==null&&this.emit("data",ee),ee},D.prototype._read=function(L){F(this,new W("_read()"))},D.prototype.pipe=function(L,I){var G=this,ee=this._readableState;switch(ee.pipesCount){case 0:ee.pipes=L;break;case 1:ee.pipes=[ee.pipes,L];break;default:ee.pipes.push(L)}ee.pipesCount+=1,d("pipe count=%d opts=%j",ee.pipesCount,I);var se=(!I||I.end!==!1)&&L!==r.stdout&&L!==r.stderr?re:be;function te(we,Se){d("onunpipe"),we===G&&Se&&Se.hasUnpiped===!1&&(Se.hasUnpiped=!0,d("cleanup"),L.removeListener("close",ue),L.removeListener("finish",ye),L.removeListener("drain",J),L.removeListener("error",fe),L.removeListener("unpipe",te),G.removeListener("end",re),G.removeListener("end",be),G.removeListener("data",ne),de=!0,!ee.awaitDrain||L._writableState&&!L._writableState.needDrain||J())}function re(){d("onend"),L.end()}ee.endEmitted?r.nextTick(se):G.once("end",se),L.on("unpipe",te);var J=(function(we){return function(){var Se=we._readableState;d("pipeOnDrain",Se.awaitDrain),Se.awaitDrain&&Se.awaitDrain--,Se.awaitDrain===0&&a(we,"data")&&(Se.flowing=!0,U(we))}})(G);L.on("drain",J);var de=!1;function ne(we){d("ondata");var Se=L.write(we);d("dest.write",Se),Se===!1&&((ee.pipesCount===1&&ee.pipes===L||ee.pipesCount>1&&X(ee.pipes,L)!==-1)&&!de&&(d("false write response, pause",ee.awaitDrain),ee.awaitDrain++),G.pause())}function fe(we){d("onerror",we),be(),L.removeListener("error",fe),a(L,"error")===0&&F(L,we)}function ue(){L.removeListener("finish",ye),be()}function ye(){d("onfinish"),L.removeListener("close",ue),be()}function be(){d("unpipe"),G.unpipe(L)}return G.on("data",ne),(function(we,Se,Pe){if(typeof we.prependListener=="function")return we.prependListener(Se,Pe);we._events&&we._events[Se]?Array.isArray(we._events[Se])?we._events[Se].unshift(Pe):we._events[Se]=[Pe,we._events[Se]]:we.on(Se,Pe)})(L,"error",fe),L.once("close",ue),L.once("finish",ye),L.emit("pipe",G),ee.flowing||(d("pipe resume"),G.resume()),L},D.prototype.unpipe=function(L){var I=this._readableState,G={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return L&&L!==I.pipes||(L||(L=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,L&&L.emit("unpipe",this,G)),this;if(!L){var ee=I.pipes,se=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var te=0;te<se;te++)ee[te].emit("unpipe",this,{hasUnpiped:!1});return this}var re=X(I.pipes,L);return re===-1||(I.pipes.splice(re,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),L.emit("unpipe",this,G)),this},D.prototype.on=function(L,I){var G=n.prototype.on.call(this,L,I),ee=this._readableState;return L==="data"?(ee.readableListening=this.listenerCount("readable")>0,ee.flowing!==!1&&this.resume()):L==="readable"&&(ee.endEmitted||ee.readableListening||(ee.readableListening=ee.needReadable=!0,ee.flowing=!1,ee.emittedReadable=!1,d("on readable",ee.length,ee.reading),ee.length?w(this):ee.reading||r.nextTick(j,this))),G},D.prototype.addListener=D.prototype.on,D.prototype.removeListener=function(L,I){var G=n.prototype.removeListener.call(this,L,I);return L==="readable"&&r.nextTick(T,this),G},D.prototype.removeAllListeners=function(L){var I=n.prototype.removeAllListeners.apply(this,arguments);return L!=="readable"&&L!==void 0||r.nextTick(T,this),I},D.prototype.resume=function(){var L=this._readableState;return L.flowing||(d("resume"),L.flowing=!L.readableListening,(function(I,G){G.resumeScheduled||(G.resumeScheduled=!0,r.nextTick(P,I,G))})(this,L)),L.paused=!1,this},D.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},D.prototype.wrap=function(L){var I=this,G=this._readableState,ee=!1;for(var se in L.on("end",(function(){if(d("wrapped end"),G.decoder&&!G.ended){var re=G.decoder.end();re&&re.length&&I.push(re)}I.push(null)})),L.on("data",(function(re){d("wrapped data"),G.decoder&&(re=G.decoder.write(re)),G.objectMode&&re==null||(G.objectMode||re&&re.length)&&(I.push(re)||(ee=!0,L.pause()))})),L)this[se]===void 0&&typeof L[se]=="function"&&(this[se]=(function(re){return function(){return L[re].apply(L,arguments)}})(se));for(var te=0;te<$.length;te++)L.on($[te],this.emit.bind(this,$[te]));return this._read=function(re){d("wrapped _read",re),ee&&(ee=!1,L.resume())},this},typeof Symbol=="function"&&(D.prototype[Symbol.asyncIterator]=function(){return g===void 0&&(g=e("./internal/streams/async_iterator")),g(this)}),Object.defineProperty(D.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(D.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(D.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),D._fromList=q,Object.defineProperty(D.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(D.from=function(L,I){return p===void 0&&(p=e("./internal/streams/from")),p(D,L,I)})}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/async_iterator":483,"./internal/streams/buffer_list":484,"./internal/streams/destroy":485,"./internal/streams/from":487,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,events:422,inherits:440,"string_decoder/":522,util:188}],481:[function(e,s,c){s.exports=d;var r=e("../errors").codes,o=r.ERR_METHOD_NOT_IMPLEMENTED,l=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=r.ERR_TRANSFORM_WITH_LENGTH_0,u=e("./_stream_duplex");function h(g,p){var v=this._transformState;v.transforming=!1;var b=v.writecb;if(b===null)return this.emit("error",new l);v.writechunk=null,v.writecb=null,p!=null&&this.push(p),b(g);var x=this._readableState;x.reading=!1,(x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}function d(g){if(!(this instanceof d))return new d(g);u.call(this,g),this._transformState={afterTransform:h.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,g&&(typeof g.transform=="function"&&(this._transform=g.transform),typeof g.flush=="function"&&(this._flush=g.flush)),this.on("prefinish",f)}function f(){var g=this;typeof this._flush!="function"||this._readableState.destroyed?m(this,null,null):this._flush((function(p,v){m(g,p,v)}))}function m(g,p,v){if(p)return g.emit("error",p);if(v!=null&&g.push(v),g._writableState.length)throw new n;if(g._transformState.transforming)throw new a;return g.push(null)}e("inherits")(d,u),d.prototype.push=function(g,p){return this._transformState.needTransform=!1,u.prototype.push.call(this,g,p)},d.prototype._transform=function(g,p,v){v(new o("_transform()"))},d.prototype._write=function(g,p,v){var b=this._transformState;if(b.writecb=v,b.writechunk=g,b.writeencoding=p,!b.transforming){var x=this._readableState;(b.needTransform||x.needReadable||x.length<x.highWaterMark)&&this._read(x.highWaterMark)}},d.prototype._read=function(g){var p=this._transformState;p.writechunk===null||p.transforming?p.needTransform=!0:(p.transforming=!0,this._transform(p.writechunk,p.writeencoding,p.afterTransform))},d.prototype._destroy=function(g,p){u.prototype._destroy.call(this,g,(function(v){p(v)}))}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,s,c){(function(r,o){(function(){function l(k){var T=this;this.next=null,this.entry=null,this.finish=function(){(function(j,P,U){var q=j.entry;for(j.entry=null;q;){var Z=q.callback;P.pendingcb--,Z(U),q=q.next}P.corkedRequestsFree.next=j})(T,k)}}var a;s.exports=D,D.WritableState=z;var n={deprecate:e("util-deprecate")},u=e("./internal/streams/stream"),h=e("buffer").Buffer,d=(o!==void 0?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},f,m=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,p=e("../errors").codes,v=p.ERR_INVALID_ARG_TYPE,b=p.ERR_METHOD_NOT_IMPLEMENTED,x=p.ERR_MULTIPLE_CALLBACK,A=p.ERR_STREAM_CANNOT_PIPE,M=p.ERR_STREAM_DESTROYED,V=p.ERR_STREAM_NULL_VALUES,W=p.ERR_STREAM_WRITE_AFTER_END,R=p.ERR_UNKNOWN_ENCODING,F=m.errorOrDestroy;function $(){}function z(k,T,j){a=a||e("./_stream_duplex"),k=k||{},typeof j!="boolean"&&(j=T instanceof a),this.objectMode=!!k.objectMode,j&&(this.objectMode=this.objectMode||!!k.writableObjectMode),this.highWaterMark=g(this,k,"writableHighWaterMark",j),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var P=k.decodeStrings===!1;this.decodeStrings=!P,this.defaultEncoding=k.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){(function(q,Z){var B=q._writableState,X=B.sync,L=B.writecb;if(typeof L!="function")throw new x;if((function(G){G.writing=!1,G.writecb=null,G.length-=G.writelen,G.writelen=0})(B),Z)(function(G,ee,se,te,re){--ee.pendingcb,se?(r.nextTick(re,te),r.nextTick(_,G,ee),G._writableState.errorEmitted=!0,F(G,te)):(re(te),G._writableState.errorEmitted=!0,F(G,te),_(G,ee))})(q,B,X,Z,L);else{var I=w(B)||q.destroyed;I||B.corked||B.bufferProcessing||!B.bufferedRequest||C(q,B),X?r.nextTick(E,q,B,I,L):E(q,B,I,L)}})(T,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=k.emitClose!==!1,this.autoDestroy=!!k.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new l(this)}function D(k){var T=this instanceof(a=a||e("./_stream_duplex"));if(!T&&!f.call(D,this))return new D(k);this._writableState=new z(k,this,T),this.writable=!0,k&&(typeof k.write=="function"&&(this._write=k.write),typeof k.writev=="function"&&(this._writev=k.writev),typeof k.destroy=="function"&&(this._destroy=k.destroy),typeof k.final=="function"&&(this._final=k.final)),u.call(this)}function N(k,T,j,P,U,q,Z){T.writelen=P,T.writecb=Z,T.writing=!0,T.sync=!0,T.destroyed?T.onwrite(new M("write")):j?k._writev(U,T.onwrite):k._write(U,q,T.onwrite),T.sync=!1}function E(k,T,j,P){j||(function(U,q){q.length===0&&q.needDrain&&(q.needDrain=!1,U.emit("drain"))})(k,T),T.pendingcb--,P(),_(k,T)}function C(k,T){T.bufferProcessing=!0;var j=T.bufferedRequest;if(k._writev&&j&&j.next){var P=T.bufferedRequestCount,U=new Array(P),q=T.corkedRequestsFree;q.entry=j;for(var Z=0,B=!0;j;)U[Z]=j,j.isBuf||(B=!1),j=j.next,Z+=1;U.allBuffers=B,N(k,T,!0,T.length,U,"",q.finish),T.pendingcb++,T.lastBufferedRequest=null,q.next?(T.corkedRequestsFree=q.next,q.next=null):T.corkedRequestsFree=new l(T),T.bufferedRequestCount=0}else{for(;j;){var X=j.chunk,L=j.encoding,I=j.callback;if(N(k,T,!1,T.objectMode?1:X.length,X,L,I),j=j.next,T.bufferedRequestCount--,T.writing)break}j===null&&(T.lastBufferedRequest=null)}T.bufferedRequest=j,T.bufferProcessing=!1}function w(k){return k.ending&&k.length===0&&k.bufferedRequest===null&&!k.finished&&!k.writing}function S(k,T){k._final((function(j){T.pendingcb--,j&&F(k,j),T.prefinished=!0,k.emit("prefinish"),_(k,T)}))}function _(k,T){var j=w(T);if(j&&((function(U,q){q.prefinished||q.finalCalled||(typeof U._final!="function"||q.destroyed?(q.prefinished=!0,U.emit("prefinish")):(q.pendingcb++,q.finalCalled=!0,r.nextTick(S,U,q)))})(k,T),T.pendingcb===0&&(T.finished=!0,k.emit("finish"),T.autoDestroy))){var P=k._readableState;(!P||P.autoDestroy&&P.endEmitted)&&k.destroy()}return j}e("inherits")(D,u),z.prototype.getBuffer=function(){for(var k=this.bufferedRequest,T=[];k;)T.push(k),k=k.next;return T},(function(){try{Object.defineProperty(z.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(D,Symbol.hasInstance,{value:function(k){return!!f.call(this,k)||this===D&&k&&k._writableState instanceof z}})):f=function(k){return k instanceof this},D.prototype.pipe=function(){F(this,new A)},D.prototype.write=function(k,T,j){var P,U=this._writableState,q=!1,Z=!U.objectMode&&(P=k,h.isBuffer(P)||P instanceof d);return Z&&!h.isBuffer(k)&&(k=(function(B){return h.from(B)})(k)),typeof T=="function"&&(j=T,T=null),Z?T="buffer":T||(T=U.defaultEncoding),typeof j!="function"&&(j=$),U.ending?(function(B,X){var L=new W;F(B,L),r.nextTick(X,L)})(this,j):(Z||(function(B,X,L,I){var G;return L===null?G=new V:typeof L=="string"||X.objectMode||(G=new v("chunk",["string","Buffer"],L)),!G||(F(B,G),r.nextTick(I,G),!1)})(this,U,k,j))&&(U.pendingcb++,q=(function(B,X,L,I,G,ee){if(!L){var se=(function(de,ne,fe){return de.objectMode||de.decodeStrings===!1||typeof ne!="string"||(ne=h.from(ne,fe)),ne})(X,I,G);I!==se&&(L=!0,G="buffer",I=se)}var te=X.objectMode?1:I.length;X.length+=te;var re=X.length<X.highWaterMark;if(re||(X.needDrain=!0),X.writing||X.corked){var J=X.lastBufferedRequest;X.lastBufferedRequest={chunk:I,encoding:G,isBuf:L,callback:ee,next:null},J?J.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else N(B,X,!1,te,I,G,ee);return re})(this,U,Z,k,T,j)),q},D.prototype.cork=function(){this._writableState.corked++},D.prototype.uncork=function(){var k=this._writableState;k.corked&&(k.corked--,k.writing||k.corked||k.bufferProcessing||!k.bufferedRequest||C(this,k))},D.prototype.setDefaultEncoding=function(k){if(typeof k=="string"&&(k=k.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((k+"").toLowerCase())>-1))throw new R(k);return this._writableState.defaultEncoding=k,this},Object.defineProperty(D.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(D.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),D.prototype._write=function(k,T,j){j(new b("_write()"))},D.prototype._writev=null,D.prototype.end=function(k,T,j){var P=this._writableState;return typeof k=="function"?(j=k,k=null,T=null):typeof T=="function"&&(j=T,T=null),k!=null&&this.write(k,T),P.corked&&(P.corked=1,this.uncork()),P.ending||(function(U,q,Z){q.ending=!0,_(U,q),Z&&(q.finished?r.nextTick(Z):U.once("finish",Z)),q.ended=!0,U.writable=!1})(this,P,j),this},Object.defineProperty(D.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(D.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(k){this._writableState&&(this._writableState.destroyed=k)}}),D.prototype.destroy=m.destroy,D.prototype._undestroy=m.undestroy,D.prototype._destroy=function(k,T){T(k)}}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{"../errors":477,"./_stream_duplex":478,"./internal/streams/destroy":485,"./internal/streams/state":489,"./internal/streams/stream":490,_process:467,buffer:220,inherits:440,"util-deprecate":524}],483:[function(e,s,c){(function(r){(function(){var o;function l(M,V,W){return(V=(function(R){var F=(function($,z){if(typeof $!="object"||$===null)return $;var D=$[Symbol.toPrimitive];if(D!==void 0){var N=D.call($,z);if(typeof N!="object")return N;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)($)})(R,"string");return typeof F=="symbol"?F:String(F)})(V))in M?Object.defineProperty(M,V,{value:W,enumerable:!0,configurable:!0,writable:!0}):M[V]=W,M}var a=e("./end-of-stream"),n=Symbol("lastResolve"),u=Symbol("lastReject"),h=Symbol("error"),d=Symbol("ended"),f=Symbol("lastPromise"),m=Symbol("handlePromise"),g=Symbol("stream");function p(M,V){return{value:M,done:V}}function v(M){var V=M[n];if(V!==null){var W=M[g].read();W!==null&&(M[f]=null,M[n]=null,M[u]=null,V(p(W,!1)))}}function b(M){r.nextTick(v,M)}var x=Object.getPrototypeOf((function(){})),A=Object.setPrototypeOf((l(o={get stream(){return this[g]},next:function(){var M=this,V=this[h];if(V!==null)return Promise.reject(V);if(this[d])return Promise.resolve(p(void 0,!0));if(this[g].destroyed)return new Promise((function($,z){r.nextTick((function(){M[h]?z(M[h]):$(p(void 0,!0))}))}));var W,R=this[f];if(R)W=new Promise((function($,z){return function(D,N){$.then((function(){z[d]?D(p(void 0,!0)):z[m](D,N)}),N)}})(R,this));else{var F=this[g].read();if(F!==null)return Promise.resolve(p(F,!1));W=new Promise(this[m])}return this[f]=W,W}},Symbol.asyncIterator,(function(){return this})),l(o,"return",(function(){var M=this;return new Promise((function(V,W){M[g].destroy(null,(function(R){R?W(R):V(p(void 0,!0))}))}))})),o),x);s.exports=function(M){var V,W=Object.create(A,(l(V={},g,{value:M,writable:!0}),l(V,n,{value:null,writable:!0}),l(V,u,{value:null,writable:!0}),l(V,h,{value:null,writable:!0}),l(V,d,{value:M._readableState.endEmitted,writable:!0}),l(V,m,{value:function(R,F){var $=W[g].read();$?(W[f]=null,W[n]=null,W[u]=null,R(p($,!1))):(W[n]=R,W[u]=F)},writable:!0}),V));return W[f]=null,a(M,(function(R){if(R&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"){var F=W[u];return F!==null&&(W[f]=null,W[n]=null,W[u]=null,F(R)),void(W[h]=R)}var $=W[n];$!==null&&(W[f]=null,W[n]=null,W[u]=null,$(p(void 0,!0))),W[d]=!0})),M.on("readable",b.bind(null,W)),W}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,s,c){function r(f,m){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);m&&(p=p.filter((function(v){return Object.getOwnPropertyDescriptor(f,v).enumerable}))),g.push.apply(g,p)}return g}function o(f){for(var m=1;m<arguments.length;m++){var g=arguments[m]!=null?arguments[m]:{};m%2?r(Object(g),!0).forEach((function(p){l(f,p,g[p])})):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(g)):r(Object(g)).forEach((function(p){Object.defineProperty(f,p,Object.getOwnPropertyDescriptor(g,p))}))}return f}function l(f,m,g){return(m=n(m))in f?Object.defineProperty(f,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[m]=g,f}function a(f,m){for(var g=0;g<m.length;g++){var p=m[g];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(f,n(p.key),p)}}function n(f){var m=(function(g,p){if(typeof g!="object"||g===null)return g;var v=g[Symbol.toPrimitive];if(v!==void 0){var b=v.call(g,p);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(p==="string"?String:Number)(g)})(f,"string");return typeof m=="symbol"?m:String(m)}var u=e("buffer").Buffer,h=e("util").inspect,d=h&&h.custom||"inspect";s.exports=(function(){function f(){(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,f),this.head=null,this.tail=null,this.length=0}var m,g;return m=f,(g=[{key:"push",value:function(p){var v={data:p,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(p){var v={data:p,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var p=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,p}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(p){if(this.length===0)return"";for(var v=this.head,b=""+v.data;v=v.next;)b+=p+v.data;return b}},{key:"concat",value:function(p){if(this.length===0)return u.alloc(0);for(var v,b,x,A=u.allocUnsafe(p>>>0),M=this.head,V=0;M;)v=M.data,b=A,x=V,u.prototype.copy.call(v,b,x),V+=M.data.length,M=M.next;return A}},{key:"consume",value:function(p,v){var b;return p<this.head.data.length?(b=this.head.data.slice(0,p),this.head.data=this.head.data.slice(p)):b=p===this.head.data.length?this.shift():v?this._getString(p):this._getBuffer(p),b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(p){var v=this.head,b=1,x=v.data;for(p-=x.length;v=v.next;){var A=v.data,M=p>A.length?A.length:p;if(M===A.length?x+=A:x+=A.slice(0,p),(p-=M)==0){M===A.length?(++b,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=A.slice(M));break}++b}return this.length-=b,x}},{key:"_getBuffer",value:function(p){var v=u.allocUnsafe(p),b=this.head,x=1;for(b.data.copy(v),p-=b.data.length;b=b.next;){var A=b.data,M=p>A.length?A.length:p;if(A.copy(v,v.length-p,0,M),(p-=M)==0){M===A.length?(++x,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=A.slice(M));break}++x}return this.length-=x,v}},{key:d,value:function(p,v){return h(this,o(o({},v),{},{depth:0,customInspect:!1}))}}])&&a(m.prototype,g),Object.defineProperty(m,"prototype",{writable:!1}),f})()},{buffer:220,util:188}],485:[function(e,s,c){(function(r){(function(){function o(n,u){a(n,u),l(n)}function l(n){n._writableState&&!n._writableState.emitClose||n._readableState&&!n._readableState.emitClose||n.emit("close")}function a(n,u){n.emit("error",u)}s.exports={destroy:function(n,u){var h=this,d=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return d||f?(u?u(n):n&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(a,this,n)):r.nextTick(a,this,n)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(n||null,(function(m){!u&&m?h._writableState?h._writableState.errorEmitted?r.nextTick(l,h):(h._writableState.errorEmitted=!0,r.nextTick(o,h,m)):r.nextTick(o,h,m):u?(r.nextTick(l,h),u(m)):r.nextTick(l,h)})),this)},undestroy:function(){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)},errorOrDestroy:function(n,u){var h=n._readableState,d=n._writableState;h&&h.autoDestroy||d&&d.autoDestroy?n.destroy(u):n.emit("error",u)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,s,c){var r=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}s.exports=function l(a,n,u){if(typeof n=="function")return l(a,null,n);n||(n={}),u=(function(M){var V=!1;return function(){if(!V){V=!0;for(var W=arguments.length,R=new Array(W),F=0;F<W;F++)R[F]=arguments[F];M.apply(this,R)}}})(u||o);var h=n.readable||n.readable!==!1&&a.readable,d=n.writable||n.writable!==!1&&a.writable,f=function(){a.writable||g()},m=a._writableState&&a._writableState.finished,g=function(){d=!1,m=!0,h||u.call(a)},p=a._readableState&&a._readableState.endEmitted,v=function(){h=!1,p=!0,d||u.call(a)},b=function(M){u.call(a,M)},x=function(){var M;return h&&!p?(a._readableState&&a._readableState.ended||(M=new r),u.call(a,M)):d&&!m?(a._writableState&&a._writableState.ended||(M=new r),u.call(a,M)):void 0},A=function(){a.req.on("finish",g)};return(function(M){return M.setHeader&&typeof M.abort=="function"})(a)?(a.on("complete",g),a.on("abort",x),a.req?A():a.on("request",A)):d&&!a._writableState&&(a.on("end",f),a.on("close",f)),a.on("end",v),a.on("finish",g),n.error!==!1&&a.on("error",b),a.on("close",x),function(){a.removeListener("complete",g),a.removeListener("abort",x),a.removeListener("request",A),a.req&&a.req.removeListener("finish",g),a.removeListener("end",f),a.removeListener("close",f),a.removeListener("finish",g),a.removeListener("end",v),a.removeListener("error",b),a.removeListener("close",x)}}},{"../../../errors":477}],487:[function(e,s,c){s.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,s,c){var r,o=e("../../../errors").codes,l=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function n(m){if(m)throw m}function u(m,g,p,v){v=(function(A){var M=!1;return function(){M||(M=!0,A.apply(void 0,arguments))}})(v);var b=!1;m.on("close",(function(){b=!0})),r===void 0&&(r=e("./end-of-stream")),r(m,{readable:g,writable:p},(function(A){if(A)return v(A);b=!0,v()}));var x=!1;return function(A){if(!b&&!x)return x=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(m)?m.abort():typeof m.destroy=="function"?m.destroy():void v(A||new a("pipe"))}}function h(m){m()}function d(m,g){return m.pipe(g)}function f(m){return m.length?typeof m[m.length-1]!="function"?n:m.pop():n}s.exports=function(){for(var m=arguments.length,g=new Array(m),p=0;p<m;p++)g[p]=arguments[p];var v,b=f(g);if(Array.isArray(g[0])&&(g=g[0]),g.length<2)throw new l("streams");var x=g.map((function(A,M){var V=M<g.length-1;return u(A,V,M>0,(function(W){v||(v=W),W&&x.forEach(h),V||(x.forEach(h),b(v))}))}));return g.reduce(d)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,s,c){var r=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;s.exports={getHighWaterMark:function(o,l,a,n){var u=(function(h,d,f){return h.highWaterMark!=null?h.highWaterMark:d?h[f]:null})(l,n,a);if(u!=null){if(!isFinite(u)||Math.floor(u)!==u||u<0)throw new r(n?a:"highWaterMark",u);return Math.floor(u)}return o.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,s,c){s.exports=e("events").EventEmitter},{events:422}],491:[function(e,s,c){(c=s.exports=e("./lib/_stream_readable.js")).Stream=c,c.Readable=c,c.Writable=e("./lib/_stream_writable.js"),c.Duplex=e("./lib/_stream_duplex.js"),c.Transform=e("./lib/_stream_transform.js"),c.PassThrough=e("./lib/_stream_passthrough.js"),c.finished=e("./lib/internal/streams/end-of-stream.js"),c.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":478,"./lib/_stream_passthrough.js":479,"./lib/_stream_readable.js":480,"./lib/_stream_transform.js":481,"./lib/_stream_writable.js":482,"./lib/internal/streams/end-of-stream.js":486,"./lib/internal/streams/pipeline.js":488}],492:[function(e,s,c){var r=(function(o){var l=Object.prototype,a=l.hasOwnProperty,n=Object.defineProperty||function(_,k,T){_[k]=T.value},u=typeof Symbol=="function"?Symbol:{},h=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function m(_,k,T){return Object.defineProperty(_,k,{value:T,enumerable:!0,configurable:!0,writable:!0}),_[k]}try{m({},"")}catch{m=function(k,T,j){return k[T]=j}}function g(_,k,T,j){var P=k&&k.prototype instanceof b?k:b,U=Object.create(P.prototype),q=new C(j||[]);return n(U,"_invoke",{value:z(_,T,q)}),U}function p(_,k,T){try{return{type:"normal",arg:_.call(k,T)}}catch(j){return{type:"throw",arg:j}}}o.wrap=g;var v={};function b(){}function x(){}function A(){}var M={};m(M,h,(function(){return this}));var V=Object.getPrototypeOf,W=V&&V(V(w([])));W&&W!==l&&a.call(W,h)&&(M=W);var R=A.prototype=b.prototype=Object.create(M);function F(_){["next","throw","return"].forEach((function(k){m(_,k,(function(T){return this._invoke(k,T)}))}))}function $(_,k){var T;n(this,"_invoke",{value:function(j,P){function U(){return new k((function(q,Z){(function B(X,L,I,G){var ee=p(_[X],_,L);if(ee.type!=="throw"){var se=ee.arg,te=se.value;return te&&typeof te=="object"&&a.call(te,"__await")?k.resolve(te.__await).then((function(re){B("next",re,I,G)}),(function(re){B("throw",re,I,G)})):k.resolve(te).then((function(re){se.value=re,I(se)}),(function(re){return B("throw",re,I,G)}))}G(ee.arg)})(j,P,q,Z)}))}return T=T?T.then(U,U):U()}})}function z(_,k,T){var j="suspendedStart";return function(P,U){if(j==="executing")throw new Error("Generator is already running");if(j==="completed"){if(P==="throw")throw U;return S()}for(T.method=P,T.arg=U;;){var q=T.delegate;if(q){var Z=D(q,T);if(Z){if(Z===v)continue;return Z}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(j==="suspendedStart")throw j="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);j="executing";var B=p(_,k,T);if(B.type==="normal"){if(j=T.done?"completed":"suspendedYield",B.arg===v)continue;return{value:B.arg,done:T.done}}B.type==="throw"&&(j="completed",T.method="throw",T.arg=B.arg)}}}function D(_,k){var T=k.method,j=_.iterator[T];if(j===void 0)return k.delegate=null,T==="throw"&&_.iterator.return&&(k.method="return",k.arg=void 0,D(_,k),k.method==="throw")||T!=="return"&&(k.method="throw",k.arg=new TypeError("The iterator does not provide a '"+T+"' method")),v;var P=p(j,_.iterator,k.arg);if(P.type==="throw")return k.method="throw",k.arg=P.arg,k.delegate=null,v;var U=P.arg;return U?U.done?(k[_.resultName]=U.value,k.next=_.nextLoc,k.method!=="return"&&(k.method="next",k.arg=void 0),k.delegate=null,v):U:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,v)}function N(_){var k={tryLoc:_[0]};1 in _&&(k.catchLoc=_[1]),2 in _&&(k.finallyLoc=_[2],k.afterLoc=_[3]),this.tryEntries.push(k)}function E(_){var k=_.completion||{};k.type="normal",delete k.arg,_.completion=k}function C(_){this.tryEntries=[{tryLoc:"root"}],_.forEach(N,this),this.reset(!0)}function w(_){if(_){var k=_[h];if(k)return k.call(_);if(typeof _.next=="function")return _;if(!isNaN(_.length)){var T=-1,j=function P(){for(;++T<_.length;)if(a.call(_,T))return P.value=_[T],P.done=!1,P;return P.value=void 0,P.done=!0,P};return j.next=j}}return{next:S}}function S(){return{value:void 0,done:!0}}return x.prototype=A,n(R,"constructor",{value:A,configurable:!0}),n(A,"constructor",{value:x,configurable:!0}),x.displayName=m(A,f,"GeneratorFunction"),o.isGeneratorFunction=function(_){var k=typeof _=="function"&&_.constructor;return!!k&&(k===x||(k.displayName||k.name)==="GeneratorFunction")},o.mark=function(_){return Object.setPrototypeOf?Object.setPrototypeOf(_,A):(_.__proto__=A,m(_,f,"GeneratorFunction")),_.prototype=Object.create(R),_},o.awrap=function(_){return{__await:_}},F($.prototype),m($.prototype,d,(function(){return this})),o.AsyncIterator=$,o.async=function(_,k,T,j,P){P===void 0&&(P=Promise);var U=new $(g(_,k,T,j),P);return o.isGeneratorFunction(k)?U:U.next().then((function(q){return q.done?q.value:U.next()}))},F(R),m(R,f,"Generator"),m(R,h,(function(){return this})),m(R,"toString",(function(){return"[object Generator]"})),o.keys=function(_){var k=Object(_),T=[];for(var j in k)T.push(j);return T.reverse(),function P(){for(;T.length;){var U=T.pop();if(U in k)return P.value=U,P.done=!1,P}return P.done=!0,P}},o.values=w,C.prototype={constructor:C,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!_)for(var k in this)k.charAt(0)==="t"&&a.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var k=this;function T(B,X){return U.type="throw",U.arg=_,k.next=B,X&&(k.method="next",k.arg=void 0),!!X}for(var j=this.tryEntries.length-1;j>=0;--j){var P=this.tryEntries[j],U=P.completion;if(P.tryLoc==="root")return T("end");if(P.tryLoc<=this.prev){var q=a.call(P,"catchLoc"),Z=a.call(P,"finallyLoc");if(q&&Z){if(this.prev<P.catchLoc)return T(P.catchLoc,!0);if(this.prev<P.finallyLoc)return T(P.finallyLoc)}else if(q){if(this.prev<P.catchLoc)return T(P.catchLoc,!0)}else{if(!Z)throw new Error("try statement without catch or finally");if(this.prev<P.finallyLoc)return T(P.finallyLoc)}}}},abrupt:function(_,k){for(var T=this.tryEntries.length-1;T>=0;--T){var j=this.tryEntries[T];if(j.tryLoc<=this.prev&&a.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var P=j;break}}P&&(_==="break"||_==="continue")&&P.tryLoc<=k&&k<=P.finallyLoc&&(P=null);var U=P?P.completion:{};return U.type=_,U.arg=k,P?(this.method="next",this.next=P.finallyLoc,v):this.complete(U)},complete:function(_,k){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&k&&(this.next=k),v},finish:function(_){for(var k=this.tryEntries.length-1;k>=0;--k){var T=this.tryEntries[k];if(T.finallyLoc===_)return this.complete(T.completion,T.afterLoc),E(T),v}},catch:function(_){for(var k=this.tryEntries.length-1;k>=0;--k){var T=this.tryEntries[k];if(T.tryLoc===_){var j=T.completion;if(j.type==="throw"){var P=j.arg;E(T)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(_,k,T){return this.delegate={iterator:w(_),resultName:k,nextLoc:T},this.method==="next"&&(this.arg=void 0),v}},o})(typeof s=="object"?s.exports:{});try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},{}],493:[function(e,s,c){var r=e("buffer").Buffer,o=e("inherits"),l=e("hash-base"),a=new Array(16),n=[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],u=[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],h=[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],d=[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],f=[0,1518500249,1859775393,2400959708,2840853838],m=[1352829926,1548603684,1836072691,2053994217,0];function g(){l.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(V,W){return V<<W|V>>>32-W}function v(V,W,R,F,$,z,D,N){return p(V+(W^R^F)+z+D|0,N)+$|0}function b(V,W,R,F,$,z,D,N){return p(V+(W&R|~W&F)+z+D|0,N)+$|0}function x(V,W,R,F,$,z,D,N){return p(V+((W|~R)^F)+z+D|0,N)+$|0}function A(V,W,R,F,$,z,D,N){return p(V+(W&F|R&~F)+z+D|0,N)+$|0}function M(V,W,R,F,$,z,D,N){return p(V+(W^(R|~F))+z+D|0,N)+$|0}o(g,l),g.prototype._update=function(){for(var V=a,W=0;W<16;++W)V[W]=this._block.readInt32LE(4*W);for(var R=0|this._a,F=0|this._b,$=0|this._c,z=0|this._d,D=0|this._e,N=0|this._a,E=0|this._b,C=0|this._c,w=0|this._d,S=0|this._e,_=0;_<80;_+=1){var k,T;_<16?(k=v(R,F,$,z,D,V[n[_]],f[0],h[_]),T=M(N,E,C,w,S,V[u[_]],m[0],d[_])):_<32?(k=b(R,F,$,z,D,V[n[_]],f[1],h[_]),T=A(N,E,C,w,S,V[u[_]],m[1],d[_])):_<48?(k=x(R,F,$,z,D,V[n[_]],f[2],h[_]),T=x(N,E,C,w,S,V[u[_]],m[2],d[_])):_<64?(k=A(R,F,$,z,D,V[n[_]],f[3],h[_]),T=b(N,E,C,w,S,V[u[_]],m[3],d[_])):(k=M(R,F,$,z,D,V[n[_]],f[4],h[_]),T=v(N,E,C,w,S,V[u[_]],m[4],d[_])),R=D,D=z,z=p($,10),$=F,F=k,N=S,S=w,w=p(C,10),C=E,E=T}var j=this._b+$+w|0;this._b=this._c+z+S|0,this._c=this._d+D+N|0,this._d=this._e+R+E|0,this._e=this._a+F+C|0,this._a=j},g.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var V=r.alloc?r.alloc(20):new r(20);return V.writeInt32LE(this._a,0),V.writeInt32LE(this._b,4),V.writeInt32LE(this._c,8),V.writeInt32LE(this._d,12),V.writeInt32LE(this._e,16),V},s.exports=g},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,s,c){var r=e("buffer"),o=r.Buffer;function l(n,u){for(var h in n)u[h]=n[h]}function a(n,u,h){return o(n,u,h)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?s.exports=r:(l(r,c),c.Buffer=a),a.prototype=Object.create(o.prototype),l(o,a),a.from=function(n,u,h){if(typeof n=="number")throw new TypeError("Argument must not be a number");return o(n,u,h)},a.alloc=function(n,u,h){if(typeof n!="number")throw new TypeError("Argument must be a number");var d=o(n);return u!==void 0?typeof h=="string"?d.fill(u,h):d.fill(u):d.fill(0),d},a.allocUnsafe=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return o(n)},a.allocUnsafeSlow=function(n){if(typeof n!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(n)}},{buffer:220}],495:[function(e,s,c){(function(r){(function(){var o,l=e("buffer"),a=l.Buffer,n={};for(o in l)l.hasOwnProperty(o)&&o!=="SlowBuffer"&&o!=="Buffer"&&(n[o]=l[o]);var u=n.Buffer={};for(o in a)a.hasOwnProperty(o)&&o!=="allocUnsafe"&&o!=="allocUnsafeSlow"&&(u[o]=a[o]);if(n.Buffer.prototype=a.prototype,u.from&&u.from!==Uint8Array.from||(u.from=function(h,d,f){if(typeof h=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof h);if(h&&h.length===void 0)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof h);return a(h,d,f)}),u.alloc||(u.alloc=function(h,d,f){if(typeof h!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof h);if(h<0||h>=2*(1<<30))throw new RangeError('The value "'+h+'" is invalid for option "size"');var m=a(h);return d&&d.length!==0?typeof f=="string"?m.fill(d,f):m.fill(d):m.fill(0),m}),!n.kStringMaxLength)try{n.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch{}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0});const r=e("xmlchars/xml/1.0/ed5"),o=e("xmlchars/xml/1.1/ed2"),l=e("xmlchars/xmlns/1.0/ed3");var a=r.isS,n=r.isChar,u=r.isNameStartChar,h=r.isNameChar,d=r.S_LIST,f=r.NAME_RE,m=o.isChar,g=l.isNCNameStartChar,p=l.isNCNameChar,v=l.NC_NAME_RE;const b="http://www.w3.org/XML/1998/namespace",x="http://www.w3.org/2000/xmlns/",A={__proto__:null,xml:b,xmlns:x},M={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},V=w=>w===34||w===39,W=[34,39],R=[...W,91,62],F=[...W,60,93],$=[61,63,...d],z=[...d,62,38,60];function D(w,S,_){switch(S){case"xml":_!==b&&w.fail(`xml prefix must be bound to ${b}.`);break;case"xmlns":_!==x&&w.fail(`xmlns prefix must be bound to ${x}.`)}switch(_){case x:w.fail(S===""?`the default namespace may not be set to ${_}.`:`may not assign a prefix (even "xmlns") to the URI ${x}.`);break;case b:switch(S){case"xml":break;case"":w.fail(`the default namespace may not be set to ${_}.`);break;default:w.fail("may not assign the xml namespace to another prefix.")}}}const N=w=>v.test(w),E=w=>f.test(w);c.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const C={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};c.SaxesParser=class{constructor(w){this.opt=w??{},this.fragmentOpt=!!this.opt.fragment;const S=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,S){this.nameStartCheck=g,this.nameCheck=p,this.isName=N,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},A);const _=this.opt.additionalNamespaces;_!=null&&((function(k,T){for(const j of Object.keys(T))D(k,j,T[j])})(this,_),Object.assign(this.ns,_))}else this.nameStartCheck=u,this.nameCheck=h,this.isName=E,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){var w;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:S}=this;this.state=S?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=S,this.xmlDeclPossible=!S,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:_}=this.opt;if(_===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");_="1.0"}this.setXMLVersion(_),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(M),(w=this.readyHandler)===null||w===void 0||w.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(w,S){this[C[w]]=S}off(w){this[C[w]]=void 0}makeError(w){var S;let _=(S=this.fileName)!==null&&S!==void 0?S:"";return this.trackPosition&&(_.length>0&&(_+=":"),_+=`${this.line}:${this.column}`),_.length>0&&(_+=": "),new Error(_+w)}fail(w){const S=this.makeError(w),_=this.errorHandler;if(_===void 0)throw S;return _(S),this}write(w){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let S=!1;w===null?(S=!0,w=""):typeof w=="object"&&(w=w.toString()),this.carriedFromPrevious!==void 0&&(w=`${this.carriedFromPrevious}${w}`,this.carriedFromPrevious=void 0);let _=w.length;const k=w.charCodeAt(_-1);!S&&(k===13||k>=55296&&k<=56319)&&(this.carriedFromPrevious=w[_-1],_--,w=w.slice(0,_));const{stateTable:T}=this;for(this.chunk=w,this.i=0;this.i<_;)T[this.state].call(this);return this.chunkPosition+=_,S?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:w,i:S}=this;if(this.prevI=S,this.i=S+1,S>=w.length)return-1;const _=w.charCodeAt(S);if(this.column++,_<55296){if(_>=32||_===9)return _;switch(_){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return w.charCodeAt(S+1)===10&&(this.i=S+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),_}}if(_>56319)return _>=57344&&_<=65533||this.fail("disallowed character."),_;const k=65536+1024*(_-55296)+(w.charCodeAt(S+1)-56320);return this.i=S+2,k>1114111&&this.fail("disallowed character."),k}getCode11(){const{chunk:w,i:S}=this;if(this.prevI=S,this.i=S+1,S>=w.length)return-1;const _=w.charCodeAt(S);if(this.column++,_<55296){if(_>31&&_<127||_>159&&_!==8232||_===9)return _;switch(_){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const T=w.charCodeAt(S+1);T!==10&&T!==133||(this.i=S+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),_}}if(_>56319)return _>=57344&&_<=65533||this.fail("disallowed character."),_;const k=65536+1024*(_-55296)+(w.charCodeAt(S+1)-56320);return this.i=S+2,k>1114111&&this.fail("disallowed character."),k}getCodeNorm(){const w=this.getCode();return w===-2?10:w}unget(){this.i=this.prevI,this.column--}captureTo(w){let{i:S}=this;const{chunk:_}=this;for(;;){const k=this.getCode(),T=k===-2,j=T?10:k;if(j===-1||w.includes(j))return this.text+=_.slice(S,this.prevI),j;T&&(this.text+=_.slice(S,this.prevI)+`
92
+ `,S=this.i)}}captureToChar(w){let{i:S}=this;const{chunk:_}=this;for(;;){let k=this.getCode();switch(k){case-2:this.text+=_.slice(S,this.prevI)+`
93
+ `,S=this.i,k=10;break;case-1:return this.text+=_.slice(S),!1}if(k===w)return this.text+=_.slice(S,this.prevI),!0}}captureNameChars(){const{chunk:w,i:S}=this;for(;;){const _=this.getCode();if(_===-1)return this.name+=w.slice(S),-1;if(!h(_))return this.name+=w.slice(S,this.prevI),_===-2?10:_}}skipSpaces(){for(;;){const w=this.getCodeNorm();if(w===-1||!a(w))return w}}setXMLVersion(w){this.currentXMLVersion=w,w==="1.0"?(this.isChar=n,this.getCode=this.getCode10):(this.isChar=m,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const w=this.i,S=this.skipSpaces();switch(this.prevI!==w&&(this.xmlDeclPossible=!1),S){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var w;const S=this.captureTo(R);switch(S){case 62:(w=this.doctypeHandler)===null||w===void 0||w.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(S),S===91?this.state=4:V(S)&&(this.state=3,this.q=S)}}sDoctypeQuote(){const w=this.q;this.captureToChar(w)&&(this.text+=String.fromCodePoint(w),this.q=null,this.state=2)}sDTD(){const w=this.captureTo(F);w!==-1&&(this.text+=String.fromCodePoint(w),w===93?this.state=2:w===60?this.state=6:V(w)&&(this.state=5,this.q=w))}sDTDQuoted(){const w=this.q;this.captureToChar(w)&&(this.text+=String.fromCodePoint(w),this.state=4,this.q=null)}sDTDOpenWaka(){const w=this.getCodeNorm();switch(this.text+=String.fromCodePoint(w),w){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const w=String.fromCodePoint(this.getCodeNorm()),S=this.openWakaBang+=w;this.text+=w,S!=="-"&&(this.state=S==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const w=this.getCodeNorm();this.text+=String.fromCodePoint(w),this.state=w===45?10:8}sDTDCommentEnded(){const w=this.getCodeNorm();this.text+=String.fromCodePoint(w),w===62?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const w=this.getCodeNorm();this.text+=String.fromCodePoint(w),w===62&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:w}=this;const{chunk:S}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=S.slice(w,this.prevI)+`
94
+ `,w=this.i;break;case 59:{const{entityReturnState:_}=this,k=this.entity+S.slice(w,this.prevI);let T;this.state=_,k===""?(this.fail("empty entity name."),T="&;"):(T=this.parseEntity(k),this.entity=""),_===13&&this.textHandler===void 0||(this.text+=T);break e}case-1:this.entity+=S.slice(w);break e}}sOpenWaka(){const w=this.getCode();if(u(w))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(w){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case 63:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){var w;const S=this.getCodeNorm();S===45?(this.state=19,(w=this.commentHandler)===null||w===void 0||w.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(S),this.state=17)}sCommentEnded(){const w=this.getCodeNorm();w!==62?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(w),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const w=this.getCodeNorm();w===93?this.state=22:(this.text+="]"+String.fromCodePoint(w),this.state=20)}sCDataEnding2(){var w;const S=this.getCodeNorm();switch(S){case 62:(w=this.cdataHandler)===null||w===void 0||w.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(S),this.state=20}}sPIFirstChar(){const w=this.getCodeNorm();this.nameStartCheck(w)?(this.piTarget+=String.fromCodePoint(w),this.state=24):w===63||a(w)?(this.fail("processing instruction without a target."),this.state=w===63?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(w),this.state=24)}sPIRest(){const{chunk:w,i:S}=this;for(;;){const _=this.getCodeNorm();if(_===-1)return void(this.piTarget+=w.slice(S));if(!this.nameCheck(_)){this.piTarget+=w.slice(S,this.prevI);const k=_===63;k||a(_)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=k?33:27):this.state=k?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(_));break}}}sPIBody(){if(this.text.length===0){const w=this.getCodeNorm();w===63?this.state=26:a(w)||(this.text=String.fromCodePoint(w))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var w;const S=this.getCodeNorm();if(S===62){const{piTarget:_}=this;_.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(w=this.piHandler)===null||w===void 0||w.call(this,{target:_,body:this.text}),this.piTarget=this.text="",this.state=13}else S===63?this.text+="?":(this.text+="?"+String.fromCodePoint(S),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const w=this.skipSpaces();w!==63?w!==-1&&(this.state=28,this.name=String.fromCodePoint(w)):this.state=33}sXMLDeclName(){const w=this.captureTo($);if(w===63)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(a(w)||w===61){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail("expected one of "+this.xmlDeclExpects.join(", "))}this.state=w===61?30:29}}sXMLDeclEq(){const w=this.getCodeNorm();if(w===63)return this.state=33,void this.fail("XML declaration is incomplete.");a(w)||(w!==61&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const w=this.getCodeNorm();if(w===63)return this.state=33,void this.fail("XML declaration is incomplete.");a(w)||(V(w)?this.q=w:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const w=this.captureTo([this.q,63]);if(w===63)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(w===-1)return;const S=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const _=S;this.xmlDecl.version=_,/^1\.[0-9]+$/.test(_)?this.opt.forceXMLVersion||this.setXMLVersion(_):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(S)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=S;break;case"standalone":S!=="yes"&&S!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=S}this.name="",this.state=32}sXMLDeclSeparator(){const w=this.getCodeNorm();w!==63?(a(w)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var w;this.getCodeNorm()===62?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),(w=this.xmldeclHandler)===null||w===void 0||w.call(this,this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=13):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){var w;const S=this.captureNameChars();if(S===-1)return;const _=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=_.ns=Object.create(null)),(w=this.openTagStartHandler)===null||w===void 0||w.call(this,_),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),S){case 62:this.openTag();break;case 47:this.state=35;break;default:a(S)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===62?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const w=this.skipSpaces();w!==-1&&(u(w)?(this.unget(),this.state=37):w===62?this.openTag():w===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const w=this.captureNameChars();w===61?this.state=39:a(w)?this.state=38:w===62?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):w!==-1&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const w=this.skipSpaces();switch(w){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",w===62?this.openTag():u(w)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const w=this.getCodeNorm();V(w)?(this.q=w,this.state=40):a(w)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:w,chunk:S}=this;let{i:_}=this;for(;;)switch(this.getCode()){case w:return this.pushAttrib(this.name,this.text+S.slice(_,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=S.slice(_,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=S.slice(_,this.prevI)+" ",_=this.i;break;case 60:return this.text+=S.slice(_,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=S.slice(_))}}sAttribValueClosed(){const w=this.getCodeNorm();a(w)?this.state=36:w===62?this.openTag():w===47?this.state=35:u(w)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const w=this.captureTo(z);switch(w){case 38:this.state=14,this.entityReturnState=42;break;case 60:this.fail("disallowed character.");break;case-1:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",w===62?this.openTag():this.state=36}}sCloseTag(){const w=this.captureNameChars();w===62?this.closeTag():a(w)?this.state=44:w!==-1&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case 62:this.closeTag();break;case-1:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:w,forbiddenState:S}=this;const{chunk:_,textHandler:k}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,k!==void 0){const{text:T}=this,j=_.slice(w,this.prevI);T.length!==0?(k(T+j),this.text=""):j.length!==0&&k(j)}S=0;break e;case 38:this.state=14,this.entityReturnState=13,k!==void 0&&(this.text+=_.slice(w,this.prevI)),S=0;break e;case 93:switch(S){case 0:S=1;break;case 1:S=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:S===2&&this.fail('the string "]]>" is disallowed in char data.'),S=0;break;case-2:k!==void 0&&(this.text+=_.slice(w,this.prevI)+`
95
+ `),w=this.i,S=0;break;case-1:k!==void 0&&(this.text+=_.slice(w));break e;default:S=0}this.forbiddenState=S}handleTextOutsideRoot(){let{i:w}=this;const{chunk:S,textHandler:_}=this;let k=!1;e:for(;;){const T=this.getCode();switch(T){case 60:if(this.state=15,_!==void 0){const{text:j}=this,P=S.slice(w,this.prevI);j.length!==0?(_(j+P),this.text=""):P.length!==0&&_(P)}break e;case 38:this.state=14,this.entityReturnState=13,_!==void 0&&(this.text+=S.slice(w,this.prevI)),k=!0;break e;case-2:_!==void 0&&(this.text+=S.slice(w,this.prevI)+`
96
+ `),w=this.i;break;case-1:_!==void 0&&(this.text+=S.slice(w));break e;default:a(T)||(k=!0)}}k&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(w,S){var _;const{prefix:k,local:T}=this.qname(w),j={name:w,prefix:k,local:T,value:S};if(this.attribList.push(j),(_=this.attributeHandler)===null||_===void 0||_.call(this,j),k==="xmlns"){const P=S.trim();this.currentXMLVersion==="1.0"&&P===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[T]=P,D(this,T,P)}else if(w==="xmlns"){const P=S.trim();this.topNS[""]=P,D(this,"",P)}}pushAttribPlain(w,S){var _;const k={name:w,value:S};this.attribList.push(k),(_=this.attributeHandler)===null||_===void 0||_.call(this,k)}end(){var w,S;this.sawRoot||this.fail("document must contain a root element.");const{tags:_}=this;for(;_.length>0;){const T=_.pop();this.fail("unclosed tag: "+T.name)}this.state!==0&&this.state!==13&&this.fail("unexpected end.");const{text:k}=this;return k.length!==0&&((w=this.textHandler)===null||w===void 0||w.call(this,k),this.text=""),this._closed=!0,(S=this.endHandler)===null||S===void 0||S.call(this),this._init(),this}resolve(w){var S,_;let k=this.topNS[w];if(k!==void 0)return k;const{tags:T}=this;for(let j=T.length-1;j>=0;j--)if(k=T[j].ns[w],k!==void 0)return k;return k=this.ns[w],k!==void 0?k:(_=(S=this.opt).resolvePrefix)===null||_===void 0?void 0:_.call(S,w)}qname(w){const S=w.indexOf(":");if(S===-1)return{prefix:"",local:w};const _=w.slice(S+1),k=w.slice(0,S);return(k===""||_===""||_.includes(":"))&&this.fail(`malformed name: ${w}.`),{prefix:k,local:_}}processAttribsNS(){var w;const{attribList:S}=this,_=this.tag;{const{prefix:j,local:P}=this.qname(_.name);_.prefix=j,_.local=P;const U=_.uri=(w=this.resolve(j))!==null&&w!==void 0?w:"";j!==""&&(j==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),U===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(j)}.`),_.uri=j))}if(S.length===0)return;const{attributes:k}=_,T=new Set;for(const j of S){const{name:P,prefix:U,local:q}=j;let Z,B;U===""?(Z=P==="xmlns"?x:"",B=P):(Z=this.resolve(U),Z===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(U)}.`),Z=U),B=`{${Z}}${q}`),T.has(B)&&this.fail(`duplicate attribute: ${B}.`),T.add(B),j.uri=Z,k[P]=j}this.attribList=[]}processAttribsPlain(){const{attribList:w}=this,S=this.tag.attributes;for(const{name:_,value:k}of w)S[_]!==void 0&&this.fail(`duplicate attribute: ${_}.`),S[_]=k;this.attribList=[]}openTag(){var w;this.processAttribs();const{tags:S}=this,_=this.tag;_.isSelfClosing=!1,(w=this.openTagHandler)===null||w===void 0||w.call(this,_),S.push(_),this.state=13,this.name=""}openSelfClosingTag(){var w,S,_;this.processAttribs();const{tags:k}=this,T=this.tag;T.isSelfClosing=!0,(w=this.openTagHandler)===null||w===void 0||w.call(this,T),(S=this.closeTagHandler)===null||S===void 0||S.call(this,T),(this.tag=(_=k[k.length-1])!==null&&_!==void 0?_:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:w,name:S}=this;if(this.state=13,this.name="",S==="")return this.fail("weird empty close tag."),void(this.text+="</>");const _=this.closeTagHandler;let k=w.length;for(;k-- >0;){const T=this.tag=w.pop();if(this.topNS=T.ns,_?.(T),T.name===S)break;this.fail("unexpected close tag.")}k===0?this.closedRoot=!0:k<0&&(this.fail(`unmatched closing tag: ${S}.`),this.text+=`</${S}>`)}parseEntity(w){if(w[0]!=="#"){const _=this.ENTITIES[w];return _!==void 0?_:(this.fail(this.isName(w)?"undefined entity.":"disallowed character in entity name."),`&${w};`)}let S=NaN;return w[1]==="x"&&/^#x[0-9a-f]+$/i.test(w)?S=parseInt(w.slice(2),16):/^#[0-9]+$/.test(w)&&(S=parseInt(w.slice(1),10)),this.isChar(S)?String.fromCodePoint(S):(this.fail("malformed character entity."),`&${w};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,s,c){var r=e("safe-buffer").Buffer;function o(l,a){this._block=r.alloc(l),this._finalSize=a,this._blockSize=l,this._len=0}o.prototype.update=function(l,a){typeof l=="string"&&(a=a||"utf8",l=r.from(l,a));for(var n=this._block,u=this._blockSize,h=l.length,d=this._len,f=0;f<h;){for(var m=d%u,g=Math.min(h-f,u-m),p=0;p<g;p++)n[m+p]=l[f+p];f+=g,(d+=g)%u==0&&this._update(n)}return this._len+=h,this},o.prototype.digest=function(l){var a=this._len%this._blockSize;this._block[a]=128,this._block.fill(0,a+1),a>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var u=(4294967295&n)>>>0,h=(n-u)/4294967296;this._block.writeUInt32BE(h,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var d=this._hash();return l?d.toString(l):d},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},s.exports=o},{"safe-buffer":494}],498:[function(e,s,c){var r=s.exports=function(o){o=o.toLowerCase();var l=r[o];if(!l)throw new Error(o+" is not supported (we accept pull requests)");return new l};r.sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,s,c){var r=e("inherits"),o=e("./hash"),l=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function u(){this.init(),this._w=n,o.call(this,64,56)}function h(f){return f<<30|f>>>2}function d(f,m,g,p){return f===0?m&g|~m&p:f===2?m&g|m&p|g&p:m^g^p}r(u,o),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(f){for(var m,g=this._w,p=0|this._a,v=0|this._b,b=0|this._c,x=0|this._d,A=0|this._e,M=0;M<16;++M)g[M]=f.readInt32BE(4*M);for(;M<80;++M)g[M]=g[M-3]^g[M-8]^g[M-14]^g[M-16];for(var V=0;V<80;++V){var W=~~(V/20),R=0|((m=p)<<5|m>>>27)+d(W,v,b,x)+A+g[V]+a[W];A=x,x=b,b=h(v),v=p,p=R}this._a=p+this._a|0,this._b=v+this._b|0,this._c=b+this._c|0,this._d=x+this._d|0,this._e=A+this._e|0},u.prototype._hash=function(){var f=l.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},s.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,s,c){var r=e("inherits"),o=e("./hash"),l=e("safe-buffer").Buffer,a=[1518500249,1859775393,-1894007588,-899497514],n=new Array(80);function u(){this.init(),this._w=n,o.call(this,64,56)}function h(m){return m<<5|m>>>27}function d(m){return m<<30|m>>>2}function f(m,g,p,v){return m===0?g&p|~g&v:m===2?g&p|g&v|p&v:g^p^v}r(u,o),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(m){for(var g,p=this._w,v=0|this._a,b=0|this._b,x=0|this._c,A=0|this._d,M=0|this._e,V=0;V<16;++V)p[V]=m.readInt32BE(4*V);for(;V<80;++V)p[V]=(g=p[V-3]^p[V-8]^p[V-14]^p[V-16])<<1|g>>>31;for(var W=0;W<80;++W){var R=~~(W/20),F=h(v)+f(R,b,x,A)+M+p[W]+a[R]|0;M=A,A=x,x=d(b),b=v,v=F}this._a=v+this._a|0,this._b=b+this._b|0,this._c=x+this._c|0,this._d=A+this._d|0,this._e=M+this._e|0},u.prototype._hash=function(){var m=l.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},s.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,s,c){var r=e("inherits"),o=e("./sha256"),l=e("./hash"),a=e("safe-buffer").Buffer,n=new Array(64);function u(){this.init(),this._w=n,l.call(this,64,56)}r(u,o),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var h=a.allocUnsafe(28);return h.writeInt32BE(this._a,0),h.writeInt32BE(this._b,4),h.writeInt32BE(this._c,8),h.writeInt32BE(this._d,12),h.writeInt32BE(this._e,16),h.writeInt32BE(this._f,20),h.writeInt32BE(this._g,24),h},s.exports=u},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,s,c){var r=e("inherits"),o=e("./hash"),l=e("safe-buffer").Buffer,a=[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],n=new Array(64);function u(){this.init(),this._w=n,o.call(this,64,56)}function h(p,v,b){return b^p&(v^b)}function d(p,v,b){return p&v|b&(p|v)}function f(p){return(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10)}function m(p){return(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7)}function g(p){return(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3}r(u,o),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(p){for(var v,b=this._w,x=0|this._a,A=0|this._b,M=0|this._c,V=0|this._d,W=0|this._e,R=0|this._f,F=0|this._g,$=0|this._h,z=0;z<16;++z)b[z]=p.readInt32BE(4*z);for(;z<64;++z)b[z]=0|(((v=b[z-2])>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+b[z-7]+g(b[z-15])+b[z-16];for(var D=0;D<64;++D){var N=$+m(W)+h(W,R,F)+a[D]+b[D]|0,E=f(x)+d(x,A,M)|0;$=F,F=R,R=W,W=V+N|0,V=M,M=A,A=x,x=N+E|0}this._a=x+this._a|0,this._b=A+this._b|0,this._c=M+this._c|0,this._d=V+this._d|0,this._e=W+this._e|0,this._f=R+this._f|0,this._g=F+this._g|0,this._h=$+this._h|0},u.prototype._hash=function(){var p=l.allocUnsafe(32);return p.writeInt32BE(this._a,0),p.writeInt32BE(this._b,4),p.writeInt32BE(this._c,8),p.writeInt32BE(this._d,12),p.writeInt32BE(this._e,16),p.writeInt32BE(this._f,20),p.writeInt32BE(this._g,24),p.writeInt32BE(this._h,28),p},s.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,s,c){var r=e("inherits"),o=e("./sha512"),l=e("./hash"),a=e("safe-buffer").Buffer,n=new Array(160);function u(){this.init(),this._w=n,l.call(this,128,112)}r(u,o),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var h=a.allocUnsafe(48);function d(f,m,g){h.writeInt32BE(f,g),h.writeInt32BE(m,g+4)}return d(this._ah,this._al,0),d(this._bh,this._bl,8),d(this._ch,this._cl,16),d(this._dh,this._dl,24),d(this._eh,this._el,32),d(this._fh,this._fl,40),h},s.exports=u},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,s,c){var r=e("inherits"),o=e("./hash"),l=e("safe-buffer").Buffer,a=[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,1322822218,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],n=new Array(160);function u(){this.init(),this._w=n,o.call(this,128,112)}function h(A,M,V){return V^A&(M^V)}function d(A,M,V){return A&M|V&(A|M)}function f(A,M){return(A>>>28|M<<4)^(M>>>2|A<<30)^(M>>>7|A<<25)}function m(A,M){return(A>>>14|M<<18)^(A>>>18|M<<14)^(M>>>9|A<<23)}function g(A,M){return(A>>>1|M<<31)^(A>>>8|M<<24)^A>>>7}function p(A,M){return(A>>>1|M<<31)^(A>>>8|M<<24)^(A>>>7|M<<25)}function v(A,M){return(A>>>19|M<<13)^(M>>>29|A<<3)^A>>>6}function b(A,M){return(A>>>19|M<<13)^(M>>>29|A<<3)^(A>>>6|M<<26)}function x(A,M){return A>>>0<M>>>0?1:0}r(u,o),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(A){for(var M=this._w,V=0|this._ah,W=0|this._bh,R=0|this._ch,F=0|this._dh,$=0|this._eh,z=0|this._fh,D=0|this._gh,N=0|this._hh,E=0|this._al,C=0|this._bl,w=0|this._cl,S=0|this._dl,_=0|this._el,k=0|this._fl,T=0|this._gl,j=0|this._hl,P=0;P<32;P+=2)M[P]=A.readInt32BE(4*P),M[P+1]=A.readInt32BE(4*P+4);for(;P<160;P+=2){var U=M[P-30],q=M[P-30+1],Z=g(U,q),B=p(q,U),X=v(U=M[P-4],q=M[P-4+1]),L=b(q,U),I=M[P-14],G=M[P-14+1],ee=M[P-32],se=M[P-32+1],te=B+G|0,re=Z+I+x(te,B)|0;re=(re=re+X+x(te=te+L|0,L)|0)+ee+x(te=te+se|0,se)|0,M[P]=re,M[P+1]=te}for(var J=0;J<160;J+=2){re=M[J],te=M[J+1];var de=d(V,W,R),ne=d(E,C,w),fe=f(V,E),ue=f(E,V),ye=m($,_),be=m(_,$),we=a[J],Se=a[J+1],Pe=h($,z,D),Le=h(_,k,T),De=j+be|0,Ge=N+ye+x(De,j)|0;Ge=(Ge=(Ge=Ge+Pe+x(De=De+Le|0,Le)|0)+we+x(De=De+Se|0,Se)|0)+re+x(De=De+te|0,te)|0;var Ve=ue+ne|0,qe=fe+de+x(Ve,ue)|0;N=D,j=T,D=z,T=k,z=$,k=_,$=F+Ge+x(_=S+De|0,S)|0,F=R,S=w,R=W,w=C,W=V,C=E,V=Ge+qe+x(E=De+Ve|0,De)|0}this._al=this._al+E|0,this._bl=this._bl+C|0,this._cl=this._cl+w|0,this._dl=this._dl+S|0,this._el=this._el+_|0,this._fl=this._fl+k|0,this._gl=this._gl+T|0,this._hl=this._hl+j|0,this._ah=this._ah+V+x(this._al,E)|0,this._bh=this._bh+W+x(this._bl,C)|0,this._ch=this._ch+R+x(this._cl,w)|0,this._dh=this._dh+F+x(this._dl,S)|0,this._eh=this._eh+$+x(this._el,_)|0,this._fh=this._fh+z+x(this._fl,k)|0,this._gh=this._gh+D+x(this._gl,T)|0,this._hh=this._hh+N+x(this._hl,j)|0},u.prototype._hash=function(){var A=l.allocUnsafe(64);function M(V,W,R){A.writeInt32BE(V,R),A.writeInt32BE(W,R+4)}return M(this._ah,this._al,0),M(this._bh,this._bl,8),M(this._ch,this._cl,16),M(this._dh,this._dl,24),M(this._eh,this._el,32),M(this._fh,this._fl,40),M(this._gh,this._gl,48),M(this._hh,this._hl,56),A},s.exports=u},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,s,c){s.exports=o;var r=e("events").EventEmitter;function o(){r.call(this)}e("inherits")(o,r),o.Readable=e("readable-stream/readable.js"),o.Writable=e("readable-stream/writable.js"),o.Duplex=e("readable-stream/duplex.js"),o.Transform=e("readable-stream/transform.js"),o.PassThrough=e("readable-stream/passthrough.js"),o.Stream=o,o.prototype.pipe=function(l,a){var n=this;function u(v){l.writable&&l.write(v)===!1&&n.pause&&n.pause()}function h(){n.readable&&n.resume&&n.resume()}n.on("data",u),l.on("drain",h),l._isStdio||a&&a.end===!1||(n.on("end",f),n.on("close",m));var d=!1;function f(){d||(d=!0,l.end())}function m(){d||(d=!0,typeof l.destroy=="function"&&l.destroy())}function g(v){if(p(),r.listenerCount(this,"error")===0)throw v}function p(){n.removeListener("data",u),l.removeListener("drain",h),n.removeListener("end",f),n.removeListener("close",m),n.removeListener("error",g),l.removeListener("error",g),n.removeListener("end",p),n.removeListener("close",p),l.removeListener("close",p)}return n.on("error",g),l.on("error",g),n.on("end",p),n.on("close",p),l.on("close",p),l.emit("pipe",n),l}},{events:422,inherits:440,"readable-stream/duplex.js":507,"readable-stream/passthrough.js":516,"readable-stream/readable.js":517,"readable-stream/transform.js":518,"readable-stream/writable.js":519}],506:[function(e,s,c){var r={}.toString;s.exports=Array.isArray||function(o){return r.call(o)=="[object Array]"}},{}],507:[function(e,s,c){s.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,s,c){var r=e("process-nextick-args"),o=Object.keys||function(p){var v=[];for(var b in p)v.push(b);return v};s.exports=f;var l=Object.create(e("core-util-is"));l.inherits=e("inherits");var a=e("./_stream_readable"),n=e("./_stream_writable");l.inherits(f,a);for(var u=o(n.prototype),h=0;h<u.length;h++){var d=u[h];f.prototype[d]||(f.prototype[d]=n.prototype[d])}function f(p){if(!(this instanceof f))return new f(p);a.call(this,p),n.call(this,p),p&&p.readable===!1&&(this.readable=!1),p&&p.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,p&&p.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",m)}function m(){this.allowHalfOpen||this._writableState.ended||r.nextTick(g,this)}function g(p){p.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(p){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=p,this._writableState.destroyed=p)}}),f.prototype._destroy=function(p,v){this.push(null),this.end(),r.nextTick(v,p)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,s,c){s.exports=l;var r=e("./_stream_transform"),o=Object.create(e("core-util-is"));function l(a){if(!(this instanceof l))return new l(a);r.call(this,a)}o.inherits=e("inherits"),o.inherits(l,r),l.prototype._transform=function(a,n,u){u(null,a)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,s,c){(function(r,o){(function(){var l=e("process-nextick-args");s.exports=V;var a,n=e("isarray");V.ReadableState=M,e("events").EventEmitter;var u=function(j,P){return j.listeners(P).length},h=e("./internal/streams/stream"),d=e("safe-buffer").Buffer,f=(o!==void 0?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},m=Object.create(e("core-util-is"));m.inherits=e("inherits");var g=e("util"),p=void 0;p=g&&g.debuglog?g.debuglog("stream"):function(){};var v,b=e("./internal/streams/BufferList"),x=e("./internal/streams/destroy");m.inherits(V,h);var A=["error","close","destroy","pause","resume"];function M(j,P){j=j||{};var U=P instanceof(a=a||e("./_stream_duplex"));this.objectMode=!!j.objectMode,U&&(this.objectMode=this.objectMode||!!j.readableObjectMode);var q=j.highWaterMark,Z=j.readableHighWaterMark,B=this.objectMode?16:16384;this.highWaterMark=q||q===0?q:U&&(Z||Z===0)?Z:B,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,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.destroyed=!1,this.defaultEncoding=j.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,j.encoding&&(v||(v=e("string_decoder/").StringDecoder),this.decoder=new v(j.encoding),this.encoding=j.encoding)}function V(j){if(a=a||e("./_stream_duplex"),!(this instanceof V))return new V(j);this._readableState=new M(j,this),this.readable=!0,j&&(typeof j.read=="function"&&(this._read=j.read),typeof j.destroy=="function"&&(this._destroy=j.destroy)),h.call(this)}function W(j,P,U,q,Z){var B,X=j._readableState;return P===null?(X.reading=!1,(function(L,I){if(!I.ended){if(I.decoder){var G=I.decoder.end();G&&G.length&&(I.buffer.push(G),I.length+=I.objectMode?1:G.length)}I.ended=!0,$(L)}})(j,X)):(Z||(B=(function(L,I){var G;ee=I,d.isBuffer(ee)||ee instanceof f||typeof I=="string"||I===void 0||L.objectMode||(G=new TypeError("Invalid non-string/buffer chunk"));var ee;return G})(X,P)),B?j.emit("error",B):X.objectMode||P&&P.length>0?(typeof P=="string"||X.objectMode||Object.getPrototypeOf(P)===d.prototype||(P=(function(L){return d.from(L)})(P)),q?X.endEmitted?j.emit("error",new Error("stream.unshift() after end event")):R(j,X,P,!0):X.ended?j.emit("error",new Error("stream.push() after EOF")):(X.reading=!1,X.decoder&&!U?(P=X.decoder.write(P),X.objectMode||P.length!==0?R(j,X,P,!1):D(j,X)):R(j,X,P,!1))):q||(X.reading=!1)),(function(L){return!L.ended&&(L.needReadable||L.length<L.highWaterMark||L.length===0)})(X)}function R(j,P,U,q){P.flowing&&P.length===0&&!P.sync?(j.emit("data",U),j.read(0)):(P.length+=P.objectMode?1:U.length,q?P.buffer.unshift(U):P.buffer.push(U),P.needReadable&&$(j)),D(j,P)}Object.defineProperty(V.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(j){this._readableState&&(this._readableState.destroyed=j)}}),V.prototype.destroy=x.destroy,V.prototype._undestroy=x.undestroy,V.prototype._destroy=function(j,P){this.push(null),P(j)},V.prototype.push=function(j,P){var U,q=this._readableState;return q.objectMode?U=!0:typeof j=="string"&&((P=P||q.defaultEncoding)!==q.encoding&&(j=d.from(j,P),P=""),U=!0),W(this,j,P,!1,U)},V.prototype.unshift=function(j){return W(this,j,null,!0,!1)},V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(j){return v||(v=e("string_decoder/").StringDecoder),this._readableState.decoder=new v(j),this._readableState.encoding=j,this};function F(j,P){return j<=0||P.length===0&&P.ended?0:P.objectMode?1:j!=j?P.flowing&&P.length?P.buffer.head.data.length:P.length:(j>P.highWaterMark&&(P.highWaterMark=(function(U){return U>=8388608?U=8388608:(U--,U|=U>>>1,U|=U>>>2,U|=U>>>4,U|=U>>>8,U|=U>>>16,U++),U})(j)),j<=P.length?j:P.ended?P.length:(P.needReadable=!0,0))}function $(j){var P=j._readableState;P.needReadable=!1,P.emittedReadable||(p("emitReadable",P.flowing),P.emittedReadable=!0,P.sync?l.nextTick(z,j):z(j))}function z(j){p("emit readable"),j.emit("readable"),w(j)}function D(j,P){P.readingMore||(P.readingMore=!0,l.nextTick(N,j,P))}function N(j,P){for(var U=P.length;!P.reading&&!P.flowing&&!P.ended&&P.length<P.highWaterMark&&(p("maybeReadMore read 0"),j.read(0),U!==P.length);)U=P.length;P.readingMore=!1}function E(j){p("readable nexttick read 0"),j.read(0)}function C(j,P){P.reading||(p("resume read 0"),j.read(0)),P.resumeScheduled=!1,P.awaitDrain=0,j.emit("resume"),w(j),P.flowing&&!P.reading&&j.read(0)}function w(j){var P=j._readableState;for(p("flow",P.flowing);P.flowing&&j.read()!==null;);}function S(j,P){return P.length===0?null:(P.objectMode?U=P.buffer.shift():!j||j>=P.length?(U=P.decoder?P.buffer.join(""):P.buffer.length===1?P.buffer.head.data:P.buffer.concat(P.length),P.buffer.clear()):U=(function(q,Z,B){var X;return q<Z.head.data.length?(X=Z.head.data.slice(0,q),Z.head.data=Z.head.data.slice(q)):X=q===Z.head.data.length?Z.shift():B?(function(L,I){var G=I.head,ee=1,se=G.data;for(L-=se.length;G=G.next;){var te=G.data,re=L>te.length?te.length:L;if(re===te.length?se+=te:se+=te.slice(0,L),(L-=re)===0){re===te.length?(++ee,G.next?I.head=G.next:I.head=I.tail=null):(I.head=G,G.data=te.slice(re));break}++ee}return I.length-=ee,se})(q,Z):(function(L,I){var G=d.allocUnsafe(L),ee=I.head,se=1;for(ee.data.copy(G),L-=ee.data.length;ee=ee.next;){var te=ee.data,re=L>te.length?te.length:L;if(te.copy(G,G.length-L,0,re),(L-=re)===0){re===te.length?(++se,ee.next?I.head=ee.next:I.head=I.tail=null):(I.head=ee,ee.data=te.slice(re));break}++se}return I.length-=se,G})(q,Z),X})(j,P.buffer,P.decoder),U);var U}function _(j){var P=j._readableState;if(P.length>0)throw new Error('"endReadable()" called on non-empty stream');P.endEmitted||(P.ended=!0,l.nextTick(k,P,j))}function k(j,P){j.endEmitted||j.length!==0||(j.endEmitted=!0,P.readable=!1,P.emit("end"))}function T(j,P){for(var U=0,q=j.length;U<q;U++)if(j[U]===P)return U;return-1}V.prototype.read=function(j){p("read",j),j=parseInt(j,10);var P=this._readableState,U=j;if(j!==0&&(P.emittedReadable=!1),j===0&&P.needReadable&&(P.length>=P.highWaterMark||P.ended))return p("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?_(this):$(this),null;if((j=F(j,P))===0&&P.ended)return P.length===0&&_(this),null;var q,Z=P.needReadable;return p("need readable",Z),(P.length===0||P.length-j<P.highWaterMark)&&p("length less than watermark",Z=!0),P.ended||P.reading?p("reading or ended",Z=!1):Z&&(p("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(j=F(U,P))),(q=j>0?S(j,P):null)===null?(P.needReadable=!0,j=0):P.length-=j,P.length===0&&(P.ended||(P.needReadable=!0),U!==j&&P.ended&&_(this)),q!==null&&this.emit("data",q),q},V.prototype._read=function(j){this.emit("error",new Error("_read() is not implemented"))},V.prototype.pipe=function(j,P){var U=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=j;break;case 1:q.pipes=[q.pipes,j];break;default:q.pipes.push(j)}q.pipesCount+=1,p("pipe count=%d opts=%j",q.pipesCount,P);var Z=(!P||P.end!==!1)&&j!==r.stdout&&j!==r.stderr?X:J;function B(de,ne){p("onunpipe"),de===U&&ne&&ne.hasUnpiped===!1&&(ne.hasUnpiped=!0,p("cleanup"),j.removeListener("close",te),j.removeListener("finish",re),j.removeListener("drain",L),j.removeListener("error",se),j.removeListener("unpipe",B),U.removeListener("end",X),U.removeListener("end",J),U.removeListener("data",ee),I=!0,!q.awaitDrain||j._writableState&&!j._writableState.needDrain||L())}function X(){p("onend"),j.end()}q.endEmitted?l.nextTick(Z):U.once("end",Z),j.on("unpipe",B);var L=(function(de){return function(){var ne=de._readableState;p("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&u(de,"data")&&(ne.flowing=!0,w(de))}})(U);j.on("drain",L);var I=!1,G=!1;function ee(de){p("ondata"),G=!1,j.write(de)!==!1||G||((q.pipesCount===1&&q.pipes===j||q.pipesCount>1&&T(q.pipes,j)!==-1)&&!I&&(p("false write response, pause",q.awaitDrain),q.awaitDrain++,G=!0),U.pause())}function se(de){p("onerror",de),J(),j.removeListener("error",se),u(j,"error")===0&&j.emit("error",de)}function te(){j.removeListener("finish",re),J()}function re(){p("onfinish"),j.removeListener("close",te),J()}function J(){p("unpipe"),U.unpipe(j)}return U.on("data",ee),(function(de,ne,fe){if(typeof de.prependListener=="function")return de.prependListener(ne,fe);de._events&&de._events[ne]?n(de._events[ne])?de._events[ne].unshift(fe):de._events[ne]=[fe,de._events[ne]]:de.on(ne,fe)})(j,"error",se),j.once("close",te),j.once("finish",re),j.emit("pipe",U),q.flowing||(p("pipe resume"),U.resume()),j},V.prototype.unpipe=function(j){var P=this._readableState,U={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return j&&j!==P.pipes||(j||(j=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,j&&j.emit("unpipe",this,U)),this;if(!j){var q=P.pipes,Z=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var B=0;B<Z;B++)q[B].emit("unpipe",this,{hasUnpiped:!1});return this}var X=T(P.pipes,j);return X===-1||(P.pipes.splice(X,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),j.emit("unpipe",this,U)),this},V.prototype.on=function(j,P){var U=h.prototype.on.call(this,j,P);if(j==="data")this._readableState.flowing!==!1&&this.resume();else if(j==="readable"){var q=this._readableState;q.endEmitted||q.readableListening||(q.readableListening=q.needReadable=!0,q.emittedReadable=!1,q.reading?q.length&&$(this):l.nextTick(E,this))}return U},V.prototype.addListener=V.prototype.on,V.prototype.resume=function(){var j=this._readableState;return j.flowing||(p("resume"),j.flowing=!0,(function(P,U){U.resumeScheduled||(U.resumeScheduled=!0,l.nextTick(C,P,U))})(this,j)),this},V.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},V.prototype.wrap=function(j){var P=this,U=this._readableState,q=!1;for(var Z in j.on("end",(function(){if(p("wrapped end"),U.decoder&&!U.ended){var X=U.decoder.end();X&&X.length&&P.push(X)}P.push(null)})),j.on("data",(function(X){p("wrapped data"),U.decoder&&(X=U.decoder.write(X)),U.objectMode&&X==null||(U.objectMode||X&&X.length)&&(P.push(X)||(q=!0,j.pause()))})),j)this[Z]===void 0&&typeof j[Z]=="function"&&(this[Z]=(function(X){return function(){return j[X].apply(j,arguments)}})(Z));for(var B=0;B<A.length;B++)j.on(A[B],this.emit.bind(this,A[B]));return this._read=function(X){p("wrapped _read",X),q&&(q=!1,j.resume())},this},Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),V._fromList=S}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{"./_stream_duplex":508,"./internal/streams/BufferList":513,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,events:422,inherits:440,isarray:506,"process-nextick-args":466,"safe-buffer":520,"string_decoder/":521,util:188}],511:[function(e,s,c){s.exports=a;var r=e("./_stream_duplex"),o=Object.create(e("core-util-is"));function l(h,d){var f=this._transformState;f.transforming=!1;var m=f.writecb;if(!m)return this.emit("error",new Error("write callback called multiple times"));f.writechunk=null,f.writecb=null,d!=null&&this.push(d),m(h);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function a(h){if(!(this instanceof a))return new a(h);r.call(this,h),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,h&&(typeof h.transform=="function"&&(this._transform=h.transform),typeof h.flush=="function"&&(this._flush=h.flush)),this.on("prefinish",n)}function n(){var h=this;typeof this._flush=="function"?this._flush((function(d,f){u(h,d,f)})):u(this,null,null)}function u(h,d,f){if(d)return h.emit("error",d);if(f!=null&&h.push(f),h._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(h._transformState.transforming)throw new Error("Calling transform done when still transforming");return h.push(null)}o.inherits=e("inherits"),o.inherits(a,r),a.prototype.push=function(h,d){return this._transformState.needTransform=!1,r.prototype.push.call(this,h,d)},a.prototype._transform=function(h,d,f){throw new Error("_transform() is not implemented")},a.prototype._write=function(h,d,f){var m=this._transformState;if(m.writecb=f,m.writechunk=h,m.writeencoding=d,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},a.prototype._read=function(h){var d=this._transformState;d.writechunk!==null&&d.writecb&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},a.prototype._destroy=function(h,d){var f=this;r.prototype._destroy.call(this,h,(function(m){d(m),f.emit("close")}))}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,s,c){(function(r,o,l){(function(){var a=e("process-nextick-args");function n(D){var N=this;this.next=null,this.entry=null,this.finish=function(){(function(E,C,w){var S=E.entry;for(E.entry=null;S;){var _=S.callback;C.pendingcb--,_(w),S=S.next}C.corkedRequestsFree.next=E})(N,D)}}s.exports=M;var u,h=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?l:a.nextTick;M.WritableState=A;var d=Object.create(e("core-util-is"));d.inherits=e("inherits");var f={deprecate:e("util-deprecate")},m=e("./internal/streams/stream"),g=e("safe-buffer").Buffer,p=(o!==void 0?o:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},v,b=e("./internal/streams/destroy");function x(){}function A(D,N){u=u||e("./_stream_duplex"),D=D||{};var E=N instanceof u;this.objectMode=!!D.objectMode,E&&(this.objectMode=this.objectMode||!!D.writableObjectMode);var C=D.highWaterMark,w=D.writableHighWaterMark,S=this.objectMode?16:16384;this.highWaterMark=C||C===0?C:E&&(w||w===0)?w:S,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var _=D.decodeStrings===!1;this.decodeStrings=!_,this.defaultEncoding=D.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(k){(function(T,j){var P=T._writableState,U=P.sync,q=P.writecb;if((function(B){B.writing=!1,B.writecb=null,B.length-=B.writelen,B.writelen=0})(P),j)(function(B,X,L,I,G){--X.pendingcb,L?(a.nextTick(G,I),a.nextTick(z,B,X),B._writableState.errorEmitted=!0,B.emit("error",I)):(G(I),B._writableState.errorEmitted=!0,B.emit("error",I),z(B,X))})(T,P,U,j,q);else{var Z=F(P);Z||P.corked||P.bufferProcessing||!P.bufferedRequest||R(T,P),U?h(W,T,P,Z,q):W(T,P,Z,q)}})(N,k)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function M(D){if(u=u||e("./_stream_duplex"),!(v.call(M,this)||this instanceof u))return new M(D);this._writableState=new A(D,this),this.writable=!0,D&&(typeof D.write=="function"&&(this._write=D.write),typeof D.writev=="function"&&(this._writev=D.writev),typeof D.destroy=="function"&&(this._destroy=D.destroy),typeof D.final=="function"&&(this._final=D.final)),m.call(this)}function V(D,N,E,C,w,S,_){N.writelen=C,N.writecb=_,N.writing=!0,N.sync=!0,E?D._writev(w,N.onwrite):D._write(w,S,N.onwrite),N.sync=!1}function W(D,N,E,C){E||(function(w,S){S.length===0&&S.needDrain&&(S.needDrain=!1,w.emit("drain"))})(D,N),N.pendingcb--,C(),z(D,N)}function R(D,N){N.bufferProcessing=!0;var E=N.bufferedRequest;if(D._writev&&E&&E.next){var C=N.bufferedRequestCount,w=new Array(C),S=N.corkedRequestsFree;S.entry=E;for(var _=0,k=!0;E;)w[_]=E,E.isBuf||(k=!1),E=E.next,_+=1;w.allBuffers=k,V(D,N,!0,N.length,w,"",S.finish),N.pendingcb++,N.lastBufferedRequest=null,S.next?(N.corkedRequestsFree=S.next,S.next=null):N.corkedRequestsFree=new n(N),N.bufferedRequestCount=0}else{for(;E;){var T=E.chunk,j=E.encoding,P=E.callback;if(V(D,N,!1,N.objectMode?1:T.length,T,j,P),E=E.next,N.bufferedRequestCount--,N.writing)break}E===null&&(N.lastBufferedRequest=null)}N.bufferedRequest=E,N.bufferProcessing=!1}function F(D){return D.ending&&D.length===0&&D.bufferedRequest===null&&!D.finished&&!D.writing}function $(D,N){D._final((function(E){N.pendingcb--,E&&D.emit("error",E),N.prefinished=!0,D.emit("prefinish"),z(D,N)}))}function z(D,N){var E=F(N);return E&&((function(C,w){w.prefinished||w.finalCalled||(typeof C._final=="function"?(w.pendingcb++,w.finalCalled=!0,a.nextTick($,C,w)):(w.prefinished=!0,C.emit("prefinish")))})(D,N),N.pendingcb===0&&(N.finished=!0,D.emit("finish"))),E}d.inherits(M,m),A.prototype.getBuffer=function(){for(var D=this.bufferedRequest,N=[];D;)N.push(D),D=D.next;return N},(function(){try{Object.defineProperty(A.prototype,"buffer",{get:f.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(v=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(D){return!!v.call(this,D)||this===M&&D&&D._writableState instanceof A}})):v=function(D){return D instanceof this},M.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},M.prototype.write=function(D,N,E){var C,w=this._writableState,S=!1,_=!w.objectMode&&(C=D,g.isBuffer(C)||C instanceof p);return _&&!g.isBuffer(D)&&(D=(function(k){return g.from(k)})(D)),typeof N=="function"&&(E=N,N=null),_?N="buffer":N||(N=w.defaultEncoding),typeof E!="function"&&(E=x),w.ended?(function(k,T){var j=new Error("write after end");k.emit("error",j),a.nextTick(T,j)})(this,E):(_||(function(k,T,j,P){var U=!0,q=!1;return j===null?q=new TypeError("May not write null values to stream"):typeof j=="string"||j===void 0||T.objectMode||(q=new TypeError("Invalid non-string/buffer chunk")),q&&(k.emit("error",q),a.nextTick(P,q),U=!1),U})(this,w,D,E))&&(w.pendingcb++,S=(function(k,T,j,P,U,q){if(!j){var Z=(function(I,G,ee){return I.objectMode||I.decodeStrings===!1||typeof G!="string"||(G=g.from(G,ee)),G})(T,P,U);P!==Z&&(j=!0,U="buffer",P=Z)}var B=T.objectMode?1:P.length;T.length+=B;var X=T.length<T.highWaterMark;if(X||(T.needDrain=!0),T.writing||T.corked){var L=T.lastBufferedRequest;T.lastBufferedRequest={chunk:P,encoding:U,isBuf:j,callback:q,next:null},L?L.next=T.lastBufferedRequest:T.bufferedRequest=T.lastBufferedRequest,T.bufferedRequestCount+=1}else V(k,T,!1,B,P,U,q);return X})(this,w,_,D,N,E)),S},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var D=this._writableState;D.corked&&(D.corked--,D.writing||D.corked||D.bufferProcessing||!D.bufferedRequest||R(this,D))},M.prototype.setDefaultEncoding=function(D){if(typeof D=="string"&&(D=D.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((D+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+D);return this._writableState.defaultEncoding=D,this},Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(D,N,E){E(new Error("_write() is not implemented"))},M.prototype._writev=null,M.prototype.end=function(D,N,E){var C=this._writableState;typeof D=="function"?(E=D,D=null,N=null):typeof N=="function"&&(E=N,N=null),D!=null&&this.write(D,N),C.corked&&(C.corked=1,this.uncork()),C.ending||(function(w,S,_){S.ending=!0,z(w,S),_&&(S.finished?a.nextTick(_):w.once("finish",_)),S.ended=!0,w.writable=!1})(this,C,E)},Object.defineProperty(M.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(D){this._writableState&&(this._writableState.destroyed=D)}}),M.prototype.destroy=b.destroy,M.prototype._undestroy=b.undestroy,M.prototype._destroy=function(D,N){this.end(),N(D)}}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{"./_stream_duplex":508,"./internal/streams/destroy":514,"./internal/streams/stream":515,_process:467,"core-util-is":383,inherits:440,"process-nextick-args":466,"safe-buffer":520,timers:523,"util-deprecate":524}],513:[function(e,s,c){var r=e("safe-buffer").Buffer,o=e("util");s.exports=(function(){function l(){(function(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function")})(this,l),this.head=null,this.tail=null,this.length=0}return l.prototype.push=function(a){var n={data:a,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},l.prototype.unshift=function(a){var n={data:a,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},l.prototype.shift=function(){if(this.length!==0){var a=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,a}},l.prototype.clear=function(){this.head=this.tail=null,this.length=0},l.prototype.join=function(a){if(this.length===0)return"";for(var n=this.head,u=""+n.data;n=n.next;)u+=a+n.data;return u},l.prototype.concat=function(a){if(this.length===0)return r.alloc(0);for(var n,u,h,d=r.allocUnsafe(a>>>0),f=this.head,m=0;f;)n=f.data,u=d,h=m,n.copy(u,h),m+=f.data.length,f=f.next;return d},l})(),o&&o.inspect&&o.inspect.custom&&(s.exports.prototype[o.inspect.custom]=function(){var l=o.inspect({length:this.length});return this.constructor.name+" "+l})},{"safe-buffer":520,util:188}],514:[function(e,s,c){var r=e("process-nextick-args");function o(l,a){l.emit("error",a)}s.exports={destroy:function(l,a){var n=this,u=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return u||h?(a?a(l):l&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,l)):r.nextTick(o,this,l)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(l||null,(function(d){!a&&d?n._writableState?n._writableState.errorEmitted||(n._writableState.errorEmitted=!0,r.nextTick(o,n,d)):r.nextTick(o,n,d):a&&a(d)})),this)},undestroy:function(){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)}}},{"process-nextick-args":466}],515:[function(e,s,c){arguments[4][490][0].apply(c,arguments)},{dup:490,events:422}],516:[function(e,s,c){s.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,s,c){(c=s.exports=e("./lib/_stream_readable.js")).Stream=c,c.Readable=c,c.Writable=e("./lib/_stream_writable.js"),c.Duplex=e("./lib/_stream_duplex.js"),c.Transform=e("./lib/_stream_transform.js"),c.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":508,"./lib/_stream_passthrough.js":509,"./lib/_stream_readable.js":510,"./lib/_stream_transform.js":511,"./lib/_stream_writable.js":512}],518:[function(e,s,c){s.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,s,c){s.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,s,c){arguments[4][217][0].apply(c,arguments)},{buffer:220,dup:217}],521:[function(e,s,c){arguments[4][218][0].apply(c,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,s,c){arguments[4][218][0].apply(c,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,s,c){(function(r,o){(function(){var l=e("process/browser.js").nextTick,a=Function.prototype.apply,n=Array.prototype.slice,u={},h=0;function d(f,m){this._id=f,this._clearFn=m}c.setTimeout=function(){return new d(a.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new d(a.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(f){f.close()},d.prototype.unref=d.prototype.ref=function(){},d.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(f,m){clearTimeout(f._idleTimeoutId),f._idleTimeout=m},c.unenroll=function(f){clearTimeout(f._idleTimeoutId),f._idleTimeout=-1},c._unrefActive=c.active=function(f){clearTimeout(f._idleTimeoutId);var m=f._idleTimeout;m>=0&&(f._idleTimeoutId=setTimeout((function(){f._onTimeout&&f._onTimeout()}),m))},c.setImmediate=typeof r=="function"?r:function(f){var m=h++,g=!(arguments.length<2)&&n.call(arguments,1);return u[m]=!0,l((function(){u[m]&&(g?f.apply(null,g):f.call(null),c.clearImmediate(m))})),m},c.clearImmediate=typeof o=="function"?o:function(f){delete u[f]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,s,c){(function(r){(function(){function o(l){try{if(!r.localStorage)return!1}catch{return!1}var a=r.localStorage[l];return a!=null&&String(a).toLowerCase()==="true"}s.exports=function(l,a){if(o("noDeprecation"))return l;var n=!1;return function(){if(!n){if(o("throwDeprecation"))throw new Error(a);o("traceDeprecation")?console.trace(a):console.warn(a),n=!0}return l.apply(this,arguments)}}}).call(this)}).call(this,typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{}],525:[function(e,s,c){typeof Object.create=="function"?s.exports=function(r,o){r.super_=o,r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:s.exports=function(r,o){r.super_=o;var l=function(){};l.prototype=o.prototype,r.prototype=new l,r.prototype.constructor=r}},{}],526:[function(e,s,c){s.exports=function(r){return r&&typeof r=="object"&&typeof r.copy=="function"&&typeof r.fill=="function"&&typeof r.readUInt8=="function"}},{}],527:[function(e,s,c){(function(r,o){(function(){var l=/%[sdj%]/g;c.format=function(w){if(!A(w)){for(var S=[],_=0;_<arguments.length;_++)S.push(u(arguments[_]));return S.join(" ")}_=1;for(var k=arguments,T=k.length,j=String(w).replace(l,(function(U){if(U==="%%")return"%";if(_>=T)return U;switch(U){case"%s":return String(k[_++]);case"%d":return Number(k[_++]);case"%j":try{return JSON.stringify(k[_++])}catch{return"[Circular]"}default:return U}})),P=k[_];_<T;P=k[++_])b(P)||!W(P)?j+=" "+P:j+=" "+u(P);return j},c.deprecate=function(w,S){if(M(o.process))return function(){return c.deprecate(w,S).apply(this,arguments)};if(r.noDeprecation===!0)return w;var _=!1;return function(){if(!_){if(r.throwDeprecation)throw new Error(S);r.traceDeprecation?console.trace(S):console.error(S),_=!0}return w.apply(this,arguments)}};var a,n={};function u(w,S){var _={seen:[],stylize:d};return arguments.length>=3&&(_.depth=arguments[2]),arguments.length>=4&&(_.colors=arguments[3]),v(S)?_.showHidden=S:S&&c._extend(_,S),M(_.showHidden)&&(_.showHidden=!1),M(_.depth)&&(_.depth=2),M(_.colors)&&(_.colors=!1),M(_.customInspect)&&(_.customInspect=!0),_.colors&&(_.stylize=h),f(_,w,_.depth)}function h(w,S){var _=u.styles[S];return _?"\x1B["+u.colors[_][0]+"m"+w+"\x1B["+u.colors[_][1]+"m":w}function d(w,S){return w}function f(w,S,_){if(w.customInspect&&S&&$(S.inspect)&&S.inspect!==c.inspect&&(!S.constructor||S.constructor.prototype!==S)){var k=S.inspect(_,w);return A(k)||(k=f(w,k,_)),k}var T=(function(L,I){if(M(I))return L.stylize("undefined","undefined");if(A(I)){var G="'"+JSON.stringify(I).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return L.stylize(G,"string")}if(x(I))return L.stylize(""+I,"number");if(v(I))return L.stylize(""+I,"boolean");if(b(I))return L.stylize("null","null")})(w,S);if(T)return T;var j=Object.keys(S),P=(function(L){var I={};return L.forEach((function(G,ee){I[G]=!0})),I})(j);if(w.showHidden&&(j=Object.getOwnPropertyNames(S)),F(S)&&(j.indexOf("message")>=0||j.indexOf("description")>=0))return m(S);if(j.length===0){if($(S)){var U=S.name?": "+S.name:"";return w.stylize("[Function"+U+"]","special")}if(V(S))return w.stylize(RegExp.prototype.toString.call(S),"regexp");if(R(S))return w.stylize(Date.prototype.toString.call(S),"date");if(F(S))return m(S)}var q,Z="",B=!1,X=["{","}"];return p(S)&&(B=!0,X=["[","]"]),$(S)&&(Z=" [Function"+(S.name?": "+S.name:"")+"]"),V(S)&&(Z=" "+RegExp.prototype.toString.call(S)),R(S)&&(Z=" "+Date.prototype.toUTCString.call(S)),F(S)&&(Z=" "+m(S)),j.length!==0||B&&S.length!=0?_<0?V(S)?w.stylize(RegExp.prototype.toString.call(S),"regexp"):w.stylize("[Object]","special"):(w.seen.push(S),q=B?(function(L,I,G,ee,se){for(var te=[],re=0,J=I.length;re<J;++re)C(I,String(re))?te.push(g(L,I,G,ee,String(re),!0)):te.push("");return se.forEach((function(de){de.match(/^\d+$/)||te.push(g(L,I,G,ee,de,!0))})),te})(w,S,_,P,j):j.map((function(L){return g(w,S,_,P,L,B)})),w.seen.pop(),(function(L,I,G){return L.reduce((function(ee,se){return se.indexOf(`
97
+ `)>=0,ee+se.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?G[0]+(I===""?"":I+`
98
+ `)+" "+L.join(`,
99
+ `)+" "+G[1]:G[0]+I+" "+L.join(", ")+" "+G[1]})(q,Z,X)):X[0]+Z+X[1]}function m(w){return"["+Error.prototype.toString.call(w)+"]"}function g(w,S,_,k,T,j){var P,U,q;if((q=Object.getOwnPropertyDescriptor(S,T)||{value:S[T]}).get?U=q.set?w.stylize("[Getter/Setter]","special"):w.stylize("[Getter]","special"):q.set&&(U=w.stylize("[Setter]","special")),C(k,T)||(P="["+T+"]"),U||(w.seen.indexOf(q.value)<0?(U=b(_)?f(w,q.value,null):f(w,q.value,_-1)).indexOf(`
100
+ `)>-1&&(U=j?U.split(`
101
+ `).map((function(Z){return" "+Z})).join(`
102
+ `).substr(2):`
103
+ `+U.split(`
104
+ `).map((function(Z){return" "+Z})).join(`
105
+ `)):U=w.stylize("[Circular]","special")),M(P)){if(j&&T.match(/^\d+$/))return U;(P=JSON.stringify(""+T)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(P=P.substr(1,P.length-2),P=w.stylize(P,"name")):(P=P.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),P=w.stylize(P,"string"))}return P+": "+U}function p(w){return Array.isArray(w)}function v(w){return typeof w=="boolean"}function b(w){return w===null}function x(w){return typeof w=="number"}function A(w){return typeof w=="string"}function M(w){return w===void 0}function V(w){return W(w)&&z(w)==="[object RegExp]"}function W(w){return typeof w=="object"&&w!==null}function R(w){return W(w)&&z(w)==="[object Date]"}function F(w){return W(w)&&(z(w)==="[object Error]"||w instanceof Error)}function $(w){return typeof w=="function"}function z(w){return Object.prototype.toString.call(w)}function D(w){return w<10?"0"+w.toString(10):w.toString(10)}c.debuglog=function(w){if(M(a)&&(a=r.env.NODE_DEBUG||""),w=w.toUpperCase(),!n[w])if(new RegExp("\\b"+w+"\\b","i").test(a)){var S=r.pid;n[w]=function(){var _=c.format.apply(c,arguments);console.error("%s %d: %s",w,S,_)}}else n[w]=function(){};return n[w]},c.inspect=u,u.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]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=p,c.isBoolean=v,c.isNull=b,c.isNullOrUndefined=function(w){return w==null},c.isNumber=x,c.isString=A,c.isSymbol=function(w){return typeof w=="symbol"},c.isUndefined=M,c.isRegExp=V,c.isObject=W,c.isDate=R,c.isError=F,c.isFunction=$,c.isPrimitive=function(w){return w===null||typeof w=="boolean"||typeof w=="number"||typeof w=="string"||typeof w=="symbol"||w===void 0},c.isBuffer=e("./support/isBuffer");var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var w=new Date,S=[D(w.getHours()),D(w.getMinutes()),D(w.getSeconds())].join(":");return[w.getDate(),N[w.getMonth()],S].join(" ")}function C(w,S){return Object.prototype.hasOwnProperty.call(w,S)}c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=e("inherits"),c._extend=function(w,S){if(!S||!W(S))return w;for(var _=Object.keys(S),k=_.length;k--;)w[_[k]]=S[_[k]];return w}}).call(this)}).call(this,e("_process"),typeof ur<"u"?ur:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(c,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(c,"v3",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(c,"v4",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(c,"v5",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(c,"NIL",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(c,"version",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(c,"validate",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(c,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(c,"parse",{enumerable:!0,get:function(){return f.default}});var r=m(e("./v1.js")),o=m(e("./v3.js")),l=m(e("./v4.js")),a=m(e("./v5.js")),n=m(e("./nil.js")),u=m(e("./version.js")),h=m(e("./validate.js")),d=m(e("./stringify.js")),f=m(e("./parse.js"));function m(g){return g&&g.__esModule?g:{default:g}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,s,c){function r(f){return 14+(f+64>>>9<<4)+1}function o(f,m){const g=(65535&f)+(65535&m);return(f>>16)+(m>>16)+(g>>16)<<16|65535&g}function l(f,m,g,p,v,b){return o((x=o(o(m,f),o(p,b)))<<(A=v)|x>>>32-A,g);var x,A}function a(f,m,g,p,v,b,x){return l(m&g|~m&p,f,m,v,b,x)}function n(f,m,g,p,v,b,x){return l(m&p|g&~p,f,m,v,b,x)}function u(f,m,g,p,v,b,x){return l(m^g^p,f,m,v,b,x)}function h(f,m,g,p,v,b,x){return l(g^(m|~p),f,m,v,b,x)}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var d=function(f){if(typeof f=="string"){const m=unescape(encodeURIComponent(f));f=new Uint8Array(m.length);for(let g=0;g<m.length;++g)f[g]=m.charCodeAt(g)}return(function(m){const g=[],p=32*m.length;for(let v=0;v<p;v+=8){const b=m[v>>5]>>>v%32&255,x=parseInt("0123456789abcdef".charAt(b>>>4&15)+"0123456789abcdef".charAt(15&b),16);g.push(x)}return g})((function(m,g){m[g>>5]|=128<<g%32,m[r(g)-1]=g;let p=1732584193,v=-271733879,b=-1732584194,x=271733878;for(let A=0;A<m.length;A+=16){const M=p,V=v,W=b,R=x;p=a(p,v,b,x,m[A],7,-680876936),x=a(x,p,v,b,m[A+1],12,-389564586),b=a(b,x,p,v,m[A+2],17,606105819),v=a(v,b,x,p,m[A+3],22,-1044525330),p=a(p,v,b,x,m[A+4],7,-176418897),x=a(x,p,v,b,m[A+5],12,1200080426),b=a(b,x,p,v,m[A+6],17,-1473231341),v=a(v,b,x,p,m[A+7],22,-45705983),p=a(p,v,b,x,m[A+8],7,1770035416),x=a(x,p,v,b,m[A+9],12,-1958414417),b=a(b,x,p,v,m[A+10],17,-42063),v=a(v,b,x,p,m[A+11],22,-1990404162),p=a(p,v,b,x,m[A+12],7,1804603682),x=a(x,p,v,b,m[A+13],12,-40341101),b=a(b,x,p,v,m[A+14],17,-1502002290),v=a(v,b,x,p,m[A+15],22,1236535329),p=n(p,v,b,x,m[A+1],5,-165796510),x=n(x,p,v,b,m[A+6],9,-1069501632),b=n(b,x,p,v,m[A+11],14,643717713),v=n(v,b,x,p,m[A],20,-373897302),p=n(p,v,b,x,m[A+5],5,-701558691),x=n(x,p,v,b,m[A+10],9,38016083),b=n(b,x,p,v,m[A+15],14,-660478335),v=n(v,b,x,p,m[A+4],20,-405537848),p=n(p,v,b,x,m[A+9],5,568446438),x=n(x,p,v,b,m[A+14],9,-1019803690),b=n(b,x,p,v,m[A+3],14,-187363961),v=n(v,b,x,p,m[A+8],20,1163531501),p=n(p,v,b,x,m[A+13],5,-1444681467),x=n(x,p,v,b,m[A+2],9,-51403784),b=n(b,x,p,v,m[A+7],14,1735328473),v=n(v,b,x,p,m[A+12],20,-1926607734),p=u(p,v,b,x,m[A+5],4,-378558),x=u(x,p,v,b,m[A+8],11,-2022574463),b=u(b,x,p,v,m[A+11],16,1839030562),v=u(v,b,x,p,m[A+14],23,-35309556),p=u(p,v,b,x,m[A+1],4,-1530992060),x=u(x,p,v,b,m[A+4],11,1272893353),b=u(b,x,p,v,m[A+7],16,-155497632),v=u(v,b,x,p,m[A+10],23,-1094730640),p=u(p,v,b,x,m[A+13],4,681279174),x=u(x,p,v,b,m[A],11,-358537222),b=u(b,x,p,v,m[A+3],16,-722521979),v=u(v,b,x,p,m[A+6],23,76029189),p=u(p,v,b,x,m[A+9],4,-640364487),x=u(x,p,v,b,m[A+12],11,-421815835),b=u(b,x,p,v,m[A+15],16,530742520),v=u(v,b,x,p,m[A+2],23,-995338651),p=h(p,v,b,x,m[A],6,-198630844),x=h(x,p,v,b,m[A+7],10,1126891415),b=h(b,x,p,v,m[A+14],15,-1416354905),v=h(v,b,x,p,m[A+5],21,-57434055),p=h(p,v,b,x,m[A+12],6,1700485571),x=h(x,p,v,b,m[A+3],10,-1894986606),b=h(b,x,p,v,m[A+10],15,-1051523),v=h(v,b,x,p,m[A+1],21,-2054922799),p=h(p,v,b,x,m[A+8],6,1873313359),x=h(x,p,v,b,m[A+15],10,-30611744),b=h(b,x,p,v,m[A+6],15,-1560198380),v=h(v,b,x,p,m[A+13],21,1309151649),p=h(p,v,b,x,m[A+4],6,-145523070),x=h(x,p,v,b,m[A+11],10,-1120210379),b=h(b,x,p,v,m[A+2],15,718787259),v=h(v,b,x,p,m[A+9],21,-343485551),p=o(p,M),v=o(v,V),b=o(b,W),x=o(x,R)}return[p,v,b,x]})((function(m){if(m.length===0)return[];const g=8*m.length,p=new Uint32Array(r(g));for(let v=0;v<g;v+=8)p[v>>5]|=(255&m[v/8])<<v%32;return p})(f),8*f.length))};c.default=d},{}],530:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r,o=(r=e("./validate.js"))&&r.__esModule?r:{default:r},l=function(a){if(!(0,o.default)(a))throw TypeError("Invalid UUID");let n;const u=new Uint8Array(16);return u[0]=(n=parseInt(a.slice(0,8),16))>>>24,u[1]=n>>>16&255,u[2]=n>>>8&255,u[3]=255&n,u[4]=(n=parseInt(a.slice(9,13),16))>>>8,u[5]=255&n,u[6]=(n=parseInt(a.slice(14,18),16))>>>8,u[7]=255&n,u[8]=(n=parseInt(a.slice(19,23),16))>>>8,u[9]=255&n,u[10]=(n=parseInt(a.slice(24,36),16))/1099511627776&255,u[11]=n/4294967296&255,u[12]=n>>>24&255,u[13]=n>>>16&255,u[14]=n>>>8&255,u[15]=255&n,u};c.default=l},{"./validate.js":541}],532:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0,c.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,s,c){let r;Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(){if(!r&&(r=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)};const o=new Uint8Array(16)},{}],534:[function(e,s,c){function r(a,n,u,h){switch(a){case 0:return n&u^~n&h;case 1:return n^u^h;case 2:return n&u^n&h^u&h;case 3:return n^u^h}}function o(a,n){return a<<n|a>>>32-n}Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var l=function(a){const n=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof a=="string"){const m=unescape(encodeURIComponent(a));a=[];for(let g=0;g<m.length;++g)a.push(m.charCodeAt(g))}else Array.isArray(a)||(a=Array.prototype.slice.call(a));a.push(128);const h=a.length/4+2,d=Math.ceil(h/16),f=new Array(d);for(let m=0;m<d;++m){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=a[64*m+4*p]<<24|a[64*m+4*p+1]<<16|a[64*m+4*p+2]<<8|a[64*m+4*p+3];f[m]=g}f[d-1][14]=8*(a.length-1)/Math.pow(2,32),f[d-1][14]=Math.floor(f[d-1][14]),f[d-1][15]=8*(a.length-1)&4294967295;for(let m=0;m<d;++m){const g=new Uint32Array(80);for(let M=0;M<16;++M)g[M]=f[m][M];for(let M=16;M<80;++M)g[M]=o(g[M-3]^g[M-8]^g[M-14]^g[M-16],1);let p=u[0],v=u[1],b=u[2],x=u[3],A=u[4];for(let M=0;M<80;++M){const V=Math.floor(M/20),W=o(p,5)+r(V,v,b,x)+A+n[V]+g[M]>>>0;A=x,x=b,b=o(v,30)>>>0,v=p,p=W}u[0]=u[0]+p>>>0,u[1]=u[1]+v>>>0,u[2]=u[2]+b>>>0,u[3]=u[3]+x>>>0,u[4]=u[4]+A>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,255&u[0],u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,255&u[1],u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,255&u[2],u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,255&u[3],u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,255&u[4]]};c.default=l},{}],535:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r,o=(r=e("./validate.js"))&&r.__esModule?r:{default:r};const l=[];for(let n=0;n<256;++n)l.push((n+256).toString(16).substr(1));var a=function(n){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const h=(l[n[u+0]]+l[n[u+1]]+l[n[u+2]]+l[n[u+3]]+"-"+l[n[u+4]]+l[n[u+5]]+"-"+l[n[u+6]]+l[n[u+7]]+"-"+l[n[u+8]]+l[n[u+9]]+"-"+l[n[u+10]]+l[n[u+11]]+l[n[u+12]]+l[n[u+13]]+l[n[u+14]]+l[n[u+15]]).toLowerCase();if(!(0,o.default)(h))throw TypeError("Stringified UUID is invalid");return h};c.default=a},{"./validate.js":541}],536:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r=l(e("./rng.js")),o=l(e("./stringify.js"));function l(f){return f&&f.__esModule?f:{default:f}}let a,n,u=0,h=0;var d=function(f,m,g){let p=m&&g||0;const v=m||new Array(16);let b=(f=f||{}).node||a,x=f.clockseq!==void 0?f.clockseq:n;if(b==null||x==null){const F=f.random||(f.rng||r.default)();b==null&&(b=a=[1|F[0],F[1],F[2],F[3],F[4],F[5]]),x==null&&(x=n=16383&(F[6]<<8|F[7]))}let A=f.msecs!==void 0?f.msecs:Date.now(),M=f.nsecs!==void 0?f.nsecs:h+1;const V=A-u+(M-h)/1e4;if(V<0&&f.clockseq===void 0&&(x=x+1&16383),(V<0||A>u)&&f.nsecs===void 0&&(M=0),M>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");u=A,h=M,n=x,A+=122192928e5;const W=(1e4*(268435455&A)+M)%4294967296;v[p++]=W>>>24&255,v[p++]=W>>>16&255,v[p++]=W>>>8&255,v[p++]=255&W;const R=A/4294967296*1e4&268435455;v[p++]=R>>>8&255,v[p++]=255&R,v[p++]=R>>>24&15|16,v[p++]=R>>>16&255,v[p++]=x>>>8|128,v[p++]=255&x;for(let F=0;F<6;++F)v[p+F]=b[F];return m||(0,o.default)(v)};c.default=d},{"./rng.js":533,"./stringify.js":535}],537:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r=l(e("./v35.js")),o=l(e("./md5.js"));function l(n){return n&&n.__esModule?n:{default:n}}var a=(0,r.default)("v3",48,o.default);c.default=a},{"./md5.js":529,"./v35.js":538}],538:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=function(u,h,d){function f(m,g,p,v){if(typeof m=="string"&&(m=(function(x){x=unescape(encodeURIComponent(x));const A=[];for(let M=0;M<x.length;++M)A.push(x.charCodeAt(M));return A})(m)),typeof g=="string"&&(g=(0,o.default)(g)),g.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let b=new Uint8Array(16+m.length);if(b.set(g),b.set(m,g.length),b=d(b),b[6]=15&b[6]|h,b[8]=63&b[8]|128,p){v=v||0;for(let x=0;x<16;++x)p[v+x]=b[x];return p}return(0,r.default)(b)}try{f.name=u}catch{}return f.DNS=a,f.URL=n,f},c.URL=c.DNS=void 0;var r=l(e("./stringify.js")),o=l(e("./parse.js"));function l(u){return u&&u.__esModule?u:{default:u}}const a="6ba7b810-9dad-11d1-80b4-00c04fd430c8";c.DNS=a;const n="6ba7b811-9dad-11d1-80b4-00c04fd430c8";c.URL=n},{"./parse.js":531,"./stringify.js":535}],539:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r=l(e("./rng.js")),o=l(e("./stringify.js"));function l(n){return n&&n.__esModule?n:{default:n}}var a=function(n,u,h){const d=(n=n||{}).random||(n.rng||r.default)();if(d[6]=15&d[6]|64,d[8]=63&d[8]|128,u){h=h||0;for(let f=0;f<16;++f)u[h+f]=d[f];return u}return(0,o.default)(d)};c.default=a},{"./rng.js":533,"./stringify.js":535}],540:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r=l(e("./v35.js")),o=l(e("./sha1.js"));function l(n){return n&&n.__esModule?n:{default:n}}var a=(0,r.default)("v5",80,o.default);c.default=a},{"./sha1.js":534,"./v35.js":538}],541:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r,o=(r=e("./regex.js"))&&r.__esModule?r:{default:r},l=function(a){return typeof a=="string"&&o.default.test(a)};c.default=l},{"./regex.js":532}],542:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.default=void 0;var r,o=(r=e("./validate.js"))&&r.__esModule?r:{default:r},l=function(a){if(!(0,o.default)(a))throw TypeError("Invalid UUID");return parseInt(a.substr(14,1),16)};c.default=l},{"./validate.js":541}],543:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR=`
106
+ \r -퟿-�𐀀-􏿿`,c.S=` \r
107
+ `,c.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",c.NAME_CHAR="-"+c.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",c.CHAR_RE=new RegExp("^["+c.CHAR+"]$","u"),c.S_RE=new RegExp("^["+c.S+"]+$","u"),c.NAME_START_CHAR_RE=new RegExp("^["+c.NAME_START_CHAR+"]$","u"),c.NAME_CHAR_RE=new RegExp("^["+c.NAME_CHAR+"]$","u"),c.NAME_RE=new RegExp("^["+c.NAME_START_CHAR+"]["+c.NAME_CHAR+"]*$","u"),c.NMTOKEN_RE=new RegExp("^["+c.NAME_CHAR+"]+$","u");function r(o){return o>=65&&o<=90||o>=97&&o<=122||o===58||o===95||o===8204||o===8205||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}c.S_LIST=[32,10,13,9],c.isChar=function(o){return o>=32&&o<=55295||o===10||o===13||o===9||o>=57344&&o<=65533||o>=65536&&o<=1114111},c.isS=function(o){return o===32||o===10||o===13||o===9},c.isNameStartChar=r,c.isNameChar=function(o){return r(o)||o>=48&&o<=57||o===45||o===46||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}],544:[function(e,s,c){Object.defineProperty(c,"__esModule",{value:!0}),c.CHAR="-퟿-�𐀀-􏿿",c.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",c.S=` \r
108
+ `,c.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",c.NAME_CHAR="-"+c.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",c.CHAR_RE=new RegExp("^["+c.CHAR+"]$","u"),c.RESTRICTED_CHAR_RE=new RegExp("^["+c.RESTRICTED_CHAR+"]$","u"),c.S_RE=new RegExp("^["+c.S+"]+$","u"),c.NAME_START_CHAR_RE=new RegExp("^["+c.NAME_START_CHAR+"]$","u"),c.NAME_CHAR_RE=new RegExp("^["+c.NAME_CHAR+"]$","u"),c.NAME_RE=new RegExp("^["+c.NAME_START_CHAR+"]["+c.NAME_CHAR+"]*$","u"),c.NMTOKEN_RE=new RegExp("^["+c.NAME_CHAR+"]+$","u");function r(o){return o>=65&&o<=90||o>=97&&o<=122||o===58||o===95||o===8204||o===8205||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}c.S_LIST=[32,10,13,9],c.isChar=function(o){return o>=1&&o<=55295||o>=57344&&o<=65533||o>=65536&&o<=1114111},c.isRestrictedChar=function(o){return o>=1&&o<=8||o===11||o===12||o>=14&&o<=31||o>=127&&o<=132||o>=134&&o<=159},c.isCharAndNotRestricted=function(o){return o===9||o===10||o===13||o>31&&o<127||o===133||o>159&&o<=55295||o>=57344&&o<=65533||o>=65536&&o<=1114111},c.isS=function(o){return o===32||o===10||o===13||o===9},c.isNameStartChar=r,c.isNameChar=function(o){return r(o)||o>=48&&o<=57||o===45||o===46||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}],545:[function(e,s,c){function r(o){return o>=65&&o<=90||o===95||o>=97&&o<=122||o>=192&&o<=214||o>=216&&o<=246||o>=248&&o<=767||o>=880&&o<=893||o>=895&&o<=8191||o>=8204&&o<=8205||o>=8304&&o<=8591||o>=11264&&o<=12271||o>=12289&&o<=55295||o>=63744&&o<=64975||o>=65008&&o<=65533||o>=65536&&o<=983039}Object.defineProperty(c,"__esModule",{value:!0}),c.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",c.NC_NAME_CHAR="-"+c.NC_NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",c.NC_NAME_START_CHAR_RE=new RegExp("^["+c.NC_NAME_START_CHAR+"]$","u"),c.NC_NAME_CHAR_RE=new RegExp("^["+c.NC_NAME_CHAR+"]$","u"),c.NC_NAME_RE=new RegExp("^["+c.NC_NAME_START_CHAR+"]["+c.NC_NAME_CHAR+"]*$","u"),c.isNCNameStartChar=r,c.isNCNameChar=function(o){return r(o)||o===45||o===46||o>=48&&o<=57||o===183||o>=768&&o<=879||o>=8255&&o<=8256}},{}]},{},[15])(15)}))})(af)),af.exports}var k3=S3();const C3=N1(k3);function A3(t,i){const e=new Ft({orientation:"landscape"}),s=new Date,c=`${s.toLocaleDateString()} ${s.toLocaleTimeString()}`,r="Relatório";e.setFont("helvetica","bold"),e.setFontSize(16),e.text(r,e.internal.pageSize.getWidth()/2,20,{align:"center"});const o=i.filter(a=>a.isVisible&&a.value!=="actions").map(a=>a.title),l=t.map(a=>i.filter(n=>n.isVisible&&n.value!=="actions").map(n=>E1(a,n)));_3(e,{head:[o],body:l,startY:30,styles:{fontSize:8,cellPadding:3,overflow:"linebreak",halign:"center",valign:"middle"},columnStyles:{0:{cellWidth:"auto"}},headStyles:{fillColor:[0,123,255],textColor:[255,255,255],fontStyle:"bold"},alternateRowStyles:{fillColor:[240,240,240]},tableLineColor:[200,200,200],tableLineWidth:.1,margin:{top:40},pageBreak:"auto",didDrawPage:()=>{e.setFontSize(10),e.text(`Exportado em: ${c}`,20,e.internal.pageSize.getHeight()-10)}}),e.save("relatorio.pdf")}function N3(t,i,e="pt-BR"){return new Intl.NumberFormat(e,{style:"currency",currency:i,currencyDisplay:"symbol"}).format(t)}function E3(t,i){const e=new C3.Workbook,s=e.addWorksheet("Relatório"),c=new Date,r=`${c.toLocaleDateString()} ${c.toLocaleTimeString()}`,o=i.filter(n=>n.isVisible&&n.value!=="actions").sort((n,u)=>n.sequence-u.sequence).map(n=>n.title);s.addRow(o),s.getRow(1).eachCell((n,u)=>{n.font={bold:!0,color:{argb:"FFFFFFFF"},size:12},n.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF007BFF"}},n.alignment={vertical:"middle",horizontal:"center"},n.border={top:{style:"thick",color:{argb:"FF000000"}},left:{style:"thin",color:{argb:"FF000000"}},bottom:{style:"thick",color:{argb:"FF000000"}},right:{style:"thin",color:{argb:"FF000000"}}},s.getColumn(u).width=Math.max(n.value.toString().length+5,20)});for(const n of t){const u=i.sort((f,m)=>f.sequence-m.sequence).filter(f=>f.isVisible&&f.value!=="actions"),h=u.map(f=>E1(n,f));s.addRow(h).eachCell((f,m)=>{const g=m-1;f.border={left:{style:"thin",color:{argb:"FF000000"}},bottom:{style:"thin",color:{argb:"FF000000"}},right:{style:"thin",color:{argb:"FF000000"}}};const p=u[g]?.type;if(p=="date")f.numFmt="dd/mm/yyyy";else if(p=="currency"){const v=h[g];if(!v||v==" "){f.value="-";return}const[b,x]=v.split(" ");f.value=Number(x.replace(/\./g,"").replace(",",".")),f.numFmt=`[$${b}]" "#,##0.00_);([$${b}]" "#,##0.00);[$${b}]" "0.00;@`}})}const a=s.addRow([`Exportado em: ${r}`]);a.getCell(1).font={italic:!0,color:{argb:"FF555555"},size:10},a.getCell(1).alignment={horizontal:"center"},e.xlsx.writeBuffer({useStyles:!0}).then(n=>{const u=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),h=document.createElement("a");h.href=URL.createObjectURL(u),h.download="relatorio.xlsx",h.click()})}function E1(t,i){if(i?.type=="date"&&t[i.value])return new Date(t[i.value]);if(i.displayValue){const s=i.displayValue(t);return s==null||s===""?"-":s}const e=i.value.split(".").reduce((s,c)=>s&&s[c]!==void 0?s[c]:void 0,t);return e==null||e===""?"-":e}function T1(t,i,e){t==="pdf"?A3(i,e):t==="xls"&&E3(i,e)}const P1="vuetifyElementsI18n";function Rs(){const t=y.inject(P1);if(!t)throw new Error("Translator not provided. Did you forget to install vuetifyElements?");return t}const T3=["dotted","dashed","solid","double"],P3=Ze({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:t=>T3.includes(t)},...or(),...cn()},"VDivider"),Ui=xt()({name:"VDivider",props:P3(),setup(t,i){let{attrs:e,slots:s}=i;const{themeClasses:c}=Pn(t),{textColorClasses:r,textColorStyles:o}=$i(()=>t.color),l=y.computed(()=>{const n={};return t.length&&(n[t.vertical?"height":"width"]=St(t.length)),t.thickness&&(n[t.vertical?"borderRightWidth":"borderTopWidth"]=St(t.thickness)),n}),a=y.toRef(()=>{const n=Array.isArray(t.contentOffset)?t.contentOffset[0]:t.contentOffset,u=Array.isArray(t.contentOffset)?t.contentOffset[1]:0;return{marginBlock:t.vertical&&n?St(n):void 0,marginInline:!t.vertical&&n?St(n):void 0,transform:u?`translate${t.vertical?"X":"Y"}(${St(u)})`:void 0}});return jt(()=>{const n=y.createElementVNode("hr",{class:y.normalizeClass([{"v-divider":!0,"v-divider--gradient":t.gradient&&!s.default,"v-divider--inset":t.inset,"v-divider--vertical":t.vertical},c.value,r.value,t.class]),style:y.normalizeStyle([l.value,o.value,{"--v-border-opacity":t.opacity},{"border-style":t.variant},t.style]),"aria-orientation":!e.role||e.role==="separator"?t.vertical?"vertical":"horizontal":void 0,role:`${e.role||"separator"}`},null);return s.default?y.createElementVNode("div",{class:y.normalizeClass(["v-divider__wrapper",{"v-divider__wrapper--gradient":t.gradient,"v-divider__wrapper--inset":t.inset,"v-divider__wrapper--vertical":t.vertical}])},[n,y.createElementVNode("div",{class:"v-divider__content",style:y.normalizeStyle(a.value)},[s.default()]),n]):n}),{}}}),M1=ju.reduce((t,i)=>(t[i]={type:[Boolean,String,Number],default:!1},t),{}),I1=ju.reduce((t,i)=>{const e="offset"+y.capitalize(i);return t[e]={type:[String,Number],default:null},t},{}),R1=ju.reduce((t,i)=>{const e="order"+y.capitalize(i);return t[e]={type:[String,Number],default:null},t},{}),gm={col:Object.keys(M1),offset:Object.keys(I1),order:Object.keys(R1)};function M3(t,i,e){let s=t;if(!(e==null||e===!1)){if(i){const c=i.replace(t,"");s+=`-${c}`}return t==="col"&&(s="v-"+s),t==="col"&&(e===""||e===!0)||(s+=`-${e}`),s.toLowerCase()}}const I3=["auto","start","end","center","baseline","stretch"],R3=Ze({cols:{type:[Boolean,String,Number],default:!1},...M1,offset:{type:[String,Number],default:null},...I1,order:{type:[String,Number],default:null},...R1,alignSelf:{type:String,default:null,validator:t=>I3.includes(t)},...or(),...Vr()},"VCol"),Nn=xt()({name:"VCol",props:R3(),setup(t,i){let{slots:e}=i;const s=y.computed(()=>{const c=[];let r;for(r in gm)gm[r].forEach(l=>{const a=t[l],n=M3(r,l,a);n&&c.push(n)});const o=c.some(l=>l.startsWith("v-col-"));return c.push({"v-col":!o||!t.cols,[`v-col-${t.cols}`]:t.cols,[`offset-${t.offset}`]:t.offset,[`order-${t.order}`]:t.order,[`align-self-${t.alignSelf}`]:t.alignSelf}),c});return()=>y.h(t.tag,{class:[s.value,t.class],style:t.style},e.default?.())}}),pd=["start","end","center"],L1=["space-between","space-around","space-evenly"];function md(t,i){return ju.reduce((e,s)=>{const c=t+y.capitalize(s);return e[c]=i(),e},{})}const L3=[...pd,"baseline","stretch"],O1=t=>L3.includes(t),F1=md("align",()=>({type:String,default:null,validator:O1})),O3=[...pd,...L1],B1=t=>O3.includes(t),j1=md("justify",()=>({type:String,default:null,validator:B1})),F3=[...pd,...L1,"stretch"],D1=t=>F3.includes(t),V1=md("alignContent",()=>({type:String,default:null,validator:D1})),vm={align:Object.keys(F1),justify:Object.keys(j1),alignContent:Object.keys(V1)},B3={align:"align",justify:"justify",alignContent:"align-content"};function j3(t,i,e){let s=B3[t];if(e!=null){if(i){const c=i.replace(t,"");s+=`-${c}`}return s+=`-${e}`,s.toLowerCase()}}const D3=Ze({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:O1},...F1,justify:{type:String,default:null,validator:B1},...j1,alignContent:{type:String,default:null,validator:D1},...V1,...or(),...Vr()},"VRow"),ys=xt()({name:"VRow",props:D3(),setup(t,i){let{slots:e}=i;const s=y.computed(()=>{const c=[];let r;for(r in vm)vm[r].forEach(o=>{const l=t[o],a=j3(r,o,l);a&&c.push(a)});return c.push({"v-row--no-gutters":t.noGutters,"v-row--dense":t.dense,[`align-${t.align}`]:t.align,[`justify-${t.justify}`]:t.justify,[`align-content-${t.alignContent}`]:t.alignContent}),c});return()=>y.h(t.tag,{class:["v-row",s.value,t.class],style:t.style},e.default?.())}}),z1=Jf("v-spacer","div","VSpacer"),V3=Ze({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function oi(t,i,e){return xt()({name:t,props:V3({mode:e,origin:i}),setup(s,c){let{slots:r}=c;const o={onBeforeEnter(l){s.origin&&(l.style.transformOrigin=s.origin)},onLeave(l){if(s.leaveAbsolute){const{offsetTop:a,offsetLeft:n,offsetWidth:u,offsetHeight:h}=l;l._transitionInitialStyles={position:l.style.position,top:l.style.top,left:l.style.left,width:l.style.width,height:l.style.height},l.style.position="absolute",l.style.top=`${a}px`,l.style.left=`${n}px`,l.style.width=`${u}px`,l.style.height=`${h}px`}s.hideOnLeave&&l.style.setProperty("display","none","important")},onAfterLeave(l){if(s.leaveAbsolute&&l?._transitionInitialStyles){const{position:a,top:n,left:u,width:h,height:d}=l._transitionInitialStyles;delete l._transitionInitialStyles,l.style.position=a||"",l.style.top=n||"",l.style.left=u||"",l.style.width=h||"",l.style.height=d||""}}};return()=>{const l=s.group?y.TransitionGroup:y.Transition;return y.h(l,{name:s.disabled?"":t,css:!s.disabled,...s.group?void 0:{mode:s.mode},...s.disabled?{}:o},r.default)}}})}function U1(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"in-out";return xt()({name:t,props:{mode:{type:String,default:e},disabled:{type:Boolean,default:co()},group:Boolean},setup(s,c){let{slots:r}=c;const o=s.group?y.TransitionGroup:y.Transition;return()=>y.h(o,{name:s.disabled?"":t,css:!s.disabled,...s.disabled?{}:i},r.default)}})}function $1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";const e=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)?"width":"height",s=y.camelize(`offset-${e}`);return{onBeforeEnter(o){o._parent=o.parentNode,o._initialStyle={transition:o.style.transition,overflow:o.style.overflow,[e]:o.style[e]}},onEnter(o){const l=o._initialStyle;if(!l)return;o.style.setProperty("transition","none","important"),o.style.overflow="hidden";const a=`${o[s]}px`;o.style[e]="0",o.offsetHeight,o.style.transition=l.transition,t&&o._parent&&o._parent.classList.add(t),requestAnimationFrame(()=>{o.style[e]=a})},onAfterEnter:r,onEnterCancelled:r,onLeave(o){o._initialStyle={transition:"",overflow:o.style.overflow,[e]:o.style[e]},o.style.overflow="hidden",o.style[e]=`${o[s]}px`,o.offsetHeight,requestAnimationFrame(()=>o.style[e]="0")},onAfterLeave:c,onLeaveCancelled:c};function c(o){t&&o._parent&&o._parent.classList.remove(t),r(o)}function r(o){if(!o._initialStyle)return;const l=o._initialStyle[e];o.style.overflow=o._initialStyle.overflow,l!=null&&(o.style[e]=l),delete o._initialStyle}}const z3=Ze({target:[Object,Array]},"v-dialog-transition"),sf=new WeakMap,gd=xt()({name:"VDialogTransition",props:z3(),setup(t,i){let{slots:e}=i;const s={onBeforeEnter(c){c.style.pointerEvents="none",c.style.visibility="hidden"},async onEnter(c,r){await new Promise(d=>requestAnimationFrame(d)),await new Promise(d=>requestAnimationFrame(d)),c.style.visibility="";const o=ym(t.target,c),{x:l,y:a,sx:n,sy:u,speed:h}=o;if(sf.set(c,o),co())Fa(c,[{opacity:0},{}],{duration:125*h,easing:Oh}).finished.then(()=>r());else{const d=Fa(c,[{transform:`translate(${l}px, ${a}px) scale(${n}, ${u})`,opacity:0},{}],{duration:225*h,easing:Oh});bm(c)?.forEach(f=>{Fa(f,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*h,easing:yu})}),d.finished.then(()=>r())}},onAfterEnter(c){c.style.removeProperty("pointer-events")},onBeforeLeave(c){c.style.pointerEvents="none"},async onLeave(c,r){await new Promise(d=>requestAnimationFrame(d));let o;!sf.has(c)||Array.isArray(t.target)||t.target.offsetParent||t.target.getClientRects().length?o=ym(t.target,c):o=sf.get(c);const{x:l,y:a,sx:n,sy:u,speed:h}=o;co()?Fa(c,[{},{opacity:0}],{duration:85*h,easing:Fh}).finished.then(()=>r()):(Fa(c,[{},{transform:`translate(${l}px, ${a}px) scale(${n}, ${u})`,opacity:0}],{duration:125*h,easing:Fh}).finished.then(()=>r()),bm(c)?.forEach(f=>{Fa(f,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*h,easing:yu})}))},onAfterLeave(c){c.style.removeProperty("pointer-events")}};return()=>t.target?y.createVNode(y.Transition,y.mergeProps({name:"dialog-transition"},s,{css:!1}),e):y.createVNode(y.Transition,{name:"dialog-transition"},e)}});function bm(t){const i=t.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return i&&[...i]}function ym(t,i){const e=Xm(t),s=Yf(i),[c,r]=getComputedStyle(i).transformOrigin.split(" ").map(v=>parseFloat(v)),[o,l]=getComputedStyle(i).getPropertyValue("--v-overlay-anchor-origin").split(" ");let a=e.left+e.width/2;o==="left"||l==="left"?a-=e.width/2:(o==="right"||l==="right")&&(a+=e.width/2);let n=e.top+e.height/2;o==="top"||l==="top"?n-=e.height/2:(o==="bottom"||l==="bottom")&&(n+=e.height/2);const u=e.width/s.width,h=e.height/s.height,d=Math.max(1,u,h),f=u/d||0,m=h/d||0,g=s.width*s.height/(window.innerWidth*window.innerHeight),p=g>.12?Math.min(1.5,(g-.12)*10+1):1;return{x:a-(c+s.left),y:n-(r+s.top),sx:f,sy:m,speed:p}}oi("fab-transition","center center","out-in");oi("dialog-bottom-transition");oi("dialog-top-transition");const wm=oi("fade-transition"),U3=oi("scale-transition");oi("scroll-x-transition");oi("scroll-x-reverse-transition");oi("scroll-y-transition");oi("scroll-y-reverse-transition");oi("slide-x-transition");const $3=oi("slide-x-reverse-transition"),q1=oi("slide-y-transition");oi("slide-y-reverse-transition");const q3=U1("expand-transition",$1()),H1=U1("expand-x-transition",$1("",!0)),Df=Symbol.for("vuetify:list");function W1(){let{filterable:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{filterable:!1};const i=y.inject(Df,{filterable:!1,hasPrepend:y.shallowRef(!1),updateHasPrepend:()=>null}),e={filterable:i.filterable||t,hasPrepend:y.shallowRef(!1),updateHasPrepend:s=>{s&&(e.hasPrepend.value=s)}};return y.provide(Df,e),i}function G1(){return y.inject(Df,null)}const vd=t=>{const i={activate:e=>{let{id:s,value:c,activated:r}=e;return s=y.toRaw(s),t&&!c&&r.size===1&&r.has(s)||(c?r.add(s):r.delete(s)),r},in:(e,s,c)=>{let r=new Set;if(e!=null)for(const o of rn(e))r=i.activate({id:o,value:!0,activated:new Set(r),children:s,parents:c});return r},out:e=>Array.from(e)};return i},X1=t=>{const i=vd(t);return{activate:s=>{let{activated:c,id:r,...o}=s;r=y.toRaw(r);const l=c.has(r)?new Set([r]):new Set;return i.activate({...o,id:r,activated:l})},in:(s,c,r)=>{let o=new Set;if(s!=null){const l=rn(s);l.length&&(o=i.in(l.slice(0,1),c,r))}return o},out:(s,c,r)=>i.out(s,c,r)}},H3=t=>{const i=vd(t);return{activate:s=>{let{id:c,activated:r,children:o,...l}=s;return c=y.toRaw(c),o.has(c)?r:i.activate({id:c,activated:r,children:o,...l})},in:i.in,out:i.out}},W3=t=>{const i=X1(t);return{activate:s=>{let{id:c,activated:r,children:o,...l}=s;return c=y.toRaw(c),o.has(c)?r:i.activate({id:c,activated:r,children:o,...l})},in:i.in,out:i.out}},G3={open:t=>{let{id:i,value:e,opened:s,parents:c}=t;if(e){const r=new Set;r.add(i);let o=c.get(i);for(;o!=null;)r.add(o),o=c.get(o);return r}else return s.delete(i),s},select:()=>null},K1={open:t=>{let{id:i,value:e,opened:s,parents:c}=t;if(e){let r=c.get(i);for(s.add(i);r!=null&&r!==i;)s.add(r),r=c.get(r);return s}else s.delete(i);return s},select:()=>null},X3={open:K1.open,select:t=>{let{id:i,value:e,opened:s,parents:c}=t;if(!e)return s;const r=[];let o=c.get(i);for(;o!=null;)r.push(o),o=c.get(o);return new Set(r)}},bd=t=>{const i={select:e=>{let{id:s,value:c,selected:r}=e;if(s=y.toRaw(s),t&&!c){const o=Array.from(r.entries()).reduce((l,a)=>{let[n,u]=a;return u==="on"&&l.push(n),l},[]);if(o.length===1&&o[0]===s)return r}return r.set(s,c?"on":"off"),r},in:(e,s,c,r)=>{const o=new Map;for(const l of e||[])i.select({id:l,value:!0,selected:o,children:s,parents:c,disabled:r});return o},out:e=>{const s=[];for(const[c,r]of e.entries())r==="on"&&s.push(c);return s}};return i},Y1=t=>{const i=bd(t);return{select:s=>{let{selected:c,id:r,...o}=s;r=y.toRaw(r);const l=c.has(r)?new Map([[r,c.get(r)]]):new Map;return i.select({...o,id:r,selected:l})},in:(s,c,r,o)=>s?.length?i.in(s.slice(0,1),c,r,o):new Map,out:(s,c,r)=>i.out(s,c,r)}},K3=t=>{const i=bd(t);return{select:s=>{let{id:c,selected:r,children:o,...l}=s;return c=y.toRaw(c),o.has(c)?r:i.select({id:c,selected:r,children:o,...l})},in:i.in,out:i.out}},Y3=t=>{const i=Y1(t);return{select:s=>{let{id:c,selected:r,children:o,...l}=s;return c=y.toRaw(c),o.has(c)?r:i.select({id:c,selected:r,children:o,...l})},in:i.in,out:i.out}},Z1=t=>{const i={select:e=>{let{id:s,value:c,selected:r,children:o,parents:l,disabled:a}=e;s=y.toRaw(s);const n=new Map(r),u=[s];for(;u.length;){const d=u.shift();a.has(d)||r.set(y.toRaw(d),c?"on":"off"),o.has(d)&&u.push(...o.get(d))}let h=y.toRaw(l.get(s));for(;h;){let d=!0,f=!0;for(const m of o.get(h)){const g=y.toRaw(m);if(!a.has(g)&&(r.get(g)!=="on"&&(d=!1),r.has(g)&&r.get(g)!=="off"&&(f=!1),!d&&!f))break}r.set(h,d?"on":f?"off":"indeterminate"),h=y.toRaw(l.get(h))}return t&&!c&&Array.from(r.entries()).reduce((f,m)=>{let[g,p]=m;return p==="on"&&f.push(g),f},[]).length===0?n:r},in:(e,s,c,r)=>{let o=new Map;for(const l of e||[])o=i.select({id:l,value:!0,selected:o,children:s,parents:c,disabled:r});return o},out:(e,s)=>{const c=[];for(const[r,o]of e.entries())o==="on"&&!s.has(r)&&c.push(r);return c}};return i},Z3=t=>{const i=Z1(t);return{select:i.select,in:i.in,out:(s,c,r)=>{const o=[];for(const[l,a]of s.entries())if(a==="on"){if(r.has(l)){const n=r.get(l);if(s.get(n)==="on")continue}o.push(l)}return o}}},po=Symbol.for("vuetify:nested"),J1={id:y.shallowRef(),root:{itemsRegistration:y.ref("render"),register:()=>null,unregister:()=>null,children:y.ref(new Map),parents:y.ref(new Map),disabled:y.ref(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:y.ref(!1),selectable:y.ref(!1),opened:y.ref(new Set),activated:y.ref(new Set),selected:y.ref(new Map),selectedValues:y.ref([]),getPath:()=>[]}},J3=Ze({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),Q3=(t,i,e)=>{let s=!1;const c=y.shallowRef(new Map),r=y.shallowRef(new Map),o=y.shallowRef(new Set),l=cr(t,"opened",t.opened,x=>new Set(Array.isArray(x)?x.map(A=>y.toRaw(A)):x),x=>[...x.values()]),a=y.computed(()=>{if(typeof t.activeStrategy=="object")return t.activeStrategy;if(typeof t.activeStrategy=="function")return t.activeStrategy(t.mandatory);switch(t.activeStrategy){case"leaf":return H3(t.mandatory);case"single-leaf":return W3(t.mandatory);case"independent":return vd(t.mandatory);default:return X1(t.mandatory)}}),n=y.computed(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;if(typeof t.selectStrategy=="function")return t.selectStrategy(t.mandatory);switch(t.selectStrategy){case"single-leaf":return Y3(t.mandatory);case"leaf":return K3(t.mandatory);case"independent":return bd(t.mandatory);case"single-independent":return Y1(t.mandatory);case"trunk":return Z3(t.mandatory);default:return Z1(t.mandatory)}}),u=y.computed(()=>{if(typeof t.openStrategy=="object")return t.openStrategy;switch(t.openStrategy){case"list":return X3;case"single":return G3;default:return K1}}),h=cr(t,"activated",t.activated,x=>a.value.in(x,c.value,r.value),x=>a.value.out(x,c.value,r.value)),d=cr(t,"selected",t.selected,x=>n.value.in(x,c.value,r.value,o.value),x=>n.value.out(x,c.value,r.value));y.onBeforeUnmount(()=>{s=!0});function f(x){const A=[];let M=y.toRaw(x);for(;M!==void 0;)A.unshift(M),M=r.value.get(M);return A}const m=Jr("nested"),g=new Set,p=H2(()=>{y.nextTick(()=>{c.value=new Map(c.value),r.value=new Map(r.value)})},100);y.watch(()=>[i.value,y.toValue(e)],()=>{t.itemsRegistration==="props"&&v()},{immediate:!0});function v(){const x=new Map,A=new Map,M=new Set,V=y.toValue(e)?F=>y.toRaw(F.raw):F=>F.value,W=[...i.value];let R=0;for(;R<W.length;){const F=W[R++],$=V(F);if(F.children){const z=[];for(const D of F.children){const N=V(D);x.set(N,$),z.push(N),W.push(D)}A.set($,z)}F.props.disabled&&M.add($)}c.value=A,r.value=x,o.value=M}const b={id:y.shallowRef(),root:{opened:l,activatable:y.toRef(()=>t.activatable),selectable:y.toRef(()=>t.selectable),activated:h,selected:d,selectedValues:y.computed(()=>{const x=[];for(const[A,M]of d.value.entries())M==="on"&&x.push(A);return x}),itemsRegistration:y.toRef(()=>t.itemsRegistration),register:(x,A,M,V)=>{if(g.has(x)){const W=f(x).map(String).join(" -> "),R=f(A).concat(x).map(String).join(" -> ");Iu(`Multiple nodes with the same ID
109
+ ${W}
110
+ ${R}`);return}else g.add(x);A&&x!==A&&r.value.set(x,A),M&&o.value.add(x),V&&c.value.set(x,[]),A!=null&&c.value.set(A,[...c.value.get(A)||[],x]),p()},unregister:x=>{if(s)return;g.delete(x),c.value.delete(x),o.value.delete(x);const A=r.value.get(x);if(A){const M=c.value.get(A)??[];c.value.set(A,M.filter(V=>V!==x))}r.value.delete(x),p()},open:(x,A,M)=>{m.emit("click:open",{id:x,value:A,path:f(x),event:M});const V=u.value.open({id:x,value:A,opened:new Set(l.value),children:c.value,parents:r.value,event:M});V&&(l.value=V)},openOnSelect:(x,A,M)=>{const V=u.value.select({id:x,value:A,selected:new Map(d.value),opened:new Set(l.value),children:c.value,parents:r.value,event:M});V&&(l.value=V)},select:(x,A,M)=>{m.emit("click:select",{id:x,value:A,path:f(x),event:M});const V=n.value.select({id:x,value:A,selected:new Map(d.value),children:c.value,parents:r.value,disabled:o.value,event:M});V&&(d.value=V),b.root.openOnSelect(x,A,M)},activate:(x,A,M)=>{if(!t.activatable)return b.root.select(x,!0,M);m.emit("click:activate",{id:x,value:A,path:f(x),event:M});const V=a.value.activate({id:x,value:A,activated:new Set(h.value),children:c.value,parents:r.value,event:M});if(V.size!==h.value.size)h.value=V;else{for(const W of V)if(!h.value.has(W)){h.value=V;return}for(const W of h.value)if(!V.has(W)){h.value=V;return}}},children:c,parents:r,disabled:o,getPath:f}};return y.provide(po,b),b.root},Q1=(t,i,e)=>{const s=y.inject(po,J1),c=Symbol("nested item"),r=y.computed(()=>{const l=y.toRaw(y.toValue(t));return l!==void 0?l:c}),o={...s,id:r,open:(l,a)=>s.root.open(r.value,l,a),openOnSelect:(l,a)=>s.root.openOnSelect(r.value,l,a),isOpen:y.computed(()=>s.root.opened.value.has(r.value)),parent:y.computed(()=>s.root.parents.value.get(r.value)),activate:(l,a)=>s.root.activate(r.value,l,a),isActivated:y.computed(()=>s.root.activated.value.has(r.value)),select:(l,a)=>s.root.select(r.value,l,a),isSelected:y.computed(()=>s.root.selected.value.get(r.value)==="on"),isIndeterminate:y.computed(()=>s.root.selected.value.get(r.value)==="indeterminate"),isLeaf:y.computed(()=>!s.root.children.value.get(r.value)),isGroupActivator:s.isGroupActivator};return y.onBeforeMount(()=>{s.isGroupActivator||s.root.itemsRegistration.value==="props"||y.nextTick(()=>{s.root.register(r.value,s.id.value,y.toValue(i),e)})}),y.onBeforeUnmount(()=>{s.isGroupActivator||s.root.itemsRegistration.value==="props"||s.root.unregister(r.value)}),y.watch(r,(l,a)=>{s.isGroupActivator||s.root.itemsRegistration.value==="props"||(s.root.unregister(a),y.nextTick(()=>{s.root.register(l,s.id.value,y.toValue(i),e)}))}),e&&y.provide(po,o),o},e4=()=>{const t=y.inject(po,J1);y.provide(po,{...t,isGroupActivator:!0})};function t4(){const t=y.shallowRef(!1);return y.onMounted(()=>{window.requestAnimationFrame(()=>{t.value=!0})}),{ssrBootStyles:y.toRef(()=>t.value?void 0:{transition:"none !important"}),isBooted:y.readonly(t)}}const r4=cl({name:"VListGroupActivator",setup(t,i){let{slots:e}=i;return e4(),()=>e.default?.()}}),n4=Ze({activeColor:String,baseColor:String,color:String,collapseIcon:{type:$t,default:"$collapse"},disabled:Boolean,expandIcon:{type:$t,default:"$expand"},rawId:[String,Number],prependIcon:$t,appendIcon:$t,fluid:Boolean,subgroup:Boolean,title:String,value:null,...or(),...Vr()},"VListGroup"),xm=xt()({name:"VListGroup",props:n4(),setup(t,i){let{slots:e}=i;const{isOpen:s,open:c,id:r}=Q1(()=>t.value,()=>t.disabled,!0),o=y.computed(()=>`v-list-group--id-${String(t.rawId??r.value)}`),l=G1(),{isBooted:a}=t4(),n=y.inject(po),u=y.toRef(()=>n?.root?.itemsRegistration.value==="render");function h(g){["INPUT","TEXTAREA"].includes(g.target?.tagName)||c(!s.value,g)}const d=y.computed(()=>({onClick:h,class:"v-list-group__header",id:o.value})),f=y.computed(()=>s.value?t.collapseIcon:t.expandIcon),m=y.computed(()=>({VListItem:{activeColor:t.activeColor,baseColor:t.baseColor,color:t.color,prependIcon:t.prependIcon||t.subgroup&&f.value,appendIcon:t.appendIcon||!t.subgroup&&f.value,title:t.title,value:t.value}}));return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-list-group",{"v-list-group--prepend":l?.hasPrepend.value,"v-list-group--fluid":t.fluid,"v-list-group--subgroup":t.subgroup,"v-list-group--open":s.value},t.class]),style:y.normalizeStyle(t.style)},{default:()=>[e.activator&&y.createVNode(qr,{defaults:m.value},{default:()=>[y.createVNode(r4,null,{default:()=>[e.activator({props:d.value,isOpen:s.value})]})]}),y.createVNode(Ba,{transition:{component:q3},disabled:!a.value},{default:()=>[u.value?y.withDirectives(y.createElementVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[e.default?.()]),[[y.vShow,s.value]]):s.value&&y.createElementVNode("div",{class:"v-list-group__items",role:"group","aria-labelledby":o.value},[e.default?.()])]})]})),{isOpen:s}}}),i4=Ze({opacity:[Number,String],...or(),...Vr()},"VListItemSubtitle"),a4=xt()({name:"VListItemSubtitle",props:i4(),setup(t,i){let{slots:e}=i;return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-list-item-subtitle",t.class]),style:y.normalizeStyle([{"--v-list-item-subtitle-opacity":t.opacity},t.style])},e)),{}}}),Vf=Jf("v-list-item-title");function s4(t){return{aspectStyles:y.computed(()=>{const i=Number(t.aspectRatio);return i?{paddingBottom:String(1/i*100)+"%"}:void 0})}}const eg=Ze({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...or(),...Ka()},"VResponsive"),_m=xt()({name:"VResponsive",props:eg(),setup(t,i){let{slots:e}=i;const{aspectStyles:s}=s4(t),{dimensionStyles:c}=Ya(t);return jt(()=>y.createElementVNode("div",{class:y.normalizeClass(["v-responsive",{"v-responsive--inline":t.inline},t.class]),style:y.normalizeStyle([c.value,t.style])},[y.createElementVNode("div",{class:"v-responsive__sizer",style:y.normalizeStyle(s.value)},null),e.additional?.(),e.default&&y.createElementVNode("div",{class:y.normalizeClass(["v-responsive__content",t.contentClass])},[e.default()])])),{}}});function o4(t,i){if(!Wf)return;const e=i.modifiers||{},s=i.value,{handler:c,options:r}=typeof s=="object"?s:{handler:s,options:{}},o=new IntersectionObserver(function(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0;const n=t._observe?.[i.instance.$.uid];if(!n)return;const u=l.some(h=>h.isIntersecting);c&&(!e.quiet||n.init)&&(!e.once||u||n.init)&&c(u,l,a),u&&e.once?tg(t,i):n.init=!0},r);t._observe=Object(t._observe),t._observe[i.instance.$.uid]={init:!1,observer:o},o.observe(t)}function tg(t,i){const e=t._observe?.[i.instance.$.uid];e&&(e.observer.unobserve(t),delete t._observe[i.instance.$.uid])}const mo={mounted:o4,unmounted:tg},l4=Ze({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...eg(),...or(),...Ai(),...ml()},"VImg"),rg=xt()({name:"VImg",directives:{vIntersect:mo},props:l4(),emits:{loadstart:t=>!0,load:t=>!0,error:t=>!0},setup(t,i){let{emit:e,slots:s}=i;const{backgroundColorClasses:c,backgroundColorStyles:r}=fa(()=>t.color),{roundedClasses:o}=Gi(t),l=Jr("VImg"),a=y.shallowRef(""),n=y.ref(),u=y.shallowRef(t.eager?"loading":"idle"),h=y.shallowRef(),d=y.shallowRef(),f=y.computed(()=>t.src&&typeof t.src=="object"?{src:t.src.src,srcset:t.srcset||t.src.srcset,lazySrc:t.lazySrc||t.src.lazySrc,aspect:Number(t.aspectRatio||t.src.aspect||0)}:{src:t.src,srcset:t.srcset,lazySrc:t.lazySrc,aspect:Number(t.aspectRatio||0)}),m=y.computed(()=>f.value.aspect||h.value/d.value||0);y.watch(()=>t.src,()=>{g(u.value!=="idle")}),y.watch(m,(D,N)=>{!D&&N&&n.value&&A(n.value)}),y.onBeforeMount(()=>g());function g(D){if(!(t.eager&&D)&&!(Wf&&!D&&!t.eager)){if(u.value="loading",f.value.lazySrc){const N=new Image;N.src=f.value.lazySrc,A(N,null)}f.value.src&&y.nextTick(()=>{e("loadstart",n.value?.currentSrc||f.value.src),setTimeout(()=>{if(!l.isUnmounted)if(n.value?.complete){if(n.value.naturalWidth||v(),u.value==="error")return;m.value||A(n.value,null),u.value==="loading"&&p()}else m.value||A(n.value),b()})})}}function p(){l.isUnmounted||(b(),A(n.value),u.value="loaded",e("load",n.value?.currentSrc||f.value.src))}function v(){l.isUnmounted||(u.value="error",e("error",n.value?.currentSrc||f.value.src))}function b(){const D=n.value;D&&(a.value=D.currentSrc||D.src)}let x=-1;y.onBeforeUnmount(()=>{clearTimeout(x)});function A(D){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;const E=()=>{if(clearTimeout(x),l.isUnmounted)return;const{naturalHeight:C,naturalWidth:w}=D;C||w?(h.value=w,d.value=C):!D.complete&&u.value==="loading"&&N!=null?x=window.setTimeout(E,N):(D.currentSrc.endsWith(".svg")||D.currentSrc.startsWith("data:image/svg+xml"))&&(h.value=1,d.value=1)};E()}const M=y.toRef(()=>({"v-img__img--cover":t.cover,"v-img__img--contain":!t.cover})),V=()=>{if(!f.value.src||u.value==="idle")return null;const D=y.createElementVNode("img",{class:y.normalizeClass(["v-img__img",M.value]),style:{objectPosition:t.position},crossorigin:t.crossorigin,src:f.value.src,srcset:f.value.srcset,alt:t.alt,referrerpolicy:t.referrerpolicy,draggable:t.draggable,sizes:t.sizes,ref:n,onLoad:p,onError:v},null),N=s.sources?.();return y.createVNode(Ba,{transition:t.transition,appear:!0},{default:()=>[y.withDirectives(N?y.createElementVNode("picture",{class:"v-img__picture"},[N,D]):D,[[y.vShow,u.value==="loaded"]])]})},W=()=>y.createVNode(Ba,{transition:t.transition},{default:()=>[f.value.lazySrc&&u.value!=="loaded"&&y.createElementVNode("img",{class:y.normalizeClass(["v-img__img","v-img__img--preload",M.value]),style:{objectPosition:t.position},crossorigin:t.crossorigin,src:f.value.lazySrc,alt:t.alt,referrerpolicy:t.referrerpolicy,draggable:t.draggable},null)]}),R=()=>s.placeholder?y.createVNode(Ba,{transition:t.transition,appear:!0},{default:()=>[(u.value==="loading"||u.value==="error"&&!s.error)&&y.createElementVNode("div",{class:"v-img__placeholder"},[s.placeholder()])]}):null,F=()=>s.error?y.createVNode(Ba,{transition:t.transition,appear:!0},{default:()=>[u.value==="error"&&y.createElementVNode("div",{class:"v-img__error"},[s.error()])]}):null,$=()=>t.gradient?y.createElementVNode("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${t.gradient})`}},null):null,z=y.shallowRef(!1);{const D=y.watch(m,N=>{N&&(requestAnimationFrame(()=>{requestAnimationFrame(()=>{z.value=!0})}),D())})}return jt(()=>{const D=_m.filterProps(t);return y.withDirectives(y.createVNode(_m,y.mergeProps({class:["v-img",{"v-img--absolute":t.absolute,"v-img--booting":!z.value},c.value,o.value,t.class],style:[{width:St(t.width==="auto"?h.value:t.width)},r.value,t.style]},D,{aspectRatio:m.value,"aria-label":t.alt,role:t.alt?"img":void 0}),{additional:()=>y.createElementVNode(y.Fragment,null,[y.createVNode(V,null,null),y.createVNode(W,null,null),y.createVNode($,null,null),y.createVNode(R,null,null),y.createVNode(F,null,null)]),default:s.default}),[[mo,{handler:g,options:t.options},null,{once:!0}]])}),{currentSrc:a,image:n,state:u,naturalWidth:h,naturalHeight:d}}}),u4=Ze({start:Boolean,end:Boolean,icon:$t,image:String,text:String,...Xa(),...or(),...Vn(),...Ai(),...yo(),...Vr(),...cn(),...ga({variant:"flat"})},"VAvatar"),qa=xt()({name:"VAvatar",props:u4(),setup(t,i){let{slots:e}=i;const{themeClasses:s}=Pn(t),{borderClasses:c}=Ts(t),{colorClasses:r,colorStyles:o,variantClasses:l}=dl(t),{densityClasses:a}=Wi(t),{roundedClasses:n}=Gi(t),{sizeClasses:u,sizeStyles:h}=hl(t);return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-avatar",{"v-avatar--start":t.start,"v-avatar--end":t.end},s.value,c.value,r.value,a.value,n.value,u.value,l.value,t.class]),style:y.normalizeStyle([o.value,h.value,t.style])},{default:()=>[e.default?y.createVNode(qr,{key:"content-defaults",defaults:{VImg:{cover:!0,src:t.image},VIcon:{icon:t.icon}}},{default:()=>[e.default()]}):t.image?y.createVNode(rg,{key:"image",src:t.image,alt:"",cover:!0},null):t.icon?y.createVNode(nr,{key:"icon",icon:t.icon},null):t.text,fl(!1,"v-avatar")]})),{}}}),c4=Ze({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:$t,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:$t,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,onClick:vn(),onClickOnce:vn(),...Xa(),...or(),...Vn(),...Ka(),...Ps(),...Ai(),...Bu(),...Vr(),...cn(),...ga({variant:"text"})},"VListItem"),mi=xt()({name:"VListItem",directives:{vRipple:ha},props:c4(),emits:{click:t=>!0},setup(t,i){let{attrs:e,slots:s,emit:c}=i;const r=Fu(t,e),o=y.computed(()=>t.value===void 0?r.href.value:t.value),{activate:l,isActivated:a,select:n,isOpen:u,isSelected:h,isIndeterminate:d,isGroupActivator:f,root:m,parent:g,openOnSelect:p,id:v}=Q1(o,()=>t.disabled,!1),b=G1(),x=y.computed(()=>t.active!==!1&&(t.active||r.isActive?.value||(m.activatable.value?a.value:h.value))),A=y.toRef(()=>t.link!==!1&&r.isLink.value),M=y.computed(()=>!!b&&(m.selectable.value||m.activatable.value||t.value!=null)),V=y.computed(()=>!t.disabled&&t.link!==!1&&(t.link||r.isClickable.value||M.value)),W=y.computed(()=>b?A.value?"link":M.value?"option":"listitem":void 0),R=y.computed(()=>{if(M.value)return m.activatable.value?a.value:m.selectable.value?h.value:x.value}),F=y.toRef(()=>t.rounded||t.nav),$=y.toRef(()=>t.color??t.activeColor),z=y.toRef(()=>({color:x.value?$.value??t.baseColor:t.baseColor,variant:t.variant}));y.watch(()=>r.isActive?.value,X=>{X&&D()}),y.onBeforeMount(()=>{r.isActive?.value&&y.nextTick(()=>D())});function D(){g.value!=null&&m.open(g.value,!0),p(!0)}const{themeClasses:N}=Pn(t),{borderClasses:E}=Ts(t),{colorClasses:C,colorStyles:w,variantClasses:S}=dl(z),{densityClasses:_}=Wi(t),{dimensionStyles:k}=Ya(t),{elevationClasses:T}=bo(t),{roundedClasses:j}=Gi(F),P=y.toRef(()=>t.lines?`v-list-item--${t.lines}-line`:void 0),U=y.toRef(()=>t.ripple!==void 0&&t.ripple&&b?.filterable?{keys:["Enter"]}:t.ripple),q=y.computed(()=>({isActive:x.value,select:n,isOpen:u.value,isSelected:h.value,isIndeterminate:d.value}));function Z(X){c("click",X),!["INPUT","TEXTAREA"].includes(X.target?.tagName)&&V.value&&(r.navigate?.(X),!f&&(m.activatable.value?l(!a.value,X):(m.selectable.value||t.value!=null&&!A.value)&&n(!h.value,X)))}function B(X){const L=X.target;["INPUT","TEXTAREA"].includes(L.tagName)||(X.key==="Enter"||X.key===" "&&!b?.filterable)&&(X.preventDefault(),X.stopPropagation(),X.target.dispatchEvent(new MouseEvent("click",X)))}return jt(()=>{const X=A.value?"a":t.tag,L=s.title||t.title!=null,I=s.subtitle||t.subtitle!=null,G=!!(t.appendAvatar||t.appendIcon),ee=!!(G||s.append),se=!!(t.prependAvatar||t.prependIcon),te=!!(se||s.prepend);return b?.updateHasPrepend(te),t.activeColor&&l2("active-color",["color","base-color"]),y.withDirectives(y.createVNode(X,y.mergeProps(r.linkProps,{class:["v-list-item",{"v-list-item--active":x.value,"v-list-item--disabled":t.disabled,"v-list-item--link":V.value,"v-list-item--nav":t.nav,"v-list-item--slim":t.slim,[`${t.activeClass}`]:t.activeClass&&x.value},N.value,E.value,C.value,_.value,T.value,P.value,j.value,S.value,t.class],style:[{"--v-list-prepend-gap":St(t.prependGap)},w.value,k.value,t.style],tabindex:V.value?b?-2:0:void 0,"aria-selected":R.value,role:W.value,onClick:Z,onKeydown:V.value&&!A.value&&B}),{default:()=>[fl(V.value||x.value,"v-list-item"),te&&y.createElementVNode("div",{key:"prepend",class:"v-list-item__prepend"},[s.prepend?y.createVNode(qr,{key:"prepend-defaults",disabled:!se,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon},VListItemAction:{start:!0}}},{default:()=>[s.prepend?.(q.value)]}):y.createElementVNode(y.Fragment,null,[t.prependAvatar&&y.createVNode(qa,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&y.createVNode(nr,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)]),y.createElementVNode("div",{class:"v-list-item__spacer"},null)]),y.createElementVNode("div",{class:"v-list-item__content","data-no-activator":""},[L&&y.createVNode(Vf,{key:"title"},{default:()=>[s.title?.({title:t.title})??y.toDisplayString(t.title)]}),I&&y.createVNode(a4,{key:"subtitle"},{default:()=>[s.subtitle?.({subtitle:t.subtitle})??y.toDisplayString(t.subtitle)]}),s.default?.(q.value)]),ee&&y.createElementVNode("div",{key:"append",class:"v-list-item__append"},[s.append?y.createVNode(qr,{key:"append-defaults",disabled:!G,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon},VListItemAction:{end:!0}}},{default:()=>[s.append?.(q.value)]}):y.createElementVNode(y.Fragment,null,[t.appendIcon&&y.createVNode(nr,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&y.createVNode(qa,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)]),y.createElementVNode("div",{class:"v-list-item__spacer"},null)])]}),[[ha,V.value&&U.value]])}),{activate:l,isActivated:a,isGroupActivator:f,isSelected:h,list:b,select:n,root:m,id:v,link:r}}}),f4=Ze({color:String,inset:Boolean,sticky:Boolean,title:String,...or(),...Vr()},"VListSubheader"),yd=xt()({name:"VListSubheader",props:f4(),setup(t,i){let{slots:e}=i;const{textColorClasses:s,textColorStyles:c}=$i(()=>t.color);return jt(()=>{const r=!!(e.default||t.title);return y.createVNode(t.tag,{class:y.normalizeClass(["v-list-subheader",{"v-list-subheader--inset":t.inset,"v-list-subheader--sticky":t.sticky},s.value,t.class]),style:y.normalizeStyle([{textColorStyles:c},t.style])},{default:()=>[r&&y.createElementVNode("div",{class:"v-list-subheader__text"},[e.default?.()??t.title])]})}),{}}}),d4=Ze({items:Array,returnObject:Boolean},"VListChildren"),ng=xt()({name:"VListChildren",props:d4(),setup(t,i){let{slots:e}=i;return W1(),()=>e.default?.()??t.items?.map(s=>{let{children:c,props:r,type:o,raw:l}=s;if(o==="divider")return e.divider?.({props:r})??y.createVNode(Ui,r,null);if(o==="subheader")return e.subheader?.({props:r})??y.createVNode(yd,r,null);const a={subtitle:e.subtitle?u=>e.subtitle?.({...u,item:l}):void 0,prepend:e.prepend?u=>e.prepend?.({...u,item:l}):void 0,append:e.append?u=>e.append?.({...u,item:l}):void 0,title:e.title?u=>e.title?.({...u,item:l}):void 0},n=xm.filterProps(r);return c?y.createVNode(xm,y.mergeProps(n,{value:t.returnObject?l:r?.value,rawId:r?.value}),{activator:u=>{let{props:h}=u;const d=y.mergeProps(r,h,{value:t.returnObject?l:r.value});return e.header?e.header({props:d}):y.createVNode(mi,d,a)},default:()=>y.createVNode(ng,{items:c,returnObject:t.returnObject},e)}):e.item?e.item({props:r}):y.createVNode(mi,y.mergeProps(r,{value:t.returnObject?l:r.value}),a)})}}),ig=Ze({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),h4=new Set(["item","divider","subheader"]);function lo(t,i){const e=En(i,t.itemTitle,i),s=En(i,t.itemValue,e),c=En(i,t.itemChildren),r=t.itemProps===!0?typeof i=="object"&&i!=null&&!Array.isArray(i)?"children"in i?Dn(i,["children"]):i:void 0:En(i,t.itemProps);let o=En(i,t.itemType,"item");h4.has(o)||(o="item");const l={title:e,value:s,...r};return{type:o,title:String(l.title??""),value:l.value,props:l,children:o==="item"&&Array.isArray(c)?ag(t,c):void 0,raw:i}}lo.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];function ag(t,i){const e=_s(t,lo.neededProps),s=[];for(const c of i)s.push(lo(e,c));return s}function sg(t){const i=y.computed(()=>ag(t,t.items)),e=y.computed(()=>i.value.some(l=>l.value===null)),s=y.shallowRef(new Map),c=y.shallowRef([]);y.watchEffect(()=>{const l=i.value,a=new Map,n=[];for(let u=0;u<l.length;u++){const h=l[u];if(za(h.value)||h.value===null){let d=a.get(h.value);d||(d=[],a.set(h.value,d)),d.push(h)}else n.push(h)}s.value=a,c.value=n});function r(l){const a=s.value,n=i.value,u=c.value,h=e.value,d=t.returnObject,f=!!t.valueComparator,m=t.valueComparator||Bn,g=_s(t,lo.neededProps),p=[];e:for(const v of l){if(!h&&v===null)continue;if(d&&typeof v=="string"){p.push(lo(g,v));continue}const b=a.get(v);if(f||!b){for(const x of f?n:u)if(m(v,x.value)){p.push(x);continue e}p.push(lo(g,v));continue}p.push(...b)}return p}function o(l){return t.returnObject?l.map(a=>{let{raw:n}=a;return n}):l.map(a=>{let{value:n}=a;return n})}return{items:i,transformIn:r,transformOut:o}}const p4=new Set(["item","divider","subheader"]);function m4(t,i){const e=za(i)?i:En(i,t.itemTitle),s=za(i)?i:En(i,t.itemValue,void 0),c=En(i,t.itemChildren),r=t.itemProps===!0?Dn(i,["children"]):En(i,t.itemProps);let o=En(i,t.itemType,"item");p4.has(o)||(o="item");const l={title:e,value:s,...r};return{type:o,title:l.title,value:l.value,props:l,children:o==="item"&&c?og(t,c):void 0,raw:i}}function og(t,i){const e=[];for(const s of i)e.push(m4(t,s));return e}function g4(t){return{items:y.computed(()=>og(t,t.items))}}const v4=Ze({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:$t,collapseIcon:$t,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,"onClick:open":vn(),"onClick:select":vn(),"onUpdate:opened":vn(),...J3({selectStrategy:"single-leaf",openStrategy:"list"}),...Xa(),...or(),...Vn(),...Ka(),...Ps(),...ig(),...Ai(),...Vr(),...cn(),...ga({variant:"text"})},"VList"),wd=xt()({name:"VList",props:v4(),emits:{"update:selected":t=>!0,"update:activated":t=>!0,"update:opened":t=>!0,"click:open":t=>!0,"click:activate":t=>!0,"click:select":t=>!0},setup(t,i){let{slots:e}=i;const{items:s}=g4(t),{themeClasses:c}=Pn(t),{backgroundColorClasses:r,backgroundColorStyles:o}=fa(()=>t.bgColor),{borderClasses:l}=Ts(t),{densityClasses:a}=Wi(t),{dimensionStyles:n}=Ya(t),{elevationClasses:u}=bo(t),{roundedClasses:h}=Gi(t),{children:d,open:f,parents:m,select:g,getPath:p}=Q3(t,s,()=>t.returnObject),v=y.toRef(()=>t.lines?`v-list--${t.lines}-line`:void 0),b=y.toRef(()=>t.activeColor),x=y.toRef(()=>t.baseColor),A=y.toRef(()=>t.color),M=y.toRef(()=>t.selectable||t.activatable);W1({filterable:t.filterable}),da({VListGroup:{activeColor:b,baseColor:x,color:A,expandIcon:y.toRef(()=>t.expandIcon),collapseIcon:y.toRef(()=>t.collapseIcon)},VListItem:{activeClass:y.toRef(()=>t.activeClass),activeColor:b,baseColor:x,color:A,density:y.toRef(()=>t.density),disabled:y.toRef(()=>t.disabled),lines:y.toRef(()=>t.lines),nav:y.toRef(()=>t.nav),slim:y.toRef(()=>t.slim),variant:y.toRef(()=>t.variant)}});const V=y.shallowRef(!1),W=y.ref();function R(E){V.value=!0}function F(E){V.value=!1}function $(E){!V.value&&!(E.relatedTarget&&W.value?.contains(E.relatedTarget))&&N()}function z(E){const C=E.target;if(!(!W.value||C.tagName==="INPUT"&&["Home","End"].includes(E.key)||C.tagName==="TEXTAREA")){if(E.key==="ArrowDown")N("next");else if(E.key==="ArrowUp")N("prev");else if(E.key==="Home")N("first");else if(E.key==="End")N("last");else return;E.preventDefault()}}function D(E){V.value=!0}function N(E){if(W.value)return Wo(W.value,E)}return jt(()=>{const E=t.indent??(t.prependGap?Number(t.prependGap)+24:void 0);return y.createVNode(t.tag,{ref:W,class:y.normalizeClass(["v-list",{"v-list--disabled":t.disabled,"v-list--nav":t.nav,"v-list--slim":t.slim},c.value,r.value,l.value,a.value,u.value,v.value,h.value,t.class]),style:y.normalizeStyle([{"--v-list-indent":St(E),"--v-list-group-prepend":E?"0px":void 0,"--v-list-prepend-gap":St(t.prependGap)},o.value,n.value,t.style]),tabindex:t.disabled?-1:0,role:M.value?"listbox":"list","aria-activedescendant":void 0,onFocusin:R,onFocusout:F,onFocus:$,onKeydown:z,onMousedown:D},{default:()=>[y.createVNode(ng,{items:s.value,returnObject:t.returnObject},e)]})}),{open:f,select:g,focus:N,children:d,parents:m,getPath:p}}}),b4=Ze({id:String,submenu:Boolean,...Dn(zu({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:gd}}),["absolute"])},"VMenu"),vl=xt()({name:"VMenu",props:b4(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const s=cr(t,"modelValue"),{scopeId:c}=Vu(),{isRtl:r}=va(),o=y.useId(),l=y.toRef(()=>t.id||`v-menu-${o}`),a=y.ref(),n=y.inject(Sf,null),u=y.shallowRef(new Set);y.provide(Sf,{register(){u.value.add(o)},unregister(){u.value.delete(o)},closeParents(g){setTimeout(()=>{!u.value.size&&!t.persistent&&(g==null||a.value?.contentEl&&!g2(g,a.value.contentEl))&&(s.value=!1,n?.closeParents())},40)}}),y.onBeforeUnmount(()=>n?.unregister()),y.onDeactivated(()=>s.value=!1),y.watch(s,g=>{g?n?.register():n?.unregister()},{immediate:!0});function h(g){n?.closeParents(g)}function d(g){if(!t.disabled)if(g.key==="Tab"||g.key==="Enter"&&!t.closeOnContentClick){if(g.key==="Enter"&&(g.target instanceof HTMLTextAreaElement||g.target instanceof HTMLInputElement&&g.target.closest("form")))return;g.key==="Enter"&&g.preventDefault(),!Wm(vs(a.value?.contentEl,!1),g.shiftKey?"prev":"next",v=>v.tabIndex>=0)&&!t.retainFocus&&(s.value=!1,a.value?.activatorEl?.focus())}else t.submenu&&g.key===(r.value?"ArrowRight":"ArrowLeft")&&(s.value=!1,a.value?.activatorEl?.focus())}function f(g){if(t.disabled)return;const p=a.value?.contentEl;p&&s.value?g.key==="ArrowDown"?(g.preventDefault(),g.stopImmediatePropagation(),Wo(p,"next")):g.key==="ArrowUp"?(g.preventDefault(),g.stopImmediatePropagation(),Wo(p,"prev")):t.submenu&&(g.key===(r.value?"ArrowRight":"ArrowLeft")?s.value=!1:g.key===(r.value?"ArrowLeft":"ArrowRight")&&(g.preventDefault(),Wo(p,"first"))):(t.submenu?g.key===(r.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(g.key))&&(s.value=!0,g.preventDefault(),setTimeout(()=>setTimeout(()=>f(g))))}const m=y.computed(()=>y.mergeProps({"aria-haspopup":"menu","aria-expanded":String(s.value),"aria-controls":l.value,"aria-owns":l.value,onKeydown:f},t.activatorProps));return jt(()=>{const g=ho.filterProps(t);return y.createVNode(ho,y.mergeProps({ref:a,id:l.value,class:["v-menu",t.class],style:t.style},g,{modelValue:s.value,"onUpdate:modelValue":p=>s.value=p,absolute:!0,activatorProps:m.value,location:t.location??(t.submenu?"end":"bottom"),"onClick:outside":h,onKeydown:d},c),{activator:e.activator,default:function(){for(var p=arguments.length,v=new Array(p),b=0;b<p;b++)v[b]=arguments[b];return y.createVNode(qr,{root:"VMenu"},{default:()=>[e.default?.(...v)]})}})}),Ni({id:l,ΨopenChildren:u},a)}}),y4=Symbol.for("vuetify:goto");function w4(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:U2}}function x4(t){return xd(t)??(document.scrollingElement||document.body)}function xd(t){return typeof t=="string"?document.querySelector(t):Um(t)}function of(t,i,e){if(typeof t=="number")return i&&e?-t:t;let s=xd(t),c=0;for(;s;)c+=i?s.offsetLeft:s.offsetTop,s=s.offsetParent;return c}async function Sm(t,i,e,s){const c=e?"scrollLeft":"scrollTop",r=ua(s?.options??w4(),i),o=s?.rtl.value,l=(typeof t=="number"?t:xd(t))??0,a=r.container==="parent"&&l instanceof HTMLElement?l.parentElement:x4(r.container),n=co()?r.patterns.instant:typeof r.easing=="function"?r.easing:r.patterns[r.easing];if(!n)throw new TypeError(`Easing function "${r.easing}" not found.`);let u;if(typeof l=="number")u=of(l,e,o);else if(u=of(l,e,o)-of(a,e,o),r.layout){const m=window.getComputedStyle(l).getPropertyValue("--v-layout-top");m&&(u-=parseInt(m,10))}u+=r.offset,u=S4(a,u,!!o,!!e);const h=a[c]??0;if(u===h)return Promise.resolve(u);const d=performance.now();return new Promise(f=>requestAnimationFrame(function m(g){const v=(g-d)/r.duration,b=Math.floor(h+(u-h)*n(un(v,0,1)));if(a[c]=b,v>=1&&Math.abs(b-a[c])<10)return f(u);if(v>2)return Da("Scroll target is not reachable"),f(a[c]);requestAnimationFrame(m)}))}function _4(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=y.inject(y4),{isRtl:e}=va();if(!i)throw new Error("[Vuetify] Could not find injected goto instance");const s={...i,rtl:y.toRef(()=>i.rtl.value||e.value)};async function c(r,o){return Sm(r,ua(t,o),!1,s)}return c.horizontal=async(r,o)=>Sm(r,ua(t,o),!0,s),c}function S4(t,i,e,s){const{scrollWidth:c,scrollHeight:r}=t,[o,l]=t===document.scrollingElement?[window.innerWidth,window.innerHeight]:[t.offsetWidth,t.offsetHeight];let a,n;return s?e?(a=-(c-o),n=0):(a=0,n=c-o):(a=0,n=r+-l),un(i,a,n)}function k4(){const t=y.ref([]);y.onBeforeUpdate(()=>t.value=[]);function i(e,s){t.value[s]=e}return{refs:t,updateRef:i}}const C4=Ze({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:t=>t.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:t=>t%1===0},totalVisible:[Number,String],firstIcon:{type:$t,default:"$first"},prevIcon:{type:$t,default:"$prev"},nextIcon:{type:$t,default:"$next"},lastIcon:{type:$t,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...Xa(),...or(),...Vn(),...Ps(),...Ai(),...yo(),...Vr({tag:"nav"}),...cn(),...ga({variant:"text"})},"VPagination"),zf=xt()({name:"VPagination",props:C4(),emits:{"update:modelValue":t=>!0,first:t=>!0,prev:t=>!0,next:t=>!0,last:t=>!0},setup(t,i){let{slots:e,emit:s}=i;const c=cr(t,"modelValue"),{t:r,n:o}=vi(),{isRtl:l}=va(),{themeClasses:a}=Pn(t),{width:n}=Za(),u=y.shallowRef(-1);da(void 0,{scoped:!0});const{resizeRef:h}=Ss(R=>{if(!R.length)return;const{target:F,contentRect:$}=R[0],z=F.querySelector(".v-pagination__list > *");if(!z)return;const D=$.width,N=z.offsetWidth+parseFloat(getComputedStyle(z).marginRight)*2;u.value=g(D,N)}),d=y.computed(()=>parseInt(t.length,10)),f=y.computed(()=>parseInt(t.start,10)),m=y.computed(()=>t.totalVisible!=null?parseInt(t.totalVisible,10):u.value>=0?u.value:g(n.value,58));function g(R,F){const $=t.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((R-F*$)/F).toFixed(2))))}const p=y.computed(()=>{if(d.value<=0||isNaN(d.value)||d.value>Number.MAX_SAFE_INTEGER)return[];if(m.value<=0)return[];if(m.value===1)return[c.value];if(d.value<=m.value)return Hl(d.value,f.value);const R=m.value%2===0,F=R?m.value/2:Math.floor(m.value/2),$=R?F:F+1,z=d.value-F;if($-c.value>=0)return[...Hl(Math.max(1,m.value-1),f.value),t.ellipsis,d.value];if(c.value-z>=(R?1:0)){const D=m.value-1,N=d.value-D+f.value;return[f.value,t.ellipsis,...Hl(D,N)]}else{const D=Math.max(1,m.value-2),N=D===1?c.value:c.value-Math.ceil(D/2)+f.value;return[f.value,t.ellipsis,...Hl(D,N),t.ellipsis,d.value]}});function v(R,F,$){R.preventDefault(),c.value=F,$&&s($,F)}const{refs:b,updateRef:x}=k4();da({VPaginationBtn:{color:y.toRef(()=>t.color),border:y.toRef(()=>t.border),density:y.toRef(()=>t.density),size:y.toRef(()=>t.size),variant:y.toRef(()=>t.variant),rounded:y.toRef(()=>t.rounded),elevation:y.toRef(()=>t.elevation)}});const A=y.computed(()=>p.value.map((R,F)=>{const $=z=>x(z,F);if(typeof R=="string")return{isActive:!1,key:`ellipsis-${F}`,page:R,props:{ref:$,ellipsis:!0,icon:!0,disabled:!0}};{const z=R===c.value;return{isActive:z,key:R,page:o(R),props:{ref:$,ellipsis:!1,icon:!0,disabled:!!t.disabled||Number(t.length)<2,color:z?t.activeColor:t.color,"aria-current":z,"aria-label":r(z?t.currentPageAriaLabel:t.pageAriaLabel,R),onClick:D=>v(D,R)}}}})),M=y.computed(()=>{const R=!!t.disabled||c.value<=f.value,F=!!t.disabled||c.value>=f.value+d.value-1;return{first:t.showFirstLastPage?{icon:l.value?t.lastIcon:t.firstIcon,onClick:$=>v($,f.value,"first"),disabled:R,"aria-label":r(t.firstAriaLabel),"aria-disabled":R}:void 0,prev:{icon:l.value?t.nextIcon:t.prevIcon,onClick:$=>v($,c.value-1,"prev"),disabled:R,"aria-label":r(t.previousAriaLabel),"aria-disabled":R},next:{icon:l.value?t.prevIcon:t.nextIcon,onClick:$=>v($,c.value+1,"next"),disabled:F,"aria-label":r(t.nextAriaLabel),"aria-disabled":F},last:t.showFirstLastPage?{icon:l.value?t.firstIcon:t.lastIcon,onClick:$=>v($,f.value+d.value-1,"last"),disabled:F,"aria-label":r(t.lastAriaLabel),"aria-disabled":F}:void 0}});function V(){const R=c.value-f.value;b.value[R]?.$el.focus()}function W(R){R.key===gh.left&&!t.disabled&&c.value>Number(t.start)?(c.value=c.value-1,y.nextTick(V)):R.key===gh.right&&!t.disabled&&c.value<f.value+d.value-1&&(c.value=c.value+1,y.nextTick(V))}return jt(()=>y.createVNode(t.tag,{ref:h,class:y.normalizeClass(["v-pagination",a.value,t.class]),style:y.normalizeStyle(t.style),role:"navigation","aria-label":r(t.ariaLabel),onKeydown:W,"data-test":"v-pagination-root"},{default:()=>[y.createElementVNode("ul",{class:"v-pagination__list"},[t.showFirstLastPage&&y.createElementVNode("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[e.first?e.first(M.value.first):y.createVNode(Dr,y.mergeProps({_as:"VPaginationBtn"},M.value.first),null)]),y.createElementVNode("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[e.prev?e.prev(M.value.prev):y.createVNode(Dr,y.mergeProps({_as:"VPaginationBtn"},M.value.prev),null)]),A.value.map((R,F)=>y.createElementVNode("li",{key:R.key,class:y.normalizeClass(["v-pagination__item",{"v-pagination__item--is-active":R.isActive}]),"data-test":"v-pagination-item"},[e.item?e.item(R):y.createVNode(Dr,y.mergeProps({_as:"VPaginationBtn"},R.props),{default:()=>[R.page]})])),y.createElementVNode("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[e.next?e.next(M.value.next):y.createVNode(Dr,y.mergeProps({_as:"VPaginationBtn"},M.value.next),null)]),t.showFirstLastPage&&y.createElementVNode("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[e.last?e.last(M.value.last):y.createVNode(Dr,y.mergeProps({_as:"VPaginationBtn"},M.value.last),null)])])]})),{}}}),A4=Ze({text:String,onClick:vn(),...or(),...cn()},"VLabel"),lg=xt()({name:"VLabel",props:A4(),setup(t,i){let{slots:e}=i;return jt(()=>y.createElementVNode("label",{class:y.normalizeClass(["v-label",{"v-label--clickable":!!t.onClick},t.class]),style:y.normalizeStyle(t.style),onClick:t.onClick},[t.text,e.default?.()])),{}}}),ug=Symbol.for("vuetify:selection-control-group"),cg=Ze({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:$t,trueIcon:$t,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Bn},...or(),...Vn(),...cn()},"SelectionControlGroup"),N4=Ze({...cg({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup");xt()({name:"VSelectionControlGroup",props:N4(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const s=cr(t,"modelValue"),c=y.useId(),r=y.toRef(()=>t.id||`v-selection-control-group-${c}`),o=y.toRef(()=>t.name||r.value),l=new Set;return y.provide(ug,{modelValue:s,forceUpdate:()=>{l.forEach(a=>a())},onForceUpdate:a=>{l.add(a),y.onScopeDispose(()=>{l.delete(a)})}}),da({[t.defaultsTarget]:{color:y.toRef(()=>t.color),disabled:y.toRef(()=>t.disabled),density:y.toRef(()=>t.density),error:y.toRef(()=>t.error),inline:y.toRef(()=>t.inline),modelValue:s,multiple:y.toRef(()=>!!t.multiple||t.multiple==null&&Array.isArray(s.value)),name:o,falseIcon:y.toRef(()=>t.falseIcon),trueIcon:y.toRef(()=>t.trueIcon),readonly:y.toRef(()=>t.readonly),ripple:y.toRef(()=>t.ripple),type:y.toRef(()=>t.type),valueComparator:y.toRef(()=>t.valueComparator)}}),jt(()=>y.createElementVNode("div",{class:y.normalizeClass(["v-selection-control-group",{"v-selection-control-group--inline":t.inline},t.class]),style:y.normalizeStyle(t.style),role:t.type==="radio"?"radiogroup":void 0},[e.default?.()])),{}}});const _d=Ze({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...or(),...cg()},"VSelectionControl");function E4(t){const i=y.inject(ug,void 0),{densityClasses:e}=Wi(t),s=cr(t,"modelValue"),c=y.computed(()=>t.trueValue!==void 0?t.trueValue:t.value!==void 0?t.value:!0),r=y.computed(()=>t.falseValue!==void 0?t.falseValue:!1),o=y.computed(()=>!!t.multiple||t.multiple==null&&Array.isArray(s.value)),l=y.computed({get(){const f=i?i.modelValue.value:s.value;return o.value?rn(f).some(m=>t.valueComparator(m,c.value)):t.valueComparator(f,c.value)},set(f){if(t.readonly)return;const m=f?c.value:r.value;let g=m;o.value&&(g=f?[...rn(s.value),m]:rn(s.value).filter(p=>!t.valueComparator(p,c.value))),i?i.modelValue.value=g:s.value=g}}),{textColorClasses:a,textColorStyles:n}=$i(()=>{if(!(t.error||t.disabled))return l.value?t.color:t.baseColor}),{backgroundColorClasses:u,backgroundColorStyles:h}=fa(()=>l.value&&!t.error&&!t.disabled?t.color:t.baseColor),d=y.computed(()=>l.value?t.trueIcon:t.falseIcon);return{group:i,densityClasses:e,trueValue:c,falseValue:r,model:l,textColorClasses:a,textColorStyles:n,backgroundColorClasses:u,backgroundColorStyles:h,icon:d}}const Tu=xt()({name:"VSelectionControl",directives:{vRipple:ha},inheritAttrs:!1,props:_d(),emits:{"update:modelValue":t=>!0},setup(t,i){let{attrs:e,slots:s}=i;const{group:c,densityClasses:r,icon:o,model:l,textColorClasses:a,textColorStyles:n,backgroundColorClasses:u,backgroundColorStyles:h,trueValue:d}=E4(t),f=y.useId(),m=y.shallowRef(!1),g=y.shallowRef(!1),p=y.ref(),v=y.toRef(()=>t.id||`input-${f}`),b=y.toRef(()=>!t.disabled&&!t.readonly);c?.onForceUpdate(()=>{p.value&&(p.value.checked=l.value)});function x(W){b.value&&(m.value=!0,fo(W.target,":focus-visible")!==!1&&(g.value=!0))}function A(){m.value=!1,g.value=!1}function M(W){W.stopPropagation()}function V(W){if(!b.value){p.value&&(p.value.checked=l.value);return}t.readonly&&c&&y.nextTick(()=>c.forceUpdate()),l.value=W.target.checked}return jt(()=>{const W=s.label?s.label({label:t.label,props:{for:v.value}}):t.label,[R,F]=ll(e),$=y.createElementVNode("input",y.mergeProps({ref:p,checked:l.value,disabled:!!t.disabled,id:v.value,onBlur:A,onFocus:x,onInput:V,"aria-disabled":!!t.disabled,"aria-label":t.label,type:t.type,value:d.value,name:t.name,"aria-checked":t.type==="checkbox"?l.value:void 0},F),null);return y.createElementVNode("div",y.mergeProps({class:["v-selection-control",{"v-selection-control--dirty":l.value,"v-selection-control--disabled":t.disabled,"v-selection-control--error":t.error,"v-selection-control--focused":m.value,"v-selection-control--focus-visible":g.value,"v-selection-control--inline":t.inline},r.value,t.class]},R,{style:t.style}),[y.createElementVNode("div",{class:y.normalizeClass(["v-selection-control__wrapper",a.value]),style:y.normalizeStyle(n.value)},[s.default?.({backgroundColorClasses:u,backgroundColorStyles:h}),y.withDirectives(y.createElementVNode("div",{class:y.normalizeClass(["v-selection-control__input"])},[s.input?.({model:l,textColorClasses:a,textColorStyles:n,backgroundColorClasses:u,backgroundColorStyles:h,inputNode:$,icon:o.value,props:{onFocus:x,onBlur:A,id:v.value}})??y.createElementVNode(y.Fragment,null,[o.value&&y.createVNode(nr,{key:"icon",icon:o.value},null),$])]),[[ha,!t.disabled&&!t.readonly&&t.ripple,null,{center:!0,circle:!0}]])]),W&&y.createVNode(lg,{for:v.value,onClick:M},{default:()=>[W]})])}),{isFocused:m,input:p}}}),T4=Ze({indeterminate:Boolean,indeterminateIcon:{type:$t,default:"$checkboxIndeterminate"},..._d({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Ha=xt()({name:"VCheckboxBtn",props:T4(),emits:{"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,i){let{slots:e}=i;const s=cr(t,"indeterminate"),c=cr(t,"modelValue");function r(a){s.value&&(s.value=!1)}const o=y.toRef(()=>s.value?t.indeterminateIcon:t.falseIcon),l=y.toRef(()=>s.value?t.indeterminateIcon:t.trueIcon);return jt(()=>{const a=Dn(Tu.filterProps(t),["modelValue"]);return y.createVNode(Tu,y.mergeProps(a,{modelValue:c.value,"onUpdate:modelValue":[n=>c.value=n,r],class:["v-checkbox-btn",t.class],style:t.style,type:"checkbox",falseIcon:o.value,trueIcon:l.value,"aria-checked":s.value?"mixed":void 0}),e)}),{}}});function fg(t){const{t:i}=vi();function e(s){let{name:c,color:r,...o}=s;const l={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[c],a=t[`onClick:${c}`];function n(h){h.key!=="Enter"&&h.key!==" "||(h.preventDefault(),h.stopPropagation(),ul(a,new PointerEvent("click",h)))}const u=a&&l?i(`$vuetify.input.${l}`,t.label??""):void 0;return y.createVNode(nr,y.mergeProps({icon:t[`${c}Icon`],"aria-label":u,onClick:a,onKeydown:n,color:r},o),null)}return{InputIcon:e}}const P4=Ze({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...or(),...ml({transition:{component:q1,leaveAbsolute:!0,group:!0}})},"VMessages"),M4=xt()({name:"VMessages",props:P4(),setup(t,i){let{slots:e}=i;const s=y.computed(()=>rn(t.messages)),{textColorClasses:c,textColorStyles:r}=$i(()=>t.color);return jt(()=>y.createVNode(Ba,{transition:t.transition,tag:"div",class:y.normalizeClass(["v-messages",c.value,t.class]),style:y.normalizeStyle([r.value,t.style])},{default:()=>[t.active&&s.value.map((o,l)=>y.createElementVNode("div",{class:"v-messages__message",key:`${l}-${s.value}`},[e.message?e.message({message:o}):o]))]})),{}}}),dg=Ze({focused:Boolean,"onUpdate:focused":vn()},"focus");function bl(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi();const e=cr(t,"focused"),s=y.toRef(()=>({[`${i}--focused`]:e.value}));function c(){e.value=!0}function r(){e.value=!1}return{focusClasses:s,isFocused:e,focus:c,blur:r}}const hg=Symbol.for("vuetify:form"),I4=Ze({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function R4(t){const i=cr(t,"modelValue"),e=y.toRef(()=>t.disabled),s=y.toRef(()=>t.readonly),c=y.shallowRef(!1),r=y.ref([]),o=y.ref([]);async function l(){const u=[];let h=!0;o.value=[],c.value=!0;for(const d of r.value){const f=await d.validate();if(f.length>0&&(h=!1,u.push({id:d.id,errorMessages:f})),!h&&t.fastFail)break}return o.value=u,c.value=!1,{valid:h,errors:o.value}}function a(){r.value.forEach(u=>u.reset())}function n(){r.value.forEach(u=>u.resetValidation())}return y.watch(r,()=>{let u=0,h=0;const d=[];for(const f of r.value)f.isValid===!1?(h++,d.push({id:f.id,errorMessages:f.errorMessages})):f.isValid===!0&&u++;o.value=d,i.value=h>0?!1:u===r.value.length?!0:null},{deep:!0,flush:"post"}),y.provide(hg,{register:u=>{let{id:h,vm:d,validate:f,reset:m,resetValidation:g}=u;r.value.some(p=>p.id===h)&&Da(`Duplicate input name "${h}"`),r.value.push({id:h,validate:f,reset:m,resetValidation:g,vm:y.markRaw(d),isValid:null,errorMessages:[]})},unregister:u=>{r.value=r.value.filter(h=>h.id!==u)},update:(u,h,d)=>{const f=r.value.find(m=>m.id===u);f&&(f.isValid=h,f.errorMessages=d)},isDisabled:e,isReadonly:s,isValidating:c,isValid:i,items:r,validateOn:y.toRef(()=>t.validateOn)}),{errors:o,isDisabled:e,isReadonly:s,isValidating:c,isValid:i,items:r,validate:l,reset:a,resetValidation:n}}function Hu(t){const i=y.inject(hg,null);return{...i,isReadonly:y.computed(()=>!!(t?.readonly??i?.isReadonly.value)),isDisabled:y.computed(()=>!!(t?.disabled??i?.isDisabled.value))}}const L4=Symbol.for("vuetify:rules");function O4(t){const i=y.inject(L4,null);if(!t){if(!i)throw new Error("Could not find Vuetify rules injection");return i.aliases}return i?.resolve(t)??y.toRef(t)}const F4=Ze({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...dg()},"validation");function B4(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hi(),e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y.useId();const s=cr(t,"modelValue"),c=y.computed(()=>t.validationValue===void 0?s.value:t.validationValue),r=Hu(t),o=O4(()=>t.rules),l=y.ref([]),a=y.shallowRef(!0),n=y.computed(()=>!!(rn(s.value===""?null:s.value).length||rn(c.value===""?null:c.value).length)),u=y.computed(()=>t.errorMessages?.length?rn(t.errorMessages).concat(l.value).slice(0,Math.max(0,Number(t.maxErrors))):l.value),h=y.computed(()=>{let A=(t.validateOn??r.validateOn?.value)||"input";A==="lazy"&&(A="input lazy"),A==="eager"&&(A="input eager");const M=new Set(A?.split(" ")??[]);return{input:M.has("input"),blur:M.has("blur")||M.has("input")||M.has("invalid-input"),invalidInput:M.has("invalid-input"),lazy:M.has("lazy"),eager:M.has("eager")}}),d=y.computed(()=>t.error||t.errorMessages?.length?!1:t.rules.length?a.value?l.value.length||h.value.lazy?null:!0:!l.value.length:!0),f=y.shallowRef(!1),m=y.computed(()=>({[`${i}--error`]:d.value===!1,[`${i}--dirty`]:n.value,[`${i}--disabled`]:r.isDisabled.value,[`${i}--readonly`]:r.isReadonly.value})),g=Jr("validation"),p=y.computed(()=>t.name??y.unref(e));y.onBeforeMount(()=>{r.register?.({id:p.value,vm:g,validate:x,reset:v,resetValidation:b})}),y.onBeforeUnmount(()=>{r.unregister?.(p.value)}),y.onMounted(async()=>{h.value.lazy||await x(!h.value.eager),r.update?.(p.value,d.value,u.value)}),Ua(()=>h.value.input||h.value.invalidInput&&d.value===!1,()=>{y.watch(c,()=>{if(c.value!=null)x();else if(t.focused){const A=y.watch(()=>t.focused,M=>{M||x(),A()})}})}),Ua(()=>h.value.blur,()=>{y.watch(()=>t.focused,A=>{A||x()})}),y.watch([d,u],()=>{r.update?.(p.value,d.value,u.value)});async function v(){s.value=null,await y.nextTick(),await b()}async function b(){a.value=!0,h.value.lazy?l.value=[]:await x(!h.value.eager)}async function x(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const M=[];f.value=!0;for(const V of o.value){if(M.length>=Number(t.maxErrors??1))break;const R=await(typeof V=="function"?V:()=>V)(c.value);if(R!==!0){if(R!==!1&&typeof R!="string"){console.warn(`${R} is not a valid value. Rule functions must return boolean true or a string.`);continue}M.push(R||"")}}return l.value=M,f.value=!1,a.value=A,l.value}return{errorMessages:u,isDirty:n,isDisabled:r.isDisabled,isReadonly:r.isReadonly,isPristine:a,isValid:d,isValidating:f,reset:v,resetValidation:b,validate:x,validationClasses:m}}const yl=Ze({id:String,appendIcon:$t,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:$t,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:t=>["horizontal","vertical"].includes(t)},"onClick:prepend":vn(),"onClick:append":vn(),...or(),...Vn(),..._s(Ka(),["maxWidth","minWidth","width"]),...cn(),...F4()},"VInput"),Wa=xt()({name:"VInput",props:{...yl()},emits:{"update:modelValue":t=>!0},setup(t,i){let{attrs:e,slots:s,emit:c}=i;const{densityClasses:r}=Wi(t),{dimensionStyles:o}=Ya(t),{themeClasses:l}=Pn(t),{rtlClasses:a}=va(),{InputIcon:n}=fg(t),u=y.useId(),h=y.computed(()=>t.id||`input-${u}`),{errorMessages:d,isDirty:f,isDisabled:m,isReadonly:g,isPristine:p,isValid:v,isValidating:b,reset:x,resetValidation:A,validate:M,validationClasses:V}=B4(t,"v-input",h),W=y.computed(()=>t.errorMessages?.length||!p.value&&d.value.length?d.value:t.hint&&(t.persistentHint||t.focused)?t.hint:t.messages),R=y.toRef(()=>W.value.length>0),F=y.toRef(()=>!t.hideDetails||t.hideDetails==="auto"&&(R.value||!!s.details)),$=y.computed(()=>F.value?`${h.value}-messages`:void 0),z=y.computed(()=>({id:h,messagesId:$,isDirty:f,isDisabled:m,isReadonly:g,isPristine:p,isValid:v,isValidating:b,hasDetails:F,reset:x,resetValidation:A,validate:M})),D=y.toRef(()=>t.error||t.disabled?void 0:t.focused?t.color:t.baseColor),N=y.toRef(()=>{if(t.iconColor)return t.iconColor===!0?D.value:t.iconColor});return jt(()=>{const E=!!(s.prepend||t.prependIcon),C=!!(s.append||t.appendIcon);return y.createElementVNode("div",{class:y.normalizeClass(["v-input",`v-input--${t.direction}`,{"v-input--center-affix":t.centerAffix,"v-input--focused":t.focused,"v-input--glow":t.glow,"v-input--hide-spin-buttons":t.hideSpinButtons},r.value,l.value,a.value,V.value,t.class]),style:y.normalizeStyle([o.value,t.style])},[E&&y.createElementVNode("div",{key:"prepend",class:"v-input__prepend"},[s.prepend?.(z.value),t.prependIcon&&y.createVNode(n,{key:"prepend-icon",name:"prepend",color:N.value},null)]),s.default&&y.createElementVNode("div",{class:"v-input__control"},[s.default?.(z.value)]),C&&y.createElementVNode("div",{key:"append",class:"v-input__append"},[t.appendIcon&&y.createVNode(n,{key:"append-icon",name:"append",color:N.value},null),s.append?.(z.value)]),F.value&&y.createElementVNode("div",{id:$.value,class:"v-input__details",role:"alert","aria-live":"polite"},[y.createVNode(M4,{active:R.value,messages:W.value},{message:s.message}),s.details?.(z.value)])])}),{reset:x,resetValidation:A,validate:M,isValid:v,errorMessages:d}}});function j4(t){let{selectedElement:i,containerElement:e,isRtl:s,isHorizontal:c}=t;const r=il(c,e),o=pg(c,s,e),l=il(c,i),a=mg(c,i),n=l*.4;return o>a?a-n:o+r<a+l?a-r+l+n:o}function D4(t){let{selectedElement:i,containerElement:e,isHorizontal:s}=t;const c=il(s,e),r=mg(s,i),o=il(s,i);return r-c/2+o/2}function km(t,i){return i?.[t?"scrollWidth":"scrollHeight"]||0}function V4(t,i){return i?.[t?"clientWidth":"clientHeight"]||0}function pg(t,i,e){if(!e)return 0;const{scrollLeft:s,offsetWidth:c,scrollWidth:r}=e;return t?i?r-c+s:s:e.scrollTop}function il(t,i){return i?.[t?"offsetWidth":"offsetHeight"]||0}function mg(t,i){return i?.[t?"offsetLeft":"offsetTop"]||0}const gg=Symbol.for("vuetify:v-slide-group"),vg=Ze({centerActive:Boolean,scrollToActive:{type:Boolean,default:!0},contentClass:null,direction:{type:String,default:"horizontal"},symbol:{type:null,default:gg},nextIcon:{type:$t,default:"$next"},prevIcon:{type:$t,default:"$prev"},showArrows:{type:[Boolean,String],validator:t=>typeof t=="boolean"||["always","desktop","mobile"].includes(t)},...or(),...Du({mobile:null}),...Vr(),...td({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),Cm=xt()({name:"VSlideGroup",props:vg(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const{isRtl:s}=va(),{displayClasses:c,mobile:r}=Za(t),o=rd(t,t.symbol),l=y.shallowRef(!1),a=y.shallowRef(0),n=y.shallowRef(0),u=y.shallowRef(0),h=y.computed(()=>t.direction==="horizontal"),{resizeRef:d,contentRect:f}=Ss(),{resizeRef:m,contentRect:g}=Ss(),p=_4(),v=y.computed(()=>({container:d.el,duration:200,easing:"easeOutQuart"})),b=y.computed(()=>o.selected.value.length?o.items.value.findIndex(P=>P.id===o.selected.value[0]):-1),x=y.computed(()=>o.selected.value.length?o.items.value.findIndex(P=>P.id===o.selected.value[o.selected.value.length-1]):-1);if(nn){let P=-1;y.watch(()=>[o.selected.value,f.value,g.value,h.value],()=>{cancelAnimationFrame(P),P=requestAnimationFrame(()=>{if(f.value&&g.value){const U=h.value?"width":"height";n.value=f.value[U],u.value=g.value[U],l.value=n.value+1<u.value}if(t.scrollToActive&&b.value>=0&&m.el){const U=m.el.children[x.value];M(U,t.centerActive)}})})}const A=y.shallowRef(!1);function M(P,U){let q=0;U?q=D4({containerElement:d.el,isHorizontal:h.value,selectedElement:P}):q=j4({containerElement:d.el,isHorizontal:h.value,isRtl:s.value,selectedElement:P}),V(q)}function V(P){if(!nn||!d.el)return;const U=il(h.value,d.el),q=pg(h.value,s.value,d.el);if(!(km(h.value,d.el)<=U||Math.abs(P-q)<16)){if(h.value&&s.value&&d.el){const{scrollWidth:B,offsetWidth:X}=d.el;P=B-X-P}h.value?p.horizontal(P,v.value):p(P,v.value)}}function W(P){const{scrollTop:U,scrollLeft:q}=P.target;a.value=h.value?q:U}function R(P){if(A.value=!0,!(!l.value||!m.el)){for(const U of P.composedPath())for(const q of m.el.children)if(q===U){M(q);return}}}function F(P){A.value=!1}let $=!1;function z(P){!$&&!A.value&&!(P.relatedTarget&&m.el?.contains(P.relatedTarget))&&C(),$=!1}function D(){$=!0}function N(P){if(!m.el)return;function U(q){P.preventDefault(),C(q)}h.value?P.key==="ArrowRight"?U(s.value?"prev":"next"):P.key==="ArrowLeft"&&U(s.value?"next":"prev"):P.key==="ArrowDown"?U("next"):P.key==="ArrowUp"&&U("prev"),P.key==="Home"?U("first"):P.key==="End"&&U("last")}function E(P,U){if(!P)return;let q=P;do q=q?.[U==="next"?"nextElementSibling":"previousElementSibling"];while(q?.hasAttribute("disabled"));return q}function C(P){if(!m.el)return;let U;if(!P)U=vs(m.el)[0];else if(P==="next"){if(U=E(m.el.querySelector(":focus"),P),!U)return C("first")}else if(P==="prev"){if(U=E(m.el.querySelector(":focus"),P),!U)return C("last")}else P==="first"?(U=m.el.firstElementChild,U?.hasAttribute("disabled")&&(U=E(U,"next"))):P==="last"&&(U=m.el.lastElementChild,U?.hasAttribute("disabled")&&(U=E(U,"prev")));U&&U.focus({preventScroll:!0})}function w(P){const U=h.value&&s.value?-1:1,q=(P==="prev"?-U:U)*n.value;let Z=a.value+q;if(h.value&&s.value&&d.el){const{scrollWidth:B,offsetWidth:X}=d.el;Z+=B-X}V(Z)}const S=y.computed(()=>({next:o.next,prev:o.prev,select:o.select,isSelected:o.isSelected})),_=y.computed(()=>l.value||Math.abs(a.value)>0),k=y.computed(()=>{switch(t.showArrows){case"always":return!0;case"desktop":return!r.value;case!0:return _.value;case"mobile":return r.value||_.value;default:return!r.value&&_.value}}),T=y.computed(()=>Math.abs(a.value)>1),j=y.computed(()=>{if(!d.value||!_.value)return!1;const P=km(h.value,d.el),U=V4(h.value,d.el);return P-U-Math.abs(a.value)>1});return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-slide-group",{"v-slide-group--vertical":!h.value,"v-slide-group--has-affixes":k.value,"v-slide-group--is-overflowing":l.value},c.value,t.class]),style:y.normalizeStyle(t.style),tabindex:A.value||o.selected.value.length?-1:0,onFocus:z},{default:()=>[k.value&&y.createElementVNode("div",{key:"prev",class:y.normalizeClass(["v-slide-group__prev",{"v-slide-group__prev--disabled":!T.value}]),onMousedown:D,onClick:()=>T.value&&w("prev")},[e.prev?.(S.value)??y.createVNode(wm,null,{default:()=>[y.createVNode(nr,{icon:s.value?t.nextIcon:t.prevIcon},null)]})]),y.createElementVNode("div",{key:"container",ref:d,class:y.normalizeClass(["v-slide-group__container",t.contentClass]),onScroll:W},[y.createElementVNode("div",{ref:m,class:"v-slide-group__content",onFocusin:R,onFocusout:F,onKeydown:N},[e.default?.(S.value)])]),k.value&&y.createElementVNode("div",{key:"next",class:y.normalizeClass(["v-slide-group__next",{"v-slide-group__next--disabled":!j.value}]),onMousedown:D,onClick:()=>j.value&&w("next")},[e.next?.(S.value)??y.createVNode(wm,null,{default:()=>[y.createVNode(nr,{icon:s.value?t.prevIcon:t.nextIcon},null)]})])]})),{selected:o.selected,scrollTo:w,scrollOffset:a,focus:C,hasPrev:T,hasNext:j}}}),bg=Symbol.for("vuetify:v-chip-group"),z4=Ze({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Bn},...vg({scrollToActive:!1}),...or(),...td({selectedClass:"v-chip--selected"}),...Vr(),...cn(),...ga({variant:"tonal"})},"VChipGroup");xt()({name:"VChipGroup",props:z4(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const{themeClasses:s}=Pn(t),{isSelected:c,select:r,next:o,prev:l,selected:a}=rd(t,bg);return da({VChip:{baseColor:y.toRef(()=>t.baseColor),color:y.toRef(()=>t.color),disabled:y.toRef(()=>t.disabled),filter:y.toRef(()=>t.filter),variant:y.toRef(()=>t.variant)}}),jt(()=>{const n=Cm.filterProps(t);return y.createVNode(Cm,y.mergeProps(n,{class:["v-chip-group",{"v-chip-group--column":t.column},s.value,t.class],style:t.style}),{default:()=>[e.default?.({isSelected:c,select:r,next:o,prev:l,selected:a.value})]})}),{}}});const U4=Ze({activeClass:String,appendAvatar:String,appendIcon:$t,baseColor:String,closable:Boolean,closeIcon:{type:$t,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:$t,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:$t,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:vn(),onClickOnce:vn(),...Xa(),...or(),...Vn(),...Ps(),...Qm(),...Ai(),...Bu(),...yo(),...Vr({tag:"span"}),...cn(),...ga({variant:"tonal"})},"VChip"),Ns=xt()({name:"VChip",directives:{vRipple:ha},props:U4(),emits:{"click:close":t=>!0,"update:modelValue":t=>!0,"group:selected":t=>!0,click:t=>!0},setup(t,i){let{attrs:e,emit:s,slots:c}=i;const{t:r}=vi(),{borderClasses:o}=Ts(t),{densityClasses:l}=Wi(t),{elevationClasses:a}=bo(t),{roundedClasses:n}=Gi(t),{sizeClasses:u}=hl(t),{themeClasses:h}=Pn(t),d=cr(t,"modelValue"),f=bf(t,bg,!1),m=bf(t,gg,!1),g=Fu(t,e),p=y.toRef(()=>t.link!==!1&&g.isLink.value),v=y.computed(()=>!t.disabled&&t.link!==!1&&(!!f||t.link||g.isClickable.value)),b=y.toRef(()=>({"aria-label":r(t.closeLabel),disabled:t.disabled,onClick(R){R.preventDefault(),R.stopPropagation(),d.value=!1,s("click:close",R)}}));y.watch(d,R=>{R?(f?.register(),m?.register()):(f?.unregister(),m?.unregister())});const{colorClasses:x,colorStyles:A,variantClasses:M}=dl(()=>({color:!f||f.isSelected.value?t.color??t.baseColor:t.baseColor,variant:t.variant}));function V(R){s("click",R),v.value&&(g.navigate?.(R),f?.toggle())}function W(R){(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),V(R))}return()=>{const R=g.isLink.value?"a":t.tag,F=!!(t.appendIcon||t.appendAvatar),$=!!(F||c.append),z=!!(c.close||t.closable),D=!!(c.filter||t.filter)&&f,N=!!(t.prependIcon||t.prependAvatar),E=!!(N||c.prepend);return d.value&&y.withDirectives(y.createVNode(R,y.mergeProps(g.linkProps,{class:["v-chip",{"v-chip--disabled":t.disabled,"v-chip--label":t.label,"v-chip--link":v.value,"v-chip--filter":D,"v-chip--pill":t.pill,[`${t.activeClass}`]:t.activeClass&&g.isActive?.value},h.value,o.value,x.value,l.value,a.value,n.value,u.value,M.value,f?.selectedClass.value,t.class],style:[A.value,t.style],disabled:t.disabled||void 0,draggable:t.draggable,tabindex:v.value?0:void 0,onClick:V,onKeydown:v.value&&!p.value&&W}),{default:()=>[fl(v.value,"v-chip"),D&&y.createVNode(H1,{key:"filter"},{default:()=>[y.withDirectives(y.createElementVNode("div",{class:"v-chip__filter"},[c.filter?y.createVNode(qr,{key:"filter-defaults",disabled:!t.filterIcon,defaults:{VIcon:{icon:t.filterIcon}}},c.filter):y.createVNode(nr,{key:"filter-icon",icon:t.filterIcon},null)]),[[y.vShow,f.isSelected.value]])]}),E&&y.createElementVNode("div",{key:"prepend",class:"v-chip__prepend"},[c.prepend?y.createVNode(qr,{key:"prepend-defaults",disabled:!N,defaults:{VAvatar:{image:t.prependAvatar,start:!0},VIcon:{icon:t.prependIcon,start:!0}}},c.prepend):y.createElementVNode(y.Fragment,null,[t.prependIcon&&y.createVNode(nr,{key:"prepend-icon",icon:t.prependIcon,start:!0},null),t.prependAvatar&&y.createVNode(qa,{key:"prepend-avatar",image:t.prependAvatar,start:!0},null)])]),y.createElementVNode("div",{class:"v-chip__content","data-no-activator":""},[c.default?.({isSelected:f?.isSelected.value,selectedClass:f?.selectedClass.value,select:f?.select,toggle:f?.toggle,value:f?.value.value,disabled:t.disabled})??y.toDisplayString(t.text)]),$&&y.createElementVNode("div",{key:"append",class:"v-chip__append"},[c.append?y.createVNode(qr,{key:"append-defaults",disabled:!F,defaults:{VAvatar:{end:!0,image:t.appendAvatar},VIcon:{end:!0,icon:t.appendIcon}}},c.append):y.createElementVNode(y.Fragment,null,[t.appendIcon&&y.createVNode(nr,{key:"append-icon",end:!0,icon:t.appendIcon},null),t.appendAvatar&&y.createVNode(qa,{key:"append-avatar",end:!0,image:t.appendAvatar},null)])]),z&&y.createElementVNode("button",y.mergeProps({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},b.value),[c.close?y.createVNode(qr,{key:"close-defaults",defaults:{VIcon:{icon:t.closeIcon,size:"x-small"}}},c.close):y.createVNode(nr,{key:"close-icon",icon:t.closeIcon,size:"x-small"},null)])]}),[[ha,v.value&&t.ripple,null]])}}}),$4=Ze({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...or(),...ml({transition:{component:q1}})},"VCounter"),Sd=xt()({name:"VCounter",functional:!0,props:$4(),setup(t,i){let{slots:e}=i;const s=y.toRef(()=>t.max?`${t.value} / ${t.max}`:String(t.value));return jt(()=>y.createVNode(Ba,{transition:t.transition},{default:()=>[y.withDirectives(y.createElementVNode("div",{class:y.normalizeClass(["v-counter",{"text-error":t.max&&!t.disabled&&parseFloat(t.value)>parseFloat(t.max)},t.class]),style:y.normalizeStyle(t.style)},[e.default?e.default({counter:s.value,max:t.max,value:t.value}):s.value]),[[y.vShow,t.active]])]})),{}}}),q4=Ze({floating:Boolean,...or()},"VFieldLabel"),iu=xt()({name:"VFieldLabel",props:q4(),setup(t,i){let{slots:e}=i;return jt(()=>y.createVNode(lg,{class:y.normalizeClass(["v-field-label",{"v-field-label--floating":t.floating},t.class]),style:y.normalizeStyle(t.style)},e)),{}}}),H4=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Wu=Ze({appendInnerIcon:$t,bgColor:String,clearable:Boolean,clearIcon:{type:$t,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:$t,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:t=>H4.includes(t)},"onClick:clear":vn(),"onClick:appendInner":vn(),"onClick:prependInner":vn(),...or(),...Lu(),...Ai(),...cn()},"VField"),go=xt()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,...dg(),...Wu()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,i){let{attrs:e,emit:s,slots:c}=i;const{themeClasses:r}=Pn(t),{loaderClasses:o}=pl(t),{focusClasses:l,isFocused:a,focus:n,blur:u}=bl(t),{InputIcon:h}=fg(t),{roundedClasses:d}=Gi(t),{rtlClasses:f}=va(),m=y.toRef(()=>t.dirty||t.active),g=y.toRef(()=>!!(t.label||c.label)),p=y.toRef(()=>!t.singleLine&&g.value),v=y.useId(),b=y.computed(()=>t.id||`input-${v}`),x=y.toRef(()=>t.details?`${b.value}-messages`:void 0),A=y.ref(),M=y.ref(),V=y.ref(),W=y.computed(()=>["plain","underlined"].includes(t.variant)),R=y.computed(()=>t.error||t.disabled?void 0:m.value&&a.value?t.color:t.baseColor),F=y.computed(()=>{if(!(!t.iconColor||t.glow&&!a.value))return t.iconColor===!0?R.value:t.iconColor}),{backgroundColorClasses:$,backgroundColorStyles:z}=fa(()=>t.bgColor),{textColorClasses:D,textColorStyles:N}=$i(R);y.watch(m,w=>{if(p.value&&!co()){const S=A.value.$el,_=M.value.$el;requestAnimationFrame(()=>{const k=Yf(S),T=_.getBoundingClientRect(),j=T.x-k.x,P=T.y-k.y-(k.height/2-T.height/2),U=T.width/.75,q=Math.abs(U-k.width)>1?{maxWidth:St(U)}:void 0,Z=getComputedStyle(S),B=getComputedStyle(_),X=parseFloat(Z.transitionDuration)*1e3||150,L=parseFloat(B.getPropertyValue("--v-field-label-scale")),I=B.getPropertyValue("color");S.style.visibility="visible",_.style.visibility="hidden",Fa(S,{transform:`translate(${j}px, ${P}px) scale(${L})`,color:I,...q},{duration:X,easing:yu,direction:w?"normal":"reverse"}).finished.then(()=>{S.style.removeProperty("visibility"),_.style.removeProperty("visibility")})})}},{flush:"post"});const E=y.computed(()=>({isActive:m,isFocused:a,controlRef:V,blur:u,focus:n}));function C(w){w.target!==document.activeElement&&w.preventDefault()}return jt(()=>{const w=t.variant==="outlined",S=!!(c["prepend-inner"]||t.prependInnerIcon),_=!!(t.clearable||c.clear)&&!t.disabled,k=!!(c["append-inner"]||t.appendInnerIcon||_),T=()=>c.label?c.label({...E.value,label:t.label,props:{for:b.value}}):t.label;return y.createElementVNode("div",y.mergeProps({class:["v-field",{"v-field--active":m.value,"v-field--appended":k,"v-field--center-affix":t.centerAffix??!W.value,"v-field--disabled":t.disabled,"v-field--dirty":t.dirty,"v-field--error":t.error,"v-field--glow":t.glow,"v-field--flat":t.flat,"v-field--has-background":!!t.bgColor,"v-field--persistent-clear":t.persistentClear,"v-field--prepended":S,"v-field--reverse":t.reverse,"v-field--single-line":t.singleLine,"v-field--no-label":!T(),[`v-field--variant-${t.variant}`]:!0},r.value,$.value,l.value,o.value,d.value,f.value,t.class],style:[z.value,t.style],onClick:C},e),[y.createElementVNode("div",{class:"v-field__overlay"},null),y.createVNode(Ou,{name:"v-field",active:!!t.loading,color:t.error?"error":typeof t.loading=="string"?t.loading:t.color},{default:c.loader}),S&&y.createElementVNode("div",{key:"prepend",class:"v-field__prepend-inner"},[t.prependInnerIcon&&y.createVNode(h,{key:"prepend-icon",name:"prependInner",color:F.value},null),c["prepend-inner"]?.(E.value)]),y.createElementVNode("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(t.variant)&&p.value&&y.createVNode(iu,{key:"floating-label",ref:M,class:y.normalizeClass([D.value]),floating:!0,for:b.value,"aria-hidden":!m.value,style:y.normalizeStyle(N.value)},{default:()=>[T()]}),g.value&&y.createVNode(iu,{key:"label",ref:A,for:b.value},{default:()=>[T()]}),c.default?.({...E.value,props:{id:b.value,class:"v-field__input","aria-describedby":x.value},focus:n,blur:u})??y.createElementVNode("div",{id:b.value,class:"v-field__input","aria-describedby":x.value},null)]),_&&y.createVNode(H1,{key:"clear"},{default:()=>[y.withDirectives(y.createElementVNode("div",{class:"v-field__clearable",onMousedown:j=>{j.preventDefault(),j.stopPropagation()}},[y.createVNode(qr,{defaults:{VIcon:{icon:t.clearIcon}}},{default:()=>[c.clear?c.clear({...E.value,props:{onFocus:n,onBlur:u,onClick:t["onClick:clear"],tabindex:-1}}):y.createVNode(h,{name:"clear",onFocus:n,onBlur:u,tabindex:-1},null)]})]),[[y.vShow,t.dirty]])]}),k&&y.createElementVNode("div",{key:"append",class:"v-field__append-inner"},[c["append-inner"]?.(E.value),t.appendInnerIcon&&y.createVNode(h,{key:"append-icon",name:"appendInner",color:F.value},null)]),y.createElementVNode("div",{class:y.normalizeClass(["v-field__outline",D.value]),style:y.normalizeStyle(N.value)},[w&&y.createElementVNode(y.Fragment,null,[y.createElementVNode("div",{class:"v-field__outline__start"},null),p.value&&y.createElementVNode("div",{class:"v-field__outline__notch"},[y.createVNode(iu,{ref:M,floating:!0,for:b.value,"aria-hidden":!m.value},{default:()=>[T()]})]),y.createElementVNode("div",{class:"v-field__outline__end"},null)]),W.value&&p.value&&y.createVNode(iu,{ref:M,floating:!0,for:b.value,"aria-hidden":!m.value},{default:()=>[T()]})])])}),{controlRef:V,fieldIconColor:F}}}),yg=Ze({autocomplete:String},"autocomplete");function kd(t){const i=y.useId(),e=y.shallowRef(0),s=y.toRef(()=>t.autocomplete==="suppress"),c=y.toRef(()=>{if(t.name)return s.value?`${t.name}-${i}-${e.value}`:t.name}),r=y.toRef(()=>s.value?"off":t.autocomplete);return{isSuppressing:s,fieldAutocomplete:r,fieldName:c,update:()=>e.value=new Date().getTime()}}function wg(t){function i(e,s){!t.autofocus||!e||s[0].target?.focus?.()}return{onIntersect:i}}const W4=["color","file","time","date","datetime-local","week","month"],Gu=Ze({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...yg(),...yl(),...Wu()},"VTextField"),Ci=xt()({name:"VTextField",directives:{vIntersect:mo},inheritAttrs:!1,props:Gu(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,i){let{attrs:e,emit:s,slots:c}=i;const r=cr(t,"modelValue"),{isFocused:o,focus:l,blur:a}=bl(t),{onIntersect:n}=wg(t),u=y.computed(()=>typeof t.counterValue=="function"?t.counterValue(r.value):typeof t.counterValue=="number"?t.counterValue:(r.value??"").toString().length),h=y.computed(()=>{if(e.maxlength)return e.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),d=y.computed(()=>["plain","underlined"].includes(t.variant)),f=y.ref(),m=y.ref(),g=y.ref(),p=kd(t),v=y.computed(()=>W4.includes(t.type)||t.persistentPlaceholder||o.value||t.active);function b(){p.isSuppressing.value&&p.update(),o.value||l(),y.nextTick(()=>{g.value!==document.activeElement&&g.value?.focus()})}function x(W){s("mousedown:control",W),W.target!==g.value&&(b(),W.preventDefault())}function A(W){s("click:control",W)}function M(W,R){W.stopPropagation(),b(),y.nextTick(()=>{R(),ul(t["onClick:clear"],W)})}function V(W){const R=W.target;if(!(t.modelModifiers?.trim&&["text","search","password","tel","url"].includes(t.type))){r.value=R.value;return}const F=R.value,$=R.selectionStart,z=R.selectionEnd;r.value=F,y.nextTick(()=>{let D=0;F.trimStart().length===R.value.length&&(D=F.length-R.value.length),$!=null&&(R.selectionStart=$-D),z!=null&&(R.selectionEnd=z-D)})}return jt(()=>{const W=!!(c.counter||t.counter!==!1&&t.counter!=null),R=!!(W||c.details),[F,$]=ll(e),{modelValue:z,...D}=Wa.filterProps(t),N=go.filterProps(t);return y.createVNode(Wa,y.mergeProps({ref:f,modelValue:r.value,"onUpdate:modelValue":E=>r.value=E,class:["v-text-field",{"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-input--plain-underlined":d.value},t.class],style:t.style},F,D,{centerAffix:!d.value,focused:o.value}),{...c,default:E=>{let{id:C,isDisabled:w,isDirty:S,isReadonly:_,isValid:k,hasDetails:T,reset:j}=E;return y.createVNode(go,y.mergeProps({ref:m,onMousedown:x,onClick:A,"onClick:clear":P=>M(P,j),role:t.role},Dn(N,["onClick:clear"]),{id:C.value,active:v.value||S.value,dirty:S.value||t.dirty,disabled:w.value,focused:o.value,details:T.value,error:k.value===!1}),{...c,default:P=>{let{props:{class:U,...q},controlRef:Z}=P;const B=y.withDirectives(y.createElementVNode("input",y.mergeProps({ref:X=>g.value=Z.value=X,value:r.value,onInput:V,autofocus:t.autofocus,readonly:_.value,disabled:w.value,name:p.fieldName.value,autocomplete:p.fieldAutocomplete.value,placeholder:t.placeholder,size:1,role:t.role,type:t.type,onFocus:l,onBlur:a},q,$),null),[[mo,{handler:n},null,{once:!0}]]);return y.createElementVNode(y.Fragment,null,[t.prefix&&y.createElementVNode("span",{class:"v-text-field__prefix"},[y.createElementVNode("span",{class:"v-text-field__prefix__text"},[t.prefix])]),c.default?y.createElementVNode("div",{class:y.normalizeClass(U),"data-no-activator":""},[c.default(),B]):y.cloneVNode(B,{class:U}),t.suffix&&y.createElementVNode("span",{class:"v-text-field__suffix"},[y.createElementVNode("span",{class:"v-text-field__suffix__text"},[t.suffix])])])}})},details:R?E=>y.createElementVNode(y.Fragment,null,[c.details?.(E),W&&y.createElementVNode(y.Fragment,null,[y.createElementVNode("span",null,null),y.createVNode(Sd,{active:t.persistentCounter||o.value,value:u.value,max:h.value,disabled:t.disabled},c.counter)])]):void 0})}),Ni({},f,m,g)}}),G4=Ze({renderless:Boolean,...or()},"VVirtualScrollItem"),X4=xt()({name:"VVirtualScrollItem",inheritAttrs:!1,props:G4(),emits:{"update:height":t=>!0},setup(t,i){let{attrs:e,emit:s,slots:c}=i;const{resizeRef:r,contentRect:o}=Ss(void 0,"border");y.watch(()=>o.value?.height,l=>{l!=null&&s("update:height",l)}),jt(()=>t.renderless?y.createElementVNode(y.Fragment,null,[c.default?.({itemRef:r})]):y.createElementVNode("div",y.mergeProps({ref:r,class:["v-virtual-scroll__item",t.class],style:t.style},e),[c.default?.()]))}}),K4=-1,Y4=1,lf=100,Z4=Ze({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function J4(t,i){const e=Za(),s=y.shallowRef(0);y.watchEffect(()=>{s.value=parseFloat(t.itemHeight||0)});const c=y.shallowRef(0),r=y.shallowRef(Math.ceil((parseInt(t.height)||e.height.value)/(s.value||16))||1),o=y.shallowRef(0),l=y.shallowRef(0),a=y.ref(),n=y.ref();let u=0;const{resizeRef:h,contentRect:d}=Ss();y.watchEffect(()=>{h.value=a.value});const f=y.computed(()=>a.value===document.documentElement?e.height.value:d.value?.height||parseInt(t.height)||0),m=y.computed(()=>!!(a.value&&n.value&&f.value&&s.value));let g=Array.from({length:i.value.length}),p=Array.from({length:i.value.length});const v=y.shallowRef(0);let b=-1;function x(T){return g[T]||s.value}const A=f2(()=>{const T=performance.now();p[0]=0;const j=i.value.length;for(let P=1;P<=j;P++)p[P]=(p[P-1]||0)+x(P-1);v.value=Math.max(v.value,performance.now()-T)},v),M=y.watch(m,T=>{T&&(M(),u=n.value.offsetTop,A.immediate(),w(),~b&&y.nextTick(()=>{nn&&window.requestAnimationFrame(()=>{_(b),b=-1})}))});y.onScopeDispose(()=>{A.clear()});function V(T,j){const P=g[T],U=s.value;s.value=U?Math.min(s.value,j):j,(P!==j||U!==s.value)&&(g[T]=j,A())}function W(T){T=un(T,0,i.value.length);const j=Math.floor(T),P=T%1,U=j+1,q=p[j]||0,Z=p[U]||q;return q+(Z-q)*P}function R(T){return Q4(p,T)}let F=0,$=0,z=0;y.watch(f,(T,j)=>{j&&(w(),T<j&&requestAnimationFrame(()=>{$=0,w()}))});let D=-1;function N(){if(!a.value||!n.value)return;const T=a.value.scrollTop,j=performance.now();j-z>500?($=Math.sign(T-F),u=n.value.offsetTop):$=T-F,F=T,z=j,window.clearTimeout(D),D=window.setTimeout(E,500),w()}function E(){!a.value||!n.value||($=0,z=0,window.clearTimeout(D),w())}let C=-1;function w(){cancelAnimationFrame(C),C=requestAnimationFrame(S)}function S(){if(!a.value||!f.value||!s.value)return;const T=F-u,j=Math.sign($),P=Math.max(0,T-lf),U=un(R(P),0,i.value.length),q=T+f.value+lf,Z=un(R(q)+1,U+1,i.value.length);if((j!==K4||U<c.value)&&(j!==Y4||Z>r.value)){const B=W(c.value)-W(U),X=W(Z)-W(r.value);Math.max(B,X)>lf?(c.value=U,r.value=Z):(U<=0&&(c.value=U),Z>=i.value.length&&(r.value=Z))}o.value=W(c.value),l.value=W(i.value.length)-W(r.value)}function _(T){const j=W(T);!a.value||T&&!j?b=T:a.value.scrollTop=j}const k=y.computed(()=>i.value.slice(c.value,r.value).map((T,j)=>{const P=j+c.value;return{raw:T,index:P,key:En(T,t.itemKey,P)}}));return y.watch(i,()=>{g=Array.from({length:i.value.length}),p=Array.from({length:i.value.length}),A.immediate(),w()},{deep:1}),{calculateVisibleItems:w,containerRef:a,markerRef:n,computedItems:k,paddingTop:o,paddingBottom:l,scrollToIndex:_,handleScroll:N,handleScrollend:E,handleItemResize:V}}function Q4(t,i){let e=t.length-1,s=0,c=0,r=null,o=-1;if(t[e]<i)return e;for(;s<=e;)if(c=s+e>>1,r=t[c],r>i)e=c-1;else if(r<i)o=c,s=c+1;else return r===i?c:s;return o}const e6=Ze({items:{type:Array,default:()=>[]},renderless:Boolean,...Z4(),...or(),...Ka()},"VVirtualScroll"),xg=xt()({name:"VVirtualScroll",props:e6(),setup(t,i){let{slots:e}=i;const s=Jr("VVirtualScroll"),{dimensionStyles:c}=Ya(t),{calculateVisibleItems:r,containerRef:o,markerRef:l,handleScroll:a,handleScrollend:n,handleItemResize:u,scrollToIndex:h,paddingTop:d,paddingBottom:f,computedItems:m}=J4(t,y.toRef(()=>t.items));return Ua(()=>t.renderless,()=>{function g(){const v=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";o.value===document.documentElement?(document[v]("scroll",a,{passive:!0}),document[v]("scrollend",n)):(o.value?.[v]("scroll",a,{passive:!0}),o.value?.[v]("scrollend",n))}y.onMounted(()=>{o.value=Zm(s.vnode.el,!0),g(!0)}),y.onScopeDispose(g)}),jt(()=>{const g=m.value.map(p=>y.createVNode(X4,{key:p.key,renderless:t.renderless,"onUpdate:height":v=>u(p.index,v)},{default:v=>e.default?.({item:p.raw,index:p.index,...v})}));return t.renderless?y.createElementVNode(y.Fragment,null,[y.createElementVNode("div",{ref:l,class:"v-virtual-scroll__spacer",style:{paddingTop:St(d.value)}},null),g,y.createElementVNode("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:St(f.value)}},null)]):y.createElementVNode("div",{ref:o,class:y.normalizeClass(["v-virtual-scroll",t.class]),onScrollPassive:a,onScrollend:n,style:y.normalizeStyle([c.value,t.style])},[y.createElementVNode("div",{ref:l,class:"v-virtual-scroll__container",style:{paddingTop:St(d.value),paddingBottom:St(f.value)}},[g])])}),{calculateVisibleItems:r,scrollToIndex:h}}});function _g(t,i){const e=y.shallowRef(!1);let s;function c(l){cancelAnimationFrame(s),e.value=!0,s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{e.value=!1})})}async function r(){await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>requestAnimationFrame(l)),await new Promise(l=>{if(e.value){const a=y.watch(e,()=>{a(),l()})}else l()})}async function o(l){if(l.key==="Tab"&&i.value?.focus(),!["PageDown","PageUp","Home","End"].includes(l.key))return;const a=t.value?.$el;if(!a)return;(l.key==="Home"||l.key==="End")&&a.scrollTo({top:l.key==="Home"?0:a.scrollHeight,behavior:"smooth"}),await r();const n=a.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(l.key==="PageDown"||l.key==="Home"){const u=a.getBoundingClientRect().top;for(const h of n)if(h.getBoundingClientRect().top>=u){h.focus();break}}else{const u=a.getBoundingClientRect().bottom;for(const h of[...n].reverse())if(h.getBoundingClientRect().bottom<=u){h.focus();break}}}return{onScrollPassive:c,onKeydown:o}}const t6=Ze({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function Sg(t,i){const{t:e}=vi(),s=y.useId(),c=y.computed(()=>`menu-${s}`),r=y.toRef(()=>y.toValue(i)),o=y.toRef(()=>c.value),l=y.toRef(()=>e(y.toValue(i)?t.closeText:t.openText));return{menuId:c,ariaExpanded:r,ariaControls:o,ariaLabel:l}}const kg=Ze({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:$t,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...t6(),...ig({itemChildren:!1})},"Select"),r6=Ze({...kg(),...Dn(Gu({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"]),...ml({transition:{component:gd}})},"VSelect"),ws=xt()({name:"VSelect",props:r6(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,i){let{slots:e}=i;const{t:s}=vi(),c=y.ref(),r=y.ref(),o=y.ref(),{items:l,transformIn:a,transformOut:n}=sg(t),u=cr(t,"modelValue",[],q=>a(q===null?[null]:rn(q)),q=>{const Z=n(q);return t.multiple?Z:Z[0]??null}),h=y.computed(()=>typeof t.counterValue=="function"?t.counterValue(u.value):typeof t.counterValue=="number"?t.counterValue:u.value.length),d=Hu(t),f=kd(t),m=y.computed(()=>u.value.map(q=>q.value)),g=y.shallowRef(!1);let p="",v=-1,b;const x=y.computed(()=>t.hideSelected?l.value.filter(q=>!u.value.some(Z=>(t.valueComparator||Bn)(Z,q))):l.value),A=y.computed(()=>t.hideNoData&&!x.value.length||d.isReadonly.value||d.isDisabled.value),M=cr(t,"menu"),V=y.computed({get:()=>M.value,set:q=>{M.value&&!q&&r.value?.ΨopenChildren.size||q&&A.value||(M.value=q)}}),{menuId:W,ariaExpanded:R,ariaControls:F,ariaLabel:$}=Sg(t,V),z=y.computed(()=>({...t.menuProps,activatorProps:{...t.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}})),D=y.ref(),N=_g(D,c);function E(q){t.openOnClear&&(V.value=!0)}function C(){A.value||(V.value=!V.value)}function w(q){vu(q)&&S(q)}function S(q){if(!q.key||d.isReadonly.value)return;["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(q.key)&&q.preventDefault(),["Enter","ArrowDown"," "].includes(q.key)&&(V.value=!0),["Escape","Tab"].includes(q.key)&&(V.value=!1),q.key==="Home"?D.value?.focus("first"):q.key==="End"&&D.value?.focus("last");const Z=1e3;if(!vu(q))return;const B=performance.now();B-b>Z&&(p="",v=-1),p+=q.key.toLowerCase(),b=B;const X=x.value;function L(){let te=I();return te||p.at(-1)===p.at(-2)&&(p=p.slice(0,-1),te=I(),te)||(v=-1,te=I(),te)?te:(p=q.key.toLowerCase(),I())}function I(){for(let te=v+1;te<X.length;te++){const re=X[te];if(re.title.toLowerCase().startsWith(p))return[re,te]}}const G=L();if(!G)return;const[ee,se]=G;v=se,D.value?.focus(se),t.multiple||(u.value=[ee])}function _(q){let Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!q.props.disabled)if(t.multiple){const B=u.value.findIndex(L=>(t.valueComparator||Bn)(L.value,q.value)),X=Z??!~B;if(~B){const L=X?[...u.value,q]:[...u.value];L.splice(B,1),u.value=L}else X&&(u.value=[...u.value,q])}else{const B=Z!==!1;u.value=B?[q]:[],y.nextTick(()=>{V.value=!1})}}function k(q){D.value?.$el.contains(q.relatedTarget)||(V.value=!1)}function T(){t.eager&&o.value?.calculateVisibleItems()}function j(){g.value&&c.value?.focus()}function P(q){g.value=!0}function U(q){if(q==null)u.value=[];else if(fo(c.value,":autofill")||fo(c.value,":-webkit-autofill")){const Z=l.value.find(B=>B.title===q);Z&&_(Z)}else c.value&&(c.value.value="")}return y.watch(V,()=>{if(!t.hideSelected&&V.value&&u.value.length){const q=x.value.findIndex(Z=>u.value.some(B=>(t.valueComparator||Bn)(B.value,Z.value)));nn&&!t.noAutoScroll&&window.requestAnimationFrame(()=>{q>=0&&o.value?.scrollToIndex(q)})}}),y.watch(l,(q,Z)=>{V.value||g.value&&t.hideNoData&&!Z.length&&q.length&&(V.value=!0)}),jt(()=>{const q=!!(t.chips||e.chip),Z=!!(!t.hideNoData||x.value.length||e["prepend-item"]||e["append-item"]||e["no-data"]),B=u.value.length>0,X=Ci.filterProps(t),L=B||!g.value&&t.label&&!t.persistentPlaceholder?void 0:t.placeholder;return y.createVNode(Ci,y.mergeProps({ref:c},X,{modelValue:u.value.map(I=>I.props.title).join(", "),name:void 0,"onUpdate:modelValue":U,focused:g.value,"onUpdate:focused":I=>g.value=I,validationValue:u.externalValue,counterValue:h.value,dirty:B,class:["v-select",{"v-select--active-menu":V.value,"v-select--chips":!!t.chips,[`v-select--${t.multiple?"multiple":"single"}`]:!0,"v-select--selected":u.value.length,"v-select--selection-slot":!!e.selection},t.class],style:t.style,inputmode:"none",placeholder:L,"onClick:clear":E,"onMousedown:control":C,onBlur:k,onKeydown:S,"aria-expanded":R.value,"aria-controls":F.value,"aria-label":$.value,title:$.value}),{...e,default:()=>y.createElementVNode(y.Fragment,null,[y.createElementVNode("select",{hidden:!0,multiple:t.multiple,name:f.fieldName.value},[l.value.map(I=>y.createElementVNode("option",{key:I.value,value:I.value,selected:m.value.includes(I.value)},null))]),y.createVNode(vl,y.mergeProps({id:W.value,ref:r,modelValue:V.value,"onUpdate:modelValue":I=>V.value=I,activator:"parent",contentClass:"v-select__content",disabled:A.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:t.transition,onAfterEnter:T,onAfterLeave:j},z.value),{default:()=>[Z&&y.createVNode(wd,y.mergeProps({ref:D,selected:m.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:I=>I.preventDefault(),onKeydown:w,onFocusin:P,tabindex:"-1",selectable:!0,"aria-live":"polite","aria-label":`${t.label}-list`,color:t.itemColor??t.color},N,t.listProps),{default:()=>[e["prepend-item"]?.(),!x.value.length&&!t.hideNoData&&(e["no-data"]?.()??y.createVNode(mi,{key:"no-data",title:s(t.noDataText)},null)),y.createVNode(xg,{ref:o,renderless:!0,items:x.value,itemKey:"value"},{default:I=>{let{item:G,index:ee,itemRef:se}=I;const te=b2(G.props),re=y.mergeProps(G.props,{ref:se,key:G.value,onClick:()=>_(G,null)});return G.type==="divider"?e.divider?.({props:G.raw,index:ee})??y.createVNode(Ui,y.mergeProps(G.props,{key:`divider-${ee}`}),null):G.type==="subheader"?e.subheader?.({props:G.raw,index:ee})??y.createVNode(yd,y.mergeProps(G.props,{key:`subheader-${ee}`}),null):e.item?.({item:G,index:ee,props:re})??y.createVNode(mi,y.mergeProps(re,{role:"option"}),{prepend:J=>{let{isSelected:de}=J;return y.createElementVNode(y.Fragment,null,[t.multiple&&!t.hideSelected?y.createVNode(Ha,{key:G.value,modelValue:de,ripple:!1,tabindex:"-1",onClick:ne=>ne.preventDefault()},null):void 0,te.prependAvatar&&y.createVNode(qa,{image:te.prependAvatar},null),te.prependIcon&&y.createVNode(nr,{icon:te.prependIcon},null)])}})}}),e["append-item"]?.()]})]}),u.value.map((I,G)=>{function ee(J){J.stopPropagation(),J.preventDefault(),_(I,!1)}const se=y.mergeProps(Ns.filterProps(I.props),{"onClick:close":ee,onKeydown(J){J.key!=="Enter"&&J.key!==" "||(J.preventDefault(),J.stopPropagation(),ee(J))},onMousedown(J){J.preventDefault(),J.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),te=q?!!e.chip:!!e.selection,re=te?Kf(q?e.chip({item:I,index:G,props:se}):e.selection({item:I,index:G})):void 0;if(!(te&&!re))return y.createElementVNode("div",{key:I.value,class:"v-select__selection"},[q?e.chip?y.createVNode(qr,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:I.title}}},{default:()=>[re]}):y.createVNode(Ns,y.mergeProps({key:"chip",closable:t.closableChips,size:"small",text:I.title,disabled:I.props.disabled},se),null):re??y.createElementVNode("span",{class:"v-select__selection-text"},[I.title,t.multiple&&G<u.value.length-1&&y.createElementVNode("span",{class:"v-select__selection-comma"},[y.createTextVNode(",")])])])})]),"append-inner":function(){for(var I=arguments.length,G=new Array(I),ee=0;ee<I;ee++)G[ee]=arguments[ee];return y.createElementVNode(y.Fragment,null,[e["append-inner"]?.(...G),t.menuIcon?y.createVNode(nr,{class:"v-select__menu-icon",color:c.value?.fieldIconColor,icon:t.menuIcon},null):void 0])}})}),Ni({isFocused:g,menu:V,select:_},c)}}),n6={key:0},i6=y.defineComponent({__name:"GenericTablePagination",props:y.mergeModels({headers:Array,data:Array,hideExport:{default:!1},hidePagination:{default:!1}},{pagination:{default:{total:0,page:1,pageSize:10,numPages:1}},paginationModifiers:{}}),emits:y.mergeModels(["update:options"],["update:pagination"]),setup(t){const i=t,e=y.useModel(t,"pagination");Rs();const s=c=>{T1(c,i.data??[],i.headers)};return(c,r)=>(y.openBlock(),y.createElementBlock(y.Fragment,null,[y.createVNode(Ui),y.createVNode(ys,{class:"px-6 py-2","justify-lg":"space-between",align:"center",direction:""},{default:y.withCtx(()=>[y.createVNode(Nn,{cols:"12",md:"2",class:"order-2 order-md-1"},{default:y.withCtx(()=>[i.hideExport?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",n6,[y.createVNode(vl,null,{activator:y.withCtx(({props:o})=>[y.createVNode(Dr,y.mergeProps({variant:"outlined",color:"secondary","prepend-icon":"ri-external-link-line"},o,{density:"comfortable",class:"w-md-auto w-100"}),{default:y.withCtx(()=>[...r[6]||(r[6]=[y.createTextVNode(" Exportar ",-1)])]),_:1},16)]),default:y.withCtx(()=>[y.createVNode(wd,null,{default:y.withCtx(()=>[y.createVNode(mi,{onClick:r[0]||(r[0]=o=>s("pdf"))},{default:y.withCtx(()=>[y.createVNode(Vf,null,{default:y.withCtx(()=>[...r[7]||(r[7]=[y.createTextVNode("PDF",-1)])]),_:1})]),_:1}),y.createVNode(mi,{onClick:r[1]||(r[1]=o=>s("xls"))},{default:y.withCtx(()=>[y.createVNode(Vf,null,{default:y.withCtx(()=>[...r[8]||(r[8]=[y.createTextVNode("XLS",-1)])]),_:1})]),_:1})]),_:1})]),_:1})]))]),_:1}),i.hidePagination?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(Nn,{key:0,cols:"12",md:"10",class:"order-1 order-md-2 d-flex align-center justify-end justify-md-end flex-wrap ga-2"},{default:y.withCtx(()=>[y.createVNode(ws,{modelValue:e.value.pageSize,"onUpdate:modelValue":[r[2]||(r[2]=o=>e.value.pageSize=o),r[3]||(r[3]=o=>c.$emit("update:options"))],items:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],variant:"solo",flat:"",class:"d-flex justify-end",density:"compact","item-value":"value","item-title":"text",elevated:"0"},null,8,["modelValue"]),y.createVNode(zf,{md:"6",modelValue:e.value.page,"onUpdate:modelValue":[r[4]||(r[4]=o=>e.value.page=o),r[5]||(r[5]=o=>c.$emit("update:options"))],"total-visible":c.$vuetify.display.smAndDown?2:3,length:e.value.numPages},null,8,["modelValue","total-visible","length"])]),_:1}))]),_:1})],64))}}),xo=(t,i)=>{const e=t.__vccOpts||t;for(const[s,c]of i)e[s]=c;return e},Cg=xo(i6,[["__scopeId","data-v-4bd33de4"]]),a6=(t,i,e)=>{if(t==null||i==null)return-1;if(!i.length)return 0;t=t.toString().toLocaleLowerCase(),i=i.toString().toLocaleLowerCase();const s=[];let c=t.indexOf(i);for(;~c;)s.push([c,c+i.length]),c=t.indexOf(i,c+i.length);return s.length?s:-1};function uf(t,i){if(!(t==null||typeof t=="boolean"||t===-1))return typeof t=="number"?[[t,t+i.length]]:Array.isArray(t[0])?t:[t]}const Ag=Ze({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function s6(t,i,e){const s=[],c=e?.default??a6,r=e?.filterKeys?rn(e.filterKeys):!1,o=Object.keys(e?.customKeyFilter??{}).length;if(!t?.length)return s;let l=null;e:for(let a=0;a<t.length;a++){const[n,u=n]=rn(t[a]),h={},d={};let f=-1;if((i||o>0)&&!e?.noFilter){let m=!1;if(typeof n=="object"){if(n.type==="divider"||n.type==="subheader"){l?.type==="divider"&&n.type==="subheader"&&s.push(l),l={index:a,matches:{},type:n.type};continue}const v=r||Object.keys(u);m=v.length===o;for(const b of v){const x=En(u,b),A=e?.customKeyFilter?.[b];if(f=A?A(x,i,n):c(x,i,n),f!==-1&&f!==!1)A?h[b]=uf(f,i):d[b]=uf(f,i);else if(e?.filterMode==="every")continue e}}else f=c(n,i,n),f!==-1&&f!==!1&&(d.title=uf(f,i));const g=Object.keys(d).length,p=Object.keys(h).length;if(!g&&!p||e?.filterMode==="union"&&p!==o&&!g||e?.filterMode==="intersection"&&(p!==o||!g&&o>0&&!m))continue}l&&(s.push(l),l=null),s.push({index:a,matches:{...d,...h}})}return s}function Ng(t,i,e,s){const c=y.shallowRef([]),r=y.shallowRef(new Map),o=y.computed(()=>s?.transform?y.unref(i).map(a=>[a,s.transform(a)]):y.unref(i));y.watchEffect(()=>{const a=typeof e=="function"?e():y.unref(e),n=typeof a!="string"&&typeof a!="number"?"":String(a),u=s6(o.value,n,{customKeyFilter:{...t.customKeyFilter,...y.unref(s?.customKeyFilter)},default:t.customFilter,filterKeys:t.filterKeys,filterMode:t.filterMode,noFilter:t.noFilter}),h=y.unref(i),d=[],f=new Map;u.forEach(m=>{let{index:g,matches:p}=m;const v=h[g];d.push(v),f.set(v.value,p)}),c.value=d,r.value=f});function l(a){return r.value.get(a.value)}return{filteredItems:c,filteredMatches:r,getMatches:l}}function o6(t,i,e){return e==null||!e.length?i:e.map((s,c)=>{const r=c===0?0:e[c-1][1],o=[y.createElementVNode("span",{class:y.normalizeClass(`${t}__unmask`)},[i.slice(r,s[0])]),y.createElementVNode("span",{class:y.normalizeClass(`${t}__mask`)},[i.slice(s[0],s[1])])];return c===e.length-1&&o.push(y.createElementVNode("span",{class:y.normalizeClass(`${t}__unmask`)},[i.slice(s[1])])),y.createElementVNode(y.Fragment,null,[o])})}const l6=Ze({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...Ag({filterKeys:["title"]}),...kg(),...Dn(Gu({modelValue:null,role:"combobox"}),["validationValue","dirty","appendInnerIcon"])},"VAutocomplete"),Eg=xt()({name:"VAutocomplete",props:l6(),emits:{"update:focused":t=>!0,"update:search":t=>!0,"update:modelValue":t=>!0,"update:menu":t=>!0},setup(t,i){let{slots:e}=i;const{t:s}=vi(),c=y.ref(),r=y.shallowRef(!1),o=y.shallowRef(!0),l=y.shallowRef(!1),a=y.ref(),n=y.ref(),u=y.shallowRef(-1),h=y.shallowRef(null),{items:d,transformIn:f,transformOut:m}=sg(t),{textColorClasses:g,textColorStyles:p}=$i(()=>c.value?.color),v=cr(t,"search",""),b=cr(t,"modelValue",[],re=>f(re===null?[null]:rn(re)),re=>{const J=m(re);return t.multiple?J:J[0]??null}),x=y.computed(()=>typeof t.counterValue=="function"?t.counterValue(b.value):typeof t.counterValue=="number"?t.counterValue:b.value.length),A=Hu(t),{filteredItems:M,getMatches:V}=Ng(t,d,()=>h.value??(o.value?"":v.value)),W=y.computed(()=>t.hideSelected&&h.value===null?M.value.filter(re=>!b.value.some(J=>J.value===re.value)):M.value),R=y.computed(()=>!!(t.chips||e.chip)),F=y.computed(()=>R.value||!!e.selection),$=y.computed(()=>b.value.map(re=>re.props.value)),z=y.computed(()=>(t.autoSelectFirst===!0||t.autoSelectFirst==="exact"&&v.value===W.value[0]?.title)&&W.value.length>0&&!o.value&&!l.value),D=y.computed(()=>t.hideNoData&&!W.value.length||A.isReadonly.value||A.isDisabled.value),N=cr(t,"menu"),E=y.computed({get:()=>N.value,set:re=>{N.value&&!re&&a.value?.ΨopenChildren.size||re&&D.value||(N.value=re)}}),{menuId:C,ariaExpanded:w,ariaControls:S,ariaLabel:_}=Sg(t,E),k=y.ref(),T=_g(k,c);function j(re){t.openOnClear&&(E.value=!0),v.value=""}function P(){D.value||(E.value=!0)}function U(re){D.value||(r.value&&(re.preventDefault(),re.stopPropagation()),E.value=!E.value)}function q(re){(vu(re)||re.key==="Backspace")&&c.value?.focus()}function Z(re){if(A.isReadonly.value)return;const J=c.value?.selectionStart,de=b.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(re.key)&&re.preventDefault(),["Enter","ArrowDown"].includes(re.key)&&(E.value=!0),["Escape"].includes(re.key)&&(E.value=!1),z.value&&["Enter","Tab"].includes(re.key)&&!b.value.some(ne=>{let{value:fe}=ne;return fe===W.value[0].value})&&te(W.value[0]),re.key==="ArrowDown"&&z.value&&k.value?.focus("next"),["Backspace","Delete"].includes(re.key)){if(!t.multiple&&F.value&&b.value.length>0&&!v.value)return te(b.value[0],!1);if(~u.value){re.preventDefault();const ne=u.value;te(b.value[u.value],!1),u.value=ne>=de-1?de-2:ne}else re.key==="Backspace"&&!v.value&&(u.value=de-1);return}if(t.multiple)if(re.key==="ArrowLeft"){if(u.value<0&&J&&J>0)return;const ne=u.value>-1?u.value-1:de-1;if(b.value[ne])u.value=ne;else{const fe=v.value?.length??null;u.value=-1,c.value?.setSelectionRange(fe,fe)}}else if(re.key==="ArrowRight"){if(u.value<0)return;const ne=u.value+1;b.value[ne]?u.value=ne:(u.value=-1,c.value?.setSelectionRange(0,0))}else~u.value&&vu(re)&&(u.value=-1)}function B(re){if(fo(c.value,":autofill")||fo(c.value,":-webkit-autofill")){const J=d.value.find(de=>de.title===re.target.value);J&&te(J)}}function X(){t.eager&&n.value?.calculateVisibleItems()}function L(){r.value&&(o.value=!0,c.value?.focus()),h.value=null}function I(re){r.value=!0,setTimeout(()=>{l.value=!0})}function G(re){l.value=!1}function ee(re){(re==null||re===""&&!t.multiple&&!F.value)&&(b.value=[])}const se=y.shallowRef(!1);function te(re){let J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!(!re||re.props.disabled))if(t.multiple){const de=b.value.findIndex(fe=>(t.valueComparator||Bn)(fe.value,re.value)),ne=J??!~de;if(~de){const fe=ne?[...b.value,re]:[...b.value];fe.splice(de,1),b.value=fe}else ne&&(b.value=[...b.value,re]);t.clearOnSelect&&(v.value="")}else{const de=J!==!1;b.value=de?[re]:[],h.value=o.value?"":v.value??"",v.value=de&&!F.value?re.title:"",y.nextTick(()=>{E.value=!1,o.value=!0})}}return y.watch(r,(re,J)=>{re!==J&&(re?(se.value=!0,v.value=t.multiple||F.value?"":String(b.value.at(-1)?.props.title??""),o.value=!0,y.nextTick(()=>se.value=!1)):(!t.multiple&&v.value==null&&(b.value=[]),E.value=!1,!o.value&&v.value&&(h.value=v.value),v.value="",u.value=-1))}),y.watch(v,re=>{!r.value||se.value||(re&&(E.value=!0),o.value=!re)}),y.watch(E,re=>{if(!t.hideSelected&&re&&b.value.length&&o.value){const J=W.value.findIndex(de=>b.value.some(ne=>de.value===ne.value));nn&&window.requestAnimationFrame(()=>{J>=0&&n.value?.scrollToIndex(J)})}re&&(h.value=null)}),y.watch(d,(re,J)=>{E.value||r.value&&!J.length&&re.length&&(E.value=!0)}),jt(()=>{const re=!!(!t.hideNoData||W.value.length||e["prepend-item"]||e["append-item"]||e["no-data"]),J=b.value.length>0,de=Ci.filterProps(t);return y.createVNode(Ci,y.mergeProps({ref:c},de,{modelValue:v.value,"onUpdate:modelValue":[ne=>v.value=ne,ee],focused:r.value,"onUpdate:focused":ne=>r.value=ne,validationValue:b.externalValue,counterValue:x.value,dirty:J,onChange:B,class:["v-autocomplete",`v-autocomplete--${t.multiple?"multiple":"single"}`,{"v-autocomplete--active-menu":E.value,"v-autocomplete--chips":!!t.chips,"v-autocomplete--selection-slot":!!F.value,"v-autocomplete--selecting-index":u.value>-1},t.class],style:t.style,readonly:A.isReadonly.value,placeholder:J?void 0:t.placeholder,"onClick:clear":j,"onMousedown:control":P,onKeydown:Z,"aria-expanded":w.value,"aria-controls":S.value}),{...e,default:()=>y.createElementVNode(y.Fragment,null,[y.createVNode(vl,y.mergeProps({id:C.value,ref:a,modelValue:E.value,"onUpdate:modelValue":ne=>E.value=ne,activator:"parent",contentClass:"v-autocomplete__content",disabled:D.value,eager:t.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:X,onAfterLeave:L},t.menuProps),{default:()=>[re&&y.createVNode(wd,y.mergeProps({ref:k,filterable:!0,selected:$.value,selectStrategy:t.multiple?"independent":"single-independent",onMousedown:ne=>ne.preventDefault(),onKeydown:q,onFocusin:I,onFocusout:G,tabindex:"-1",selectable:!0,"aria-live":"polite",color:t.itemColor??t.color},T,t.listProps),{default:()=>[e["prepend-item"]?.(),!W.value.length&&!t.hideNoData&&(e["no-data"]?.()??y.createVNode(mi,{key:"no-data",title:s(t.noDataText)},null)),y.createVNode(xg,{ref:n,renderless:!0,items:W.value,itemKey:"value"},{default:ne=>{let{item:fe,index:ue,itemRef:ye}=ne;const be=y.mergeProps(fe.props,{ref:ye,key:fe.value,active:z.value&&ue===0?!0:void 0,onClick:()=>te(fe,null)});return fe.type==="divider"?e.divider?.({props:fe.raw,index:ue})??y.createVNode(Ui,y.mergeProps(fe.props,{key:`divider-${ue}`}),null):fe.type==="subheader"?e.subheader?.({props:fe.raw,index:ue})??y.createVNode(yd,y.mergeProps(fe.props,{key:`subheader-${ue}`}),null):e.item?.({item:fe,index:ue,props:be})??y.createVNode(mi,y.mergeProps(be,{role:"option"}),{prepend:we=>{let{isSelected:Se}=we;return y.createElementVNode(y.Fragment,null,[t.multiple&&!t.hideSelected?y.createVNode(Ha,{key:fe.value,modelValue:Se,ripple:!1,tabindex:"-1",onClick:Pe=>Pe.preventDefault()},null):void 0,fe.props.prependAvatar&&y.createVNode(qa,{image:fe.props.prependAvatar},null),fe.props.prependIcon&&y.createVNode(nr,{icon:fe.props.prependIcon},null)])},title:()=>o.value?fe.title:o6("v-autocomplete",fe.title,V(fe)?.title)})}}),e["append-item"]?.()]})]}),b.value.map((ne,fe)=>{function ue(Se){Se.stopPropagation(),Se.preventDefault(),te(ne,!1)}const ye=y.mergeProps(Ns.filterProps(ne.props),{"onClick:close":ue,onKeydown(Se){Se.key!=="Enter"&&Se.key!==" "||(Se.preventDefault(),Se.stopPropagation(),ue(Se))},onMousedown(Se){Se.preventDefault(),Se.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),be=R.value?!!e.chip:!!e.selection,we=be?Kf(R.value?e.chip({item:ne,index:fe,props:ye}):e.selection({item:ne,index:fe})):void 0;if(!(be&&!we))return y.createElementVNode("div",{key:ne.value,class:y.normalizeClass(["v-autocomplete__selection",fe===u.value&&["v-autocomplete__selection--selected",g.value]]),style:y.normalizeStyle(fe===u.value?p.value:{})},[R.value?e.chip?y.createVNode(qr,{key:"chip-defaults",defaults:{VChip:{closable:t.closableChips,size:"small",text:ne.title}}},{default:()=>[we]}):y.createVNode(Ns,y.mergeProps({key:"chip",closable:t.closableChips,size:"small",text:ne.title,disabled:ne.props.disabled},ye),null):we??y.createElementVNode("span",{class:"v-autocomplete__selection-text"},[ne.title,t.multiple&&fe<b.value.length-1&&y.createElementVNode("span",{class:"v-autocomplete__selection-comma"},[y.createTextVNode(",")])])])})]),"append-inner":function(){for(var ne=arguments.length,fe=new Array(ne),ue=0;ue<ne;ue++)fe[ue]=arguments[ue];return y.createElementVNode(y.Fragment,null,[e["append-inner"]?.(...fe),t.menuIcon?y.createVNode(nr,{class:"v-autocomplete__menu-icon",color:c.value?.fieldIconColor,icon:t.menuIcon,onMousedown:U,onClick:p2,"aria-label":_.value,title:_.value,tabindex:"-1"},null):void 0])}})}),Ni({isFocused:r,isPristine:o,menu:E,search:v,filteredItems:M,select:te},c)}}),u6=Ze({fullscreen:Boolean,scrollable:Boolean,...Dn(zu({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:gd},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),Cd=xt()({name:"VDialog",props:u6(),emits:{"update:modelValue":t=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(t,i){let{emit:e,slots:s}=i;const c=cr(t,"modelValue"),{scopeId:r}=Vu(),o=y.ref();function l(){e("afterEnter"),(t.scrim||t.retainFocus)&&o.value?.contentEl&&!o.value.contentEl.contains(document.activeElement)&&o.value.contentEl.focus({preventScroll:!0})}function a(){e("afterLeave")}return y.watch(c,async n=>{n||(await y.nextTick(),o.value.activatorEl?.focus({preventScroll:!0}))}),jt(()=>{const n=ho.filterProps(t),u=y.mergeProps({"aria-haspopup":"dialog"},t.activatorProps),h=y.mergeProps({tabindex:-1},t.contentProps);return y.createVNode(ho,y.mergeProps({ref:o,class:["v-dialog",{"v-dialog--fullscreen":t.fullscreen,"v-dialog--scrollable":t.scrollable},t.class],style:t.style},n,{modelValue:c.value,"onUpdate:modelValue":d=>c.value=d,"aria-modal":"true",activatorProps:u,contentProps:h,height:t.fullscreen?void 0:t.height,width:t.fullscreen?void 0:t.width,maxHeight:t.fullscreen?void 0:t.maxHeight,maxWidth:t.fullscreen?void 0:t.maxWidth,role:"dialog",onAfterEnter:l,onAfterLeave:a},r),{activator:s.activator,default:function(){for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];return y.createVNode(qr,{root:"VDialog"},{default:()=>[s.default?.(...f)]})}})}),Ni({},o)}}),c6=Ze({...or(),...Vr()},"VCardActions"),Tg=xt()({name:"VCardActions",props:c6(),setup(t,i){let{slots:e}=i;return da({VBtn:{slim:!0,variant:"text"}}),jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-card-actions",t.class]),style:y.normalizeStyle(t.style)},e)),{}}}),f6=Ze({opacity:[Number,String],...or(),...Vr()},"VCardSubtitle"),d6=xt()({name:"VCardSubtitle",props:f6(),setup(t,i){let{slots:e}=i;return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-card-subtitle",t.class]),style:y.normalizeStyle([{"--v-card-subtitle-opacity":t.opacity},t.style])},e)),{}}}),Ad=Jf("v-card-title"),h6=Ze({appendAvatar:String,appendIcon:$t,prependAvatar:String,prependIcon:$t,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...or(),...Vn(),...Vr()},"VCardItem"),p6=xt()({name:"VCardItem",props:h6(),setup(t,i){let{slots:e}=i;return jt(()=>{const s=!!(t.prependAvatar||t.prependIcon),c=!!(s||e.prepend),r=!!(t.appendAvatar||t.appendIcon),o=!!(r||e.append),l=!!(t.title!=null||e.title),a=!!(t.subtitle!=null||e.subtitle);return y.createVNode(t.tag,{class:y.normalizeClass(["v-card-item",t.class]),style:y.normalizeStyle(t.style)},{default:()=>[c&&y.createElementVNode("div",{key:"prepend",class:"v-card-item__prepend"},[e.prepend?y.createVNode(qr,{key:"prepend-defaults",disabled:!s,defaults:{VAvatar:{density:t.density,image:t.prependAvatar},VIcon:{density:t.density,icon:t.prependIcon}}},e.prepend):y.createElementVNode(y.Fragment,null,[t.prependAvatar&&y.createVNode(qa,{key:"prepend-avatar",density:t.density,image:t.prependAvatar},null),t.prependIcon&&y.createVNode(nr,{key:"prepend-icon",density:t.density,icon:t.prependIcon},null)])]),y.createElementVNode("div",{class:"v-card-item__content"},[l&&y.createVNode(Ad,{key:"title"},{default:()=>[e.title?.()??y.toDisplayString(t.title)]}),a&&y.createVNode(d6,{key:"subtitle"},{default:()=>[e.subtitle?.()??y.toDisplayString(t.subtitle)]}),e.default?.()]),o&&y.createElementVNode("div",{key:"append",class:"v-card-item__append"},[e.append?y.createVNode(qr,{key:"append-defaults",disabled:!r,defaults:{VAvatar:{density:t.density,image:t.appendAvatar},VIcon:{density:t.density,icon:t.appendIcon}}},e.append):y.createElementVNode(y.Fragment,null,[t.appendIcon&&y.createVNode(nr,{key:"append-icon",density:t.density,icon:t.appendIcon},null),t.appendAvatar&&y.createVNode(qa,{key:"append-avatar",density:t.density,image:t.appendAvatar},null)])])]})}),{}}}),m6=Ze({opacity:[Number,String],...or(),...Vr()},"VCardText"),al=xt()({name:"VCardText",props:m6(),setup(t,i){let{slots:e}=i;return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-card-text",t.class]),style:y.normalizeStyle([{"--v-card-text-opacity":t.opacity},t.style])},e)),{}}}),g6=Ze({appendAvatar:String,appendIcon:$t,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:$t,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...Xa(),...or(),...Vn(),...Ka(),...Ps(),...Lu(),...id(),...i0(),...Ai(),...Bu(),...Vr(),...cn(),...ga({variant:"elevated"})},"VCard"),ma=xt()({name:"VCard",directives:{vRipple:ha},props:g6(),setup(t,i){let{attrs:e,slots:s}=i;const{themeClasses:c}=Pn(t),{borderClasses:r}=Ts(t),{colorClasses:o,colorStyles:l,variantClasses:a}=dl(t),{densityClasses:n}=Wi(t),{dimensionStyles:u}=Ya(t),{elevationClasses:h}=bo(t),{loaderClasses:d}=pl(t),{locationStyles:f}=ad(t),{positionClasses:m}=a0(t),{roundedClasses:g}=Gi(t),p=Fu(t,e),v=y.shallowRef(void 0);return y.watch(()=>t.loading,(b,x)=>{v.value=!b&&typeof x=="string"?x:typeof b=="boolean"?void 0:b},{immediate:!0}),jt(()=>{const b=t.link!==!1&&p.isLink.value,x=!t.disabled&&t.link!==!1&&(t.link||p.isClickable.value),A=b?"a":t.tag,M=!!(s.title||t.title!=null),V=!!(s.subtitle||t.subtitle!=null),W=M||V,R=!!(s.append||t.appendAvatar||t.appendIcon),F=!!(s.prepend||t.prependAvatar||t.prependIcon),$=!!(s.image||t.image),z=W||F||R,D=!!(s.text||t.text!=null);return y.withDirectives(y.createVNode(A,y.mergeProps(p.linkProps,{class:["v-card",{"v-card--disabled":t.disabled,"v-card--flat":t.flat,"v-card--hover":t.hover&&!(t.disabled||t.flat),"v-card--link":x},c.value,r.value,o.value,n.value,h.value,d.value,m.value,g.value,a.value,t.class],style:[l.value,u.value,f.value,t.style],onClick:x&&p.navigate,tabindex:t.disabled?-1:void 0}),{default:()=>[$&&y.createElementVNode("div",{key:"image",class:"v-card__image"},[s.image?y.createVNode(qr,{key:"image-defaults",disabled:!t.image,defaults:{VImg:{cover:!0,src:t.image}}},s.image):y.createVNode(rg,{key:"image-img",cover:!0,src:t.image},null)]),y.createVNode(Ou,{name:"v-card",active:!!t.loading,color:v.value},{default:s.loader}),z&&y.createVNode(p6,{key:"item",prependAvatar:t.prependAvatar,prependIcon:t.prependIcon,title:t.title,subtitle:t.subtitle,appendAvatar:t.appendAvatar,appendIcon:t.appendIcon},{default:s.item,prepend:s.prepend,title:s.title,subtitle:s.subtitle,append:s.append}),D&&y.createVNode(al,{key:"text"},{default:()=>[s.text?.()??t.text]}),s.default?.(),s.actions&&y.createVNode(Tg,null,{default:s.actions}),fl(x,"v-card")]}),[[ha,x&&t.ripple]])}),{}}}),v6=Ze({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Pg=Symbol.for("vuetify:datatable:expanded");function b6(t){const i=y.toRef(()=>t.expandOnClick),e=cr(t,"expanded",t.expanded,l=>new Set(l),l=>[...l.values()]);function s(l,a){const n=new Set(e.value),u=y.toRaw(l.value);if(a)n.add(u);else{const h=[...e.value].find(d=>y.toRaw(d)===u);n.delete(h)}e.value=n}function c(l){const a=y.toRaw(l.value);return[...e.value].some(n=>y.toRaw(n)===a)}function r(l){s(l,!c(l))}const o={expand:s,expanded:e,expandOnClick:i,isExpanded:c,toggleExpand:r};return y.provide(Pg,o),o}function Mg(){const t=y.inject(Pg);if(!t)throw new Error("foo");return t}const y6=Ze({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),Ig=Symbol.for("vuetify:data-table-group");function w6(t){return{groupBy:cr(t,"groupBy")}}function x6(t){const{disableSort:i,groupBy:e,sortBy:s}=t,c=y.ref(new Set),r=y.computed(()=>e.value.map(u=>({...u,order:u.order??!1})).concat(i?.value?[]:s.value));function o(u){return c.value.has(u.id)}function l(u){const h=new Set(c.value);o(u)?h.delete(u.id):h.add(u.id),c.value=h}function a(u){function h(d){const f=[];for(const m of d.items)"type"in m&&m.type==="group"?f.push(...h(m)):f.push(m);return[...new Set(f)]}return h({items:u})}const n={sortByWithGroups:r,toggleGroup:l,opened:c,groupBy:e,extractRows:a,isGroupOpen:o};return y.provide(Ig,n),n}function Rg(){const t=y.inject(Ig);if(!t)throw new Error("Missing group!");return t}function _6(t,i){if(!t.length)return[];const e=new Map;for(const s of t){const c=Jo(s.raw,i);e.has(c)||e.set(c,[]),e.get(c).push(s)}return e}function Lg(t,i){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"root";if(!i.length)return[];const c=_6(t,i[0]),r=[],o=i.slice(1);return c.forEach((l,a)=>{const n=i[0],u=`${s}_${n}_${a}`;r.push({depth:e,id:u,key:n,value:a,items:o.length?Lg(l,o,e+1,u):l,type:"group"})}),r}function Og(t,i,e){const s=[];for(const c of t)"type"in c&&c.type==="group"?(c.value!=null&&s.push(c),(i.has(c.id)||c.value==null)&&(s.push(...Og(c.items,i,e)),e&&s.push({...c,type:"group-summary"}))):s.push(c);return s}function S6(t,i,e,s){return{flatItems:y.computed(()=>{if(!i.value.length)return t.value;const r=Lg(t.value,i.value.map(o=>o.key));return Og(r,e.value,y.toValue(s))})}}function k6(t){let{page:i,itemsPerPage:e,sortBy:s,groupBy:c,search:r}=t;const o=Jr("VDataTable"),l=()=>({page:i.value,itemsPerPage:e.value,sortBy:s.value,groupBy:c.value,search:r.value});let a=null;y.watch(l,n=>{Bn(a,n)||(a&&a.search!==n.search&&(i.value=1),o.emit("update:options",n),a=n)},{deep:!0,immediate:!0})}const C6=Ze({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10}},"DataTable-paginate"),Fg=Symbol.for("vuetify:data-table-pagination");function A6(t){const i=cr(t,"page",void 0,s=>Number(s??1)),e=cr(t,"itemsPerPage",void 0,s=>Number(s??10));return{page:i,itemsPerPage:e}}function N6(t){const{page:i,itemsPerPage:e,itemsLength:s}=t,c=y.computed(()=>e.value===-1?0:e.value*(i.value-1)),r=y.computed(()=>e.value===-1?s.value:Math.min(s.value,c.value+e.value)),o=y.computed(()=>e.value===-1||s.value===0?1:Math.ceil(s.value/e.value));y.watch([i,o],()=>{i.value>o.value&&(i.value=o.value)});function l(d){e.value=d,i.value=1}function a(){i.value=un(i.value+1,1,o.value)}function n(){i.value=un(i.value-1,1,o.value)}function u(d){i.value=un(d,1,o.value)}const h={page:i,itemsPerPage:e,startIndex:c,stopIndex:r,pageCount:o,itemsLength:s,nextPage:a,prevPage:n,setPage:u,setItemsPerPage:l};return y.provide(Fg,h),h}function E6(){const t=y.inject(Fg);if(!t)throw new Error("Missing pagination!");return t}function T6(t){const i=Jr("usePaginatedItems"),{items:e,startIndex:s,stopIndex:c,itemsPerPage:r}=t,o=y.computed(()=>r.value<=0?e.value:e.value.slice(s.value,c.value));return y.watch(o,l=>{i.emit("update:currentItems",l)},{immediate:!0}),{paginatedItems:o}}const P6={showSelectAll:!1,allSelected:()=>[],select:t=>{let{items:i,value:e}=t;return new Set(e?[i[0]?.value]:[])},selectAll:t=>{let{selected:i}=t;return i}},Bg={showSelectAll:!0,allSelected:t=>{let{currentPage:i}=t;return i},select:t=>{let{items:i,value:e,selected:s}=t;for(const c of i)e?s.add(c.value):s.delete(c.value);return s},selectAll:t=>{let{value:i,currentPage:e,selected:s}=t;return Bg.select({items:e,value:i,selected:s})}},M6={showSelectAll:!0,allSelected:t=>{let{allItems:i}=t;return i},select:t=>{let{items:i,value:e,selected:s}=t;for(const c of i)e?s.add(c.value):s.delete(c.value);return s},selectAll:t=>{let{value:i,allItems:e}=t;return new Set(i?e.map(s=>s.value):[])}},I6=Ze({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),jg=Symbol.for("vuetify:data-table-selection");function R6(t,i){let{allItems:e,currentPage:s}=i;const c=cr(t,"modelValue",t.modelValue,b=>{const x=t.valueComparator;return x?new Set(rn(b).map(A=>e.value.find(M=>x(A,M.value))?.value??A)):new Set(rn(b).map(A=>za(A)?e.value.find(M=>A===M.value)?.value??A:e.value.find(M=>Bn(A,M.value))?.value??A))},b=>[...b.values()]),r=y.computed(()=>e.value.filter(b=>b.selectable)),o=y.computed(()=>s.value.filter(b=>b.selectable)),l=y.computed(()=>{if(typeof t.selectStrategy=="object")return t.selectStrategy;switch(t.selectStrategy){case"single":return P6;case"all":return M6;default:return Bg}}),a=y.shallowRef(null);function n(b){return rn(b).every(x=>c.value.has(x.value))}function u(b){return rn(b).some(x=>c.value.has(x.value))}function h(b,x){const A=l.value.select({items:b,value:x,selected:new Set(c.value)});c.value=A}function d(b,x,A){const M=[];if(x=x??s.value.findIndex(V=>V.value===b.value),t.selectStrategy!=="single"&&A?.shiftKey&&a.value!==null){const[V,W]=[a.value,x].sort((R,F)=>R-F);M.push(...s.value.slice(V,W+1).filter(R=>R.selectable))}else M.push(b),a.value=x;h(M,!n([b]))}function f(b){const x=l.value.selectAll({value:b,allItems:r.value,currentPage:o.value,selected:new Set(c.value)});c.value=x}const m=y.computed(()=>c.value.size>0),g=y.computed(()=>{const b=l.value.allSelected({allItems:r.value,currentPage:o.value});return!!b.length&&n(b)}),p=y.toRef(()=>l.value.showSelectAll),v={toggleSelect:d,select:h,selectAll:f,isSelected:n,isSomeSelected:u,someSelected:m,allSelected:g,showSelectAll:p,lastSelectedIndex:a,selectStrategy:l};return y.provide(jg,v),v}function Xu(){const t=y.inject(jg);if(!t)throw new Error("Missing selection!");return t}const L6=Ze({initialSortOrder:{type:String,default:"asc",validator:t=>!t||["asc","desc"].includes(t)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),Dg=Symbol.for("vuetify:data-table-sort");function O6(t){const i=y.toRef(()=>t.initialSortOrder),e=cr(t,"sortBy"),s=y.toRef(()=>t.mustSort),c=y.toRef(()=>t.multiSort);return{initialSortOrder:i,sortBy:e,multiSort:c,mustSort:s}}function F6(t,i){if(!mu(t))return{active:!!t};const{key:e,mode:s,modifier:c}=t,r=c==="alt"&&i?.altKey||c==="shift"&&i?.shiftKey;return{active:!e||i?.ctrlKey||i?.metaKey||!1,mode:r?s==="append"?"prepend":"append":s}}function B6(t){const{initialSortOrder:i,sortBy:e,mustSort:s,multiSort:c,page:r}=t,o=(n,u)=>{if(n.key==null)return;let h=e.value.map(g=>({...g}))??[];const d=h.find(g=>g.key===n.key),f=i.value,m=i.value==="desc"?"asc":"desc";if(d)d.order===m?s.value&&h.length===1?d.order=i.value:h=h.filter(g=>g.key!==n.key):d.order=m;else{const{active:g,mode:p}=F6(c.value,u);g?p==="prepend"?h.unshift({key:n.key,order:f}):h.push({key:n.key,order:f}):h=[{key:n.key,order:f}]}e.value=h,r&&(r.value=1)};function l(n){return!!e.value.find(u=>u.key===n.key)}const a={sortBy:e,toggleSort:o,isSorted:l};return y.provide(Dg,a),a}function Vg(){const t=y.inject(Dg);if(!t)throw new Error("Missing sort!");return t}function j6(t,i,e,s){const c=vi();return{sortedItems:y.computed(()=>e.value.length?D6(i.value,e.value,c.current.value,{transform:s?.transform,sortFunctions:{...t.customKeySort,...s?.sortFunctions?.value},sortRawFunctions:s?.sortRawFunctions?.value}):i.value)}}function D6(t,i,e,s){const c=new Intl.Collator(e,{sensitivity:"accent",usage:"sort"});return t.map(o=>[o,s?.transform?s.transform(o):o]).sort((o,l)=>{for(let a=0;a<i.length;a++){let n=!1;const u=i[a].key,h=i[a].order??"asc";if(h===!1)continue;let d=Jo(o[1],u),f=Jo(l[1],u),m=o[0].raw,g=l[0].raw;if(h==="desc"&&([d,f]=[f,d],[m,g]=[g,m]),s?.sortRawFunctions?.[u]){const p=s.sortRawFunctions[u](m,g);if(p==null)continue;if(n=!0,p)return p}if(s?.sortFunctions?.[u]){const p=s.sortFunctions[u](d,f);if(p==null)continue;if(n=!0,p)return p}if(!n&&(d instanceof Date&&f instanceof Date&&(d=d.getTime(),f=f.getTime()),[d,f]=[d,f].map(p=>p!=null?p.toString().toLocaleLowerCase():p),d!==f))return Wl(d)&&Wl(f)?0:Wl(d)?-1:Wl(f)?1:!isNaN(d)&&!isNaN(f)?Number(d)-Number(f):c.compare(d,f)}return 0}).map(o=>{let[l]=o;return l})}const zg=Ze({color:String,prevIcon:{type:$t,default:"$prev"},nextIcon:{type:$t,default:"$next"},firstIcon:{type:$t,default:"$first"},lastIcon:{type:$t,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),Am=xt()({name:"VDataTableFooter",props:zg(),setup(t,i){let{slots:e}=i;const{t:s}=vi(),{page:c,pageCount:r,startIndex:o,stopIndex:l,itemsLength:a,itemsPerPage:n,setItemsPerPage:u}=E6(),h=y.computed(()=>t.itemsPerPageOptions.map(d=>typeof d=="number"?{value:d,title:d===-1?s("$vuetify.dataFooter.itemsPerPageAll"):String(d)}:{...d,title:isNaN(Number(d.title))?s(d.title):d.title}));return jt(()=>{const d=zf.filterProps(t);return y.createElementVNode("div",{class:"v-data-table-footer"},[e.prepend?.(),y.createElementVNode("div",{class:"v-data-table-footer__items-per-page"},[y.createElementVNode("span",{"aria-label":s(t.itemsPerPageText)},[s(t.itemsPerPageText)]),y.createVNode(ws,{items:h.value,itemColor:t.color,modelValue:n.value,"onUpdate:modelValue":f=>u(Number(f)),density:"compact",variant:"outlined",hideDetails:!0},null)]),y.createElementVNode("div",{class:"v-data-table-footer__info"},[y.createElementVNode("div",null,[s(t.pageText,a.value?o.value+1:0,l.value,a.value)])]),y.createElementVNode("div",{class:"v-data-table-footer__pagination"},[y.createVNode(zf,y.mergeProps({modelValue:c.value,"onUpdate:modelValue":f=>c.value=f,density:"comfortable",firstAriaLabel:t.firstPageLabel,lastAriaLabel:t.lastPageLabel,length:r.value,nextAriaLabel:t.nextPageLabel,previousAriaLabel:t.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:t.showCurrentPage?1:0,variant:"plain"},Dn(d,["color"])),null)])])}),{}}}),sl=D2({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},(t,i)=>{let{slots:e}=i;const s=t.tag??"td",c=typeof t.fixed=="string"?t.fixed:t.fixed?"start":"none";return y.createVNode(s,{class:y.normalizeClass(["v-data-table__td",{"v-data-table-column--fixed":c==="start","v-data-table-column--fixed-end":c==="end","v-data-table-column--last-fixed":t.lastFixed,"v-data-table-column--first-fixed-end":t.firstFixedEnd,"v-data-table-column--no-padding":t.noPadding,"v-data-table-column--nowrap":t.nowrap,"v-data-table-column--empty":t.empty},`v-data-table-column--align-${t.align}`]),style:{height:St(t.height),width:St(t.width),maxWidth:St(t.maxWidth),left:c==="start"?St(t.fixedOffset||null):void 0,right:c==="end"?St(t.fixedEndOffset||null):void 0,paddingInlineStart:t.indent?St(t.indent):void 0}},{default:()=>[e.default?.()]})}),V6=Ze({headers:Array},"DataTable-header"),Ug=Symbol.for("vuetify:data-table-headers"),$g={title:"",sortable:!1},z6={...$g,width:48};function U6(){const i=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).map(e=>({element:e,priority:0}));return{enqueue:(e,s)=>{let c=!1;for(let r=0;r<i.length;r++)if(i[r].priority>s){i.splice(r,0,{element:e,priority:s}),c=!0;break}c||i.push({element:e,priority:s})},size:()=>i.length,count:()=>{let e=0;if(!i.length)return 0;const s=Math.floor(i[0].priority);for(let c=0;c<i.length;c++)Math.floor(i[c].priority)===s&&(e+=1);return e},dequeue:()=>i.shift()}}function Uf(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(!t.children)i.push(t);else for(const e of t.children)Uf(e,i);return i}function qg(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;for(const e of t)e.key&&i.add(e.key),e.children&&qg(e.children,i);return i}function $6(t){if(t.key){if(t.key==="data-table-group")return $g;if(["data-table-expand","data-table-select"].includes(t.key))return z6}}function Nd(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return t.children?Math.max(i,...t.children.map(e=>Nd(e,i+1))):i}function q6(t){let i=!1;function e(r,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"none";if(r)if(l!=="none"&&(r.fixed=l),r.fixed===!0&&(r.fixed="start"),r.fixed===o)if(r.children)if(o==="start")for(let a=r.children.length-1;a>=0;a--)e(r.children[a],o,o);else for(let a=0;a<r.children.length;a++)e(r.children[a],o,o);else!i&&o==="start"?r.lastFixed=!0:!i&&o==="end"?r.firstFixedEnd=!0:isNaN(Number(r.width))?Iu(`Multiple fixed columns should have a static width (key: ${r.key})`):r.minWidth=Math.max(Number(r.width)||0,Number(r.minWidth)||0),i=!0;else if(r.children)if(o==="start")for(let a=r.children.length-1;a>=0;a--)e(r.children[a],o);else for(let a=0;a<r.children.length;a++)e(r.children[a],o);else i=!1}for(let r=t.length-1;r>=0;r--)e(t[r],"start");for(let r=0;r<t.length;r++)e(t[r],"end");let s=0;for(let r=0;r<t.length;r++)s=Hg(t[r],s);let c=0;for(let r=t.length-1;r>=0;r--)c=Wg(t[r],c)}function Hg(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!t)return i;if(t.children){t.fixedOffset=i;for(const e of t.children)i=Hg(e,i)}else t.fixed&&t.fixed!=="end"&&(t.fixedOffset=i,i+=parseFloat(t.width||"0")||0);return i}function Wg(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!t)return i;if(t.children){t.fixedEndOffset=i;for(const e of t.children)i=Wg(e,i)}else t.fixed==="end"&&(t.fixedEndOffset=i,i+=parseFloat(t.width||"0")||0);return i}function H6(t,i){const e=[];let s=0;const c=U6(t);for(;c.size()>0;){let o=c.count();const l=[];let a=1;for(;o>0;){const{element:n,priority:u}=c.dequeue(),h=i-s-Nd(n);if(l.push({...n,rowspan:h??1,colspan:n.children?Uf(n).length:1}),n.children)for(const d of n.children){const f=u%1+a/Math.pow(10,s+2);c.enqueue(d,s+h+f)}a+=1,o-=1}s+=1,e.push(l)}return{columns:t.map(o=>Uf(o)).flat(),headers:e}}function Gg(t){const i=[];for(const e of t){const s={...$6(e),...e},c=s.key??(typeof s.value=="string"?s.value:null),r=s.value??c??null,o={...s,key:c,value:r,sortable:s.sortable??(s.key!=null||!!s.sort),children:s.children?Gg(s.children):void 0};i.push(o)}return i}function W6(t,i){const e=y.ref([]),s=y.ref([]),c=y.ref({}),r=y.ref({}),o=y.ref({});y.watchEffect(()=>{const n=(t.headers||Object.keys(t.items[0]??{}).map(g=>({key:g,title:y.capitalize(g)}))).slice(),u=qg(n);i?.groupBy?.value.length&&!u.has("data-table-group")&&n.unshift({key:"data-table-group",title:"Group"}),i?.showSelect?.value&&!u.has("data-table-select")&&n.unshift({key:"data-table-select"}),i?.showExpand?.value&&!u.has("data-table-expand")&&n.push({key:"data-table-expand"});const h=Gg(n);q6(h);const d=Math.max(...h.map(g=>Nd(g)))+1,f=H6(h,d);e.value=f.headers,s.value=f.columns;const m=f.headers.flat(1);for(const g of m)g.key&&(g.sortable&&(g.sort&&(c.value[g.key]=g.sort),g.sortRaw&&(r.value[g.key]=g.sortRaw)),g.filter&&(o.value[g.key]=g.filter))});const l={headers:e,columns:s,sortFunctions:c,sortRawFunctions:r,filterFunctions:o};return y.provide(Ug,l),l}function Ku(){const t=y.inject(Ug);if(!t)throw new Error("Missing headers!");return t}const Xg=Ze({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,sortAscIcon:{type:$t,default:"$sortAsc"},sortDescIcon:{type:$t,default:"$sortDesc"},headerProps:{type:Object},sticky:Boolean,...Vn(),...Du(),...Lu()},"VDataTableHeaders"),Nm=xt()({name:"VDataTableHeaders",props:Xg(),setup(t,i){let{slots:e}=i;const{t:s}=vi(),{toggleSort:c,sortBy:r,isSorted:o}=Vg(),{someSelected:l,allSelected:a,selectAll:n,showSelectAll:u}=Xu(),{columns:h,headers:d}=Ku(),{loaderClasses:f}=pl(t);function m(F,$){if(!(t.sticky||t.fixedHeader)&&!F.fixed)return;const z=typeof F.fixed=="string"?F.fixed:F.fixed?"start":"none";return{position:"sticky",left:z==="start"?St(F.fixedOffset):void 0,right:z==="end"?St(F.fixedEndOffset):void 0,top:t.sticky||t.fixedHeader?`calc(var(--v-table-header-height) * ${$})`:void 0}}function g(F,$){F.key==="Enter"&&!t.disableSort&&c($,F)}function p(F){const $=r.value.find(z=>z.key===F.key);return $?$.order==="asc"?t.sortAscIcon:t.sortDescIcon:t.sortAscIcon}const{backgroundColorClasses:v,backgroundColorStyles:b}=fa(()=>t.color),{displayClasses:x,mobile:A}=Za(t),M=y.computed(()=>({headers:d.value,columns:h.value,toggleSort:c,isSorted:o,sortBy:r.value,someSelected:l.value,allSelected:a.value,selectAll:n,getSortIcon:p})),V=y.computed(()=>["v-data-table__th",{"v-data-table__th--sticky":t.sticky||t.fixedHeader},x.value,f.value]),W=F=>{let{column:$,x:z,y:D}=F;const N=$.key==="data-table-select"||$.key==="data-table-expand",E=$.key==="data-table-group"&&$.width===0&&!$.title,C=y.mergeProps(t.headerProps??{},$.headerProps??{});return y.createVNode(sl,y.mergeProps({tag:"th",align:$.align,class:[{"v-data-table__th--sortable":$.sortable&&!t.disableSort,"v-data-table__th--sorted":o($),"v-data-table__th--fixed":$.fixed},...V.value],style:{width:St($.width),minWidth:St($.minWidth),maxWidth:St($.maxWidth),...m($,D)},colspan:$.colspan,rowspan:$.rowspan,fixed:$.fixed,nowrap:$.nowrap,lastFixed:$.lastFixed,firstFixedEnd:$.firstFixedEnd,noPadding:N,empty:E,tabindex:$.sortable?0:void 0,onClick:$.sortable?w=>c($,w):void 0,onKeydown:$.sortable?w=>g(w,$):void 0},C),{default:()=>{const w=`header.${$.key}`,S={column:$,selectAll:n,isSorted:o,toggleSort:c,sortBy:r.value,someSelected:l.value,allSelected:a.value,getSortIcon:p};return e[w]?e[w](S):E?"":$.key==="data-table-select"?e["header.data-table-select"]?.(S)??(u.value&&y.createVNode(Ha,{color:t.color,density:t.density,modelValue:a.value,indeterminate:l.value&&!a.value,"onUpdate:modelValue":n},null)):y.createElementVNode("div",{class:"v-data-table-header__content"},[y.createElementVNode("span",null,[$.title]),$.sortable&&!t.disableSort&&y.createVNode(nr,{key:"icon",class:"v-data-table-header__sort-icon",icon:p($)},null),t.multiSort&&o($)&&y.createElementVNode("div",{key:"badge",class:y.normalizeClass(["v-data-table-header__sort-badge",...v.value]),style:y.normalizeStyle(b.value)},[r.value.findIndex(_=>_.key===$.key)+1])])}})},R=()=>{const F=y.computed(()=>h.value.filter($=>$?.sortable&&!t.disableSort));return y.createVNode(sl,y.mergeProps({tag:"th",class:[...V.value],colspan:d.value.length+1},t.headerProps),{default:()=>[y.createElementVNode("div",{class:"v-data-table-header__content"},[y.createVNode(ws,{chips:!0,color:t.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:F.value,label:s("$vuetify.dataTable.sortBy"),multiple:t.multiSort,variant:"underlined","onClick:clear":()=>r.value=[],"onClick:append":()=>n(!a.value)},{append:()=>y.createVNode(Ha,{color:t.color,density:"compact",modelValue:a.value,indeterminate:l.value&&!a.value,"onUpdate:modelValue":n},null),chip:$=>y.createVNode(Ns,{onClick:$.item.raw?.sortable?()=>c($.item.raw):void 0,onMousedown:z=>{z.preventDefault(),z.stopPropagation()}},{default:()=>[$.item.title,y.createVNode(nr,{class:y.normalizeClass(["v-data-table__td-sort-icon",o($.item.raw)&&"v-data-table__td-sort-icon-active"]),icon:p($.item.raw),size:"small"},null)]})})])]})};jt(()=>A.value?y.createElementVNode("tr",null,[y.createVNode(R,null,null)]):y.createElementVNode(y.Fragment,null,[e.headers?e.headers(M.value):d.value.map((F,$)=>y.createElementVNode("tr",null,[F.map((z,D)=>y.createVNode(W,{column:z,x:D,y:$},null))])),t.loading&&y.createElementVNode("tr",{class:"v-data-table-progress"},[y.createElementVNode("th",{colspan:h.value.length},[y.createVNode(Ou,{name:"v-data-table-progress",absolute:!0,active:!0,color:typeof t.loading=="boolean"||t.loading==="true"?t.color:t.loading,indeterminate:!0},{default:e.loader})])])]))}}),Kg=Ze({item:{type:Object,required:!0},groupCollapseIcon:{type:$t,default:"$tableGroupCollapse"},groupExpandIcon:{type:$t,default:"$tableGroupExpand"},...Vn()},"VDataTableGroupHeaderRow"),G6=xt()({name:"VDataTableGroupHeaderRow",props:Kg(),setup(t,i){let{slots:e}=i;const{isGroupOpen:s,toggleGroup:c,extractRows:r}=Rg(),{isSelected:o,isSomeSelected:l,select:a}=Xu(),{columns:n}=Ku(),u=y.computed(()=>r([t.item])),h=y.toRef(()=>n.value.length-(n.value.some(d=>d.key==="data-table-select")?1:0));return()=>y.createElementVNode("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":t.item.depth}},[n.value.map(d=>{if(d.key==="data-table-group"){const f=s(t.item)?t.groupCollapseIcon:t.groupExpandIcon,m=()=>c(t.item);return e["data-table-group"]?.({item:t.item,count:u.value.length,props:{icon:f,onClick:m}})??y.createVNode(sl,{class:"v-data-table-group-header-row__column",colspan:h.value},{default:()=>[y.createVNode(Dr,{size:"small",variant:"text",icon:f,onClick:m},null),y.createElementVNode("span",null,[t.item.value]),y.createElementVNode("span",null,[y.createTextVNode("("),u.value.length,y.createTextVNode(")")])]})}else if(d.key==="data-table-select"){const f=o(u.value),m=l(u.value)&&!f,g=p=>a(u.value,p);return e["data-table-select"]?.({props:{modelValue:f,indeterminate:m,"onUpdate:modelValue":g}})??y.createVNode(sl,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[y.createVNode(Ha,{density:t.density,modelValue:f,indeterminate:m,"onUpdate:modelValue":g},null)]})}return""})])}}),Yg=Ze({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:$t,default:"$collapse"},expandIcon:{type:$t,default:"$expand"},onClick:vn(),onContextmenu:vn(),onDblclick:vn(),...Vn(),...Du()},"VDataTableRow"),X6=xt()({name:"VDataTableRow",props:Yg(),setup(t,i){let{slots:e}=i;const{displayClasses:s,mobile:c}=Za(t,"v-data-table__tr"),{isSelected:r,toggleSelect:o,someSelected:l,allSelected:a,selectAll:n}=Xu(),{isExpanded:u,toggleExpand:h}=Mg(),{toggleSort:d,sortBy:f,isSorted:m}=Vg(),{columns:g}=Ku();jt(()=>y.createElementVNode("tr",{class:y.normalizeClass(["v-data-table__tr",{"v-data-table__tr--clickable":!!(t.onClick||t.onContextmenu||t.onDblclick)},s.value]),onClick:t.onClick,onContextmenu:t.onContextmenu,onDblclick:t.onDblclick},[t.item&&g.value.map((p,v)=>{const b=t.item,x=`item.${p.key}`,A=`header.${p.key}`,M={index:t.index,item:b.raw,internalItem:b,value:Jo(b.columns,p.key),column:p,isSelected:r,toggleSelect:o,isExpanded:u,toggleExpand:h},V={column:p,selectAll:n,isSorted:m,toggleSort:d,sortBy:f.value,someSelected:l.value,allSelected:a.value,getSortIcon:()=>""},W=typeof t.cellProps=="function"?t.cellProps({index:M.index,item:M.item,internalItem:M.internalItem,value:M.value,column:p}):t.cellProps,R=typeof p.cellProps=="function"?p.cellProps({index:M.index,item:M.item,internalItem:M.internalItem,value:M.value}):p.cellProps,F=p.key==="data-table-select"||p.key==="data-table-expand",$=p.key==="data-table-group"&&p.width===0&&!p.title;return y.createVNode(sl,y.mergeProps({align:p.align,indent:p.intent,class:{"v-data-table__td--expanded-row":p.key==="data-table-expand","v-data-table__td--select-row":p.key==="data-table-select"},fixed:p.fixed,fixedOffset:p.fixedOffset,fixedEndOffset:p.fixedEndOffset,lastFixed:p.lastFixed,firstFixedEnd:p.firstFixedEnd,maxWidth:c.value?void 0:p.maxWidth,noPadding:F,empty:$,nowrap:p.nowrap,width:c.value?void 0:p.width},W,R),{default:()=>{if(p.key==="data-table-select")return e["item.data-table-select"]?.({...M,props:{color:t.color,disabled:!b.selectable,modelValue:r([b]),onClick:y.withModifiers(()=>o(b),["stop"])}})??y.createVNode(Ha,{color:t.color,disabled:!b.selectable,density:t.density,modelValue:r([b]),onClick:y.withModifiers(D=>o(b,t.index,D),["stop"])},null);if(p.key==="data-table-expand")return e["item.data-table-expand"]?.({...M,props:{icon:u(b)?t.collapseIcon:t.expandIcon,size:"small",variant:"text",onClick:y.withModifiers(()=>h(b),["stop"])}})??y.createVNode(Dr,{icon:u(b)?t.collapseIcon:t.expandIcon,size:"small",variant:"text",onClick:y.withModifiers(()=>h(b),["stop"])},null);if(e[x]&&!c.value)return e[x](M);const z=y.toDisplayString(M.value);return c.value?y.createElementVNode(y.Fragment,null,[y.createElementVNode("div",{class:"v-data-table__td-title"},[e[A]?.(V)??p.title]),y.createElementVNode("div",{class:"v-data-table__td-value"},[e[x]?.(M)??z])]):z}})})]))}}),Zg=Ze({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],..._s(Yg(),["collapseIcon","expandIcon","density"]),..._s(Kg(),["groupCollapseIcon","groupExpandIcon","density"]),...Du()},"VDataTableRows"),Em=xt()({name:"VDataTableRows",inheritAttrs:!1,props:Zg(),setup(t,i){let{attrs:e,slots:s}=i;const{columns:c}=Ku(),{expandOnClick:r,toggleExpand:o,isExpanded:l}=Mg(),{isSelected:a,toggleSelect:n}=Xu(),{toggleGroup:u,isGroupOpen:h}=Rg(),{t:d}=vi(),{mobile:f}=Za(t);return jt(()=>{const m=_s(t,["groupCollapseIcon","groupExpandIcon","density"]);return t.loading&&(!t.items.length||s.loading)?y.createElementVNode("tr",{class:"v-data-table-rows-loading",key:"loading"},[y.createElementVNode("td",{colspan:c.value.length},[s.loading?.()??d(t.loadingText)])]):!t.loading&&!t.items.length&&!t.hideNoData?y.createElementVNode("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[y.createElementVNode("td",{colspan:c.value.length},[s["no-data"]?.()??d(t.noDataText)])]):y.createElementVNode(y.Fragment,null,[t.items.map((g,p)=>{if(g.type==="group"){const x={index:p,item:g,columns:c.value,isExpanded:l,toggleExpand:o,isSelected:a,toggleSelect:n,toggleGroup:u,isGroupOpen:h};return s["group-header"]?s["group-header"](x):y.createVNode(G6,y.mergeProps({key:`group-header_${g.id}`,item:g},Bh(e,":groupHeader",()=>x),m),s)}if(g.type==="group-summary"){const x={index:p,item:g,columns:c.value,toggleGroup:u};return s["group-summary"]?.(x)??""}const v={index:p,item:g.raw,internalItem:g,columns:c.value,isExpanded:l,toggleExpand:o,isSelected:a,toggleSelect:n},b={...v,props:y.mergeProps({key:`item_${g.key??g.index}`,onClick:r.value?()=>{o(g)}:void 0,index:p,item:g,color:t.color,cellProps:t.cellProps,collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,density:t.density,mobile:f.value},Bh(e,":row",()=>v),typeof t.rowProps=="function"?t.rowProps({item:v.item,index:v.index,internalItem:v.internalItem}):t.rowProps)};return y.createElementVNode(y.Fragment,{key:b.props.key},[s.item?s.item(b):y.createVNode(X6,b.props,s),l(g)&&s["expanded-row"]?.(v)])})])}),{}}}),Jg=Ze({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:t=>["even","odd"].includes(t)},...or(),...Vn(),...Vr(),...cn()},"VTable"),Tm=xt()({name:"VTable",props:Jg(),setup(t,i){let{slots:e,emit:s}=i;const{themeClasses:c}=Pn(t),{densityClasses:r}=Wi(t);return jt(()=>y.createVNode(t.tag,{class:y.normalizeClass(["v-table",{"v-table--fixed-height":!!t.height,"v-table--fixed-header":t.fixedHeader,"v-table--fixed-footer":t.fixedFooter,"v-table--has-top":!!e.top,"v-table--has-bottom":!!e.bottom,"v-table--hover":t.hover,"v-table--striped-even":t.striped==="even","v-table--striped-odd":t.striped==="odd"},c.value,r.value,t.class]),style:y.normalizeStyle(t.style)},{default:()=>[e.top?.(),e.default?y.createElementVNode("div",{class:"v-table__wrapper",style:{height:St(t.height)}},[y.createElementVNode("table",null,[e.default()])]):e.wrapper?.(),e.bottom?.()]})),{}}}),K6=Ze({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function Y6(t,i,e,s){const c=t.returnObject?i:En(i,t.itemValue),r=En(i,t.itemSelectable,!0),o=s.reduce((l,a)=>(a.key!=null&&(l[a.key]=En(i,a.value)),l),{});return{type:"item",key:t.returnObject?En(i,t.itemValue):c,index:e,value:c,selectable:r,columns:o,raw:i}}function Z6(t,i,e){return i.map((s,c)=>Y6(t,s,c,e))}function J6(t,i){return{items:y.computed(()=>Z6(t,t.items,i.value))}}const Q6=Ze({...Zg(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...v6(),...y6(),...V6(),...K6(),...I6(),...L6(),...Dn(Xg(),["multiSort"]),...Jg()},"DataTable"),e8=Ze({...C6(),...Q6(),...Ag(),...zg()},"VDataTable"),t8=xt()({name:"VDataTable",props:e8(),emits:{"update:modelValue":t=>!0,"update:page":t=>!0,"update:itemsPerPage":t=>!0,"update:sortBy":t=>!0,"update:options":t=>!0,"update:groupBy":t=>!0,"update:expanded":t=>!0,"update:currentItems":t=>!0},setup(t,i){let{attrs:e,slots:s}=i;const{groupBy:c}=w6(t),{initialSortOrder:r,sortBy:o,multiSort:l,mustSort:a}=O6(t),{page:n,itemsPerPage:u}=A6(t),{disableSort:h}=y.toRefs(t),{columns:d,headers:f,sortFunctions:m,sortRawFunctions:g,filterFunctions:p}=W6(t,{groupBy:c,showSelect:y.toRef(()=>t.showSelect),showExpand:y.toRef(()=>t.showExpand)}),{items:v}=J6(t,d),b=y.toRef(()=>t.search),{filteredItems:x}=Ng(t,v,b,{transform:L=>L.columns,customKeyFilter:p}),{toggleSort:A}=B6({initialSortOrder:r,sortBy:o,multiSort:l,mustSort:a,page:n}),{sortByWithGroups:M,opened:V,extractRows:W,isGroupOpen:R,toggleGroup:F}=x6({groupBy:c,sortBy:o,disableSort:h}),{sortedItems:$}=j6(t,x,M,{transform:L=>({...L.raw,...L.columns}),sortFunctions:m,sortRawFunctions:g}),{flatItems:z}=S6($,c,V,()=>!!s["group-summary"]),D=y.computed(()=>z.value.length),{startIndex:N,stopIndex:E,pageCount:C,setItemsPerPage:w}=N6({page:n,itemsPerPage:u,itemsLength:D}),{paginatedItems:S}=T6({items:z,startIndex:N,stopIndex:E,itemsPerPage:u}),_=y.computed(()=>W(S.value)),{isSelected:k,select:T,selectAll:j,toggleSelect:P,someSelected:U,allSelected:q}=R6(t,{allItems:v,currentPage:_}),{isExpanded:Z,toggleExpand:B}=b6(t);k6({page:n,itemsPerPage:u,sortBy:o,groupBy:c,search:b}),da({VDataTableRows:{hideNoData:y.toRef(()=>t.hideNoData),noDataText:y.toRef(()=>t.noDataText),loading:y.toRef(()=>t.loading),loadingText:y.toRef(()=>t.loadingText)}});const X=y.computed(()=>({page:n.value,itemsPerPage:u.value,sortBy:o.value,pageCount:C.value,toggleSort:A,setItemsPerPage:w,someSelected:U.value,allSelected:q.value,isSelected:k,select:T,selectAll:j,toggleSelect:P,isExpanded:Z,toggleExpand:B,isGroupOpen:R,toggleGroup:F,items:_.value.map(L=>L.raw),internalItems:_.value,groupedItems:S.value,columns:d.value,headers:f.value}));return jt(()=>{const L=Am.filterProps(t),I=Nm.filterProps(Dn(t,["multiSort"])),G=Em.filterProps(t),ee=Tm.filterProps(t);return y.createVNode(Tm,y.mergeProps({class:["v-data-table",{"v-data-table--show-select":t.showSelect,"v-data-table--loading":t.loading},t.class],style:t.style},ee,{fixedHeader:t.fixedHeader||t.sticky}),{top:()=>s.top?.(X.value),default:()=>s.default?s.default(X.value):y.createElementVNode(y.Fragment,null,[s.colgroup?.(X.value),!t.hideDefaultHeader&&y.createElementVNode("thead",{key:"thead"},[y.createVNode(Nm,y.mergeProps(I,{multiSort:!!t.multiSort}),s)]),s.thead?.(X.value),!t.hideDefaultBody&&y.createElementVNode("tbody",null,[s["body.prepend"]?.(X.value),s.body?s.body(X.value):y.createVNode(Em,y.mergeProps(e,G,{items:S.value}),s),s["body.append"]?.(X.value)]),s.tbody?.(X.value),s.tfoot?.(X.value)]),bottom:()=>s.bottom?s.bottom(X.value):!t.hideDefaultFooter&&y.createElementVNode(y.Fragment,null,[y.createVNode(Ui,null,null),y.createVNode(Am,L,{prepend:s["footer.prepend"]})])})}),{}}});function r8(){function t(e){return[...e.dataTransfer?.items??[]].filter(c=>c.kind==="file").map(c=>c.webkitGetAsEntry()).filter(Boolean).length>0||[...e.dataTransfer?.files??[]].length>0}async function i(e){const s=[],c=[...e.dataTransfer?.items??[]].filter(r=>r.kind==="file").map(r=>r.webkitGetAsEntry()).filter(Boolean);if(c.length)for(const r of c){const o=await Qg(r,ev(".",r));s.push(...o.map(l=>l.file))}else s.push(...e.dataTransfer?.files??[]);return s}return{handleDrop:i,hasFilesOrFolders:t}}function Qg(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return new Promise((e,s)=>{t.isFile?t.file(r=>e([{file:r,path:i}]),s):t.isDirectory&&t.createReader().readEntries(async r=>{const o=[];for(const l of r)o.push(...await Qg(l,ev(i,l)));e(o)})})}function ev(t,i){return i.isDirectory?`${t}/${i.name}`:t}const n8=Ze({filterByType:String},"file-accept");function i8(t){const i=y.computed(()=>t.filterByType?a8(t.filterByType):null);function e(s){if(i.value){const c=s.filter(i.value);return{accepted:c,rejected:s.filter(r=>!c.includes(r))}}return{accepted:s,rejected:[]}}return{filterAccepted:e}}function a8(t){const i=t.split(",").map(r=>r.trim().toLowerCase()),e=i.filter(r=>r.startsWith(".")),s=i.filter(r=>r.endsWith("/*")),c=i.filter(r=>!e.includes(r)&&!s.includes(r));return r=>{const o=r.name.split(".").at(-1)?.toLowerCase()??"",l=r.type.split("/").at(0)?.toLowerCase()??"";return c.includes(r.type)||e.includes(`.${o}`)||s.includes(`${l}/*`)}}const s8=Ze({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:t=>typeof t=="boolean"||[1e3,1024].includes(Number(t))},truncateLength:{type:[Number,String],default:22},...yl({prependIcon:"$file"}),modelValue:{type:[Array,Object],default:t=>t.multiple?[]:null,validator:t=>rn(t).every(i=>i!=null&&typeof i=="object")},...n8(),...Wu({clearable:!0})},"VFileInput"),o8=xt()({name:"VFileInput",inheritAttrs:!1,props:s8(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0,rejected:t=>!0},setup(t,i){let{attrs:e,emit:s,slots:c}=i;const{t:r}=vi(),{filterAccepted:o}=i8(t),l=cr(t,"modelValue",t.modelValue,k=>rn(k),k=>!t.multiple&&Array.isArray(k)?k[0]:k),{isFocused:a,focus:n,blur:u}=bl(t),h=y.computed(()=>typeof t.showSize!="boolean"?t.showSize:void 0),d=y.computed(()=>(l.value??[]).reduce((k,T)=>{let{size:j=0}=T;return k+j},0)),f=y.computed(()=>yh(d.value,h.value)),m=y.computed(()=>(l.value??[]).map(k=>{const{name:T="",size:j=0}=k,P=N(T);return t.showSize?`${P} (${yh(j,h.value)})`:P})),g=y.computed(()=>{const k=l.value?.length??0;return t.showSize?r(t.counterSizeString,k,f.value):r(t.counterString,k)}),p=y.ref(),v=y.ref(),b=y.ref(),x=y.toRef(()=>a.value||t.active),A=y.computed(()=>["plain","underlined"].includes(t.variant)),M=y.shallowRef(!1),{handleDrop:V,hasFilesOrFolders:W}=r8();function R(){b.value!==document.activeElement&&b.value?.focus(),a.value||n()}function F(k){b.value?.click()}function $(k){s("mousedown:control",k)}function z(k){b.value?.click(),s("click:control",k)}function D(k){k.stopPropagation(),R(),y.nextTick(()=>{l.value=[],ul(t["onClick:clear"],k)})}function N(k){if(k.length<Number(t.truncateLength))return k;const T=Math.floor((Number(t.truncateLength)-1)/2);return`${k.slice(0,T)}…${k.slice(k.length-T)}`}function E(k){k.preventDefault(),k.stopImmediatePropagation(),M.value=!0}function C(k){k.preventDefault(),M.value=!1}async function w(k){if(k.preventDefault(),k.stopImmediatePropagation(),M.value=!1,!b.value||!W(k))return;const T=await V(k);_(T)}function S(k){if(!(!k.target||k.repack))if(t.filterByType)_([...k.target.files]);else{const T=k.target;l.value=[...T.files??[]]}}function _(k){const T=new DataTransfer,{accepted:j,rejected:P}=o(k);P.length&&s("rejected",P);for(const q of j)T.items.add(q);b.value.files=T.files,l.value=[...T.files];const U=new Event("change",{bubbles:!0});U.repack=!0,b.value.dispatchEvent(U)}return y.watch(l,k=>{(!Array.isArray(k)||!k.length)&&b.value&&(b.value.value="")}),jt(()=>{const k=!!(c.counter||t.counter),T=!!(k||c.details),[j,P]=ll(e),{modelValue:U,...q}=Wa.filterProps(t),Z={...go.filterProps(t),"onClick:clear":D},B=e.webkitdirectory!==void 0&&e.webkitdirectory!==!1,X=e.accept?String(e.accept):void 0,L=B?void 0:t.filterByType??X;return y.createVNode(Wa,y.mergeProps({ref:p,modelValue:t.multiple?l.value:l.value[0],class:["v-file-input",{"v-file-input--chips":!!t.chips,"v-file-input--dragging":M.value,"v-file-input--hide":t.hideInput,"v-input--plain-underlined":A.value},t.class],style:t.style,"onClick:prepend":F},j,q,{centerAffix:!A.value,focused:a.value}),{...c,default:I=>{let{id:G,isDisabled:ee,isDirty:se,isReadonly:te,isValid:re,hasDetails:J}=I;return y.createVNode(go,y.mergeProps({ref:v,prependIcon:t.prependIcon,onMousedown:$,onClick:z,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},Z,{id:G.value,active:x.value||se.value,dirty:se.value||t.dirty,disabled:ee.value,focused:a.value,details:J.value,error:re.value===!1,onDragover:E,onDrop:w}),{...c,default:de=>{let{props:{class:ne,...fe},controlRef:ue}=de;return y.createElementVNode(y.Fragment,null,[y.createElementVNode("input",y.mergeProps({ref:ye=>b.value=ue.value=ye,type:"file",accept:L,readonly:te.value,disabled:ee.value,multiple:t.multiple,name:t.name,onClick:ye=>{ye.stopPropagation(),te.value&&ye.preventDefault(),R()},onChange:S,onDragleave:C,onFocus:R,onBlur:u},fe,P),null),y.createElementVNode("div",{class:y.normalizeClass(ne)},[!!l.value?.length&&!t.hideInput&&(c.selection?c.selection({fileNames:m.value,totalBytes:d.value,totalBytesReadable:f.value}):t.chips?m.value.map(ye=>y.createVNode(Ns,{key:ye,size:"small",text:ye},null)):m.value.join(", "))])])}})},details:T?I=>y.createElementVNode(y.Fragment,null,[c.details?.(I),k&&y.createElementVNode(y.Fragment,null,[y.createElementVNode("span",null,null),y.createVNode(Sd,{active:!!l.value?.length,value:g.value,disabled:t.disabled},c.counter)])]):void 0})}),Ni({},p,v,b)}}),l8=Ze({...or(),...I4()},"VForm"),u8=xt()({name:"VForm",props:l8(),emits:{"update:modelValue":t=>!0,submit:t=>!0},setup(t,i){let{slots:e,emit:s}=i;const c=R4(t),r=y.ref();function o(a){a.preventDefault(),c.reset()}function l(a){const n=a,u=c.validate();n.then=u.then.bind(u),n.catch=u.catch.bind(u),n.finally=u.finally.bind(u),s("submit",n),n.defaultPrevented||u.then(h=>{let{valid:d}=h;d&&r.value?.submit()}),n.preventDefault()}return jt(()=>y.createElementVNode("form",{ref:r,class:y.normalizeClass(["v-form",t.class]),style:y.normalizeStyle(t.style),novalidate:!0,onReset:o,onSubmit:l},[e.default?.(c)])),Ni(c,r)}}),c8=Ze({disabled:Boolean,modelValue:{type:Boolean,default:null},...g0()},"VHover"),f8=xt()({name:"VHover",props:c8(),emits:{"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const s=cr(t,"modelValue"),{runOpenDelay:c,runCloseDelay:r}=v0(t,o=>!t.disabled&&(s.value=o));return()=>e.default?.({isHovering:s.value,props:{onMouseenter:c,onMouseleave:r}})}}),d8=50,h8=500;function p8(t){let{toggleUpDown:i}=t,e=-1,s=-1;y.onScopeDispose(r);function c(l){r(),o(l),window.addEventListener("pointerup",r),document.addEventListener("blur",r),e=window.setTimeout(()=>{s=window.setInterval(()=>o(l),d8)},h8)}function r(){window.clearTimeout(e),window.clearInterval(s),window.removeEventListener("pointerup",r),document.removeEventListener("blur",r)}function o(l){i(l==="up")}return{holdStart:c,holdStop:r}}const m8=Ze({controlVariant:{type:String,default:"default"},inset:Boolean,hideInput:Boolean,modelValue:{type:Number,default:null},min:{type:Number,default:Number.MIN_SAFE_INTEGER},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},precision:{type:Number,default:0},minFractionDigits:{type:Number,default:null},decimalSeparator:{type:String,validator:t=>!t||t.length===1},...Dn(Gu(),["modelValue","validationValue"])},"VNumberInput"),g8=xt()({name:"VNumberInput",props:{...m8()},emits:{"update:focused":t=>!0,"update:modelValue":t=>!0},setup(t,i){let{slots:e}=i;const s=y.ref(),{holdStart:c,holdStop:r}=p8({toggleUpDown:z}),o=Hu(t),l=y.computed(()=>o.isDisabled.value||o.isReadonly.value),a=y.shallowRef(t.focused),{decimalSeparator:n}=vi(),u=y.computed(()=>t.decimalSeparator?.[0]||n.value);function h(U){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.precision,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const B=q==null?String(U):U.toFixed(q);if(a.value&&Z)return Number(B).toString().replace(".",u.value);if(t.minFractionDigits===null||q!==null&&q<t.minFractionDigits)return B.replace(".",u.value);let[X,L]=B.split(".");return L=(L??"").padEnd(t.minFractionDigits,"0").replace(new RegExp(`(?<=\\d{${t.minFractionDigits}})0+$`,"g"),""),[X,L].filter(Boolean).join(u.value)}const d=cr(t,"modelValue",null,U=>U??null,U=>U==null?U??null:un(Number(U),t.min,t.max)),f=y.shallowRef(null),m=y.shallowRef(null);y.watch(d,U=>{a.value&&!l.value&&Number(f.value?.replace(u.value,"."))===U||(U==null?(f.value=null,m.value=null):isNaN(U)||(f.value=h(U),m.value=Number(f.value.replace(u.value,"."))))},{immediate:!0});const g=y.computed({get:()=>f.value,set(U){if(U===null||U===""){d.value=null,f.value=null,m.value=null;return}const q=Number(U.replace(u.value,"."));isNaN(q)||(f.value=U,m.value=q,q<=t.max&&q>=t.min&&(d.value=q))}}),p=y.computed(()=>{if(m.value===null)return!1;const U=Number(f.value);return U!==un(U,t.min,t.max)}),v=y.computed(()=>l.value?!1:(d.value??0)+t.step<=t.max),b=y.computed(()=>l.value?!1:(d.value??0)-t.step>=t.min),x=y.computed(()=>t.hideInput?"stacked":t.controlVariant),A=y.toRef(()=>x.value==="split"?"$plus":"$collapse"),M=y.toRef(()=>x.value==="split"?"$minus":"$expand"),V=y.toRef(()=>x.value==="split"?"default":"small"),W=y.toRef(()=>x.value==="stacked"?"auto":"100%"),R={props:{onClick:E,onPointerup:C,onPointerdown:w,onPointercancel:C}},F={props:{onClick:E,onPointerup:C,onPointerdown:S,onPointercancel:C}};y.watch(()=>t.precision,()=>k()),y.watch(()=>t.minFractionDigits,()=>k()),y.onMounted(()=>{_()});function $(U){if(U==null)return 0;const q=U.toString(),Z=q.indexOf(".");return~Z?q.length-Z:0}function z(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(l.value)return;if(d.value==null){g.value=h(un(0,t.min,t.max));return}let q=Math.max($(d.value),$(t.step));t.precision!=null&&(q=Math.max(q,t.precision)),U?v.value&&(g.value=h(d.value+t.step,q)):b.value&&(g.value=h(d.value-t.step,q))}function D(U){if(!U.data)return;const q=U.target,{value:Z,selectionStart:B,selectionEnd:X}=q??{},L=Z?Z.slice(0,B)+U.data+Z.slice(X):U.data,I=v2(L,t.precision,u.value);if(new RegExp(`^-?\\d*${pf(u.value)}?\\d*$`).test(L)||(U.preventDefault(),q.value=I,y.nextTick(()=>g.value=I)),t.precision!=null){if(L.split(u.value)[1]?.length>t.precision){U.preventDefault(),q.value=I,y.nextTick(()=>g.value=I);const G=(B??0)+U.data.length;q.setSelectionRange(G,G)}t.precision===0&&L.endsWith(u.value)&&(U.preventDefault(),q.value=I,y.nextTick(()=>g.value=I))}}async function N(U){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(U.key)||U.ctrlKey||["ArrowDown","ArrowUp"].includes(U.key)&&(U.preventDefault(),U.stopPropagation(),_(),await y.nextTick(),U.key==="ArrowDown"?z(!1):z())}function E(U){U.stopPropagation()}function C(U){U.currentTarget?.releasePointerCapture(U.pointerId),U.preventDefault(),r()}function w(U){U.currentTarget?.setPointerCapture(U.pointerId),U.preventDefault(),U.stopPropagation(),c("up")}function S(U){U.currentTarget?.setPointerCapture(U.pointerId),U.preventDefault(),U.stopPropagation(),c("down")}function _(){if(l.value||!s.value)return;const U=s.value.value,q=Number(U.replace(u.value,"."));U&&!isNaN(q)?g.value=h(un(q,t.min,t.max)):g.value=null}function k(){l.value||(g.value=d.value!==null&&!isNaN(d.value)?h(d.value,t.precision,!1):null)}function T(){if(!l.value){if(d.value===null||isNaN(d.value)){g.value=null;return}g.value=d.value.toString().replace(".",u.value)}}function j(){T()}function P(){_()}return jt(()=>{const{modelValue:U,type:q,...Z}=Ci.filterProps(t);function B(){return e.increment?y.createVNode(qr,{key:"increment-defaults",defaults:{VBtn:{disabled:!v.value,height:W.value,size:V.value,icon:A.value,variant:"text"}}},{default:()=>[e.increment(R)]}):y.createVNode(Dr,{"aria-hidden":"true","data-testid":"increment",disabled:!v.value,height:W.value,icon:A.value,key:"increment-btn",onClick:E,onPointerdown:w,onPointerup:C,onPointercancel:C,size:V.value,variant:"text",tabindex:"-1"},null)}function X(){return e.decrement?y.createVNode(qr,{key:"decrement-defaults",defaults:{VBtn:{disabled:!b.value,height:W.value,size:V.value,icon:M.value,variant:"text"}}},{default:()=>[e.decrement(F)]}):y.createVNode(Dr,{"aria-hidden":"true","data-testid":"decrement",disabled:!b.value,height:W.value,icon:M.value,key:"decrement-btn",onClick:E,onPointerdown:S,onPointerup:C,onPointercancel:C,size:V.value,variant:"text",tabindex:"-1"},null)}function L(){return y.createElementVNode("div",{class:"v-number-input__control"},[X(),y.createVNode(Ui,{vertical:x.value!=="stacked"},null),B()])}function I(){return!t.hideInput&&!t.inset?y.createVNode(Ui,{vertical:!0},null):void 0}const G=x.value==="split"?y.createElementVNode("div",{class:"v-number-input__control"},[y.createVNode(Ui,{vertical:!0},null),B()]):t.reverse||x.value==="hidden"?void 0:y.createElementVNode(y.Fragment,null,[I(),L()]),ee=e["append-inner"]||G,se=x.value==="split"?y.createElementVNode("div",{class:"v-number-input__control"},[X(),y.createVNode(Ui,{vertical:!0},null)]):t.reverse&&x.value!=="hidden"?y.createElementVNode(y.Fragment,null,[L(),I()]):void 0,te=e["prepend-inner"]||se;return y.createVNode(Ci,y.mergeProps({ref:s},Z,{modelValue:g.value,"onUpdate:modelValue":re=>g.value=re,focused:a.value,"onUpdate:focused":re=>a.value=re,validationValue:d.value,error:p.value||void 0,onBeforeinput:D,onFocus:j,onBlur:P,onKeydown:N,class:["v-number-input",{"v-number-input--default":x.value==="default","v-number-input--hide-input":t.hideInput,"v-number-input--inset":t.inset,"v-number-input--reverse":t.reverse,"v-number-input--split":x.value==="split","v-number-input--stacked":x.value==="stacked"},t.class],style:t.style,inputmode:"decimal"}),{...e,"append-inner":ee?function(){for(var re=arguments.length,J=new Array(re),de=0;de<re;de++)J[de]=arguments[de];return y.createElementVNode(y.Fragment,null,[e["append-inner"]?.(...J),G])}:void 0,"prepend-inner":te?function(){for(var re=arguments.length,J=new Array(re),de=0;de<re;de++)J[de]=arguments[de];return y.createElementVNode(y.Fragment,null,[se,e["prepend-inner"]?.(...J)])}:void 0})}),Ni({},s)}}),v8=Ze({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...yl(),..._d()},"VSwitch"),b8=xt()({name:"VSwitch",inheritAttrs:!1,props:v8(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,i){let{attrs:e,slots:s}=i;const c=cr(t,"indeterminate"),r=cr(t,"modelValue"),{loaderClasses:o}=pl(t),{isFocused:l,focus:a,blur:n}=bl(t),u=y.ref(),h=y.ref(),d=Dm&&window.matchMedia("(forced-colors: active)").matches,f=y.toRef(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),m=y.useId(),g=y.toRef(()=>t.id||`switch-${m}`);function p(){c.value&&(c.value=!1)}function v(b){b.stopPropagation(),b.preventDefault(),u.value?.input?.click()}return jt(()=>{const[b,x]=ll(e),A=Wa.filterProps(t),M=Tu.filterProps(t);return y.createVNode(Wa,y.mergeProps({ref:h,class:["v-switch",{"v-switch--flat":t.flat},{"v-switch--inset":t.inset},{"v-switch--indeterminate":c.value},o.value,t.class]},b,A,{modelValue:r.value,"onUpdate:modelValue":V=>r.value=V,id:g.value,focused:l.value,style:t.style}),{...s,default:V=>{let{id:W,messagesId:R,isDisabled:F,isReadonly:$,isValid:z}=V;const D={model:r,isValid:z};return y.createVNode(Tu,y.mergeProps({ref:u},M,{modelValue:r.value,"onUpdate:modelValue":[N=>r.value=N,p],id:W.value,"aria-describedby":R.value,type:"checkbox","aria-checked":c.value?"mixed":void 0,disabled:F.value,readonly:$.value,onFocus:a,onBlur:n},x),{...s,default:N=>{let{backgroundColorClasses:E,backgroundColorStyles:C}=N;return y.createElementVNode("div",{class:y.normalizeClass(["v-switch__track",d?void 0:E.value]),style:y.normalizeStyle(C.value),onClick:v},[s["track-true"]&&y.createElementVNode("div",{key:"prepend",class:"v-switch__track-true"},[s["track-true"](D)]),s["track-false"]&&y.createElementVNode("div",{key:"append",class:"v-switch__track-false"},[s["track-false"](D)])])},input:N=>{let{inputNode:E,icon:C,backgroundColorClasses:w,backgroundColorStyles:S}=N;return y.createElementVNode(y.Fragment,null,[E,y.createElementVNode("div",{class:y.normalizeClass(["v-switch__thumb",{"v-switch__thumb--filled":C||t.loading},t.inset||d?void 0:w.value]),style:y.normalizeStyle(t.inset?void 0:S.value)},[s.thumb?y.createVNode(qr,{defaults:{VIcon:{icon:C,size:"x-small"}}},{default:()=>[s.thumb({...D,icon:C})]}):y.createVNode(U3,null,{default:()=>[t.loading?y.createVNode(Ou,{name:"v-switch",active:!0,color:z.value===!1?void 0:f.value},{default:_=>s.loader?s.loader(_):y.createVNode(nd,{active:_.isActive,color:_.color,indeterminate:!0,size:"16",width:"2"},null)}):C&&y.createVNode(nr,{key:String(C),icon:C,size:"x-small"},null)]})])])}})}})}),Ni({},h)}}),y8=Ze({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:t=>!isNaN(parseFloat(t))},maxHeight:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},maxRows:{type:[Number,String],validator:t=>!isNaN(parseFloat(t))},suffix:String,modelModifiers:Object,...yg(),...yl(),...Wu()},"VTextarea"),w8=xt()({name:"VTextarea",directives:{vIntersect:mo},inheritAttrs:!1,props:y8(),emits:{"click:control":t=>!0,"mousedown:control":t=>!0,"update:focused":t=>!0,"update:modelValue":t=>!0,"update:rows":t=>!0},setup(t,i){let{attrs:e,emit:s,slots:c}=i;const r=cr(t,"modelValue"),{isFocused:o,focus:l,blur:a}=bl(t),{onIntersect:n}=wg(t),u=y.computed(()=>typeof t.counterValue=="function"?t.counterValue(r.value):(r.value||"").toString().length),h=y.computed(()=>{if(e.maxlength)return e.maxlength;if(!(!t.counter||typeof t.counter!="number"&&typeof t.counter!="string"))return t.counter}),d=y.ref(),f=y.ref(),m=y.shallowRef(""),g=y.ref(),p=y.ref(0),{platform:v}=Za(),b=kd(t),x=y.computed(()=>t.persistentPlaceholder||o.value||t.active);function A(){b.isSuppressing.value&&b.update(),g.value!==document.activeElement&&g.value?.focus(),o.value||l()}function M(E){A(),s("click:control",E)}function V(E){s("mousedown:control",E)}function W(E){E.stopPropagation(),A(),y.nextTick(()=>{r.value="",ul(t["onClick:clear"],E)})}function R(E){const C=E.target;if(!t.modelModifiers?.trim){r.value=C.value;return}const w=C.value,S=C.selectionStart,_=C.selectionEnd;r.value=w,y.nextTick(()=>{let k=0;w.trimStart().length===C.value.length&&(k=w.length-C.value.length),S!=null&&(C.selectionStart=S-k),_!=null&&(C.selectionEnd=_-k)})}const F=y.ref(),$=y.ref(Number(t.rows)),z=y.computed(()=>["plain","underlined"].includes(t.variant));y.watchEffect(()=>{t.autoGrow||($.value=Number(t.rows))});function D(){y.nextTick(()=>{if(!g.value)return;if(v.value.firefox){p.value=12;return}const{offsetWidth:E,clientWidth:C}=g.value;p.value=Math.max(0,E-C)}),t.autoGrow&&y.nextTick(()=>{if(!F.value||!f.value)return;const E=getComputedStyle(F.value),C=getComputedStyle(f.value.$el),w=parseFloat(E.getPropertyValue("--v-field-padding-top"))+parseFloat(E.getPropertyValue("--v-input-padding-top"))+parseFloat(E.getPropertyValue("--v-field-padding-bottom")),S=F.value.scrollHeight,_=parseFloat(E.lineHeight),k=Math.max(parseFloat(t.rows)*_+w,parseFloat(C.getPropertyValue("--v-input-control-height"))),T=t.maxHeight?parseFloat(t.maxHeight):parseFloat(t.maxRows)*_+w||1/0,j=un(S??0,k,T);$.value=Math.floor((j-w)/_),m.value=St(j)})}y.onMounted(D),y.watch(r,D),y.watch(()=>t.rows,D),y.watch(()=>t.maxHeight,D),y.watch(()=>t.maxRows,D),y.watch(()=>t.density,D),y.watch($,E=>{s("update:rows",E)});let N;return y.watch(F,E=>{E?(N=new ResizeObserver(D),N.observe(F.value)):N?.disconnect()}),y.onBeforeUnmount(()=>{N?.disconnect()}),jt(()=>{const E=!!(c.counter||t.counter||t.counterValue),C=!!(E||c.details),[w,S]=ll(e),{modelValue:_,...k}=Wa.filterProps(t),T={...go.filterProps(t),"onClick:clear":W};return y.createVNode(Wa,y.mergeProps({ref:d,modelValue:r.value,"onUpdate:modelValue":j=>r.value=j,class:["v-textarea v-text-field",{"v-textarea--prefixed":t.prefix,"v-textarea--suffixed":t.suffix,"v-text-field--prefixed":t.prefix,"v-text-field--suffixed":t.suffix,"v-textarea--auto-grow":t.autoGrow,"v-textarea--no-resize":t.noResize||t.autoGrow,"v-input--plain-underlined":z.value},t.class],style:[{"--v-textarea-max-height":t.maxHeight?St(t.maxHeight):void 0,"--v-textarea-scroll-bar-width":St(p.value)},t.style]},w,k,{centerAffix:$.value===1&&!z.value,focused:o.value}),{...c,default:j=>{let{id:P,isDisabled:U,isDirty:q,isReadonly:Z,isValid:B,hasDetails:X}=j;return y.createVNode(go,y.mergeProps({ref:f,style:{"--v-textarea-control-height":m.value},onClick:M,onMousedown:V,"onClick:prependInner":t["onClick:prependInner"],"onClick:appendInner":t["onClick:appendInner"]},T,{id:P.value,active:x.value||q.value,centerAffix:$.value===1&&!z.value,dirty:q.value||t.dirty,disabled:U.value,focused:o.value,details:X.value,error:B.value===!1}),{...c,default:L=>{let{props:{class:I,...G},controlRef:ee}=L;return y.createElementVNode(y.Fragment,null,[t.prefix&&y.createElementVNode("span",{class:"v-text-field__prefix"},[t.prefix]),y.withDirectives(y.createElementVNode("textarea",y.mergeProps({ref:se=>g.value=ee.value=se,class:I,value:r.value,onInput:R,autofocus:t.autofocus,readonly:Z.value,disabled:U.value,placeholder:t.placeholder,rows:t.rows,name:b.fieldName.value,autocomplete:b.fieldAutocomplete.value,onFocus:A,onBlur:a},G,S),null),[[mo,{handler:n},null,{once:!0}]]),t.autoGrow&&y.withDirectives(y.createElementVNode("textarea",{class:y.normalizeClass([I,"v-textarea__sizer"]),id:`${G.id}-sizer`,"onUpdate:modelValue":se=>r.value=se,ref:F,readonly:!0,"aria-hidden":"true"},null),[[y.vModelText,r.value]]),t.suffix&&y.createElementVNode("span",{class:"v-text-field__suffix"},[t.suffix])])}})},details:C?j=>y.createElementVNode(y.Fragment,null,[c.details?.(j),E&&y.createElementVNode(y.Fragment,null,[y.createElementVNode("span",null,null),y.createVNode(Sd,{active:t.persistentCounter||o.value,value:u.value,max:h.value,disabled:t.disabled},c.counter)])]):void 0})}),Ni({},d,f,g)}}),x8={class:"ve-search-input"},_8={key:0,class:"d-flex ga-2 justify-end"},S8={class:"mx-2"},k8=y.defineComponent({__name:"GenericTableHeader",props:y.mergeModels({keyWord:{},hideSearch:{type:Boolean},hideHeader:{type:Boolean},hideCreate:{type:Boolean},hideActions:{type:Boolean},hideSortHeader:{type:Boolean}},{search:{},searchModifiers:{}}),emits:y.mergeModels(["createItem","update:search","showAdjustColumns"],["update:search"]),setup(t,{emit:i}){const e=Rs(),s=t,c=s.hideSearch||!1,r=i,o=y.useModel(t,"search"),l=y.reactive([{icon:"ri-insert-column-left",color:"",key:"adjust_columns",tooltip:"Ajustar colunas",action:()=>r("showAdjustColumns"),show:()=>!s.hideSortHeader}]);return y.onUnmounted(()=>{o.value=""}),(a,n)=>(y.openBlock(),y.createElementBlock(y.Fragment,null,[t.hideHeader?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(ys,{key:0,class:"pa-2",cols:"12"},{default:y.withCtx(()=>[y.unref(c)?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(Nn,{key:0,cols:12,md:4},{default:y.withCtx(()=>[y.createElementVNode("div",x8,[y.createVNode(nr,{size:"20",color:"grey-600"},{default:y.withCtx(()=>[...n[3]||(n[3]=[y.createTextVNode(" ri-search-line ",-1)])]),_:1}),y.withDirectives(y.createElementVNode("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>o.value=u),required:""},null,512),[[y.vModelText,o.value]]),y.createElementVNode("label",null,y.toDisplayString(y.unref(e)("search")),1),y.createVNode(y.unref($3),null,{default:y.withCtx(()=>[y.withDirectives(y.createVNode(nr,{size:"20",color:"grey-600",class:"mx-1 cursor-pointer",onClick:n[1]||(n[1]=u=>o.value="")},{default:y.withCtx(()=>[...n[4]||(n[4]=[y.createTextVNode(" ri-close-line ",-1)])]),_:1},512),[[y.vShow,!!o.value]])]),_:1})])]),_:1})),y.createVNode(z1),y.createVNode(Nn,{cols:"12",md:6},{default:y.withCtx(()=>[t.hideActions?y.createCommentVNode("",!0):(y.openBlock(),y.createElementBlock("div",_8,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(l,u=>(y.openBlock(),y.createElementBlock(y.Fragment,{key:u.key},[u?.show&&u.show()?(y.openBlock(),y.createBlock(ld,{key:0,variant:"outlined",color:u.color,size:30,icon:u.icon,tooltip:u.tooltip,rounded:"sm",onClick:u.action},null,8,["color","icon","tooltip","onClick"])):y.createCommentVNode("",!0)],64))),128)),t.hideCreate?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(Dr,{key:0,onClick:n[2]||(n[2]=u=>a.$emit("createItem")),class:"d-flex",density:"comfortable"},{default:y.withCtx(()=>[y.createVNode(nr,null,{default:y.withCtx(()=>[...n[5]||(n[5]=[y.createTextVNode("ri-add-line",-1)])]),_:1}),y.createElementVNode("span",S8,y.toDisplayString(y.unref(e)("add")),1)]),_:1})),y.renderSlot(a.$slots,"custom-btn",{},void 0,!0)]))]),_:3})]),_:3})),y.renderSlot(a.$slots,"custom-header",{},void 0,!0)],64))}}),C8=xo(k8,[["__scopeId","data-v-06b852f3"]]);function jn(t){t.preventDefault()}function Ja(t){t.stopPropagation()}function tv(){const t=new Map;return[function(s,c){t.get(s)&&t.get(s).forEach(r=>{r(c)})},function(s,c){const r=t.get(s)??[];r.push(c),t.set(s,r)}]}var[rv,nv]=tv();function A8(t,i){return t.source===i.source&&t.flags.split("").sort().join("")===i.flags.split("").sort().join("")}function ol(t,i,e=!0,s=["__key"]){if(t===i)return!0;if(typeof i=="object"&&typeof t=="object"&&t!==null&&i!==null){if(t instanceof Map||t instanceof Set)return!1;if(t instanceof Date&&i instanceof Date)return t.getTime()===i.getTime();if(t instanceof RegExp&&i instanceof RegExp)return A8(t,i);if(t===null||i===null)return!1;const c=t,r=i;if(Object.keys(c).length!==Object.keys(r).length)return!1;for(const o of s)if((o in c||o in r)&&c[o]!==r[o])return!1;for(const o in c)if(!(o in r)||c[o]!==r[o]&&!e||e&&!ol(c[o],r[o],e,s))return!1;return!0}return!1}function iv(t){return t.split(" ").filter(i=>i)}function _o(t){return{x:t.clientX,y:t.clientY}}function N8(t={}){const i=[{transform:`translateY(${t.yScale||50}%)`},{transform:`translateY(${t.yScale||0}%)`}],e=[{transform:`translateY(-${t.yScale||50}%)`},{transform:`translateY(${t.yScale||0}%)`}],s=[{transform:`translateX(${t.xScale||50}%)`},{transform:`translateX(${t.xScale||0}%)`}],c=[{transform:`translateX(-${t.xScale||50}%)`},{transform:`translateX(${t.xScale||0}%)`}];return r=>{if(gn.get(r))return{setup(){document.head.querySelector("[data-drag-and-drop]")},setupNodeRemap(l){if(!Tn(He))return;const a=t.duration||150;if(l.node.data.value===He.draggedNode.data.value){switch(He.incomingDirection){case"below":Di(l.node.el,i,a);break;case"above":Di(l.node.el,e,a);break;case"left":Di(l.node.el,c,a);break;case"right":Di(l.node.el,s,a);break}return}if(!He.affectedNodes.map(m=>m.data.value).includes(l.node.data.value))return;const n=l.node.el.getBoundingClientRect(),u=He.affectedNodes.findIndex(m=>m.data.value===l.node.data.value),d=He.draggedNode.data.index>=He.targetIndex;let f;if(d?f=He.affectedNodes[u+1]?He.affectedNodes[u+1]:He.affectedNodes[u-1]:f=He.affectedNodes[u-1]?He.affectedNodes[u-1]:He.affectedNodes[u+1],f){const m=Math.abs(n.x-f.el.getBoundingClientRect().x),g=Math.abs(n.y-f.el.getBoundingClientRect().y);m>g&&d?Di(l.node.el,c,a):m>g&&!d&&Di(l.node.el,s,a)}else switch(He.incomingDirection){case"below":Di(l.node.el,e,a);break;case"above":Di(l.node.el,i,a);break;case"left":Di(l.node.el,s,a);break;case"right":Di(l.node.el,c,a);break}}}}}function Di(t,i,e){He&&(He.preventEnter=!0,t.animate(i,{duration:e,easing:"ease-in-out"}),setTimeout(()=>{He&&(He.preventEnter=!1)},e))}Array();var Ed=typeof window<"u",gn=new WeakMap,qi=new WeakMap;function av(){if(!Ed)return!1;if("userAgentData"in navigator)return navigator.userAgentData.mobile===!0;const t=navigator.userAgent,i=/android|iphone|ipod/i.test(t),e=/iPad/.test(t)||t.includes("Macintosh")&&navigator.maxTouchPoints>1;return i||e}var E8={affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:nv,emit:rv,originalZIndex:void 0,pointerSelection:!1,preventEnter:!1,rootUserSelect:void 0,nodePointerdown:void 0,longPress:!1,scrolling:!1,longPressTimeout:void 0,remapJustFinished:!1,selectedNodes:[],selectedParent:void 0,preventSynthDrag:!1,pointerDown:void 0,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0},He=E8,Ga=!1,Pm,cf;function T8(){He.scrollDebounceTimeout&&clearTimeout(He.scrollDebounceTimeout),He.longPressTimeout&&clearTimeout(He.longPressTimeout),He.frameIdX!==void 0&&cancelAnimationFrame(He.frameIdX),He.frameIdY!==void 0&&cancelAnimationFrame(He.frameIdY),He={...{affectedNodes:[],coordinates:{x:0,y:0},on:nv,emit:rv,currentTargetValue:void 0,originalZIndex:void 0,pointerId:void 0,preventEnter:!1,remapJustFinished:!1,selectedNodes:[],nodePointerdown:void 0,rootUserSelect:void 0,preventSynthDrag:!1,scrolling:!1,selectedParent:void 0,pointerSelection:!1,synthScrollDirection:void 0,draggedNodeDisplay:void 0,synthDragScrolling:!1,longPress:!1,pointerDown:void 0,longPressTimeout:void 0,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0}}}function sv(t){return Object.assign(He,t),t.initialParent.data.emit("dragStarted",He),Ga=!1,He.emit("dragStarted",He),He}function P8(){He.activeState&&Es(He.activeState.parent,void 0,He),He.selectedState&&xs(He.selectedState.nodes,He.selectedState.parent,He),He.selectedState=He.activeState=void 0}function M8(){if(He.pointerDown&&(He.pointerDown.node.el.draggable=!0),He.pointerDown=void 0,!si(He))return;const t=He.currentParent.data.config;si(He)&&t.handleEnd(He)}function I8(t){t.key==="Escape"&&(He.selectedState&&xs(He.selectedState.nodes,He.selectedState.parent,He),He.activeState&&Es(He.activeState.parent,void 0,He),He.selectedState=He.activeState=void 0)}function R8(t){if(!Tn(He))return;Ga=!0;const i=He.initialParent.data.config.handleEnd;i(He)}function L8(t){if(!Tn(He))return;jn(t);const{x:i,y:e}=_o(t);Tn(He)&&Ju({x:i,y:e},t,He)}function O8(t){if(!He.pointerDown||!He.pointerDown.validated)return;const i=He.pointerDown.parent.data.config;if(!(t.pointerType==="mouse"&&!av()))if(si(He))si(He)&&Mm(t,He);else{if(jn(t),i.longPress&&!He.longPress){clearTimeout(He.longPressTimeout),He.longPress=!1;return}const e=i.draggedNodes(He.pointerDown);i.dragstartClasses(He.pointerDown.node,e,i,!0);const s=He.pointerDown.node.el.getBoundingClientRect(),c=cx(He.pointerDown.node,He.pointerDown.parent,t,He,e,s);Mm(t,c,!0)}}function F8({parent:t,getValues:i,setValues:e,config:s={}}){if(!Ed)return;Pm||(Pm=Pu(document,{dragover:L8,pointerdown:P8,pointerup:M8,keydown:I8,drop:R8,pointermove:O8,pointercancel:ni(s.handlePointercancel),touchmove:a=>{Tn(He)&&a.cancelable&&jn(a)},contextmenu:a=>{si(He)&&jn(a)}})),z8(t);const[c,r]=tv(),o={getValues:i,setValues:e,config:{dragDropEffect:s.dragDropEffect??"move",dragEffectAllowed:s.dragEffectAllowed??"move",draggedNodes:Y8,dragstartClasses:ex,handleNodeKeydown:rx,handleDragstart:J8,handleNodeDragover:dx,handleParentDragover:hx,handleNodeDrop:ix,handleNodeFocus:ax,handleNodeBlur:sx,handlePointercancel:lx,handleEnd:cv,handleDragend:ox,handleParentFocus:j8,handleNodePointerup:ux,handleNodePointerover:nx,handleParentPointerover:px,handleParentScroll:Z8,handleNodePointerdown:Q8,handleNodeDragenter:gx,handleNodeDragleave:vx,handleParentDrop:V8,multiDrag:s.multiDrag??!1,nativeDrag:s.nativeDrag??!0,performSort:B8,performTransfer:D8,root:s.root??document,setupNode:$8,setupNodeRemap:lv,reapplyDragClasses:q8,tearDownNode:W8,tearDownNodeRemap:H8,remapFinished:X8,threshold:{horizontal:0,vertical:0},...s},enabledNodes:[],abortControllers:{},privateClasses:[],on:r,emit:c};new MutationObserver(G8).observe(t,{childList:!0}),gn.set(t,o),s.plugins?.forEach(a=>{a(t)?.tearDown?.()}),s.plugins?.forEach(a=>{a(t)?.tearDown?.()}),s.plugins?.forEach(a=>{a(t)?.setup?.()}),U8(t,o),Yu(t,!0)}function ov(t,i,e,s,c,r){const{x:o,y:l}=_o(e),a=t.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:o,y:l},draggedNode:{el:t.el,data:t.data},draggedNodes:s,incomingDirection:void 0,initialIndex:t.data.index,initialParent:{el:i.el,data:i.data},currentParent:{el:i.el,data:i.data},longPress:i.data.config.longPress??!1,longPressTimeout:void 0,currentTargetValue:t.data.value,scrollEls:[],startLeft:c||o-(a?.left??0),startTop:r||l-(a?.top??0),targetIndex:t.data.index,transferred:!1}}function B8({parent:t,draggedNodes:i,targetNodes:e}){Yu(t.el);const s=i.map(a=>a.data.value),c=vo(t.el,t.data),r=i[0].data.index,o=[...t.data.enabledNodes],l=[...c.filter(a=>!s.some(n=>ol(a,n)))];l.splice(e[0].data.index,0,...s),"draggedNode"in He&&(He.currentTargetValue=e[0].data.value),$f(t.el,t.data,[...l]),t.data.config.onSort&&t.data.config.onSort({parent:{el:t.el,data:t.data},previousValues:[...c],previousNodes:[...o],nodes:[...t.data.enabledNodes],values:[...l],draggedNodes:i,previousPosition:r,position:e[0].data.index,targetNodes:e,state:He})}function Es(t,i,e){if(!i){e.activeState=void 0;return}e.activeState={node:i,parent:t}}function xs(t,i,e){const s=i.data.config.selectedClass;if(!e.selectedState)return;const c=Array.from(t);Va(t.map(r=>r.el),s);for(const r of c){r.el.setAttribute("aria-selected","false");const o=e.selectedState.nodes.findIndex(l=>l.el===r.el);o!==-1&&e.selectedState.nodes.splice(o,1)}}function au(t,i,e,s,c=!1){s.pointerSelection=c;for(const r of i)r.el.setAttribute("aria-selected","true"),uo([r.el],t.data.config.selectedClass,!0);s.selectedState={nodes:i,parent:t},Es(t,e,s)}function j8(t,i){const e=t.targetData.parent.data.enabledNodes[0];e&&(i.selectedState&&i.selectedState.parent.el!==t.targetData.parent.el?Es(t.targetData.parent,e,i):i.selectedState||Es(t.targetData.parent,e,i))}function D8({currentParent:t,targetParent:i,initialParent:e,draggedNodes:s,initialIndex:c,targetNodes:r,state:o}){Yu(e.el);const l=s.map(d=>d.data.value),a=[...vo(t.el,t.data).filter(d=>!l.some(f=>ol(d,f)))],n=vo(i.el,i.data),u=e.el===i.el&&i.data.config.sortable===!1;let h;r.length?(u?h=c:i.data.config.sortable===!1?h=i.data.enabledNodes.length:h=r[0].data.index,n.splice(h,0,...l)):(h=u?c:i.data.enabledNodes.length,n.splice(h,0,...l)),$f(t.el,t.data,a),$f(i.el,i.data,n),i.data.config.onTransfer&&i.data.config.onTransfer({sourceParent:t,targetParent:i,initialParent:e,draggedNodes:s,targetIndex:h,state:o,targetNodes:r}),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:t,targetParent:i,initialParent:e,draggedNodes:s,targetIndex:h,state:o,targetNodes:r||[]})}function vo(t,i){return[...i.getValues(t)]}function $f(t,i,e){i.setValues(e,t)}function V8(t,i){Ja(t.e),Ga=!0;const e=i.initialParent.data.config.handleEnd;e(i)}function z8(t){const i=gn.get(t);i&&i.abortControllers.mainParent&&i.abortControllers.mainParent.abort()}function Tn(t){return"draggedNode"in t&&!!t.draggedNode}function si(t){return"synthDragging"in t&&!!t.synthDragging}function U8(t,i){i.abortControllers.mainParent=Pu(t,{dragover:su(i.config.handleParentDragover),handleParentPointerover:i.config.handleParentPointerover,scroll:su(i.config.handleParentScroll),drop:su(i.config.handleParentDrop),hasNestedParent:e=>{const s=gn.get(e.target);s&&(s.nestedParent=e.detail.parent)},focus:su(i.config.handleParentFocus)}),i.config.externalDragHandle&&i.config.externalDragHandle.el&&i.config.externalDragHandle.callback&&(i.abortControllers.externalDragHandle=Pu(i.config.externalDragHandle.el,{pointerdown:e=>{if(!i.config.externalDragHandle||!i.config.externalDragHandle.callback)return;const s=i.config.externalDragHandle.callback();if(!Qu(s)){console.warn("No draggable item found from external drag handle callback");return}const c=qi.get(s);if(!c)return;const r=s.parentNode;if(!(r instanceof HTMLElement))return;const o=gn.get(r);o&&(He.pointerDown={parent:{el:r,data:o},node:{el:s,data:c},validated:!0},s.draggable=!0)}}))}function $8(t){const i=t.parent.data.config;t.node.data.abortControllers.mainNode=Pu(t.node.el,{keydown:ni(i.handleNodeKeydown),dragstart:ni(i.handleDragstart),dragover:ni(i.handleNodeDragover),dragenter:ni(i.handleNodeDragenter),dragleave:ni(i.handleNodeDragleave),dragend:ni(i.handleDragend),drop:ni(i.handleNodeDrop),focus:ni(i.handleNodeFocus),blur:ni(i.handleNodeBlur),pointerup:ni(i.handleNodePointerup),pointercancel:ni(i.handlePointercancel),pointerdown:ni(i.handleNodePointerdown),handleNodePointerover:i.handleNodePointerover,touchmove:e=>{Tn(He)&&e.cancelable&&jn(e)},contextmenu:e=>{si(He)&&jn(e)}}),t.node.el.draggable=!0,i.reapplyDragClasses(t.node.el,t.parent.data),t.parent.data.config.plugins?.forEach(e=>{e(t.parent.el)?.setupNode?.(t)})}function lv(t){qi.set(t.node.el,t.node.data),t.parent.data.config.plugins?.forEach(i=>{i(t.parent.el)?.setupNodeRemap?.(t)})}function q8(t,i){if(!Tn(He))return;const e=si(He)?i.config.synthDropZoneClass:i.config.dropZoneClass;He.draggedNode.el===t&&uo([t],e,!0)}function H8(t){t.parent.data.config.plugins?.forEach(i=>{i(t.parent.el)?.tearDownNodeRemap?.(t)})}function W8(t){t.parent.data.config.plugins?.forEach(i=>{i(t.parent.el)?.tearDownNode?.(t)}),t.node.el.draggable=!1,t.node.data?.abortControllers?.mainNode&&t.node.data?.abortControllers?.mainNode.abort()}function G8(t){if(t.length===1&&t[0].addedNodes.length===1&&!(t[0].addedNodes[0]instanceof HTMLElement))return;const i=t[0].target;!(i instanceof HTMLElement)||!gn.get(i)||Yu(i)}function Yu(t,i){const e=gn.get(t);if(!e)return;e.privateClasses=Array.from(t.classList);const s=[],c=e.config;for(let l=0;l<t.children.length;l++){const a=t.children[l];if(!Qu(a)||a.id==="dnd-dragged-node-clone")continue;const n=qi.get(a);(i||!n)&&c.tearDownNode({parent:{el:t,data:e},node:{el:a,data:n}}),!c.disabled&&(!c.draggable||c.draggable&&c.draggable(a))&&s.push(a)}if(s.length!==e.getValues(t).length&&!c.disabled){console.warn("The number of draggable items defined in the parent element does not match the number of values. This may cause unexpected behavior.");return}const r=e.getValues(t),o=[];for(let l=0;l<s.length;l++){const a=s[l],n=qi.get(a);if(c.draggableValue&&!c.draggableValue(r[l]))continue;const u=Object.assign(n??{privateClasses:[],abortControllers:{}},{value:r[l],index:l});if(!Tn(He)&&He.activeState&&ol(He.activeState.node.data.value,u.value)&&Es({data:e,el:t},{el:a,data:u},He),Tn(He)&&ol(He.draggedNode.data.value,u.value)){He.draggedNode.data=u,He.draggedNode.el=a;const h=He.draggedNodes.find(d=>d.data.value===u.value);h&&(h.el=a)}o.push({el:a,data:u}),(i||!n)&&c.setupNode({parent:{el:t,data:e},node:{el:a,data:u}}),lv({parent:{el:t,data:e},node:{el:a,data:u}})}gn.set(t,{...e,enabledNodes:o}),c.remapFinished(e),e.config.plugins?.forEach(l=>{l(t)?.remapFinished?.()})}function X8(){He.remapJustFinished=!0,"draggedNode"in He&&(He.affectedNodes=[])}function K8(t){return!!t.targetData.parent.data.config.nativeDrag}function Y8(t){if(t.parent.data.config.multiDrag){if(He.selectedState)return[t.node,...He.selectedState?.nodes.filter(i=>i.el!==t.node.el)]}else return[t.node];return[]}function Z8(t){Tn(He)&&(He.emit("scrollStarted",He),!si(He)&&(He.preventEnter=!0,cf&&clearTimeout(cf),cf=setTimeout(()=>{He.preventEnter=!1,He.emit("scrollEnded",He)},100)))}function J8(t,i){const e=t.targetData.parent.data.config;if(!e.nativeDrag||!K8(t)||!uv({x:t.e.clientX,y:t.e.clientY,node:t.targetData.node,config:e})){jn(t.e);return}let s=e.draggedNodes({parent:t.targetData.parent,node:t.targetData.node});s.length===0&&(s=[t.targetData.node]),e.dragstartClasses(t.targetData.node,s,e);const c=tx(t,s);if(e.onDragstart){const r={parent:t.targetData.parent,values:vo(t.targetData.parent.el,t.targetData.parent.data),draggedNode:c.draggedNode,draggedNodes:c.draggedNodes,position:c.initialIndex,state:c};e.onDragstart(r)}}function Q8(t,i){if(Ja(t.e),i.pointerDown={parent:t.targetData.parent,node:t.targetData.node,validated:!1},!uv({x:t.e.clientX,y:t.e.clientY,node:t.targetData.node,config:t.targetData.parent.data.config}))return;i.pointerDown.validated=!0,fx(t,i,t.targetData.node);const e=t.targetData.parent.data;let s=[t.targetData.node];const c=t.e.ctrlKey||t.e.metaKey,r=t.e.shiftKey,o=t.targetData.node;if(c&&e.config.multiDrag){i.selectedState?i.selectedState.nodes.findIndex(a=>a.el===o.el)===-1?s=[...i.selectedState.nodes,o]:s=i.selectedState.nodes.filter(a=>a.el!==o.el):s=[o],au(t.targetData.parent,s,t.targetData.node,i,!0);return}if(r&&e.config.multiDrag){const l=t.targetData.parent.data.enabledNodes;if(i.selectedState&&i.activeState)if(i.selectedState.parent.el!==t.targetData.parent.el){xs(i.selectedState.nodes,i.selectedState.parent,i),i.selectedState=void 0;for(let a=0;a<=o.data.index;a++)s.push(l[a])}else{const[a,n]=i.activeState.node.data.index<t.targetData.node.data.index?[i.activeState.node.data.index,t.targetData.node.data.index]:[t.targetData.node.data.index,i.activeState.node.data.index];s=l.slice(a,n+1)}else for(let a=0;a<=o.data.index;a++)s.push(l[a]);au(t.targetData.parent,s,t.targetData.node,i,!0);return}i.selectedState?.nodes?.length?i.selectedState.nodes.findIndex(a=>a.el===t.targetData.node.el)===-1&&(i.selectedState.parent.el!==t.targetData.parent.el?xs(i.selectedState.nodes,t.targetData.parent,i):e.config.multiDrag&&av()?s.push(...i.selectedState.nodes):xs(i.selectedState.nodes,t.targetData.parent,i),au(t.targetData.parent,s,t.targetData.node,i,!0)):au(t.targetData.parent,[t.targetData.node],t.targetData.node,i,!0)}function ex(t,i,e,s=!1){uo(i.map(c=>c.el),s?e.synthDraggingClass:e.draggingClass),setTimeout(()=>{Va(i.map(c=>c.el),s?e.synthDraggingClass:e.draggingClass),uo(i.map(c=>c.el),s?e.synthDragPlaceholderClass:e.dragPlaceholderClass),uo(i.map(c=>c.el),s?e.synthDropZoneClass:e.dropZoneClass),Va(i.map(c=>c.el),e.selectedClass)})}function tx(t,i){Ja(t.e);const e=sv(ov(t.targetData.node,t.targetData.parent,t.e,i));if(t.e.dataTransfer){const s=t.targetData.parent.data.config;t.e.dataTransfer.dropEffect=s.dragDropEffect,t.e.dataTransfer.effectAllowed=s.dragEffectAllowed;let c;if(t.e.dataTransfer.setData("text/plain",""),s.dragImage)c=s.dragImage(t,i);else{if(!s.multiDrag||i.length===1)return t.targetData.node.el.style.zIndex="9999",t.targetData.node.el.style.boxSizing="border-box",t.e.dataTransfer.setDragImage(t.targetData.node.el,t.e.offsetX,t.e.offsetY),e.originalZIndex=t.targetData.node.el.style.zIndex,e;{const r=document.createElement("div");r.setAttribute("id","dnd-dragged-node-clone"),r.setAttribute("popover","manual");for(const l of i){const a=l.el.cloneNode(!0);a.id=l.el.id+"-clone",a.style.pointerEvents="none",r.appendChild(a)}const{width:o}=i[0].el.getBoundingClientRect();Object.assign(r.style,{display:"flex",flexDirection:"column",width:`${o}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px",boxSizing:"border-box",background:"transparent",overflow:"hidden"}),t.targetData.parent.el.appendChild(r),r.showPopover(),r.getBoundingClientRect(),c=r,t.e.dataTransfer.setDragImage(c,t.e.offsetX,t.e.offsetY)}}setTimeout(()=>{c?.remove()})}return e}function uv({x:t,y:i,node:e,config:s}){if(s.externalDragHandle)return!1;if(!s.dragHandle)return!0;const c=e.el.querySelectorAll(s.dragHandle);if(!c)return!1;const r=s.root.elementFromPoint(t,i);if(!r)return!1;for(const o of Array.from(c))if(r===o||o.contains(r))return!0;return!1}function rx(t){}function nx(t){t.detail.targetData.parent.el===t.detail.state.currentParent.el?dv(t.detail,t.detail.state):Zu(t.detail,t.detail.state)}function ix(t,i){const e=t.targetData.parent.data.config;e.nativeDrag&&(Ja(t.e),Ga=!0,e.handleEnd(i))}function ax(t){t.e.target!==t.e.currentTarget&&He.pointerDown&&(He.pointerDown.node.el.draggable=!1)}function sx(t){t.e.target!==t.e.currentTarget&&He.pointerDown&&(He.pointerDown.node.el.draggable=!0)}function ox(t,i){const e=t.targetData.parent.data.config;if(e.nativeDrag){if(jn(t.e),Ja(t.e),Ga){Ga=!1;return}e.handleEnd(i)}}function lx(t,i){if(!si(i))return;if(jn(t.e),Ga){Ga=!1;return}const e=gn.get(i.initialParent.el)?.config;e?.onDragend&&e.onDragend({parent:i.currentParent,values:vo(i.currentParent.el,i.currentParent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,state:i}),e?.handleEnd(i)}function cv(t){t.draggedNode&&(t.draggedNode.el.draggable=!0);const i=t.draggedNodes.map(u=>u.el),e=t.initialParent.data,s=si(t),c=gn.get(t.initialParent.el)?.config,r=s?c?.synthDropZoneClass:c?.dropZoneClass,o=e?.config?.longPressClass,l=s?e?.config?.synthDragPlaceholderClass:e?.config?.dragPlaceholderClass,a=t.originalZIndex;si(t)&&(t.clonedDraggedNode&&t.clonedDraggedNode.remove(),t.longPressTimeout&&clearTimeout(t.longPressTimeout)),qf(t),t.lastScrollDirectionX=void 0,t.lastScrollDirectionY=void 0,t.preventEnter=!1,t.scrollDebounceTimeout&&(clearTimeout(t.scrollDebounceTimeout),t.scrollDebounceTimeout=void 0),a!==void 0&&t.draggedNode&&(t.draggedNode.el.style.zIndex=a),requestAnimationFrame(()=>{Va(i,r),Va(i,o),Va(i,l)}),xs(t.draggedNodes,t.currentParent,t),Es(t.currentParent,void 0,t);const n={...t};c?.onDragend?.({parent:n.currentParent,values:vo(n.currentParent.el,n.currentParent.data),draggedNode:n.draggedNode,draggedNodes:n.draggedNodes,state:n}),t.emit("dragEnded",n),T8()}function ux(t,i){Ja(t.e),!i.pointerSelection&&i.selectedState&&xs(i.selectedState.nodes,t.targetData.parent,i);const e=t.targetData.parent.data.config;i.pointerSelection=!1,"longPressTimeout"in i&&i.longPressTimeout&&clearTimeout(i.longPressTimeout),i.longPress=!1,Va(t.targetData.parent.data.enabledNodes.map(s=>s.el),e.longPressClass),Tn(i)&&e.handleEnd(i)}function cx(t,i,e,s,c,r){const o=i.data.config;let l,a;const n=["display","flexDirection","alignItems","justifyContent","padding","paddingTop","margin","marginTop","marginBottom","marginLeft","marginRight","paddingBottom","paddingLeft","paddingRight","border","borderRadius","background","backgroundColor","boxShadow","font","color","lineHeight","gap","width","height","boxSizing","overflow"],u=(m,g)=>{const p=window.getComputedStyle(m);n.forEach(v=>{g.style[v]=p[v]})},h=(m,g={})=>{Object.assign(m.style,{position:"absolute",zIndex:"9999",pointerEvents:"none",willChange:"transform",boxSizing:"border-box",opacity:"0",overflow:"hidden",width:`${r.width}px`,height:`${r.height}px`,...g})};if(o.synthDragImage)a=o.synthDragImage(t,i,e,c),l=a.dragImage,l.setAttribute("popover","manual"),h(l);else if(!o.multiDrag||c.length===1)l=t.el.cloneNode(!0),u(t.el,l),l.setAttribute("popover","manual"),h(l);else{const m=document.createElement("div");m.setAttribute("popover","manual"),c.forEach(g=>{const p=g.el.cloneNode(!0);u(g.el,p),p.style.pointerEvents="none",p.style.margin="0",m.append(p)}),m.style.display="flex",m.style.flexDirection="column",m.style.padding="0",m.style.margin="0",m.style.position="absolute",m.style.zIndex="9999",m.style.pointerEvents="none",l=m}l.id="dnd-dragged-node-clone",i.el.appendChild(l),l.showPopover();const d={clonedDraggedEls:[],clonedDraggedNode:l,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:document.scrollingElement?.scrollWidth,rootScrollHeight:document.scrollingElement?.scrollHeight};return sv({...ov(t,i,e,c,a?.offsetX,a?.offsetY),...d})}function fx(t,i,e){const s=t.targetData.parent.data.config;i.longPressTimeout=setTimeout(()=>{i&&(i.longPress=!0,s.longPressClass&&t.e.cancelable&&uo([e.el],s.longPressClass),jn(t.e))},s.longPressDuration||1e3)}function qf(t,i=!0,e=!0){i&&(t.frameIdX!==void 0&&(cancelAnimationFrame(t.frameIdX),t.frameIdX=void 0),t.lastScrollDirectionX=void 0),e&&(t.frameIdY!==void 0&&(cancelAnimationFrame(t.frameIdY),t.frameIdY=void 0),t.lastScrollDirectionY=void 0),!t.frameIdX&&!t.frameIdY&&(t.preventEnter=!1)}function fv(t,i=!1){const{x:e,y:s}=t.coordinates,c=t.startLeft??0,r=t.startTop??0,o=window.scrollX??0,l=window.scrollY??0,a=e-c+o,n=s-r+l;t.clonedDraggedNode.style.transform=`translate3d(${a}px, ${n}px, 0px)`,i&&(t.clonedDraggedNode.style.opacity="1",Va(t.draggedNodes.map(u=>u.el),t.initialParent.data.config?.longPressClass))}function Mm(t,i,e=!1){const s=_o(t);i.coordinates.x=s.x,i.coordinates.y=s.y,fv(i,e),i.scrollDebounceTimeout&&(clearTimeout(i.scrollDebounceTimeout),i.scrollDebounceTimeout=void 0),i.scrollDebounceTimeout=setTimeout(()=>{si(i)&&Ju(i.coordinates,t,i)},16);const c=xx(s);if(!c){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e:t,state:i}}));return}const r={e:t,targetData:c,state:i};"node"in c?c.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:r})):c.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:r}))}function dx(t,i){if(!t.targetData.parent.data.config.nativeDrag)return;const{x:s,y:c}=_o(t.e);i.coordinates.y=c,i.coordinates.x=s,jn(t.e),Ja(t.e),Tn(i)&&Ju({x:s,y:c},t.e,i),t.targetData.parent.el===i.currentParent?.el?dv(t,i):Zu(t,i)}function hx(t,i){if(!t.targetData.parent.data.config.nativeDrag)return;jn(t.e),Ja(t.e);const{x:s,y:c}=_o(t.e);Tn(i)&&Ju({x:s,y:c},t.e,i),Zu(t,i)}function px(t){t.detail.targetData.parent.el!==t.detail.state.currentParent.el&&Zu(t.detail,t.detail.state)}function mx({currentParent:t,targetParent:i,initialParent:e,draggedNodes:s,state:c}){if(i.el===t.el)return!1;const r=i.data.config;if(s[0].el.contains(i.el)||r.dropZone===!1)return!1;const o=e.data.config;return r.accepts?r.accepts(i,e,t,c):!(!r.group||r.group!==o.group)}function gx(t,i){jn(t.e)}function vx(t,i){jn(t.e)}function bx(t,i,e,s){if(i.affectedNodes.map(u=>u.data.value).includes(t.targetData.node.data.value))return!1;if(i.remapJustFinished)return i.remapJustFinished=!1,(t.targetData.node.data.value===i.currentTargetValue||i.draggedNodes.map(u=>u.el).includes(t.targetData.node.el))&&(i.currentTargetValue=t.targetData.node.data.value),!1;if(i.preventEnter)return!1;if(i.draggedNodes.map(u=>u.el).includes(t.targetData.node.el))return i.currentTargetValue=void 0,!1;if(t.targetData.node.data.value===i.currentTargetValue||t.targetData.parent.el!==i.currentParent?.el||t.targetData.parent.data.config.sortable===!1||t.targetData.node.el.contains(i.draggedNodes[0].el))return!1;const c=t.targetData.node.el.getBoundingClientRect(),r=i.draggedNode.el.getBoundingClientRect(),o=c.y-r.y,l=c.x-r.x;let a;Math.abs(o)>Math.abs(l)?a=o>0?"above":"below":a=l>0?"left":"right";const n=i.currentParent.data.config.threshold;switch(a){case"left":if(e>c.x+c.width*n.horizontal)return i.incomingDirection="left",!0;break;case"right":if(e<c.x+c.width*(1-n.horizontal))return i.incomingDirection="right",!0;break;case"above":if(s>c.y+c.height*n.vertical)return i.incomingDirection="above",!0;break;case"below":if(s<c.y+c.height*(1-n.vertical))return i.incomingDirection="below",!0;break}return!1}function dv(t,i){const{x:e,y:s}=_o(t.e);if(!bx(t,i,e,s))return;const c=i.draggedNode.data.index>t.targetData.node.data.index?[t.targetData.node.data.index,i.draggedNode.data.index]:[i.draggedNode.data.index,t.targetData.node.data.index];i.targetIndex=t.targetData.node.data.index,i.affectedNodes=t.targetData.parent.data.enabledNodes.filter(r=>c[0]<=r.data.index&&r.data.index<=c[1]&&r.el!==i.draggedNode.el),t.targetData.parent.data.config.performSort({parent:t.targetData.parent,draggedNodes:i.draggedNodes,targetNodes:[t.targetData.node]})}function ni(t){function i(e){const s=qi.get(e);if(!s)return;const c=gn.get(e.parentNode);if(c)return{node:{el:e,data:s},parent:{el:e.parentNode,data:c}}}return e=>{const s=i(e.currentTarget);if(s)return t({e,targetData:s},He)}}function Zu(t,i){jn(t.e),mx({currentParent:i.currentParent,targetParent:t.targetData.parent,initialParent:i.initialParent,draggedNodes:i.draggedNodes,state:i})&&(t.targetData.parent.data.config.performTransfer({currentParent:i.currentParent,targetParent:t.targetData.parent,initialParent:i.initialParent,draggedNodes:i.draggedNodes,initialIndex:i.initialIndex,state:i,targetNodes:"node"in t.targetData?[t.targetData.node]:[]}),i.currentParent=t.targetData.parent,i.transferred=!0)}function su(t){function i(e){const s=gn.get(e);if(s)return{parent:{el:e,data:s}}}return e=>{const s=i(e.currentTarget);if(s)return t({e,targetData:s},He)}}function uo(t,i,e=!1){function s(c,r){qi.set(c,r)}for(const c of t){const r=qi.get(c),o=yx(c,i,r,e);o&&s(c,o)}}function yx(t,i,e,s=!1){if(!i)return;const c=iv(i);if(!c.length)return;if(!e){t.classList.add(...c);return}const r=[];for(const o of c)t.classList.contains(o)?t.classList.contains(o)&&s===!1&&r.push(o):t.classList.add(o);return e.privateClasses=r,e}function Va(t,i){if(!i)return;const e=iv(i);if(e.length)for(const s of t){if(!Qu(s)){s.classList.remove(...e);continue}const c=qi.get(s)||gn.get(s);if(c)for(const r of e)c.privateClasses.includes(r)||s.classList.remove(r)}}function Im(t,i,e,s,c){const o=c.axis==="x",l=t===document.scrollingElement,a=o?"scrollLeft":"scrollTop",n=o?"clientWidth":"clientHeight",u=o?"offsetWidth":"offsetHeight",h=o?"scrollWidth":"scrollHeight",d=o?i.clientX:i.clientY,f=o?s.left:s.top,m=o?e.overflowX:e.overflowY;if(l){const g=t[a],p=t[n],v=g>0,b=g+p<(o?c.state.rootScrollWidth||0:t[h]);return o?{left:v&&d<p*.075,right:b&&d>p*(1-.075)}:{up:v&&d<p*.075,down:b&&d>p*(1-.075)}}if((m==="auto"||m==="scroll")&&t!==document.body&&t!==document.documentElement){const g=t[h],p=t[u],v=t[a],b=v>0,x=v<g-p;return o?{left:b&&d<f+p*.075,right:x&&d>f+p*(1-.075)}:{up:b&&d<f+p*.075,down:x&&d>f+p*(1-.075)}}return o?{left:!1,right:!1}:{up:!1,down:!1}}function wx(t,i,e,s){if(!Tn(e)||!e.draggedNode)return;e.preventEnter=!0;const c=s.axis==="x",r=s.direction==="positive"?1:-1,o=20,l=c?"lastScrollDirectionX":"lastScrollDirectionY",a=c?"frameIdX":"frameIdY";e[a]!==void 0&&(cancelAnimationFrame(e[a]),e[a]=void 0),e[l]=s.direction;const n=()=>{if(!Tn(e)||!e.draggedNode){e[a]!==void 0&&(cancelAnimationFrame(e[a]),e[a]=void 0);return}const u=c?"scrollLeft":"scrollTop",h=c?"clientWidth":"clientHeight",d=c?"scrollWidth":"scrollHeight",f=t[u],m=t[h],g=t[d];if(!(r>0?f+m<g:f>0)){e[a]=void 0,e[l]=void 0;return}t[u]+=o*r,si(e)&&fv(e),e[a]=requestAnimationFrame(n)};e[a]=requestAnimationFrame(n)}function Rm(t,i,e){const s=t.getBoundingClientRect();return i>=s.left&&i<=s.right&&e>=s.top&&e<=s.bottom}function Ju(t,i,e){if(!Tn(e)||!e.draggedNode)return;qf(e);const{x:s,y:c}=t;let r=!1;const o=(a,n,u)=>{wx(u,i,e,{axis:a,direction:n}),r=!0},l=a=>{const n=window.getComputedStyle(a),u=a.getBoundingClientRect(),h=Im(a,i,n,u,{axis:"x",state:e}),d=Im(a,i,n,u,{axis:"y"});(h.left||h.right)&&(e.lastScrollContainerX=a,o("x",h.right?"positive":"negative",a)),(d.up||d.down)&&(e.lastScrollContainerY=a,o("y",d.down?"positive":"negative",a))};if(e.lastScrollContainerX&&Rm(e.lastScrollContainerX,s,c)&&l(e.lastScrollContainerX),!r&&e.lastScrollContainerY&&Rm(e.lastScrollContainerY,s,c)&&l(e.lastScrollContainerY),!r){let a=document.elementFromPoint(s,c);for(;a&&!(r&&e.lastScrollContainerX&&e.lastScrollContainerY);)a instanceof HTMLElement&&l(a),a=a.parentElement}if(!r){const a=document.scrollingElement;a instanceof HTMLElement&&l(a)}r||qf(e)}function xx(t){let i=document.elementFromPoint(t.x,t.y);if(!Qu(i))return;let e,s=!0;for(;i&&s;){if(qi.has(i)||gn.has(i)){s=!1,e=gn.has(i);break}i=i.parentNode}if(e){const c=gn.get(i);return c?{parent:{el:i,data:c}}:void 0}else{const c=qi.get(i);if(!c)return;const r=gn.get(i.parentNode);return r?{node:{el:i,data:c},parent:{el:i.parentNode,data:r}}:void 0}}function Qu(t){return t instanceof HTMLElement&&t.parentNode instanceof HTMLElement}function Pu(t,i){const e=new AbortController;for(const s in i){const c=i[s];t.addEventListener(s,c,{signal:e.signal,passive:!1,capture:s==="focus"||s==="blur"})}return e}function Lm(t){if(t instanceof HTMLElement)return t;if(t.value instanceof HTMLElement)return t.value;if("$el"in t&&t.$el instanceof HTMLElement)return t.$el}function _x(t,i){Array.isArray(t)||(t=[t]);for(const e of t){const s=Lm(e);if(s)return i(s);const c=y.watch(e,r=>{if(!r)return;const o=Lm(r);o?i(o):console.warn("Invalid parent element",r),c()})}}var Td=new WeakMap;function Sx(t){const i=Td.get(t);return i?"value"in i?i.value:i:(console.warn("No values found for parent element"),[])}function kx(t,i){const e=Td.get(i);e&&"value"in e&&(e.value=t)}function Cx(t){Ed&&(Array.isArray(t)||(t=[t]),t.forEach(i=>{const{parent:e,values:s,...c}=i;_x(e,Ax(c,s))}))}function Ax(t,i){return e=>{Td.set(e,i),F8({parent:e,getValues:Sx,setValues:kx,config:{...t}})}}const Nx={class:"text-base text-high-emphasis mb-0"},Ex={class:"d-flex justify-space-between"},Tx={class:"d-flex justify-center"},Px=y.defineComponent({__name:"AdjustColumnsDialog",props:y.mergeModels({showAdjustColumns:{type:Boolean}},{sortedHeaders:{default:[]},sortedHeadersModifiers:{}}),emits:y.mergeModels(["update:showAdjustColumns"],["update:sortedHeaders"]),setup(t,{emit:i}){const e=Rs(),s=i,c=t,r=y.useModel(t,"sortedHeaders"),o=y.ref(),l=h=>{s("update:showAdjustColumns",h)},a=y.ref(r.value),n=h=>{r.value[h].isVisible=!r.value[h].isVisible};y.watch(()=>r.value,h=>a.value=h),y.watch(()=>c.showAdjustColumns,h=>{h&&setTimeout(()=>{Cx({parent:o,values:a,draggable:d=>d.classList.contains("kanban-card"),plugins:[N8()],handleEnd:d=>{cv(d),u(d)}})},100)});const u=h=>{const d=r.value.find(f=>f.sequence===h.initialIndex);if(h.initialIndex<h.targetIndex)for(const f of r.value)f.sequence>h.initialIndex&&f.sequence<=h.targetIndex&&f.sequence--;else for(const f of r.value)f.sequence<h.initialIndex&&f.sequence>=h.targetIndex&&f.sequence++;d&&(d.sequence=h.targetIndex)};return(h,d)=>(y.openBlock(),y.createBlock(Cd,{"model-value":c.showAdjustColumns,"onUpdate:modelValue":l,width:"500"},{default:y.withCtx(()=>[y.createVNode(ma,{title:y.unref(e)("adjust_columns")},{default:y.withCtx(()=>[y.createVNode(al,null,{default:y.withCtx(()=>[y.createElementVNode("div",{ref_key:"refHeadersBoard",ref:o,class:"kanban-board-drop-zone mb-4 rounded d-flex flex-column gap-4"},[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(a.value,(f,m)=>(y.openBlock(),y.createElementBlock(y.Fragment,{key:f.sequence},[f?(y.openBlock(),y.createBlock(ma,{key:0,variant:"outlined",ripple:!1,link:!1,class:"kanban-card position-relative"},{default:y.withCtx(()=>[y.createVNode(al,{class:"d-flex flex-column gap-2"},{default:y.withCtx(()=>[y.createElementVNode("div",Nx,[y.createElementVNode("div",Ex,[y.createElementVNode("div",Tx,[y.createVNode(nr,{class:"drag-handler",size:"20",icon:"ri-draggable"}),y.createTextVNode(" "+y.toDisplayString(f.title),1)]),y.createVNode(nr,{onClick:g=>n(m),class:"drag-handler",size:"18",icon:f.isVisible?"ri-eye-fill":"ri-eye-off-fill"},null,8,["onClick","icon"])])])]),_:2},1024)]),_:2},1024)):y.createCommentVNode("",!0)],64))),128))],512)]),_:1})]),_:1},8,["title"])]),_:1},8,["model-value"]))}}),Mx=xo(Px,[["__scopeId","data-v-209af8cf"]]);function Ix({tableRef:t,props:i,pagination:e,maxHeightVH:s=75,hysteresis:c=8}){const r=y.ref(void 0),o=y.ref(!0),l=y.ref(!1),a=y.ref(null),n=y.ref(null),u=y.ref(null);let h=null,d=null,f=null;const m=()=>{a.value=t.value?.$el??t.value??null,n.value=a.value?.querySelector(".v-table__wrapper")??null,u.value=n.value?.querySelector(".v-table__wrapper tbody")??n.value?.querySelector(".v-table__wrapper table")??a.value?.querySelector("tbody")??null},g=()=>u.value?.getBoundingClientRect().height??null,p=()=>window.innerHeight*(s/100),v=A=>{o.value=!A,l.value=!0,r.value=A?`${s}vh`:void 0,requestAnimationFrame(()=>l.value=!1)},b=()=>{if(l.value)return;if(!n.value){r.value=void 0;return}const A=g();if(A==null)return;const M=p(),V=r.value!==null,W=A>M+c,R=A<M-c;V&&W?v(!0):V&&R&&v(!1)},x=()=>{f==null&&!i.disableScroll&&(f=requestAnimationFrame(()=>{f=null,b()}))};return y.onMounted(async()=>{await y.nextTick(),m();const A=n.value;if(!A)return;h=new ResizeObserver(()=>x()),h.observe(A);const M=u.value;M&&(d=new MutationObserver(()=>x()),d.observe(M,{childList:!0,subtree:!0})),window.addEventListener("resize",x,{passive:!0}),y.watch([()=>i.items.length,()=>e.value.pageSize,()=>e.value.page],async()=>{await y.nextTick(),x()},{flush:"post"}),y.watch(()=>i.headers.map(V=>({v:V.value,vis:V.isVisible})),x,{deep:!0,flush:"post"}),x()}),y.onBeforeUnmount(()=>{h?.disconnect(),d?.disconnect(),f!=null&&cancelAnimationFrame(f),window.removeEventListener("resize",x),h=d=null,f=null}),{tableHeight:r,tableHideOverflow:o}}const Rx=y.defineComponent({__name:"GenericItemActions",props:{headers:{}},setup(t){const i=t,e=y.computed(()=>{const s=i.headers.filter(r=>r.isVisible),c=i.headers.find(r=>r.value=="actions");return c&&c.sequence>=s.length-1});return(s,c)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["d-flex gap-1 align-center w-10",e.value?"justify-end":""])},[y.renderSlot(s.$slots,"default")],2))}}),Lx={class:"d-flex justify-end mt-3"},Ox=y.defineComponent({__name:"TableColumnFilterMenu",props:{column:{},filterFn:{type:Function}},setup(t){const i=Rs(),e=t,s=y.ref({}),c=y.ref({}),r=y.ref(""),o=()=>{console.warn(i("filterFnNotDefined"))},l=n=>{if(c.value[n]=!1,s.value[n]=r.value,(s.value[n]===""||s.value[n]==null)&&delete s.value[n],e.filterFn){const u=Object.keys(s.value).map(h=>({field:h,value:s.value[h]}));e.filterFn(u)}else o()},a=n=>{c.value[n]=!1};return y.watch(()=>c.value[e.column.value],n=>{n&&(r.value=s.value[e.column.value])}),(n,u)=>(y.openBlock(),y.createBlock(vl,{"close-on-content-click":!1,"offset-y":"","offset-x":"",modelValue:c.value[t.column.value],"onUpdate:modelValue":u[3]||(u[3]=h=>c.value[t.column.value]=h)},{activator:y.withCtx(({props:h})=>[y.createVNode(nr,y.mergeProps(h,{icon:"ri-filter-line",color:s.value[t.column.value]?"success":"medium-emphasis",size:"small",class:"cursor-pointer"}),{default:y.withCtx(()=>[y.createVNode(od,{activator:"parent",text:y.unref(i)("filterColumn")},null,8,["text"])]),_:1},16,["color"])]),default:y.withCtx(()=>[y.createVNode(ma,{"min-width":"250",class:"pa-3"},{default:y.withCtx(()=>[y.createVNode(Ci,{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=h=>r.value=h),label:y.unref(i)("filterBy"),density:"compact",variant:"outlined","hide-details":"",clearable:""},null,8,["modelValue","label"]),y.createElementVNode("div",Lx,[y.createVNode(Dr,{variant:"text",size:"small",color:"grey",onClick:u[1]||(u[1]=h=>a(t.column.value))},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(y.unref(i)("cancel")),1)]),_:1}),y.createVNode(Dr,{variant:"flat",size:"small",color:"primary",class:"ml-2",onClick:u[2]||(u[2]=h=>l(t.column.value))},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(y.unref(i)("ok")),1)]),_:1})])]),_:1})]),_:1},8,["modelValue"]))}}),Fx=["textContent"],Bx={class:"ms-2"},jx={class:"ms-2"},Dx={class:"ms-2"},Vx={class:"ms-2"},zx=y.defineComponent({__name:"TableColumnActionsMenu",props:{column:{},isSorted:{type:Function},getSortIcon:{type:Function},toggleSort:{type:Function},filterFn:{type:Function},isLastColumn:{type:Boolean}},emits:["hideColumn","moveLeft","moveRight"],setup(t,{emit:i}){const e=Rs(),s=i,c=y.ref({});return(r,o)=>(y.openBlock(),y.createBlock(vl,{"close-on-content-click":!1,"offset-y":"","offset-x":"",modelValue:c.value[t.column.value],"onUpdate:modelValue":o[5]||(o[5]=l=>c.value[t.column.value]=l)},{activator:y.withCtx(({props:l})=>[y.createElementVNode("span",y.mergeProps(l,{class:["me-2 text-no-wrap table-column-actions-menu__activator",{"cursor-pointer":t.column.sortable,"flex-grow-1 text-end":t.isLastColumn}]}),[y.createElementVNode("span",{textContent:y.toDisplayString(t.column.title)},null,8,Fx),t.isSorted(t.column)?(y.openBlock(),y.createBlock(nr,{key:0,onClick:o[0]||(o[0]=y.withModifiers(a=>t.toggleSort(t.column),["stop"])),icon:t.getSortIcon(t.column),color:"medium-emphasis"},null,8,["icon"])):y.createCommentVNode("",!0)],16)]),default:y.withCtx(()=>[y.createVNode(ma,{"min-width":"250",class:"pa-3"},{default:y.withCtx(()=>[t.column.sortable?(y.openBlock(),y.createBlock(mi,{key:0,onClick:o[1]||(o[1]=l=>(t.toggleSort(t.column),c.value[t.column.value]=!1))},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-arrow-up-down-line"}),y.createElementVNode("span",Bx,y.toDisplayString(y.unref(e)("classify")),1)]),_:1})):y.createCommentVNode("",!0),t.column.hideDisabled?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(mi,{key:1,onClick:o[2]||(o[2]=l=>(s("hideColumn",t.column),c.value[t.column.value]=!1))},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-eye-off-fill"}),y.createElementVNode("span",jx,y.toDisplayString(y.unref(e)("hideColumn")),1)]),_:1})),y.createVNode(mi,{onClick:o[3]||(o[3]=l=>(s("moveLeft",t.column),c.value[t.column.value]=!1))},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-expand-left-line"}),y.createElementVNode("span",Dx,y.toDisplayString(y.unref(e)("moveLeft")),1)]),_:1}),y.createVNode(mi,{onClick:o[4]||(o[4]=l=>(s("moveRight",t.column),c.value[t.column.value]=!1))},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-expand-right-line"}),y.createElementVNode("span",Vx,y.toDisplayString(y.unref(e)("moveRight")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),Ux={class:"position-sticky top-0"},$x={class:"d-flex justify-space-between align-center"},qx=y.defineComponent({__name:"TableHeader",props:y.mergeModels({columns:{},isSorted:{type:Function},getSortIcon:{type:Function},toggleSort:{type:Function},filterFn:{type:Function}},{sortedHeaders:{default:[]},sortedHeadersModifiers:{}}),emits:["update:sortedHeaders"],setup(t){const i=y.useModel(t,"sortedHeaders"),e=o=>{i.value.find(l=>l.value===o.value).isVisible=!1},s=o=>{const l=i.value.find(a=>a.value===o.value).sequence;if(l>=0){const a=i.value.findIndex(u=>u.sequence===l),n=i.value.findIndex(u=>u.sequence===l-1);i.value[a].sequence=l-1,i.value[n].sequence=l}},c=o=>{const l=i.value.find(a=>a.value===o.value).sequence;if(l<i.value.length-1){const a=i.value.findIndex(u=>u.sequence===l),n=i.value.findIndex(u=>u.sequence===l+1);i.value[a].sequence=l+1,i.value[n].sequence=l}},r=o=>o.filterable;return(o,l)=>(y.openBlock(),y.createElementBlock("tr",Ux,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(t.columns,(a,n)=>(y.openBlock(),y.createElementBlock("th",{key:a.title,scope:"col",style:y.normalizeStyle(a.width?`min-width: ${a.width}; max-width: ${a.width}`:"")},[y.createElementVNode("div",$x,[y.createVNode(zx,{column:a,getSortIcon:t.getSortIcon,isSorted:t.isSorted,toggleSort:t.toggleSort,isLastColumn:n===t.columns.length-1,onHideColumn:e,onMoveLeft:s,onMoveRight:c},null,8,["column","getSortIcon","isSorted","toggleSort","isLastColumn"]),r(a)?(y.openBlock(),y.createBlock(Ox,{key:0,column:a,filterFn:t.filterFn},null,8,["column","filterFn"])):y.createCommentVNode("",!0)])],4))),128))]))}}),Pi=t=>t.replace(/\D/g,""),hv=t=>{if(t==null)return"";const i=typeof t=="number"?t:parseFloat(String(t).replace(",","."))||0;return new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(i)},Hx=t=>hv(t).replace("R$","").trim(),Wx=t=>(Number(Pi(String(t)))/100).toLocaleString("pt-BR",{minimumFractionDigits:2}),Om=t=>{if(!t&&t!==0)return"0,00000";const i=typeof t=="string"?parseFloat(t.replace(/\./g,"").replace(",",".")):t;return(Number.isNaN(i)?0:i).toLocaleString("pt-BR",{minimumFractionDigits:5,maximumFractionDigits:5})},Gx=t=>(Number(Pi(t))/100).toLocaleString("pt-BR",{minimumFractionDigits:2}),Xx=t=>{const i=t.replace(/\D/g,"").padStart(4,"0").slice(-4),e=Math.min(parseInt(i.slice(0,2)),23),s=Math.min(parseInt(i.slice(2)),59);return`${e.toString().padStart(2,"0")}:${s.toString().padStart(2,"0")}`},Kx=t=>{const i=Pi(t).slice(0,11);return i?i.length>=11?i.replace(/^(\d{2})(\d{5})(\d{4})$/,"($1) $2-$3"):i.length>=7?i.replace(/^(\d{2})(\d{4})(\d{0,4})$/,"($1) $2-$3"):i.length>=3?i.replace(/^(\d{2})(\d{0,5})$/,"($1) $2"):i.replace(/^(\d{0,2})$/,"($1"):""},Yx=t=>t?Pi(t).replace(/^(\d{4})(\d{2})(\d{2}).*/,"$1.$2.$3").replace(/(\.\d{2})\d+$/,"$1"):"",pv=t=>t?Pi(t).replace(/(\d{2})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1/$2").replace(/(\d{4})(\d)/,"$1-$2").replace(/(-\d{2})\d+$/,"$1"):"",mv=t=>t?Pi(t).replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{2})$/,"$1-$2"):"",Zx=t=>t?Pi(t).replace(/(\d{5})(\d)/,"$1-$2"):"",Jx=t=>{const i=Pi(t);return i.length>11?pv(i):mv(i)},Qx=t=>Pi(t).replace(/(\d{2})(\d)/,"$1/$2").replace(/(\d{2})(\d)/,"$1/$2").replace(/(\/\d{4})\d+$/,"$1"),e_=t=>Pi(t).replace(/(\d{2})(\d)/,"$1/$2").replace(/(\/\d{7})\d+$/,"$1"),t_=t=>Pi(t).replace(/(\d{2})(\d)/,"$1/$2").replace(/(\/\d{7})\d+$/,"$1"),r_=[{mask:"cnpj",fn:pv},{mask:"cpf",fn:mv},{mask:"currency",fn:hv},{mask:"value",fn:Hx},{mask:"phone",fn:Kx},{mask:"brl",fn:Wx},{mask:"brlfivehouses",fn:Om},{mask:"brlfivedecimalplaces",fn:Om},{mask:"hour",fn:Xx},{mask:"cep",fn:Zx},{mask:"weight",fn:Gx},{mask:"ncm",fn:Yx},{mask:"documentNumber",fn:Jx},{mask:"date",fn:Qx},{mask:"di",fn:e_},{mask:"dir",fn:t_}],n_=t=>{const i=r_.find(e=>e.mask===t);return i?i.fn:e=>e},Hf=(t,i)=>t?n_(t)(i):i;function i_(){let t=null;function i(s,c){return(...r)=>{t&&clearTimeout(t),t=setTimeout(()=>s(...r),c)}}function e(){t&&clearTimeout(t),t=null}return{debounce:i,clearDebounce:e}}const a_=y.defineComponent({__name:"TableCell",props:{header:{},item:{},disableEdit:{type:Boolean},editFn:{type:Function}},setup(t){const i=Rs(),e=t,s=y.ref(""),c=y.ref(!1),r=y.ref(null),{debounce:o,clearDebounce:l}=i_(),a=()=>{e.item[e.header.value]=s.value;const v=e.editFn??e.header.editFn;v?v(e.item.id,e.header.value,s.value):p()},n=o(a,1e3),u=async()=>{c.value=!1,l(),a()},h=async()=>{n()},d=()=>{try{if(e.header.displayValue)return e.header.displayValue(e.item);const v=e.header.value,b=v.split(".");if(b.length==1)return Hf(e.header.mask,e.item[v]);{let x=e.item;for(let A of b)x=x[A];return Hf(e.header.mask,x)}}catch(v){return console.error(`${i("errorGettingHeaderValue")} ${e.header.value}:`,v),""}},f=()=>c.value,m=()=>{c.value=!0,s.value=e.item[e.header.value],y.nextTick(()=>{r.value?.focus()})},g=()=>!(e.disableEdit||!e.header.editable),p=()=>{console.warn(i("editFnNotDefined"))};return(v,b)=>(y.openBlock(),y.createBlock(f8,null,{default:y.withCtx(({isHovering:x,props:A})=>[y.createVNode(ys,y.mergeProps({class:"d-flex justify-space-between position-relative align-center"},A),{default:y.withCtx(()=>[y.createVNode(Nn,{cols:g()?11:12},{default:y.withCtx(()=>[f()?y.withDirectives((y.openBlock(),y.createElementBlock("input",{key:1,ref_key:"editInput",ref:r,"onUpdate:modelValue":b[1]||(b[1]=M=>s.value=M),onBlur:b[2]||(b[2]=M=>u()),onInput:b[3]||(b[3]=M=>h()),style:{"font-size":"inherit",padding:"0",margin:"0",border:"none",background:"transparent",outline:"none"},class:"ma-0 w-100",autofocus:""},null,544)),[[y.vModelText,s.value]]):(y.openBlock(),y.createElementBlock("p",{key:0,class:"item-cell text-truncate",style:{"max-width":"240px","vertical-align":"middle",padding:"0",margin:"0"},onClick:b[0]||(b[0]=M=>g()&&m())},[y.createTextVNode(y.toDisplayString(d())+" ",1),y.createVNode(od,{activator:"parent",text:d(),location:"top"},null,8,["text"])]))]),_:1},8,["cols"]),x&&g()&&!f()?(y.openBlock(),y.createBlock(nr,{key:0,class:"cursor-pointer position-absolute right-0",onClick:b[4]||(b[4]=M=>m()),size:"14"},{default:y.withCtx(()=>[...b[5]||(b[5]=[y.createTextVNode(" ri-pencil-line ",-1)])]),_:1})):y.createCommentVNode("",!0)]),_:2},1040)]),_:1}))}}),s_={key:0,class:"card-content"},o_=y.defineComponent({__name:"GenericDataTable",props:y.mergeModels({items:{},headers:{},loading:{type:Boolean},noItemsText:{},disableScroll:{type:Boolean},disableEdit:{type:Boolean},filterFn:{type:Function},editFn:{type:Function}},{sortedHeaders:{default:[]},sortedHeadersModifiers:{},pagination:{default:{total:0,page:1,pageSize:10,pages:1}},paginationModifiers:{},ordering:{default:""},orderingModifiers:{}}),emits:y.mergeModels(["update:sort-by"],["update:sortedHeaders","update:pagination","update:ordering"]),setup(t,{emit:i}){const e=i,s=y.useModel(t,"sortedHeaders"),c=y.useModel(t,"pagination"),r=y.useModel(t,"ordering"),o=y.computed({get(){if(!r.value)return[];const h=r.value.replace(/\__/g,".").split(""),d=h[0]==="-";return[{key:d?h.slice(1).join(""):h.join(""),order:d?"desc":"asc"}]},set(h){if(!h.length){r.value="",e("update:sort-by");return}const d=h[0];r.value=`${d.order==="desc"?"-":""}${d.key.replace(/\./g,"__")}`,e("update:sort-by")}}),l=t,a=y.ref(null),{tableHeight:n,tableHideOverflow:u}=Ix({tableRef:a,props:l,pagination:c,maxHeightVH:75,hysteresis:8});return(h,d)=>(y.openBlock(),y.createBlock(t8,{"sort-by":o.value,"onUpdate:sortBy":d[1]||(d[1]=f=>o.value=f),loading:t.loading,"items-per-page":c.value.pageSize,page:c.value.page,items:t.items,headers:t.headers,"no-data-text":t.noItemsText,"v-bind":l,"fixed-footer":"","fixed-header":"",density:"compact",ref_key:"tableRef",ref:a,height:y.unref(n)+10,class:y.normalizeClass({"hide-overflow-y":y.unref(u)}),style:y.normalizeStyle([y.unref(u)?"overflow-y: hidden !important":null,{"overflow-y":"hidden"}])},y.createSlots({headers:y.withCtx(({columns:f,isSorted:m,getSortIcon:g,toggleSort:p})=>[y.createVNode(qx,{columns:f,isSorted:m,getSortIcon:g,toggleSort:p,filterFn:t.filterFn,sortedHeaders:s.value,"onUpdate:sortedHeaders":d[0]||(d[0]=v=>s.value=v)},null,8,["columns","isSorted","getSortIcon","toggleSort","filterFn","sortedHeaders"])]),"item.actions":y.withCtx(({item:f})=>[y.createVNode(Rx,y.mergeProps({headers:t.headers},h.$slots),{default:y.withCtx(()=>[y.renderSlot(h.$slots,"actions",{item:f})]),_:2},1040,["headers"])]),bottom:y.withCtx(()=>[]),_:2},[y.renderList(t.headers.filter(f=>f.value!="actions"),f=>({name:`item.${f.value}`,fn:y.withCtx(({item:m})=>[h.$slots[f.value]?(y.openBlock(),y.createElementBlock("div",s_,[y.renderSlot(h.$slots,f.value,{item:m})])):(y.openBlock(),y.createBlock(a_,{key:1,header:f,item:m,"disable-edit":t.disableEdit,"edit-fn":t.editFn},null,8,["header","item","disable-edit","edit-fn"]))])}))]),1032,["sort-by","loading","items-per-page","page","items","headers","no-data-text","v-bind","height","class","style"]))}}),l_=y.defineComponent({__name:"GenericTable",props:y.mergeModels({keyWord:{},noItemsText:{},hideCreate:{type:Boolean},hideSearch:{type:Boolean},hideHeader:{type:Boolean},hidePagination:{type:Boolean},hideSortHeader:{type:Boolean},loading:{type:Boolean},filterFn:{type:Function},editFn:{type:Function},variant:{},disableEdit:{type:Boolean}},{search:{},searchModifiers:{},headers:{default:[]},headersModifiers:{},items:{default:[]},itemsModifiers:{},pagination:{default:{total:0,page:1,page_size:10,pages:1}},paginationModifiers:{},ordering:{default:""},orderingModifiers:{}}),emits:y.mergeModels(["createItem","update:options","update:search"],["update:search","update:headers","update:items","update:pagination","update:ordering"]),setup(t,{emit:i}){const e=y.useSlots(),s=Object.keys(e),c=y.useModel(t,"search"),r=y.useModel(t,"headers"),o=y.useModel(t,"items"),l=y.useModel(t,"pagination"),a=y.useModel(t,"ordering"),n=i,u=y.ref(!1),h=y.computed(()=>[...r.value].sort((d,f)=>d.sequence-f.sequence));return y.onMounted(()=>{l.value.page=1}),(d,f)=>(y.openBlock(),y.createElementBlock(y.Fragment,null,[y.createVNode(ma,{variant:t.variant??"elevated",class:"py-0"},{default:y.withCtx(()=>[t.hideHeader?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(C8,{key:0,keyWord:t.keyWord,search:c.value,"onUpdate:search":[f[0]||(f[0]=m=>c.value=m),f[2]||(f[2]=m=>c.value=m)],hideCreate:t.hideCreate,hideSearch:t.hideSearch,hideSortHeader:t.hideSortHeader,onCreateItem:f[1]||(f[1]=m=>d.$emit("createItem")),onShowAdjustColumns:f[3]||(f[3]=m=>u.value=!0)},{"custom-btn":y.withCtx(m=>[y.renderSlot(d.$slots,"custom-btn",y.normalizeProps(y.guardReactiveProps(m)),void 0,!0)]),_:3},8,["keyWord","search","hideCreate","hideSearch","hideSortHeader"])),y.createVNode(o_,y.mergeProps(d.$slots,{pagination:l.value,"onUpdate:pagination":f[4]||(f[4]=m=>l.value=m),ordering:a.value,"onUpdate:ordering":f[5]||(f[5]=m=>a.value=m),sortedHeaders:h.value,"onUpdate:sortedHeaders":f[6]||(f[6]=m=>h.value=m),loading:t.loading,items:o.value,headers:h.value.filter(m=>m.isVisible),filterFn:t.filterFn,"edit-fn":t.editFn,noItemsText:t.noItemsText,"disable-edit":t.disableEdit,"onUpdate:sortBy":f[7]||(f[7]=m=>n("update:options"))}),y.createSlots({_:2},[y.renderList(y.unref(s),m=>({name:m,fn:y.withCtx(g=>[y.renderSlot(d.$slots,m,y.normalizeProps(y.guardReactiveProps(g)),void 0,!0)])}))]),1040,["pagination","ordering","sortedHeaders","loading","items","headers","filterFn","edit-fn","noItemsText","disable-edit"]),l.value?.total>0?(y.openBlock(),y.createBlock(Cg,{key:1,pagination:l.value,"onUpdate:pagination":f[8]||(f[8]=m=>l.value=m),headers:r.value,data:o.value,"hide-pagination":t.hidePagination,"onUpdate:options":f[9]||(f[9]=m=>d.$emit("update:options"))},null,8,["pagination","headers","data","hide-pagination"])):y.createCommentVNode("",!0)]),_:3},8,["variant"]),y.createVNode(Mx,{showAdjustColumns:u.value,"onUpdate:showAdjustColumns":f[10]||(f[10]=m=>u.value=m),sortedHeaders:h.value,"onUpdate:sortedHeaders":f[11]||(f[11]=m=>h.value=m)},null,8,["showAdjustColumns","sortedHeaders"])],64))}}),gv=xo(l_,[["__scopeId","data-v-82196ff9"]]),u_={};function c_(t,i){return y.openBlock(),y.createBlock(ma,{class:"d-flex align-center justify-center h-100 w-100 position-absolute top-0 left-0 bg-surface",style:{"z-index":"2"}},{default:y.withCtx(()=>[y.createVNode(nd,{size:"40",color:"primary",indeterminate:""})]),_:1})}const f_=xo(u_,[["render",c_]]),d_={class:"pa-5 d-flex align-center"},h_={class:"text-h5"},p_=y.defineComponent({__name:"FormTitle",props:{title:{}},emits:["close"],setup(t,{emit:i}){const e=i;return(s,c)=>{const r=y.resolveComponent("IconBtn");return y.openBlock(),y.createElementBlock("div",d_,[y.createElementVNode("h5",h_,y.toDisplayString(t.title),1),y.createVNode(z1),y.renderSlot(s.$slots,"beforeClose"),y.createVNode(r,{class:"text-medium-emphasis",size:"x-small",onClick:c[0]||(c[0]=o=>e("close",!1))},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-close-line",size:"24"})]),_:1})])}}}),vv={props:{isDialogVisible:{type:Boolean,required:!1,default:!1},fields:{type:Array,required:!0,default:()=>[]},title:{type:String,required:!1,default:""},subtitle:{type:String,required:!1,default:""},initialData:{type:Object,required:!1,default:void 0},minWidth:{type:String,required:!1,default:"500px"},width:{type:String,required:!1,default:"600px"},disabled:{type:Boolean,required:!1,default:!1},noActionButtons:{type:Boolean,required:!1,default:!1},noPadding:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},addBtnText:{type:String,required:!1,default:void 0},notClearOnClose:{type:Boolean,required:!1,default:!1}}},m_={class:"pa-0"},g_=y.defineComponent({__name:"FormCardTitle",props:{title:{}},setup(t){return(i,e)=>t.title?(y.openBlock(),y.createBlock(Ad,{key:0,class:"text-center mb-6"},{default:y.withCtx(()=>[y.createElementVNode("p",m_,y.toDisplayString(t.title),1)]),_:1})):y.createCommentVNode("",!0)}}),v_=y.defineComponent({__name:"FormActionsButtons",props:{hideCancelButton:{type:Boolean},loading:{type:Boolean},addBtnText:{},disableAddButton:{type:Boolean}},emits:["cancel","submit"],setup(t,{emit:i}){const e=i,s=Rs();return(c,r)=>(y.openBlock(),y.createBlock(ys,{class:"ma-0 gap-4 pa-5"},{default:y.withCtx(()=>[t.hideCancelButton?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(Nn,{key:0,class:"pa-0"},{default:y.withCtx(()=>[y.createVNode(Dr,{class:"w-100",variant:"outlined",color:"secondary",onClick:r[0]||(r[0]=o=>e("cancel"))},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(y.unref(s)("cancel")),1)]),_:1})]),_:1})),y.createVNode(Nn,{class:"pa-0"},{default:y.withCtx(()=>[y.createVNode(Dr,{disabled:t.disableAddButton||t.loading,class:"w-100",type:"submit",onClick:r[1]||(r[1]=o=>e("submit"))},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(t.addBtnText??y.unref(s)("save")),1)]),_:1},8,["disabled"])]),_:1})]),_:1}))}}),b_=t=>Array.isArray(t.condition)&&t.condition.length>0?t.condition.every(i=>i):t.type!=="hidden",ff=t=>{const s=t.cols??12,r=[t.count?-1:0,t.secondField?-4:0,t.prependComponent?-1:0].reduce((o,l)=>o+l,0);return Math.max(s+r,2)},wl={props:{required:{type:Boolean,required:!1,default:!1},type:{type:String,required:!1,default:"text"},autofocus:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:""},prefix:{type:String,required:!1,default:""},suffix:{type:String,required:!1,default:""},prefixIcon:{type:String,required:!1,default:""},suffixIcon:{type:String,required:!1,default:""},suffixOuterIcon:{type:String,required:!1,default:""},disabled:{type:Boolean,required:!1,default:!1},readonly:{type:Boolean,required:!1,default:!1},maxLength:{type:Number,required:!1,default:void 0},precision:{type:Number,required:!1,default:0},maskType:{type:String,required:!1,default:""},minLength:{type:Number,required:!1,default:void 0},hint:{type:String,required:!1,default:""},placeholder:{type:String,required:!1,default:""},errorMessages:{type:[String,Array],required:!1,default:()=>[]},rules:{type:Array,required:!1,default:()=>[]},loading:{type:[Boolean,String],required:!1,default:!1},counter:{type:[Boolean],required:!1,default:!1},prependInnerIcon:{type:String,required:!1,default:""},appendInnerIcon:{type:String,required:!1,default:""}}},bv={props:{items:{type:Array,required:!1,default:()=>[]},multiple:{type:Boolean,required:!1,default:!1},chips:{type:Boolean,required:!1,default:!1},itemTitle:{type:String,required:!1,default:"title"},itemValue:{type:String,required:!1,default:"value"},persistent:{type:Boolean,required:!1,default:!1}}},y_=y.defineComponent({__name:"CInputText",props:y.mergeModels({...wl.props},{modelValue:{},modelModifiers:{}}),emits:y.mergeModels(["click:appendouter","click:clear","click:prepend","click:append"],["update:modelValue"]),setup(t,{emit:i}){const e=i,s=y.ref(null),c=y.useModel(t,"modelValue");return(r,o)=>(y.openBlock(),y.createBlock(Ci,{ref_key:"input",ref:s,modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=l=>c.value=l),type:"text",autofocus:r.autofocus,label:r.label,placeholder:r.placeholder,"error-messages":r.errorMessages,rules:r.rules,maxLength:r.maxLength,minLength:r.minLength,prefix:r.prefix,suffix:r.suffix,disabled:r.disabled,counter:r.counter,"onClick:appendOuter":o[1]||(o[1]=l=>e("click:appendouter")),"onClick:clear":o[2]||(o[2]=l=>e("click:clear")),"onClick:prepend":o[3]||(o[3]=l=>e("click:prepend")),"onClick:append":o[4]||(o[4]=l=>e("click:append"))},null,8,["modelValue","autofocus","label","placeholder","error-messages","rules","maxLength","minLength","prefix","suffix","disabled","counter"]))}}),w_=y.defineComponent({__name:"CInputNumber",props:y.mergeModels({...wl.props},{modelValue:{},modelModifiers:{}}),emits:y.mergeModels(["click:appendouter","click:clear","click:prepend","click:append"],["update:modelValue"]),setup(t,{emit:i}){const e=i,s=y.ref(null),c=y.useModel(t,"modelValue");return(r,o)=>(y.openBlock(),y.createBlock(g8,{ref_key:"input",ref:s,modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=l=>c.value=l),autofocus:r.autofocus,label:r.label,placeholder:r.placeholder,"error-messages":r.errorMessages,rules:r.rules,maxLength:r.maxLength,minLength:r.minLength,prefix:r.prefix,suffix:r.suffix,disabled:r.disabled,counter:r.counter,"control-variant":"hidden",precision:r.precision,"onClick:appendOuter":o[1]||(o[1]=l=>e("click:appendouter")),"onClick:clear":o[2]||(o[2]=l=>e("click:clear")),"onClick:prepend":o[3]||(o[3]=l=>e("click:prepend")),"onClick:append":o[4]||(o[4]=l=>e("click:append"))},null,8,["modelValue","autofocus","label","placeholder","error-messages","rules","maxLength","minLength","prefix","suffix","disabled","counter","precision"]))}}),x_=y.defineComponent({__name:"CInputSelect",props:y.mergeModels({...wl.props,...bv.props},{modelValue:{},modelModifiers:{}}),emits:y.mergeModels(["click:appendouter","click:clear","click:prepend","click:append","update:menu"],["update:modelValue"]),setup(t,{emit:i}){const e=i,s=y.ref(null),c=y.useModel(t,"modelValue");return(r,o)=>(y.openBlock(),y.createBlock(ws,{ref_key:"input",ref:s,modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=l=>c.value=l),autofocus:r.autofocus,label:r.label,disabled:r.disabled,readonly:r.readonly,"error-messages":r.errorMessages,"prepend-icon":r.prefixIcon,"prepend-inner-icon":r.prependInnerIcon,"append-icon":r.suffixIcon,"append-inner-icon":r.appendInnerIcon,suffix:r.suffix,prefix:r.prefix,hint:r.hint,loading:r.loading,placeholder:r.placeholder,"append-outer-icon":r.suffixOuterIcon,counter:r.counter,items:r.items,multiple:r.multiple,chips:r.chips,"item-title":r.itemTitle,"item-value":r.itemValue,"persistent-hint":r.persistent,"onClick:appendOuter":o[1]||(o[1]=l=>e("click:appendouter")),"onClick:clear":o[2]||(o[2]=l=>e("click:clear")),"onClick:prepend":o[3]||(o[3]=l=>e("click:prepend")),"onClick:append":o[4]||(o[4]=l=>e("click:append"))},null,8,["modelValue","autofocus","label","disabled","readonly","error-messages","prepend-icon","prepend-inner-icon","append-icon","append-inner-icon","suffix","prefix","hint","loading","placeholder","append-outer-icon","counter","items","multiple","chips","item-title","item-value","persistent-hint"]))}});var __=Object.defineProperty,S_=(t,i,e)=>i in t?__(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,Yo=(t,i,e)=>S_(t,typeof i!="symbol"?i+"":i,e);const Fm={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Bm=(t,i,e)=>t.replaceAll(i,"").replace(e,".").replace("..",".").replace(/[^.\d]/g,""),jm=(t,i,e)=>{var s;return new Intl.NumberFormat(((s=e.number)==null?void 0:s.locale)??"en",{minimumFractionDigits:t,maximumFractionDigits:i,roundingMode:"trunc"})},k_=(t,i=!0,e)=>{var s,c,r,o;const l=((s=e.number)==null?void 0:s.unsigned)!==!0&&t.startsWith("-")?"-":"",a=((c=e.number)==null?void 0:c.fraction)??0;let n=jm(0,a,e);const u=n.formatToParts(1000.12),h=((r=u.find(p=>p.type==="group"))==null?void 0:r.value)??" ",d=((o=u.find(p=>p.type==="decimal"))==null?void 0:o.value)??".",f=Bm(t,h,d);if(Number.isNaN(parseFloat(f)))return l;const m=f.split(".");if(m[1]!=null&&m[1].length>=1){const p=m[1].length<=a?m[1].length:a;n=jm(p,a,e)}let g=n.format(parseFloat(f));return i?a>0&&f.endsWith(".")&&!f.slice(0,-1).includes(".")&&(g+=d):g=Bm(g,h,d),l+g},yv=t=>JSON.parse(t.replaceAll("'",'"')),C_=(t,i={})=>{const e={...i};t.dataset.maska!=null&&t.dataset.maska!==""&&(e.mask=A_(t.dataset.maska)),t.dataset.maskaEager!=null&&(e.eager=ou(t.dataset.maskaEager)),t.dataset.maskaReversed!=null&&(e.reversed=ou(t.dataset.maskaReversed)),t.dataset.maskaTokensReplace!=null&&(e.tokensReplace=ou(t.dataset.maskaTokensReplace)),t.dataset.maskaTokens!=null&&(e.tokens=N_(t.dataset.maskaTokens));const s={};return t.dataset.maskaNumberLocale!=null&&(s.locale=t.dataset.maskaNumberLocale),t.dataset.maskaNumberFraction!=null&&(s.fraction=parseInt(t.dataset.maskaNumberFraction)),t.dataset.maskaNumberUnsigned!=null&&(s.unsigned=ou(t.dataset.maskaNumberUnsigned)),(t.dataset.maskaNumber!=null||Object.values(s).length>0)&&(e.number=s),e},ou=t=>t!==""?!!JSON.parse(t):!0,A_=t=>t.startsWith("[")&&t.endsWith("]")?yv(t):t,N_=t=>{if(t.startsWith("{")&&t.endsWith("}"))return yv(t);const i={};return t.split("|").forEach(e=>{const s=e.split(":");i[s[0]]={pattern:wv()?new RegExp(s[1],"u"):new RegExp(s[1]),optional:s[2]==="optional",multiple:s[2]==="multiple",repeated:s[2]==="repeated"}}),i},wv=()=>{try{return new RegExp("\\p{L}","u"),!0}catch{return!1}};class E_{constructor(i={}){Yo(this,"opts",{}),Yo(this,"memo",new Map);const e={...i};if(e.tokens!=null){e.tokens=e.tokensReplace?{...e.tokens}:{...Fm,...e.tokens};for(const s of Object.values(e.tokens))typeof s.pattern=="string"&&(s.pattern=wv()?new RegExp(s.pattern,"u"):new RegExp(s.pattern))}else e.tokens=Fm;Array.isArray(e.mask)&&(e.mask.length>1?e.mask=[...e.mask].sort((s,c)=>s.length-c.length):e.mask=e.mask[0]??""),e.mask===""&&(e.mask=null),this.opts=e}masked(i){return this.process(String(i),this.findMask(String(i)))}unmasked(i){return this.process(String(i),this.findMask(String(i)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(i){const e=this.findMask(String(i));if(this.opts.mask==null||e==null)return!1;const s=this.process(String(i),e).length;return typeof this.opts.mask=="string"?s>=this.opts.mask.length:s>=e.length}findMask(i){const e=this.opts.mask;if(e==null)return null;if(typeof e=="string")return e;if(typeof e=="function")return e(i);const s=this.process(i,e.slice(-1).pop()??"",!1);return e.find(c=>this.process(i,c,!1).length>=s.length)??""}escapeMask(i){const e=[],s=[];return i.split("").forEach((c,r)=>{c==="!"&&i[r-1]!=="!"?s.push(r-s.length):e.push(c)}),{mask:e.join(""),escaped:s}}process(i,e,s=!0){if(this.opts.number!=null)return k_(i,s,this.opts);if(e==null)return i;const c=`v=${i},mr=${e},m=${s?1:0}`;if(this.memo.has(c))return this.memo.get(c);const{mask:r,escaped:o}=this.escapeMask(e),l=[],a=this.opts.tokens!=null?this.opts.tokens:{},n=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",h=this.isReversed()?0:r.length-1,d=this.isReversed()?()=>p>-1&&v>-1:()=>p<r.length&&v<i.length,f=x=>!this.isReversed()&&x<=h||this.isReversed()&&x>=h;let m,g=-1,p=this.isReversed()?r.length-1:0,v=this.isReversed()?i.length-1:0,b=!1;for(;d();){const x=r.charAt(p),A=a[x],M=A?.transform!=null?A.transform(i.charAt(v)):i.charAt(v);if(!o.includes(p)&&A!=null?(M.match(A.pattern)!=null?(l[u](M),A.repeated?(g===-1?g=p:p===h&&p!==g&&(p=g-n),h===g&&(p-=n)):A.multiple&&(b=!0,p-=n),p+=n):A.multiple?b&&(p+=n,v-=n,b=!1):M===m?m=void 0:A.optional&&(p+=n,v-=n),v+=n):(s&&!this.isEager()&&l[u](x),M===x&&!this.isEager()?v+=n:m=x,this.isEager()||(p+=n)),this.isEager())for(;f(p)&&(a[r.charAt(p)]==null||o.includes(p));){if(s){if(l[u](r.charAt(p)),i.charAt(v)===r.charAt(p)){p+=n,v+=n;continue}}else r.charAt(p)===i.charAt(v)&&(v+=n);p+=n}}return this.memo.set(c,l.join("")),this.memo.get(c)}}class T_{constructor(i,e={}){Yo(this,"items",new Map),Yo(this,"eventAbortController"),Yo(this,"onInput",s=>{if(s instanceof CustomEvent&&s.type==="input"&&!s.isTrusted&&!s.bubbles)return;const c=s.target,r=this.items.get(c);if(r===void 0)return;const o="inputType"in s&&s.inputType.startsWith("delete"),l=r.isEager(),a=o&&l&&r.unmasked(c.value)===""?"":c.value;this.fixCursor(c,o,()=>this.setValue(c,a))}),this.options=e,this.eventAbortController=new AbortController,this.init(this.getInputs(i))}update(i={}){this.options={...i},this.init(Array.from(this.items.keys()))}updateValue(i){var e;i.value!==""&&i.value!==((e=this.processInput(i))==null?void 0:e.masked)&&this.setValue(i,i.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(i){const e=this.getOptions(this.options);for(const s of i){if(!this.items.has(s)){const{signal:r}=this.eventAbortController;s.addEventListener("input",this.onInput,{capture:!0,signal:r})}const c=new E_(C_(s,e));this.items.set(s,c),queueMicrotask(()=>this.updateValue(s)),s.selectionStart===null&&c.isEager()&&console.warn("Maska: input of `%s` type is not supported",s.type)}}getInputs(i){return typeof i=="string"?Array.from(document.querySelectorAll(i)):"length"in i?Array.from(i):[i]}getOptions(i){const{onMaska:e,preProcess:s,postProcess:c,...r}=i;return r}fixCursor(i,e,s){var c,r;const o=i.selectionStart,l=i.value;if(s(),o===null||o===l.length&&!e)return;const a=i.value,n=l.slice(0,o),u=a.slice(0,o),h=(c=this.processInput(i,n))==null?void 0:c.unmasked,d=(r=this.processInput(i,u))==null?void 0:r.unmasked;if(h===void 0||d===void 0)return;let f=o;n!==u&&(f+=e?a.length-l.length:h.length-d.length),i.setSelectionRange(f,f)}setValue(i,e){const s=this.processInput(i,e);s!==void 0&&(i.value=s.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEach(c=>c(s)):this.options.onMaska(s)),i.dispatchEvent(new CustomEvent("maska",{detail:s})),i.dispatchEvent(new CustomEvent("input",{detail:s.masked})))}processInput(i,e){const s=this.items.get(i);if(s===void 0)return;let c=e??i.value;this.options.preProcess!=null&&(c=this.options.preProcess(c));let r=s.masked(c);return this.options.postProcess!=null&&(r=this.options.postProcess(r)),{masked:r,unmasked:s.unmasked(c),completed:s.completed(c)}}}const df=new WeakMap,P_=(t,i)=>{if(t.arg==null||t.instance==null)return;const e="setup"in t.instance.$.type;t.arg in t.instance?t.instance[t.arg]=i:e&&console.warn("Maska: please expose `%s` using defineExpose",t.arg)},M_=(t,i)=>{var e;const s=t instanceof HTMLInputElement?t:t.querySelector("input");if(s==null||s?.type==="file")return;let c={};if(i.value!=null&&(c=typeof i.value=="string"?{mask:i.value}:{...i.value}),i.arg!=null){const r=o=>{const l=i.modifiers.unmasked?o.unmasked:i.modifiers.completed?o.completed:o.masked;P_(i,l)};c.onMaska=c.onMaska==null?r:Array.isArray(c.onMaska)?[...c.onMaska,r]:[c.onMaska,r]}df.has(s)?(e=df.get(s))==null||e.update(c):df.set(s,new T_(s,c))},xv=y.defineComponent({__name:"CMaskInput",props:y.mergeModels({...wl.props},{modelValue:{},modelModifiers:{}}),emits:y.mergeModels(["click:appendouter","click:clear","click:prepend","click:append"],["update:modelValue"]),setup(t,{emit:i}){const e=t,s=i,c=y.useModel(t,"modelValue"),r=y.ref(""),o=y.ref([]),l=y.computed(()=>{switch(e.maskType){case"ncm":return"####.##.##";case"date":return"##/##/####";case"cpf":return"###.###.###-##";case"cnpj":return"##.###.###/####-##";case"cep":return"#####-###";case"phone":return["(##) ####-####","(##) #####-####"];case"di":case"dir":return"##/#######";default:return""}}),a=()=>{if(o.value=[],!!e.rules)for(const u of e.rules){const h=u(c.value);if(typeof h=="string"&&o.value.push(h),h!==!0)break}},n=y.reactive({mask:l.value,onMaska:u=>{c.value=u.unmasked===""?null:u.unmasked,y.nextTick(()=>{a()})}});return y.watch(l,u=>{n.mask=u}),y.watch(c,u=>{r.value=u==null?"":Hf(e.maskType,u)},{immediate:!0}),(u,h)=>y.withDirectives((y.openBlock(),y.createBlock(Ci,{ref:"input",type:"text",autofocus:u.autofocus,label:u.label,placeholder:u.placeholder,"error-messages":o.value,maxLength:u.maxLength,minLength:u.minLength,prefix:u.prefix,suffix:u.suffix,disabled:u.disabled,counter:u.counter,modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=d=>r.value=d),"onClick:appendOuter":h[1]||(h[1]=d=>s("click:appendouter")),"onClick:clear":h[2]||(h[2]=d=>s("click:clear")),"onClick:prepend":h[3]||(h[3]=d=>s("click:prepend")),"onClick:append":h[4]||(h[4]=d=>s("click:append"))},null,8,["autofocus","label","placeholder","error-messages","maxLength","minLength","prefix","suffix","disabled","counter","modelValue"])),[[y.unref(M_),n]])}}),Zo=y.defineComponent({__name:"CInput",props:y.mergeModels({...wl.props,...bv.props,type:{type:String,required:!1,default:"text"}},{modelValue:{},modelModifiers:{}}),emits:y.mergeModels(["click:appendouter","click:clear","click:prepend","click:append","update:search","update:menu"],["update:modelValue"]),setup(t,{emit:i}){const e=t,s=i,c=y.useModel(t,"modelValue");return(r,o)=>t.type==="select"?(y.openBlock(),y.createBlock(x_,{key:0,ref:"input",modelValue:c.value,"onUpdate:modelValue":o[0]||(o[0]=l=>c.value=l),autofocus:r.autofocus,label:r.label,loading:r.loading,disabled:r.disabled,readonly:r.readonly,"error-messages":r.errorMessages,"prefix-icon":r.prefixIcon,"suffix-icon":r.suffixIcon,suffix:r.suffix,prefix:r.prefix,placeholder:r.placeholder,"suffix-outer-icon":r.suffixOuterIcon,counter:r.counter,items:r.items,multiple:r.multiple,chips:r.chips,"item-title":r.itemTitle,"item-value":r.itemValue,"persistent-hint":r.persistent,"onClick:appendouter":o[1]||(o[1]=l=>s("click:appendouter")),"onClick:clear":o[2]||(o[2]=l=>s("click:clear")),"onClick:prepend":o[3]||(o[3]=l=>s("click:prepend")),"onClick:append":o[4]||(o[4]=l=>s("click:append"))},null,8,["modelValue","autofocus","label","loading","disabled","readonly","error-messages","prefix-icon","suffix-icon","suffix","prefix","placeholder","suffix-outer-icon","counter","items","multiple","chips","item-title","item-value","persistent-hint"])):t.type==="number"?(y.openBlock(),y.createBlock(w_,{key:1,ref:"input",modelValue:c.value,"onUpdate:modelValue":o[5]||(o[5]=l=>c.value=l),autofocus:r.autofocus,label:r.label,loading:r.loading,disabled:r.disabled,readonly:r.readonly,"error-messages":r.errorMessages,"prefix-icon":r.prefixIcon,"suffix-icon":r.suffixIcon,suffix:r.suffix,prefix:r.prefix,placeholder:r.placeholder,precision:r.precision,"suffix-outer-icon":r.suffixOuterIcon,counter:r.counter,maxLength:r.maxLength,"onClick:appendouter":o[6]||(o[6]=l=>s("click:appendouter")),"onClick:clear":o[7]||(o[7]=l=>s("click:clear")),"onClick:prepend":o[8]||(o[8]=l=>s("click:prepend")),"onClick:append":o[9]||(o[9]=l=>s("click:append"))},null,8,["modelValue","autofocus","label","loading","disabled","readonly","error-messages","prefix-icon","suffix-icon","suffix","prefix","placeholder","precision","suffix-outer-icon","counter","maxLength"])):r.maskType?(y.openBlock(),y.createBlock(xv,y.mergeProps({key:2,ref:"input",modelValue:c.value,"onUpdate:modelValue":o[10]||(o[10]=l=>c.value=l)},e,{"onClick:appendouter":o[11]||(o[11]=l=>s("click:appendouter")),"onClick:clear":o[12]||(o[12]=l=>s("click:clear")),"onClick:prepend":o[13]||(o[13]=l=>s("click:prepend")),"onClick:append":o[14]||(o[14]=l=>s("click:append"))}),null,16,["modelValue"])):(y.openBlock(),y.createBlock(y_,{key:3,ref:"input",modelValue:c.value,"onUpdate:modelValue":o[15]||(o[15]=l=>c.value=l),autofocus:r.autofocus,label:r.label,loading:r.loading,disabled:r.disabled,readonly:r.readonly,"error-messages":r.errorMessages,"prefix-icon":r.prefixIcon,"suffix-icon":r.suffixIcon,suffix:r.suffix,prefix:r.prefix,placeholder:r.placeholder,rules:r.rules,"suffix-outer-icon":r.suffixOuterIcon,counter:r.counter,maxLength:r.maxLength,"onClick:appendouter":o[16]||(o[16]=l=>s("click:appendouter")),"onClick:clear":o[17]||(o[17]=l=>s("click:clear")),"onClick:prepend":o[18]||(o[18]=l=>s("click:prepend")),"onClick:append":o[19]||(o[19]=l=>s("click:append"))},null,8,["modelValue","autofocus","label","loading","disabled","readonly","error-messages","prefix-icon","suffix-icon","suffix","prefix","placeholder","rules","suffix-outer-icon","counter","maxLength"]))}}),I_={class:"d-flex align-center bg-background rounded border-thin"},R_=y.defineComponent({__name:"FormButtonOptionsField",props:{field:{}},emits:["onSelectedButtonChange"],setup(t,{emit:i}){const e=t,s=i,c=y.computed(()=>e.field.options&&e.field.options.length?12/e.field.options.length:12),r=o=>e.field.value==o.text||e.field.value==o.value?"flat":"text";return(o,l)=>(y.openBlock(),y.createElementBlock("div",I_,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(t.field.options||[],(a,n)=>(y.openBlock(),y.createBlock(Nn,{key:n,cols:c.value,class:"pa-0"},{default:y.withCtx(()=>[(y.openBlock(),y.createBlock(Dr,{block:"",key:a.text,text:a.text,"prepend-icon":a.icon,class:"text-subtitle-2",variant:r(a),onClick:u=>s("onSelectedButtonChange",t.field,a.value??a.text)},y.createSlots({_:2},[a.icon?{name:"prepend",fn:y.withCtx(()=>[y.createVNode(nr,{name:a.icon,size:"20"},null,8,["name"])]),key:"0"}:void 0]),1032,["text","prepend-icon","variant","onClick"]))]),_:2},1032,["cols"]))),128))]))}});function L_(t,i){let e=0;return function(...s){clearTimeout(e),e=setTimeout(()=>t(...s),i)}}function O_({searchFunction:t,initialItems:i,selectedValue:e,itemValueKey:s,debounceTime:c=500,context:r,exclude:o}){const l=y.ref(""),a=y.ref(!1),n=y.ref([]),u=m=>s?m[s]:m,h=async()=>{if(!a.value){if(!t){n.value=i.value;return}a.value=!0;try{n.value=await t(l.value,r)}catch(m){console.error("Erro ao buscar itens:",m),n.value=[]}finally{a.value=!1}}},d=L_(h,c);y.watch(l,m=>{if(!m&&!e.value){n.value=[];return}d()});const f=y.computed(()=>{const m=new Set(o?.()??[]),g=new Map;n.value.forEach(v=>{const b=u(v);m.has(b)||g.set(b,v)});const p=Array.isArray(e.value)?e.value:[e.value];return p[0]!=null&&i.value.filter(v=>p.includes(u(v))).forEach(v=>{const b=u(v);g.has(b)||g.set(b,v)}),Array.from(g.values())});return{search:l,isLoading:a,filteredItems:f,searchItems:h}}const Pd=y.defineComponent({__name:"SearchAutocomplete",props:y.mergeModels({searchFunction:{type:Function},label:{},placeholder:{},itemTitle:{},itemValue:{},itemSubtitle:{},multiple:{type:Boolean},chips:{type:Boolean},returnObject:{type:Boolean},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},rules:{},clearable:{type:Boolean},exclude:{type:Function},searchContextKey:{},createComponent:{},createData:{},itemComponent:{}},{value:{},valueModifiers:{},items:{default:()=>[]},itemsModifiers:{}}),emits:["update:value","update:items"],setup(t){const i=t,e=y.useModel(t,"value"),s=y.useModel(t,"items"),{search:c,filteredItems:r,searchItems:o,isLoading:l}=O_({searchFunction:i.searchFunction,initialItems:s,selectedValue:e,itemValueKey:i.itemValue,multiple:i.multiple,context:i.searchContextKey,exclude:typeof i.exclude=="function"?()=>i.exclude?.()??[]:void 0}),a=y.ref(!1),n=()=>i.itemValue??"value",u=async h=>{const d=n();s.value.find(f=>f[d]===h[d])||s.value.push(h),i.multiple?(Array.isArray(e.value)||(e.value=[]),e.value.push(h[d])):e.value=h[d]};return y.onMounted(()=>{o()}),y.onUnmounted(()=>{i.notClearOnUnmounted||(c.value="",e.value=null)}),(h,d)=>(y.openBlock(),y.createElementBlock(y.Fragment,null,[y.createVNode(Eg,{modelValue:e.value,"onUpdate:modelValue":d[1]||(d[1]=f=>e.value=f),search:y.unref(c),"onUpdate:search":d[2]||(d[2]=f=>y.isRef(c)?c.value=f:null),items:y.unref(r),loading:y.unref(l),placeholder:i.placeholder,label:i.label,"item-title":i.itemTitle,"item-value":i.itemValue,"item-props":i.itemSubtitle?!1:void 0,multiple:i.multiple,chips:i.chips,rules:i.rules,"return-object":i.returnObject,disabled:i.disabled,clearable:i.clearable??!0,"no-filter":""},y.createSlots({_:2},[i.itemComponent?{name:"item",fn:y.withCtx(({item:f,props:m})=>[(y.openBlock(),y.createBlock(y.resolveDynamicComponent(i.itemComponent),y.mergeProps(m,{item:f.raw}),null,16,["item"]))]),key:"0"}:void 0,i.chips&&i.itemComponent?{name:"chip",fn:y.withCtx(({props:f,item:m})=>[y.createVNode(Ns,y.mergeProps(f,{"prepend-avatar":(m?.raw).avatar,text:m.title}),null,16,["prepend-avatar","text"])]),key:"1"}:void 0,i.createComponent?{name:"append",fn:y.withCtx(()=>[y.createVNode(nr,{onClick:d[0]||(d[0]=f=>a.value=!0)},{default:y.withCtx(()=>[...d[4]||(d[4]=[y.createTextVNode("ri-add-line",-1)])]),_:1})]),key:"2"}:void 0]),1032,["modelValue","search","items","loading","placeholder","label","item-title","item-value","item-props","multiple","chips","rules","return-object","disabled","clearable"]),i.createComponent?(y.openBlock(),y.createBlock(y.resolveDynamicComponent(i.createComponent),{key:0,data:i.createData,"show-modal":a.value,"onUpdate:showModal":d[3]||(d[3]=f=>a.value=f),onCreate:u},null,40,["data","show-modal"])):y.createCommentVNode("",!0)],64))}}),F_=y.defineComponent({__name:"FormFields",props:{noPadding:{type:Boolean},fields:{},disabled:{type:Boolean}},emits:["updateField","updateSearch","removeCount","addCount"],setup(t,{emit:i}){const e=t,s=i,c=y.computed(()=>e.fields.filter(u=>b_(u))),r=u=>u.errorMessages??u.error??"",o=u=>!!(u.errorMessages?.length||u.error),l=(u,h)=>{u.error=void 0,u.errorMessages=[],u.value=h,s("updateField",{field:u.model,value:h})},a=(u,h)=>{l(u,h)},n=(u,h)=>{l(u,h)};return(u,h)=>(y.openBlock(),y.createBlock(ys,{class:y.normalizeClass(["ma-0",t.noPadding?"pa-0":"pa-5"])},{default:y.withCtx(()=>[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(c.value,(d,f)=>(y.openBlock(),y.createElementBlock(y.Fragment,{key:`${d.model}-${f}`},[y.createVNode(Nn,{cols:y.unref(ff)(d),class:"pa-2",md:d.md||6,sm:"12"},{default:y.withCtx(()=>[d.type==="button-options"?(y.openBlock(),y.createBlock(R_,{key:0,field:d,onOnSelectedButtonChange:n},null,8,["field"])):d.secondField?(y.openBlock(),y.createBlock(ys,{key:1},{default:y.withCtx(()=>[d.prependComponent?(y.openBlock(),y.createBlock(Nn,{key:0,class:"px-0",cols:"1"},{default:y.withCtx(()=>[(y.openBlock(),y.createBlock(y.resolveDynamicComponent(d.prependComponent),{field:d,onClick:m=>d.prependClickFunction?.(m,d)},null,8,["field","onClick"]))]),_:2},1024)):y.createCommentVNode("",!0),y.createVNode(Nn,{cols:y.unref(ff)(d)},{default:y.withCtx(()=>[d.type==="text"||d.type==="number"||d.type==="password"?(y.openBlock(),y.createBlock(Zo,y.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":m=>d.value=m},{ref_for:!0},d,{type:d.type,disabled:d.disabledOnlyField||d.disabled||t.disabled||!1,error:o(d),"error-messages":r(d),"onUpdate:modelValue":m=>l(d,m)}),null,16,["modelValue","onUpdate:modelValue","type","disabled","error","error-messages"])):d.type==="select"?(y.openBlock(),y.createBlock(ws,{key:1,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","return-object","disabled"])):y.createCommentVNode("",!0)]),_:2},1032,["cols"]),y.createVNode(Nn,{class:"pa-0 mt-3 d-flex",cols:d.secondField.cols||4},{default:y.withCtx(()=>[d.secondField.type==="select"?(y.openBlock(),y.createBlock(ws,{key:0,modelValue:d.secondField.value,"onUpdate:modelValue":[m=>d.secondField.value=m,m=>a(d.secondField,m)],label:d.secondField.label,items:d.secondField.items,"item-title":d.secondField.itemTitle??"text","item-value":d.secondField.itemValue??"value","error-messages":r(d.secondField),disabled:d.secondField.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","disabled"])):d.secondField.type==="text"||d.secondField.type==="number"?(y.openBlock(),y.createBlock(Zo,y.mergeProps({key:1,modelValue:d.secondField.value,"onUpdate:modelValue":m=>d.secondField.value=m},{ref_for:!0},d.secondField,{type:d.secondField.type,disabled:d.secondField.disabled||t.disabled||!1,error:o(d.secondField),"error-messages":r(d.secondField),"onUpdate:modelValue":m=>a(d.secondField,m)}),null,16,["modelValue","onUpdate:modelValue","type","disabled","error","error-messages"])):d.secondField.type==="checkbox"?(y.openBlock(),y.createBlock(Ha,{key:2,modelValue:d.secondField.value,"onUpdate:modelValue":[m=>d.secondField.value=m,m=>a(d.secondField,m)],label:d.secondField.label,"error-messages":r(d.secondField),disabled:d.secondField.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):y.createCommentVNode("",!0)]),_:2},1032,["cols"])]),_:2},1024)):(y.openBlock(),y.createBlock(ys,{key:2},{default:y.withCtx(()=>[y.createVNode(Nn,{cols:y.unref(ff)(d)},{default:y.withCtx(()=>[d.type==="text"||d.type==="number"||d.type==="password"?(y.openBlock(),y.createBlock(Zo,y.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":m=>d.value=m},{ref_for:!0},d,{type:d.type,disabled:d.disabled||t.disabled||!1,error:o(d),"error-messages":r(d),"onUpdate:modelValue":m=>l(d,m)}),null,16,["modelValue","onUpdate:modelValue","type","disabled","error","error-messages"])):d.type==="textarea"?(y.openBlock(),y.createBlock(w8,{key:1,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],label:d.label,placeholder:d.placeholder,"error-messages":r(d),rules:d.rules,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","placeholder","error-messages","rules","disabled"])):d.type==="select"?(y.openBlock(),y.createBlock(ws,{key:2,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),multiple:d.multiple,chips:d.chips,"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","items","item-title","item-value","error-messages","multiple","chips","return-object","disabled"])):d.type==="file"?(y.openBlock(),y.createBlock(o8,{key:3,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],label:d.label,"error-messages":r(d),disabled:d.disabled||t.disabled||!1,clearable:""},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):d.type==="autocomplete"?(y.openBlock(),y.createBlock(Eg,{key:4,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],search:d.search,"onUpdate:search":[m=>d.search=m,m=>s("updateSearch",d,m)],label:d.label,items:d.items,"item-title":d.itemTitle??"text","item-value":d.itemValue??"value","error-messages":r(d),multiple:d.multiple,chips:d.chips,"return-object":d.returnObject??!1,disabled:d.disabled||t.disabled||!1,clearable:""},null,8,["modelValue","onUpdate:modelValue","search","onUpdate:search","label","items","item-title","item-value","error-messages","multiple","chips","return-object","disabled"])):d.type==="date"||d.type==="datetime"?(y.openBlock(),y.createBlock(Ci,{key:5,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m===""?null:m)],type:d.type==="date"?"date":"datetime-local",label:d.label,placeholder:d.placeholder,"error-messages":r(d),rules:d.rules,disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","type","label","placeholder","error-messages","rules","disabled"])):d.type==="checkbox"?(y.openBlock(),y.createBlock(Ha,{key:6,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],label:d.label,"error-messages":r(d),disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","error-messages","disabled"])):d.type==="switch"?(y.openBlock(),y.createBlock(b8,{key:7,modelValue:d.value,"onUpdate:modelValue":[m=>d.value=m,m=>l(d,m)],label:d.label,messages:d.description,"error-messages":r(d),disabled:d.disabled||t.disabled||!1},null,8,["modelValue","onUpdate:modelValue","label","messages","error-messages","disabled"])):d.type==="searchAutocomplete"?(y.openBlock(),y.createBlock(Pd,y.mergeProps({key:8,value:d.value,"onUpdate:value":m=>d.value=m,items:d.items,"onUpdate:items":m=>d.items=m},{ref_for:!0},d,{error:o(d),disabled:d.disabled||t.disabled||!1,"onUpdate:value":m=>l(d,m)}),null,16,["value","onUpdate:value","items","onUpdate:items","error","disabled"])):d.type==="info"&&d.component?(y.openBlock(),y.createBlock(y.resolveDynamicComponent(d.component),{key:9,value:d.value,"onUpdate:value":m=>d.value=m,info:d.info,error:d.error,"remove-function":d.removeFunction},null,40,["value","onUpdate:value","info","error","remove-function"])):d.type==="button"?(y.openBlock(),y.createBlock(Dr,{key:10,block:"",onClick:m=>d.action?.()},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(d.label),1)]),_:2},1032,["onClick"])):y.createCommentVNode("",!0)]),_:2},1032,["cols"]),d.count&&!d.disabled?(y.openBlock(),y.createBlock(Nn,{key:0,cols:"1",class:"d-flex align-center justify-center"},{default:y.withCtx(()=>[y.createVNode(Dr,{variant:"outlined",onClick:()=>s("removeCount",d)},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-delete-bin-line",color:"red"})]),_:1},8,["onClick"])]),_:2},1024)):y.createCommentVNode("",!0)]),_:2},1024))]),_:2},1032,["cols","md"]),d.hasCountBtn&&!d.disabled?(y.openBlock(),y.createBlock(Nn,{key:0,cols:"12",class:"d-flex align-start justify-center pa-0"},{default:y.withCtx(()=>[y.createVNode(Dr,{color:"primary",size:"small",variant:"outlined",icon:"",onClick:()=>{d.count&&(d.hasCountBtn=!1,s("addCount",[d,d.count+1]))}},{default:y.withCtx(()=>[y.createVNode(nr,{icon:"ri-add-line"})]),_:1},8,["onClick"])]),_:2},1024)):y.createCommentVNode("",!0)],64))),128)),y.createVNode(Nn,{cols:"12",class:"pa-0"},{default:y.withCtx(()=>[y.renderSlot(u.$slots,"custom")]),_:3})]),_:3},8,["class"]))}}),B_=y.defineComponent({__name:"GenericFormFlat",props:y.mergeModels({...vv.props,hideCancelButton:Boolean,noActionButtons:Boolean},{modelValue:{type:Object,default:()=>({})},modelModifiers:{}}),emits:y.mergeModels(["updateField","submit","updateSearch","cancel"],["update:modelValue"]),setup(t,{emit:i}){const e=t,s=i,c=y.useModel(t,"modelValue"),r=(d,f)=>{d.search=f,s("updateSearch",{field:d.model,value:f})},o=({field:d,value:f})=>{c.value&&(c.value[d]=f),s("updateField",{field:d,value:f})},l=d=>{let f=!0;return d&&d.forEach(m=>{f=m()}),f},a=y.computed(()=>{const d={};return e.fields.forEach(f=>{d[f.model]=f.condition?l(f.condition):f.type!=="hidden"}),d}),n=()=>{if(e.loading)return;const d={};e.fields.forEach(f=>{d[f.model]=f.value}),s("submit",d)};y.onMounted(()=>{e.fields.forEach(d=>{d.value=e.initialData?e.initialData[d.model]:null})}),y.watch(()=>e.initialData,d=>{e.fields.forEach(f=>{f.value=d?d[f.model]:null})});const u=y.computed(()=>e.fields.filter(d=>a.value[d.model])),h=y.ref(!1);return(d,f)=>(y.openBlock(),y.createBlock(ma,{variant:"text"},{default:y.withCtx(()=>[e.title?(y.openBlock(),y.createBlock(g_,{key:0,title:e.title},null,8,["title"])):y.createCommentVNode("",!0),y.createVNode(al,{class:"pa-0"},{default:y.withCtx(()=>[y.createVNode(u8,{onSubmit:y.withModifiers(n,["prevent"]),disabled:e.disabled,ref:"form",modelValue:h.value,"onUpdate:modelValue":f[1]||(f[1]=m=>h.value=m)},{default:y.withCtx(()=>[y.createVNode(F_,{fields:u.value,disabled:e.disabled,"no-padding":e.noPadding,onUpdateSearch:r,onUpdateField:o},null,8,["fields","disabled","no-padding"]),t.noActionButtons?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(v_,{key:0,"disable-add-button":!h.value,"hide-cancel-button":t.hideCancelButton??!1,"add-btn-text":d.addBtnText,loading:d.loading??!1,onCancel:f[0]||(f[0]=m=>s("cancel")),onSubmit:n},null,8,["disable-add-button","hide-cancel-button","add-btn-text","loading"]))]),_:1},8,["disabled","modelValue"])]),_:1})]),_:1}))}}),Md=xo(B_,[["__scopeId","data-v-ea173322"]]),_v=y.defineComponent({__name:"GenericForm",props:{...vv.props},emits:["update:isDialogVisible","submit","cancel"],setup(t,{emit:i}){const e=t,s=i,c=()=>{o(!1),s("cancel")},r=l=>{s("submit",l)},o=l=>{s("update:isDialogVisible",l)};return(l,a)=>(y.openBlock(),y.createBlock(Cd,{"model-value":e.isDialogVisible,"onUpdate:modelValue":o,width:e.width??"600","min-width":e.minWidth??"600"},{default:y.withCtx(()=>[y.createVNode(ma,{class:"position-relative"},{default:y.withCtx(()=>[e.loading?(y.openBlock(),y.createBlock(f_,{key:0})):y.createCommentVNode("",!0),y.createVNode(p_,{title:e.title,onClose:a[0]||(a[0]=n=>o(!1))},null,8,["title"]),y.createVNode(Ui),y.createVNode(al,{class:"pa-0"},{default:y.withCtx(()=>[y.createVNode(Md,{fields:e.fields,"initial-data":e.initialData,loading:l.loading,"no-action-buttons":e.noActionButtons,disabled:e.disabled,"add-btn-text":e.addBtnText,onCancel:c,onSubmit:r},{custom:y.withCtx(()=>[y.renderSlot(l.$slots,"custom")]),_:3},8,["fields","initial-data","loading","no-action-buttons","disabled","add-btn-text"])]),_:3})]),_:3})]),_:3},8,["model-value","width","min-width"]))}}),j_={class:"d-flex text-2xl font-400 text-capitalize align-center font-weight-bold ga-4"},D_={key:0,class:"text-wrap mb-2 text-body-1"},V_={key:1,class:"text-wrap mb-2 text-body-1"},z_={key:0},U_={key:1,class:"text-primary"},$_={key:2},Sv=y.defineComponent({__name:"GenericDeleteDialog",props:y.mergeModels({keyWord:{type:String,required:!0},itemName:{type:String,required:!1},actionVerb:{type:String,default:"deletar"},appendText:{type:String,required:!1},prependText:{type:String,required:!1},endText:{type:String,required:!1},customDescription:{type:String,required:!1},color:{type:String,default:"error"},confirmText:{type:String,default:"confirmar"}},{isDialogVisible:{default:!1,type:Boolean},isDialogVisibleModifiers:{}}),emits:y.mergeModels(["confirm","cancel"],["update:isDialogVisible"]),setup(t,{emit:i}){const e=t,s=y.useModel(t,"isDialogVisible"),c=i;return(r,o)=>(y.openBlock(),y.createBlock(Cd,{modelValue:s.value,"onUpdate:modelValue":o[2]||(o[2]=l=>s.value=l),width:"480"},{default:y.withCtx(()=>[y.createVNode(ma,{class:"pa-3"},{default:y.withCtx(()=>[y.createVNode(Ad,{class:"d-flex flex-column"},{default:y.withCtx(()=>[y.createElementVNode("div",j_,[y.createVNode(Dr,{icon:"",variant:"tonal",color:t.color,class:"my-4",size:"small"},{default:y.withCtx(()=>[...o[3]||(o[3]=[y.createElementVNode("span",{class:"text-xl"},"!",-1)])]),_:1},8,["color"]),y.createTextVNode(" "+y.toDisplayString(e.actionVerb)+" "+y.toDisplayString(t.keyWord),1)]),e.customDescription?(y.openBlock(),y.createElementBlock("span",D_,y.toDisplayString(e.customDescription),1)):(y.openBlock(),y.createElementBlock("span",V_,[y.createTextVNode(" Tem certeza que deseja "+y.toDisplayString(e.actionVerb)+" ",1),e.prependText?(y.openBlock(),y.createElementBlock("span",z_,y.toDisplayString(e.prependText),1)):y.createCommentVNode("",!0),e.itemName?(y.openBlock(),y.createElementBlock("span",U_,y.toDisplayString(t.itemName),1)):y.createCommentVNode("",!0),e.appendText?(y.openBlock(),y.createElementBlock("span",$_,y.toDisplayString(e.appendText),1)):y.createCommentVNode("",!0),y.createElementVNode("span",null,y.toDisplayString(e.endText||"? Esta ação não pode ser desfeita"),1)]))]),_:1}),y.createVNode(Tg,{class:"d-flex align-center justify-end"},{default:y.withCtx(()=>[y.createVNode(Dr,{color:"secondary",variant:"outlined",density:"comfortable",onClick:o[0]||(o[0]=l=>c("cancel"))},{default:y.withCtx(()=>[...o[4]||(o[4]=[y.createTextVNode(" Cancelar ",-1)])]),_:1}),y.createVNode(Dr,{color:t.color,variant:"flat",density:"comfortable",onClick:o[1]||(o[1]=l=>c("confirm"))},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(e.confirmText),1)]),_:1},8,["color"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),q_=y.defineComponent({__name:"MultipleSearchAutocomplete",props:y.mergeModels({searchFunction:{type:Function},label:{},placeholder:{},itemTitle:{},itemValue:{},itemSubtitle:{},multiple:{type:Boolean},chips:{type:Boolean},returnObject:{type:Boolean},disabled:{type:Boolean},notClearOnUnmounted:{type:Boolean},rules:{},clearable:{type:Boolean},exclude:{type:Function},searchContextKey:{},createComponent:{},createData:{},itemComponent:{}},{value:{default:()=>[]},valueModifiers:{},items:{default:()=>[]},itemsModifiers:{}}),emits:["update:value","update:items"],setup(t){const i=t,e=y.useModel(t,"value"),s=y.useModel(t,"items");return(c,r)=>(y.openBlock(),y.createBlock(Pd,y.mergeProps({value:e.value,"onUpdate:value":r[0]||(r[0]=o=>e.value=o),items:s.value,"onUpdate:items":r[1]||(r[1]=o=>s.value=o)},i,{multiple:"",chips:""}),null,16,["value","items"]))}}),H_=y.defineComponent({__name:"PhoneField",props:y.mergeModels({label:{},disabled:{type:Boolean},error:{},rules:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const i=y.useModel(t,"modelValue");return(e,s)=>(y.openBlock(),y.createBlock(Zo,{modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value=c),type:"text","mask-type":"phone",label:t.label,disabled:t.disabled,"error-messages":t.error,rules:t.rules},null,8,["modelValue","label","disabled","error-messages","rules"]))}}),W_=y.defineComponent({__name:"ColorPickerOptions",props:y.mergeModels({label:{},disabled:{type:Boolean},defaultColors:{}},{value:{},valueModifiers:{},errorMessages:{},errorMessagesModifiers:{}}),emits:["update:value","update:errorMessages"],setup(t){const i=y.useModel(t,"value"),e=y.useModel(t,"errorMessages");return(s,c)=>(y.openBlock(),y.createBlock(Ci,{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=r=>i.value=r),type:"color",label:t.label,disabled:t.disabled,"error-messages":e.value},null,8,["modelValue","label","disabled","error-messages"]))}}),G_={"vuetify-elements":{actions:"Ações",search:"Pesquisar",add:"Adicionar",adjust_columns:"Ajustar colunas de visualização",delete:"Excluir",deleted:"Excluído",cancel:"Cancelar",save:"Salvar",ok:"OK",this:"Esse",was_deleted:"foi deletado.",confirm_delete:"Tem certeza que deseja excluir",editFnNotDefined:"Função de edição não definida. Por favor, forneça uma editFn na definição do cabeçalho (header).",errorGettingHeaderValue:"Erro ao obter o valor do item para o cabeçalho",filterFnNotDefined:"Função de filtro não definida. Por favor, forneça uma filterFn nas propriedades do componente.",filterColumn:"Filtrar coluna",filterBy:"Filtrar por...",classify:"Classificar",hideColumn:"Esconder coluna",moveLeft:"Mover para esquerda",moveRight:"Mover para direita",all:"Todos",unexpectedError:"Ocorreu um erro inesperado. Por favor, tente novamente ou contate o suporte."}},X_={"vuetify-elements":{actions:"Actions",search:"Search",add:"Add",adjust_columns:"Adjust view columns",delete:"Delete",deleted:"Deleted",cancel:"Cancel",save:"Save",ok:"OK",this:"This",was_deleted:"was deleted.",confirm_delete:"Are you sure you want to delete",editFnNotDefined:"Edit function not defined. Please provide an editFn in the header definition.",errorGettingHeaderValue:"Error getting item value for header",filterFnNotDefined:"Filter function not defined. Please provide a filterFn in the component props.",filterColumn:"Filter column",filterBy:"Filter by...",classify:"Classify",hideColumn:"Hide column",moveLeft:"Move left",moveRight:"Move right",all:"All",unexpectedError:"Unexpected error. Please, try again or contact the support team."}},Mu={"pt-BR":G_,"en-US":X_};let kv=Mu["en-US"];function K_(t,i){kv={...Mu[t],...i}}function Y_(t){return kv["vuetify-elements"][t]||t}function Z_(t,i){for(const e of Object.keys(Mu)){const s={...Mu[e],...i?.[e]};t.global.setLocaleMessage(e,s)}return e=>t.global.t(`vuetify-elements.${e}`)}const J_={install(t,i){let e;if(i?.i18n)e=Z_(i.i18n,i.messages);else{const s=i?.locale||"en-US";K_(s,i?.messages?.[s]),e=Y_}t.provide(P1,e),t.component("ActionBtn",ld),t.component("GenericTable",gv),t.component("GenericForm",_v),t.component("GenericFormFlat",Md),t.component("GenericDeleteDialog",Sv)}};exports.GenericFormFlat=Md;exports.GenericTable=gv;exports.GenericTablePagination=Cg;exports._sfc_main=ld;exports._sfc_main$1=Zo;exports._sfc_main$2=xv;exports._sfc_main$3=W_;exports._sfc_main$4=Sv;exports._sfc_main$5=_v;exports._sfc_main$6=q_;exports._sfc_main$7=H_;exports._sfc_main$8=Pd;exports._typeof=br;exports.commonjsGlobal=ur;exports.formatMoney=N3;exports.getDefaultExportFromCjs=N1;exports.handleExport=T1;exports.plugin=J_;