1/*! For license information please see 538.e354d975.chunk.js.LICENSE.txt */ 2(globalThis.webpackChunkcenterpiece_ui=globalThis.webpackChunkcenterpiece_ui||[]).push([[538],{621(e){e.exports=function(){"use strict";var e=Math.pow(2,-52),t=new Uint32Array(512),r=function(e){var t=e.length>>1;if(t>0&&"number"!==typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;var r=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*r),this._halfedges=new Int32Array(3*r),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()};function n(e,t){var r=e/(Math.abs(e)+Math.abs(t));return(t>0?3-r:1+r)/4}function i(e,t,r,n){var i=e-r,o=t-n;return i*i+o*o}function o(e,t,r,n,i,o){var s=(n-t)*(i-e),a=(r-e)*(o-t);return Math.abs(s-a)>=33306690738754716e-32*Math.abs(s+a)?s-a:0}function s(e,t,r,n,i,s){return(o(i,s,e,t,r,n)||o(e,t,r,n,i,s)||o(r,n,i,s,e,t))<0}function a(e,t,r,n,i,o,s,a){var l=e-s,c=t-a,u=r-s,d=n-a,h=i-s,f=o-a,p=u*u+d*d,m=h*h+f*f;return l*(d*m-p*f)-c*(u*m-p*h)+(l*l+c*c)*(u*f-d*h)<0}function l(e,t,r,n,i,o){var s=r-e,a=n-t,l=i-e,c=o-t,u=s*s+a*a,d=l*l+c*c,h=.5/(s*c-a*l),f=(c*u-a*d)*h,p=(s*d-l*u)*h;return f*f+p*p}function c(e,t,r,n,i,o){var s=r-e,a=n-t,l=i-e,c=o-t,u=s*s+a*a,d=l*l+c*c,h=.5/(s*c-a*l);return{x:e+(c*u-a*d)*h,y:t+(s*d-l*u)*h}}function u(e,t,r,n){if(n-r<=20)for(var i=r+1;i<=n;i++){for(var o=e[i],s=t[o],a=i-1;a>=r&&t[e[a]]>s;)e[a+1]=e[a--];e[a+1]=o}else{var l=r+1,c=n;d(e,r+n>>1,l),t[e[r]]>t[e[n]]&&d(e,r,n),t[e[l]]>t[e[n]]&&d(e,l,n),t[e[r]]>t[e[l]]&&d(e,r,l);for(var h=e[l],f=t[h];;){do{l++}while(t[e[l]]<f);do{c--}while(t[e[c]]>f);if(c<l)break;d(e,l,c)}e[r+1]=e[c],e[c]=h,n-l+1>=c-r?(u(e,t,l,n),u(e,t,r,c-1)):(u(e,t,r,c-1),u(e,t,l,n))}}function d(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function h(e){return e[0]}function f(e){return e[1]}return r.from=function(e,t,n){void 0===t&&(t=h),void 0===n&&(n=f);for(var i=e.length,o=new Float64Array(2*i),s=0;s<i;s++){var a=e[s];o[2*s]=t(a),o[2*s+1]=n(a)}return new r(o)},r.prototype.update=function(){for(var t=this,r=t.coords,n=t._hullPrev,o=t._hullNext,a=t._hullTri,d=t._hullHash,h=r.length>>1,f=1/0,p=1/0,m=-1/0,g=-1/0,b=0;b<h;b++){var y=r[2*b],A=r[2*b+1];y<f&&(f=y),A<p&&(p=A),y>m&&(m=y),A>g&&(g=A),this._ids[b]=b}for(var v,w,x,k=(f+m)/2,C=(p+g)/2,_=1/0,S=0;S<h;S++){var E=i(k,C,r[2*S],r[2*S+1]);E<_&&(v=S,_=E)}
2var T=r[2*v],M=r[2*v+1];_=1/0;for(var O=0;O<h;O++)if(O!==v){var N=i(T,M,r[2*O],r[2*O+1]);N<_&&N>0&&(w=O,_=N)}for(var P=r[2*w],R=r[2*w+1],D=1/0,I=0;I<h;I++)if(I!==v&&I!==w){var L=l(T,M,P,R,r[2*I],r[2*I+1]);L<D&&(x=I,D=L)}var B=r[2*x],j=r[2*x+1];if(D===1/0){for(var F=0;F<h;F++)this._dists[F]=r[2*F]-r[0]||r[2*F+1]-r[1];u(this._ids,this._dists,0,h-1);for(var z=new Uint32Array(h),U=0,H=0,V=-1/0;H<h;H++){var W=this._ids[H];this._dists[W]>V&&(z[U++]=W,V=this._dists[W])}return this.hull=z.subarray(0,U),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(s(T,M,P,R,B,j)){var K=w,q=P,G=R;w=x,P=B,R=j,x=K,B=q,j=G}var X=c(T,M,P,R,B,j);this._cx=X.x,this._cy=X.y;for(var Y=0;Y<h;Y++)this._dists[Y]=i(r[2*Y],r[2*Y+1],X.x,X.y);u(this._ids,this._dists,0,h-1),this._hullStart=v;var $=3;o[v]=n[x]=w,o[w]=n[v]=x,o[x]=n[w]=v,a[v]=0,a[w]=1,a[x]=2,d.fill(-1),d[this._hashKey(T,M)]=v,d[this._hashKey(P,R)]=w,d[this._hashKey(B,j)]=x,this.trianglesLen=0,this._addTriangle(v,w,x,-1,-1,-1);for(var Q=0,J=void 0,Z=void 0;Q<this._ids.length;Q++){var ee=this._ids[Q],te=r[2*ee],re=r[2*ee+1];if(!(Q>0&&Math.abs(te-J)<=e&&Math.abs(re-Z)<=e)&&(J=te,Z=re,ee!==v&&ee!==w&&ee!==x)){for(var ne=0,ie=0,oe=this._hashKey(te,re);ie<this._hashSize&&(-1===(ne=d[(oe+ie)%this._hashSize])||ne===o[ne]);ie++);for(var se=ne=n[ne],ae=void 0;ae=o[se],!s(te,re,r[2*se],r[2*se+1],r[2*ae],r[2*ae+1]);)if((se=ae)===ne){se=-1;break}if(-1!==se){var le=this._addTriangle(se,ee,o[se],-1,-1,a[se]);a[ee]=this._legalize(le+2),a[se]=le,$++;for(var ce=o[se];ae=o[ce],s(te,re,r[2*ce],r[2*ce+1],r[2*ae],r[2*ae+1]);)le=this._addTriangle(ce,ee,ae,a[ee],-1,a[ce]),a[ee]=this._legalize(le+2),o[ce]=ce,$--,ce=ae;if(se===ne)for(;s(te,re,r[2*(ae=n[se])],r[2*ae+1],r[2*se],r[2*se+1]);)le=this._addTriangle(ae,ee,se,-1,a[se],a[ae]),this._legalize(le+2),a[ae]=le,o[se]=se,$--,se=ae;this._hullStart=n[ee]=se,o[se]=n[ce]=ee,o[ee]=ce,d[this._hashKey(te,re)]=ee,d[this._hashKey(r[2*se],r[2*se+1])]=se}}}this.hull=new Uint32Array($);for(var ue=0,de=this._hullStart;ue<$;ue++)this.hull[ue]=de,de=o[de];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},r.prototype._hashKey=function(e,t){return Math.floor(n(e-this._cx,t-this._cy)*this._hashSize)%this._hashSize},r.prototype._legalize=function(e){for(var r=this,n=r._triangles,i=r._halfedges,o=r.coords,s=0,l=0;;){var c=i[e],u=e-e%3;if(l=u+(e+2)%3,-1!==c){var d=c-c%3,h=u+(e+1)%3,f=d+(c+2)%3,p=n[l],m=n[e],g=n[h],b=n[f];if(a(o[2*p],o[2*p+1],o[2*m],o[2*m+1],o[2*g],o[2*g+1],o[2*b],o[2*b+1])){n[e]=b,n[c]=p;var y=i[f];if(-1===y){var A=this._hullStart;do{if(this._hullTri[A]===f){this._hullTri[A]=e;break}A=this._hullPrev[A]}while(A!==this._hullStart)}this._link(e,y),this._link(c,i[l]),this._link(l,f);var v=d+(c+1)%3;s<t.length&&(t[s++]=v)}else{if(0===s)break;e=t[--s]}}else{if(0===s)break;e=t[--s]}}return l},r.prototype._link=function(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)},r.prototype._addTriangle=function(e,t,r,n,i,o){var s=this.trianglesLen;return this._triangles[s]=e,this._triangles[s+1]=t,this._triangles[s+2]=r,this._link(s,n),this._link(s+1,i),this._link(s+2,o),this.trianglesLen+=3,s},r}()},8586(e,t,r){"use strict";t.A=void 0;var n,i=(n=r(621))&&n.__esModule?n:{default:n};function o(e){return e[0]}function s(e){return e[1]}function a(e,t,r){return[e+Math.sin(e+t)*r,t+Math.cos(e-t)*r]}var l=function(){function e(e){var t=new i.default(e);this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=t.coords,this._init(t)}var t=e.prototype;return t._init=function(e){var t=e,r=this.points;if(t.hull&&t.hull.length>2&&function(e){for(var t=e.triangles,r=e.coords,n=0;n<t.length;n+=3){var i=2*t[n],o=2*t[n+1],s=2*t[n+2];if((r[s]-r[i])*(r[o+1]-r[i+1])-(r[o]-r[i])*(r[s+1]-r[i+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:r.length/2},function(e,t){return t}).sort(function(e,t){return r[2*e]-r[2*t]||r[2*e+1]-r[2*t+1]});for(var n=this.collinear[0],o=this.collinear[this.collinear.length-1],s=[r[2*n],r[2*n+1],r[2*o],r[2*o+1]],l=1e-8*Math.sqrt(Math.pow(s[3]-s[1],2)+Math.pow(s[2]-s[0],2)),c=0,u=r.length/2;c<u;++c){var d=a(r[2*c],r[2*c+1],l);r[2*c]=d[0],r[2*c+1]=d[1]}e=new i.default(r)}for(var h=this.halfedges=e.halfedges,f=this.hull=e.hull,p=this.triangles=e.triangles,m=this.inedges.fill(-1),g=this._hullIndex.fill(-1),b=0,y=h.length;b<y;++b){var A=p[b%3===2?b-2:b+1];-1!==h[b]&&-1!==m[A]||(m[A]=b)}for(var v=0,w=f.length;v<w;++v)g[f[v]]=v;f.length<=2&&f.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=f[0],this.triangles[1]=f[1],this.triangles[2]=f[1],m[f[0]]=1,2===f.length&&(m[f[1]]=0))},t.neighbors=function(e){var t=[],r=this.inedges,n=this.hull,i=this._hullIndex,o=this.halfedges,s=this.triangles,a=r[e];if(-1===a)return t;var l=a,c=-1;
2do{if(c=s[l],t.push(c),s[l=l%3===2?l-2:l+1]!==e)break;if(-1===(l=o[l])){var u=n[(i[e]+1)%n.length];u!==c&&t.push(u);break}}while(l!==a);return t},t.find=function(e,t,r){if(void 0===r&&(r=0),(e=+e)!==e||(t=+t)!==t)return-1;for(var n,i=r;(n=this._step(r,e,t))>=0&&n!==r&&n!==i;)r=n;return n},t._step=function(e,t,r){var n=this.inedges,i=this.points;if(-1===n[e]||!i.length)return(e+1)%(i.length>>1);var o=e,s=Math.pow(t-i[2*e],2)+Math.pow(r-i[2*e+1],2),a=this.neighbors(e),l=Array.isArray(a),c=0;for(a=l?a:a[Symbol.iterator]();;){var u;if(l){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}var d=u,h=Math.pow(t-i[2*d],2)+Math.pow(r-i[2*d+1],2);h<s&&(s=h,o=d)}return o},e}();t.A=l,l.from=function(e,t,r,n){return void 0===t&&(t=o),void 0===r&&(r=s),new l(function(e,t,r,n){for(var i=e.length,o=new Float64Array(2*i),s=0;s<i;++s){var a=e[s];o[2*s]=t.call(n,a,s,e),o[2*s+1]=r.call(n,a,s,e)}return o}(e,t,r,n))}},9264(e){e.exports=function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o=void 0,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";const n=e("fs"),i=e("fast-csv"),o=e("dayjs/plugin/customParseFormat"),s=e("dayjs/plugin/utc"),a=e("dayjs").extend(o).extend(s),l=e("../utils/stream-buf"),{fs:{exists:c}}=e("../utils/utils"),u={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!"}};t.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t=t||{},!await c(e))throw new Error("File not found: "+e);const r=n.createReadStream(e),i=await this.read(r,t);return r.close(),i}read(e,t){return t=t||{},new Promise((r,n)=>{const o=this.workbook.addWorksheet(t.sheetName),s=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],l=t.map||function(e){if(""===e)return null;const t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;const r=s.reduce((t,r)=>{if(t)return t;const n=a(e,r,!0);return n.isValid()?n:null},null);if(r)return new Date(r.valueOf());const n=u[e];return void 0!==n?n:e},c=i.parse(t.parserOptions).on("data",e=>{o.addRow(e.map(l))}).on("end",()=>{c.emit("worksheet",o)});c.on("worksheet",r).on("error",n),e.pipe(c)})}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(e,t){return new Promise((r,n)=>{t=t||{};const o=this.workbook.getWorksheet(t.sheetName||t.sheetId),s=i.format(t.formatterOptions);e.on("finish",()=>{r()}),s.on("error",n),s.pipe(e);const{dateFormat:l,dateUTC:c}=t,u=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return l?c?a.utc(e).format(l):a(e).format(l):c?a.utc(e).format():a(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),d=void 0===t.includeEmptyRows||t.includeEmptyRows;let h=1;o&&o.eachRow((e,t)=>{if(d)for(;h++<t-1;)s.write([]);const{values:r}=e;r.shift(),s.write(r.map(u)),h=t}),s.end()})}writeFile(e,t){const r={encoding:(t=t||{}).encoding||"utf8"},i=n.createWriteStream(e,r);return this.write(i,t)}async writeBuffer(e){const t=new l;return await this.write(t,e),t.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,t,r){"use strict";const n=e("../utils/col-cache");class i{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.worksheet=e,t)if("string"==typeof t){const e=n.decodeAddress(t);this.nativeCol=e.col+r,this.nativeColOff=0,this.nativeRow=e.row+r,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+r,this.row=t.row+r):(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(e){return e instanceof i||null==e?e:new i(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-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(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}t.exports=i},{"../utils/col-cache":19}],3:[function(e,t,r){"use strict";const n=e("../utils/col-cache"),i=e("../utils/under-dash"),o=e("./enums"),{slideFormula:s}=e("../utils/shared-formula"),a=e("./note");class l{constructor(e,t,r){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,n.validateAddress(r),this._address=r,this._value=c.create(l.Types.Null,this),this.style=this._mergeStyle(e.style,t.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(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){const n=e&&e.numFmt||t&&t.numFmt;n&&(r.numFmt=n);const i=e&&e.font||t&&t.font;i&&(r.font=i);const o=e&&e.alignment||t&&t.alignment;o&&(r.alignment=o);const s=e&&e.border||t&&t.border;s&&(r.border=s);const a=e&&e.fill||t&&t.fill;a&&(r.fill=a);const l=e&&e.protection||t&&t.protection;return l&&(r.protection=l),r}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===l.Types.Merge}merge(e,t){this._value.release(),this._value=c.create(l.Types.Merge,this,e),t||(this.style=e.style)}
vendor: 44,822 bytes, line 2
2unmerge(){this.type===l.Types.Merge&&(this._value.release(),this._value=c.create(l.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===l.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===l.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===l.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==l.Types.Merge?(this._value.release(),this._value=c.create(c.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new a(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===l.Types.String&&(this._value=c.create(l.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach(e=>{t.addEx(this.fullAddress,e)})}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){this._value.release(),this._value=c.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type&&(this._comment=a.fromModel(e.comment)),e.style?this.style=e.style:this.style={}}}l.Types=o.ValueType;const c={getType:e=>null==e?l.Types.Null:e instanceof String||"string"==typeof e?l.Types.String:"number"==typeof e?l.Types.Number:"boolean"==typeof e?l.Types.Boolean:e instanceof Date?l.Types.Date:e.text&&e.hyperlink?l.Types.Hyperlink:e.formula||e.sharedFormula?l.Types.Formula:e.richText?l.Types.RichText:e.sharedString?l.Types.SharedString:e.error?l.Types.Error:l.Types.JSON,types:[{t:l.Types.Null,f:class{constructor(e){this.model={address:e.address,type:l.Types.Null}}get value(){return null}set value(e){}get type(){return l.Types.Null}get effectiveType(){return l.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:l.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Number}get effectiveType(){return l.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:l.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Date}get effectiveType(){return l.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return l.Types.Hyperlink}get effectiveType(){return l.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:l.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:l.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},r=r=>{const n=e[r];n&&(t[r]=n)};return r("formula"),r("result"),r("ref"),r("shareType"),r("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(c.getType(e)){case l.Types.Null:case l.Types.String:case l.Types.Number:case l.Types.Date:break;case l.Types.Hyperlink:case l.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(e){this.model.formula=e}get formulaType(){return this.model.formula?o.FormulaType.Master:this.model.sharedFormula?o.FormulaType.Shared:o.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return l.Types.Formula}get effectiveType(){const e=this.model.result;return null==e?o.ValueType.Null:e instanceof String||"string"==typeof e?o.ValueType.String:"number"==typeof e?o.ValueType.Number:e instanceof Date?o.ValueType.Date:e.text&&e.hyperlink?o.ValueType.Hyperlink:e.formula?o.ValueType.Formula:o.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&s(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:l.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof l?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return l.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:l.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return l.Types.String}get effectiveType(){return l.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:l.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.SharedString}get effectiveType(){return l.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map(e=>e.text).join("")}get type(){return l.Types.RichText}get effectiveType(){return l.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:l.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Boolean}get effectiveType(){return l.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:l.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:l.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return l.Types.Error}get effectiveType(){return l.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((e,t)=>(e[t.t]=t.f,e),[]),create(e,t,r){const n=this.types[e];if(!n)throw new Error("Could not create Value of type "+e);return new n(t,r)}};t.exports=l},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),i=e("./enums"),o=e("../utils/col-cache");class s{constructor(e,t,r){this._worksheet=e,this._number=t,!1!==r&&(this.defn=r)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return o.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.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(e){void 0!==e?(this._header=e,this.headers.forEach((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e})):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}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(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&n.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,(e,n)=>{t(e.getCell(r),n)})}get values(){const e=[];return this.eachCell((t,r)=>{t&&t.type!==i.ValueType.Null&&(e[r]=t.value)}),e}set values(e){if(!e)return;const t=this.number;let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach((e,n)=>{this._worksheet.getCell(n+r,t).value=e})}_applyStyle(e,t){return this.style[e]=t,this.eachCell(r=>{r[e]=t}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;return e&&e.forEach((e,n)=>{e.isDefault?r&&(r=null):r&&e.equivalentTo(r)?r.max=n+1:(r={min:n+1,max:n+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(r))}),t.length?t:void 0}static fromModel(e,t){const r=[];let n=1,i=0;for(t=(t=t||[]).sort(function(e,t){return e.min-t.min});i<t.length;){const o=t[i++];for(;n<o.min;)r.push(new s(e,n++));for(;n<=o.max;)r.push(new s(e,n++,o))}return r.length?r:null}}t.exports=s},{"../utils/col-cache":19,"../utils/under-dash":26,"./enums":7}],5:[function(e,t,r){"use strict";t.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},{}],6:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),i=e("../utils/col-cache"),o=e("../utils/cell-matrix"),s=e("./range"),a=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;t.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new o)}add(e,t){const r=i.decodeEx(e);this.addEx(r,t)}addEx(e,t){const r=this.getMatrix(t);if(e.top)for(let n=e.left;n<=e.right;n++)for(let t=e.top;t<=e.bottom;t++){const o={sheetName:e.sheetName,address:i.n2l(n)+t,row:t,col:n};r.addCellEx(o)}else r.addCellEx(e)}remove(e,t){const r=i.decodeEx(e);this.removeEx(r,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){n.each(this.matrixMap,t=>{t.removeCellEx(e)})}forEach(e){n.each(this.matrixMap,(t,r)=>{t.forEach(t=>{e(r,t)})})}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return n.map(this.matrixMap,(t,r)=>t.findCellEx(e)&&r).filter(Boolean)}_explore(e,t){t.mark=!1;const{sheetName:r}=t,n=new s(t.row,t.col,t.row,t.col,r);let i,o;function a(i,o){const s=e.findCellAt(r,i,t.col);return!(!s||!s.mark)&&(n[o]=i,s.mark=!1,!0)}for(o=t.row-1;a(o,"top");o--);for(o=t.row+1;a(o,"bottom");o++);function l(t,i){const s=[];for(o=n.top;o<=n.bottom;o++){const n=e.findCellAt(r,o,t);if(!n||!n.mark)return!1;s.push(n)}n[i]=t;for(let e=0;e<s.length;e++)s[e].mark=!1;return!0}for(i=t.col-1;l(i,"left");i--);for(i=t.col+1;l(i,"right");i++);return n}getRanges(e,t){return(t=t||this.matrixMap[e])?(t.forEach(e=>{e.mark=!0}),{name:e,ranges:t.map(e=>e.mark&&this._explore(t,e)).filter(Boolean).map(e=>e.$shortRange)}):{name:e,ranges:[]}}normaliseMatrix(e,t){e.forEachInSheet(t,(e,t,r)=>{e&&(e.row===t&&e.col===r||(e.row=t,e.col=r,e.address=i.n2l(r)+t))})}spliceRows(e,t,r,i){n.each(this.matrixMap,n=>{n.spliceRows(e,t,r,i),this.normaliseMatrix(n,e)})}spliceColumns(e,t,r,i){n.each(this.matrixMap,n=>{n.spliceColumns(e,t,r,i),this.normaliseMatrix(n,e)})}get model(){return n.map(this.matrixMap,(e,t)=>this.getRanges(t,e)).filter(e=>e.ranges.length)}set model(e){const t=this.matrixMap={};e.forEach(e=>{const r=t[e.name]=new o;e.ranges.forEach(e=>{a.test(e.split("!").pop()||"")&&r.addCell(e)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,t,r){"use strict";t.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,t,r){"use strict";const n=e("../utils/col-cache"),i=e("./anchor");t.exports=class{constructor(e,t){this.worksheet=e,this.model=t}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(e){let{type:t,imageId:r,range:o,hyperlinks:s}=e;if(this.type=t,this.imageId=r,"image"===t)if("string"==typeof o){const e=n.decode(o);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,o.tl,0),br:o.br&&new i(this.worksheet,o.br,0),ext:o.ext,editAs:o.editAs,hyperlinks:s||o.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,t,r){"use strict";const n=e("../utils/under-dash");class i{constructor(e){this.note=e}get model(){let e=null;return e="string"===typeof this.note?{type:"note",note:{texts:[{text:this.note}]}}:{type:"note",note:this.note},n.deepMerge({},i.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e,{texts:r}=t;1===r.length&&1===Object.keys(r[0]).length?this.note=r[0].text:this.note=t}static fromModel(e){const t=new i;return t.model=e,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},t.exports=i},{"../utils/under-dash":26}],10:[function(e,t,r){"use strict";const n=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(e,t,r,i,o){if(arguments.length<4){const i=n.decodeAddress(e),s=n.decodeAddress(t);this.model={top:Math.min(i.row,s.row),left:Math.min(i.col,s.col),bottom:Math.max(i.row,s.row),right:Math.max(i.col,s.col),sheetName:r},this.setTLBR(i.row,i.col,s.row,s.col,o)}else this.model={top:Math.min(e,r),left:Math.min(t,i),bottom:Math.max(e,r),right:Math.max(t,i),sheetName:o}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof i)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=n.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.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() - "+e.length)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?e+"!":`'${e}'!`:""}expand(e,t,r,n){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||n>this.right)&&(this.right=n)}expandRow(e){if(e){const{dimensions:t,number:r}=e;t&&this.expand(r,t.min,r,t.max)}}expandToAddress(e){const t=n.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return n.n2l(this.left)+this.top}get $t$l(){return`$${n.n2l(this.left)}$${this.top}`}get br(){return n.n2l(this.right)+this.bottom}get $b$r(){return`$${n.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(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&!(e.bottom<this.top)&&!(e.top>this.bottom)&&!(e.right<this.left)&&!(e.left>this.right)}contains(e){const t=n.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let r=this.top;r<=this.bottom;r++)e(n.encodeAddress(r,t),r,t)}}t.exports=i},{"../utils/col-cache":19}],11:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),i=e("./enums"),o=e("../utils/col-cache"),s=e("./cell");t.exports=class{constructor(e,t){this._worksheet=e,this._number=t,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(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const r=this._worksheet.getColumn(e.col);t=new s(this,r,e.address),this._cells[e.col-1]=t}return t}getCell(e){if("string"==typeof e){const t=this._worksheet.getColumnKey(e);e=t?t.number:o.l2n(e)}return this._cells[e-1]||this.getCellEx({address:o.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t){const r=e+t;for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];const s=i.length-t,a=this._cells.length;let l,c,u;if(s<0)for(l=e+i.length;l<=a;l++)u=this._cells[l-1],c=this._cells[l-s-1],c?(u=this.getCell(l),u.value=c.value,u.style=c.style,u._comment=c._comment):u&&(u.value=null,u.style={},u._comment=void 0);else if(s>0)for(l=a;l>=r;l--)c=this._cells[l-1],c?(u=this.getCell(l+s),u.value=c.value,u.style=c.style,u._comment=c._comment):this._cells[l+s-1]=void 0;for(l=0;l<i.length;l++)u=this.getCell(e+l),u.value=i[l],u.style={},u._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++)t(this.getCell(r),r)}else this._cells.forEach((e,r)=>{e&&e.type!==i.ValueType.Null&&t(e,r+1)})}addPageBreak(e,t){const r=this._worksheet,n=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,o={id:this._number,max:i,man:1};n&&(o.min=n),r.rowBreaks.push(o)}get values(){const e=[];return this._cells.forEach(t=>{t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)}),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach((e,r)=>{void 0!==e&&(this.getCellEx({address:o.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e)})}else this._worksheet.eachColumnKey((t,r)=>{void 0!==e[r]&&(this.getCellEx({address:o.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r])})}get hasValues(){return n.some(this._cells,e=>e&&e.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell(()=>{e++}),e}get dimensions(){let e=0,t=0;return this._cells.forEach(r=>{r&&r.type!==i.ValueType.Null&&((!e||e>r.col)&&(e=r.col),t<r.col&&(t=r.col))}),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach(r=>{r&&(r[e]=t)}),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,r=0;return this._cells.forEach(n=>{if(n){const i=n.model;i&&((!t||t>n.col)&&(t=n.col),r<n.col&&(r=n.col),e.push(i))}}),this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach(e=>{switch(e.type){case s.Types.Merge:break;default:{let r;if(e.address)r=o.decodeAddress(e.address);else if(t){const{row:e}=t,n=t.col+1;r={row:e,col:n,address:o.encodeAddress(e,n),$col$row:`$${o.n2l(n)}$${e}`}}t=r,this.getCellEx(r).model=e;break}}}),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,t,r){"use strict";const n=e("../utils/col-cache");class i{constructor(e,t,r){this.table=e,this.column=t,this.index=r}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}t.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+e.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:e}=this,t=(e,t,r)=>{void 0===e[t]&&(e[t]=r)};t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1);const r=(e,t)=>{if(!e)throw new Error(t)};r(e.ref,"Table must have ref"),r(e.columns,"Table must have column definitions"),r(e.rows,"Table must have row definitions"),e.tl=n.decodeAddress(e.ref);const{row:i,col:o}=e.tl;r(i>0,"Table must be on valid row"),r(o>0,"Table must be on valid col");const{width:s,filterHeight:a,tableHeight:l}=this;e.autoFilterRef=n.encode(i,o,i+a-1,o+s-1),e.tableRef=n.encode(i,o,i+l-1,o+s-1),e.columns.forEach((e,n)=>{r(e.name,`Column ${n} must have a name`),0===n?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))})}store(){const e=(e,t)=>{t&&Object.keys(t).forEach(r=>{e[r]=t[r]})},{worksheet:t,table:r}=this,{row:n,col:i}=r.tl;let o=0;if(r.headerRow){const s=t.getRow(n+o++);r.columns.forEach((t,r)=>{const{style:n,name:o}=t,a=s.getCell(i+r);a.value=o,e(a,n)})}if(r.rows.forEach(s=>{const a=t.getRow(n+o++);s.forEach((t,n)=>{const o=a.getCell(i+n);o.value=t,e(o,r.columns[n].style)})}),r.totalsRow){const s=t.getRow(n+o++);r.columns.forEach((t,r)=>{const n=s.getCell(i+r);if(0===r)n.value=t.totalsRowLabel;else{const e=this.getFormula(t);n.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(n,t.style)})}}load(e){const{table:t}=this,{row:r,col:n}=t.tl;let i=0;if(t.headerRow){const o=e.getRow(r+i++);t.columns.forEach((e,t)=>{o.getCell(n+t).value=e.name})}if(t.rows.forEach(t=>{const o=e.getRow(r+i++);t.forEach((e,t)=>{o.getCell(n+t).value=e})}),t.totalsRow){const o=e.getRow(r+i++);t.columns.forEach((e,t)=>{const r=o.getCell(n+t);0===t?r.value=e.totalsRowLabel:this.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})})}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const e=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)r.getCell(e.col+t).value=null}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++)r.getCell(e.col+t).value=null}for(let t=0;t<this.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++)r.getCell(e.col+t).value=null}}this.store()}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new i(this,t,e)}addColumn(e,t,r){this.cacheState(),void 0===r?(this.table.columns.push(e),this.table.rows.forEach((e,r)=>{e.push(t[r])})):(this.table.columns.splice(r,0,e),this.table.rows.forEach((e,n)=>{e.splice(r,0,t[n])}))}removeColumns(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach(r=>{r.splice(e,t)})}_assign(e,t,r){this.cacheState(),e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},{"../utils/col-cache":19}],13:[function(e,t,r){"use strict";const n=e("./worksheet"),i=e("./defined-names"),o=e("../xlsx/xlsx"),s=e("../csv/csv");t.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 i}get xlsx(){return this._xlsx||(this._xlsx=new o(this)),this._xlsx}get csv(){return this._csv||(this._csv=new s(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){const r=this.nextId;t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));const i=this._worksheets.reduce((e,t)=>(t&&t.orderNo)>e?t.orderNo:e,0),o=Object.assign({},t,{id:r,name:e,orderNo:i+1,workbook:this}),s=new n(o);return this._worksheets[r]=s,s}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find(t=>t&&t.name===e):void 0}get worksheets(){return this._worksheets.slice(1).sort((e,t)=>e.orderNo-t.orderNo).filter(Boolean)}eachSheet(e){this.worksheets.forEach(t=>{e(t,t.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}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(e=>e.model),sheets:this.worksheets.map(e=>e.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(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach(t=>{const{id:r,name:i,state:o}=t,s=e.sheets&&e.sheets.findIndex(e=>e.id===r);(this._worksheets[r]=new n({id:r,name:i,orderNo:s,state:o,workbook:this})).model=t}),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,t,r){"use strict";const n=e("../utils/under-dash"),i=e("../utils/col-cache"),o=e("./range"),s=e("./row"),a=e("./column"),l=e("./enums"),c=e("./image"),u=e("./table"),d=e("./data-validations"),h=e("../utils/encryptor"),{copyStyle:f}=e("../utils/copy-style");t.exports=class{constructor(e){e=e||{},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.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},e.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:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.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},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new d,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e="sheet"+this.id),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+e);if(e&&e.length>31&&(console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`),e=e.substring(0,31)),this._workbook._worksheets.find(t=>t&&t.name.toLowerCase()===e.toLowerCase()))throw new Error("Worksheet name already exists: "+e);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new o;return this._rows.forEach(t=>{if(t){const r=t.dimensions;r&&e.expand(t.number,r.min,t.number,r.max)}}),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce((e,t)=>{const r=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,r)},0);let t=1;const r=this._columns=[];e.forEach(e=>{const n=new a(this,t++,!1);r.push(n),n.defn=e})}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){n.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new a(this,t++))}return this._columns[e-1]}spliceColumns(e,t){const r=this._rows.length;for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];if(i.length>0)for(let c=0;c<r;c++){const r=[e,t];i.forEach(e=>{r.push(e[c]||null)});const n=this.getRow(c+1);n.splice.apply(n,r)}else this._rows.forEach(r=>{r&&r.splice(e,t)});const s=i.length-t,a=e+t,l=this._columns.length;if(s<0)for(let c=e+i.length;c<=l;c++)this.getColumn(c).defn=this.getColumn(c-s).defn;else if(s>0)for(let c=l;c>=a;c--)this.getColumn(c+s).defn=this.getColumn(c).defn;for(let c=e;c<e+i.length;c++)this.getColumn(c).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,i.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow(t=>{e=Math.max(e,t.cellCount)}),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow(r=>{r.eachCell(r=>{let{col:n}=r;e[n]||(e[n]=!0,t++)})}),t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;for(;t>0&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow(()=>{e++}),e}getRow(e){let t=this._rows[e-1];return t||(t=this._rows[e-1]=new s(this,e)),t}getRows(e,t){if(t<1)return;const r=[];for(let n=e;n<e+t;n++)r.push(this.getRow(n));return r}addRow(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const r=this._nextRow,n=this.getRow(r);return n.values=e,this._setStyleOption(r,"i"===t[0]?t:"n"),n}addRows(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";const r=[];return e.forEach(e=>{r.push(this.addRow(e,t))}),r}insertRow(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";return this.spliceRows(e,0,t),this._setStyleOption(e,r),this.getRow(e)}insertRows(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"n";if(this.spliceRows(e,0,...t),"n"!==r)for(let n=0;n<t.length;n++)"o"===r[0]&&void 0!==this.findRow(t.length+e+n)?this._copyStyle(t.length+e+n,e+n,"+"===r[1]):"i"===r[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+n,"+"===r[1]);return this.getRows(e,t.length)}_setStyleOption(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"n";"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this.getRow(e),i=this.getRow(t);i.style=f(n.style),n.eachCell({includeEmpty:r},(e,t)=>{i.getCell(t).style=f(e.style)}),i.height=n.height}duplicateRow(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=this._rows[e-1],i=new Array(t).fill(n.values);this.spliceRows(e+1,r?0:t,...i);for(let o=0;o<t;o++){const t=this._rows[e+o];t.style=n.style,t.height=n.height,n.eachCell({includeEmpty:!0},(e,r)=>{t.getCell(r).style=e.style})}}spliceRows(e,t){const r=e+t;for(var n=arguments.length,i=new Array(n>2?n-2:0),o=2;o<n;o++)i[o-2]=arguments[o];const s=i.length,a=s-t,l=this._rows.length;let c,u;if(a<0)for(e===l&&(this._rows[l-1]=void 0),c=r;c<=l;c++)if(u=this._rows[c-1],u){const e=this.getRow(c+a);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},(t,r)=>{e.getCell(r).style=t.style}),this._rows[c-1]=void 0}else this._rows[c+a-1]=void 0;else if(a>0)for(c=l;c>=r;c--)if(u=this._rows[c-1],u){const e=this.getRow(c+a);e.values=u.values,e.style=u.style,e.height=u.height,u.eachCell({includeEmpty:!0},(t,r)=>{if(e.getCell(r).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+s).getCell(r),n=t._value._master,i=this.getRow(n._row._number+s).getCell(n._column._number);e.merge(i)}})}else this._rows[c+a-1]=void 0;for(c=0;c<s;c++){const t=this.getRow(e+c);t.style={},t.values=i[c]}this.workbook.definedNames.spliceRows(this.name,e,t,s)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++)t(this.getRow(r),r)}else this._rows.forEach(e=>{e&&e.hasValues&&t(e,e.number)})}getSheetValues(){const e=[];return this._rows.forEach(t=>{t&&(e[t.number]=t.values)}),e}findCell(e,t){const r=i.getAddress(e,t),n=this._rows[r.row-1];return n?n.findCell(r.col):void 0}getCell(e,t){const r=i.getAddress(e,t);return this.getRow(r.row).getCellEx(r)}mergeCells(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=new o(t);this._mergeCellsInternal(n)}mergeCellsWithoutStyle(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=new o(t);this._mergeCellsInternal(n,!0)}_mergeCellsInternal(e,t){n.each(this._merges,t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")});const r=this.getCell(e.top,e.left);for(let n=e.top;n<=e.bottom;n++)for(let i=e.left;i<=e.right;i++)(n>e.top||i>e.left)&&this.getCell(n,i).merge(r,t);this._merges[r.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let r=t.left;r<=t.right;r++)this.getCell(e,r).unmerge();delete this._merges[e.address]}}get hasMerges(){return n.some(this._merges,Boolean)}unMergeCells(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=new o(t);for(let i=n.top;i<=n.bottom;i++)for(let e=n.left;e<=n.right;e++){const t=this.findCell(i,e);t&&(t.type===l.ValueType.Merge?this._unMergeMaster(t.master):this._merges[t.address]&&this._unMergeMaster(t))}}fillFormula(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"shared";const o=i.decode(e),{top:s,left:a,bottom:l,right:c}=o,u=c-a+1,d=i.encodeAddress(s,a),h="shared"===n;let f;f="function"==typeof r?r:Array.isArray(r)?Array.isArray(r[0])?(e,t)=>r[e-s][t-a]:(e,t)=>
vendor: 4,169 bytes, line 2
2r[(e-s)*u+(t-a)]:()=>{};let p=!0;for(let i=s;i<=l;i++)for(let r=a;r<=c;r++)p?(this.getCell(i,r).value={shareType:n,formula:t,ref:e,result:f(i,r)},p=!1):this.getCell(i,r).value=h?{sharedFormula:d,result:f(i,r)}:f(i,r)}addImage(e,t){const r={type:"image",imageId:e,range:t};this._media.push(new c(this,r))}getImages(){return this._media.filter(e=>"image"===e.type)}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new c(this,t))}getBackgroundImageId(){const e=this._media.find(e=>"background"===e.type);return e&&e.imageId}protect(e,t){return new Promise(r=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=h.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=h.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),r()})}unprotect(){this.sheetProtection=null}addTable(e){const t=new u(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}get model(){const e={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(e=>e.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(e=>e.model),conditionalFormattings:this.conditionalFormattings};e.cols=a.toModel(this.columns);const t=e.rows=[],r=e.dimensions=new o;return this._rows.forEach(e=>{const n=e&&e.model;n&&(r.expand(n.number,n.min,n.number,n.max),t.push(n))}),e.merges=[],n.each(this._merges,t=>{e.merges.push(t.range)}),e}_parseRows(e){this._rows=[],e.rows.forEach(e=>{const t=new s(this,e.number);this._rows[t.number-1]=t,t.model=e})}_parseMergeCells(e){n.each(e.mergeCells,e=>{this.mergeCellsWithoutStyle(e)})}set model(e){this.name=e.name,this._columns=a.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new d(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map(e=>new c(this,e)),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce((e,t)=>{const r=new u;return r.model=t,e[t.name]=r,e},{}),this.conditionalFormattings=e.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,t,r){"use strict";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 n={Workbook:e("./doc/workbook")},i=e("./doc/enums");
vendor: 10,916 bytes, line 2
2Object.keys(i).forEach(e=>{n[e]=i[e]}),t.exports=n},{"./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,t,r){"use strict";const n="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");r.bufferToString=function(e){return"string"==typeof e?e:n?n.decode(e):e.toString()}},{}],17:[function(e,t,r){"use strict";const n="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");r.stringToBuffer=function(e){return"string"!=typeof e?e:n?i.from(n.encode(e).buffer):i.from(e)}},{buffer:220}],18:[function(e,t,r){"use strict";const n=e("./under-dash"),i=e("./col-cache");t.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),!0)}findCell(e){return this.findCellEx(i.decodeEx(e),!1)}findCellAt(e,t,r){const n=this.sheets[e],i=n&&n[t];return i&&i[r]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let r=e.left;r<=e.right;r++)this.getCellAt(e.sheetName,t,r);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){const r=this.findSheet(e,t),n=this.findSheetRow(r,e,t);return this.findRowCell(n,e,t)}getCellAt(e,t,r){const n=this.sheets[e]||(this.sheets[e]=[]),o=n[t]||(n[t]=[]);return o[r]||(o[r]={sheetName:e,address:i.n2l(r)+t,row:t,col:r})}removeCellEx(e){const t=this.findSheet(e);if(!t)return;const r=this.findSheetRow(t,e);r&&delete r[e.col]}forEachInSheet(e,t){const r=this.sheets[e];r&&r.forEach((e,r)=>{e&&e.forEach((e,n)=>{e&&t(e,r,n)})})}forEach(e){n.each(this.sheets,(t,r)=>{this.forEachInSheet(r,e)})}map(e){const t=[];return this.forEach(r=>{t.push(e(r))}),t}findSheet(e,t){const r=e.sheetName;return this.sheets[r]?this.sheets[r]:t?this.sheets[r]=[]:void 0}findSheetRow(e,t,r){const{row:n}=t;return e&&e[n]?e[n]:r?e[n]=[]:void 0}findRowCell(e,t,r){const{col:n}=t;return e&&e[n]?e[n]:r?e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,r,n){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<n;t++)e.push([]);i.splice(t,r,...e)}}spliceColumns(e,t,r,i){const o=this.sheets[e];if(o){const e=[];for(let t=0;t<i;t++)e.push(null);n.each(o,n=>{n.splice(t,r,...e)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,t,r){"use strict";const n=/^[A-Z]+\d+$/,i={_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:e=>e<=26?1:e<=676?2:3,_fill(e){let t,r,n,i,o,s=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;s<=26;)t=this._dictionary[s-1],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(s=27;s<=702;)r=s-27,n=r%26,i=Math.floor(r/26),t=this._dictionary[i]+this._dictionary[n],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(s=703;s<=16384;)r=s-703,n=r%26,i=Math.floor(r/26)%26,o=Math.floor(r/676),t=this._dictionary[o]+this._dictionary[i]+this._dictionary[n],this._n2l[s]=t,this._l2n[t]=s,s++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error("Out of bounds. Invalid column letter: "+e);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw new Error(e+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!n.test(e))throw new Error("Invalid Address: "+e);return!0},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t)return t;let r=!1,n="",i=0,o=!1,s="",a=0;for(let c,u=0;u<e.length;u++)if(c=e.charCodeAt(u),!o&&c>=65&&c<=90)r=!0,n+=e[u],i=26*i+c-64;else if(c>=48&&c<=57)o=!0,s+=e[u],a=10*a+c-48;else if(o&&r&&36!==c)break;if(r){if(i>16384)throw new Error("Out of bounds. Invalid column letter: "+n)}else i=void 0;o||(a=void 0);const l={address:e=n+s,col:i,row:a,$col$row:`$${n}$${s}`};return i<=100&&a<=100&&(this._hash[e]=l,this._hash[l.$col$row]=l),l},getAddress(e,t){if(t){const r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(2===t.length){const e=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),n={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return n.tl=this.n2l(n.left)+n.top,n.br=this.n2l(n.right)+n.bottom,n.dimensions=`${n.tl}:${n.br}`,n}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=t[1]||t[2],n=t[3],i=n.split(":");if(i.length>1){let e=this.decodeAddress(i[0]),t=this.decodeAddress(i[1]);const n=Math.min(e.row,t.row),o=Math.min(e.col,t.col),s=Math.max(e.row,t.row),a=Math.max(e.col,t.col);return e=this.n2l(o)+n,t=this.n2l(a)+s,{top:n,left:o,bottom:s,right:a,sheetName:r,tl:{address:e,col:o,row:n,$col$row:`$${this.n2l(o)}$${n}`,sheetName:r},br:{address:t,col:a,row:s,$col$row:`$${this.n2l(a)}$${s}`,sheetName:r},dimensions:`${e}:${t}`}}if(n.startsWith("#"))return r?{sheetName:r,error:n}:{error:n};const o=this.decodeAddress(n);return r?{sheetName:r,...o}:o},encodeAddress:(e,t)=>i.n2l(t)+e,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[r,n,,i,o]=e,[s,a]=t;return s>=r&&s<=i&&a>=n&&a<=o}};t.exports=i},{}],20:[function(e,t,r){"use strict";const n=(e,t)=>({...e,...t.reduce((t,r)=>(e[r]&&(t[r]={...e[r]}),t),{})}),i=function(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];e[r]&&(t[r]=n(e[r],i))};r.copyStyle=e=>{if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t;const r={...e};return i(e,r,"font",["color"]),i(e,r,"alignment"),i(e,r,"protection"),e.border&&(i(e,r,"border"),i(e.border,r.border,"top",["color"]),i(e.border,r.border,"left",["color"]),i(e.border,r.border,"bottom",["color"]),i(e.border,r.border,"right",["color"]),i(e.border,r.border,"diagonal",["color"])),e.fill&&(i(e,r,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(r.fill.stops=e.fill.stops.map(e=>n(e,["color"])))),r}},{}],21:[function(e,t,r){(function(r){(function(){"use strict";const n=e("crypto"),i={hash(e){const t=n.createHash(e);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];return t.update(r.concat(o)),t.digest()},convertPasswordToHash(e,t,i,o){if(t=t.toLowerCase(),n.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const s=r.from(e,"utf16le");let a=this.hash(t,r.from(i,"base64"),s);for(let n=0;n<o;n++){const e=r.alloc(4);e.writeUInt32LE(n,0),a=this.hash(t,a,e)}return a.toString("base64")},randomBytes:e=>n.randomBytes(e)};t.exports=i}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,t,r){"use strict";const{SaxesParser:n}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:o}=e("./browser-buffer-decode");t.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new i));const t=new n;let r;t.on("error",e=>{r=e});let s=[];t.on("opentag",e=>s.push({eventType:"opentag",value:e})),t.on("text",e=>s.push({eventType:"text",value:e})),t.on("closetag",e=>s.push({eventType:"closetag",value:e}));for await(const n of e){if(t.write(o(n)),r)throw r;yield s,s=[]}}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,t,r){"use strict";const n=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,o=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;t.exports={slideFormula:function(e,t,r){const s=n.decode(t),a=n.decode(r);return e.replace(i,(e,t,r,i,l)=>{if(l)return e;const c=o.exec(i);if(c){const r=c[1],i=c[2].toUpperCase(),o=c[3],l=c[4];if(i.length>3||3===i.length&&i>"XFD")return e;let u=n.l2n(i),d=parseInt(l,10);return r||(u+=a.col-s.col),o||(d+=a.row-s.row),(t||"")+(r||"")+n.n2l(u)+(o||"")+d}return e})}}},{"./col-cache":19}],24:[function(e,t,r){(function(r,n){(function(){"use strict";const i=e("readable-stream"),o=e("./utils"),s=e("./string-buf");class a{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,n){return this.toBuffer().copy(e,t,r,n)}toBuffer(){return this._buffer||(this._buffer=n.from(this._data,this._encoding)),this._buffer}}class l{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){return this._data._buf.copy(e,t,r,n)}toBuffer(){return this._data.toBuffer()}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){this._data.copy(e,t,r,n)}toBuffer(){return this._data}}class u{constructor(e){this.size=e,this.buffer=n.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const e=n.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=n.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,r){const n=Math.min(r,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}}const d=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};o.inherits(d,i.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return n.concat(this.buffers.map(e=>e.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new u(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map(function(t){return new Promise(r=>{t.write(e.toBuffer(),()=>{r()})})}))},_writeToBuffers(e){let t=0;const r=e.length;for(;t<r;)t+=this._getWritableBuffer().write(e,t,r-t)},async write(e,t,i){let u;if(t instanceof Function&&(i=t,t="utf8"),i=i||o.nop,e instanceof s)u=new l(e);else if(e instanceof n)u=new c(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type Str
2ing, Buffer or StringBuf.");u=new a(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(u);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(u),r.nextTick(i)):(await this._pipe(u),i());else this.paused||this.emit("data",u.toBuffer()),this._writeToBuffers(u),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(e,t,r){const n=e=>{e?r(e):(this._flush(),this.pipes.forEach(e=>{e.end()}),this.emit("finish"))};e?this.write(e,t,n):n()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const r=this.buffers[0],n=r.read(e);e-=n.length,t.push(n),r.eod&&r.full&&this.buffers.shift()}return n.concat(t)}return t=this.buffers.map(e=>e.toBuffer()).filter(Boolean),this.buffers=[],n.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter(t=>t!==e)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),t.exports=d}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,t,r){(function(e){(function(){"use strict";t.exports=class{constructor(t){this._buf=e.alloc(t&&t.size||16384),this._encoding=t&&t.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=e.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(t){let r=2*this._buf.length;for(;r<t;)r*=2;const n=e.alloc(r);this._buf.copy(n,0),this._buf=n}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,t,r){"use strict";const{toString:n}=Object.prototype,i=/["&<>]/,o={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach(r=>{t(e[r],r)}))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some(r=>t(e[r],r)))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every(r=>t(e[r],r)))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map(r=>t(e[r],r)):[]},keyBy:(e,t)=>e.reduce((e,r)=>(e[r[t]]=r,e),{}),isEqual:function(e,t){const r=typeof e,n=typeof t,i=Array.isArray(e),s=Array.isArray(t);let a;if(r!==n)return!1;if("object"===typeof e){if(i||s)return!(!i||!s)&&e.length===t.length&&e.every((e,r)=>{const n=t[r];return o.isEqual(e,n)});if(null===e||null===t)return e===t;if(a=Object.keys(e),Object.keys(t).length!==a.length)return!1;for(const e of a)if(!t.hasOwnProperty(e))return!1;return o.every(e,(e,r)=>{const n=t[r];return o.isEqual(e,n)})}return e===t},escapeHtml(e){const t=i.exec(e);if(!t)return e;let r="",n="",o=0,s=t.index;for(;s<e.length;s++){switch(e.charAt(s)){case'"':n=""";break;case"&":n="&";break;case"'":n="'";break;case"<":n="<";break;case">":n=">";break;default:continue}o!==s&&(r+=e.substring(o,s)),o=s+1,r+=n}return o!==s?r+e.substring(o,s):r},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>"[object Undefined]"===n.call(e),isObject:e=>"[object Object]"===n.call(e),deepMerge(){const e=arguments[0]||{},{length:t}=arguments;let r,n,i;function s(t,s){r=e[s],i=Array.isArray(t),o.isObject(t)||i?(i?(i=!1,n=r&&Array.isArray(r)?r:[]):n=r&&o.isObject(r)?r:{},e[s]=o.deepMerge(n,t)):o.isUndefined(t)||(e[s]=t)}for(let a=0;a<t;a++)o.each(arguments[a],s);return e}};t.exports=o},{}],27:[function(e,t,r){(function(r,n){(function(){"use strict";const i=e("fs"),o=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,s={nop(){},promiseImmediate:e=>new Promise(t=>{r.setImmediate?n(()=>{t(e)}):setTimeout(()=>{t(e)},1)}),inherits:function(e,t,r,n){e.super_=t,n||(n=r,r=null),r&&Object.keys(r).forEach(t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))});
vendor: 19,598 bytes, line 2
2const i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach(e=>{i[e]=Object.getOwnPropertyDescriptor(n,e)}),e.prototype=Object.create(t.prototype,i)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){const r=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(r)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=s.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=o.exec(e);if(!t)return e;let r="",n="",i=0,s=t.index;for(;s<e.length;s++){const t=e.charCodeAt(s);switch(t){case 34:n=""";break;case 38:n="&";break;case 39:n="'";break;case 60:n="<";break;case 62:n=">";break;case 127:n="";break;default:if(t<=31&&(t<=8||t>=11&&13!==t)){n="";break}continue}i!==s&&(r+=e.substring(i,s)),i=s+1,n&&(r+=n)}return i!==s?r+e.substring(i,s):r},xmlDecode:e=>e.replace(/&([a-z]*);/g,e=>{switch(e){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return e}}),validInt(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt:e=>!!e&&null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/),fs:{exists:e=>new Promise(t=>{i.access(e,i.constants.F_OK,e=>{t(!e)})})},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};t.exports=s}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,t,r){"use strict";const n=e("./under-dash"),i=e("./utils");function o(e,t,r){e.push(` ${t}="${i.xmlEncode(r.toString())}"`)}function s(e,t){if(t){const r=[];n.each(t,(e,t)=>{void 0!==e&&o(r,t,e)}),e.push(r.join(""))}}class a{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(e){const t=this._xml;t.push("<?xml"),s(t,e),t.push("?>\n")}openNode(e,t){const r=this.tos,n=this._xml;r&&this.open&&n.push(">"),this._stack.push(e),n.push("<"),n.push(e),s(n,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&o(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s(this._xml,e)}writeText(e){const t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){const e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}leafNode(e,t,r){this.openNode(e,t),void 0!==r&&this.writeText(r),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 e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}a.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},t.exports=a},{"./under-dash":26,"./utils":27}],29:[function(e,t,r){(function(r){(function(){"use strict";const n=e("events"),i=e("jszip"),o=e("./stream-buf"),{stringToBuffer:s}=e("./browser-buffer-encode");class a extends n.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new i,this.stream=new o}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(r.browser&&"string"==typeof e&&(e=s(e)),this.zip.file(t.name,e))}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}t.exports={ZipWriter:a}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,t,r){"use strict";t.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"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},28:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"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"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ja-jp":'yyyy"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":'yyyy"\ub144" mm"\uc6d4" dd"\uc77c"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65f6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uc2dc" mm"\ubd84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79d2"',"ko-kr":'h"\uc2dc" mm"\ubd84" ss"\ucd08"'},34:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},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"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},51:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"',"ja-jp":'yyyy"\u5e74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4e0a\u5348/\u4e0b\u5348 hh"\u6642"mm"\u5206"ss"\u79d2"',"zh-cn":'\u4e0a\u5348/\u4e0b\u5348 h"\u65f6"mm"\u5206"ss"\u79d2"',"ja-jp":'m"\u6708"d"\u65e5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5e74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5e74" mm"\u6708" dd"\u65e5"'},58:{"zh-tw":'[$-404]e"\u5e74"m"\u6708"d"\u65e5"',"zh-cn":'m"\u6708"d"\u65e5"',"ja-jp":'[$-411]ggge"\u5e74"m"\u6708"d"\u65e5"',"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,t,r){"use strict";t.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,t,r){"use strict";const n=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class o{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(e=>{e instanceof o?e.reset():e.xform&&e.xform.reset()})}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:r}of t)if("opentag"===e)this.parseOpen(r);else if("text"===e)this.parseText(r);else if("closetag"===e&&!this.parseClose(r.name))return this.model;return this.model}async parseStream(e){return this.parse(n(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new i;return this.render(t,e),t.xml}static toAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e.toString()}static toStringAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.toAttribute(e,t,r)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0===e){if(r)return t}else if(r||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.toAttribute(e,t,r)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.toAttribute(e,t,r)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}t.exports=o},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("../../../utils/col-cache");function o(e){try{return i.decodeEx(e),!0}catch(e){return!1}}function s(e){const t=[];let r=!1,n="";return e.split(",").forEach(e=>{if(!e)return;const i=(e.match(/'/g)||[]).length;if(!i)return void(r?n+=e+",":o(e)&&t.push(e));const s=i%2==0;!r&&s&&o(e)?t.push(e):r&&!s?(r=!1,o(n+e)&&t.push(n+e),n=""):(r=!0,n+=e+",")}),t}t.exports=class extends n{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:s(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,t,r){"use strict";const n=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:n.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){const r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(r.visibility=t.visibility),e.leafNode("workbookView",r)}parseOpen(e){if("workbookView"===e.name){const t=this.model={},r=function(e,r,n){const i=void 0!==r?t[e]=r:n;void 0!==i&&(t[e]=i)},n=function(e,r,n){const i=void 0!==r?t[e]=parseInt(r,10):n;void 0!==i&&(t[e]=i)};return n("x",e.attributes.xWindow,0),n("y",e.attributes.yWindow,0),n("width",e.attributes.windowWidth,25e3),n("height",e.attributes.windowHeight,1e4),r("visibility",e.attributes.visibility,"visible"),n("activeTab",e.attributes.activeTab,void 0),n("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),s=e("../base-xform"),a=e("../static-xform"),l=e("../list-xform"),c=e("./defined-name-xform"),u=e("./sheet-xform"),d=e("./workbook-view-xform"),h=e("./workbook-properties-xform"),f=e("./workbook-calc-properties-xform");class p extends s{constructor(){super(),this.map={fileVersion:p.STATIC_XFORMS.fileVersion,workbookPr:new h,bookViews:new l({tag:"bookViews",count:!1,childXform:new d}),sheets:new l({tag:"sheets",count:!1,childXform:new u}),definedNames:new l({tag:"definedNames",count:!1,childXform:new c}),calcPr:new f}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach(e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach(n=>{const i=n.split(":"),o={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:r};t.push(o)}),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const n=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const i={name:"_xlnm.Print_Titles",ranges:n,localSheetId:r};t.push(i)}r++}),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach((e,t)=>{e.name=e.type+(t+1)})}render(e,t){e.openXml(o.StdDocAttributes),e.openNode("workbook",p.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(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)}reconcile(e){const t=(e.workbookRels||[]).reduce((e,t)=>(e[t.Id]=t,e),{}),r=[];let o,s=0;(e.sheets||[]).forEach(n=>{const i=t[n.rId];i&&(o=e.worksheetHash["xl/"+i.Target.replace(/^(\s|\/xl\/)+/,"")],o&&(o.name=n.name,o.id=n.id,o.state=n.state,r[s++]=o))});const a=[];n.each(e.definedNames,e=>{if("_xlnm.Print_Area"===e.name){if(o=r[e.localSheetId],o){o.pageSetup||(o.pageSetup={});const t=i.decodeEx(e.ranges[0]);o.pageSetup.printArea=o.pageSetup.printArea?`${o.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(o=r[e.localSheetId],o){o.pageSetup||(o.pageSetup={});const t=e.ranges.join(","),r=/\$/g,n=/\$\d+:\$\d+/,i=t.match(n);if(i&&i.length){const e=i[0];o.pageSetup.printTitlesRow=e.replace(r,"")}const s=/\$[A-Z]+:\$[A-Z]+/,a=t.match(s);if(a&&a.length){const e=a[0];o.pageSetup.printTitlesColumn=e.replace(r,"")}}}else a.push(e)}),e.definedNames=a,e.media.forEach((e,t)=>{e.index=t})}}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 a({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},t.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,t,r){"use strict";const n=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),o=e("../base-xform"),s=t.exports=function(e){this.model=e};i.inherits(s,o,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach(t=>{this.richTextXform.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){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(e),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),o=e("../base-xform"),s=e("./comment-xform"),a=t.exports=function(){this.map={comment:new s}};i.inherits(a,o,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(n.StdDocAttributes),e.openNode("comments",a.COMMENTS_ATTRIBUTES),e.o
2penNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach(t=>{this.map.comment.render(e,t)}),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){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(e),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){(t===r[2]||"x:SizeWithCells"===this.tag&&t===r[1])&&e.leafNode(this.tag)}parseOpen(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left),r=Math.floor(68*(e.left-t)),n=Math.floor(e.top),i=Math.floor(18*(e.top-n)),o=Math.floor(e.right),s=Math.floor(68*(e.right-o)),a=Math.floor(e.bottom);return[t,r,n,i,o,s,a,Math.floor(18*(e.bottom-a))]}getDefaultRect(e){const t=e.col,r=Math.max(e.row-2,0);return[t,6,r,14,t+2,2,r+4,16]}render(e,t){const r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./vml-anchor-xform"),o=e("./style/vml-protection-xform"),s=e("./style/vml-position-xform"),a=["twoCells","oneCells","absolute"];t.exports=class extends n{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new o({tag:"x:Locked"}),"x:LockText":new o({tag:"x:LockText"}),"x:SizeWithCells":new s({tag:"x:SizeWithCells"}),"x:MoveWithCells":new s({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:r,editAs:n}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,n,a),this.map["x:SizeWithCells"].render(e,n,a),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,r.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,r.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){return e.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=a[t],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,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./vml-shape-xform");class s extends i{constructor(){super(),this.map={"v:shape":new o}}get tag(){return"xml"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,s.DRAWING_ATTRIBUTES),e.o
2penNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach((t,r)=>{this.map["v:shape"].render(e,t,r)}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)})}}s.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"},t.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./vml-textbox-xform"),o=e("./vml-client-data-xform");class s extends n{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new o}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",s.V_SHAPE_ATTRIBUTES(t,r)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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)}}s.V_SHAPE_ATTRIBUTES=(e,t)=>({id:"_x0000_s"+(1025+t),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":e.note.margins&&e.note.margins.insetmode}),t.exports=s},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"v:textbox"}conversionUnit(e,t,r){return`${parseFloat(e)*t.toFixed(2)}${r}`}reverseConversionUnit(e){return(e||"").split(",").map(e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2)))}render(e,t){const r={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map(e=>this.conversionUnit(e,10,"mm")).join(",")),e&&(r.inset=e)}e.openNode("v:textbox",r),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],48:[function(e,t,r){"use strict";const n=e("./base-xform");t.exports=class extends n{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},{"./base-xform":32}],49:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},{"../base-xform":32}],50:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach(t=>{e.leafNode("vt:lpstr",void 0,t.name)}
vendor: 7,971 bytes, line 2
2),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},{"../base-xform":32}],51:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../simple/string-xform"),s=e("./app-heading-pairs-xform"),a=e("./app-titles-of-parts-xform");class l extends i{constructor(){super(),this.map={Company:new o({tag:"Company"}),Manager:new o({tag:"Manager"}),HeadingPairs:new s,TitleOfParts:new a}}render(e,t){e.openXml(n.StdDocAttributes),e.openNode("Properties",l.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},t.exports=l},{"../../../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,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform");class o extends i{render(e,t){e.openXml(n.StdDocAttributes),e.openNode("Types",o.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach(t=>{if("image"===t.type){const n=t.extension;r[n]||(r[n]=!0,e.leafNode("Default",{Extension:n,ContentType:"image/"+n}))}}),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach(t=>{const r=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:r,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach(t=>{e.leafNode("Override",{PartName:"/xl/tables/"+t.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),t.drawings&&t.drawings.forEach(t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach(t=>{let{commentName:r}=t;e.leafNode("Override",{PartName:`/xl/${r}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}o.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},t.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../simple/date-xform"),s=e("../simple/string-xform"),a=e("../simple/integer-xform");class l extends i{constructor(){super(),this.map={"dc:creator":new s({tag:"dc:creator"}),"dc:title":new s({tag:"dc:title"}),"dc:subject":new s({tag:"dc:subject"}),"dc:description":new s({tag:"dc:description"}),"dc:identifier":new s({tag:"dc:identifier"}),"dc:language":new s({tag:"dc:language"}),"cp:keywords":new s({tag:"cp:keywords"}),"cp:category":new s({tag:"cp:category"}),"cp:lastModifiedBy":new s({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new o({tag:"cp:lastPrinted",format:l.DateFormat}),"cp:revision":new a({tag:"cp:revision"}),"cp:version":new s({tag:"cp:version"}),"cp:contentStatus":new s({tag:"cp:contentStatus"}),"cp:contentType":new s({tag:"cp:contentType"}),"dcterms:created":new o({tag:"dcterms:created",attrs:l.DateAttrs,format:l.DateFormat}),"dcterms:modified":new o({tag:"dcterms:modified",attrs:l.DateAttrs,format:l.DateFormat})}}render(e,t){e.openXml(n.StdDocAttributes),e.openNode("cp:coreProperties",l.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){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: "+e)}}}l.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},l.DateAttrs={"xsi:type":"dcterms:W3CDTF"},l.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"}
2,t.exports=l},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./relationship-xform");class s extends i{constructor(){super(),this.map={Relationship:new o}}render(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("Relationships",s.RELATIONSHIPS_ATTRIBUTES),t.forEach(t=>{this.map.Relationship.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}s.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},t.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){const r=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const e=r[1],n=t.mediaIndex[e];return t.media[n]}}}}},{"../base-xform":32}],57:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./blip-xform");t.exports=class extends n{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],59:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],60:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./hlink-click-xform"),o=e("./ext-lst-xform");t.exports=class extends n{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new o}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:"Picture "+t.index}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("../simple/integer-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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)}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,t,r){"use strict";const n=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("./two-cell-anchor-xform"),a=e("./one-cell-anchor-xform");class l extends o{constructor(){super(),this.map={"xdr:twoCellAnchor":new s,"xdr:oneCellAnchor":new a}}
2prepare(e){e.anchors.forEach((e,t)=>{e.anchorType=function(e){return("string"==typeof e.range?n.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e),this.map[e.anchorType].prepare(e,{index:t})})}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,l.DRAWING_ATTRIBUTES),t.anchors.forEach(t=>{this.map[t.anchorType].render(e,t)}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach(e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)})}}l.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},t.exports=l},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},{"../base-xform":32}],64:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);const r=Math.floor(9525*t.width),n=Math.floor(9525*t.height);e.addAttribute("cx",r),e.addAttribute("cy",n),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/9525,height:parseInt(e.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./c-nv-pr-xform"),o=e("./c-nv-pic-pr-xform");t.exports=class extends n{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new o}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,t,r){"use strict";const n=e("./base-cell-anchor-xform"),i=e("../static-xform"),o=e("./cell-position-xform"),s=e("./ext-xform"),a=e("./pic-xform");t.exports=class extends n{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:ext":new s({tag:"xdr:ext"}),"xdr:pic":new a,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("../static-xform"),o=e("./blip-fill-xform"),s=e("./nv-pic-pr-xform"),a=e("./sp-pr");t.exports=class extends n{constructor(){super(),this.map={"xdr:nvPicPr":new s,"xdr:blipFill":new o,"xdr:spPr":new i(a)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):(e.name===this.tag?this.reset():(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,t,r){"use strict";
vendor: 97,538 bytes, line 2
2t.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,t,r){"use strict";const n=e("./base-cell-anchor-xform"),i=e("../static-xform"),o=e("./cell-position-xform"),s=e("./pic-xform");t.exports=class extends n{constructor(){super(),this.map={"xdr:from":new o({tag:"xdr:from"}),"xdr:to":new o({tag:"xdr:to"}),"xdr:pic":new s,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,t,r){"use strict";const n=e("./base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const{childXform:r}=this;e&&e.forEach((e,n)=>{t.index=n,r.prepare(e,t)})}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const{childXform:r}=this;(t||[]).forEach((t,n)=>{r.render(e,t,n)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(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(e,t){if(e){const{childXform:r}=this;e.forEach(e=>{r.reconcile(e,t)})}}}},{"./base-xform":32}],72:[function(e,t,r){"use strict";const n=e("../../../utils/col-cache"),i=e("../base-xform");t.exports=class extends i{get tag(){return"autoFilter"}render(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{const r=function(e){return"string"==typeof e?e:n.getAddress(e.row,e.column).address},i=r(t.from),o=r(t.to);i&&o&&e.leafNode("autoFilter",{ref:`${i}:${o}`})}}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,t,r){"use strict";const n=e("../../../utils/utils"),i=e("../base-xform"),o=e("../../../doc/range"),s=e("../../../doc/enums"),a=e("../strings/rich-text-xform");function l(e){if(null==e)return s.ValueType.Null;if(e instanceof String||"string"==typeof e)return s.ValueType.String;if("number"==typeof e)return s.ValueType.Number;if("boolean"==typeof e)return s.ValueType.Boolean;if(e instanceof Date)return s.ValueType.Date;if(e.text&&e.hyperlink)return s.ValueType.Hyperlink;if(e.formula)return s.ValueType.Formula;if(e.error)return s.ValueType.Error;throw new Error("I could not understand type of value")}t.exports=class extends i{constructor(){super(),this.richTextXForm=new a}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},function(e){return e.type===s.ValueType.Formula?l(e.result):e.type}(e));switch(r&&(e.styleId=r),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case s.ValueType.String:case s.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case s.ValueType.Date:t.date1904&&(e.date1904=!0);break;case s.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case s.ValueType.Merge:t.merges.add(e);break;case s.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r)throw new Error("Shared Formula master must exist above and or left of clone for cell "+e.address);void 0===r.si?(r.shareType="shared",r.si=t.siFormulae++,r.range=new o(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:void 0!==t.si&&(r={t:"shared",si:t.si})}switch(l(t.result)){case s.ValueType.Null:e.leafNode("f",r,t.formula);break;case s.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case s.ValueType.Number:e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case s.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result?1:0);break;case s.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result.error);break;case s.ValueType.Date:e.leafNode("f",r,t.formula),e.leafNode("v",null,n.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==s.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case s.ValueType.Null:break;case s.ValueType.Number:e.leafNode("v",null,t.value);break;case s.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case s.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case s.ValueType.String:case s.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach(t=>{this.richTextXForm.render(e,t)}),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case s.ValueType.Date:e.leafNode("v",null,n.dateToExcel(t.value,t.date1904));break;case s.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case s.ValueType.Formula:this.renderFormula(e,t);case s.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.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(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;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+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType)e.type=s.ValueType.Formula,e.value&&("str"===this.t?e.result=n.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=s.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=s.ValueType.String,e.value=n.xmlDecode(e.value);break;case"inlineStr":e.type=s.ValueType.String;break;case"b":e.type=s.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=s.ValueType.Error,e.value={error:e.value};break;default:e.type=s.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=s.ValueType.Null:e.type=s.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!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(e),!0)}}reconcile(e,t){const r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(r&&(e.style=r),void 0!==e.styleId&&(e.styleId=void 0),e.type){case s.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=s.ValueType.RichText);break;case s.ValueType.Number:r&&n.isDateFmt(r.numFmt)&&(e.type=s.ValueType.Date,e.value=n.excelToDate(e.value,t.date1904));break;case s.ValueType.Formula:void 0!==e.result&&r&&n.isDateFmt(r.numFmt)&&(e.result=n.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}const i=t.hyperlinkMap[e.address];i&&(e.type===s.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=s.ValueType.Hyperlink,e.hyperlink=i);const o=t.commentsMap&&t.commentsMap[e.address];o&&(e.comment=o)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen(e){let{attributes:t}=e;this.model={iconSet:t.iconSet,iconId:n.toIntValue(t.iconId)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],75:[function(e,t,r){"use strict";const{v4:n}=e("uuid"),i=e("../../base-xform"),o=e("../../composite-xform"),s=e("./databar-ext-xform"),a=e("./icon-set-ext-xform"),l={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class c extends o{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new s,"x14:iconSet":this.iconSetXform=new a}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?s.isExt(e):!("iconSet"!==e.type||!e.custom&&!l[e.iconSet])}prepare(e){c.isExt(e)&&(e.x14Id=`{${n()}}`.toUpperCase())}render(e,t){if(c.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${n()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{type:t.type,x14Id:t.id,priority:i.toIntValue(t.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}t.exports=c},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,t,r){"use strict";const n=e("../../composite-xform"),i=e("./f-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){"xm:f"===e&&(this.model.value=t.model?parseFloat(t.model):0)}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,t,r){"use strict";const n=e("../../composite-xform"),i=e("./sqref-ext-xform"),o=e("./cf-rule-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new o}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach(e=>{this.cfRule.prepare(e,t)})}render(e,t){t.rules.some(o.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(o.isExt).forEach(t=>this.cfRule.render(e,t)),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,t,r){"use strict";const n=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),o=e("./conditional-formatting-ext-xform");t.exports=class extends n{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new o}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some(e=>e.rules.some(i.isExt))),e.hasExtContent}prepare(e,t){e.forEach(e=>{this.cfXform.prepare(e,t)})}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach(t=>this.cfXform.render(e,t)),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,t,r){"use strict";const n=e("../../base-xform"),i=e("../../composite-xform"),o=e("../../style/color-xform"),s=e("./cfvo-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:borderColor":this.borderColorXform=new o("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new o("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new o("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new o("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:n.toIntAttribute(t.minLength,0,!0),maxLength:n.toIntAttribute(t.maxLength,100,!0),border:n.toBoolAttribute(t.border,!1),gradient:n.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(t.axisPosition,"auto"),direction:n.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],minLength:n.toIntValue(t.minLength,0),maxLength:n.toIntValue(t.maxLength,100),border:n.toBoolValue(t.border,!1),gradient:n.toBoolValue(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(t.axisPosition,"auto"),direction:n.toStringValue(t.direction,"leftToRight")}}onParserClose(e,t){const[,r]=e.split(":");"cfvo"===r?this.model.cfvo.push(t.model):this.model[r]=t.model}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],81:[function(e,t,r){"use strict";const n=e("../../base-xform"),i=e("../../composite-xform"),o=e("./cfvo-ext-xform"),s=e("./cf-icon-ext-xform");t.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:cfIcon":this.cfIconXform=new s}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0),custom:n.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.icons&&t.icons.forEach((t,r)=>{t.iconId=r,this.cfIconXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{cfvo:[],iconSet:n.toStringValue(t.iconSet,"3TrafficLights"),reverse:n.toBoolValue(t.reverse,!1),showValue:n.toBoolValue(t.showValue,!0)}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[r]=t.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],83:[function(e,t,r){"use strict";const n=e("../../base-xform"),i=e("../../composite-xform"),o=e("../../../../doc/range"),s=e("./databar-xform"),a=e("./ext-lst-ref-xform"),l=e("./formula-xform"),c=e("./color-scale-xform"),u=e("./icon-set-xform"),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},h=e=>{const{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}};class f extends i{constructor(){super(),this.map={dataBar:this.databarXform=new s,extLst:this.extLstRefXform=new a,formula:this.formulaXform=new l,colorScale:this.colorScaleXform=new c,iconSet:this.iconSetXform=new u}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!d[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach(t=>{this.formulaXform.render(e,t)}),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:n.toBoolAttribute(t.percent,!1),bottom:n.toBoolAttribute(t.bottom,!1),rank:n.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:n.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){f.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:n.toStringAttribute(t.operator,"containsText")});const r=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new o(e.ref),{tl:r}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${r})))`;case"containsBlanks":return`LEN(TRIM(${r}))=0`;case"notContainsBlanks":return`LEN(TRIM(${r}))>0`;case"containsErrors":return`ISERROR(${r})`;case"notContainsErrors":return`NOT(ISERROR(${r}))`;default:return}})(t);r&&this.formulaXform.render(e,r),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const r=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new o(e.ref),{tl:r}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${r},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${r},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${r},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${r},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${r},1)=TODAY()-1`;case"today":return`FLOOR(${r},1)=TODAY()`;case"tomorrow":return`FLOOR(${r},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${r},1)<=6,FLOOR(${r},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0-1)),YEAR(${r})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${r})=MONTH(TODAY()),YEAR(${r})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0+1)),YEAR(${r})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);r&&this.formulaXform.render(e,r),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{...h(t),dxfId:n.toIntValue(t.dxfId),priority:n.toIntValue(t.priority),timePeriod:t.timePeriod,percent:n.toBoolValue(t.percent),bottom:n.toBoolValue(t.bottom),rank:n.toIntValue(t.rank),aboveAverage:n.toBoolValue(t.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}t.exports=f},{"../../../../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,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:n.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],85:[function(e,t,r){"use strict";const n=e("../../composite-xform"),i=e("../../style/color-xform"),o=e("./cfvo-xform");t.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new i}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),t.color.forEach(t=>{this.colorXform.render(e,t)}),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,t,r){"use strict";const n=e("../../composite-xform"),i=e("./cf-rule-xform");t.exports=class extends n{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach(r=>{i.isPrimitive(r)&&(r.ref=t.ref,this.map.cfRule.render(e,r))}),e.closeNode())}createNewModel(e){let{attributes:t}=e;return{ref:t.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,t,r){"use strict";const n=e("../../base-xform"),i=e("./conditional-formatting-xform");t.exports=class extends n{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce((e,t)=>Math.max(e,...t.rules.map(e=>e.priority||0)),1);e.forEach(e=>{e.rules.forEach(e=>{e.priority||(e.priority=r++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))})})}render(e,t){t.forEach(t=>{this.cfXform.render(e,t)})}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(!!this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(e,t){e.forEach(e=>{e.rules.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,t,r){"use strict";const n=e("../../composite-xform"),i=e("../../style/color-xform"),o=e("./cfvo-xform");t.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new o,color:this.colorXform=new i}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,t,r){"use strict";const n=e("../../base-xform"),i=e("../../composite-xform");class o extends n{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class s extends i{constructor(){super(),this.map={"x14:id":this.idXform=new o}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}t.exports=class extends i{constructor(){super(),this.map={ext:new s}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,t,r){"use strict";const n=e("../../base-xform");t.exports=class extends n{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},{"../../base-xform":32}],91:[function(e,t,r){"use strict";const n=e("../../base-xform"),i=e("../../composite-xform"),o=e("./cfvo-xform");t.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new o}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach(t=>{this.cfvoXform.render(e,t)}),e.closeNode()}createNewModel(e){let{attributes:t}=e;return{iconSet:n.toStringValue(t.iconSet,"3TrafficLights"),reverse:n.toBoolValue(t.reverse),showValue:n.toBoolValue(t.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,t,r){"use strict";const n=e("../../../utils/utils"),i=e("../base-xform");t.exports=class extends i{get tag(){return"col"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{});r&&(e.styleId=r)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){if("col"===e.name){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),n.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),n.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),n.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../../../utils/utils"),o=e("../../../utils/col-cache"),s=e("../base-xform"),a=e("../../../doc/range");function l(e,t,r,n){const i=t[r];void 0!==i?e[r]=i:void 0!==n&&(e[r]=n)}function c(e,t,r,n){const o=t[r];void 0!==o?e[r]=i.parseBoolean(o):void 0!==n&&(e[r]=n)}t.exports=class extends s{get tag(){return"dataValidations"}render(e,t){const r=function(e){const t=n.map(e,(e,t)=>({address:t,dataValidation:e,marked:!1})).sort((e,t)=>n.strcmp(e.address,t.address)),r=n.keyBy(t,"address"),i=(t,r,i)=>{for(let s=0;s<r;s++){const r=o.encodeAddress(t.row+s,i);if(!e[r]||!n.isEqual(e[t.address],e[r]))return!1}return!0};return t.map(t=>{if(!t.marked){const s=o.decodeEx(t.address);if(s.dimensions)return r[s.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let a=1,l=o.encodeAddress(s.row+a,s.col);for(;e[l]&&n.isEqual(t.dataValidation,e[l]);)a++,l=o.encodeAddress(s.row+a,s.col);let c=1;for(;i(s,a,s.col+c);)c++;for(let e=0;e<a;e++)for(let t=0;t<c;t++)l=o.encodeAddress(s.row+e,s.col+t),r[l].marked=!0;if(a>1||c>1){const e=s.row+(a-1),r=s.col+(c-1);return{...t.dataValidation,sqref:`${t.address}:${o.encodeAddress(e,r)}`}}return{...t.dataValidation,sqref:t.address}}return null}).filter(Boolean)}(t);r.length&&(e.openNode("dataValidations",{count:r.length}),r.forEach(t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach((r,n)=>{e.openNode("formula"+(n+1)),"date"===t.type?e.writeText(i.dateToExcel(new Date(r))):e.writeText(r),e.closeNode()}),e.closeNode()}),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&c(t,e.attributes,"allowBlank"),c(t,e.attributes,"showInputMessage"),c(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:l(t,e.attributes,"operator","between")}return l(t,e.attributes,"promptTitle"),l(t,e.attributes,"prompt"),l(t,e.attributes,"errorStyle"),l(t,e.attributes,"errorTitle"),l(t,e.attributes,"error"),this._dataValidation=t,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){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(e=>{e.includes(":")?new a(e).forEachAddress(e=>{this.model[e]=this._dataValidation}):this.model[e]=this._dataValidation}),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=i.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),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,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,t,r){"use strict";const n=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class o extends n{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}t.exports=class extends n{constructor(){super(),this.map={ext:this.ext=new o}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),r=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),r=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),r=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),r=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),r=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),r=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),r=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),r=!0),r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!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(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}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,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},{"../base-xform":32}],99:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../../../doc/range"),o=e("../../../utils/col-cache"),s=e("../../../doc/enums");t.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return n.map(this.merges,e=>e.range)}reconcile(e,t){n.each(e,e=>{const r=o.decode(e);for(let n=r.top;n<=r.bottom;n++){const e=t[n-1];for(let t=r.left;t<=r.right;t++){const i=e.cells[t-1];i?i.type===s.ValueType.Merge&&(i.master=r.tl):e.cells[t]={type:s.ValueType.Null,address:o.encodeAddress(n,t)}}}})}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e=>void 0!==e;t.exports=class extends n{get tag(){return"outlinePr"}render(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight))&&(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:i(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"pageMargins"}render(e,t){if(t){const r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};n.some(r,e=>void 0!==e)&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage)&&(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../base-xform");function o(e){return e?"1":void 0}function s(e){if("overThenDown"===e)return e}function a(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function l(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}t.exports=class extends i{get tag(){return"pageSetup"}render(e,t){if(t){const r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:s(t.pageOrder),blackAndWhite:o(t.blackAndWhite),draft:o(t.draft),cellComments:a(t.cellComments),errors:l(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:o(t.firstPageNumber),usePrinterDefaults:o(t.usePrinterDefaults),copies:t.copies};n.some(r,e=>void 0!==e)&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../base-xform");function o(e){return e?"1":void 0}t.exports=class extends i{get tag(){return"printOptions"}render(e,t){if(t){const r={headings:o(t.showRowColHeaders),gridLines:o(t.showGridLines),horizontalCentered:o(t.horizontalCentered),verticalCentered:o(t.verticalCentered)};n.some(r,e=>void 0!==e)&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,t,r){"use strict";const n=e("./page-breaks-xform"),i=e("../list-xform");t.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new n})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const{childXform:r}=this;t.forEach(t=>{r.render(e,t)}),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("../../../utils/utils"),o=e("./cell-xform");t.exports=class extends n{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new o}}get tag(){return"row"}prepare(e,t){const r=t.styles.addStyleModel(e.style);r&&(e.styleId=r);const n=this.map.c;e.cells.forEach(e=>{n.prepare(e,t)})}render(e,t,r){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const n=this.map.c;t.cells.forEach(t=>{n.render(e,t,r)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map(e=>parseInt(e,10)):[void 0,void 0],r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(r.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(r.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(r.bestFit=!0),e.attributes.ht&&(r.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(r.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){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(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const r=this.map.c;e.cells.forEach(e=>{r.reconcile(e,t)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../base-xform");t.exports=class extends i{get tag(){return"sheetFormatPr"}render(e,t){if(t){const r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(r.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(r.customHeight="1"),n.some(r,e=>void 0!==e)&&e.leafNode("sheetFormatPr",r)}}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("../style/color-xform"),o=e("./page-setup-properties-xform"),s=e("./outline-properties-xform");t.exports=class extends n{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new o,outlinePr:new s}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback(),e.openNode("sheetPr");let r=!1;r=this.map.tabColor.render(e,t.tabColor)||r,r=this.map.pageSetUpPr.render(e,t.pageSetup)||r,r=this.map.outlinePr.render(e,t.outlineProperties)||r,r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(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,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../base-xform");function o(e,t){return e?t:void 0}function s(e,t){return e===t||void 0}t.exports=class extends i{get tag(){return"sheetProtection"}render(e,t){if(t){const r={sheet:o(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:o(t.formatCells,"0"),formatColumns:o(t.formatColumns,"0"),formatRows:o(t.formatRows,"0"),insertColumns:o(t.insertColumns,"0"),insertRows:o(t.insertRows,"0"),insertHyperlinks:o(t.insertHyperlinks,"0"),deleteColumns:o(t.deleteColumns,"0"),deleteRows:o(t.deleteRows,"0"),sort:o(t.sort,"0"),autoFilter:o(t.autoFilter,"0"),pivotTables:o(t.pivotTables,"0")};t.sheet&&(r.algorithmName=t.algorithmName,r.hashValue=t.hashValue,r.saltValue=t.saltValue,r.spinCount=t.spinCount,r.objects=o(!1===t.objects,"1"),r.scenarios=o(!1===t.scenarios,"1")),n.some(r,e=>void 0!==e)&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={sheet:s(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:s(e.attributes.formatCells,"0"),formatColumns:s(e.attributes.formatColumns,"0"),formatRows:s(e.attributes.formatRows,"0"),insertColumns:s(e.attributes.insertColumns,"0"),insertRows:s(e.attributes.insertRows,"0"),insertHyperlinks:s(e.attributes.insertHyperlinks,"0"),deleteColumns:s(e.attributes.deleteColumns,"0"),deleteRows:s(e.attributes.deleteRows,"0"),sort:s(e.attributes.sort,"0"),autoFilter:s(e.attributes.autoFilter,"0"),pivotTables:s(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,t,r){"use strict";const n=e("../../../utils/col-cache"),i=e("../base-xform"),o={frozen:"frozen",frozenSplit:"frozen",split:"split"};t.exports=class extends i{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const r=function(t,r,n){n&&e.addAttribute(t,r)};let i,o,s,a;switch(r("rightToLeft","1",!0===t.rightToLeft),r("tabSelected","1",t.tabSelected),r("showRuler","0",!1===t.showRuler),r("showRowColHeaders","0",!1===t.showRowColHeaders),r("showGridLines","0",!1===t.showGridLines),r("zoomScale",t.zoomScale,t.zoomScale),r("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),r("view",t.style,t.style),t.state){case"frozen":o=t.xSplit||0,s=t.ySplit||0,i=t.topLeftCell||n.getAddress(s+1,o+1).address,a=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:a,state:"frozen"}),e.leafNode("selection",{pane:a,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":{const t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,r;return"sheetView"!==e||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:o[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},"split"===this.model.state&&(t.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=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},r=this.selections.topLeft,r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),o=e("../../../utils/xml-stream"),s=e("../../rel-type"),a=e("./merges"),l=e("../base-xform"),c=e("../list-xform"),u=e("./row-xform"),d=e("./col-xform"),h=e("./dimension-xform"),f=e("./hyperlink-xform"),p=e("./merge-cell-xform"),m=e("./data-validations-xform"),g=e("./sheet-properties-xform"),b=e("./sheet-format-properties-xform"),y=e("./sheet-view-xform"),A=e("./sheet-protection-xform"),v=e("./page-margins-xform"),w=e("./page-setup-xform"),x=e("./print-options-xform"),k=e("./auto-filter-xform"),C=e("./picture-xform"),_=e("./drawing-xform"),S=e("./table-part-xform"),E=e("./row-breaks-xform"),T=e("./header-footer-xform"),M=e("./cf/conditional-formattings-xform"),O=e("./ext-lst-xform"),N=(e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;const r={},n={};return e.forEach(e=>{r[e.ref]=e,e.rules.forEach(e=>{const{x14Id:t}=e;t&&(n[t]=e)})}),t.forEach(t=>{t.rules.forEach(i=>{const o=n[i.x14Id];o?((e,t)=>{Object.keys(t).forEach(r=>{const n=e[r],i=t[r];void 0===n&&void 0!==i&&(e[r]=i)})})(o,i):r[t.ref]?r[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})})}),e};class P extends l{constructor(e){super();const{maxRows:t,maxCols:r,ignoreNodes:n}=e||{};this.ignoreNodes=n||[],this.map={sheetPr:new g,dimension:new h,sheetViews:new c({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new b,cols:new c({tag:"cols",count:!1,childXform:new d}),sheetData:new c({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:r}),maxItems:t}),autoFilter:new k,mergeCells:new c({tag:"mergeCells",count:!0,childXform:new p}),rowBreaks:new E,hyperlinks:new c({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new v,dataValidations:new m,pageSetup:new w,headerFooter:new T,printOptions:new x,picture:new C,drawing:new _,sheetProtection:new A,tableParts:new c({tag:"tableParts",count:!0,childXform:new S}),conditionalFormatting:new M,extLst:new O}}prepare(e,t){t.merges=new a,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function n(e){return"rId"+(e.length+1)}if(e.hyperlinks.forEach(e=>{const t=n(r);e.rId=t,r.push({Id:t,Type:s.Hyperlink,Target:e.target,TargetMode:"External"})}),e.comments.length>0){const o={Id:n(r),Type:s.Comments,Target:`../comments${e.id}.xml`};r.push(o);const a={Id:n(r),Type:s.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(a),e.comments.forEach(e=>{e.refAddress=i.decodeAddress(e.ref)}),t.commentRefs.push({commentName:"comments"+e.id,vmlDrawing:"vmlDrawing"+e.id})}const o=[];let l;e.media.forEach(i=>{if("background"===i.type){const o=n(r);l=t.media[i.imageId],r.push({Id:o,Type:s.Image,Target:`../media/${l.name}.${l.extension}`}),e.background={rId:o},e.image=t.media[i.imageId]}else if("image"===i.type){let{drawing:a}=e;l=t.media[i.imageId],a||(a=e.drawing={rId:n(r),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(a),r.push({Id:a.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${a.name}.xml`}));let c=this.preImageId===i.imageId?o[i.imageId]:o[a.rels.length];c||(c=n(a.rels),o[a.rels.length]=c,a.rels.push({Id:c,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${l.name}.${l.extension}`}));const u={picture:{rId:c},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){const e=n(a.rels);o[a.rels.length]=e,u.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e},a.rels.push({Id:e,Type:s.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=i.imageId,a.anchors.push(u)}}),e.tables.forEach(e=>{const i=n(r);e.rId=i,r.push({Id:i,Type:s.Table,Target:"../tables/"+e.target}),e.columns.forEach(e=>{const{style:r}=e;r&&(e.dxfId=t.styles.addDxfStyle(r))})}),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(o.StdDocAttributes),e.openNode("worksheet",P.WORKSHEET_ATTRIBUTES);const r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(r.defaultColWidth=t.properties.defaultColWidth);const n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},i=t.pageSetup&&t.pageSetup.margins,a={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},l=t.sheetProtection;this.map.sheetPr.render(e,n),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,l),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,a),this.map.pageMargins.render(e,i),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach(t=>{t.Type===s.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(n.each(this.map,e=>{e.reset()}),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},r=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),n=N(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:e,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:n},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(e,t){const r=(e.relationships||[]).reduce((r,n)=>{if(r[n.Id]=n,n.Type===s.Comments&&(e.comments=t.comments[n.Target].comments),n.Type===s.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[n.Target].comments;e.comments.forEach((e,t)=>{e.note=Object.assign({},e.note,r[t])})}return r},{});if(t.commentsMap=(e.comments||[]).reduce((e,t)=>(t.ref&&(e[t.ref]=t),e),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce((e,t)=>(t.rId&&(e[t.address]=r[t.rId].Target),e),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach(e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]}),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const n=r[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){const r=n[1];t.drawings[r].anchors.forEach(t=>{if(t.medium){const r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}})}}const n=e.background&&r[e.background.rId];if(n){const r=n.Target.split("/media/")[1],i=t.mediaIndex&&t.mediaIndex[r];void 0!==i&&e.media.push({type:"background",imageId:i})}e.tables=(e.tables||[]).map(e=>{const n=r[e.rId];return t.tables[n.Target]}),delete e.relationships,delete e.hyperlinks,delete e.comments}}P.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"},t.exports=P},{"../../../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,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,t,r){"use strict";const n=e("./base-xform"),i=e("../../utils/xml-stream");t.exports=class extends n{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new i;!function e(t,r){t.openNode(r.tag,r.$),r.c&&r.c.forEach(r=>{e(t,r)}),r.t&&t.writeText(r.t),t.closeNode()}(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){return e!==this._model.tag}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,t,r){"use strict";const n=e("./text-xform"),i=e("./rich-text-xform"),o=e("../base-xform");t.exports=class extends o{constructor(){super(),this.map={r:new i,t:new n}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r:r}=this.map;t.richText.forEach(t=>{r.render(e,t)})}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,t,r){"use strict";const n=e("./text-xform"),i=e("../style/font-xform"),o=e("../base-xform");class s extends o{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new n)}get fontXform(){return this._fontXform||(this._fontXform=new i(s.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){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(e),!0}}}s.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},t.exports=s},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,t,r){"use strict";const n=e("./text-xform"),i=e("./rich-text-xform"),o=e("./phonetic-text-xform"),s=e("../base-xform");t.exports=class extends s{constructor(e){super(),this.model=e,this.map={r:new i,t:new n,rPh:new o}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach(t=>{this.map.r.render(e,t)}):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("./shared-string-xform");t.exports=class extends i{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new o)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){const t=this.sharedStringXform.toXml(e);let r=this.rich[t];return void 0===r&&(r=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,r}render(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach(t=>{r.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(e,t)=>String.fromCharCode(parseInt(t,16)))}parseOpen(e){return"t"===e.name&&(this._text=[],!0)}parseText(e){this._text.push(e)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,t,r){"use strict";const n=e("../../../doc/enums"),i=e("../../../utils/utils"),o=e("../base-xform"),s={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((e,t)=>(e[t]=!0,e),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation:e=>"vertical"===e||(e=i.validInt(e))>=-90&&e<=90?e:void 0,indent:e=>(e=i.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},a={toXml(e){if(e=s.textRotation(e)){if("vertical"===e)return 255;const t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){const t=i.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};t.exports=class extends o{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let r=!1;function n(t,n){n&&(e.addAttribute(t,n),r=!0)}n("horizontal",s.horizontal(t.horizontal)),n("vertical",s.vertical(t.vertical)),n("wrapText",!!s.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!s.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",s.indent(t.indent)),n("textRotation",a.toXml(t.textRotation)),n("readingOrder",s.readingOrder(t.readingOrder)),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={};let r=!1;function n(e,n,i){e&&(t[n]=i,r=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText)),n(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit)),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",a.toModel(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=r?t:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("../../../utils/utils"),o=e("./color-xform");class s extends n{constructor(e){super(),this.name=e,this.map={color:new o}}get tag(){return this.name}render(e,t,r){const n=t&&t.color||r||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),n&&this.map.color.render(e,n)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return s.validStyleValues[e]}}s.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((e,t)=>(e[t]=!0,e),{}),t.exports=class extends n{constructor(){super(),this.map={top:new s("top"),left:new s("left"),bottom:new s("bottom"),right:new s("right"),diagonal:new s("diagonal")}}render(e,t){const{color:r}=t;function n(n,i){n&&!n.color&&t.color&&(n={...n,color:t.color}),i.render(e,n,r)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),n(t.left,this.map.left),n(t.right,this.map.right),n(t.top,this.map.top),n(t.bottom,this.map.bottom),n(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,r,n){r&&(n&&Object.assign(r,n),e[t]=r)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("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,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./alignment-xform"),o=e("./border-xform"),s=e("./fill-xform"),a=e("./font-xform"),l=e("./numfmt-xform"),c=e("./protection-xform");t.exports=class extends n{constructor(){super(),this.map={alignment:new i,border:new o,fill:new s,font:new a,numFmt:new l,protection:new c}}get tag(){return"dxf"}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){const r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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,t,r){"use strict";const n=e("../base-xform"),i=e("./color-xform");class o extends n{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class s extends n{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class a extends n{constructor(){super(),this.map={stop:new o}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const r=this.map.stop;t.stops.forEach(t=>{r.render(e,t)}),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":{const t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class l extends n{constructor(){super(),this.map={patternFill:new s,gradientFill:new a}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return l.validPatternValues[e]}}l.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((e,t)=>(e[t]=!0,e),{}),l.StopXform=o,l.PatternFillXform=s,l.GradientFillXform=a,t.exports=l},{"../base-xform":32,"./color-xform":128}],131:[function(e,t,r){"use strict";const n=e("./color-xform"),i=e("../simple/boolean-xform"),o=e("../simple/integer-xform"),s=e("../simple/string-xform"),a=e("./underline-xform"),l=e("../../../utils/under-dash"),c=e("../base-xform");class u extends c{constructor(e){super(),this.options=e||u.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new a},charset:{prop:"charset",xform:new o({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new o({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new s({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new s({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new o({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new s({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:r}=this;e.openNode(this.options.tagName),l.each(this.map,(n,i)=>{r[i].xform.render(e,t[n.prop])}),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}u.OPTIONS={tagName:"font",fontNameTag:"name"},t.exports=u},{"../../../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,t,r){"use strict";const n=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),o=e("../base-xform"),s=function(){const e={};return n.each(i,(t,r)=>{t.f&&(e[t.f]=parseInt(r,10))}),e}();class a extends o{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}a.getDefaultFmtId=function(e){return s[e]},a.getDefaultFmtCode=function(e){return i[e]&&i[e].f},t.exports=a},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,t,r){"use strict";const n=e("../base-xform"),i={boolean:(e,t)=>void 0===e?t:e};t.exports=class extends n{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let r=!1;function n(t,n){void 0!==n&&(e.addAttribute(t,n),r=!0)}n("locked",i.boolean(t.locked,!0)?void 0:"0"),n("hidden",i.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},r=!t.locked||t.hidden;this.model=r?t:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./alignment-xform"),o=e("./protection-xform");t.exports=class extends n{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new i,protection:new o}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,t,r){"use strict";const n=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),o=e("../base-xform"),s=e("../static-xform"),a=e("../list-xform"),l=e("./font-xform"),c=e("./fill-xform"),u=e("./border-xform"),d=e("./numfmt-xform"),h=e("./style-xform"),f=e("./dxf-xform");class p extends o{constructor(e){super(),this.map={numFmts:new a({tag:"numFmts",count:!0,childXform:new d}),fonts:new a({tag:"fonts",count:!0,childXform:new l,$:{"x14ac:knownFonts":1}}),fills:new a({tag:"fills",count:!0,childXform:new c}),borders:new a({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new a({tag:"cellStyleXfs",count:!0,childXform:new h}),cellXfs:new a({tag:"cellXfs",count:!0,childXform:new h({xfId:!0})}),dxfs:new a({tag:"dxfs",always:!0,count:!0,childXform:new f}),numFmt:new d,font:new l,fill:new c,border:new u,style:new h({xfId:!0}),cellStyles:p.STATIC_XFORMS.cellStyles,tableStyles:p.STATIC_XFORMS.tableStyles,extLst:p.STATIC_XFORMS.extLst},e&&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(e,t){t=t||this.model,e.openXml(i.StdDocAttributes),e.openNode("styleSheet",p.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach(t=>{e.writeXml(t)}),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach(t=>{e.writeXml(t)}),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach(t=>{e.writeXml(t)}),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach(t=>{e.writeXml(t)}),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),p.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),p.STATIC_XFORMS.tableStyles.render(e),p.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach(t=>{e[t.id]=t.formatCode})}return!1}return!0}addStyleModel(e,t){if(!e)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(e))return this.weakMap.get(e);const r={};if(t=t||n.ValueType.Number,e.numFmt)r.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case n.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(r.fontId=this._addFont(e.font)),e.border&&(r.borderId=this._addBorder(e.border)),e.fill&&(r.fillId=this._addFill(e.fill)),e.alignment&&(r.alignment=e.alignment),e.protection&&(r.protection=e.protection);const i=this._addStyle(r);return this.weakMap&&this.weakMap.set(e,i),i}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(r)return r;if(r=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||d.getDefaultFmtCode(t.numFmtId);e&&(r.numFmt=e)}function n(e,t,n){if(n||0===n){const i=t[n];i&&(r[e]=i)}}return n("font",this.model.fonts,t.fontId),n("border",this.model.borders,t.borderId),n("fill",this.model.fills,t.fillId),t.alignment&&(r.alignment=t.alignment),t.protection&&(r.protection=t.protection),r}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let r=this.index.style[t];return void 0===r&&(r=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),r}_addNumFmtStr(e){let t=d.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;const r=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(r),t}_addFont(e){const t=this.map.font.toXml(e);let r=this.index.font[t];return void 0===r&&(r=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),r}_addBorder(e){const t=this.map.border.toXml(e);let r=this.index.border[t];return void 0===r&&(r=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),r}_addFill(e){const t=this.map.fill.toXml(e);let r=this.index.fill[t];return void 0===r&&(r=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),r}}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 s({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new s({tag:"dxfs",$:{count:0}}),tableStyles:new s({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new s({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(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){return t===n.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:d.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},t.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,t,r){"use strict";const n=e("../base-xform");class i extends n{constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{const r=i.Attributes[t];r&&e.leafNode("u",r)}}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},t.exports=i},{"../base-xform":32}],137:[function(e,t,r){"use strict";const n=e("../base-xform"),i=e("./filter-column-xform");t.exports=class extends n{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach((e,t)=>{this.map.filterColumn.prepare(e,{index:t})})}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach(t=>{this.map.filterColumn.render(e,t)}),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error("Unexpected xml node in parseClose: "+e)}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,t,r){"use strict";
2const n=e("../base-xform"),i=e("../list-xform"),o=e("./custom-filter-xform"),s=e("./filter-xform");t.exports=class extends n{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new o}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new s})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:t}=e;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(e))}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,t,r){"use strict";const n=e("../base-xform");t.exports=class extends n{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,t,r){"use strict";const n=e("../../../utils/xml-stream"),i=e("../base-xform"),o=e("../list-xform"),s=e("./auto-filter-xform"),a=e("./table-column-xform"),l=e("./table-style-info-xform");class c extends i{constructor(){super(),this.map={autoFilter:new s,tableColumns:new o({tag:"tableColumns",count:!0,empty:!0,childXform:new a}),tableStyleInfo:new l}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,{...c.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{name:t,attributes:r}=e;return t===this.tag?(this.reset(),this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:"1"===r.totalsRowCount,headerRow:"1"===r.headerRowCount}):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==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((e,t)=>{this.model.columns[t].filterButton=e.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1)}
vendor: 11,852 bytes, line 2
2reconcile(e,t){e.columns.forEach(e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))})}}c.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"},t.exports=c},{"../../../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,t,r){(function(r,n){(function(){"use strict";const i=e("fs"),o=e("jszip"),{PassThrough:s}=e("readable-stream"),a=e("../utils/zip-stream"),l=e("../utils/stream-buf"),c=e("../utils/utils"),u=e("../utils/xml-stream"),{bufferToString:d}=e("../utils/browser-buffer-decode"),h=e("./xform/style/styles-xform"),f=e("./xform/core/core-xform"),p=e("./xform/strings/shared-strings-xform"),m=e("./xform/core/relationships-xform"),g=e("./xform/core/content-types-xform"),b=e("./xform/core/app-xform"),y=e("./xform/book/workbook-xform"),A=e("./xform/sheet/worksheet-xform"),v=e("./xform/drawing/drawing-xform"),w=e("./xform/table/table-xform"),x=e("./xform/comment/comments-xform"),k=e("./xform/comment/vml-notes-xform"),C=e("./xml/theme1");class _{constructor(e){this.workbook=e}async readFile(e,t){if(!await c.fs.exists(e))throw new Error("File not found: "+e);const r=i.createReadStream(e);try{const e=await this.read(r,t);return r.close(),e}catch(e){throw r.close(),e}}parseRels(e){return(new m).parseStream(e)}parseWorkbook(e){return(new y).parseStream(e)}parseSharedStrings(e){return(new p).parseStream(e)}reconcile(e,t){const r=new y,n=new A(t),i=new v,o=new w;r.reconcile(e);const s={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach(t=>{const r=e.drawings[t],n=e.drawingRels[t];n&&(s.rels=n.reduce((e,t)=>(e[t.Id]=t,e),{}),(r.anchors||[]).forEach(e=>{const t=e.picture&&e.picture.hyperlinks;t&&s.rels[t.rId]&&(t.hyperlink=s.rels[t.rId].Target,delete t.rId)}),i.reconcile(r,s))});const a={styles:e.styles};Object.values(e.tables).forEach(e=>{o.reconcile(e,a)});const l={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(t=>{t.relationships=e.worksheetRels[t.sheetNo],n.reconcile(t,l)}),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,t,r,n,i){const o=new A(n),s=await o.parseStream(e);s.sheetNo=r,t.worksheetHash[i]=s,t.worksheets.push(s)}async _processCommentEntry(e,t,r){const n=new x,i=await n.parseStream(e);t.comments[`../${r}.xml`]=i}async _processTableEntry(e,t,r){const n=new w,i=await n.parseStream(e);t.tables[`../tables/${r}.xml`]=i}async _processWorksheetRelsEntry(e,t,r){const n=new m,i=await n.parseStream(e);t.worksheetRels[r]=i}async _processMediaEntry(e,t,r){const n=r.lastIndexOf(".");if(n>=1){const i=r.substr(n+1),o=r.substr(0,n);await new Promise((n,s)=>{const a=new l;a.on("finish",()=>{t.mediaIndex[r]=t.media.length,t.mediaIndex[o]=t.media.length;const e={type:"image",name:o,extension:i,buffer:a.toBuffer()};t.media.push(e),n()}),e.on("error",e=>{s(e)}),e.pipe(a)})}}async _processDrawingEntry(e,t,r){const n=new v,i=await n.parseStream(e);t.drawings[r]=i}async _processDrawingRelsEntry(e,t,r){const n=new m,i=await n.parseStream(e);t.drawingRels[r]=i}async _processVmlDrawingEntry(e,t,r){const n=new k,i=await n.parseStream(e);t.vmlDrawings[`../drawings/${r}.vml`]=i}async _processThemeEntry(e,t,r){await new Promise((n,i)=>{const o=new l;e.on("error",i),o.on("error",i),o.on("finish",()=>{t.themes[r]=o.read().toString(),n()}),e.pipe(o)})}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,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new s));const r=[];for await(const n of e)r.push(n);return this.load(n.concat(r),t)}async load(e,t){let i;i=t&&t.base64?n.from(e.toString(),"base64"):e;const a={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},l=await o.loadAsync(i);for(const n of Object.values(l.files))if(!n.dir){let e,i=n.name;if("/"===i[0]&&(i=i.substr(1)),i.match(/xl\/media\//)||i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))e=new s,e.write(await n.async("nodebuffer"));else{let t;e=new s({writableObjectMode:!0,readableObjectMode:!0}),t=r.browser?d(await n.async("nodebuffer")):await n.async("string");const i=16384;for(let r=0;r<t.length;r+=i)e.write(t.substring(r,r+i))}switch(e.end(),i){case"_rels/.rels":a.globalRels=await this.parseRels(e);break;case"xl/workbook.xml":{const t=await this.parseWorkbook(e);a.sheets=t.sheets,a.definedNames=t.definedNames,a.views=t.views,a.properties=t.properties,a.calcProperties=t.calcProperties;break}case"xl/_rels/workbook.xml.rels":a.workbookRels=await this.parseRels(e);break;case"xl/sharedStrings.xml":a.sharedStrings=new p,await a.sharedStrings.parseStream(e);break;case"xl/styles.xml":a.styles=new h,await a.styles.parseStream(e);break;case"docProps/app.xml":{const t=new b,r=await t.parseStream(e);a.company=r.company,a.manager=r.manager;break}case"docProps/core.xml":{const t=new f,r=await t.parseStream(e);Object.assign(a,r);break}default:{let r=i.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(r){await this._processWorksheetEntry(e,a,r[1],t,i);break}if(r=i.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),r){await this._processWorksheetRelsEntry(e,a,r[1]);break}if(r=i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),r){await this._processThemeEntry(e,a,r[1]);break}if(r=i.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),r){await this._processMediaEntry(e,a,r[1]);break}if(r=i.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),r){await this._processDrawingEntry(e,a,r[1]);break}if(r=i.match(/xl\/(comments\d+)[.]xml/),r){await this._processCommentEntry(e,a,r[1]);break}if(r=i.match(/xl\/tables\/(table\d+)[.]xml/),r){await this._processTableEntry(e,a,r[1]);break}if(r=i.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),r){await this._processDrawingRelsEntry(e,a,r[1]);break}if(r=i.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),r){await this._processVmlDrawingEntry(e,a,r[1]);break}}}}return this.reconcile(a,t),this.workbook.model=a,this.workbook}async addMedia(e,t){await Promise.all(t.media.map(async t=>{if("image"===t.type){const r=`xl/media/${t.name}.${t.extension}`;if(t.filename){const n=await function(e,t){return new Promise((r,n)=>{i.readFile(e,t,(e,t)=>{e?n(e):r(t)})})}(t.filename);return e.append(n,{name:r})}if(t.buffer)return e.append(t.buffer,{name:r});if(t.base64){const n=t.base64,i=n.substring(n.indexOf(",")+1);return e.append(i,{name:r,base64:!0})}}throw new Error("Unsupported media")}))}addDrawings(e,t){const r=new v,n=new m;t.worksheets.forEach(t=>{const{drawing:i}=t;if(i){r.prepare(i,{});let t=r.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`}),t=n.toXml(i.rels),e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}})}addTables(e,t){const r=new w;t.worksheets.forEach(t=>{const{tables:n}=t;n.forEach(t=>{r.prepare(t,{});const n=r.toXml(t);e.append(n,{name:"xl/tables/"+t.target})})})}async addContentTypes(e,t){const r=(new g).toXml(t);e.append(r,{name:"[Content_Types].xml"})}async addApp(e,t){const r=(new b).toXml(t);e.append(r,{name:"docProps/app.xml"})}async addCore(e,t){const r=new f;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:C};Object.keys(r).forEach(t=>{const n=r[t],i=`xl/theme/${t}.xml`;e.append(n,{name:i})})}async addOfficeRels(e){const t=(new m).toXml([{Id:"rId1",Type:_.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:_.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:_.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const n=[{Id:"rId"+r++,Type:_.RelType.Styles,Target:"styles.xml"},{Id:"rId"+r++,Type:_.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&n.push({Id:"rId"+r++,Type:_.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach(e=>{e.rId="rId"+r++,n.push({Id:e.rId,Type:_.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})});const i=(new m).toXml(n);e.append(i,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){const{xml:r}=t.styles;r&&e.append(r,{name:"xl/styles.xml"})}async addWorkbook(e,t){const r=new y;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new A,n=new m,i=new x,o=new k;t.worksheets.forEach(t=>{let s=new u;r.render(s,t),e.append(s.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(s=new u,n.render(s,t.rels),e.append(s.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(s=new u,i.render(s,t),e.append(s.xml,{name:`xl/comments${t.id}.xml`}),s=new u,o.render(s,t),e.append(s.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))})}_finalize(e){return new Promise((t,r)=>{e.on("finish",()=>{t(this)}),e.on("error",r),e.finalize()})}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new p,e.styles=e.useStyles?new h(!0):new h.Mock;const r=new y,n=new A;r.prepare(e);const i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];let o=0;e.tables=[],e.worksheets.forEach(t=>{t.tables.forEach(t=>{o++,t.target=`table${o}.xml`,t.id=o,e.tables.push(t)}),n.prepare(t,i)})}async write(e,t){t=t||{};const{model:r}=this.workbook,n=new a.ZipWriter(t.zip);return n.pipe(e),this.prepareModel(r,t),await this.addContentTypes(n,r),await this.addOfficeRels(n,r),await this.addWorkbookRels(n,r),await this.addWorksheets(n,r),await this.addSharedStrings(n,r),await this.addDrawings(n,r),await this.addTables(n,r),await Promise.all([this.addThemes(n,r),this.addStyles(n,r)]),await this.addMedia(n,r),await Promise.all([this.addApp(n,r),this.addCore(n,r)]),await this.addWorkbook(n,r),this._finalize(n)}writeFile(e,t){const r=i.createWriteStream(e);return new Promise((e,n)=>{r.on("finish",()=>{e()}),r.on("error",e=>{n(e)}),this.write(r,t).then(()=>{r.end()}).catch(e=>{n(e)})})}async writeBuffer(e){const t=new l;return await this.write(t,e),t.read()}}_.RelType=e("./rel-type"),t.exports=_}).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
vendor: 8,261 bytes, line 2
2}],145:[function(e,t,r){"use strict";t.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<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="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <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="\uff2d\uff33 \uff30\u30b4\u30b7\u30c3\u30af"/> <a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/> <a:font script="Hans" typeface="\u5b8b\u4f53"/> <a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/> <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,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvFormatterStream=void 0;const
vendor: 69,540 bytes, line 2
2n=e("stream"),i=e("./formatter");class o extends n.Transform{constructor(e){super({writableObjectMode:e.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=e,this.rowFormatter=new i.RowFormatter(e),this.hasWrittenBOM=!e.writeBOM}transform(e){return this.rowFormatter.rowTransform=e,this}_transform(e,r,n){let i=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(e,(e,r)=>e?(i=!0,n(e)):(r&&r.forEach(e=>{this.push(t.from(e,"utf8"))}),i=!0,n()))}catch(e){if(i)throw e;n(e)}}_flush(e){this.rowFormatter.finish((r,n)=>r?e(r):(n&&n.forEach(e=>{this.push(t.from(e,"utf8"))}),e()))}}r.CsvFormatterStream=o}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FormatterOptions=void 0,r.FormatterOptions=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;this.objectMode=!0,this.delimiter=",",this.rowDelimiter="\n",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,e||{}),void 0===(null==e?void 0:e.quoteHeaders)&&(this.quoteHeaders=this.quoteColumns),!0===(null==e?void 0:e.quote)?this.quote='"':!1===(null==e?void 0:e.quote)&&(this.quote=""),"string"!=typeof(null==e?void 0:e.escape)&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&(null===(t=e.writeHeaders)||void 0===t||t),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=void 0;const i=n(e("lodash.isboolean")),o=n(e("lodash.isnil")),s=n(e("lodash.escaperegexp"));r.FieldFormatter=class{constructor(e){this._headers=null,this.formatterOptions=e,null!==e.headers&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");const t=`[${e.delimiter}${s.default(e.rowDelimiter)}|\r|\n]`;this.ESCAPE_REGEXP=new RegExp(t)}set headers(e){this._headers=e}shouldQuote(e,t){const r=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return i.default(r)?r:Array.isArray(r)?r[e]:null!==this._headers&&r[this._headers[e]]}format(e,t,r){const n=(""+(o.default(e)?"":e)).replace(/\0/g,""),{formatterOptions:i}=this;return""!==i.quote&&-1!==n.indexOf(i.quote)?this.quoteField(n.replace(this.REPLACE_REGEXP,i.escapedQuote)):-1!==n.search(this.ESCAPE_REGEXP)||this.shouldQuote(t,r)?this.quoteField(n):n}quoteField(e){const{quote:t}=this.formatterOptions;return`${t}${e}${t}`}}},{"lodash.escaperegexp":442,"lodash.isboolean":444,"lodash.isnil":447}],149:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.RowFormatter=void 0;const i=n(e("lodash.isfunction")),o=n(e("lodash.isequal")),s=e("./FieldFormatter"),a=e("../types");class l{constructor(e){this.rowCount=0,this.formatterOptions=e,this.fieldFormatter=new s.FieldFormatter(e),this.headers=e.headers,this.shouldWriteHeaders=e.shouldWriteHeaders,this.hasWrittenHeaders=!1,null!==this.headers&&(this.fieldFormatter.headers=this.headers),e.transform&&(this.rowTransform=e.transform)}static isRowHashArray(e){return!!Array.isArray(e)&&Array.isArray(e[0])&&2===e[0].length}static isRowArray(e){return Array.isArray(e)&&!this.isRowHashArray(e)}static gatherHeaders(e){return l.isRowHashArray(e)?e.map(e=>e[0]):Array.isArray(e)?e:Object.keys(e)}static createTransform(e){return a.isSyncTransform(e)?(t,r)=>{let n=null;try{n=e(t)}catch(e){return r(e)}return r(null,n)}:(t,r)=>{e(t,r)}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=l.createTransform(e)}format(e,t){this.callTransformer(e,(r,n)=>{if(r)return t(r);if(!e)return t(null);const i=[];if(n){const{shouldFormatColumns:e,headers:t}=this.checkHeaders(n);if(this.shouldWriteHeaders&&t&&!this.hasWrittenHeaders&&(i.push(this.formatColumns(t,!0)),this.hasWrittenHeaders=!0),e){const e=this.gatherColumns(n);i.push(this.formatColumns(e,!1))}}return t(null,i)})}finish(e){const t=[];if(this.formatterOptions.alwaysWriteHeaders&&0===this.rowCount){if(!this.headers)return e(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));t.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&t.push(this.formatterOptions.rowDelimiter),e(null,t)}checkHeaders(e){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};const t=l.gatherHeaders(e);return this.headers=t,this.fieldFormatter.headers=t,this.shouldWriteHeaders?{shouldFormatColumns:!o.default(t,e),headers:t}:{shouldFormatColumns:!0,headers:null}}gatherColumns(e){if(null===this.headers)throw new Error("Headers is currently null");return Array.isArray(e)?l.isRowHashArray(e)?this.headers.map((t,r)=>{const n=e[r];return n?n[1]:""}):l.isRowArray(e)&&!this.shouldWriteHeaders?e:this.headers.map((t,r)=>e[r]):this.headers.map(t=>e[t])}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}formatColumns(e,t){const r=e.map((e,r)=>this.fieldFormatter.format(e,r,t)).join(this.formatterOptions.delimiter),{rowCount:n}=this;return this.rowCount+=1,n?[this.formatterOptions.rowDelimiter,r].join(""):r}}r.RowFormatter=l},{"../types":152,"./FieldFormatter":148,"lodash.isequal":445,"lodash.isfunction":446}],150:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FieldFormatter=r.RowFormatter=void 0;var n=e("./RowFormatter");Object.defineProperty(r,"RowFormatter",{enumerable:!0,get:function(){return n.RowFormatter}});var i=e("./FieldFormatter");Object.defineProperty(r,"FieldFormatter",{enumerable:!0,get:function(){return i.FieldFormatter}})},{"./FieldFormatter":148,"./RowFormatter":149}],151:[function(e,t,r){(function(t){(function(){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=r.FormatterOptions=r.CsvFormatterStream=void 0;const a=e("util"),l=e("stream"),c=o(e("fs")),u=e("./FormatterOptions"),d=e("./CsvFormatterStream");s(e("./types"),r);var h=e("./CsvFormatterStream");Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return h.CsvFormatterStream}});var f=e("./FormatterOptions");Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return f.FormatterOptions}}),r.format=e=>new d.CsvFormatterStream(new u.FormatterOptions(e)),r.write=(e,t)=>{const n=r.format(t),i=a.promisify((e,t)=>{n.write(e,void 0,t)});return e.reduce((e,t)=>e.then(()=>i(t)),Promise.resolve()).then(()=>n.end()).catch(e=>{n.emit("error",e)}),n},r.writeToStream=(e,t,n)=>r.write(t,n).pipe(e),r.writeToBuffer=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=[],o=new l.Writable({write(e,t,r){i.push(e),r()}});return new Promise((s,a)=>{o.on("error",a).on("finish",()=>s(t.concat(i))),r.write(e,n).pipe(o)})},r.writeToString=(e,t)=>r.writeToBuffer(e,t).then(e=>e.toString()),r.writeToPath=(e,t,n)=>{const i=c.createWriteStream(e,{encoding:"utf8"});return r.write(t,n).pipe(i)}}).call(this)}).call(this,e("buffer").Buffer)},{"./CsvFormatterStream":146,"./FormatterOptions":147,"./types":152,buffer:220,fs:216,stream:505,util:527}],152:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncTransform=void 0,r.isSyncTransform=e=>1===e.length},{}],153:[function(e,t,r){(function(t){(function(){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=void 0;const n=e("string_decoder"),i=e("stream"),o=e("./transforms"),s=e("./parser");class a extends i.Transform{constructor(e){super({objectMode:e.objectMode}),this.lines="",this.rowCount=0,this.parsedRowCount=0,this.parsedLineCount=0,this.endEmitted=!1,this.headersEmitted=!1,this.parserOptions=e,this.parser=new s.Parser(e),this.headerTransformer=new o.HeaderTransformer(e),this.decoder=new n.StringDecoder(e.encoding),this.rowTransformerValidator=new o.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(e){return this.rowTransformerValidator.rowTransform=e,this}validate(e){return this.rowTransformerValidator.rowValidator=e,this}emit(e){if("end"===e)return this.endEmitted||(this.endEmitted=!0,super.emit("end",this.rowCount)),!1;for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return super.emit(e,...r)}_transform(e,t,r){if(this.hasHitRowLimit)return r();const n=a.wrapDoneCallback(r);try{const{lines:t}=this,r=t+this.decoder.write(e),i=this.parse(r,!0);return this.processRows(i,n)}catch(e){return n(e)}}_flush(e){const t=a.wrapDoneCallback(e);if(this.hasHitRowLimit)return t();try{const e=this.lines+this.decoder.end(),r=this.parse(e,!1);return this.processRows(r,t)}catch(e){return t(e)}}parse(e,t){if(!e)return[];const{line:r,rows:n}=this.parser.parse(e,t);return this.lines=r,n}processRows(e,r){const n=e.length,i=o=>{const s=e=>e?r(e):o%100!=0?i(o+1):void t(()=>i(o+1));if(this.checkAndEmitHeaders(),o>=n||this.hasHitRowLimit)return r();if(this.parsedLineCount+=1,this.shouldSkipLine)return s();const a=e[o];this.rowCount+=1,this.parsedRowCount+=1;const l=this.rowCount;return this.transformRow(a,(e,t)=>{if(e)return this.rowCount-=1,s(e);if(!t)return s(new Error("expected transform result"));if(t.isValid){if(t.row)return this.pushRow(t.row,s)}else this.emit("data-invalid",t.row,l,t.reason);return s()})};i(0)}transformRow(e,t){try{this.headerTransformer.transform(e,(r,n)=>r?t(r):n?n.isValid?n.row?this.shouldEmitRows?this.rowTransformerValidator.transformAndValidate(n.row,t):this.skipRow(t):(this.rowCount-=1,this.parsedRowCount-=1,t(null,{row:null,isValid:!0})):this.shouldEmitRows?t(null,{isValid:!1,row:e}):this.skipRow(t):t(new Error("Expected result from header transform")))}catch(e){t(e)}}checkAndEmitHeaders(){!this.headersEmitted&&this.headerTransformer.headers&&(this.headersEmitted=!0,this.emit("headers",this.headerTransformer.headers))}skipRow(e){return this.rowCount-=1,e(null,{row:null,isValid:!0})}pushRow(e,t){try{this.parserOptions.objectMode?this.push(e):this.push(JSON.stringify(e)),t()}catch(e){t(e)}}static wrapDoneCallback(e){let t=!1;return function(r){if(r){if(t)throw r;return t=!0,void e(r)}for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e(...i)}}}r.CsvParserStream=a}).call(this)}).call(this,e("timers").setImmediate)},{"./parser":165,"./transforms":168,stream:505,string_decoder:218,timers:523}],154:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ParserOptions=void 0;const i=n(e("lodash.escaperegexp")),o=n(e("lodash.isnil"));r.ParserOptions=class{constructor(e){var t;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,e||{}),this.delimiter.length>1)throw new Error("delimiter option must be one character long");this.escapedDelimiter=i.default(this.delimiter),this.escapeChar=null!==(t=this.escape)&&void 0!==t?t:this.quote,this.supportsComments=!o.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,t,r){"use strict";var n=Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.parseString=r.parseFile=r.parseStream=r.parse=r.ParserOptions=r.CsvParserStream=void 0;const a=o(e("fs")),l=e("stream"),c=e("./ParserOptions"),u=e("./CsvParserStream");s(e("./types"),r);var d=e("./CsvParserStream");Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return d.CsvParserStream}});var h=e("./ParserOptions");Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return h.ParserOptions}}),r.parse=e=>new u.CsvParserStream(new c.ParserOptions(e)),r.parseStream=(e,t)=>e.pipe(new u.CsvParserStream(new c.ParserOptions(t))),r.parseFile=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a.createReadStream(e).pipe(new u.CsvParserStream(new c.ParserOptions(t)))},r.parseString=(e,t)=>{const r=new l.Readable;return r.push(e),r.push(null),r.pipe(new u.CsvParserStream(new c.ParserOptions(t)))}},{"./CsvParserStream":153,"./ParserOptions":154,"./types":169,fs:216,stream:505}],156:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Parser=void 0;const n=e("./Scanner"),i=e("./RowParser"),o=e("./Token");class s{constructor(e){this.parserOptions=e,this.rowParser=new i.RowParser(this.parserOptions)}static removeBOM(e){return e&&65279===e.charCodeAt(0)?e.slice(1):e}parse(e,t){const r=new n.Scanner({line:s.removeBOM(e),parserOptions:this.parserOptions,hasMoreData:t});return this.parserOptions.supportsComments?this.parseWithComments(r):this.parseWithoutComments(r)}parseWithoutComments(e){const t=[];let r=!0;for(;r;)r=this.parseRow(e,t);return{line:e.line,rows:t}}parseWithComments(e){const{parserOptions:t}=this,r=[];for(let n=e.nextCharacterToken;null!==n;n=e.nextCharacterToken)if(o.Token.isTokenComment(n,t)){if(null===e.advancePastLine())return{line:e.lineFromCursor,rows:r};if(!e.hasMoreCharacters)return{line:e.lineFromCursor,rows:r};e.truncateToCursor()}else if(!this.parseRow(e,r))break;return{line:e.line,rows:r}}parseRow(e,t){if(!e.nextNonSpaceToken)return!1;const r=this.rowParser.parse(e);return null!==r&&(this.parserOptions.ignoreEmpty&&i.RowParser.isEmptyRow(r)||t.push(r),!0)}}r.Parser=s},{"./RowParser":157,"./Scanner":158,"./Token":159}],157:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.RowParser=void 0;const n=e("./column"),i=e("./Token");r.RowParser=class{constructor(e){this.parserOptions=e,this.columnParser=new n.ColumnParser(e)}static isEmptyRow(e){return""===e.join("").replace(/\s+/g,"")}parse(e){const{parserOptions:t}=this,{hasMoreData:r}=e,n=e,o=[];let s=this.getStartToken(n,o);for(;s;){if(i.Token.isTokenRowDelimiter(s))return n.advancePastToken(s),!n.hasMoreCharacters&&i.Token.isTokenCarriageReturn(s,t)&&r?null:(n.truncateToCursor(),o);if(!this.shouldSkipColumnParse(n,s,o)){const e=this.columnParser.parse(n);if(null===e)return null;o.push(e)}s=n.nextNonSpaceToken}return r?null:(n.truncateToCursor(),o)}getStartToken(e,t){const r=e.nextNonSpaceToken;return null!==r&&i.Token.isTokenDelimiter(r,this.parserOptions)?(t.push(""),e.nextNonSpaceToken):r}shouldSkipColumnParse(e,t,r){const{parserOptions:n}=this;if(i.Token.isTokenDelimiter(t,n)){e.advancePastToken(t);const o=e.nextCharacterToken;if(!e.hasMoreCharacters||null!==o&&i.Token.isTokenRowDelimiter(o))return r.push(""),!0;if(null!==o&&i.Token.isTokenDelimiter(o,n))return r.push(""),!0}return!1}}},{"./Token":159,"./column":164}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Scanner=void 0;const n=e("./Token"),i=/((?:\r\n)|\n|\r)/;r.Scanner=class{constructor(e){this.cursor=0,this.line=e.line,this.lineLength=this.line.length,this.parserOptions=e.parserOptions,this.hasMoreData=e.hasMoreData,this.cursor=e.cursor||0}get hasMoreCharacters(){return this.lineLength>this.cursor}get nextNonSpaceToken(){const{lineFromCursor:e}=this,t=this.parserOptions.NEXT_TOKEN_REGEXP;if(-1===e.search(t))return null;const r=t.exec(e);if(null==r)return null;const i=r[1],o=this.cursor+(r.index||0);return new n.Token({token:i,startCursor:o,endCursor:o+i.length-1})}get nextCharacterToken(){const{cursor:e,lineLength:t}=this;return t<=e?null:new n.Token({token:this.line[e],startCursor:e,endCursor:e})}get lineFromCursor(){return this.line.substr(this.cursor)}advancePastLine(){const e=i.exec(this.lineFromCursor);return e?(this.cursor+=(e.index||0)+e[0].length,this):this.hasMoreData?null:(this.cursor=this.lineLength,this)}advanceTo(e){return this.cursor=e,this}advanceToToken(e){return this.cursor=e.startCursor,this}advancePastToken(e){return this.cursor=e.endCursor+1,this}truncateToCursor(){return this.line=this.lineFromCursor,this.lineLength=this.line.length,this.cursor=0,this}}},{"./Token":159}],159:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Token=void 0,r.Token=class{constructor(e){this.token=e.token,this.startCursor=e.startCursor,this.endCursor=e.endCursor}static isTokenRowDelimiter(e){const t=e.token;return"\r"===t||"\n"===t||"\r\n"===t}static isTokenCarriageReturn(e,t){return e.token===t.carriageReturn}static isTokenComment(e,t){return t.supportsComments&&!!e&&e.token===t.comment}static isTokenEscapeCharacter(e,t){return e.token===t.escapeChar}static isTokenQuote(e,t){return e.token===t.quote}static isTokenDelimiter(e,t){return e.token===t.delimiter}}},{}],160:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=void 0,r.ColumnFormatter=class{constructor(e){e.trim?this.format=e=>e.trim():e.ltrim?this.format=e=>e.trimLeft():e.rtrim?this.format=e=>e.trimRight():this.format=e=>e}}},{}],161:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnParser=void 0;const n=e("./NonQuotedColumnParser"),i=e("./QuotedColumnParser"),o=e("../Token");r.ColumnParser=class{constructor(e){this.parserOptions=e,this.quotedColumnParser=new i.QuotedColumnParser(e),this.nonQuotedColumnParser=new n.NonQuotedColumnParser(e)}parse(e){const{nextNonSpaceToken:t}=e;return null!==t&&o.Token.isTokenQuote(t,this.parserOptions)?(e.advanceToToken(t),this.quotedColumnParser.parse(e)):this.nonQuotedColumnParser.parse(e)}}},{"../Token":159,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],162:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.NonQuotedColumnParser=void 0;const n=e("./ColumnFormatter"),i=e("../Token");r.NonQuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new n.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const{parserOptions:t}=this,r=[];let n=e.nextCharacterToken;for(;n&&!i.Token.isTokenDelimiter(n,t)&&!i.Token.isTokenRowDelimiter(n);n=e.nextCharacterToken)r.push(n.token),e.advancePastToken(n);return this.columnFormatter.format(r.join(""))}}},{"../Token":159,"./ColumnFormatter":160}],163:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=void 0;const n=e("./ColumnFormatter"),i=e("../Token");r.QuotedColumnParser=class{constructor(e){this.parserOptions=e,this.columnFormatter=new n.ColumnFormatter(e)}parse(e){if(!e.hasMoreCharacters)return null;const t=e.cursor,{foundClosingQuote:r,col:n}=this.gatherDataBetweenQuotes(e);if(!r){if(e.advanceTo(t),!e.hasMoreData)throw new Error(`Parse Error: missing closing: '${this.parserOptions.quote||""}' in line: at '${e.lineFromCursor.replace(/[\r\n]/g,"\\n'")}'`);return null}return this.checkForMalformedColumn(e),n}gatherDataBetweenQuotes(e){const{parserOptions:t}=this;let r=!1,n=!1;const o=[];let s=e.nextCharacterToken;for(;!n&&null!==s;s=e.nextCharacterToken){const a=i.Token.isTokenQuote(s,t);if(!r&&a)r=!0;else if(r)if(i.Token.isTokenEscapeCharacter(s,t)){e.advancePastToken(s);const r=e.nextCharacterToken;null!==r&&(i.Token.isTokenQuote(r,t)||i.Token.isTokenEscapeCharacter(r,t))?(o.push(r.token),s=r):a?n=!0:o.push(s.token)}else a?n=!0:o.push(s.token);e.advancePastToken(s)}return{col:this.columnFormatter.format(o.join("")),foundClosingQuote:n}}checkForMalformedColumn(e){const{parserOptions:t}=this,{nextNonSpaceToken:r}=e;if(r){const n=i.Token.isTokenDelimiter(r,t),o=i.Token.isTokenRowDelimiter(r);if(!n&&!o){const n=e.lineFromCursor.substr(0,10).replace(/[\r\n]/g,"\\n'");throw new Error(`Parse Error: expected: '${t.escapedDelimiter}' OR new line got: '${r.token}'. at '${n}`)}e.advanceToToken(r)}else e.hasMoreData||e.advancePastLine()}}},{"../Token":159,"./ColumnFormatter":160}],164:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ColumnFormatter=r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=void 0;var n=e("./ColumnParser");Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return n.ColumnParser}});var i=e("./NonQuotedColumnParser");Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return i.NonQuotedColumnParser}});var o=e("./QuotedColumnParser");Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return o.QuotedColumnParser}});var s=e("./ColumnFormatter");Object.defineProperty(r,"ColumnFormatter",{enumerable:!0,get:function(){return s.ColumnFormatter}})},{"./ColumnFormatter":160,"./ColumnParser":161,"./NonQuotedColumnParser":162,"./QuotedColumnParser":163}],165:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QuotedColumnParser=r.NonQuotedColumnParser=r.ColumnParser=r.Token=r.Scanner=r.RowParser=r.Parser=void 0;var n=e("./Parser");Object.defineProperty(r,"Parser",{enumerable:!0,get:function(){return n.Parser}});var i=e("./RowParser");Object.defineProperty(r,"RowParser",{enumerable:!0,get:function(){return i.RowParser}});var o=e("./Scanner");Object.defineProperty(r,"Scanner",{enumerable:!0,get:function(){return o.Scanner}});var s=e("./Token");Object.defineProperty(r,"Token",{enumerable:!0,get:function(){return s.Token}});var a=e("./column");Object.defineProperty(r,"ColumnParser",{enumerable:!0,get:function(){return a.ColumnParser}}),Object.defineProperty(r,"NonQuotedColumnParser",{enumerable:!0,get:function(){return a.NonQuotedColumnParser}}),Object.defineProperty(r,"QuotedColumnParser",{enumerable:!0,get:function(){return a.QuotedColumnParser}})},{"./Parser":156,"./RowParser":157,"./Scanner":158,"./Token":159,"./column":164}],166:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=void 0;const i=n(e("lodash.isundefined")),o=n(e("lodash.isfunction")),s=n(e("lodash.uniq")),a=n(e("lodash.groupby"));r.HeaderTransformer=class{constructor(e){this.headers=null,this.receivedHeaders=!1,this.shouldUseFirstRow=!1,this.processedFirstRow=!1,this.headersLength=0,this.parserOptions=e,!0===e.headers?this.shouldUseFirstRow=!0:Array.isArray(e.headers)?this.setHeaders(e.headers):o.default(e.headers)&&(this.headersTransform=e.headers)}transform(e,t){return this.shouldMapRow(e)?t(null,this.processRow(e)):t(null,{row:null,isValid:!0})}shouldMapRow(e){const{parserOptions:t}=this;if(!this.headersTransform&&t.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(e)){if(this.headersTransform)this.setHeaders(this.headersTransform(e));else{if(!this.shouldUseFirstRow)return!0;this.setHeaders(e)}return!1}return!0}processRow(e){if(!this.headers)return{row:e,isValid:!0};const{parserOptions:t}=this;if(!t.discardUnmappedColumns&&e.length>this.headersLength){if(!t.strictColumnHandling)throw new Error(`Unexpected Error: column header mismatch expected: ${this.headersLength} columns got: ${e.length}`);return{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}}return t.strictColumnHandling&&e.length<this.headersLength?{row:e,isValid:!1,reason:`Column header mismatch expected: ${this.headersLength} columns got: ${e.length}`}:{row:this.mapHeaders(e),isValid:!0}}mapHeaders(e){const t={},{headers:r,headersLength:n}=this;for(let o=0;o<n;o+=1){const n=r[o];if(!i.default(n)){const r=e[o];i.default(r)?t[n]="":t[n]=r}}return t}setHeaders(e){var t;const r=e.filter(e=>!!e);if(s.default(r).length!==r.length){const e=a.default(r),t=Object.keys(e).filter(t=>e[t].length>1);throw new Error("Duplicate headers found "+JSON.stringify(t))}this.headers=e,this.receivedHeaders=!0,this.headersLength=(null===(t=this.headers)||void 0===t?void 0:t.length)||0}}},{"lodash.groupby":443,"lodash.isfunction":446,"lodash.isundefined":448,"lodash.uniq":449}],167:[function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.RowTransformerValidator=void 0;const i=n(e("lodash.isfunction")),o=e("../types");class s{constructor(){this._rowTransform=null,this._rowValidator=null}static createTransform(e){return o.isSyncTransform(e)?(t,r)=>{let n=null;try{n=e(t)}catch(e){return r(e)}return r(null,n)}:e}static createValidator(e){return o.isSyncValidate(e)?(t,r)=>{r(null,{row:t,isValid:e(t)})}:(t,r)=>{e(t,(e,n,i)=>e?r(e):r(null,n?{row:t,isValid:n,reason:i}:{row:t,isValid:!1,reason:i}))}}set rowTransform(e){if(!i.default(e))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(e)}set rowValidator(e){if(!i.default(e))throw new TypeError("The validate should be a function");this._rowValidator=s.createValidator(e)}transformAndValidate(e,t){return this.callTransformer(e,(e,r)=>e?t(e):r?this.callValidator(r,(e,n)=>e?t(e):n&&!n.isValid?t(null,{row:r,isValid:!1,reason:n.reason}):t(null,{row:r,isValid:!0})):t(null,{row:null,isValid:!0}))}callTransformer(e,t){return this._rowTransform?this._rowTransform(e,t):t(null,e)}callValidator(e,t){return this._rowValidator?this._rowValidator(e,t):t(null,{row:e,isValid:!0})}}r.RowTransformerValidator=s},{"../types":169,"lodash.isfunction":446}],168:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.HeaderTransformer=r.RowTransformerValidator=void 0;var n=e("./RowTransformerValidator");Object.defineProperty(r,"RowTransformerValidator",{enumerable:!0,get:function(){return n.RowTransformerValidator}});var i=e("./HeaderTransformer");Object.defineProperty(r,"HeaderTransformer",{enumerable:!0,get:function(){return i.HeaderTransformer}})},{"./HeaderTransformer":166,"./RowTransformerValidator":167}],169:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isSyncValidate=r.isSyncTransform=void 0,r.isSyncTransform=e=>1===e.length,r.isSyncValidate=e=>1===e.length},{}],170:[function(e,t,r){"use strict";const n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.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,t,r){"use strict";const n=e("./encoders"),i=e("./decoders"),o=e("inherits");function s(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new s(e,t)},s.prototype._createNamed=function(e){const t=this.name;function r(e){this._initNamed(e,t)}return o(r,e),r.prototype._initNamed=function(t,r){e.call(this,t,r)},new r(this)},s.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},s.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},s.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n[e])),this.encoders[e]},s.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"./decoders":179,"./encoders":182,inherits:440}],172:[function(e,t,r){"use strict";const n=e("inherits"),i=e("../base/reporter").Reporter,o=e("safer-buffer").Buffer;function s(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,i),r.DecoderBuffer=s,s.isDecoderBuffer=function(e){return e instanceof s||"object"==typeof e&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){const t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},r.EncoderBuffer=a,a.isEncoderBuffer=function(e){return e instanceof a||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},{"../base/reporter":175,inherits:440,"safer-buffer":495}],173:[function(e,t,r){"use strict";const n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":172,"./node":174,"./reporter":175}],174:[function(e,t,r){"use strict";const n=e("../base/reporter").Reporter,i=e("../base/buffer").EncoderBuffer,o=e("../base/buffer").DecoderBuffer,s=e("minimalistic-assert"),a=["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"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function c(e,t,r){const n={};this._baseState=n,n.name=r,n.enc=e,n.parent=t||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t.exports=c;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){const e=this._baseState,t={};u.forEach(function(r){t[r]=e[r]});const r=new this.constructor(t.parent);return r._baseState=t,r},c.prototype._wrap=function(){const e=this._baseState;l.forEach(function(t){this[t]=function(){const r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},c.prototype._init=function(e){const t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){const t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach(function(r){r==(0|r)&&(r|=0);const n=e[r];t[n]=r}),t}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){c.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),a.forEach(function(e){c.prototype[e]=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}}),c.prototype.use=function(e){s(e);const t=this._baseState;return s(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){const t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){const t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){const t=this._baseState;return s(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){const t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},c.prototype.contains=function(e){const t=this._baseState;return s(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));let n,i=r.default,s=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){let n=null;if(null!==r.explicit?n=r.explicit:null!==r.implicit?n=r.implicit:null!==r.tag&&(n=r.tag),null!==n||r.any){if(s=this._peekTag(e,n,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const t=this._decodeTag(e,r.explicit);if(e.isError(t))return t;e=t}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?i=e.raw(t):e=n}if(t&&t.track&&null!==r.tag&&t.track(e.path(),n,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(r){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(n,t)}}return r.obj&&s&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==s?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,i),i},c.prototype._decodeGeneric=function(e,t,r){const n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){const r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},c.prototype._decodeChoice=function(e,t){const r=this._baseState;let n=null,i=!1;return Object.keys(r.choice).some(function(o){const s=e.save(),a=r.choice[o];try{const r=a._decode(e,t);if(e.isError(r))return!1;n={type:o,value:r},i=!0}catch(t){return e.restore(s),!1}return!0},this),i?n:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,r){const n=this._baseState;if(null!==n.default&&n.default===e)return;const i=this._encodeValue(e,t,r);return void 0===i||this._skipDefault(i,t,r)?void 0:i},c.prototype._encodeValue=function(e,t,r){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let s=null,a=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),a=!0;else if(i.children)s=i.children.map(function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");const n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const r=this.clone();r._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(r){const n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},r))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,r=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,a,r,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){const r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){const r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},{"../base/buffer":172,"../base/reporter":175,"minimalistic-assert":453}],175:[function(e,t,r){"use strict";const n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}r.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){const n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){let t;const r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:440}],176:[function(e,t,r){"use strict";function n(e){const t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r}),t}r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n(r.tagClass),r.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"},r.tagByName=n(r.tag)},{}],177:[function(e,t,r){"use strict";const n=r;n._reverse=function(e){const t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);const n=e[r];t[n]=r}),t},n.der=e("./der")},{"./der":176}],178:[function(e,t,r){"use strict";const n=e("inherits"),i=e("bn.js"),o=e("../base/buffer").DecoderBuffer,s=e("../base/node"),a=e("../constants/der");function l(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){s.call(this,"der",e)}function u(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const n=a.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){let n=r;for(r=0;128==(128&n);){if(n=e.readUInt8(t),e.isError(n))return n;r<<=7,r|=127&n}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:a.tag[r]}}function d(e,t,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;const i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(let o=0;o<i;o++){n<<=8;const t=e.readUInt8(r);if(e.isError(t))return t;n|=t}return n}t.exports=l,l.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},n(c,s),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;const n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){const n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;let i=d(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){const r=u(e,t);if(e.isError(r))return r;const n=d(e,r.primitive,t);if(e.isError(n))return n;let i;if(i=r.primitive||null!==n?e.skip(n):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const o=r.decode(e,"der",n);if(e.isError(o)&&t)break;i.push(o)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let r="";for(let e=0;e<t.length/2;e++)r+=String.fromCharCode(t.readUInt16BE(2*e));return r}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},c.prototype._decodeObjid=function(e,t,r){let n;const i=[];let o=0,s=0;for(;!e.isEmpty();)s=e.readUInt8(),o<<=7,o|=127&s,0==(128&s)&&(i.push(o),o=0);128&s&&i.push(o);const a=i[0]/40|0,l=i[0]%40;if(n=r?i:[a,l].concat(i.slice(1)),t){let e=t[n.join(" ")];void 0===e&&(e=t[n.join(".")]),void 0!==e&&(n=e)}return n},c.prototype._decodeTime=function(e,t){const r=e.raw().toString();let n,i,o,s,a,l;if("gentime"===t)n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),l=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),l=0|r.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,s,a,l,0)},c.prototype._decodeNull=function(){return null},c.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){const r=e.raw();let n=new i(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../base/buffer":172,"../base/node":174,"../constants/der":176,"bn.js":184,inherits:440}],179:[function(e,t,r){"use strict";const n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":178,"./pem":180}],180:[function(e,t,r){"use strict";const n=e("inherits"),i=e("safer-buffer").Buffer,o=e("./der");function s(e){o.call(this,e),this.enc="pem"}n(s,o),t.exports=s,s.prototype.decode=function(e,t){const r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,l=-1;for(let i=0;i<r.length;i++){const e=r[i].match(s);if(null!==e&&e[2]===n){if(-1!==a){if("END"!==e[1])break;l=i;break}if("BEGIN"!==e[1])break;a=i}}if(-1===a||-1===l)throw new Error("PEM section not found for: "+n);const c=r.slice(a+1,l).join("");c.replace(/[^a-z0-9+/=]+/gi,"");const u=i.from(c,"base64");return o.prototype.decode.call(this,u,t)}},{"./der":178,inherits:440,"safer-buffer":495}],181:[function(e,t,r){"use strict";const n=e("inherits"),i=e("safer-buffer").Buffer,o=e("../base/node"),s=e("../constants/der");function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,"der",e)}function c(e){return e<10?"0"+e:e}t.exports=a,a.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(l,o),l.prototype._encodeComposite=function(e,t,r,n){const o=function(e,t,r,n){let i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6,i)}(e,t,r,this.reporter);if(n.length<128){const e=i.alloc(2);return e[0]=o,e[1]=n.length,this._createEncoderBuffer([e,n])}let a=1;for(let i=n.length;i>=256;i>>=8)a++;const l=i.alloc(2+a);l[0]=o,l[1]=128|a;for(let i=1+a,s=n.length;s>0;i--,s>>=8)l[i]=255&s;return this._createEncoderBuffer([l,n])},l.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let r=0;r<e.length;r++)t.writeUInt16BE(e.charCodeAt(r),2*r);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):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(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},l.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let n=0;for(let i=0;i<e.length;i++){let t=e[i];for(n++;t>=128;t>>=7)n++}const o=i.alloc(n);let s=o.length-1;for(let i=e.length-1;i>=0;i--){let t=e[i];for(o[s--]=127&t;(t>>=7)>0;)o[s--]=128|127&t}return this._createEncoderBuffer(o)},l.prototype._encodeTime=function(e,t){let r;const n=new Date(e);return"gentime"===t?r=[c(n.getUTCFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getUTCFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const r=i.alloc(t);return e.copy(r),0===e.length&&(r[0]=0),this._createEncoderBuffer(r)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let r=1;for(let i=e;i>=256;i>>=8)r++;const n=new Array(r);for(let i=n.length-1;i>=0;i--)n[i]=255&e,e>>=8;return 128&n[0]&&n.unshift(0),this._createEncoderBuffer(i.from(n))},l.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},l.prototype._skipDefault=function(e,t,r){const n=this._baseState;let i;if(null===n.default)return!1;const o=e.join();if(void 0===n.defaultBuffer&&(n.defaultBuffer=this._encodeValue(n.default,t,r).join()),o.length!==n.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==n.defaultBuffer[i])return!1;return!0}},{"../base/node":174,"../constants/der":176,inherits:440,"safer-buffer":495}],182:[function(e,t,r){"use strict";const n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":181,"./pem":183}],183:[function(e,t,r){"use strict";const n=e("inherits"),i=e("./der");function o(e){i.call(this,e),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(e,t){const r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"];for(let i=0;i<r.length;i+=64)n.push(r.slice(i,i+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":181,inherits:440}],184:[function(e,t,r){"use strict";!function(t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function a(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,c=0,u=r;u<a;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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"],u=[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],d=[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 h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,l=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(s=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<i|o)).toString(16);n=0!==(o=a>>>24-i&16777215)||s!==this.length-1?c[6-l.length]+l+n:l+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var h=u[e],f=d[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);n=(p=p.idivn(f)).isZero()?m+n:c[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,l="le"===t,c=new e(o),u=this.clone();if(l){for(a=0;!u.isZero();a++)s=u.andln(255),u.iushrn(8),c[a]=s;for(;a<o;a++)c[a]=0}else{for(a=0;a<o-i;a++)c[a]=0;for(a=0;!u.isZero();a++)s=u.andln(255),u.iushrn(8),c[o-a-1]=s}return c},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,r){var n,i,o,s=e.words,a=t.words,l=r.words,c=0,u=0|s[0],d=8191&u,h=u>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],b=8191&g,y=g>>>13,A=0|s[3],v=8191&A,w=A>>>13,x=0|s[4],k=8191&x,C=x>>>13,_=0|s[5],S=8191&_,E=_>>>13,T=0|s[6],M=8191&T,O=T>>>13,N=0|s[7],P=8191&N,R=N>>>13,D=0|s[8],I=8191&D,L=D>>>13,B=0|s[9],j=8191&B,F=B>>>13,z=0|a[0],U=8191&z,H=z>>>13,V=0|a[1],W=8191&V,K=V>>>13,q=0|a[2],G=8191&q,X=q>>>13,Y=0|a[3],$=8191&Y,Q=Y>>>13,J=0|a[4],Z=8191&J,ee=J>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],le=8191&ae,ce=ae>>>13,ue=0|a[8],de=8191&ue,he=ue>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(h,U)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,H))+Math.imul(m,U)|0,o=Math.imul(m,H);var be=(c+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,H))+Math.imul(y,U)|0,o=Math.imul(y,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0;var ye=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,H))+Math.imul(w,U)|0,o=Math.imul(w,H),n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0;var Ae=(c+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(k,U),i=(i=Math.imul(k,H))+Math.imul(C,U)|0,o=Math.imul(C,H),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Q)|0;var ve=(c+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,H))+Math.imul(E,U)|0,o=Math.imul(E,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Q)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,ee)|0;var we=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,H))+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,Q)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,se)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,H))+Math.imul(R,U)|0,o=Math.imul(R,H),n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Q)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var ke=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,H))+Math.imul(L,U)|0,o=Math.imul(L,H),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,Q)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,se)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;
vendor: 1,996 bytes, line 2
2var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,U),i=(i=Math.imul(j,H))+Math.imul(F,U)|0,o=Math.imul(F,H),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,K)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Q)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,ce)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var _e=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,K))+Math.imul(F,W)|0,o=Math.imul(F,K),n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(b,de)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,X))+Math.imul(F,G)|0,o=Math.imul(F,X
vendor: 43,431 bytes, line 2
2),n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Q)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,se)|0,n=n+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,he)|0;var Ee=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,Q))+Math.imul(F,$)|0,o=Math.imul(F,Q),n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,n=n+Math.imul(k,de)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,he)|0;var Te=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(F,Z)|0,o=Math.imul(F,ee),n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,se)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,he)|0;var Me=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,se)|0,n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(R,le)|0,o=o+Math.imul(R,ce)|0,n=n+Math.imul(M,de)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,he)|0;var Oe=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(L,le)|0,o=o+Math.imul(L,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,he)|0;var Ne=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(j,le),i=(i=Math.imul(j,ce))+Math.imul(F,le)|0,o=Math.imul(F,ce),n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,he)|0;var Pe=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,de),i=(i=Math.imul(j,he))+Math.imul(F,de)|0,o=Math.imul(F,he);var Re=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var De=(c+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=be,l[2]=ye,l[3]=Ae,l[4]=ve,l[5]=we,l[6]=xe,l[7]=ke,l[8]=Ce,l[9]=_e,l[10]=Se,l[11]=Ee,l[12]=Te,l[13]=Me,l[14]=Oe,l[15]=Ne,l[16]=Pe,l[17]=Re,l[18]=De,0!==c&&(l[19]=c,r.length++),r};function p(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(f=h),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?f(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;a=67108863&(h=h+a|0),i+=(s=(s=s+(d/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):p(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},m.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var d=l,h=c,f=0;f<s;f++){var p=r[u+f],m=n[u+f],g=r[u+f+s],b=n[u+f+s],y=d*g-h*b;b=d*b+h*g,g=y,r[u+f]=p+g,n[u+f]=m+b,r[u+f+s]=p-g,n[u+f+s]=m-b,f!==a&&(y=l*d-c*h,h=l*h+c*d,d=y)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,c,n),this.transform(s,o,a,l,n,i),this.transform(c,o,u,d,n,i);for(var f=0;f<n;f++){var p=a[f]*u[f]-l[f]*d[f];l[f]=a[f]*d[f]+l[f]*u[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),p(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,l=(0|this.words[t])-a<<n;this.words[t]=l|s,s=a>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,l=n;if(i-=s,i=Math.max(0,i),l){for(var c=0;c<s;c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&a}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var i,o,s=e.length+n;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+a;var l=(0|e.words[i])*t;a=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,l=n.length-o.length;if("mod"!==t){(a=new i(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var u=n.clone()._ishlnsubmul(o,1,l);0===u.negative&&(n=u,a&&(a.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[o.length+d])+(0|n.words[o.length+d-1]);for(h=Math.min(h/s|0,67108863),n._ishlnsubmul(o,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);a&&(a.words[d]=h)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0==(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(d)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(u),l.isub(d)),a.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a),s.isub(l)):(n.isub(t),a.isub(o),l.isub(s))}return{a:a,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(a)):(n.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new x(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},n(y,b),y.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(A,b),n(v,b),n(w,b),w.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new A;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return g[e]=t,t},x.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,o),h=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var b=this.pow(d,new i(1).iushln(p-g-1));h=h.redMul(b),d=b.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],s=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;o!==r[0]&&(o=this.sqr(o)),0!==d||0!==s?(s<<=1,s|=d,(4===++a||0===n&&0===u)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}l=26}return o},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},n(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],185:[function(e,t,r){"use strict";r.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){var t,r,n=c(e),s=n[0],a=n[1],l=new o(function(e,t,r){return 3*(t+r)/4-r}(0,s,a)),u=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===a&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,l[u++]=255&t),1===a&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function u(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],186:[function(e,t,r){"use strict";!function(t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof t?t.exports=i:(void 0).BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function a(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function l(e,t,n,i){for(var o=0,s=0,a=Math.min(e.length,n),l=t;l<a;l++){var c=e.charCodeAt(l)-48;o*=i,s=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&s<i,"Invalid character"),o+=s}return o}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o=0,s=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)i=a(e,t,n)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,c=0,u=r;u<a;u+=n)c=l(e,u,u+n,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==s){var d=1;for(c=l(e,u,e.length,t),u=0;u<s;u++)d*=t;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){c(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){i.prototype.inspect=u}else i.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","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"],h=[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],f=[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 p(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,l=s/67108864|0;r.words[0]=a;for(var c=1;c<n;c++){for(var u=l>>>26,d=67108863&l,h=Math.min(c,t.length-1),f=Math.max(0,c-e.length+1);f<=h;f++){var p=c-f|0;u+=(s=(i=0|e.words[p])*(o=0|t.words[f])+d)/67108864|0,d=67108863&s}r.words[c]=0|d,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r._strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],l=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),n=0!==o||s!==this.length-1?d[6-l.length]+l+n:l+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=h[e],u=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r++]=255&s,r<e.length&&(e[r++]=s>>8&255),r<e.length&&(e[r++]=s>>16&255),6===o?(r<e.length&&(e[r++]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|n;e[r--]=255&s,r>=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,r){var n,i,o,s=e.words,a=t.words,l=r.words,c=0,u=0|s[0],d=8191&u,h=u>>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],b=8191&g,y=g>>>13,A=0|s[3],v=8191&A,w=A>>>13,x=0|s[4],k=8191&x,C=x>>>13,_=0|s[5],S=8191&_,E=_>>>13,T=0|s[6],M=8191&T,O=T>>>13,N=0|s[7],P=8191&N,R=N>>>13,D=0|s[8],I=8191&D,L=D>>>13,B=0|s[9],j=8191&B,F=B>>>13,z=0|a[0],U=8191&z,H=z>>>13,V=0|a[1],W=8191&V,K=V>>>13,q=0|a[2],G=8191&q,X=q>>>13,Y=0|a[3],$=8191&Y,Q=Y>>>13,J=0|a[4],Z=8191&J,ee=J>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],le=8191&ae,ce=ae>>>13,ue=0|a[8],de=8191&ue,he=ue>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(d,U))|0)+((8191&(i=(i=Math.imul(d,H))+Math.imul(h,U)|0))<<13)|0;c=((o=Math.imul(h,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,H))+Math.imul(m,U)|0,o=Math.imul(m,H);var be=(c+(n=n+Math.imul(d,W)|0)|0)+((8191&(i=(i=i+Math.imul(d,K)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,K)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,H))+Math.imul(y,U)|0,o=Math.imul(y,H),n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0;var ye=(c+(n=n+Math.imul(d,G)|0)|0)+((8191&(i=(i=i+Math.imul(d,X)|0)+Math.imul(h,G)|0))<<13)|0;c=((o=o+Math.imul(h,X)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,H))+Math.imul(w,U)|0,o=Math.imul(w,H),n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,K)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,X)|0;var Ae=(c+(n=n+Math.imul(d,$)|0)|0)+((8191&(i=(i=i+Math.imul(d,Q)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,Q)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(k,U),i=(i=Math.imul(k,H))+Math.imul(C,U)|0,o=Math.imul(C,H),n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,X)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,Q)|0;var ve=(c+(n=n+Math.imul(d,Z)|0)|0)+((8191&(i=(i=i+Math.imul(d,ee)|0)+Math.imul(h,Z)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(S,U),i=(i=Math.imul(S,H))+Math.imul(E,U)|0,o=Math.imul(E,H),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(C,W)|0,o=o+Math.imul(C,K)|0,n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,X)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,Q)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,Q)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,ee)|0;var we=(c+(n=n+Math.imul(d,re)|0)|0)+((8191&(i=(i=i+Math.imul(d,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,H))+Math.imul(O,U)|0,o=Math.imul(O,H),n=n+Math.imul(S,W)|0,i=(i=i+Math.imul(S,K)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,K)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,X)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,X)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,Q)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,Q)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,Z)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var xe=(c+(n=n+Math.imul(d,oe)|0)|0)+((8191&(i=(i=i+Math.imul(d,se)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,se)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,H))+Math.imul(R,U)|0,o=Math.imul(R,H),n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,X)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,X)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,Q)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,Q)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var ke=(c+(n=n+Math.imul(d,le)|0)|0)+((8191&(i=(i=i+Math.imul(d,ce)|0)+Math.imul(h,le)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,H))+Math.imul(L,U)|0,o=Math.imul(L,H),n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(R,W)|0,o=o+Math.imul(R,K)|0,n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,X)|0,n=n+Math.imul(S,$)|0,i=(i=i+Math.imul(S,Q)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,Q)|0,n=n+Math.imul(k,Z)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,se)|0,n=n+Math.imul(p,le)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,le)|0,o=o+Math.imul(m,ce)|0;
vendor: 1,996 bytes, line 2
2var Ce=(c+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,he)|0)+Math.imul(h,de)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(j,U),i=(i=Math.imul(j,H))+Math.imul(F,U)|0,o=Math.imul(F,H),n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,K)|0,n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(R,G)|0,o=o+Math.imul(R,X)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,Q)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,n=n+Math.imul(b,le)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(y,le)|0,o=o+Math.imul(y,ce)|0,n=n+Math.imul(p,de)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,de)|0,o=o+Math.imul(m,he)|0;var _e=(c+(n=n+Math.imul(d,pe)|0)|0)+((8191&(i=(i=i+Math.imul(d,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(j,W),i=(i=Math.imul(j,K))+Math.imul(F,W)|0,o=Math.imul(F,K),n=n+Math.imul(I,G)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,X)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(R,$)|0,o=o+Math.imul(R,Q)|0,n=n+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(S,re)|0,i=(i=i+Math.imul(S,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(v,le)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,ce)|0,n=n+Math.imul(b,de)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(y,de)|0,o=o+Math.imul(y,he)|0;var Se=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(j,G),i=(i=Math.imul(j,X))+Math.imul(F,G)|0,o=Math.imul(F,X
vendor: 45,378 bytes, line 2
2),n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,Q)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,Q)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,se)|0,n=n+Math.imul(k,le)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,ce)|0,n=n+Math.imul(v,de)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(w,de)|0,o=o+Math.imul(w,he)|0;var Ee=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(j,$),i=(i=Math.imul(j,Q))+Math.imul(F,$)|0,o=Math.imul(F,Q),n=n+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(L,Z)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(R,re)|0,o=o+Math.imul(R,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,n=n+Math.imul(S,le)|0,i=(i=i+Math.imul(S,ce)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,ce)|0,n=n+Math.imul(k,de)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(C,de)|0,o=o+Math.imul(C,he)|0;var Te=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(w,pe)|0))<<13)|0;c=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(j,Z),i=(i=Math.imul(j,ee))+Math.imul(F,Z)|0,o=Math.imul(F,ee),n=n+Math.imul(I,re)|0,i=(i=i+Math.imul(I,ne)|0)+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,se)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(O,le)|0,o=o+Math.imul(O,ce)|0,n=n+Math.imul(S,de)|0,i=(i=i+Math.imul(S,he)|0)+Math.imul(E,de)|0,o=o+Math.imul(E,he)|0;var Me=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(j,re),i=(i=Math.imul(j,ne))+Math.imul(F,re)|0,o=Math.imul(F,ne),n=n+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,se)|0,n=n+Math.imul(P,le)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(R,le)|0,o=o+Math.imul(R,ce)|0,n=n+Math.imul(M,de)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(O,de)|0,o=o+Math.imul(O,he)|0;var Oe=(c+(n=n+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(j,oe),i=(i=Math.imul(j,se))+Math.imul(F,oe)|0,o=Math.imul(F,se),n=n+Math.imul(I,le)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(L,le)|0,o=o+Math.imul(L,ce)|0,n=n+Math.imul(P,de)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(R,de)|0,o=o+Math.imul(R,he)|0;var Ne=(c+(n=n+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(j,le),i=(i=Math.imul(j,ce))+Math.imul(F,le)|0,o=Math.imul(F,ce),n=n+Math.imul(I,de)|0,i=(i=i+Math.imul(I,he)|0)+Math.imul(L,de)|0,o=o+Math.imul(L,he)|0;var Pe=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(j,de),i=(i=Math.imul(j,he))+Math.imul(F,de)|0,o=Math.imul(F,he);var Re=(c+(n=n+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(L,pe)|0))<<13)|0;c=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var De=(c+(n=Math.imul(j,pe))|0)+((8191&(i=(i=Math.imul(j,me))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,l[0]=ge,l[1]=be,l[2]=ye,l[3]=Ae,l[4]=ve,l[5]=we,l[6]=xe,l[7]=ke,l[8]=Ce,l[9]=_e,l[10]=Se,l[11]=Ee,l[12]=Te,l[13]=Me,l[14]=Oe,l[15]=Ne,l[16]=Pe,l[17]=Re,l[18]=De,0!==c&&(l[19]=c,r.length++),r};function g(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,l=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=l;c++){var u=o-c,d=(0|e.words[u])*(0|t.words[c]),h=67108863&d;a=67108863&(h=h+a|0),i+=(s=(s=s+(d/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function b(e,t,r){return g(e,t,r)}function y(e,t){this.x=e,this.y=t}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):r<63?p(this,e,t):r<1024?g(this,e,t):b(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},y.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,l=Math.cos(2*Math.PI/a),c=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var d=l,h=c,f=0;f<s;f++){var p=r[u+f],m=n[u+f],g=r[u+f+s],b=n[u+f+s],y=d*g-h*b;b=d*b+h*g,g=y,r[u+f]=p+g,n[u+f]=m+b,r[u+f+s]=p-g,n[u+f+s]=m-b,f!==a&&(y=l*d-c*h,h=l*h+c*d,d=y)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,n,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],n[2*s]=8191&o,o>>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)n[s]=0;r(0===o),r(0==(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),d=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,c,n),this.transform(s,o,a,l,n,i),this.transform(c,o,u,d,n,i);for(var f=0;f<n;f++){var p=a[f]*u[f]-l[f]*d[f];l[f]=a[f]*d[f]+l[f]*u[f],a[f]=p}return this.conjugate(a,l,n),this.transform(a,l,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),b(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=s>>>26,this.words[i]=67108863&s}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,l=(0|this.words[t])-a<<n;this.words[t]=l|s,s=a>>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},i.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,l=n;if(i-=s,i=Math.max(0,i),l){for(var c=0;c<s;c++)l.words[c]=this.words[c];l.length=s}if(0===s);else if(this.length>s)for(this.length-=s,c=0;c<this.length;c++)this.words[c]=this.words[c+s];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c>=0&&(0!==u||c>=i);c--){var d=0|this.words[c];this.words[c]=u<<26-o|d>>>o,u=d&a}return l&&0!==u&&(l.words[l.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},i.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,n){var i,o,s=e.length+n;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+a;var l=(0|e.words[i])*t;a=((o-=67108863&l)>>26)-(l/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)a=(o=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&o;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!==(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,l=n.length-o.length;if("mod"!==t){(a=new i(null)).length=l+1,a.words=new Array(a.length);for(var c=0;c<a.length;c++)a.words[c]=0}var u=n.clone()._ishlnsubmul(o,1,l);0===u.negative&&(n=u,a&&(a.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|n.words[o.length+d])+(0|n.words[o.length+d-1]);for(h=Math.min(h/s|0,67108863),n._ishlnsubmul(o,h,d);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,d),n.isZero()||(n.negative^=1);a&&(a.words[d]=h)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),l=new i(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var u=n.clone(),d=t.clone();!t.isZero();){for(var h=0,f=1;0==(t.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(d)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||l.isOdd())&&(a.iadd(u),l.isub(d)),a.iushrn(1),l.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a),s.isub(l)):(n.isub(t),a.isub(o),l.isub(s))}return{a:a,b:l,gcd:n.iushln(c)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),l=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,u=1;0==(t.words[0]&u)&&c<26;++c,u<<=1);if(c>0)for(t.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);for(var d=0,h=1;0==(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(a)):(n.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,s=n;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(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 x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function C(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(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 e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},n(w,v),w.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(x,v),n(k,v),n(C,v),C.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(A[e])return A[e];var t;if("k256"===e)t=new w;else if("p224"===e)t=new x;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new C}return A[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),l=a.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new i(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var d=this.pow(u,o),h=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<p);var b=this.pow(d,new i(1).iushln(p-g-1));h=h.redMul(b),d=b.redSqr(),f=f.redMul(d),p=g}return h},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],s=0,a=0,l=t.bitLength()%26;for(0===l&&(l=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],u=l-1;u>=0;u--){var d=c>>u&1;o!==r[0]&&(o=this.sqr(o)),0!==d||0!==s?(s<<=1,s|=d,(4===++a||0===n&&0===u)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}l=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},n(S,_),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t)},{buffer:188}],187:[function(e,t,r){"use strict";var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},t.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},{crypto:188}],188:[function(e,t,r){},{}],189:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function s(e,t,r,n,i){for(var o,s,a,l,c=r[0],u=r[1],d=r[2],h=r[3],f=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],b=4,y=1;y<i;y++)o=c[f>>>24]^u[p>>>16&255]^d[m>>>8&255]^h[255&g]^t[b++],s=c[p>>>24]^u[m>>>16&255]^d[g>>>8&255]^h[255&f]^t[b++],a=c[m>>>24]^u[g>>>16&255]^d[f>>>8&255]^h[255&p]^t[b++],l=c[g>>>24]^u[f>>>16&255]^d[p>>>8&255]^h[255&m]^t[b++],f=o,p=s,m=a,g=l;return o=(n[f>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[b++],s=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&f])^t[b++],a=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[f>>>8&255]<<8|n[255&p])^t[b++],l=(n[g>>>24]<<24|n[f>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[b++],[o>>>=0,s>>>=0,a>>>=0,l>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,l=0;l<256;++l){var c=a^a<<1^a<<2^a<<3^a<<4;c=c>>>8^255&c^99,r[s]=c,n[c]=s;var u=e[s],d=e[u],h=e[d],f=257*e[c]^16843008*c;i[0][s]=f<<24|f>>>8,i[1][s]=f<<16|f>>>16,i[2][s]=f<<8|f>>>24,i[3][s]=f,f=16843009*h^65537*d^257*u^16843008*s,o[0][c]=f<<24|f>>>8,o[1][c]=f<<16|f>>>16,o[2][c]=f<<8|f>>>24,o[3][c]=f,0===s?s=a=1:(s=u^e[e[e[h^u]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var s=i[o-1];o%t==0?(s=s<<8|s>>>24,s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s],s^=a[o/t|0]<<24):t>6&&o%t==4&&(s=l.SBOX[s>>>24]<<24|l.SBOX[s>>>16&255]<<16|l.SBOX[s>>>8&255]<<8|l.SBOX[255&s]),i[o]=i[o-t]^s}for(var c=[],u=0;u<n;u++){var d=n-u,h=i[d-(u%4?0:4)];c[u]=u<4||d<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},{"safe-buffer":494}],190:[function(e,t,r){"use strict";var n=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base"),s=e("inherits"),a=e("./ghash"),l=e("buffer-xor"),c=e("./incr32");function u(e,t,r,s){o.call(this);var l=i.alloc(4,0);this._cipher=new n.AES(t);var u=this._cipher.encryptBlock(l);this._ghash=new a(u),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new a(r),o=t.length,s=o%16;n.update(t),s&&(s=16-s,n.update(i.alloc(s,0))),n.update(i.alloc(8,0));var l=8*o,u=i.alloc(8);u.writeUIntBE(l,0,8),n.update(u),e._finID=n.state;var d=i.from(e._finID);return c(d),d}(this,r,u),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(u,o),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=u},{"./aes":189,"./ghash":194,"./incr32":195,"buffer-xor":219,"cipher-base":221,inherits:440,"safe-buffer":494}],191:[function(e,t,r){"use strict";var n=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(o)}},{"./decrypter":192,"./encrypter":193,"./modes/list.json":203}],192:[function(e,t,r){"use strict";var n=e("./authCipher"),i=e("safe-buffer").Buffer,o=e("./modes"),s=e("./streamCipher"),a=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,r){a.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var a=o[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new s(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new u(a.module,t,r)}e("inherits")(u,a),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=i.concat([this.cache,e])},d.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},r.createDecipheriv=h},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],193:[function(e,t,r){"use strict";var n=e("./modes"),i=e("./authCipher"),o=e("safe-buffer").Buffer,s=e("./streamCipher"),a=e("cipher-base"),l=e("./aes"),c=e("evp_bytestokey");function u(e,t,r){a.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}e("inherits")(u,a),u.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var d=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function f(e,t,r){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new s(a.module,t,r):"auth"===a.type?new i(a.module,t,r):new u(a.module,t,r)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=o.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},r.createCipheriv=f,r.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=c(t,!1,r.key,r.iv);return f(e,i.key,i.iv)}},{"./aes":189,"./authCipher":190,"./modes":202,"./streamCipher":205,"cipher-base":221,evp_bytestokey:423,inherits:440,"safe-buffer":494}],194:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r,n=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],s=-1;++s<128;){for(0!=(this.state[~~(s/8)]&1<<7-s%8)&&(i[0]^=n[0],i[1]^=n[1],i[2]^=n[2],i[3]^=n[3]),r=0!=(1&n[3]),t=3;t>0;t--)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=s},{"safe-buffer":494}],195:[function(e,t,r){"use strict";t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],196:[function(e,t,r){"use strict";var n=e("buffer-xor");r.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},{"buffer-xor":219}],197:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("buffer-xor");function o(e,t,r){var o=t.length,s=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:s]),s}r.encrypt=function(e,t,r){for(var i,s=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){s=n.concat([s,o(e,t,r)]);break}i=e._cache.length,s=n.concat([s,o(e,t.slice(0,i),r)]),t=t.slice(i)}return s}},{"buffer-xor":219,"safe-buffer":494}],198:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function i(e,t,r){for(var n,i,s=-1,a=0;++s<8;)n=t&1<<7-s?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>s%8,e._prev=o(e._prev,r?n:i);return a}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}r.encrypt=function(e,t,r){for(var o=t.length,s=n.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],r);return s}},{"safe-buffer":494}],199:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}r.encrypt=function(e,t,r){for(var o=t.length,s=n.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],r);return s}},{"safe-buffer":494}],200:[function(e,t,r){"use strict";var n=e("buffer-xor"),i=e("safe-buffer").Buffer,o=e("../incr32");function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}r.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var l=s(e),c=o+16*a;e._cache.writeUInt32BE(l[0],c+0),e._cache.writeUInt32BE(l[1],c+4),e._cache.writeUInt32BE(l[2],c+8),e._cache.writeUInt32BE(l[3],c+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,u)}},{"../incr32":195,"buffer-xor":219,"safe-buffer":494}],201:[function(e,t,r){"use strict";r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],202:[function(e,t,r){"use strict";var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var o in i)i[o].module=n[i[o].mode];t.exports=i},{"./cbc":196,"./cfb":197,"./cfb1":198,"./cfb8":199,"./ctr":200,"./ecb":201,"./list.json":203,"./ofb":204}],203:[function(e,t,r){t.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,t,r){(function(t){(function(){"use strict";var n=e("buffer-xor");function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}r.encrypt=function(e,r){for(;e._cache.length<r.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,r.length);return e._cache=e._cache.slice(r.length),n(r,o)}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,"buffer-xor":219}],205:[function(e,t,r){"use strict";var n=e("./aes"),i=e("safe-buffer").Buffer,o=e("cipher-base");function s(e,t,r,s){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}e("inherits")(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},t.exports=s},{"./aes":189,"cipher-base":221,inherits:440,"safe-buffer":494}],206:[function(e,t,r){"use strict";var n=e("browserify-des"),i=e("browserify-aes/browser"),o=e("browserify-aes/modes"),s=e("browserify-des/modes"),a=e("evp_bytestokey");function l(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=a(t,!1,r,n);return l(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=l,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=a(t,!1,r,n);return c(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(s).concat(i.getCiphers())}},{"browserify-aes/browser":191,"browserify-aes/modes":202,"browserify-des":207,"browserify-des/modes":208,evp_bytestokey:423}],207:[function(e,t,r){"use strict";var n=e("cipher-base"),i=e("des.js"),o=e("inherits"),s=e("safe-buffer").Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function l(e){n.call(this);var t,r=e.mode.toLowerCase(),i=a[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=s.concat([o,o.slice(0,8)]));var l=e.iv;s.isBuffer(l)||(l=s.from(l)),this._des=i.create({key:o,iv:l,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=l,o(l,n),l.prototype._update=function(e){return s.from(this._des.update(e))},l.prototype._final=function(){return s.from(this._des.final())}},{"cipher-base":221,"des.js":394,inherits:440,"safe-buffer":494}],208:[function(e,t,r){"use strict";r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],209:[function(e,t,r){(function(r){(function(){"use strict";var n=e("bn.js"),i=e("randombytes");function o(e){var t,r=e.modulus.byteLength();do{t=new n(i(r))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var i=function(e){var t=o(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),s=t.modulus.byteLength(),a=new n(e).mul(i.blinder).umod(t.modulus),l=a.toRed(n.mont(t.prime1)),c=a.toRed(n.mont(t.prime2)),u=t.coefficient,d=t.prime1,h=t.prime2,f=l.redPow(t.exponent1).fromRed(),p=c.redPow(t.exponent2).fromRed(),m=f.isub(p).imul(u).umod(d).imul(h);return p.iadd(m).imul(i.unblinder).umod(t.modulus).toArrayLike(r,"be",s)}s.getr=o,t.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":186,buffer:220,randombytes:475}],210:[function(e,t,r){"use strict";
2t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":211}],211:[function(e,t,r){t.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:""}
2,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,t,r){t.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,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("create-hash"),o=e("readable-stream"),s=e("inherits"),a=e("./sign"),l=e("./verify"),c=e("./algorithms.json");function u(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");
vendor: 9,559 bytes, line 2
2this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){o.Writable.call(this);var t=c[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new u(e)}function f(e){return new d(e)}Object.keys(c).forEach(function(e){c[e].id=n.from(c[e].id,"hex"),c[e.toLowerCase()]=c[e]}),s(u,o.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=a(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},s(d,o.Writable),d.prototype._write=function(e,t,r){this._hash.update(e),r()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=n.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,r){"string"==typeof t&&(t=n.from(t,r)),this.end();var i=this._hash.digest();return l(t,i,e,this._signType,this._tag)},t.exports={Sign:h,Verify:f,createSign:h,createVerify:f}},{"./algorithms.json":211,"./sign":214,"./verify":215,"create-hash":386,inherits:440,"readable-stream":491,"safe-buffer":494}],214:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("create-hmac"),o=e("browserify-rsa"),s=e("elliptic").ec,a=e("bn.js"),l=e("parse-asn1"),c=e("./curves.json");function u(e,t,r,o){if((e=n.from(e.toArray())).length<t.byteLength()){var s=n.alloc(t.byteLength()-e.length);e=n.concat([s,e])}var a=r.length,l=function(e,t){e=(e=d(e,t)).mod(t);var r=n.from(e.toArray());if(r.length<t.byteLength()){var i=n.alloc(t.byteLength()-r.length);r=n.concat([i,r])}return r}(r,t),c=n.alloc(a);c.fill(1);var u=n.alloc(a);return u=i(o,u).update(c).update(n.from([0])).update(e).update(l).digest(),c=i(o,u).update(c).digest(),{k:u=i(o,u).update(c).update(n.from([1])).update(e).update(l).digest(),v:c=i(o,u).update(c).digest()}}function d(e,t){var r=new a(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function h(e,t,r){var o,s;do{for(o=n.alloc(0);8*o.length<e.bitLength();)t.v=i(r,t.k).update(t.v).digest(),o=n.concat([o,t.v]);s=d(o,e),t.k=i(r,t.k).update(t.v).update(n.from([0])).digest(),t.v=i(r,t.k).update(t.v).digest()}while(-1!==s.cmp(e));return s}function f(e,t,r,n){return e.toRed(a.mont(r)).redPow(t).fromRed().mod(n)}t.exports=function(e,t,r,i,p){var m=l(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var r=c[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var i=new s(r).keyFromPrivate(t.privateKey).sign(e);return n.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,r){for(var i,o=t.params.priv_key,s=t.params.p,l=t.params.q,c=t.params.g,p=new a(0),m=d(e,l).mod(l),g=!1,b=u(o,l,e,r);!1===g;)p=f(c,i=h(l,b,r),s,l),0===(g=i.invm(l).imul(m.add(o.mul(p))).mod(l)).cmpn(0)&&(g=!1,p=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),n.from(r)}(p,g)}(e,m,r)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=n.concat([p,e]);for(var g=m.modulus.byteLength(),b=[0,1];e.length+b.length+1<g;)b.push(255);b.push(0);for(var y=-1;++y<e.length;)b.push(e[y]);return o(b,m)},t.exports.getKey=u,t.exports.makeKey=h},{"./curves.json":212,"bn.js":186,"browserify-rsa":209,"create-hmac":388,elliptic:405,"parse-asn1":459,"safe-buffer":494}],215:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("bn.js"),o=e("elliptic").ec,s=e("parse-asn1"),a=e("./curves.json");function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,c,u){var d=s(r);if("ec"===d.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=a[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),s=r.data.subjectPrivateKey.data;return i.verify(t,e,s)}(e,t,d)}if("dsa"===d.type){if("dsa"!==c)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,o=r.data.q,a=r.data.g,c=r.data.pub_key,u=s.signature.decode(e,"der"),d=u.s,h=u.r;l(d,o),l(h,o);var f=i.mont(n),p=d.invm(o);return 0===a.toRed(f).redPow(new i(t).mul(p).mod(o)).fromRed().mul(c.toRed(f).redPow(h.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(h)}(e,t,d)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");t=n.concat([u,t]);for(var h=d.modulus.byteLength(),f=[1],p=0;t.length+f.length+2<h;)f.push(255),p++;f.push(0);for(var m=-1;++m<t.length;)f.push(t[m]);f=n.from(f);var g=i.mont(d.modulus);e=(e=new i(e).toRed(g)).redPow(new i(d.publicExponent)),e=n.from(e.fromRed().toArray());var b=p<8?1:0;for(h=Math.min(e.length,f.length),e.length!==f.length&&(b=1),m=-1;++m<h;)b|=e[m]^f[m];return 0===b}},{"./curves.json":212,"bn.js":186,elliptic:405,"parse-asn1":459,"safe-buffer":494}],216:[function(e,t,r){},{}],217:[function(e,t,r){"use strict";var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:220}],218:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.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 o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){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 e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=c,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=d,t=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function u(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(t[n]))>=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":217}],219:[function(e,t,r){(function(e){(function(){"use strict";
vendor: 19,098 bytes, line 2
2t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o<n;++o)i[o]=t[o]^r[o];return i}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],220:[function(e,t,r){(function(t){(function(){"use strict";var t=e("base64-js"),n=e("ieee754");function i(e){if(e>2147483647)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return t.__proto__=o.prototype,t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return l(e)}return s(e,t,r)}function s(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!o.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var r=0|d(e,t),n=i(r),s=n.write(e,t);return s!==r&&(n=n.slice(0,s)),n}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(j(e,ArrayBuffer)||e&&j(e.buffer,ArrayBuffer))return function(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');var n;return(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r)).__proto__=o.prototype,n}(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return o.from(n,t,r);var s=function(e){if(o.isBuffer(e)){var t=0|u(e.length),r=i(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||F(e.length)?i(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function l(e){return a(e),i(e<0?0:0|u(e))}function c(e){for(var t=e.length<0?0:0|u(e.length),r=i(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function u(e){if(e>=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function d(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||j(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(i)return n?-1:I(e).length;t=(""+t).toLowerCase(),i=!0}}function h(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return k(this,t,r);case"ascii":return C(this,t,r);case"latin1":case"binary":return _(this,t,r);case"base64":return x(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function f(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function p(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=o.from(t,n)),o.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var u=-1;for(o=r;o<a;o++)if(c(e,o)===c(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var d=!0,h=0;h<l;h++)if(c(e,o+h)!==c(t,h)){d=!1;break}if(d)return o}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(F(a))return s;e[r+s]=a}return s}function b(e,t,r,n){return B(I(t,e.length-r),e,r,n)}function y(e,t,r,n){return B(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function A(e,t,r,n){return y(e,t,r,n)}function v(e,t,r,n){return B(L(t),e,r,n)}function w(e,t,r,n){return B(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=(r=e.charCodeAt(s))>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function x(e,r,n){return 0===r&&n===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(r,n))}function k(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,l,c=e[i],u=null,d=c>239?4:c>223?3:c>191?2:1;if(i+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function C(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function _(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function S(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=D(e[o]);return i}function E(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function T(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,i,s){if(!o.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function O(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function N(e,t,r,i,o){return t=+t,r>>>=0,o||O(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function P(e,t,r,i,o){return t=+t,r>>>=0,o||O(e,0,r,8),n.write(e,t,r,i,52,8),r+8}r.Buffer=o,r.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},r.INSPECT_MAX_BYTES=50,r.kMaxLength=2147483647,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192,o.from=function(e,t,r){return s(e,t,r)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,o.alloc=function(e,t,r){return function(e,t,r){return a(e),e<=0?i(e):void 0!==t?"string"==typeof r?i(e).fill(t,r):i(e).fill(t):i(e)}(e,t,r)},o.allocUnsafe=function(e){return l(e)},o.allocUnsafeSlow=function(e){return l(e)},o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(j(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),j(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,s=Math.min(r,n);i<s;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},o.isEncoding=function(e){switch(String(e).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}},o.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=o.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(j(s,Uint8Array)&&(s=o.from(s)),!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):h.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},o.prototype.compare=function(e,t,r,n,i){if(j(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var s=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),l=Math.min(s,a),c=this.slice(n,i),u=e.slice(t,r),d=0;d<l;++d)if(c[d]!==u[d]){s=c[d],a=u[d];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return p(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return p(this,e,t,r,!1)},o.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return b(this,e,t,r);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return A(this,e,t,r);case"base64":return v(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return n.__proto__=o.prototype,n},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},o.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},o.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||T(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},o.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);M(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return N(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return N(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return P(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return P(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,n){if(!o.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,n);else if(this===e&&r<t&&t<n)for(var s=i-1;s>=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},o.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!o.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var s;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(s=t;s<r;++s)this[s]=e;else{var a=o.isBuffer(e)?e:o.from(e,n),l=a.length;
vendor: 5,063 bytes, line 2
2if(0===l)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<r-t;++s)this[s+t]=a[s%l]}return this};var R=/[^+/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function I(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function L(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(R,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function B(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function j(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":185,buffer:220,ieee754:439}],221:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("stream").Transform,o=e("string_decoder").StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(s,i),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=s},{inherits:440,"safe-buffer":494,stream:505,string_decoder:218}],222:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},{"../internals/is-callable":285,"../internals/try-to-string":349}],223:[function(e,t,r){"use strict";var n=e("../internals/is-constructor"),i=e("../internals/try-to-string"),o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a constructor")}},{"../internals/is-constructor":286,"../internals/try-to-string":349}],224:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=String,o=TypeError;t.exports=function(e){if("object"==typeof e||n(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},{"../internals/is-callable":285}],225:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol"),i=e("../internals/object-create"),o=e("../internals/object-define-property").f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(e){a[s][e]=!0}},{"../internals/object-create":306,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],226:[function(e,t,r){"use strict";var n=e("../internals/object-is-prototype-of"),i=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},{"../internals/object-is-prototype-of":314}],227:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=String,o=TypeError;t.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},{"../internals/is-object":289}],228:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/to-absolute-index"),o=e("../internals/length-of-array-like"),s=function(e){return function(t,r,s){var a,l=n(t),c=o(l),u=i(s,c);if(e&&r!=r){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===r)return e||u||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},{"../internals/length-of-array-like":299,"../internals/to-absolute-index":340,"../internals/to-indexed-object":341}],229:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-uncurr
2y-this"),o=e("../internals/indexed-object"),s=e("../internals/to-object"),a=e("../internals/length-of-array-like"),l=e("../internals/array-species-create"),c=i([].push),u=function(e){var t=1===e,r=2===e,i=3===e,u=4===e,d=6===e,h=7===e,f=5===e||d;return function(p,m,g,b){for(var y,A,v=s(p),w=o(v),x=n(m,g),k=a(w),C=0,_=b||l,S=t?_(p,k):r||h?_(p,0):void 0;k>C;C++)if((f||C in w)&&(A=x(y=w[C],C,v),e))if(t)S[C]=A;else if(A)switch(e){case 3:return!0;case 5:return y;case 6:return C;case 2:c(S,y)}else switch(e){case 4:return!1;case 7:c(S,y)}return d?-1:i||u?u:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(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,t,r){"use strict";var n=e("../internals/to-absolute-index"),i=e("../internals/length-of-array-like"),o=e("../internals/create-property"),s=Array,a=Math.max;t.exports=function(e,t,r){for(var l=i(e),c=n(t,l),u=n(void 0===r?l:r,l),d=s(a(u-c,0)),h=0;c<u;c++,h++)o(d,h,e[c]);return d.length=h,d}},{"../internals/create-property":243,"../internals/length-of-array-like":299,"../internals/to-absolute-index":340}],231:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n([].slice)},{"../internals/function-uncurry-this":268}],232:[function(e,t,r){"use strict";var n=e("../internals/is-array"),i=e("../internals/is-constructor"),o=e("../internals/is-object"),s=e("../internals/well-known-symbol")("species"),a=Array;t.exports=function(e){var t;return n(e)&&(t=e.constructor,(i(t)&&(t===a||n(t.prototype))||o(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?a:t}},{"../internals/is-array":284,"../internals/is-constructor":286,"../internals/is-object":289,"../internals/well-known-symbol":357}],233:[function(e,t,r){"use strict";var n=e("../internals/array-species-constructor");t.exports=function(e,t){return new(n(e))(0===t?0:t)}},{"../internals/array-species-constructor":232}],234:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol")("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(e){}t.exports=function(e,t){try{if(!t&&!i)return!1}catch(e){return!1}var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},{"../internals/well-known-symbol":357}],235:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=n({}.toString),o=n("".slice);t.exports=function(e){return o(i(e),8,-1)}},{"../internals/function-uncurry-this":268}],236:[function(e,t,r){"use strict";var n=e("../internals/to-string-tag-support"),i=e("../internals/is-callable"),o=e("../internals/classof-raw"),s=e("../internals/well-known-symbol")("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},{"../internals/classof-raw":235,"../internals/is-callable":285,"../internals/to-string-tag-support":347,"../internals/well-known-symbol":357}],237:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/own-keys"),o=e("../internals/object-get-own-property-descriptor"),s=e("../internals/object-define-property");t.exports=function(e,t,r){for(var a=i(t),l=s.f,c=o.f,u=0;u<a.length;u++){var d=a[u];n(e,d)||r&&n(r,d)||l(e,d,c(t,d))}}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/object-get-own-property-descriptor":309,"../internals/own-keys":321}],238:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},{"../internals/well-known-symbol":357}],239:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},{"../internals/fails":260}],240:[function(e,t,r){"use strict";
vendor: 11,533 bytes, line 2
2t.exports=function(e,t){return{value:e,done:t}}},{}],241:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},{"../internals/create-property-descriptor":242,"../internals/descriptors":247,"../internals/object-define-property":308}],242:[function(e,t,r){"use strict";t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],243:[function(e,t,r){"use strict";var n=e("../internals/to-property-key"),i=e("../internals/object-define-property"),o=e("../internals/create-property-descriptor");t.exports=function(e,t,r){var s=n(t);s in e?i.f(e,s,o(0,r)):e[s]=r}},{"../internals/create-property-descriptor":242,"../internals/object-define-property":308,"../internals/to-property-key":346}],244:[function(e,t,r){"use strict";var n=e("../internals/make-built-in"),i=e("../internals/object-define-property");t.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},{"../internals/make-built-in":300,"../internals/object-define-property":308}],245:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/object-define-property"),o=e("../internals/make-built-in"),s=e("../internals/define-global-property");t.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&o(r,c,a),a.global)l?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},{"../internals/define-global-property":246,"../internals/is-callable":285,"../internals/make-built-in":300,"../internals/object-define-property":308}],246:[function(e,t,r){"use strict";var n=e("../internals/global"),i=Object.defineProperty;t.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},{"../internals/global":274}],247:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},{"../internals/fails":260}],248:[function(e,t,r){"use strict";var n="object"==typeof document&&document.all,i=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:i}},{}],249:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/is-object"),o=n.document,s=i(o)&&i(o.createElement);t.exports=function(e){return s?o.createElement(e):{}}},{"../internals/global":274,"../internals/is-object":289}],250:[function(e,t,r){"use strict";var n=e("../internals/engine-is-deno"),i=e("../internals/engine-is-node");t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},{"../internals/engine-is-deno":251,"../internals/engine-is-node":254}],251:[function(e,t,r){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},{}],252:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},{"../internals/engine-user-agent":256}],253:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},{"../internals/engine-user-agent":256}],254:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/classof-raw");t.exports="process"===i(n.process)},{"../internals/classof-raw":235,"../internals/global":274}],255:[function(e,t,r){"use strict";var n=e("../internals/engine-user-agent");t.exports=/web0s(?!.*chrome)/i.test(n)},{"../internals/engine-user-agent":256}],256:[function(e,t,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},{}],257:[function(e,t,r){"use strict";var n,i,o=e("../internals/global"),s=e("../internals/engine-user-agent"),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},{"../internals/engine-user-agent":256,"../internals/global":274}],258:[function(e,t,r){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],259:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/object-get-own-property-descriptor").f,o=e("../internals/create-non-enumerable-property"),s=e("../internals/define-built-in"),a=e("../internals/define-global-property"),l=e("../internals/copy-constructor-properties"),c=e("../internals/is-forced");t.exports=function(e,t){var r,u,d,h,f,p=e.target,m=e.global,g=e.stat;if(r=m?n:g?n[p]||a(p,{}):(n[p]||{}).prototype)for(u in t){if(h=t[u],d=e.dontCallGetSet?(f=i(r,u))&&f.value:r[u],!c(m?u:p+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&o(h,"sham",!0),s(r,u,h,e)}}},{"../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,t,r){"use strict";t.exports=function(e){try{return!!e()}catch(e){return!0}}},{}],261:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,o=i.apply,s=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},{"../internals/function-bind-native":263}],262:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-clause"),i=e("../internals/a-callable"),o=e("../internals/function-bind-native"),s=n(n.bind);t.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},{"../internals/a-callable":222,"../internals/function-bind-native":263,"../internals/function-uncurry-this-clause":267}],263:[function(e,t,r){"use strict";var n=e("../internals/fails");t.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},{"../internals/fails":260}],264:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},{"../internals/function-bind-native":263}],265:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/has-own-property"),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},{"../internals/descriptors":247,"../internals/has-own-property":275}],266:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/a-callable");t.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},{"../internals/a-callable":222,"../internals/function-uncurry-this":268}],267:[function(e,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/function-uncurry-this");t.exports=function(e){if("Function"===n(e))return i(e)}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268}],268:[function(e,t,r){"use strict";var n=e("../internals/function-bind-native"),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);t.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},{"../internals/function-bind-native":263}],269:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/is-callable"),o=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?o(n[e]):n[e]&&n[e][t]}},{"../internals/global":274,"../internals/is-callable":285}],270:[function(e,t,r){"use strict";var n=e("../internals/classof"),i=e("../internals/get-method"),o=e("../internals/is-null-or-undefined"),s=e("../internals/iterators"),a=e("../internals/well-known-symbol")("iterator");t.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[n(e)]}},{"../internals/classof":236,"../internals/get-method":273,"../internals/is-null-or-undefined":288,"../internals/iterators":298,"../internals/well-known-symbol":357}],271:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/a-callable"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/get-iterator-method"),l=TypeError;t.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return o(n(r,e));throw new l(s(e)+" 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,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/is-array"),o=e("../internals/is-callable"),s=e("../internals/classof-raw"),a=e("../internals/to-string"),l=n([].push);t.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,r=[],n=0;n<t;n++){var c=e[n];"string"==typeof c?l(r,c):"number"!=typeof c&&"Number"!==s(c)&&"String"!==s(c)||l(r,a(c))}var u=r.length,d=!0;return function(e,t){if(d)return d=!1,t;if(i(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},{"../internals/classof-raw":235,"../internals/function-uncurry-this":268,"../internals/is-array":284,"../internals/is-callable":285,"../internals/to-string":348}],273:[function(e,t,r){"use strict";var n=e("../internals/a-callable"),i=e("../internals/is-null-or-undefined");t.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},{"../internals/a-callable":222,"../internals/is-null-or-undefined":288}],274:[function(e,t,r){(function(e){(function(){"use strict";var r=function(e){return e&&e.Math===Math&&e};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],275:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/to-object"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},{"../internals/function-uncurry-this":268,"../internals/to-object":344}],276:[function(e,t,r){"use strict";t.exports={}},{}],277:[function(e,t,r){"use strict";t.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},{}],278:[function(e,t,r){"use strict";var n=e("../internals/get-built-in");t.exports=n("document","documentElement")},{"../internals/get-built-in":269}],279:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/document-create-element");t.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},{"../internals/descriptors":247,"../internals/document-create-element":249,"../internals/fails":260}],280:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/classof-raw"),s=Object,a=n("".split);t.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},{"../internals/classof-raw":235,"../internals/fails":260,"../internals/function-uncurr
2y-this":268}],281:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/is-callable"),o=e("../internals/shared-store"),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),t.exports=o.inspectSource},{"../internals/function-uncurry-this":268,"../internals/is-callable":285,"../internals/shared-store":333}],282:[function(e,t,r){"use strict";var n,i,o,s=e("../internals/weak-map-basic-detection"),a=e("../internals/global"),l=e("../internals/is-object"),c=e("../internals/create-non-enumerable-property"),u=e("../internals/has-own-property"),d=e("../internals/shared-store"),h=e("../internals/shared-key"),f=e("../internals/hidden-keys"),p=a.TypeError,m=a.WeakMap;if(s||d.state){var g=d.state||(d.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new p("Object already initialized");return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var b=h("state");f[b]=!0,n=function(e,t){if(u(e,b))throw new p("Object already initialized");return t.facade=e,c(e,b,t),t},i=function(e){return u(e,b)?e[b]:{}},o=function(e){return u(e,b)}}t.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new p("Incompatible receiver, "+e+" required");return r}}}},{"../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,t,r){"use strict";var n=e("../internals/well-known-symbol"),i=e("../internals/iterators"),o=n("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},{"../internals/iterators":298,"../internals/well-known-symbol":357}],284:[function(e,t,r){"use strict";var n=e("../internals/classof-raw");t.exports=Array.isArray||function(e){return"Array"===n(e)}},{"../internals/classof-raw":235}],285:[function(e,t,r){"use strict";var n=e("../internals/document-all"),i=n.all;t.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},{"../internals/document-all":248}],286:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/classof"),a=e("../internals/get-built-in"),l=e("../internals/inspect-source"),c=function(){},u=[],d=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=n(h.exec),p=!h.test(c),m=function(e){if(!o(e))return!1;try{return d(c,u,e),!0}catch(e){return!1}},g=function(e){if(!o(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,l(e))}catch(e){return!0}};g.sham=!0,t.exports=!d||i(function(){var e;return m(m.call)||!m(Object)||!m(function(){e=!0})||e})?g:m},{"../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,t,r){"use strict";var n=e("../internals/fails"),i=e("../internals/is-callable"),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s},{"../internals/fails":260,"../internals/is-callable":285}],288:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],289:[function(e,t,r){"use strict";var n=e("../internals/is-callable"),i=e("../internals/document-all"),o=i.all;t.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===o}:function(e){return"object"==typeof e?null!==e:n(e)}},{"../internals/document-all":248,"../internals/is-callable":285}],290:[function(e,t,r){"use strict";t.exports=!1},{}],291:[function(e,t,r){"use strict";var n=e("../internals/is-object"),i=e("../internals/classof-raw"),o=e("../internals/well-known-symbol")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},{"../internals/classof-raw":235,"../internals/is-object":289,"../internals/well-known-symbol":357}],292:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/is-callable"),o=e("../internals/object-is-prototype-of"),s=e("../internals/use-symbol-as-uid"),a=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},{"../internals/get-built-in":269,"../internals/is-callable":285,"../internals/object-is-prototype-of":314,"../internals/use-symbol-as-uid":351}],293:[function(e,t,r){"use strict";var n=e("../internals/function-bind-context"),i=e("../internals/function-call"),o=e("../internals/an-object"),s=e("../internals/try-to-string"),a=e("../internals/is-array-iterator-method"),l=e("../internals/length-of-array-like"),c=e("../internals/object-is-prototype-of"),u=e("../internals/get-iterator"),d=e("../internals/get-iterator-method"),h=e("../internals/iterator-close"),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;
vendor: 5,008 bytes, line 2
2t.exports=function(e,t,r){var g,b,y,A,v,w,x,k=r&&r.that,C=!(!r||!r.AS_ENTRIES),_=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),T=n(t,k),M=function(e){return g&&h(g,"normal",e),new p(!0,e)},O=function(e){return C?(o(e),E?T(e[0],e[1],M):T(e[0],e[1])):E?T(e,M):T(e)};if(_)g=e.iterator;else if(S)g=e;else{if(!(b=d(e)))throw new f(s(e)+" is not iterable");if(a(b)){for(y=0,A=l(e);A>y;y++)if((v=O(e[y]))&&c(m,v))return v;return new p(!1)}g=u(e,b)}for(w=_?e.next:g.next;!(x=i(w,g)).done;){try{v=O(x.value)}catch(e){h(g,"throw",e)}if("object"==typeof v&&v&&c(m,v))return v}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,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/an-object"),o=e("../internals/get-method");t.exports=function(e,t,r){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return i(s),r}},{"../internals/an-object":227,"../internals/function-call":264,"../internals/get-method":273}],295:[function(e,t,r){"use strict";var n=e("../internals/iterators-core").IteratorPrototype,i=e("../internals/object-create"),o=e("../internals/create-property-descriptor"),s=e("../internals/set-to-string-tag"),a=e("../internals/iterators"),l=function(){return this};t.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=i(n,{next:o(+!c,r)}),s(e,u,!1,!0),a[u]=l,e}},{"../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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/is-pure"),s=e("../internals/function-name"),a=e("../internals/is-callable"),l=e("../internals/iterator-create-constructor"),c=e("../internals/object-get-prototype-of"),u=e("../internals/object-set-prototype-of"),d=e("../internals/set-to-string-tag"),h=e("../internals/create-non-enumerable-property"),f=e("../internals/define-built-in"),p=e("../internals/well-known-symbol"),m=e("../internals/iterators"),g=e("../internals/iterators-core"),b=s.PROPER,y=s.CONFIGURABLE,A=g.IteratorPrototype,v=g.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x=function(){return this};t.exports=function(e,t,r,s,p,g,k){l(r,t,s);var C,_,S,E=function(e){if(e===p&&P)return P;if(!v&&e&&e in O)return O[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",M=!1,O=e.prototype,N=O[w]||O["@@iterator"]||p&&O[p],P=!v&&N||E(p),R="Array"===t&&O.entries||N;if(R&&(C=c(R.call(new e)))!==Object.prototype&&C.next&&(o||c(C)===A||(u?u(C,A):a(C[w])||f(C,w,x)),d(C,T,!0,!0),o&&(m[T]=x)),b&&"values"===p&&N&&"values"!==N.name&&(!o&&y?h(O,"name","values"):(M=!0,P=function(){return i(N,this)})),p)if(_={values:E("values"),keys:g?P:E("keys"),entries:E("entries")},k)for(S in _)(v||M||!(S in O))&&f(O,S,_[S]);else n({target:t,proto:!0,forced:v||M},_);return o&&!k||O[w]===P||f(O,w,P,{name:p}),m[t]=P,_}},{"../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,t,r){"use strict";var n,i,o,s=e("../internals/fails"),a=e("../internals/is-callable"),l=e("../internals/is-object"),c=e("../internals/object-create"),u=e("../internals/object-get-prototype-of"),d=e("../internals/define-built-in"),h=e("../internals/well-known-symbol"),f=e("../internals/is-pure"),p=h("iterator"),m=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):m=!0),!l(n)||s(function(){var e={};return n[p].call(e)!==e})?n={}:f&&(n=c(n)),a(n[p])||d(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},{"../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,t,r){arguments[4][276][0].apply(r,arguments)},{dup:276}],299:[function(e,t,r){"use strict";var n=e("../internals/to-length");t.exports=function(e){return n(e.length)}},{"../internals/to-length":343}],300:[function(e,t,r){"use strict";
2var n=e("../internals/function-uncurry-this"),i=e("../internals/fails"),o=e("../internals/is-callable"),s=e("../internals/has-own-property"),a=e("../internals/descriptors"),l=e("../internals/function-name").CONFIGURABLE,c=e("../internals/inspect-source"),u=e("../internals/internal-state"),d=u.enforce,h=u.get,f=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),b=n([].join),y=a&&!i(function(){return 8!==p(function(){},"length",{value:8}).length}),A=String(String).split("String"),v=t.exports=function(e,t,r){"Symbol("===m(f(t),0,7)&&(t="["+g(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&r&&s(r,"arity")&&e.length!==r.arity&&p(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=d(e);return s(n,"source")||(n.source=b(A,"string"==typeof t?t:"")),e};Function.prototype.toString=v(function(){return o(this)&&h(this).source||c(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,t,r){"use strict";var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?i:n)(t)}},{}],302:[function(e,t,r){"use strict";var n,i,o,s,a,l=e("../internals/global"),c=e("../internals/function-bind-context"),u=e("../internals/object-get-own-property-descriptor").f,d=e("../internals/task").set,h=e("../internals/queue"),f=e("../internals/engine-is-ios"),p=e("../internals/engine-is-ios-pebble"),m=e("../internals/engine-is-webos-webkit"),g=e("../internals/engine-is-node"),b=l.MutationObserver||l.WebKitMutationObserver,y=l.document,A=l.process,v=l.Promise,w=u(l,"queueMicrotask"),x=w&&w.value;if(!x){var k=new h,C=function(){var e,t;for(g&&(e=A.domain)&&e.exit();t=k.get();)try{t()}catch(e){throw k.head&&n(),e}e&&e.enter()};f||g||m||!b||!y?!p&&v&&v.resolve?((s=v.resolve(void 0)).constructor=v,a=c(s.then,s),n=function(){a(C)}):g?n=function(){A.nextTick(C)}:(d=c(d,l),n=function(){d(C)}):(i=!0,o=y.createTextNode(""),new b(C).observe(o,{characterData:!0}),n=function(){o.data=i=!i}),x=function(e){k.head||n(),k.add(e)}}t.exports=x},{"../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,t,r){"use strict";var n=e("../internals/a-callable"),i=TypeError,o=function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw new i("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)};t.exports.f=function(e){return new o(e)}},{"../internals/a-callable":222}],304:[function(e,t,r){"use strict";var n=e("../internals/is-regexp"),i=TypeError;t.exports=function(e){if(n(e))throw new i("The method doesn't accept regular expressions");return e}},{"../internals/is-regexp":291}],305:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-uncurry-this"),o=e("../internals/function-call"),s=e("../internals/fails"),a=e("../internals/object-keys"),l=e("../internals/object-get-own-property-symbols"),c=e("../internals/object-property-is-enumerable"),u=e("../internals/to-object"),d=e("../internals/indexed-object"),h=Object.assign,f=Object.defineProperty,p=i([].concat);t.exports=!h||s(function(){if(n&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection");return e[r]=7,"abcdefghijklmnopqrst".split("").forEach(function(e){t[e]=e}),7!==h({},e)[r]||"abcdefghijklmnopqrst"!==a(h({},t)).join("")})?function(e,t){for(var r=u(e),i=arguments.length,s=1,h=l.f,f=c.f;i>s;)for(var m,g=d(arguments[s++]),b=h?p(a(g),h(g)):a(g),y=b.length,A=0;y>A;)m=b[A++],n&&!o(f,g,m)||(r[m]=g[m]);return r}:h},{"../internals/descriptors":247,"../internals/fails":260,"../internals/function-call":264,"../internals/function-uncurr
2y-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,t,r){"use strict";var n,i=e("../internals/an-object"),o=e("../internals/object-define-properties"),s=e("../internals/enum-bug-keys"),a=e("../internals/hidden-keys"),l=e("../internals/html"),c=e("../internals/document-create-element"),u=e("../internals/shared-key")("IE_PROTO"),d=function(){},h=function(e){return"<script>"+e+"<\/script>"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;p="undefined"!=typeof document?document.domain&&n?f(n):((t=c("iframe")).style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(n);for(var r=s.length;r--;)delete p.prototype[s[r]];return p()};a[u]=!0,t.exports=Object.create||function(e,t){var r;return null!==e?(d.prototype=i(e),r=new d,d.prototype=null,r[u]=e):r=p(),void 0===t?r:o.f(r,t)}},{"../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,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/v8-prototype-define-bug"),o=e("../internals/object-define-property"),s=e("../internals/an-object"),a=e("../internals/to-indexed-object"),l=e("../internals/object-keys");r.f=n&&!i?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,r=i[u++],n[r]);return e}},{"../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,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/ie8-dom-define"),o=e("../internals/v8-prototype-define-bug"),s=e("../internals/an-object"),a=e("../internals/to-property-key"),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;r.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=u(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},{"../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,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/function-call"),o=e("../internals/object-property-is-enumerable"),s=e("../internals/create-property-descriptor"),a=e("../internals/to-indexed-object"),l=e("../internals/to-property-key"),c=e("../internals/has-own-property"),u=e("../internals/ie8-dom-define"),d=Object.getOwnPropertyDescriptor;r.f=n?d:function(e,t){if(e=a(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},{"../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,t,r){"use strict";var n=e("../internals/classof-raw"),i=e("../internals/to-indexed-object"),o=e("../internals/object-get-own-property-names").f,s=e("../internals/array-slice-simple"),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return a&&"Window"===n(e)?function(e){try{return o(e)}catch(e){return s(a)}}(e):o(i(e))}},{"../internals/array-slice-simple":230,"../internals/classof-raw":235,"../internals/object-get-own-property-names":311,"../internals/to-indexed-object":341}],311:[function(e,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys").concat("length","prototype");r.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],312:[function(e,t,r){"use strict";r.f=Object.getOwnPropertySymbols},{}],313:[function(e,t,r){"use strict";var n=e("../internals/has-own-property"),i=e("../internals/is-callable"),o=e("../internals/to-object"),s=e("../internals/shared-key"),a=e("../internals/correct-prototype-getter"),l=s("IE_PROTO"),c=Object,u=c.prototype;
vendor: 14,161 bytes, line 2
2t.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u: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,t,r){"use strict";var n=e("../internals/function-uncurry-this");t.exports=n({}.isPrototypeOf)},{"../internals/function-uncurry-this":268}],315:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this"),i=e("../internals/has-own-property"),o=e("../internals/to-indexed-object"),s=e("../internals/array-includes").indexOf,a=e("../internals/hidden-keys"),l=n([].push);t.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~s(u,r)||l(u,r));return u}},{"../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,t,r){"use strict";var n=e("../internals/object-keys-internal"),i=e("../internals/enum-bug-keys");t.exports=Object.keys||function(e){return n(e,i)}},{"../internals/enum-bug-keys":258,"../internals/object-keys-internal":315}],317:[function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);r.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},{}],318:[function(e,t,r){"use strict";var n=e("../internals/function-uncurry-this-accessor"),i=e("../internals/an-object"),o=e("../internals/a-possible-prototype");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},{"../internals/a-possible-prototype":224,"../internals/an-object":227,"../internals/function-uncurry-this-accessor":266}],319:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails"),o=e("../internals/function-uncurry-this"),s=e("../internals/object-get-prototype-of"),a=e("../internals/object-keys"),l=e("../internals/to-indexed-object"),c=o(e("../internals/object-property-is-enumerable").f),u=o([].push),d=n&&i(function(){var e=Object.create(null);return e[2]=2,!c(e,2)}),h=function(e){return function(t){for(var r,i=l(t),o=a(i),h=d&&null===s(i),f=o.length,p=0,m=[];f>p;)r=o[p++],n&&!(h?r in i:c(i,r))||u(m,e?[r,i[r]]:i[r]);return m}};t.exports={entries:h(!0),values:h(!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,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-callable"),o=e("../internals/is-object"),s=TypeError;t.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e)))return a;if(i(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},{"../internals/function-call":264,"../internals/is-callable":285,"../internals/is-object":289}],321:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/function-uncurry-this"),o=e("../internals/object-get-own-property-names"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/an-object"),l=i([].concat);t.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=s.f;return r?l(t,r(e)):t}},{"../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,t,r){"use strict";var n=e("../internals/global");t.exports=n},{"../internals/global":274}],323:[function(e,t,r){"use strict";t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},{}],324:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/promise-native-constructor"),o=e("../internals/is-callable"),s=e("../internals/is-forced"),a=e("../internals/inspect-source"),l=e("../internals/well-known-symbol"),c=e("../internals/engine-is-browser"),u=e("../internals/engine-is-deno"),d=e("../internals/is-pure"),h=e("../internals/engine-v8-version"),f=i&&i.prototype,p=l("species"),m=!1,g=o(n.PromiseRejectionEvent),b=s("Promise",function(){var e=a(i),t=e!==String(i);if(!t&&66===h)return!0;if(d&&(!f.catch||!f.finally))return!0;if(!h||h<51||!/native code/.test(e)){var r=new i(function(e){e(1)}),n=function(e){e(function(){},function(){})};if((r.constructor={})[p]=n,!(m=r.then(function(){})instanceof n))return!0}return!t&&(c||u)&&!g});t.exports={CONSTRUCTOR:b,REJECTION_EVENT:g,SUBCLASSING:m}},{"../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,t,r){"use strict";var n=e("../internals/global");t.exports=n.Promise},{"../internals/global":274}],326:[function(e,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/is-object"),o=e("../internals/new-promise-capability");t.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},{"../internals/an-object":227,"../internals/is-object":289,"../internals/new-promise-capability":303}],327:[function(e,t,r){"use strict";var n=e("../internals/promise-native-constructor"),i=e("../internals/check-correctness-of-iteration"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR;t.exports=o||!i(function(e){n.all(e).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":234,"../internals/promise-constructor-detection":324,"../internals/promise-native-constructor":325}],328:[function(e,t,r){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},t.exports=n},{}],329:[function(e,t,r){"use strict";var n=e("../internals/is-null-or-undefined"),i=TypeError;t.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},{"../internals/is-null-or-undefined":288}],330:[function(e,t,r){"use strict";var n=e("../internals/get-built-in"),i=e("../internals/define-built-in-accessor"),o=e("../internals/well-known-symbol"),s=e("../internals/descriptors"),a=o("species");t.exports=function(e){var t=n(e);s&&t&&!t[a]&&i(t,a,{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,t,r){"use strict";var n=e("../internals/object-define-property").f,i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol")("toStringTag");t.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!i(e,o)&&n(e,o,{configurable:!0,value:t})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/well-known-symbol":357}],332:[function(e,t,r){"use strict";var n=e("../internals/shared"),i=e("../internals/uid"),o=n("keys");t.exports=function(e){return o[e]||(o[e]=i(e))}},{"../internals/shared":334,"../internals/uid":350}],333:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/define-global-property"),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},{"../internals/define-global-property":246,"../internals/global":274}],334:[function(e,t,r){"use strict";var n=e("../internals/is-pure"),i=e("../internals/shared-store");(t.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"\xa9 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,t,r){"use strict";var n=e("../internals/an-object"),i=e("../internals/a-constructor"),o=e("../internals/is-null-or-undefined"),s=e("../internals/well-known-symbol")("species");t.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||o(r=n(a)[s])?t:i(r)}},{"../internals/a-constructor":223,"../internals/an-object":227,"../internals/is-null-or-undefined":288,"../internals/well-known-symbol":357}],336:[function(e,t,r){"use strict";var n=e("../internals/engine-v8-version"),i=e("../internals/fails"),o=e("../internals/global").String;t.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},{"../internals/engine-v8-version":257,"../internals/fails":260,"../internals/global":274}],337:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/get-built-in"),o=e("../internals/well-known-symbol"),s=e("../internals/define-built-in");t.exports=function(){var e=i("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=o("toPrimitive");t&&!t[a]&&s(t,a,function(e){return n(r,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,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/symbol-constructor-detection":336}],339:[function(e,t,r){"use strict";var n,i,o,s,a=e("../internals/global"),l=e("../internals/function-apply"),c=e("../internals/function-bind-context"),u=e("../internals/is-callable"),d=e("../internals/has-own-property"),h=e("../internals/fails"),f=e("../internals/html"),p=e("../internals/array-slice"),m=e("../internals/document-create-element"),g=e("../internals/validate-arguments-length"),b=e("../internals/engine-is-ios"),y=e("../internals/engine-is-node"),A=a.setImmediate,v=a.clearImmediate,w=a.process,x=a.Dispatch,k=a.Function,C=a.MessageChannel,_=a.String,S=0,E={};h(function(){n=a.location});var T=function(e){if(d(E,e)){var t=E[e];delete E[e],t()}},M=function(e){return function(){T(e)}},O=function(e){T(e.data)},N=function(e){a.postMessage(_(e),n.protocol+"//"+n.host)};A&&v||(A=function(e){g(arguments.length,1);var t=u(e)?e:k(e),r=p(arguments,1);return E[++S]=function(){l(t,void 0,r)},i(S),S},v=function(e){delete E[e]},y?i=function(e){w.nextTick(M(e))}:x&&x.now?i=function(e){x.now(M(e))}:C&&!b?(s=(o=new C).port2,o.port1.onmessage=O,i=c(s.postMessage,s)):a.addEventListener&&u(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!h(N)?(i=N,a.addEventListener("message",O,!1)):i="onreadystatechange"in m("script")?function(e){f.appendChild(m("script")).onreadystatechange=function(){f.removeChild(this),T(e)}}:function(e){setTimeout(M(e),0)}),t.exports={set:A,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,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.max,o=Math.min;t.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},{"../internals/to-integer-or-infinity":342}],341:[function(e,t,r){"use strict";var n=e("../internals/indexed-object"),i=e("../internals/require-object-coercible");t.exports=function(e){return n(i(e))}},{"../internals/indexed-object":280,"../internals/require-object-coercible":329}],342:[function(e,t,r){"use strict";var n=e("../internals/math-trunc");t.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},{"../internals/math-trunc":301}],343:[function(e,t,r){"use strict";var n=e("../internals/to-integer-or-infinity"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"../internals/to-integer-or-infinity":342}],344:[function(e,t,r){"use strict";var n=e("../internals/require-object-coercible"),i=Object;t.exports=function(e){return i(n(e))}},{"../internals/require-object-coercible":329}],345:[function(e,t,r){"use strict";var n=e("../internals/function-call"),i=e("../internals/is-object"),o=e("../internals/is-symbol"),s=e("../internals/get-method"),a=e("../internals/ordinary-to-primitive"),l=e("../internals/well-known-symbol"),c=TypeError,u=l("toPrimitive");t.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=s(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},{"../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,t,r){"use strict";var n=e("../internals/to-primitive"),i=e("../internals/is-symbol");t.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},{"../internals/is-symbol":292,"../internals/to-primitive":345}],347:[function(e,t,r){"use strict";var n={};n[e("../internals/well-known-symbol")("toStringTag")]="z",t.exports="[object z]"===String(n)},{"../internals/well-known-symbol":357}],348:[function(e,t,r){"use strict";var n=e("../internals/classof"),i=String;t.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},{"../internals/classof":236}],349:[function(e,t,r){"use strict";var n=String;t.exports=function(e){try{return n(e)}catch(e){return"Object"}}},{}],350:[function(e,t,r){"use strict";
2var n=e("../internals/function-uncurry-this"),i=0,o=Math.random(),s=n(1..toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},{"../internals/function-uncurry-this":268}],351:[function(e,t,r){"use strict";var n=e("../internals/symbol-constructor-detection");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},{"../internals/symbol-constructor-detection":336}],352:[function(e,t,r){"use strict";var n=e("../internals/descriptors"),i=e("../internals/fails");t.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},{"../internals/descriptors":247,"../internals/fails":260}],353:[function(e,t,r){"use strict";var n=TypeError;t.exports=function(e,t){if(e<t)throw new n("Not enough arguments");return e}},{}],354:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/is-callable"),o=n.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},{"../internals/global":274,"../internals/is-callable":285}],355:[function(e,t,r){"use strict";var n=e("../internals/path"),i=e("../internals/has-own-property"),o=e("../internals/well-known-symbol-wrapped"),s=e("../internals/object-define-property").f;t.exports=function(e){var t=n.Symbol||(n.Symbol={});i(t,e)||s(t,e,{value:o.f(e)})}},{"../internals/has-own-property":275,"../internals/object-define-property":308,"../internals/path":322,"../internals/well-known-symbol-wrapped":356}],356:[function(e,t,r){"use strict";var n=e("../internals/well-known-symbol");r.f=n},{"../internals/well-known-symbol":357}],357:[function(e,t,r){"use strict";var n=e("../internals/global"),i=e("../internals/shared"),o=e("../internals/has-own-property"),s=e("../internals/uid"),a=e("../internals/symbol-constructor-detection"),l=e("../internals/use-symbol-as-uid"),c=n.Symbol,u=i("wks"),d=l?c.for||c:c&&c.withoutSetter||s;t.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:d("Symbol."+e)),u[e]}},{"../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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").findIndex,o=e("../internals/add-to-unscopables"),s=!0;"findIndex"in[]&&Array(1).findIndex(function(){s=!1}),n({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],359:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-iteration").find,o=e("../internals/add-to-unscopables"),s=!0;"find"in[]&&Array(1).find(function(){s=!1}),n({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},{"../internals/add-to-unscopables":225,"../internals/array-iteration":229,"../internals/export":259}],360:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/array-includes").includes,o=e("../internals/fails"),s=e("../internals/add-to-unscopables");n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},{"../internals/add-to-unscopables":225,"../internals/array-includes":228,"../internals/export":259,"../internals/fails":260}],361:[function(e,t,r){"use strict";var n=e("../internals/to-indexed-object"),i=e("../internals/add-to-unscopables"),o=e("../internals/iterators"),s=e("../internals/internal-state"),a=e("../internals/object-define-property").f,l=e("../internals/iterator-define"),c=e("../internals/create-iter-result-object"),u=e("../internals/is-pure"),d=e("../internals/descriptors"),h=s.set,f=s.getterFor("Array Iterator");t.exports=l(Array,"Array",function(e,t){h(this,{type:"Array Iterator",target:n(e),index:0,kind:t})},function(){var e=f(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(r){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)},"values");var p=o.Arguments=o.Array;
2if(i("keys"),i("values"),i("entries"),!u&&d&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(e){}},{"../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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/function-apply"),s=e("../internals/function-call"),a=e("../internals/function-uncurry-this"),l=e("../internals/fails"),c=e("../internals/is-callable"),u=e("../internals/is-symbol"),d=e("../internals/array-slice"),h=e("../internals/get-json-replacer-function"),f=e("../internals/symbol-constructor-detection"),p=String,m=i("JSON","stringify"),g=a(/./.exec),b=a("".charAt),y=a("".charCodeAt),A=a("".replace),v=a(1..toString),w=/[\uD800-\uDFFF]/g,x=/^[\uD800-\uDBFF]$/,k=/^[\uDC00-\uDFFF]$/,C=!f||l(function(){var e=i("Symbol")("stringify detection");return"[null]"!==m([e])||"{}"!==m({a:e})||"{}"!==m(Object(e))}),_=l(function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")}),S=function(e,t){var r=d(arguments),n=h(t);if(c(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(c(n)&&(t=s(n,this,p(e),t)),!u(t))return t},o(m,null,r)},E=function(e,t,r){var n=b(r,t-1),i=b(r,t+1);return g(x,e)&&!g(k,i)||g(k,e)&&!g(x,n)?"\\u"+v(y(e,0),16):e};m&&n({target:"JSON",stat:!0,arity:3,forced:C||_},{stringify:function(e,t,r){var n=d(arguments),i=o(C?S:m,null,n);return _&&"string"==typeof i?A(i,w,E):i}})},{"../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,t,r){"use strict";e("../internals/export")({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},{"../internals/export":259}],364:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/object-assign");n({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},{"../internals/export":259,"../internals/object-assign":305}],365:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/symbol-constructor-detection"),o=e("../internals/fails"),s=e("../internals/object-get-own-property-symbols"),a=e("../internals/to-object");n({target:"Object",stat:!0,forced:!i||o(function(){s.f(1)})},{getOwnPropertySymbols:function(e){var t=s.f;return t?t(a(e)):[]}})},{"../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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/to-object"),o=e("../internals/object-keys");n({target:"Object",stat:!0,forced:e("../internals/fails")(function(){o(1)})},{keys:function(e){return o(i(e))}})},{"../internals/export":259,"../internals/fails":260,"../internals/object-keys":316,"../internals/to-object":344}],367:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/object-to-array").values;n({target:"Object",stat:!0},{values:function(e){return i(e)}})},{"../internals/export":259,"../internals/object-to-array":319}],368:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{all:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,u=a(function(){var r=o(t.resolve),s=[],a=0,u=1;l(e,function(e){var o=a++,l=!1;u++,i(r,t,e).then(function(e){l||(l=!0,s[o]=e,--u||n(s))},c)}),--u||n(s)});return u.error&&c(u.value),r.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}
vendor: 7,154 bytes, line 2
2],369:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-constructor-detection").CONSTRUCTOR,s=e("../internals/promise-native-constructor"),a=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/define-built-in"),u=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&l(s)){var d=a("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{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,t,r){"use strict";var n,i,o,s=e("../internals/export"),a=e("../internals/is-pure"),l=e("../internals/engine-is-node"),c=e("../internals/global"),u=e("../internals/function-call"),d=e("../internals/define-built-in"),h=e("../internals/object-set-prototype-of"),f=e("../internals/set-to-string-tag"),p=e("../internals/set-species"),m=e("../internals/a-callable"),g=e("../internals/is-callable"),b=e("../internals/is-object"),y=e("../internals/an-instance"),A=e("../internals/species-constructor"),v=e("../internals/task").set,w=e("../internals/microtask"),x=e("../internals/host-report-errors"),k=e("../internals/perform"),C=e("../internals/queue"),_=e("../internals/internal-state"),S=e("../internals/promise-native-constructor"),E=e("../internals/promise-constructor-detection"),T=e("../internals/new-promise-capability"),M=E.CONSTRUCTOR,O=E.REJECTION_EVENT,N=E.SUBCLASSING,P=_.getterFor("Promise"),R=_.set,D=S&&S.prototype,I=S,L=D,B=c.TypeError,j=c.document,F=c.process,z=T.f,U=z,H=!!(j&&j.createEvent&&c.dispatchEvent),V=function(e){var t;return!(!b(e)||!g(t=e.then))&&t},W=function(e,t){var r,n,i,o=t.value,s=1===t.state,a=s?e.ok:e.fail,l=e.resolve,c=e.reject,d=e.domain;try{a?(s||(2===t.rejection&&Y(t),t.rejection=1),!0===a?r=o:(d&&d.enter(),r=a(o),d&&(d.exit(),i=!0)),r===e.promise?c(new B("Promise-chain cycle")):(n=V(r))?u(n,r,l,c):l(r)):c(o)}catch(e){d&&!i&&d.exit(),c(e)}},K=function(e,t){e.notified||(e.notified=!0,w(function(){for(var r,n=e.reactions;r=n.get();)W(r,e);e.notified=!1,t&&!e.rejection&&G(e)}))},q=function(e,t,r){var n,i;H?((n=j.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!O&&(i=c["on"+e])?i(n):"unhandledrejection"===e&&x("Unhandled promise rejection",r)},G=function(e){u(v,c,function(){var t,r=e.facade,n=e.value;if(X(e)&&(t=k(function(){l?F.emit("unhandledRejection",n,r):q("unhandledrejection",r,n)}),e.rejection=l||X(e)?2:1,t.error))throw t.value})},X=function(e){return 1!==e.rejection&&!e.parent},Y=function(e){u(v,c,function(){var t=e.facade;l?F.emit("rejectionHandled",t):q("rejectionhandled",t,e.value)})},$=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,K(e,!0))},J=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new B("Promise can't be resolved itself");var n=V(t);n?w(function(){var r={done:!1};try{u(n,t,$(J,r,e),$(Q,r,e))}catch(t){Q(r,t,e)}}):(e.value=t,e.state=1,K(e,!1))}catch(t){Q({done:!1},t,e)}}};if(M&&(L=(I=function(e){y(this,L),m(e),u(n,this);var t=P(this);try{e($(J,t),$(Q,t))}catch(e){Q(t,e)}}).prototype,(n=function(e){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:void 0})}).prototype=d(L,"then",function(e,t){var r=P(this),n=z(A(this,I));return r.parent=!0,n.ok=!g(e)||e,n.fail=g(t)&&t,n.domain=l?F.domain:void 0,0===r.state?r.reactions.add(n):w(function(){W(n,r)}),n.promise}),i=function(){var e=new n,t=P(e);this.promise=e,this.resolve=$(J,t),this.reject=$(Q,t)},T.f=z=function(e){return e===I||void 0===e?new i(e):U(e)},!a&&g(S)&&D!==Object.prototype)){o=D.then,N||d(D,"then",function(e,t){var r=this;return new I(function(e,t){u(o,r,e,t)}).then(e,t)},{unsafe:!0});try{delete D.constructor}catch(e){}h&&h(D,L)}s({global:!0,constructor:!0,wrap:!0,forced:M},{Promise:I}),f(I,"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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/is-pure"),o=e("../internals/promise-native-constructor"),s=e("../internals/fails"),a=e("../internals/get-built-in"),l=e("../internals/is-callable"),c=e("../internals/species-constructor"),u=e("../internals/promise-resolve"),d=e("../internals/define-built-in"),h=o&&o.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){h.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=c(this,a("Promise")),r=l(e);return this.then(r?function(r){return u(t,e()).then(function(){return r})}:e,r?function(r){return u(t,e()).then(function(){throw r})}:e)}}),!i&&l(o)){var f=a("Promise").prototype.finally;h.finally!==f&&d(h,"finally",f,{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,t,r){"use strict";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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/a-callable"),s=e("../internals/new-promise-capability"),a=e("../internals/perform"),l=e("../internals/iterate");n({target:"Promise",stat:!0,forced:e("../internals/promise-statics-incorrect-iteration")},{race:function(e){var t=this,r=s.f(t),n=r.reject,c=a(function(){var s=o(t.resolve);l(e,function(e){i(s,t,e).then(r.resolve,n)})});return c.error&&n(c.value),r.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}
vendor: 4,149 bytes, line 2
2],374:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-call"),o=e("../internals/new-promise-capability");n({target:"Promise",stat:!0,forced:e("../internals/promise-constructor-detection").CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},{"../internals/export":259,"../internals/function-call":264,"../internals/new-promise-capability":303,"../internals/promise-constructor-detection":324}],375:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/is-pure"),s=e("../internals/promise-native-constructor"),a=e("../internals/promise-constructor-detection").CONSTRUCTOR,l=e("../internals/promise-resolve"),c=i("Promise"),u=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(e){return l(u&&this===c?s:this,e)}})},{"../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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/to-absolute-index"),s=RangeError,a=String.fromCharCode,l=String.fromCodePoint,c=i([].join);n({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,i=0;n>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw new s(t+" is not a valid code point");r[i]=t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320)}return c(r,"")}})},{"../internals/export":259,"../internals/function-uncurry-this":268,"../internals/to-absolute-index":340}],377:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/function-uncurry-this"),o=e("../internals/not-a-regexp"),s=e("../internals/require-object-coercible"),a=e("../internals/to-string"),l=e("../internals/correct-is-regexp-logic"),c=i("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(a(s(this)),a(o(e)),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,t,r){"use strict";e("../internals/well-known-symbol-define")("asyncIterator")},{"../internals/well-known-symbol-define":355}],379:[function(e,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/global"),o=e("../internals/function-call"),s=e("../internals/function-uncurry-this"),a=e("../internals/is-pure"),l=e("../internals/descriptors"),c=e("../internals/symbol-constructor-detection"),u=e("../internals/fails"),d=e("../internals/has-own-property"),h=e("../internals/object-is-prototype-of"),f=e("../internals/an-object"),p=e("../internals/to-indexed-object"),m=e("../internals/to-property-key"),g=e("../internals/to-string"),b=e("../internals/create-property-descriptor"),y=e("../internals/object-create"),A=e("../internals/object-keys"),v=e("../internals/object-get-own-property-names"),w=e("../internals/object-get-own-property-names-external"),x=e("../internals/object-get-own-property-symbols"),k=e("../internals/object-get-own-property-descriptor"),C=e("../internals/object-define-property"),_=e("../internals/object-define-properties"),S=e("../internals/object-property-is-enumerable"),E=e("../internals/define-built-in"),T=e("../internals/define-built-in-accessor"),M=e("../internals/shared"),O=e("../internals/shared-key"),N=e("../internals/hidden-keys"),P=e("../internals/uid"),R=e("../internals/well-known-symbol"),D=e("../internals/well-known-symbol-wrapped"),I=e("../internals/well-known-symbol-define"),L=e("../internals/symbol-define-to-primitive"),B=e("../internals/set-to-string-tag"),j=e("../internals/internal-state"),F=e("../internals/array-iteration").forEach,z=O("hidden"),U=j.set,H=j.getterFor("Symbol"),V=Object.prototype,W=i.Symbol,K=W&&W.prototype,q=i.RangeError,G=i.TypeError,X=i.QObject,Y=k.f,$=C.f,Q=w.f,J=S.f,Z=s([].push),ee=M("symbols"),te=M("op-symbol
2s"),re=M("wks"),ne=!X||!X.prototype||!X.prototype.findChild,ie=function(e,t,r){var n=Y(V,t);n&&delete V[t],$(e,t,r),n&&e!==V&&$(V,t,n)},oe=l&&u(function(){return 7!==y($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a})?ie:$,se=function(e,t){var r=ee[e]=y(K);return U(r,{type:"Symbol",tag:e,description:t}),l||(r.description=t),r},ae=function(e,t,r){e===V&&ae(te,t,r),f(e);var n=m(t);return f(r),d(ee,n)?(r.enumerable?(d(e,z)&&e[z][n]&&(e[z][n]=!1),r=y(r,{enumerable:b(0,!1)})):(d(e,z)||$(e,z,b(1,{})),e[z][n]=!0),oe(e,n,r)):$(e,n,r)},le=function(e,t){f(e);var r=p(t),n=A(r).concat(he(r));return F(n,function(t){l&&!o(ce,r,t)||ae(e,t,r[t])}),e},ce=function(e){var t=m(e),r=o(J,this,t);return!(this===V&&d(ee,t)&&!d(te,t))&&(!(r||!d(this,t)||!d(ee,t)||d(this,z)&&this[z][t])||r)},ue=function(e,t){var r=p(e),n=m(t);if(r!==V||!d(ee,n)||d(te,n)){var i=Y(r,n);return!i||!d(ee,n)||d(r,z)&&r[z][n]||(i.enumerable=!0),i}},de=function(e){var t=Q(p(e)),r=[];return F(t,function(e){d(ee,e)||d(N,e)||Z(r,e)}),r},he=function(e){var t=e===V,r=Q(t?te:p(e)),n=[];return F(r,function(e){!d(ee,e)||t&&!d(V,e)||Z(n,ee[e])}),n};c||(E(K=(W=function(){if(h(K,this))throw new G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=P(e),r=function(e){this===V&&o(r,te,e),d(this,z)&&d(this[z],t)&&(this[z][t]=!1);var n=b(1,e);try{oe(this,t,n)}catch(e){if(!(e instanceof q))throw e;ie(this,t,n)}};return l&&ne&&oe(V,t,{configurable:!0,set:r}),se(t,e)}).prototype,"toString",function(){return H(this).tag}),E(W,"withoutSetter",function(e){return se(P(e),e)}),S.f=ce,C.f=ae,_.f=le,k.f=ue,v.f=w.f=de,x.f=he,D.f=function(e){return se(R(e),e)},l&&(T(K,"description",{configurable:!0,get:function(){return H(this).description}}),a||E(V,"propertyIsEnumerable",ce,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),F(A(re),function(e){I(e)}),n({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!l},{create:function(e,t){return void 0===t?y(e):le(y(e),t)},defineProperty:ae,defineProperties:le,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:de}),L(),B(W,"Symbol"),N[z]=!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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/get-built-in"),o=e("../internals/has-own-property"),s=e("../internals/to-string"),a=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(e){var t=s(e);if(o(c,t))return c[t];var r=i("Symbol")(t);return c[t]=r,u[r]=t,r}})},{"../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,t,r){"use strict";e("../modules/es.symbol.constructor"),e("../modules/es.symbol.for"),e("../modules/es.symbol.ke
2y-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,t,r){"use strict";var n=e("../internals/export"),i=e("../internals/has-own-property"),o=e("../internals/is-symbol"),s=e("../internals/try-to-string"),a=e("../internals/shared"),l=e("../internals/symbol-registry-detection"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(e){if(!o(e))throw new TypeError(s(e)+" is not a symbol");if(i(c,e))return c[e]}})},{"../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,t,r){"use strict";function n(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===n(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===n(e)},r.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("buffer").Buffer.isBuffer},{buffer:220}],384:[function(e,t,r){(function(r){(function(){"use strict";var n=e("elliptic"),i=e("bn.js");t.exports=function(e){return new s(e)};var o={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 s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(e,t,n){Array.isArray(e)||(e=e.toArray());var i=new r(e);if(n&&i.length<n){var o=new r(n-i.length);o.fill(0),i=r.concat([o,i])}return t?i.toString(t):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,t,n){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},s.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,t){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this)}).call(this,e("buffer").Buffer)},{"bn.js":385,buffer:220,elliptic:405}],385:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],386:[function(e,t,r){"use strict";var n=e("inherits"),i=e("md5.js"),o=e("ripemd160"),s=e("sha.js"),a=e("cipher-base");function l(e){a.call(this,"digest"),this._hash=e}n(l,a),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new l(s(e))}},{"cipher-base":221,inherits:440,"md5.js":450,ripemd160:493,"sha.js":498}],387:[function(e,t,r){"use strict";var n=e("md5.js");t.exports=function(e){return(new n).update(e).digest()}},{"md5.js":450}],388:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./legacy"),o=e("cipher-base"),s=e("safe-buffer").Buffer,a=e("create-hash/md5"),l=e("ripemd160"),c=e("sha.js"),u=s.alloc(128);function d(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>r?t=("rmd160"===e?new l:c(e)).update(t).digest():t.length<r&&(t=s.concat([t,u],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),a=0;a<r;a++)n[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new l:c(e),this._hash.update(n)}n(d,o),d.prototype._update=function(e){this._hash.update(e)},d.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new l:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new d("rmd160",t):"md5"===e?new i(a,t):new d(e,t)}},{"./legacy":389,"cipher-base":221,"create-hash/md5":387,inherits:440,ripemd160:493,"safe-buffer":494,"sha.js":498}],389:[function(e,t,r){"use strict";var n=e("inherits"),i=e("safe-buffer").Buffer,o=e("cipher-base"),s=i.alloc(128);function a(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,s],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),a=0;a<64;a++)r[a]=54^t[a],n[a]=92^t[a];this._hash=[r]}n(a,o),a.prototype._update=function(e){this._hash.push(e)},a.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},t.exports=a},{"cipher-base":221,inherits:440,"safe-buffer":494}],390:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return o};var s=e("pbkdf2");
vendor: 5,651 bytes, line 2
2r.pbkdf2=s.pbkdf2,r.pbkdf2Sync=s.pbkdf2Sync;var a=e("browserify-cipher");r.Cipher=a.Cipher,r.createCipher=a.createCipher,r.Cipheriv=a.Cipheriv,r.createCipheriv=a.createCipheriv,r.Decipher=a.Decipher,r.createDecipher=a.createDecipher,r.Decipheriv=a.Decipheriv,r.createDecipheriv=a.createDecipheriv,r.getCiphers=a.getCiphers,r.listCiphers=a.listCiphers;var l=e("diffie-hellman");r.DiffieHellmanGroup=l.DiffieHellmanGroup,r.createDiffieHellmanGroup=l.createDiffieHellmanGroup,r.getDiffieHellman=l.getDiffieHellman,r.createDiffieHellman=l.createDiffieHellman,r.DiffieHellman=l.DiffieHellman;var c=e("browserify-sign");r.createSign=c.createSign,r.Sign=c.Sign,r.createVerify=c.createVerify,r.Verify=c.Verify,r.createECDH=e("create-ecdh");var u=e("public-encrypt");r.publicEncrypt=u.publicEncrypt,r.privateEncrypt=u.privateEncrypt,r.publicDecrypt=u.publicDecrypt,r.privateDecrypt=u.privateDecrypt;var d=e("randomfill");r.randomFill=d.randomFill,r.randomFillSync=d.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.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,t,r){"use strict";!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs=n()}(void 0,function(){var e=6e4,t=36e5,r="millisecond",n="second",i="minute",o="hour",s="day",a="week",l="month",c="quarter",u="year",d="date",h="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|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,m={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(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},g=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},b={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,l),o=r-i<0,s=t.clone().add(n+(o?-1:1),l);return+(-(n+(r-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:a,d:s,D:d,h:o,m:i,s:n,ms:r,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",A={};A[y]=m;var v="$isDayjsObject",w=function(e){return e instanceof _||!(!e||!e[v])},x=function e(t,r,n){var i;if(!t)return y;if("string"==typeof t){var o=t.toLowerCase();A[o]&&(i=o),r&&(A[o]=r,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;A[a]=t,i=a}return!n&&i&&(y=i),i||!n&&y},k=function(e,t){if(w(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new _(r)},C=b;C.l=x,C.i=w,C.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var _=function(){function m(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[v]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return C},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var r=k(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return k(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<k(e)},g.$g=function(e,t,r){return C.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,c=!!C.u(t)||t,h=C.p(e),f=function(e,t){var n=C.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return c?n:n.endOf(s)},p=function(e,t){return C.w(r.toDate()[e].apply(r.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},m=this.$W,g=this.$M,b=this.$D,y="set"+(this.$u?"UTC":"");switch(h){case u:return c?f(1,0):f(31,11);case l:return c?f(1,g):f(0,g+1);case a:var A=this.$locale().weekStart||0,v=(m<A?m+7:m)-A;return f(c?b-v:b+(6-v),g);case s:case d:return p(y+"Hours",0);case o:return p(y+"Minutes",1);case i:return p(y+"Seconds",2);case n:return p(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var a,c=C.p(e),h="set"+(this.$u?"UTC":""),f=(a={}
vendor: 4,718 bytes, line 2
2,a[s]=h+"Date",a[d]=h+"Date",a[l]=h+"Month",a[u]=h+"FullYear",a[o]=h+"Hours",a[i]=h+"Minutes",a[n]=h+"Seconds",a[r]=h+"Milliseconds",a)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===u){var m=this.clone().set(d,1);m.$d[f](p),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[C.p(e)]()},g.add=function(r,c){var d,h=this;r=Number(r);var f=C.p(c),p=function(e){var t=k(h);return C.w(t.date(t.date()+Math.round(e*r)),h)};if(f===l)return this.set(l,this.$M+r);if(f===u)return this.set(u,this.$y+r);if(f===s)return p(1);if(f===a)return p(7);var m=(d={},d[i]=e,d[o]=t,d[n]=1e3,d)[f]||1,g=this.$d.getTime()+r*m;return C.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||h;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,s=this.$m,a=this.$M,l=r.weekdays,c=r.months,u=r.meridiem,d=function(e,r,i,o){return e&&(e[r]||e(t,n))||i[r].slice(0,o)},f=function(e){return C.s(o%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(p,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return a+1;case"MM":return C.s(a+1,2,"0");case"MMM":return d(r.monthsShort,a,c,3);case"MMMM":return d(c,a);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,l,2);case"ddd":return d(r.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(o,s,!0);case"A":return m(o,s,!1);case"m":return String(s);case"mm":return C.s(s,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,h){var f,p=this,m=C.p(d),g=k(r),b=(g.utcOffset()-this.utcOffset())*e,y=this-g,A=function(){return C.m(p,g)};switch(m){case u:f=A()/12;break;case l:f=A();break;case c:f=A()/3;break;case a:f=(y-b)/6048e5;break;case s:f=(y-b)/864e5;break;case o:f=y/t;break;case i:f=y/e;break;case n:f=y/1e3;break;default:f=y}return h?f:C.a(f)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return A[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=x(e,t,!0);return n&&(r.$L=n),r},g.clone=function(){return C.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=_.prototype;return k.prototype=S,[["$ms",r],["$s",n],["$m",i],["$H",o],["$W",s],["$M",l],["$y",u],["$D",d]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),k.extend=function(e,t){return e.$i||(e(t,_,k),e.$i=!0),k},k.locale=x,k.isDayjs=w,k.unix=function(e){return k(1e3*e)},k.en=A[y],k.Ls=A,k.p={},k})},{}],392:[function(e,t,r){"use strict";!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=n()}(void 0,function(){var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},a=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],c=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var r,n=o.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){r=i>12;break}}else r=e===(t?"pm":"PM");return r},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,a("seconds")],ss:[n,a("seconds")],m:[n,a("minutes")],mm:[n,a("minutes")],H:[n,a("hours")],h:[n,a("hours")],HH:[n,a("hours")],hh:[n,a("hours")],D:[n,a("day")],DD:[r,a("day")],Do:[i,function(e){var t=o.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}
vendor: 37,115 bytes, line 2
2],M:[n,a("month")],MM:[r,a("month")],MMM:[i,function(e){var t=c("months"),r=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[i,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,a("year")],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,a("year")],Z:l,ZZ:l};function h(r){var n,i;n=r,i=o&&o.formats;for(var s=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,r,n){var o=n&&n.toUpperCase();return r||i[n]||e[n]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,r){return t||r.slice(1)})})).match(t),a=s.length,l=0;l<a;l+=1){var c=s[l],u=d[c],h=u&&u[0],f=u&&u[1];s[l]=f?{regex:h,parser:f}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<a;r+=1){var i=s[r];if("string"==typeof i)n+=i.length;else{var o=i.regex,l=i.parser,c=e.slice(n),u=o.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,s=e.args;this.$u=n;var a=s[1];if("string"==typeof a){var l=!0===s[2],c=!0===s[3],u=l||c,d=s[2];c&&(d=s[2]),o=this.$locale(),!l&&d&&(o=r.Ls[d]),this.$d=function(e,t,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=h(t)(e),i=n.year,o=n.month,s=n.day,a=n.hours,l=n.minutes,c=n.seconds,u=n.milliseconds,d=n.zone,f=new Date,p=s||(i||o?1:f.getDate()),m=i||f.getFullYear(),g=0;i&&!o||(g=o>0?o-1:f.getMonth());var b=a||0,y=l||0,A=c||0,v=u||0;return d?new Date(Date.UTC(m,g,p,b,y,A,v+60*d.offset*1e3)):r?new Date(Date.UTC(m,g,p,b,y,A,v)):new Date(m,g,p,b,y,A,v)}catch(e){return new Date("")}}(t,a,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date("")),o={}}else if(a instanceof Array)for(var f=a.length,p=1;p<=f;p+=1){s[1]=a[p-1];var m=r.apply(this,s);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===f&&(this.$d=new Date(""))}else i.call(this,e)}}})},{}],393:[function(e,t,r){"use strict";!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():(e="undefined"!=typeof globalThis?globalThis:e||self).dayjs_plugin_utc=n()}(void 0,function(){var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,o){var s=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var r=o(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else l.call(this)};var c=s.utcOffset;s.utcOffset=function(n,i){var o=this.$utils().u;if(o(n))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof n&&null===(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(n)))return this;var s=Math.abs(n)<=16?60*n:n,a=this;if(i)return a.$offset=s,a.$u=0===n,a;if(0!==n){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var d=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var h=s.diff;s.diff=function(e,t,r){if(e&&this.$u===e.$u)return h.call(this,e,t,r);var n=this.local(),i=o(e).local();return h.call(n,i,t,r)}}})},{}],394:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":395,"./des/cipher":396,"./des/des":397,"./des/ede":398,"./des/utils":399}],395:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),o={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var s=r[n];t.prototype[s]=o[s]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=e[t+a];for(o._update.call(this,s,0,r,n),a=0;a<this.blockSize;a++)s[a]=r[n+a]}else{for(o._update.call(this,e,t,r,n),a=0;a<this.blockSize;a++)r[n+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=e[t+a]}}},{inherits:440,"minimalistic-assert":453}],396:[function(e,t,r){"use strict";var n=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=!1!==e.padding}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":453}],397:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),o=e("./utils"),s=e("./cipher");function a(){this.tmp=new Array(2),this.keys=null}function l(e){s.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}i(l,s),t.exports=l,l.create=function(e){return new l(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var a=c[s>>>1];r=o.r28shl(r,a),i=o.r28shl(i,a),o.pc2(r,i,e.keys,s)}},l.prototype._update=function(e,t,r,n){var i=this._desState,s=o.readUInt32BE(e,t),a=o.readUInt32BE(e,t+4);o.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],o.writeUInt32BE(r,s,n),o.writeUInt32BE(r,a,n+4)},l.prototype._pad=function(e,t){if(!1===this.padding)return!1;for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},l.prototype._unpad=function(e){if(!1===this.padding)return e;for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},l.prototype._encrypt=function(e,t,r,n,i){for(var s=t,a=r,l=0;l<e.keys.length;l+=2){var c=e.keys[l],u=e.keys[l+1];o.expand(a,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),h=a;a=(s^o.permute(d))>>>0,s=h}o.rip(a,s,n,i)},l.prototype._decrypt=function(e,t,r,n,i){for(var s=r,a=t,l=e.keys.length-2;l>=0;l-=2){var c=e.keys[l],u=e.keys[l+1];o.expand(s,e.tmp,0),c^=e.tmp[0],u^=e.tmp[1];var d=o.substitute(c,u),h=s;s=(a^o.permute(d))>>>0,a=h}o.rip(s,a,n,i)}},{"./cipher":396,"./utils":399,inherits:440,"minimalistic-assert":453}],398:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits"),o=e("./cipher"),s=e("./des");function a(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function l(e){o.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}i(l,o),t.exports=l,l.create=function(e){return new l(e)},l.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},l.prototype._pad=s.prototype._pad,l.prototype._unpad=s.prototype._unpad},{"./cipher":396,"./des":397,inherits:440,"minimalistic-assert":453}],399:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(e,t,r,n){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(e,t,r,n){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[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];r.pc2=function(e,t,r,i){for(var o=0,s=0,a=n.length>>>1,l=0;l<a;l++)o<<=1,o|=e>>>n[l]&1;for(l=a;l<n.length;l++)s<<=1,s|=t>>>n[l]&1;r[i+0]=o>>>0,r[i+1]=s>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[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];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++)r<<=4,r|=i[64*n+(e>>>18-6*n&63)];for(n=0;n<4;n++)r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)];return r>>>0};var o=[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];r.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},{}],400:[function(e,t,r){(function(t){(function(){"use strict";var n=e("./lib/generatePrime"),i=e("./lib/primes.json"),o=e("./lib/dh"),s={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},r.createDiffieHellman=r.DiffieHellman=function e(r,i,a,l){return t.isBuffer(i)||void 0===s[i]?e(r,"binary",i,a):(i=i||"binary",l=l||"binary",a=a||new t([2]),t.isBuffer(a)||(a=new t(a,l)),"number"==typeof r?new o(n(r,a),a,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,a,!0)))}}).call(this)}).call(this,e("buffer").Buffer)},{"./lib/dh":401,"./lib/generatePrime":402,"./lib/primes.json":403,buffer:220}],401:[function(e,t,r){(function(r){(function(){"use strict";var n=e("bn.js"),i=new(e("miller-rabin")),o=new n(24),s=new n(11),a=new n(10),l=new n(3),c=new n(7),u=e("./generatePrime"),d=e("randombytes");function h(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new n(e),this}function f(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new n(e),this}t.exports=m;var p={};function m(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=f):this._primeCode=8}function g(e,t){var n=new r(e.toArray());return t?n.toString(t):n}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var d,h=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return h+=1,h+="02"===r||"05"===r?8:4,p[n]=h,h;switch(i.test(e.shrn(1))||(h+=2),r){case"02":e.mod(o).cmp(s)&&(h+=8);break;case"05":(d=e.mod(a)).cmp(l)&&d.cmp(c)&&(h+=8);break;default:h+=4}return p[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new n(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var t=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new r(t.toArray()),o=this.getPrime();if(i.length<o.length){var s=new r(o.length-i.length);s.fill(0),i=r.concat([s,i])}return i},m.prototype.getPublicKey=function(e){return g(this._pub,e)},m.prototype.getPrivateKey=function(e){return g(this._priv,e)},m.prototype.getPrime=function(e){return g(this.__prime,e)},m.prototype.getGenerator=function(e){return g(this._gen,e)},m.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new n(e),this}}).call(this)}).call(this,e("buffer").Buffer)},{"./generatePrime":402,"bn.js":404,buffer:220,"miller-rabin":451,randombytes:475}],402:[function(e,t,r){"use strict";var n=e("randombytes");t.exports=y,y.simpleSieve=g,y.fermatTest=b;var i=e("bn.js"),o=new i(24),s=new(e("miller-rabin")),a=new i(1),l=new i(2),c=new i(5),u=(new i(16),new i(8),new i(10)),d=new i(3),h=(new i(7),new i(11)),f=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return p=e,e}function g(e){for(var t=m(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function b(e){var t=i.mont(e);return 0===l.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function y(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,p;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(a),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(u).cmp(d);)r.iadd(f)}else for(;r.mod(o).cmp(h);)r.iadd(f);if(g(p=r.shrn(1))&&g(r)&&b(p)&&b(r)&&s.test(p)&&s.test(r))return r}}},{"bn.js":404,"miller-rabin":451,randombytes:475}],403:[function(e,t,r){t.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,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],405:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.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,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),o=i.getNAF,s=i.getJSF,a=i.assert;function l(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;var s,l,c=[];for(s=0;s<n.length;s+=r.step){l=0;for(var u=s+r.step-1;u>=s;u--)l=(l<<1)+n[u];c.push(l)}for(var d=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(s=0;s<c.length;s++)(l=c[s])===f?h=h.mixedAdd(r.points[s]):l===-f&&(h=h.mixedAdd(r.points[s].neg()));d=d.add(h)}return d.toP()},l.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=o(t,r,this._bitLength),l=this.jpoint(null,null,null),c=s.length-1;c>=0;c--){for(var u=0;c>=0&&0===s[c];c--)u++;if(c>=0&&u++,l=l.dblp(u),c<0)break;var d=s[c];a(0!==d),l="affine"===e.type?d>0?l.mixedAdd(i[d-1>>1]):l.mixedAdd(i[-d-1>>1].neg()):d>0?l.add(i[d-1>>1]):l.add(i[-d-1>>1].neg())}return"affine"===e.type?l.toP():l},l.prototype._wnafMulAdd=function(e,t,r,n,i){var a,l,c,u=this._wnafT1,d=this._wnafT2,h=this._wnafT3,f=0;for(a=0;a<n;a++){var p=(c=t[a])._getNAFPoints(e);u[a]=p.wnd,d[a]=p.points}for(a=n-1;a>=1;a-=2){var m=a-1,g=a;if(1===u[m]&&1===u[g]){var b=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(b[1]=t[m].add(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].add(t[g].neg())):(b[1]=t[m].toJ().mixedAdd(t[g]),b[2]=t[m].toJ().mixedAdd(t[g].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],A=s(r[m],r[g]);for(f=Math.max(A[0].length,f),h[m]=new Array(f),h[g]=new Array(f),l=0;l<f;l++){var v=0|A[0][l],w=0|A[1][l];h[m][l]=y[3*(v+1)+(w+1)],h[g][l]=0,d[m]=b}}else h[m]=o(r[m],u[m],this._bitLength),h[g]=o(r[g],u[g],this._bitLength),f=Math.max(h[m].length,f),f=Math.max(h[g].length,f)}var x=this.jpoint(null,null,null),k=this._wnafT4;for(a=f;a>=0;a--){for(var C=0;a>=0;){var _=!0;for(l=0;l<n;l++)k[l]=0|h[l][a],0!==k[l]&&(_=!1);if(!_)break;C++,a--}if(a>=0&&C++,x=x.dblp(C),a<0)break;for(l=0;l<n;l++){var S=k[l];0!==S&&(S>0?c=d[l][S-1>>1]:S<0&&(c=d[l][-S-1>>1].neg()),x="affine"===c.type?x.mixedAdd(c):x.add(c))}}for(a=0;a<n;a++)d[a]=null;return i?x:x.toP()},l.BasePoint=c,c.prototype.eq=function(){throw new Error("Not implemented")},c.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},c.prototype.encodeCompressed=function(e){return this.encode(e,!0)},c.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},c.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},c.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},c.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},c.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},c.prototype._getBeta=function(){return null},c.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../utils":419,"bn.js":420}],407:[function(e,t,r){"use strict";var n=e("../utils"),i=e("bn.js"),o=e("inherits"),s=e("./base"),a=n.assert;function l(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function c(e,t,r,n,o){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(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 i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,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()))))}o(l,s),t.exports=l,l.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},l.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},l.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var l=a.fromRed().isOdd();return(t&&!l||!t&&l)&&(a=a.redNeg()),this.point(e,a)},l.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},l.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(c,s.BasePoint),l.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},l.prototype.point=function(e,t,r,n){return new c(this,e,t,r,n)},c.fromJSON=function(e,t){return new c(e,t[0],t[1],t[2])},c.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)+">"},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),l=i.redMul(s),c=o.redMul(a),u=i.redMul(a),d=s.redMul(o);return this.curve.point(l,c,d,u)},c.prototype._projDbl=function(){var e,t,r,n,i,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),l=this.y.redSqr();if(this.curve.twisted){var c=(n=this.curve._mulA(a)).redAdd(l);this.zOne?(e=s.redSub(a).redSub(l).redMul(c.redSub(this.curve.two)),t=c.redMul(n.redSub(l)),r=c.redSqr().redSub(c).redSub(c)):(i=this.z.redSqr(),o=c.redSub(i).redISub(i),e=s.redSub(a).redISub(l).redMul(o),t=c.redMul(n.redSub(l)),r=c.redMul(o))}else n=a.redAdd(l),i=this.curve._mulC(this.z).redSqr(),o=n.redSub(i).redSub(i),e=this.curve._mulC(s.redISub(n)).redMul(o),t=this.curve._mulC(n).redMul(a.redISub(l)),r=n.redMul(o);return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),l=r.redAdd(t),c=o.redMul(s),u=a.redMul(l),d=o.redMul(l),h=s.redMul(a);return this.curve.point(c,u,h,d)},c.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),l=i.redSub(a),c=i.redAdd(a),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),d=n.redMul(l).redMul(u);return this.curve.twisted?(t=n.redMul(c).redMul(s.redSub(this.curve._mulA(o))),r=l.redMul(c)):(t=n.redMul(c).redMul(s.redSub(o)),r=this.curve._mulC(l).redMul(c)),this.curve.point(d,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],408:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":406,"./edwards":407,"./mont":409,"./short":410}],409:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("inherits"),o=e("./base"),s=e("../utils");function a(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),t.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(l,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new l(this,e,t)},a.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
2":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=i.redMul(n),a=t.z.redMul(o.redAdd(s).redSqr()),l=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,l)},l.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],410:[function(e,t,r){"use strict";var n=e("../utils"),i=e("bn.js"),o=e("inherits"),s=e("./base"),a=n.assert;function l(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(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 u(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,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}o(l,s),t.exports=l,l.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r)}}},l.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},l.prototype._getEndoBasis=function(e){for(var t,r,n,o,s,a,l,c,u,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,f=this.n.clone(),p=new i(1),m=new i(0),g=new i(0),b=new i(1),y=0;0!==h.cmpn(0);){var A=f.div(h);c=f.sub(A.mul(h)),u=g.sub(A.mul(p));var v=b.sub(A.mul(m));if(!n&&c.cmp(d)<0)t=l.neg(),r=p,n=c.neg(),o=u;else if(n&&2==++y)break;l=c,f=h,h=c,g=p,p=u,b=m,m=v}s=c.neg(),a=u;var w=n.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(w)>=0&&(s=t,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},l.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),l=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:l.add(c).neg()}},l.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},l.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},l.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],l=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),l=l.neg(!0)),n[2*o]=a,n[2*o+1]=l,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),u=0;u<2*o;u++)n[u]=null,i[u]=null;return c},o(c,s.BasePoint),l.prototype.point=function(e,t,r){return new c(this,e,t,r)},l.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 24,880 bytes, line 2
2omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.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]},c.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.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)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,s.BasePoint),l.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),l=o.redSub(s);if(0===a.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),d=n.redMul(c),h=l.redSqr().redIAdd(u).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,f,p)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),u=r.redMul(l),d=a.redSqr().redIAdd(c).redISub(u).redISub(u),h=a.redMul(u.redISub(d)).redISub(i.redMul(c)),f=this.z.redMul(s);return this.curve.jpoint(d,h,f)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,l=a.redSqr().redSqr(),c=s.redAdd(s);for(t=0;t<e;t++){var u=o.redSqr(),d=c.redSqr(),h=d.redSqr(),f=u.redAdd(u).redIAdd(u).redIAdd(n.redMul(l)),p=o.redMul(d),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),b=f.redMul(g);b=b.redIAdd(b).redISub(h);var y=c.redMul(a);t+1<e&&(l=l.redMul(h)),o=m,a=y,c=b}return this.curve.jpoint(o,c.redMul(i),a)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),l=a.redSqr().redISub(s).redISub(s),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=l,t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(u).redISub(h);f=f.redIAdd(f);var p=u.redAdd(u).redIAdd(u),m=p.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(f).redISub(f),t=p.redMul(f.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),l=a.redSqr().redISub(s).redISub(s);e=l;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=a.redMul(s.redISub(l)).redISub(c),r=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(u).redMul(this.x.redAdd(u));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=f.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(d).redISub(u);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=f.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),l=t.redAdd(t),c=(l=l.redIAdd(l)).redMul(s),u=a.redSqr().redISub(c.redAdd(c)),d=c.redISub(u),h=s.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=a.redMul(d).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(u,f,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),l=n.redIAdd(n);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var c=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(l),u=t.redMul(c);u=(u=u.redIAdd(u)).redIAdd(u);var d=this.x.redMul(a).redISub(u);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(c.redMul(l.redISub(c)).redISub(s.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(d,h,f)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},u.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)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../utils":419,"./base":406,"bn.js":420,inherits:440}],411:[function(e,t,r){"use strict";var n,i=r,o=e("hash.js"),s=e("./curve"),a=e("./utils").assert;function l(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new l(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=l,c("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:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("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:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("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:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("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:o.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"]}),c("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:o.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"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("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:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("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:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"./curve":408,"./precomputed/secp256k1":418,"./utils":419,"hash.js":426}],412:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("hmac-drbg"),o=e("../utils"),s=e("../curves"),a=e("brorand"),l=o.assert,c=e("./key"),u=e("./signature");function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(l(Object.prototype.hasOwnProperty.call(s,e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}t.exports=d,d.prototype.keyPair=function(e){return new c(this,e)},d.prototype.keyFromPrivate=function(e,t){return c.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return c.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},d.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),a=t.getPrivate().toArray("be",s),l=e.toArray("be",s),c=new i({hash:this.hash,entropy:a,nonce:l,pers:o.pers,persEnc:o.persEnc||"utf8"}),d=this.n.sub(new n(1)),h=0;;h++){var f=o.k?o.k(h):new n(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var b=f.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(b=b.umod(this.n)).cmpn(0)){var y=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return o.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),y^=1),new u({r:g,s:b,recoveryParam:y})}}}}}},d.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new u(t,"hex")).r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,l=s.invm(this.n),c=l.mul(e).umod(this.n),d=l.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(c,r.getPublic(),d)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(c,r.getPublic(),d)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},d.prototype.recoverPubKey=function(e,t,r,i){l((3&r)===r,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,s=new n(e),a=t.r,c=t.s,d=1&r,h=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");a=h?this.curve.pointFromX(a.add(this.curve.n),d):this.curve.pointFromX(a,d);var f=t.r.invm(o),p=o.sub(s).mul(f).umod(o),m=c.mul(f).umod(o);return this.g.mulAdd(p,a,m)},d.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new u(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}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,t,r){"use strict";var n=e("bn.js"),i=e("../utils").assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}t.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.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"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.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,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),o=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=t.place;o<n;o++,s++)i<<=8,i|=e[s],i>>>=0;return!(i<=127)&&(t.place=s,i)}function c(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}t.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new a;if(48!==e[r.place++])return!1;var o=l(e,r);if(!1===o)return!1;if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var s=l(e,r);if(!1===s)return!1;var c=e.slice(r.place,s+r.place);if(r.place+=s,2!==e[r.place++])return!1;var u=l(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var d=e.slice(r.place,u+r.place);if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new n(c),this.s=new n(d),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];u(n,t.length),(n=n.concat(t)).push(2),u(n,r.length);var o=n.concat(r),s=[48];return u(s,o.length),s=s.concat(o),i.encode(s,e)}},{"../utils":419,"bn.js":420}],415:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../curves"),o=e("../utils"),s=o.assert,a=o.parseBytes,l=e("./key"),c=e("./signature");function u(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}t.exports=u,u.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),l=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:l,Rencoded:o})},u.prototype.verify=function(e,t,r){e=a(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return l.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return l.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../curves":411,"../utils":419,"./key":416,"./signature":417,"hash.js":426}],416:[function(e,t,r){"use strict";var n=e("../utils"),i=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),s(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),s(a,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),s(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),s(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),s(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=a},{"../utils":419}],417:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../utils"),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function l(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(l,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),s(l,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),s(l,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),s(l,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},{"../utils":419,"bn.js":420}],418
vendor: 26,173 bytes, line 2
2:[function(e,t,r){"use strict";t.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"]]}}},{}],
vendor: 3,601 bytes, line 2
2419:[function(e,t,r){"use strict";var n=r,i=e("bn.js"),o=e("minimalistic-assert"),s=e("minimalistic-crypto-utils");n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<<t+1,o=e.clone(),s=0;s<n.length;s++){var a,l=o.andln(i-1);o.isOdd()?(a=l>(i>>1)-1?(i>>1)-l:l,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var s,a,l=e.andln(3)+i&3,c=t.andln(3)+o&3;3===l&&(l=-1),3===c&&(c=-1),s=0==(1&l)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==c?l:-l,r[0].push(s),a=0==(1&c)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==l?c:-c,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":420,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],420:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],421:[function(e,t,r){t.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:"[email protected]:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <[email protected]>",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,t,r){"use strict";var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var a,l=10;try{var c={};Object.defineProperty&&Object.defineProperty(c,"x",{value:0}),a=0===c.x}catch(e){a=!1}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function d(e,t,r){if(t)e.call(r);else for(var n=e.length,i=w(e,n),o=0;o<n;++o)i[o].call(r)}function h(e,t,r,n){if(t)e.call(r,n);else for(var i=e.length,o=w(e,i),s=0;s<i;++s)o[s].call(r,n)}function f(e,t,r,n,i){if(t)e.call(r,n,i);else for(var o=e.length,s=w(e,o),a=0;a<o;++a)s[a].call(r,n,i)}function p(e,t,r,n,i,o){if(t)e.call(r,n,i,o);else for(var s=e.length,a=w(e,s),l=0;l<s;++l)a[l].call(r,n,i,o)}function m(e,t,r,n){if(t)e.apply(r,n);else for(var i=e.length,o=w(e,i),s=0;s<i;++s)o[s].apply(r,n)}
vendor: 4,975 bytes, line 2
2function g(e,t,r,i){var o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]):(s=e._events=n(null),e._eventsCount=0),a){if("function"==typeof a?a=s[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),!a.warned&&(o=u(e))&&o>0&&a.length>o){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else a=s[t]=r,++e._eventsCount;return e}function b(){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 e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function y(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=o.call(b,n);return i.listener=r,n.wrapFn=i,i}function A(e,t,r){var n=e._events;if(!n)return[];var i=n[t];return i?"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):w(i,i.length):[]}function v(e){var t=this._events;if(t){var r=t[e];if("function"==typeof r)return 1;if(r)return r.length}return 0}function w(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}a?Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||e!=e)throw new TypeError('"defaultMaxListeners" must be a positive number');l=e}}):s.defaultMaxListeners=l,s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){var t,r,n,i,o,s,a="error"===e;if(s=this._events)a=a&&null==s.error;else if(!a)return!1;if(a){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(r=s[e]))return!1;var c="function"==typeof r;switch(n=arguments.length){case 1:d(r,c,this);break;case 2:h(r,c,this,arguments[1]);break;case 3:f(r,c,this,arguments[1],arguments[2]);break;case 4:p(r,c,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(n-1),o=1;o<n;o++)i[o-1]=arguments[o];m(r,c,this,i)}return!0},s.prototype.addListener=function(e,t){return g(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return g(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,y(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,y(this,e,t)),this},s.prototype.removeListener=function(e,t){var r,i,o,s,a;if("function"!=typeof t)throw new TypeError('"listener" argument must be a function');if(!(i=this._events))return this;if(!(r=i[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=n(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,s=r.length-1;s>=0;s--)if(r[s]===t||r[s].listener===t){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n<i;r+=1,n+=1)e[r]=e[n];e.pop()}(r,o),1===r.length&&(i[e]=r[0]),i.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.removeAllListeners=function(e){var t,r,o;if(!(r=this._events))return this;if(!r.removeListener)return 0===arguments.length?(this._events=n(null),this._eventsCount=0):r[e]&&(0==--this._eventsCount?this._events=n(null):delete r[e]),this;if(0===arguments.length){var s,a=i(r);for(o=0;o<a.length;++o)"removeListener"!==(s=a[o])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=n(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},s.prototype.listeners=function(e){return A(this,e,!0)},s.prototype.rawListeners=function(e){return A(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],423:[function(e,t,r){"use strict";
vendor: 28,972 bytes, line 2
2var n=e("safe-buffer").Buffer,i=e("md5.js");t.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,a=n.alloc(s),l=n.alloc(o||0),c=n.alloc(0);s>0||o>0;){var u=new i;u.update(c),u.update(e),t&&u.update(t),c=u.digest();var d=0;if(s>0){var h=a.length-s;d=Math.min(s,c.length),c.copy(a,h,0,d),s-=d}if(d<c.length&&o>0){var f=l.length-o,p=Math.min(o,c.length-d);c.copy(l,f,d,d+p),o-=p}}return c.fill(0),{key:a,iv:l}}},{"md5.js":450,"safe-buffer":494}],424:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CsvParserStream=r.ParserOptions=r.parseFile=r.parseStream=r.parseString=r.parse=r.FormatterOptions=r.CsvFormatterStream=r.writeToPath=r.writeToString=r.writeToBuffer=r.writeToStream=r.write=r.format=void 0;var n=e("@fast-csv/format");Object.defineProperty(r,"format",{enumerable:!0,get:function(){return n.format}}),Object.defineProperty(r,"write",{enumerable:!0,get:function(){return n.write}}),Object.defineProperty(r,"writeToStream",{enumerable:!0,get:function(){return n.writeToStream}}),Object.defineProperty(r,"writeToBuffer",{enumerable:!0,get:function(){return n.writeToBuffer}}),Object.defineProperty(r,"writeToString",{enumerable:!0,get:function(){return n.writeToString}}),Object.defineProperty(r,"writeToPath",{enumerable:!0,get:function(){return n.writeToPath}}),Object.defineProperty(r,"CsvFormatterStream",{enumerable:!0,get:function(){return n.CsvFormatterStream}}),Object.defineProperty(r,"FormatterOptions",{enumerable:!0,get:function(){return n.FormatterOptions}});var i=e("@fast-csv/parse");Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return i.parse}}),Object.defineProperty(r,"parseString",{enumerable:!0,get:function(){return i.parseString}}),Object.defineProperty(r,"parseStream",{enumerable:!0,get:function(){return i.parseStream}}),Object.defineProperty(r,"parseFile",{enumerable:!0,get:function(){return i.parseFile}}),Object.defineProperty(r,"ParserOptions",{enumerable:!0,get:function(){return i.ParserOptions}}),Object.defineProperty(r,"CsvParserStream",{enumerable:!0,get:function(){return i.CsvParserStream}})},{"@fast-csv/format":151,"@fast-csv/parse":155}],425:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("readable-stream").Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,a=8*e.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},{inherits:440,"readable-stream":491,"safe-buffer":494}],426:[function(e,t,r){"use strict";var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":427,"./hash/hmac":428,"./hash/ripemd":429,"./hash/sha":430,"./hash/utils":437}],427:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function o(){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}r.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},{"./utils":437,"minimalistic-assert":453}],428:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}t.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":437,"minimalistic-assert":453}],429:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./common"),o=n.rotl32,s=n.sum32,a=n.sum32_3,l=n.sum32_4,c=i.BlockHash;function u(){if(!(this instanceof u))return new u;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function f(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(u,c),r.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],c=this.h[3],u=this.h[4],y=r,A=n,v=i,w=c,x=u,k=0;k<80;k++){var C=s(o(l(r,d(k,n,i,c),e[p[k]+t],h(k)),g[k]),u);r=u,u=c,c=o(i,10),i=n,n=C,C=s(o(l(y,d(79-k,A,v,w),e[m[k]+t],f(k)),b[k]),x),y=x,x=w,w=o(v,10),v=A,A=C}C=a(this.h[1],i,w),this.h[1]=a(this.h[2],c,x),this.h[2]=a(this.h[3],u,y),this.h[3]=a(this.h[4],r,A),this.h[4]=a(this.h[0],n,v),this.h[0]=C},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.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],m=[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],g=[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],b=[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,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":431,"./sha/224":432,"./sha/256":433,"./sha/384":434,"./sha/512":435}],431:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),s=n.rotl32,a=n.sum32,l=n.sum32_5,c=o.ft_1,u=i.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,u),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],h=this.h[3],f=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),m=l(s(i,5),c(p,o,u,h),f,r[n],d[p]);f=h,h=u,u=s(o,30),o=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],u),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],f)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436}],432:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":437,"./256":433}],433:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),s=e("minimalistic-assert"),a=n.sum32,l=n.sum32_4,c=n.sum32_5,u=o.ch32,d=o.maj32,h=o.s0_256,f=o.s1_256,p=o.g0_256,m=o.g1_256,g=i.BlockHash,b=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(y,g),t.exports=y,y.blockSize=512,y.outSize=256,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=l(m(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],g=this.h[2],b=this.h[3],y=this.h[4],A=this.h[5],v=this.h[6],w=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var x=c(w,f(y),u(y,A,v),this.k[n],r[n]),k=a(h(i),d(i,o,g));w=v,v=A,A=y,y=a(b,x),b=g,g=o,o=i,i=a(x,k)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],b),this.h[4]=a(this.h[4],y),this.h[5]=a(this.h[5],A),this.h[6]=a(this.h[6],v),this.h[7]=a(this.h[7],w)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"./common":436,"minimalistic-assert":453}],434:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":437,"./512":435}],435:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("minimalistic-assert"),s=n.rotr64_hi,a=n.rotr64_lo,l=n.shr64_hi,c=n.shr64_lo,u=n.sum64,d=n.sum64_hi,h=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=i.BlockHash,y=[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 A(){if(!(this instanceof A))return new A;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=y,this.W=new Array(160)}function v(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function x(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function k(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function C(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function _(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function E(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function T(e,t){var r=s(e,t,1)^s(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,1)^a(e,t,8)^c(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=s(e,t,19)^s(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}function N(e,t){var r=a(e,t,19)^a(t,e,29)^c(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(A,b),t.exports=A,A.blockSize=1024,A.outSize=512,A.hmacStrength=192,A.padLength=128,A.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=O(r[n-4],r[n-3]),o=N(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],l=T(r[n-30],r[n-29]),c=M(r[n-30],r[n-29]),u=r[n-32],d=r[n-31];r[n]=f(i,o,s,a,l,c,u,d),r[n+1]=p(i,o,s,a,l,c,u,d)}},A.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],l=this.h[4],c=this.h[5],f=this.h[6],p=this.h[7],b=this.h[8],y=this.h[9],A=this.h[10],T=this.h[11],M=this.h[12],O=this.h[13],N=this.h[14],P=this.h[15];o(this.k.length===r.length);for(var R=0;R<r.length;R+=2){var D=N,I=P,L=S(b,y),B=E(b,y),j=v(b,y,A,T,M),F=w(b,y,A,T,M,O),z=this.k[R],U=this.k[R+1],H=r[R],V=r[R+1],W=m(D,I,L,B,j,F,z,U,H,V),K=g(D,I,L,B,j,F,z,U,H,V);D=C(n,i),I=_(n,i),L=x(n,i,s,a,l),B=k(n,i,s,a,l,c);var q=d(D,I,L,B),G=h(D,I,L,B);N=M,P=O,M=A,O=T,A=b,T=y,b=d(f,p,W,K),y=h(p,p,W,K),f=l,p=c,l=s,c=a,s=n,a=i,n=d(W,K,q,G),i=h(W,K,q,G)}u(this.h,0,n,i),u(this.h,2,s,a),u(this.h,4,l,c),u(this.h,6,f,p),u(this.h,8,b,y),u(this.h,10,A,T),u(this.h,12,M,O),u(this.h,14,N,P)},A.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":427,"../utils":437,"minimalistic-assert":453}],436:[function(e,t,r){"use strict";var n=e("../utils").rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?s(t,r,n):2===e?o(t,r,n):void 0},r.ch32=i,r.maj32=o,r.p32=s,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":437}],437:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),i=e("inherits");function o(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function l(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=i,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},r.htonl=s,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=s(i)),r+=l(i.toString(16))}return r},r.zero2=a,r.zero8=l,r.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var s=new Array(o/4),a=0,l=t;a<s.length;a++,l+=4){var c;c="big"===i?e[l]<<24|e[l+1]<<16|e[l+2]<<8|e[l+3]:e[l+3]<<24|e[l+2]<<16|e[l+1]<<8|e[l],s[a]=c>>>0}return s},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o<n?1:0)+r+i;e[t]=s>>>0,e[t+1]=o},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,o,s,a){var l=0,c=t;return l+=(c=c+n>>>0)<t?1:0,l+=(c=c+o>>>0)<o?1:0,e+r+i+s+(l+=(c=c+a>>>0)<a?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},r.sum64_5_hi=function(e,t,r,n,i,o,s,a,l,c){var u=0,d=t;return u+=(d=d+n>>>0)<t?1:0,u+=(d=d+o>>>0)<o?1:0,u+=(d=d+a>>>0)<a?1:0,e+r+i+s+l+(u+=(d=d+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,i,o,s,a,l,c){return t+n+o+a+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:440,"minimalistic-assert":453}],438:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("minimalistic-crypto-utils"),o=e("minimalistic-assert");function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}t.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(r),this._reseed++,i.encode(s,t)}},{"hash.js":426,"minimalistic-assert":453,"minimalistic-crypto-utils":454}],439:[function(e,t,r){"use strict";r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,c=l>>1,u=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-u)-1,f>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=n;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=c}return(f?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,l,c=8*o-i-1,u=(1<<c)-1,d=u>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[r+f]=255&s,f+=p,s/=256,c-=8);e[r+f-p]|=128*m}},{}],440:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},{}],441:[function(e,t,r){(function(n,i,o,s,a,l,c,u){(function(){"use strict";!function(e){"object"==typeof r&&void 0!==t?t.exports=e():("undefined"!=typeof window?window:void 0!==i?i:"undefined"!=typeof self?self:this).JSZip=e()}(function(){return function t(r,n,i){function o(a,l){if(!n[a]){if(!r[a]){var c="function"==typeof e&&e;if(!l&&c)return c(a,!0);if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[a]={exports:{}};r[a][0].call(d.exports,function(e){return o(r[a][1][e]||e)},d,d.exports,t,r,n,i)}return n[a].exports}for(var s="function"==typeof e&&e,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,s,a,l,c,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),s=t>>2,a=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|i>>6:64,c=2<f?63&i:64,u.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,s,a,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(s=o.indexOf(e.charAt(c++)))>>4,r=(15&s)<<4|(a=o.indexOf(e.charAt(c++)))>>2,n=(3&a)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==a&&(h[u++]=r),64!==l&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r){var n=i,o=0+r;e^=-1;for(var s=0;s<o;s++)e=e>>>8^n[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,r){var n=i,o=0+r;e^=-1;for(var s=0;s<o;s++)e=e>>>8^n[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,s,u){var d,h,f=e.file,p=e.compression,m=u!==a.utf8encode,g=o.transformTo("string",u
vendor: 6,132 bytes, line 2
2(f.name)),b=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,A=o.transformTo("string",u(y)),v=o.transformTo("string",a.utf8encode(y)),w=b.length!==f.name.length,x=v.length!==y.length,k="",C="",_="",S=f.dir,E=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var M=0;t&&(M|=8),m||!w&&!x||(M|=2048);var O=0,N=0;S&&(O|=16),"UNIX"===s?(N=798,O|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,S)):(N=20,O|=function(e){return 63&(e||0)}(f.dosPermissions)),d=E.getUTCHours(),d<<=6,d|=E.getUTCMinutes(),d<<=5,d|=E.getUTCSeconds()/2,h=E.getUTCFullYear()-1980,h<<=4,h|=E.getUTCMonth()+1,h<<=5,h|=E.getUTCDate(),w&&(C=n(1,1)+n(l(g),4)+b,k+="up"+n(C.length,2)+C),x&&(_=n(1,1)+n(l(A),4)+v,k+="uc"+n(_.length,2)+_);var P="";return P+="\n\0",P+=n(M,2),P+=p.magic,P+=n(d,2),P+=n(h,2),P+=n(T.crc32,4),P+=n(T.compressedSize,4),P+=n(T.uncompressedSize,4),P+=n(g.length,2),P+=n(k.length,2),{fileRecord:c.LOCAL_FILE_HEADER+P+g+k,dirRecord:c.CENTRAL_FILE_HEADER+n(N,2)+P+n(A.length,2)+"\0\0\0\0"+n(O,4)+n(i,4)+g+k+A}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,s),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=function(e,t,r,i,s){var a=o.transformTo("string",s(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach(function(e,r){s++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),a=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,a).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=s}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;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 e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),o=e("./utf8"),s=e("./zipEntries"),a=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new a);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip f
2ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new s(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(c(n[o]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),o=i.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,c=n.resolve(a.fileNameStr);r.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(r.file(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:void 0!==o,newBufferFrom:function(e,t){if(o.from&&o.from!==Uint8Array.from)return o.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new o(e,t)},allocBuffer:function(e){if(o.alloc)return o.alloc(e);var t=new o(e);return t.fill(0),t},isBuffer:function(e){return o.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=o.getTypeOf(t),a=o.extend(r||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=m(e)),a.createFolders&&(n=p(e))&&g.call(this,n,!0);var d,b="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!b),(t instanceof c&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string"),d=t instanceof c||t instanceof s?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var y=new u(e,d,a);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),s=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];
vendor: 4,100 bytes, line 2
2return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(b(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new s("error")).error(e)}return new a(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./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(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t}
vendor: 4,225 bytes, line 2
2,t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"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}
vendor: 5,780 bytes, line 2
2n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),s=e("./GenericWorker"),a=e("../base64"),l=e("../support"),c=e("../external"),u=null;if(l.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function d(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=r,n.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new s("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return function(e,t){return new c.Promise(function(r,i){var s=[],l=e._internalType,c=e._outputType,u=e._mimeType;e.on("data",function(e,r){s.push(e),t&&t(r)}).on("error",function(e){s=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return a.encode(t);default:return n.transformTo(e,t)}}(c,function(e,t){var r,n=0,i=null,s=0;for(r=0;r<t.length;r++)s+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(s),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return o.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(l,s),u);r(e)}catch(e){i(e)}s=[]}).resume()})}(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=void 0!==o,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),s=e("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,s=e.length,l=new Array(2*s);for(t=r=0;t<s;)if((i=e[t++])<128)l[r++]=i;else if(4<(o=a[i]))l[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<s;)i=i<<6|63&e[t++],o--;
vendor: 8,127 bytes, line 2
21<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,s),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}(t),l=t;s!==t.length&&(i.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,s),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=d;var f={};f.string={string:a,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},f.array={string:d,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},f.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o.newBufferFrom(e)}},f.nodebuffer={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:a},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return f[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){u(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,a,c){return s.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=i.decode(t):o&&!0!==a&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),s=e("./zipEntry"),a=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},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 e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",r=i.transformTo(t,e);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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,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 e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;
vendor: 24,017 bytes, line 2
2for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.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(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.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(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),s=e("./crc32"),a=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),s=e("./utf8"),a=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),r=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(n){return o.reject(e,n)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var s=p(function(){t(i,n)});"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===a?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==r||n||(n=!0,o.resolve(c,s))},function(e){n||(n=!0,o.reject(c,e))})}},c.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var t=e.length,r=!1;if(!t)return this.resolve([]);for(var n,s=-1,a=new this(i);++s<t;)n=e[s],this.resolve(n).then(function(e){r||(r=!0,o.resolve(a,e))},function(e){r||(r=!0,o.reject(a,e))});return a}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/messages"),a=e("./zlib/zstream"),l=Object.prototype.toString;function c(e){if(!(this instanceof c))return new c(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==r)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(r=n.deflateSetDictionary(this.strm,u)))throw new Error(s[r]);this._dict_set=!0}}function u(e,t){var r=new c(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}c.prototype.push=function(e,t){var r,s,a=this.strm,c=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(c),a.next_out=0,a.avail_out=c),1!==(r=n.deflate(a,s))&&0!==r)return this.onEnd(r),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==s||(this.onEnd(0),!(a.avail_out=0))},c.prototype.onData=function(e){this.chunks.push(e)},c.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=c,r.deflate=u,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/constants"),a=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,l,c,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(h="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,i,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,a=t||e.length,c=new Array(2*a);for(r=n=0;r<a;)if((i=e[r++])<128)c[n++]=i;else if(4<(o=s[i]))c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&e[r++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(e,t,r){t.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(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,s=i+r;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),l=e("./messages"),c=-2,u=258,d=262,h=113;function f(e,t){return e.msg=l[t],t}function p(e){return(e<<1)-(4<e?9:0)}function m(e){for(var t=e.length;0<=--t;)e[t]=0}function g(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function b(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,g(e.strm)}function y(e,t){e.pending_buf[e.pending++]=t}function A(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function v(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-d?e.strstart-(e.w_size-d):0,c=e.window,h=e.w_mask,f=e.prev,p=e.strstart+u,m=c[o+s-1],g=c[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(c[(r=t)+s]===g&&c[r+s-1]===m&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<p);if(n=u-(p-o),o=p-u,s<n){if(e.match_start=t,a<=(s=n))break;m=c[o+s-1],g=c[o+s]}}}while((t=f[t&h])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function w(e){var t,r,n,o,l,c,u,h,f,p,m=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-d)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=r=e.hash_size;n=e.head[--t],e.head[t]=m<=n?n-m:0,--r;);for(t=r=m;n=e.prev[--t],e.prev[t]=m<=n?n-m:0,--r;);o+=m}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,h=e.strstart+e.lookahead,p=void 0,(f=o)<(p=c.avail_in)&&(p=f),r=0===p?0:(c.avail_in-=p,i.arraySet(u,c.input,c.next_in,p,h),1===c.state.wrap?c.adler=s(c.adler,u,p,h):2===c.state.wrap&&(c.adler=a(c.adler,u,p,h)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<d&&0!==e.strm.avail_in)}function x(e,t){for(var r,n;;){if(e.lookahead<d){if(w(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-d&&(e.match_length=v(e,r)),e.match_length>=3)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;
vendor: 10,316 bytes, line 2
2else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function k(e,t){for(var r,n,i;;){if(e.lookahead<d){if(w(e),e.lookahead<d&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-d&&(e.match_length=v(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&b(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}function C(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function _(){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 i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),m(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 S(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:h,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):f(e,c)}function E(e){var t=S(e);return 0===t&&function(e){e.window_size=2*e.w_size,m(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=2,e.match_available=0,e.ins_h=0}(e.state),t}function T(e,t,r,n,o,s){if(!e)return c;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||9<o||8!==r||n<8||15<n||t<0||9<t||s<0||4<s)return f(e,c);8===n&&(n=9);var l=new _;return(e.state=l).strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,E(e)}n=[new C(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(w(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-d&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)}),new C(4,4,8,4,x),new C(4,5,16,8,x),new C(4,6,32,32,x),new C(4,4,16,16,k),new C(8,16,32,32,k),new C(8,16,128,128,k),new C(8,32,128,256,k),new C(32,128,258,1024,k),new C(32,258,258,4096,k)],r.deflateInit=function(e,t){return T(e,t,8,15,8,0)},r.deflateInit2=T,r.deflateReset=E,r.deflateResetKeep=S,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?c:(e.state.gzhead=t,0):c},r.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||5<t||t<0)return e?f(e,c):c;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return f(e,0===e.avail_out?-5:c);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,y(i,31),y(i,139),y(i,8),i.gzhead?(y(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)),y(i,255&i.gzhead.time),y(i,i.gzhead.time>>8&255),y(i,i.gzhead.time>>16&255),y(i,i.gzhead.time>>24&255),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(y(i,255&i.gzhead.extra.length),y(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(y(i,0),y(i,0),y(i,0),y(i,0),y(i,0),y(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),y(i,3),i.status=h);else{var d=8+(i.w_bits-8<<4)<<8;d|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(d|=32),d+=31-d%31,i.status=h,A(i,d),0!==i.strstart&&(A(i,e.adler>>>16),A(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),g(e),s=i.pending,i.pending!==i.pending_buf_size));)y(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),g(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),g(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,y(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&g(e),i.pending+2<=i.pending_buf_size&&(y(i,255&e.adler),y(i,e.adler>>8&255),e.adler=0,i.status=h)):i.status=h),0!==i.pending){if(g(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&p(t)<=p(r)&&4!==t)return f(e,-5);if(666===i.status&&0!==e.avail_in)return f(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var v=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(w(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=u){if(w(e),e.lookahead<=u&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+u;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=u-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==v&&4!==v||(i.status=666),1===v||3===v)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===v&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(m(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),g(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(y(i,255&e.adler),y(i,e.adler>>8&255),y(i,e.adler>>16&255),y(i,e.adler>>24&255),y(i,255&e.total_in),y(i,e.total_in>>8&255),y(i,e.total_in>>16&255),y(i,e.total_in>>24&255)):(A(i,e.adler>>>16),A(i,65535&e.adler)),g(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&t!==h&&666!==t?f(e,c):(e.state=null,t===h?f(e,-3):0):c},r.deflateSetDictionary=function(e,t){var r,n,o,a,l,u,d,h,f=t.length;if(!e||!e.state)return c;if(2===(a=(r=e.state).wrap)||1===a&&42!==r.status||r.lookahead)return c;for(1===a&&(e.adler=s(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===a&&(m(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,f-r.w_size,r.w_size,0),t=h,f=r.w_size),l=e.avail_in,u=e.next_in,d=e.input,e.avail_in=f,e.
vendor: 4,237 bytes, line 2
2next_in=0,e.input=t,w(r);r.lookahead>=3;){for(n=r.strstart,o=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=2,w(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=d,e.avail_in=l,r.wrap=a,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.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(e,t,r){t.exports=function(e,t){var r,n,i,o,s,a,l,c,u,d,h,f,p,m,g,b,y,A,v,w,x,k,C,_,S;r=e.state,n=e.next_in,_=e.input,i=n+(e.avail_in-5),o=e.next_out,S=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{p<15&&(f+=_[n++]<<p,p+=8,f+=_[n++]<<p,p+=8),A=m[f&b];t:for(;;){if(f>>>=v=A>>>24,p-=v,0==(v=A>>>16&255))S[o++]=65535&A;else{if(!(16&v)){if(0==(64&v)){A=m[(65535&A)+(f&(1<<v)-1)];continue t}if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&A,(v&=15)&&(p<v&&(f+=_[n++]<<p,p+=8),w+=f&(1<<v)-1,f>>>=v,p-=v),p<15&&(f+=_[n++]<<p,p+=8,f+=_[n++]<<p,p+=8),A=g[f&y];r:for(;;){if(f>>>=v=A>>>24,p-=v,!(16&(v=A>>>16&255))){if(0==(64&v)){A=g[(65535&A)+(f&(1<<v)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(x=65535&A,p<(v&=15)&&(f+=_[n++]<<p,(p+=8)<v&&(f+=_[n++]<<p,p+=8)),l<(x+=f&(1<<v)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=v,p-=v,(v=o-s)<x){if(u<(v=x-v)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(C=h,(k=0)===d){if(k+=c-v,v<w){for(w-=v;S[o++]=h[k++],--v;);k=o-x,C=S}}else if(d<v){if(k+=c+d-v,(v-=d)<w){for(w-=v;S[o++]=h[k++],--v;);if(k=0,d<w){for(w-=v=d;S[o++]=h[k++],--v;);k=o-x,C=S}}}else if(k+=d-v,v<w){for(w-=v;S[o++]=h[k++],--v;);k=o-x,C=S}for(;2<w;)S[o++]=C[k++],S[o++]=C[k++],S[o++]=C[k++],w-=3;w&&(S[o++]=C[k++],1<w&&(S[o++]=C[k++]))}else{for(k=o-x;S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],2<(w-=3););w&&(S[o++]=S[k++],1<w&&(S[o++]=S[k++]))}break}}break}}while(n<i&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<a?a-o+257:257-(o-a),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),s=e("./inffast"),a=e("./inftrees"),l=-2;function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function f(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,h(e))):l}function p(e,t){var r,n;return e?(n=new u,(e.state=n).window=null,0!==(r=f(e,t))&&(e.state=null),r):l}var m,g,b=!0;function y(e){if(b){var t;for(m=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,g,0,e.work,{bits:5}),b=!1}e.lencode=m,e.lenbits=9,e.distcode=g,e.distbits=5}
vendor: 7,656 bytes, line 2
2function A(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=h,r.inflateReset2=f,r.inflateResetKeep=d,r.inflateInit=function(e){return p(e,15)},r.inflateInit2=p,r.inflate=function(e,t){var r,u,d,h,f,p,m,g,b,v,w,x,k,C,_,S,E,T,M,O,N,P,R,D,I=0,L=new n.Buf8(4),B=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;12===(r=e.state).mode&&(r.mode=13),f=e.next_out,d=e.output,m=e.avail_out,h=e.next_in,u=e.input,p=e.avail_in,g=r.hold,b=r.bits,v=p,w=m,P=0;e:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;b<16;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(2&r.wrap&&35615===g){L[r.check=0]=255&g,L[1]=g>>>8&255,r.check=o(r.check,L,2,0),b=g=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&g)<<8)+(g>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&g)){e.msg="unknown compression method",r.mode=30;break}if(b-=4,N=8+(15&(g>>>=4)),0===r.wbits)r.wbits=N;else if(N>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<N,e.adler=r.check=1,r.mode=512&g?10:12,b=g=0;break;case 2:for(;b<16;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(r.flags=g,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=g>>8&1),512&r.flags&&(L[0]=255&g,L[1]=g>>>8&255,r.check=o(r.check,L,2,0)),b=g=0,r.mode=3;case 3:for(;b<32;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}r.head&&(r.head.time=g),512&r.flags&&(L[0]=255&g,L[1]=g>>>8&255,L[2]=g>>>16&255,L[3]=g>>>24&255,r.check=o(r.check,L,4,0)),b=g=0,r.mode=4;case 4:for(;b<16;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}r.head&&(r.head.xflags=255&g,r.head.os=g>>8),512&r.flags&&(L[0]=255&g,L[1]=g>>>8&255,r.check=o(r.check,L,2,0)),b=g=0,r.mode=5;case 5:if(1024&r.flags){for(;b<16;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}r.length=g,r.head&&(r.head.extra_len=g),512&r.flags&&(L[0]=255&g,L[1]=g>>>8&255,r.check=o(r.check,L,2,0)),b=g=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(p<(x=r.length)&&(x=p),x&&(r.head&&(N=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,u,h,x,N)),512&r.flags&&(r.check=o(r.check,u,x,h)),p-=x,h+=x,r.length-=x),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===p)break e;for(x=0;N=u[h+x++],r.head&&N&&r.length<65536&&(r.head.name+=String.fromCharCode(N)),N&&x<p;);if(512&r.flags&&(r.check=o(r.check,u,x,h)),p-=x,h+=x,N)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===p)break e;for(x=0;N=u[h+x++],r.head&&N&&r.length<65536&&(r.head.comment+=String.fromCharCode(N)),N&&x<p;);if(512&r.flags&&(r.check=o(r.check,u,x,h)),p-=x,h+=x,N)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;b<16;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(g!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}b=g=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;b<32;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}e.adler=r.check=c(g),b=g=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=b,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){g>>>=7&b,b-=7&b,r.mode=27;break}for(;b<3;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}switch(r.last=1&g,b-=1,3&(g>>>=1)){case 0:r.mode=14;break;case 1:if(y(r),r.mode=20,6!==t)break;g>>>=2,b-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}g>>>=2,b-=2;break;case 14:for(g>>>=7&b,b-=7&b;b<32;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if((65535&g)!=(g>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&g,b=g=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(x=r.length){if(p<x&&(x=p),m<x&&(x=m),0===x)break e;n.arraySet(d,u,h,x,f),p-=x,h+=x,m-=x,f+=x,r.length-=x;break}r.mode=12;break;case 17:for(;b<14;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(r.nlen=257+(31&g),g>>>=5,b-=5,r.ndist=1+(31&g),g>>>=5,b-=5,r.ncode=4+(15&g),g>>>=4,b-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;b<3;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}r.lens[B[r.have++]]=7&g,g>>>=3,b-=3}for(;r.have<19;)r.lens[B[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},P=a(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,P){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;S=(I=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,E=65535&I,!((_=I>>>24)<=b);){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(E<16)g>>>=_,b-=_,r.lens[r.have++]=E;else{if(16===E){for(D=_+2;b<D;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(g>>>=_,b-=_,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}N=r.lens[r.have-1],x=3+(3&g),g>>>=2,b-=2}else if(17===E){for(D=_+3;b<D;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}b-=_,N=0,x=3+(7&(g>>>=_)),g>>>=3,b-=3}else{for(D=_+7;b<D;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}b-=_,N=0,x=11+(127&(g>>>=_)),g>>>=7,b-=7}if(r.have+x>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;x--;)r.lens[r.have++]=N}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,R={bits:r.lenbits},P=a(1,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,P){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},P=a(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,P){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=p&&258<=m){e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=b,s(e,w),f=e.next_out,d=e.output,m=e.avail_out,h=e.next_in,u=e.input,p=e.avail_in,g=r.hold,b=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;S=(I=r.lencode[g&(1<<r.lenbits)-1])>>>16&255,E=65535&I,!((_=I>>>24)<=b);){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(S&&0==(240&S)){for(T=_,M=S,O=E;S=(I=r.lencode[O+((g&(1<<T+M)-1)>>T)])>>>16&255,E=65535&I,!(T+(_=I>>>24)<=b);){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}g>>>=T,b-=T,r.back+=T}if(g>>>=_,b-=_,r.back+=_,r.length=E,0===S){r.mode=26;break}if(32&S){r.back=-1,r.mode=12;break}if(64&S){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&S,r.mode=22;case 22:if(r.extra){for(D=r.extra;b<D;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}r.length+=g&(1<<r.extra)-1,g>>>=r.extra,b-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;S=(I=r.distcode[g&(1<<r.distbits)-1])>>>16&255,E=65535&I,!((_=I>>>24)<=b);){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(0==(240&S)){for(T=_,M=S,O=E;S=(I=r.distcode[O+((g&(1<<T+M)-1)>>T)])>>>16&255,E=65535&I,!(T+(_=I>>>24)<=b);){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}g>>>=T,b-=T,r.back+=T}if(g>>>=_,b-=_,r.back+=_,64&S){e.msg="invalid distance code",r.mode=30;break}r.offset=E,r.extra=15&S,r.mode=24;case 24:if(r.extra){for(D=r.extra;b<D;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}r.offset+=g&(1<<r.extra)-1,g>>>=r.extra,b-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===m)break e;if(x=w-m,r.offset>x){if((x=r.offset-x)>
vendor: 4,417 bytes, line 2
2r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}k=x>r.wnext?(x-=r.wnext,r.wsize-x):r.wnext-x,x>r.length&&(x=r.length),C=r.window}else C=d,k=f-r.offset,x=r.length;for(m<x&&(x=m),m-=x,r.length-=x;d[f++]=C[k++],--x;);0===r.length&&(r.mode=21);break;case 26:if(0===m)break e;d[f++]=r.length,m--,r.mode=21;break;case 27:if(r.wrap){for(;b<32;){if(0===p)break e;p--,g|=u[h++]<<b,b+=8}if(w-=m,e.total_out+=w,r.total+=w,w&&(e.adler=r.check=r.flags?o(r.check,d,w,f-w):i(r.check,d,w,f-w)),w=m,(r.flags?g:c(g))!==r.check){e.msg="incorrect data check",r.mode=30;break}b=g=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;b<32;){if(0===p)break e;p--,g+=u[h++]<<b,b+=8}if(g!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}b=g=0}r.mode=29;case 29:P=1;break e;case 30:P=-3;break e;case 31:return-4;default:return l}return e.next_out=f,e.avail_out=m,e.next_in=h,e.avail_in=p,r.hold=g,r.bits=b,(r.wsize||w!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&A(e,e.output,e.next_out,w-e.avail_out)?(r.mode=31,-4):(v-=e.avail_in,w-=e.avail_out,e.total_in+=v,e.total_out+=w,r.total+=w,r.wrap&&w&&(e.adler=r.check=r.flags?o(r.check,d,w,e.next_out-w):i(r.check,d,w,e.next_out-w)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==v&&0===w||4===t)&&0===P&&(P=-5),P)},r.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?l:((r.head=t).done=!1,0):l},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?l:11===r.mode&&i(1,t,n,0)!==r.check?-3:A(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):l},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[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],o=[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],s=[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];t.exports=function(e,t,r,l,c,u,d,h){var f,p,m,g,b,y,A,v,w,x=h.bits,k=0,C=0,_=0,S=0,E=0,T=0,M=0,O=0,N=0,P=0,R=null,D=0,I=new n.Buf16(16),L=new n.Buf16(16),B=null,j=0;for(k=0;k<=15;k++)I[k]=0;for(C=0;C<l;C++)I[t[r+C]]++;for(E=x,S=15;1<=S&&0===I[S];S--);if(S<E&&(E=S),0===S)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(_=1;_<S&&0===I[_];_++);for(E<_&&(E=_),k=O=1;k<=15;k++)if(O<<=1,(O-=I[k])<0)return-1;if(0<O&&(0===e||1!==S))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+I[k];for(C=0;C<l;C++)0!==t[r+C]&&(d[L[t[r+C]]++]=C);if(y=0===e?(R=B=d,19):1===e?(R=i,D-=257,B=o,j-=257,256):(R=s,B=a,-1),k=_,b=u,M=C=P=0,m=-1,g=(N=1<<(T=E))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(A=k-M,w=d[C]<y?(v=0,d[C]):d[C]>y?(v=B[j+d[C]],R[D+d[C]]):(v=96,0),f=1<<k-M,_=p=1<<T;c[b+(P>>M)+(p-=f)]=A<<24|v<<16|w,0!==p;);for(f=1<<k-1;P&f;)f>>=1;if(0!==f?(P&=f-1,P+=f):P=0,C++,0==--I[k]){if(k===S)break;k=t[r+d[C]]}if(E<k&&(P&g)!==m){for(0===M&&(M=E),b+=_,O=1<<(T=k-M);T+M<S&&!((O-=I[T+M])<=0);)T++,O<<=1;if(N+=1<<T,1===e&&852<N||2===e&&592<N)return 1;c[m=P&g]=E<<24|T<<16|b-u}}return 0!==P&&(c[b+P]=k-M<<24|64<<16),h.bits=E,0}},{"../utils/common":41}],51:[function(e,t,r){t.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(e,t,r){var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,s=286,a=30,l=15,c=[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],u=[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],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);i(f);var p=new Array(60);i(p);var m=new Array(512);i(m);var g=new Array(256);i(g);var b=new Array(29);i(b);var y,A,v,w=new Array(a);function x(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function k(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function C(e){return e<256?m[e]:m[256+(e>>>7)]}
vendor: 5,484 bytes, line 2
2function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function E(e,t,r){S(e,r[2*t],r[2*t+1])}function T(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function M(e,t,r){var n,i,o=new Array(16),s=0;for(n=1;n<=l;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=T(o[a]++,a))}}function O(e){var t;for(t=0;t<s;t++)e.dyn_ltree[2*t]=0;for(t=0;t<a;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function N(e){8<e.bi_valid?_(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function P(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function R(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&P(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!P(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function D(e,t,r){var n,i,s,a,l=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===n?E(e,i,t):(E(e,(s=g[i])+o+1,t),0!==(a=c[s])&&S(e,i-=b[s],a),E(e,s=C(--n),r),0!==(a=u[s])&&S(e,n-=w[s],a)),l<e.last_lit;);E(e,256,t)}function I(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<c;r++)0!==o[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)R(e,o,r);for(i=c;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],R(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,R(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,h=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)m<(o=c[2*c[2*(n=e.heap[r])+1]+1]+1)&&(o=m,g++),c[2*n+1]=o,u<n||(e.bl_count[o]++,s=0,p<=n&&(s=f[n-p]),a=c[2*n],e.opt_len+=a*(o+s),h&&(e.static_len+=a*(d[2*n+1]+s)));if(0!==g){do{for(o=m-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(o=m;0!==o;o--)for(n=e.bl_count[o];0!==n;)u<(i=e.heap[--r])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),n--)}}(e,t),M(o,u,e.bl_count)}function L(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<l&&i===s||(a<c?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,c=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4))}function B(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<l&&i===s)){if(a<c)for(;E(e,i,e.bl_tree),0!=--a;);else 0!==i?(i!==o&&(E(e,i,e.bl_tree),a--),E(e,16,e.bl_tree),S(e,a-3,2)):a<=10?(E(e,17,e.bl_tree),S(e,a-3,3)):(E(e,18,e.bl_tree),S(e,a-11,7));o=i,c=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4)}}i(w);var j=!1;function F(e,t,r,i){S(e,0+(i?1:0),3),function(e,t,r){N(e),_(e,r),_(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r)}r._tr_init=function(e){j||(function(){var e,t,r,n,i,o=new Array(16);for(n=r=0;n<28;n++)for(b[n]=r,e=0;e<1<<c[n];e++)g[r++]=n;for(g[r-1]=n,n=i=0;n<16;n++)for(w[n]=i,e=0;e<1<<u[n];e++)m[i++]=n;for(i>>=7;n<a;n++)for(w[n]=i<<7,e=0;e<1<<u[n]-7;e++)m[256+i++]=n;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)f[2*e+1]=8,e++,o[8]++;for(;e<=255;)f[2*e+1]=9,e++,o[9]++;for(;e<=279;)f[2*e+1]=7,e++,o[7]++;for(;e<=287;)f[2*e+1]=8,e++,o[8]++;for(M(f,287,o),e=0;e<a;e++)p[2*e+1]=5,p[2*e]=T(e,5);y=new x(f,c,257,s,l),A=new x(p,u,0,a,l),v=new x(new Array(0),d,0,19,7)}(),j=!0),e.l_desc=new k(e.dyn_ltree,y),e.d_desc=new k(e.dyn_dtree,A),e.bl_desc=new k(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,O(e)},r._tr_stored_block=F,r._tr_flush_block=function(e,t,r,n){var i,s,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),I(e,e.l_desc),I(e,e.d_desc),a=function(e){var t;for(L(e,e.dyn_ltree,e.l_desc.max_code),L(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=i&&(i=s)):i=s=r+5,r+4<=i&&-1!==t?F(e,t,r,n):4===e.strategy||s===i?(S(e,2+(n?1:0),3),D(e,f,p)):(S(e,4+(n?1:0),3),function(e,t,r,n){var i;for(S(e,t-257,5),S(e,r-1,5),S(e,n-4,4),i=0;i<n;i++)S(e,e.bl_tree[2*h[i]+1],3);B(e,e.dyn_ltree,t-1),B(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),D(e,e.dyn_ltree,e.dyn_dtree)),O(e),n&&N(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(g[r]+o+1)]++,e.dyn_dtree[2*C(t)]++),e.last_lit===e.lit_bufsize-1}
vendor: 5,083 bytes, line 2
2,r._tr_align=function(e){S(e,2,3),E(e,256,f),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){t.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(e,t,r){(function(e){!function(e){if(!e.setImmediate){var t,r,i,o,s=1,a={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,t="[object process]"==={}.toString.call(e.process)?function(e){n.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var r=new Array(arguments.length-1),n=0;n<r.length;n++)r[n]=arguments[n+1];var i={callback:e,args:r};return a[s]=i,t(s),s++},u.clearImmediate=d}function d(e){delete a[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=a[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],e("timers").setImmediate)},{_process:467,buffer:220,timers:523}],442:[function(e,t,r){(function(e){(function(){"use strict";var r=/[\\^$.*+?()[\]{}|]/g,n=RegExp(r.source),i="object"==typeof e&&e&&e.Object===Object&&e,o="object"==typeof self&&self&&self.Object===Object&&self,s=i||o||Function("return this")(),a=Object.prototype.toString,l=s.Symbol,c=l?l.prototype:void 0,u=c?c.toString:void 0;function d(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==a.call(e)}(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}t.exports=function(e){var t;return(e=null==(t=e)?"":d(t))&&n.test(e)?e.replace(r,"\\$&"):e}}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],443:[function(e,t,r){(function(e){(function(){"use strict";var n="[object Arguments]",i="[object Map]",o="[object Object]",s="[object Set]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,l=/^\w*$/,c=/^\./,u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,h=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,p={};p["[object Float32Array]"]=p["[object Float64Array]"]=p["[object Int8Array]"]=p["[object Int16Array]"]=p["[object Int32Array]"]=p["[object Uint8Array]"]=p["[object Uint8ClampedArray]"]=p["[object Uint16Array]"]=p["[object Uint32Array]"]=!0,p[n]=p["[object Array]"]=p["[object ArrayBuffer]"]=p["[object Boolean]"]=p["[object DataView]"]=p["[object Date]"]=p["[object Error]"]=p["[object Function]"]=p[i]=p["[object Number]"]=p[o]=p["[object RegExp]"]=p[s]=p["[object String]"]=p["[object WeakMap]"]=!1;var m="object"==typeof e&&e&&e.Object===Object&&e,g="object"==typeof self&&self&&self.Object===Object&&self,b=m||g||Function("return this")(),y="object"==typeof r&&r&&!r.nodeType&&r,A=y&&"object"==typeof t&&t&&!t.nodeType&&t,v=A&&A.exports===y&&m.process,w=function(){try{return v&&v.binding("util")}catch(e){}}(),x=w&&w.isTypedArray;function k(e,t,r,n){for(var i=-1,o=e?e.length:0;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}function C(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function _(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function S(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function E(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var T,M,O,N=Array.prototype,P=Function.prototype,R=Object.prototype,D=b["__core-js_shared__"],I=(T=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+T:"",L=P.toString,B=R.hasOwnProperty,j=R.toString,F=RegExp("^"+L.call(B).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=b.Symbol,U=b.Uint8Array,H=R.propertyIsEnumerable,V=N.splice,W=(M=Object.keys,O=Object,function(e){return M(O(e))}),K=Se(b,"DataView"),q=Se(b,"Map"),G=Se(b,"Promise"),X=Se(b,"Set"),Y=Se(b,"WeakMap"),$=Se(Object,"create"),Q=De(K),J=De(q),Z=De(G),ee=De(X),te=De(Y),re=z?z.prototype:void 0,ne=re?re.valueOf:void 0,ie=re?re.toString:void 0;function oe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function le(e){var t=-1,r=e?e.length:0;for(this.__data__=new ae;++t<r;)this.add(e[t])}function ce(e){this.__data__=new se(e)}function ue(e,t){var r=Ue(e)||ze(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!B.call(e,o)||i&&("length"==o||Te(o,n))||r.push(o);return r}function de(e,t){for(var r=e.length;r--;)if(Fe(e[r][0],t))return r;return-1}function he(e,t,r,n){return me(e,function(e,i,o){t(n,e,r(e),o)}),n}oe.prototype.clear=function(){this.__data__=$?$(null):{}},oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},oe.prototype.get=function(e){var t=this.__data__;if($){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return B.call(t,e)?t[e]:void 0},oe.prototype.has=function(e){var t=this.__data__;return $?void 0!==t[e]:B.call(t,e)},oe.prototype.set=function(e,t){return this.__data__[e]=$&&void 0===t?"__lodash_hash_undefined__":t,this},se.prototype.clear=function(){this.__data__=[]},se.prototype.delete=function(e){var t=this.__data__,r=de(t,e);return!(r<0)&&(r==t.length-1?t.pop():V.call(t,r,1),!0)},se.prototype.get=function(e){var t=this.__data__,r=de(t,e);return r<0?void 0:t[r][1]},se.prototype.has=function(e){return de(this.__data__,e)>-1},se.prototype.set=function(e,t){var r=this.__data__,n=de(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},ae.prototype.clear=function(){this.__data__={hash:new oe,map:new(q||se),string:new oe}},ae.prototype.delete=function(e){return _e(this,e).delete(e)},ae.prototype.get=function(e){return _e(this,e).get(e)},ae.prototype.has=function(e){return _e(this,e).has(e)},ae.prototype.set=function(e,t){return _e(this,e).set(e,t),this},le.prototype.add=le.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},le.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.clear=function(){this.__data__=new se},ce.prototype.delete=function(e){return this.__data__.delete(e)},ce.prototype.get=function(e){return this.__data__.get(e)},ce.prototype.has=function(e){return this.__data__.has(e)},ce.prototype.set=function(e,t){var r=this.__data__;if(r instanceof se){var n=r.__data__;if(!q||n.length<199)return n.push([e,t]),this;r=this.__data__=new ae(n)}return r.set(e,t),this};var fe,pe,me=(fe=function(e,t){return e&&ge(e,t,Ye)},function(e,t){if(null==e)return e;if(!He(e))return fe(e,t);for(var r=e.length,n=pe?r:-1,i=Object(e);(pe?n--:++n<r)&&!1!==t(i[n],n,i););return e}),ge=function(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===r(o[l],l,o))break}return t}}();function be(e,t){for(var r=0,n=(t=Me(t,e)?[t]:ke(t)).length;null!=e&&r<n;)e=e[Re(t[r++])];return r&&r==n?e:void 0}function ye(e,t){return null!=e&&t in Object(e)}function Ae(e,t,r,a,l){return e===t||(null==e||null==t||!Ke(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,a,l,c){var u=Ue(e),d=Ue(t),h="[object Array]",f="[object Array]";u||(h=(h=Ee(e))==n?o:h),d||(f=(f=Ee(t))==n?o:f);var p=h==o&&!_(e),m=f==o&&!_(t),g=h==f;if(g&&!p)return c||(c=new ce),u||Xe(e)?Ce(e,t,r,a,l,c):function(e,t,r,n,o,a,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!n(new U(e),new U(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Fe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=S;case s:var u=2&a;
vendor: 4,084 bytes, line 2
2if(c||(c=E),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;a|=1,l.set(e,t);var h=Ce(c(e),c(t),n,o,a,l);return l.delete(e),h;case"[object Symbol]":if(ne)return ne.call(e)==ne.call(t)}return!1}(e,t,h,r,a,l,c);if(!(2&l)){var b=p&&B.call(e,"__wrapped__"),y=m&&B.call(t,"__wrapped__");if(b||y){var A=b?e.value():e,v=y?t.value():t;return c||(c=new ce),r(A,v,a,l,c)}}return!!g&&(c||(c=new ce),function(e,t,r,n,i,o){var s=2&i,a=Ye(e),l=a.length;if(l!=Ye(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:B.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var f=s;++c<l;){var p=e[u=a[c]],m=t[u];if(n)var g=s?n(m,p,u,t,e,o):n(p,m,u,e,t,o);if(!(void 0===g?p===m||r(p,m,n,i,o):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,r,a,l,c))}(e,t,Ae,r,a,l))}function ve(e){return!(!Ke(e)||function(e){return!!I&&I in e}(e))&&(Ve(e)||_(e)?F:h).test(De(e))}function we(e){return"function"==typeof e?e:null==e?$e:"object"==typeof e?Ue(e)?function(e,t){return Me(e)&&Oe(t)?Ne(Re(e),t):function(r){var n=function(e,t,r){var n=null==e?void 0:be(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){for(var n,i=-1,o=(t=Me(t,e)?[t]:ke(t)).length;++i<o;){var s=Re(t[i]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||!!(o=e?e.length:0)&&We(o)&&Te(s,o)&&(Ue(e)||ze(e))}(e,t,ye)}(r,e):Ae(t,n,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){for(var t=Ye(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Oe(i)]}return t}(e);return 1==t.length&&t[0][2]?Ne(t[0][0],t[0][1]):function(r){return r===e||function(e,t,r,n){var i=r.length,o=i,s=!n;if(null==e)return!o;for(e=Object(e);i--;){var a=r[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){var l=(a=r[i])[0],c=e[l],u=a[1];if(s&&a[2]){if(void 0===c&&!(l in e))return!1}else{var d=new ce;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Ae(u,c,n,3,d):h))return!1}}return!0}(r,e,t)}}(e):Me(t=e)?(r=Re(t),function(e){return null==e?void 0:e[r]}):function(e){return function(t){return be(t,e)}}(t);var t,r}function xe(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||R))return W(e);var t,r,n=[];for(var i in Object(e))B.call(e,i)&&"constructor"!=i&&n.push(i);return n}function ke(e){return Ue(e)?e:Pe(e)}function Ce(e,t,r,n,i,o){var s=2&i,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=1&i?new le:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var f=e[u],p=t[u];if(n)var m=s?n(p,f,u,t,e,o):n(f,p,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!C(t,function(e,t){if(!h.has(t)&&(f===e||r(f,e,n,i,o)))return h.add(t)})){d=!1;break}}else if(f!==p&&!r(f,p,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function _e(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function Se(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return ve(r)?r:void 0}var Ee=function(e){return j.call(e)};function Te(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||f.test(e))&&e>-1&&e%1==0&&e<t}function Me(e,t){if(Ue(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!Ge(e))||l.test(e)||!a.test(e)||null!=t&&e in Object(t)}function Oe(e){return e==e&&!Ke(e)}function Ne(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}(K&&"[object DataView]"!=Ee(new K(new ArrayBuffer(1)))||q&&Ee(new q)!=i||G&&"[object Promise]"!=Ee(G.resolve())||X&&Ee(new X)!=s||Y&&"[object WeakMap]"!=Ee(new Y))&&(Ee=function(e){var t=j.call(e),r=t==o?e.constructor:void 0,n=r?De(r):void 0;if(n)switch(n){case Q:return"[object DataView]";case J:return i;case Z:return"[object Promise]";case ee:return s;case te:return"[object WeakMap]"}return t});var Pe=je(function(e){var t;
vendor: 4,952 bytes, line 2
2e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Ge(e))return ie?ie.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var r=[];return c.test(e)&&r.push(""),e.replace(u,function(e,t,n,i){r.push(n?i.replace(d,"$1"):t||e)}),r});function Re(e){if("string"==typeof e||Ge(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function De(e){if(null!=e){try{return L.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var Ie,Le,Be=(Ie=function(e,t,r){B.call(e,r)?e[r].push(t):e[r]=[t]},function(e,t){var r=Ue(e)?k:he,n=Le?Le():{};return r(e,Ie,we(t),n)});function je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s),s};return r.cache=new(je.Cache||ae),r}function Fe(e,t){return e===t||e!=e&&t!=t}function ze(e){return function(e){return qe(e)&&He(e)}(e)&&B.call(e,"callee")&&(!H.call(e,"callee")||j.call(e)==n)}je.Cache=ae;var Ue=Array.isArray;function He(e){return null!=e&&We(e.length)&&!Ve(e)}function Ve(e){var t=Ke(e)?j.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function We(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ke(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function qe(e){return!!e&&"object"==typeof e}function Ge(e){return"symbol"==typeof e||qe(e)&&"[object Symbol]"==j.call(e)}var Xe=x?function(e){return function(t){return e(t)}}(x):function(e){return qe(e)&&We(e.length)&&!!p[j.call(e)]};function Ye(e){return He(e)?ue(e):xe(e)}function $e(e){return e}t.exports=Be}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],444:[function(e,t,r){"use strict";var n=Object.prototype.toString;t.exports=function(e){return!0===e||!1===e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Boolean]"==n.call(e)}},{}],445:[function(e,t,r){(function(e){(function(){"use strict";var n="[object Arguments]",i="[object Map]",o="[object Object]",s="[object Set]",a=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[n]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[i]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c[s]=c["[object String]"]=c["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,h=u||d||Function("return this")(),f="object"==typeof r&&r&&!r.nodeType&&r,p=f&&"object"==typeof t&&t&&!t.nodeType&&t,m=p&&p.exports===f,g=m&&u.process,b=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),y=b&&b.isTypedArray;function A(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function v(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function w(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var x,k,C,_=Array.prototype,S=Function.prototype,E=Object.prototype,T=h["__core-js_shared__"],M=S.toString,O=E.hasOwnProperty,N=(x=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"",P=E.toString,R=RegExp("^"+M.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?h.Buffer:void 0,I=h.Symbol,L=h.Uint8Array,B=E.propertyIsEnumerable,j=_.splice,F=I?I.toStringTag:void 0,z=Object.getOwnPropertySymbols,U=D?D.isBuffer:void 0,H=(k=Object.keys,C=Object,function(e){return k(C(e))}),V=be(h,"DataView"),W=be(h,"Map"),K=be(h,"Promise"),q=be(h,"Set"),G=be(h,"WeakMap"),X=be(Object,"create"),Y=we(V),$=we(W),Q=we(K),J=we(q),Z=we(G),ee=I?I.prototype:void 0,te=ee?ee.valueOf:void 0;function re(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ne(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function oe(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new ie;++t<r;)this.add(e[t])}function se(e){var t=this.__data__=new ne(e);this.size=t.size}function ae(e,t){var r=Ce(e),n=!r&&ke(e),i=!r&&!n&&_e(e),o=!r&&!n&&!i&&Oe(e),s=r||n||i||o,a=s?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],l=a.length;for(var c in e)!t&&!O.call(e,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ve(c,l))||a.push(c);return a}function le(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}
vendor: 1,376 bytes, line 2
2function ce(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":F&&F in Object(e)?function(e){var t=O.call(e,F),r=e[F];try{e[F]=void 0;var n=!0}catch(e){}var i=P.call(e);return n&&(t?e[F]=r:delete e[F]),i}(e):function(e){return P.call(e)}(e)}function ue(e){return Me(e)&&ce(e)==n}function de(e,t,r,a,l){return e===t||(null==e||null==t||!Me(e)&&!Me(t)?e!=e&&t!=t:function(e,t,r,a,l,c){var u=Ce(e),d=Ce(t),h=u?"[object Array]":Ae(e),f=d?"[object Array]":Ae(t),p=(h=h==n?o:h)==o,m=(f=f==n?o:f)==o,g=h==f;if(g&&_e(e)){if(!_e(t))return!1;u=!0,p=!1}if(g&&!p)return c||(c=new se),u||Oe(e)?pe(e,t,r,a,l,c):function(e,t,r,n,o,a,l){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new L(e),new L(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xe(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case i:var c=v;case s:var u=1&n;if(c||(c=w),e.size!=t.size&&!u)return!1;var d=l.get(e);if(d)return d==t;n|=2,l.set(e,t);var h=pe(c(e),c(t),n,o,a,l);return l.delete(e),h;case"[object Symbol]":if(te)return te.call(e)==te.call(t)}return!1}(e,t,h,r,a,l,c);if(!(1&r)){var b=p&&O.call(e,"__wrapped__"),y=m&&O.call(t,"__wrapped__");
vendor: 20,760 bytes, line 2
2if(b||y){var A=b?e.value():e,x=y?t.value():t;return c||(c=new se),l(A,x,r,a,c)}}return!!g&&(c||(c=new se),function(e,t,r,n,i,o){var s=1&r,a=me(e),l=a.length;if(l!=me(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:O.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var f=s;++c<l;){var p=e[u=a[c]],m=t[u];if(n)var g=s?n(m,p,u,t,e,o):n(p,m,u,e,t,o);if(!(void 0===g?p===m||i(p,m,r,n,o):g)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,r,a,l,c))}(e,t,r,a,de,l))}function he(e){return!(!Te(e)||function(e){return!!N&&N in e}(e))&&(Se(e)?R:a).test(we(e))}function fe(e){if(r=(t=e)&&t.constructor,t!==("function"==typeof r&&r.prototype||E))return H(e);var t,r,n=[];for(var i in Object(e))O.call(e,i)&&"constructor"!=i&&n.push(i);return n}function pe(e,t,r,n,i,o){var s=1&r,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=2&r?new oe:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var f=e[u],p=t[u];if(n)var m=s?n(p,f,u,t,e,o):n(f,p,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!A(t,function(e,t){if(s=t,!h.has(s)&&(f===e||i(f,e,r,n,o)))return h.push(t);var s})){d=!1;break}}else if(f!==p&&!i(f,p,r,n,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function me(e){return function(e,t,r){var n=t(e);return Ce(e)?n:function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}(n,r(e))}(e,Ne,ye)}function ge(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function be(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return he(r)?r:void 0}re.prototype.clear=function(){this.__data__=X?X(null):{},this.size=0},re.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},re.prototype.get=function(e){var t=this.__data__;if(X){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return O.call(t,e)?t[e]:void 0},re.prototype.has=function(e){var t=this.__data__;return X?void 0!==t[e]:O.call(t,e)},re.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=X&&void 0===t?"__lodash_hash_undefined__":t,this},ne.prototype.clear=function(){this.__data__=[],this.size=0},ne.prototype.delete=function(e){var t=this.__data__,r=le(t,e);return!(r<0)&&(r==t.length-1?t.pop():j.call(t,r,1),--this.size,!0)},ne.prototype.get=function(e){var t=this.__data__,r=le(t,e);return r<0?void 0:t[r][1]},ne.prototype.has=function(e){return le(this.__data__,e)>-1},ne.prototype.set=function(e,t){var r=this.__data__,n=le(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new re,map:new(W||ne),string:new re}},ie.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return ge(this,e).get(e)},ie.prototype.has=function(e){return ge(this,e).has(e)},ie.prototype.set=function(e,t){var r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},oe.prototype.add=oe.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},oe.prototype.has=function(e){return this.__data__.has(e)},se.prototype.clear=function(){this.__data__=new ne,this.size=0},se.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},se.prototype.get=function(e){return this.__data__.get(e)},se.prototype.has=function(e){return this.__data__.has(e)},se.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ne){var n=r.__data__;if(!W||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ie(n)}return r.set(e,t),this.size=r.size,this};var ye=z?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}(z(e),function(t){return B.call(e,t)}))}:function(){return[]},Ae=ce;function ve(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||l.test(e))&&e>-1&&e%1==0&&e<t}function we(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function xe(e,t){return e===t||e!=e&&t!=t}(V&&"[object DataView]"!=Ae(new V(new ArrayBuffer(1)))||W&&Ae(new W)!=i||K&&"[object Promise]"!=Ae(K.resolve())||q&&Ae(new q)!=s||G&&"[object WeakMap]"!=Ae(new G))&&(Ae=function(e){var t=ce(e),r=t==o?e.constructor:void 0,n=r?we(r):"";if(n)switch(n){case Y:return"[object DataView]";case $:return i;case Q:return"[object Promise]";case J:return s;case Z:return"[object WeakMap]"}return t});var ke=ue(function(){return arguments}())?ue:function(e){return Me(e)&&O.call(e,"callee")&&!B.call(e,"callee")},Ce=Array.isArray,_e=U||function(){return!1};function Se(e){if(!Te(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Te(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Me(e){return null!=e&&"object"==typeof e}var Oe=y?function(e){return function(t){return e(t)}}(y):function(e){return Me(e)&&Ee(e.length)&&!!c[ce(e)]};function Ne(e){return null!=(t=e)&&Ee(t.length)&&!Se(t)?ae(e):fe(e);var t}t.exports=function(e,t){return de(e,t)}}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],446:[function(e,t,r){(function(e){(function(){"use strict";var r="object"==typeof e&&e&&e.Object===Object&&e,n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")(),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,l=i.Symbol,c=l?l.toStringTag:void 0;function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=s.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var i=a.call(e);return n&&(t?e[c]=r:delete e[c]),i}(e):function(e){return a.call(e)}(e)}t.exports=function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=u(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],447:[function(e,t,r){"use strict";t.exports=function(e){return null==e}},{}],448:[function(e,t,r){"use strict";t.exports=function(e){return void 0===e}},{}],449:[function(e,t,r){(function(e){(function(){"use strict";var r=/^\[object .+?Constructor\]$/,n="object"==typeof e&&e&&e.Object===Object&&e,i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();function s(e,t){return!(!e||!e.length)&&function(e,t,r){if(t!=t)return function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,l,r);for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}(e,t,0)>-1}function a(e,t,r){for(var n=-1,i=e?e.length:0;++n<i;)if(r(t,e[n]))return!0;return!1}function l(e){return e!=e}function c(e,t){return e.has(t)}function u(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var d,h=Array.prototype,f=Function.prototype,p=Object.prototype,m=o["__core-js_shared__"],g=(d=/[^.]+$/.exec(m&&m.keys&&m.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",b=f.toString,y=p.hasOwnProperty,A=p.toString,v=RegExp("^"+b.call(y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=h.splice,x=R(o,"Map"),k=R(o,"Set"),C=R(Object,"create");function _(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function S(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function E(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function T(e){var t=-1,r=e?e.length:0;for(this.__data__=new E;++t<r;)this.add(e[t])}function M(e,t){for(var r,n,i=e.length;i--;)if((r=e[i][0])===(n=t)||r!=r&&n!=n)return i;return-1}function O(e){return!(!D(e)||(t=e,g&&g in t))&&(function(e){var t=D(e)?A.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?v:r).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}_.prototype.clear=function(){this.__data__=C?C(null):{}},_.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_.prototype.get=function(e){var t=this.__data__;if(C){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return y.call(t,e)?t[e]:void 0},_.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:y.call(t,e)},_.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?"__lodash_hash_undefined__":t,this},S.prototype.clear=function(){this.__data__=[]},S.prototype.delete=function(e){var t=this.__data__,r=M(t,e);return!(r<0)&&(r==t.length-1?t.pop():w.call(t,r,1),!0)},S.prototype.get=function(e){var t=this.__data__,r=M(t,e);return r<0?void 0:t[r][1]},S.prototype.has=function(e){return M(this.__data__,e)>-1},S.prototype.set=function(e,t){var r=this.__data__,n=M(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},E.prototype.clear=function(){this.__data__={hash:new _,map:new(x||S),string:new _}},E.prototype.delete=function(e){return P(this,e).delete(e)},E.prototype.get=function(e){return P(this,e).get(e)},E.prototype.has=function(e){return P(this,e).has(e)},E.prototype.set=function(e,t){return P(this,e).set(e,t),this},T.prototype.add=T.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},T.prototype.has=function(e){return this.__data__.has(e)};var N=k&&1/u(new k([,-0]))[1]==1/0?function(e){return new k(e)}:function(){};function P(e,t){var r,n,i=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?i["string"==typeof t?"string":"hash"]:i.map}function R(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return O(r)?r:void 0}function D(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=function(e){return e&&e.length?function(e,t,r){var n=-1,i=s,o=e.length,l=!0,d=[],h=d;if(r)l=!1,i=a;else if(o>=200){var f=t?null:N(e);if(f)return u(f);l=!1,i=c,h=new T}else h=t?[]:d;e:for(;++n<o;){var p=e[n],m=t?t(p):p;if(p=r||0!==p?p:0,l&&m==m){for(var g=h.length;g--;)if(h[g]===m)continue e;t&&h.push(m),d.push(p)}else i(h,m,r)||(h!==d&&h.push(m),d.push(p))}return d}(e):[]}}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],450:[function(e,t,r){"use strict";var n=e("inherits"),i=e("hash-base"),o=e("safe-buffer").Buffer,s=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(e,t){return e<<t|e>>>32-t}function c(e,t,r,n,i,o,s){return l(e+(t&r|~t&n)+i+o|0,s)+t|0}function u(e,t,r,n,i,o,s){return l(e+(t&n|r&~n)+i+o|0,s)+t|0}function d(e,t,r,n,i,o,s){return l(e+(t^r^n)+i+o|0,s)+t|0}function h(e,t,r,n,i,o,s){return l(e+(r^(t|~n))+i+o|0,s)+t|0}n(a,i),a.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,e[0],3614090360,7),o=c(o,r,n,i,e[1],3905402710,12),i=c(i,o,r,n,e[2],606105819,17),n=c(n,i,o,r,e[3],3250441966,22),r=c(r,n,i,o,e[4],4118548399,7),o=c(o,r,n,i,e[5],1200080426,12),i=c(i,o,r,n,e[6],2821735955,17),n=c(n,i,o,r,e[7],4249261313,22),r=c(r,n,i,o,e[8],1770035416,7),o=c(o,r,n,i,e[9],2336552879,12),i=c(i,o,r,n,e[10],4294925233,17),n=c(n,i,o,r,e[11],2304563134,22),r=c(r,n,i,o,e[12],1804603682,7),o=c(o,r,n,i,e[13],4254626195,12),i=c(i,o,r,n,e[14],2792965006,17),r=u(r,n=c(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,r,n,i,e[6],3225465664,9),i=u(i,o,r,n,e[11],643717713,14),n=u(n,i,o,r,e[0],3921069994,20),r=u(r,n,i,o,e[5],3593408605,5),o=u(o,r,n,i,e[10],38016083,9),i=u(i,o,r,n,e[15],3634488961,14),n=u(n,i,o,r,e[4],3889429448,20),r=u(r,n,i,o,e[9],568446438,5),o=u(o,r,n,i,e[14],3275163606,9),i=u(i,o,r,n,e[3],4107603335,14),n=u(n,i,o,r,e[8],1163531501,20),r=u(r,n,i,o,e[13],2850285829,5),o=u(o,r,n,i,e[2],4243563512,9),i=u(i,o,r,n,e[7],1735328473,14),r=d(r,n=u(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=d(o,r,n,i,e[8],2272392833,11),i=d(i,o,r,n,e[11],1839030562,16),n=d(n,i,o,r,e[14],4259657740,23),r=d(r,n,i,o,e[1],2763975236,4),o=d(o,r,n,i,e[4],1272893353,11),i=d(i,o,r,n,e[7],4139469664,16),n=d(n,i,o,r,e[10],3200236656,23),r=d(r,n,i,o,e[13],681279174,4),o=d(o,r,n,i,e[0],3936430074,11),i=d(i,o,r,n,e[3],3572445317,16),n=d(n,i,o,r,e[6],76029189,23),r=d(r,n,i,o,e[9],3654602809,4),o=d(o,r,n,i,e[12],3873151461,11),i=d(i,o,r,n,e[15],530742520,16),r=h(r,n=d(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},a.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 e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},t.exports=a},{"hash-base":425,inherits:440,"safe-buffer":494}],451:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("brorand");function o(e){this.rand=e||new i.Rand}t.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),s=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),l=0;!a.testn(l);l++);for(var c=e.shrn(l),u=a.toRed(o);t>0;t--){var d=this._randrange(new n(2),a);r&&r(d);var h=d.toRed(o).redPow(c);if(0!==h.cmp(s)&&0!==h.cmp(u)){for(var f=1;f<l;f++){if(0===(h=h.redSqr()).cmp(s))return!1;if(0===h.cmp(u))break}if(f===l)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),a=0;!s.testn(a);a++);for(var l=e.shrn(a),c=s.toRed(i);t>0;t--){var u=this._randrange(new n(2),s),d=e.gcd(u);if(0!==d.cmpn(1))return d;var h=u.toRed(i).redPow(l);if(0!==h.cmp(o)&&0!==h.cmp(c)){for(var f=1;f<a;f++){if(0===(h=h.redSqr()).cmp(o))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(c))break}if(f===a)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":452,brorand:187}],452:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],453:[function(e,t,r){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}t.exports=n,n.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],454:[function(e,t,r){"use strict";var n=r;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},{}],455:[function(e,t,r){t.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,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var i=n.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())});r.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});r.PublicKey=s;var a=n.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())}),l=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});r.PrivateKey=l;var c=n.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())});r.EncryptedPrivateKey=c;var u=n.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())});r.DSAPrivateKey=u,r.DSAparam=n.define("DSAparam",function(){this.int()});var d=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=d;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":457,"asn1.js":170}],457:[function(e,t,r){"use strict";var n=e("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}),l=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(l)}),u=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),d=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),f=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(u),this.key("validity").use(d),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}
2),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":170}],458:[function(e,t,r){"use strict";var n=/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,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,s=e("evp_bytestokey"),a=e("browserify-aes"),l=e("safe-buffer").Buffer;t.exports=function(e,t){var r,c=e.toString(),u=c.match(n);if(u){var d="aes"+u[1],h=l.from(u[2],"hex"),f=l.from(u[3].replace(/[\r\n]/g,""),"base64"),p=s(t,h.slice(0,8),parseInt(u[1],10)).key,m=[],g=a.createDecipheriv(d,p,h);m.push(g.update(f)),m.push(g.final()),r=l.concat(m)}else{var b=c.match(o);r=l.from(b[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},{"browserify-aes":191,evp_bytestokey:423,"safe-buffer":494}],459:[function(e,t,r){"use strict";var n=e("./asn1"),i=e("./aesid.json"),o=e("./fixProc"),s=e("browserify-aes"),a=e("pbkdf2"),l=e("safe-buffer").Buffer;function c(e){var t;"object"!=typeof e||l.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=l.from(e));var r,c,u=o(e,t),d=u.tag,h=u.data;switch(d){case"CERTIFICATE":c=n.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(h,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],c=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,d=parseInt(o.split("-")[1],10)/8,h=a.pbkdf2Sync(t,r,n,d,"sha1"),f=s.createDecipheriv(o,h,c),p=[];return p.push(f.update(u)),p.push(f.final()),l.concat(p)}(h=n.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=n.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+d)}}t.exports=c,c.signature=n.signature},{"./aesid.json":455,"./asn1":456,"./fixProc":458,"browserify-aes":191,pbkdf2:460,"safe-buffer":494}],460:[function(e,t,r){"use strict";r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":461,"./lib/sync":464}],461:[function(e,t,r){(function(r){(function(){"use strict";var n,i,o=e("safe-buffer").Buffer,s=e("./precondition"),a=e("./default-encoding"),l=e("./sync"),c=e("./to-buffer"),u=r.crypto&&r.crypto.subtle,d={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"},h=[];function f(){return i||(i=r.process&&r.process.nextTick?r.process.nextTick:r.queueMicrotask?r.queueMicrotask:r.setImmediate?r.setImmediate:r.setTimeout)}function p(e,t,r,n,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return o.from(e)})}t.exports=function(e,t,i,m,g,b){"function"==typeof g&&(b=g,g=void 0);var y=d[(g=g||"sha1").toLowerCase()];if(y&&"function"==typeof r.Promise){if(s(i,m),e=c(e,a,"Password"),t=c(t,a,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then(function(e){f()(function(){t(null,e)})},function(e){f()(function(){t(e)})})}(function(e){if(r.process&&!r.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==h[e])return h[e];var t=p(n=n||o.alloc(8),n,10,128,e).then(function(){return!0}).catch(function(){return!1});return h[e]=t,t}(y).then(function(r){return r?p(e,t,i,m,y):l(e,t,i,m,g)}),b)}else f()(function(){var r;try{r=l(e,t,i,m,g)}catch(e){return b(e)}b(null,r)}
2)}}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":462,"./precondition":463,"./sync":464,"./to-buffer":465,"safe-buffer":494}],462:[function(e,t,r){(function(e,r){(function(){"use strict";var n;n=r.process&&r.process.browser?"utf-8":r.process&&r.process.version?parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",t.exports=n}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467}],463:[function(e,t,r){"use strict";var n=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>n||t!=t)throw new TypeError("Bad key length")}},{}],464:[function(e,t,r){"use strict";var n=e("create-hash/md5"),i=e("ripemd160"),o=e("sha.js"),s=e("safe-buffer").Buffer,a=e("./precondition"),l=e("./default-encoding"),c=e("./to-buffer"),u=s.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(e,t,r){var a=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:t}(e),l="sha512"===e||"sha384"===e?128:64;t.length>l?t=a(t):t.length<l&&(t=s.concat([t,u],l));for(var c=s.allocUnsafe(l+d[e]),h=s.allocUnsafe(l+d[e]),f=0;f<l;f++)c[f]=54^t[f],h[f]=92^t[f];var p=s.allocUnsafe(l+r+4);c.copy(p,0,0,l),this.ipad1=p,this.ipad2=c,this.opad=h,this.alg=e,this.blocksize=l,this.hash=a,this.size=d[e]}h.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,i){a(r,n);
vendor: 6,836 bytes, line 2
2var o=new h(i=i||"sha1",e=c(e,l,"Password"),(t=c(t,l,"Salt")).length),u=s.allocUnsafe(n),f=s.allocUnsafe(t.length+4);t.copy(f,0,0,t.length);for(var p=0,m=d[i],g=Math.ceil(n/m),b=1;b<=g;b++){f.writeUInt32BE(b,t.length);for(var y=o.run(f,o.ipad1),A=y,v=1;v<r;v++){A=o.run(A,o.ipad2);for(var w=0;w<m;w++)y[w]^=A[w]}y.copy(u,p),p+=m}return u}},{"./default-encoding":462,"./precondition":463,"./to-buffer":465,"create-hash/md5":387,ripemd160:493,"safe-buffer":494,"sha.js":498}],465:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;t.exports=function(e,t,r){if(n.isBuffer(e))return e;if("string"==typeof e)return n.from(e,t);if(ArrayBuffer.isView(e))return n.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},{"safe-buffer":494}],466:[function(e,t,r){(function(e){(function(){"use strict";void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}}:t.exports=e}).call(this)}).call(this,e("_process"))},{_process:467}],467:[function(e,t,r){"use strict";var n,i,o=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,u=[],d=!1,h=-1;function f(){d&&c&&(d=!1,c.length?u=c.concat(u):h=-1,u.length&&p())}function p(){if(!d){var e=l(f);d=!0;for(var t=u.length;t;){for(c=u,u=[];++h<t;)c&&c[h].run();h=-1,t=u.length}c=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new m(e,t)),1!==u.length||d||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],468:[function(e,t,r){"use strict";r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":471,"./publicEncrypt":472}],469:[function(e,t,r){"use strict";var n=e("create-hash"),i=e("safe-buffer").Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,s=i.alloc(0),a=0;s.length<t;)r=o(a++),s=i.concat([s,n("sha1").update(e).update(r).digest()]);return s.slice(0,t)}},{"create-hash":386,"safe-buffer":494}],470:[function(e,t,r){arguments[4][184][0].apply(r,arguments)},{buffer:188,dup:184}],471:[function(e,t,r){"use strict";var n=e("parse-asn1"),i=e("./mgf"),o=e("./xor"),s=e("bn.js"),a=e("browserify-rsa"),l=e("create-hash"),c=e("./withPublic"),u=e("safe-buffer").Buffer;t.exports=function(e,t,r){var d;d=e.padding?e.padding:r?1:4;var h,f=n(e),p=f.modulus.byteLength();if(t.length>p||new s(t).cmp(f.modulus)>=0)throw new Error("decryption error");h=r?c(new s(t),f):a(t,f);var m=u.alloc(p-h.length);if(h=u.concat([m,h],p),4===d)return function(e,t){var r=e.modulus.byteLength(),n=l("sha1").update(u.alloc(0)).digest(),s=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,s+1),c=t.slice(s+1),d=o(a,i(c,s)),h=o(c,i(d,r-s-1));if(function(e,t){e=u.from(e),t=u.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));for(var i=-1;++i<n;)r+=e[i]^t[i];return r}(n,h.slice(0,s)))throw new Error("decryption error");for(var f=s;0===h[f];)f++;if(1!==h[f++])throw new Error("decryption error");return h.slice(f)}(f,h);if(1===d)return function(e,t,r){for(var n=t.slice(0,2),i=2,o=0;0!==t[i++];)if(i>=t.length){o++;break}var s=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,s.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}(0,h,r);if(3===d)return h;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,t,r){"use strict";var n=e("parse-asn1"),i=e("randombytes"),o=e("create-hash"),s=e("./mgf"),a=e("./xor"),l=e("bn.js"),c=e("./withPublic"),u=e("browserify-rsa"),d=e("safe-buffer").Buffer;t.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var f,p=n(e);if(4===h)f=function(e,t){var r=e.modulus.byteLength(),n=t.length,c=o("sha1").update(d.alloc(0)).digest(),u=c.length,h=2*u;if(n>r-h-2)throw new Error("message too long");var f=d.alloc(r-n-h-2),p=r-u-1,m=i(u),g=a(d.concat([c,f,d.alloc(1,1),t],p),s(m,p)),b=a(m,s(g,u));return new l(d.concat([d.alloc(1),b,g],r))}(p,t);else if(1===h)f=function(e,t,r){var n,o=t.length,s=e.modulus.byteLength();if(o>s-11)throw new Error("message too long");return n=r?d.alloc(s-o-3,255):function(e){for(var t,r=d.allocUnsafe(e),n=0,o=i(2*e),s=0;n<e;)s===o.length&&(o=i(2*e),s=0),(t=o[s++])&&(r[n++]=t);return r}(s-o-3),new l(d.concat([d.from([0,r?1:2]),n,d.alloc(1),t],s))}(p,t,r);else{if(3!==h)throw new Error("unknown padding");if((f=new l(t)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return r?u(f,p):c(f,p)}},{"./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,t,r){"use strict";var n=e("bn.js"),i=e("safe-buffer").Buffer;t.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},{"bn.js":470,"safe-buffer":494}],474:[function(e,t,r){"use strict";
2t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],475:[function(e,t,r){(function(r,n){(function(){"use strict";var i=e("safe-buffer").Buffer,o=n.crypto||n.msCrypto;o&&o.getRandomValues?t.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var s=0;s<e;s+=65536)o.getRandomValues(n.slice(s,s+65536));else o.getRandomValues(n);return"function"==typeof t?r.nextTick(function(){t(null,n)}):n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,"safe-buffer":494}],476:[function(e,t,r){(function(t,n){(function(){"use strict";function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=e("safe-buffer"),s=e("randombytes"),a=o.Buffer,l=o.kMaxLength,c=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function d(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>l||e>t)throw new RangeError("offset out of range")}function h(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>l)throw new RangeError("buffer too small")}function f(e,r,n,i){if(t.browser){var o=e.buffer,a=new Uint8Array(o,r,n
2);return c.getRandomValues(a),i?void t.nextTick(function(){i(null,e)}):e}if(!i)return s(n).copy(e,r),e;s(n,function(t,n){if(t)return i(t);n.copy(e,r),i(null,e)})}c&&c.getRandomValues||!t.browser?(r.randomFill=function(e,t,r,i){if(!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)i=t,t=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-t;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return d(t,e.length),h(r,t,e.length),f(e,t,r,i)},r.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(a.isBuffer(e)||e instanceof n.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===r&&(r=e.length-t),h(r,t,e.length),f(e,t,r)}):(r.randomFill=i,r.randomFillSync=i)}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(e,t,r){"use strict";var n={};function i(e,t,r){r||(r=Error);var i=function(e){var r,n;function i(r,n,i){return e.call(this,function(e,r,n){return"string"==typeof t?t:t(e,r,n)}(r,n,i))||this}return n=e,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=e,n[e]=i}function o(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(e){return String(e)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError),i("ERR_INVALID_ARG_TYPE",function(e,t,r){var n,i,s,a;if("string"==typeof t&&(i="not ",t.substr(!s||s<0?0:+s,i.length)===i)?(n="must not be",t=t.replace(/^not /,"")):n="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(n," ").concat(o(t,"type"));else{var l=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(l," ").concat(n," ").concat(o(t,"type"))}return a+". Received type ".concat(typeof r)},TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=n},{}],478:[function(e,t,r){(function(r){(function(){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=c;var i=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(c,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var l=s[a];c.prototype[l]||(c.prototype[l]=o.prototype[l])}function c(e){if(!(this instanceof c))return new c(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this)}).call(this,e("_process"))},{"./_stream_readable":480,"./_stream_writable":482,_process:467,inherits:440}],479:[function(e,t,r){"use strict";
vendor: 6,183 bytes, line 2
2t.exports=i;var n=e("./_stream_transform");function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}e("inherits")(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":481,inherits:440}],480:[function(e,t,r){(function(r,n){(function(){"use strict";var i;t.exports=_,_.ReadableState=C,e("events").EventEmitter;var o,s=function(e,t){return e.listeners(t).length},a=e("./internal/streams/stream"),l=e("buffer").Buffer,c=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=e("util");o=u&&u.debuglog?u.debuglog("stream"):function(){};var d,h,f,p=e("./internal/streams/buffer_list"),m=e("./internal/streams/destroy"),g=e("./internal/streams/state").getHighWaterMark,b=e("../errors").codes,y=b.ERR_INVALID_ARG_TYPE,A=b.ERR_STREAM_PUSH_AFTER_EOF,v=b.ERR_METHOD_NOT_IMPLEMENTED,w=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;e("inherits")(_,a);var x=m.errorOrDestroy,k=["error","close","destroy","pause","resume"];function C(t,r,n){i=i||e("./_stream_duplex"),t=t||{},"boolean"!=typeof n&&(n=r instanceof i),this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",n),this.buffer=new p,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=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=e("string_decoder/").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function _(t){if(i=i||e("./_stream_duplex"),!(this instanceof _))return new _(t);var r=this instanceof i;this._readableState=new C(t,this,r),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function S(e,t,r,n,i){o("readableAddChunk",t);var s,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,O(e)))}}(e,a);else if(i||(s=function(e,t){var r,n;return n=t,l.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new y("chunk",["string","Buffer","Uint8Array"],t)),r}(a,t)),s)x(e,s);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n)a.endEmitted?x(e,new w):E(e,a,t,!0);else if(a.ended)x(e,new A);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?E(e,a,t,!1):N(e,a)):E(e,a,t,!1)}else n||(a.reading=!1,N(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function E(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&M(e)),N(e,t)}function T(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=1073741824?e=1073741824:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(O,e))}function O(e){var t=e._readableState;o("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function N(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function R(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){o("readable nexttick read 0"),e.read(0)}function I(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(o("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function j(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(F,t,e))}function F(e,t){if(o("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function z(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),_.prototype.destroy=m.destroy,_.prototype._undestroy=m.undestroy,_.prototype._destroy=function(e,t){t(e)},_.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=l.from(e,t),t=""),r=!0),S(this,e,t,!1,r)},_.prototype.unshift=function(e){return S(this,e,null,!0,!1)},_.prototype.isPaused=function(){return!1===this._readableState.flowing},_.prototype.setEncoding=function(t){d||(d=e("string_decoder/").StringDecoder);var r=new d(t);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;
vendor: 2,636 bytes, line 2
2for(var n=this._readableState.buffer.head,i="";null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this},_.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?j(this):M(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&j(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=T(r,t))),null===(n=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&j(this)),null!==n&&this.emit("data",n),n},_.prototype._read=function(e){x(this,new v("_read()"))},_.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,t);var a=t&&!1===t.end||e===r.stdout||e===r.stderr?g:c;function l(t,r){o("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,o("cleanup"),e.removeListener("close",p),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",h),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){o("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",l);var u=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,L(e))}}(n);e.on("drain",u);var d=!1;function h(t){o("ondata");var r=e.write(t);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==z(i.pipes,e))&&!d&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function f(t){o("onerror",t),g(),e.removeListener("error",f),0===s(e,"error")&&x(e,t)}function p(){e.removeListener("finish",m),g()}function m(){o("onfinish"),e.removeListener("close",p),g()}function g(){o("unpipe"),n.unpipe(e)}return n.on("data",h),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 9,119 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",p),e.once("finish",m),e.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=z(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},_.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?M(this):i.reading||r.nextTick(D,this))),n},_.prototype.addListener=_.prototype.on,_.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(R,this),n},_.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(R,this),t},_.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(I,e,t))}(this,e)),e.paused=!1,this},_.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},_.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(o("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){o("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<k.length;s++)e.on(k[s],this.emit.bind(this,k[s]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(_.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=e("./internal/streams/async_iterator")),h(this)}),Object.defineProperty(_.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(_.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(_.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),_._fromList=B,Object.defineProperty(_.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(_.from=function(t,r){return void 0===f&&(f=e("./internal/streams/from")),f(_,t,r)})}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?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,t,r){"use strict";t.exports=u;var n=e("../errors").codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,l=e("./_stream_duplex");function c(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);l.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new a;if(e._transformState.transforming)throw new s;return e.push(null)}e("inherits")(u,l),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,l.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,r){r(new i("_transform()"))},u.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){l.prototype._destroy.call(this,e,function(e){t(e)})}},{"../errors":477,"./_stream_duplex":478,inherits:440}],482:[function(e,t,r){(function(r,n){(function(){"use strict";function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}var o;t.exports=_,_.WritableState=C;var s,a={deprecate:e("util-deprecate")},l=e("./internal/streams/stream"),c=e("buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=e("./internal/streams/destroy"),h=e("./internal/streams/state").getHighWaterMark,f=e("../errors").codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,b=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,A=f.ERR_STREAM_NULL_VALUES,v=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,x=d.errorOrDestroy;function k(){}function C(t,n,s){o=o||e("./_stream_duplex"),t=t||{},"boolean"!=typeof s&&(s=n instanceof o),this.objectMode=!!t.objectMode,s&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",s),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(N,e,t),e._writableState.errorEmitted=!0,x(e,i)):(o(i),e._writableState.errorEmitted=!0,x(e,i),N(e,t))}(e,n,i,t,o);else{var s=M(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||T(e,n),i?r.nextTick(E,e,n,s,o):E(e,n,s,o)}}(n,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function _(t){var r=this instanceof(o=o||e("./_stream_duplex"));if(!r&&!s.call(_,this))return new _(t);this._writableState=new C(t,this,r),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),l.call(this)}function S(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new y("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function E(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),N(e,t)}function T(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,l=!0;r;)o[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;o.allBuffers=l,S(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,
vendor: 4,411 bytes, line 2
2s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(S(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final(function(r){t.pendingcb--,r&&x(e,r),t.prefinished=!0,e.emit("prefinish"),N(e,t)})}function N(e,t){var n=M(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(O,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}e("inherits")(_,l),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===_&&e&&e._writableState instanceof C}})):s=function(e){return e instanceof this},_.prototype.pipe=function(){x(this,new b)},_.prototype.write=function(e,t,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=k),o.ending?function(e,t){var n=new v;x(e,n),r.nextTick(t,n)}(this,n):(a||function(e,t,n,i){var o;return null===n?o=new A:"string"==typeof n||t.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(x(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,a,n,i,o);return l}(this,o,a,e,t,n)),s},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||T(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new m("_write()"))},_.prototype._writev=null,_.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,N(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(_.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=d.destroy,_.prototype._undestroy=d.undestroy,_.prototype._destroy=function(e,t){t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}
vendor: 2,460 bytes, line 2
2,{"../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,t,r){(function(r){(function(){"use strict";var n;function i(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=e("./end-of-stream"),s=Symbol("lastResolve"),a=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),u=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function p(e){var t=e[s];if(null!==t){var r=e[h].read();null!==r&&(e[u]=null,e[s]=null,e[a]=null,t(f(r,!1)))}}function m(e){r.nextTick(p,e)}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[c])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise(function(t,n){r.nextTick(function(){e[l]?n(e[l]):t(f(void 0,!0))})});var n,i=this[u];if(i)n=new Promise(function(e,t){return function(r,n){e.then(function(){t[c]?r(f(void 0,!0)):t[d](r,n)},n)}}(i,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(f(o,!1));n=new Promise(this[d])}return this[u]=n,n}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(f(void 0,!0))})})}),n),g);t.exports=function(e){var t,r=Object.create(b,(i(t={},h,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,l,{value:null,writable:!0}),i(t,c,{value:e._readableState.endEmitted,writable:!0}),i(t,d,{value:function(e,t){var n=r[h].read();n?(r[u]=null,r[s]=null,r[a]=null,e(f(n,!1))):(r[s]=e,r[a]=t)},writable:!0}),t));return r[u]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[a];return null!==t&&(r[u]=null,r[s]=null,r[a]=null,t(e)),void(r[l]=e)}var n=r[s];null!==n&&(r[u]=null,r[s]=null,r[a]=null,n(f(void 0,!0))),r[c]=!0}),e.on("readable",m.bind(null,r)),r}}
vendor: 6,536 bytes, line 2
2).call(this)}).call(this,e("_process"))},{"./end-of-stream":486,_process:467}],484:[function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(e,t,r){return(t=a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a(n.key),n)}}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var l=e("buffer").Buffer,c=e("util").inspect,u=c&&c.custom||"inspect";t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r,n;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return l.alloc(0);for(var t,r,n,i=l.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=i,n=s,l.prototype.copy.call(t,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?n+=i:n+=i.slice(0,e),0==(e-=o)){o===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=l.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,t}},{key:u,value:function(e,t){return c(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},{buffer:220,util:188}],485:[function(e,t,r){(function(e){(function(){"use strict";function r(e,t){i(e,t),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var s=this,a=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return a||l?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(n,s):(s._writableState.errorEmitted=!0,e.nextTick(r,s,t)):e.nextTick(r,s,t):o?(e.nextTick(n,s),o(t)):e.nextTick(n,s)}),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(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:467}],486:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function e(t,r,o){if("function"==typeof r)return e(t,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&t.readable,a=r.writable||!1!==r.writable&&t.writable,l=function(){t.writable||u()},c=t._writableState&&t._writableState.finished,u=function(){a=!1,c=!0,s||o.call(t)},d=t._readableState&&t._readableState.endEmitted,h=function(){s=!1,d=!0,a||o.call(t)},f=function(e){o.call(t,e)},p=function(){var e;return s&&!d?(t._readableState&&t._readableState.ended||(e=new n),o.call(t,e)):a&&!c?(t._writableState&&t._writableState.ended||(e=new n),o.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",u),t.on("abort",p),t.req?m():t.on("request",m)):a&&!t._writableState&&(t.on("end",l),t.on("close",l)),t.on("end",h),t.on("finish",u),!1!==r.error&&t.on("error",f),t.on("close",p),function(){t.removeListener("complete",u),t.removeListener("abort",p),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",l),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("end",h),t.removeListener("error",f),t.removeListener("close",p)}}},{"../../../errors":477}],487:[function(e,t,r){"use strict";
2t.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],488:[function(e,t,r){"use strict";var n,i=e("../../../errors").codes,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function l(t,r,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",function(){a=!0}),void 0===n&&(n=e("./end-of-stream")),n(t,{readable:r,writable:i},function(e){if(e)return o(e);a=!0,o()});var l=!1;return function(e){if(!a&&!l)return l=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}function c(e){e()}function u(e,t){return e.pipe(t)}function d(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}t.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,i=d(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var s=t.map(function(e,r){var o=r<t.length-1;return l(e,o,r>0,function(e){n||(n=e),e&&s.forEach(c),o||(s.forEach(c),i(n))})});return t.reduce(u)}},{"../../../errors":477,"./end-of-stream":486}],489:[function(e,t,r){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(e,t,r,i){var o=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":477}],490:[function(e,t,r){"use strict";t.exports=e("events").EventEmitter},{events:422}],491:[function(e,t,r){"use strict";(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js"),r.finished=e("./lib/internal/streams/end-of-stream.js"),r.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,t,r){"use strict";var n=function(e){var t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var o=t&&t.prototype instanceof h?t:h,s=Object.create(o.prototype),a=new _(i||[]);return n(s,"_invoke",{value:w(e,r,a)}),s}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d={};function h(){}function f(){}function p(){}var m={};l(m,o,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(S([])));b&&b!==t&&r.call(b,o)&&(m=b);var y=p.prototype=h.prototype=Object.create(m);function A(e){["next","throw","return"].forEach(function(t){l(e,t,function(e){return this._invoke(t,e)})})}function v(e,t){var i;n(this,"_invoke",{value:function(n,o){function s(){return new t(function(i,s){!function n(i,o,s,a){var l=u(e[i],e,o);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,s,a)},function(e){n("throw",e,s,a)}):t.resolve(d).then(function(e){c.value=e,s(c)},function(e){return n("throw",e,s,a)})}a(l.arg)}(n,o,i,s)})}return i=i?i.then(s,s):s()}})}function w(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return E()}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=x(s,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=u(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function x(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 4,301 bytes, line 2
2(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var i=u(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:E}}function E(){return{value:void 0,done:!0}}return f.prototype=p,n(y,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},A(v.prototype),l(v.prototype,s,function(){return this}),e.AsyncIterator=v,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var s=new v(c(t,r,n,i),o);return e.isGeneratorFunction(r)?s:s.next().then(function(e){return e.done?e.value:s.next()})},A(y),l(y,a,"Generator"),l(y,o,function(){return this}),l(y,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=S,_.prototype={constructor:_,reset:function(e){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(C),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return s.type="throw",s.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;C(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}
vendor: 4,618 bytes, line 2
2("object"==typeof t?t.exports:{});try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},{}],493:[function(e,t,r){"use strict";var n=e("buffer").Buffer,i=e("inherits"),o=e("hash-base"),s=new Array(16),a=[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],l=[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],c=[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],u=[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],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(e,t){return e<<t|e>>>32-t}function m(e,t,r,n,i,o,s,a){return p(e+(t^r^n)+o+s|0,a)+i|0}function g(e,t,r,n,i,o,s,a){return p(e+(t&r|~t&n)+o+s|0,a)+i|0}function b(e,t,r,n,i,o,s,a){return p(e+((t|~r)^n)+o+s|0,a)+i|0}function y(e,t,r,n,i,o,s,a){return p(e+(t&n|r&~n)+o+s|0,a)+i|0}function A(e,t,r,n,i,o,s,a){return p(e+(t^(r|~n))+o+s|0,a)+i|0}i(f,o),f.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,f=0|this._e,v=0|this._a,w=0|this._b,x=0|this._c,k=0|this._d,C=0|this._e,_=0;_<80;_+=1){var S,E;_<16?(S=m(r,n,i,o,f,e[a[_]],d[0],c[_]),E=A(v,w,x,k,C,e[l[_]],h[0],u[_])):_<32?(S=g(r,n,i,o,f,e[a[_]],d[1],c[_]),E=y(v,w,x,k,C,e[l[_]],h[1],u[_])):_<48?(S=b(r,n,i,o,f,e[a[_]],d[2],c[_]),E=b(v,w,x,k,C,e[l[_]],h[2],u[_])):_<64?(S=y(r,n,i,o,f,e[a[_]],d[3],c[_]),E=g(v,w,x,k,C,e[l[_]],h[3],u[_])):(S=A(r,n,i,o,f,e[a[_]],d[4],c[_]),E=m(v,w,x,k,C,e[l[_]],h[4],u[_])),r=f,f=o,o=p(i,10),i=n,n=S,v=C,C=k,k=p(x,10),x=w,w=E}var T=this._b+i+k|0;this._b=this._c+o+C|0,this._c=this._d+f+v|0,this._d=this._e+r+w|0,this._e=this._a+n+x|0,this._a=T},f.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 e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},t.exports=f},{buffer:220,"hash-base":425,inherits:440}],494:[function(e,t,r){"use strict";var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:220}],495:[function(e,t,r){(function(r){(function(){"use strict";var n,i=e("buffer"),o=i.Buffer,s={};for(n in i)i.hasOwnProperty(n)&&"SlowBuffer"!==n&&"Buffer"!==n&&(s[n]=i[n]);var a=s.Buffer={};for(n in o)o.hasOwnProperty(n)&&"allocUnsafe"!==n&&"allocUnsafeSlow"!==n&&(a[n]=o[n]);if(s.Buffer.prototype=o.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(e,t,r){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,r)}),a.alloc||(a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>
vendor: 37,333 bytes, line 2
2=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=o(e);return t&&0!==t.length?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n}),!s.kStringMaxLength)try{s.kStringMaxLength=r.binding("buffer").kStringMaxLength}catch(e){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this)}).call(this,e("_process"))},{_process:467,buffer:220}],496:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});const n=e("xmlchars/xml/1.0/ed5"),i=e("xmlchars/xml/1.1/ed2"),o=e("xmlchars/xmlns/1.0/ed3");var s=n.isS,a=n.isChar,l=n.isNameStartChar,c=n.isNameChar,u=n.S_LIST,d=n.NAME_RE,h=i.isChar,f=o.isNCNameStartChar,p=o.isNCNameChar,m=o.NC_NAME_RE;const g="http://www.w3.org/XML/1998/namespace",b="http://www.w3.org/2000/xmlns/",y={__proto__:null,xml:g,xmlns:b},A={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},v=e=>34===e||39===e,w=[34,39],x=[...w,91,62],k=[...w,60,93],C=[61,63,...u],_=[...u,62,38,60];function S(e,t,r){switch(t){case"xml":r!==g&&e.fail(`xml prefix must be bound to ${g}.`);break;case"xmlns":r!==b&&e.fail(`xmlns prefix must be bound to ${b}.`)}switch(r){case b:e.fail(""===t?`the default namespace may not be set to ${r}.`:`may not assign a prefix (even "xmlns") to the URI ${b}.`);break;case g:switch(t){case"xml":break;case"":e.fail(`the default namespace may not be set to ${r}.`);break;default:e.fail("may not assign the xml namespace to another prefix.")}}}const E=e=>m.test(e),T=e=>d.test(e);r.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];const M={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"};r.SaxesParser=class{constructor(e){this.opt=null!=e?e:{},this.fragmentOpt=!!this.opt.fragment;const t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=f,this.nameCheck=p,this.isName=E,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},y);const e=this.opt.additionalNamespaces;null!=e&&(function(e,t){for(const r of Object.keys(t))S(e,r,t[r])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=l,this.nameCheck=c,this.isName=T,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 e;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:t}=this;this.state=t?13:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:r}=this.opt;if(void 0===r){if(!0===this.opt.forceXMLVersion)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");r="1.0"}this.setXMLVersion(r),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(A),null===(e=this.readyHandler)||void 0===e||e.call(this)}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[M[e]]=t}off(e){this[M[e]]=void 0}makeError(e){var t;let r=null!==(t=this.fileName)&&void 0!==t?t:"";return this.trackPosition&&(r.length>0&&(r+=":"),r+=`${this.line}:${this.column}`),r.length>0&&(r+=": "),new Error(r+e)}fail(e){const t=this.makeError(e),r=this.errorHandler;if(void 0===r)throw t;return r(t),this}write(e){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let t=!1;null===e?(t=!0,e=""):"object"==typeof e&&(e=e.toString()),void 0!==this.carriedFromPrevious&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let r=e.length;const n=e.charCodeAt(r-1);!t&&(13===n||n>=55296&&n<=56319)&&(this.carriedFromPrevious=e[r-1],r--,e=e.slice(0,r));const{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<r;)i[this.state].call(this);return this.chunkPosition+=r,t?this.end():this}close(){return this.write(null)}getCode10(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const r=e.charCodeAt(t);if(this.column++,r<55296){if(r>=32||9===r)return r;switch(r){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:return 10===e.charCodeAt(t+1)&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;const n=65536+1024*(r-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return-1;const r=e.charCodeAt(t);if(this.column++,r<55296){if(r>31&&r<127||r>159&&8232!==r||9===r)return r;switch(r){case 10:return this.line++,this.column=0,this.positionAtNewLine=this.position,10;case 13:{const r=e.charCodeAt(t+1);10!==r&&133!==r||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,-2;default:return this.fail("disallowed character."),r}}if(r>56319)return r>=57344&&r<=65533||this.fail("disallowed character."),r;const n=65536+1024*(r-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const e=this.getCode();return-2===e?10:e}unget(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this;const{chunk:r}=this;for(;;){const n=this.getCode(),i=-2===n,o=i?10:n;if(-1===o||e.includes(o))return this.text+=r.slice(t,this.prevI),o;i&&(this.text+=r.slice(t,this.prevI)+"\n",t=this.i)}}captureToChar(e){let{i:t}=this;const{chunk:r}=this;for(;;){let n=this.getCode();switch(n){case-2:this.text+=r.slice(t,this.prevI)+"\n",t=this.i,n=10;break;case-1:return this.text+=r.slice(t),!1}if(n===e)return this.text+=r.slice(t,this.prevI),!0}}captureNameChars(){const{chunk:e,i:t}=this;for(;;){const r=this.getCode();if(-1===r)return this.name+=e.slice(t),-1;if(!c(r))return this.name+=e.slice(t,this.prevI),-2===r?10:r}}skipSpaces(){for(;;){const e=this.getCodeNorm();if(-1===e||!s(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,"1.0"===e?(this.isChar=a,this.getCode=this.getCode10):(this.isChar=h,this.getCode=this.getCode11)}sBegin(){65279===this.chunk.charCodeAt(0)&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case 60:if(this.state=15,0!==this.text.length)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}sDoctype(){var e;const t=this.captureTo(x);switch(t){case 62:null===(e=this.doctypeHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(t),91===t?this.state=4:v(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){const e=this.captureTo(k);-1!==e&&(this.text+=String.fromCodePoint(e),93===e?this.state=2:60===e?this.state=6:v(e)&&(this.state=5,this.q=e))}sDTDQuoted(){const e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){const e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang="";break;case 63:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,"-"!==t&&(this.state="--"===t?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=45===e?10:8}sDTDCommentEnded(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(63)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const e=this.getCodeNorm();this.text+=String.fromCodePoint(e),62===e&&(this.state=4)}sText(){0!==this.tags.length?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:e}=this;const{chunk:t}=this;e:for(;;)switch(this.getCode()){case-2:this.entity+=t.slice(e,this.prevI)+"\n",e=this.i;break;case 59:{const{entityReturnState:r}=this,n=this.entity+t.slice(e,this.prevI);let i;this.state=r,""===n?(this.fail("empty entity name."),i="&;"):(i=this.parseEntity(n),this.entity=""),13===r&&void 0===this.textHandler||(this.text+=i);break e}case-1:this.entity+=t.slice(e);break e}}sOpenWaka(){const e=this.getCode();if(l(e))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(e){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 e;const t=this.getCodeNorm();45===t?(this.state=19,null===(e=this.commentHandler)||void 0===e||e.call(this,this.text),this.text=""):(this.text+="-"+String.fromCodePoint(t),this.state=17)}sCommentEnded(){const e=this.getCodeNorm();62!==e?(this.fail("malformed comment."),this.text+="--"+String.fromCodePoint(e),this.state=17):this.state=13}sCData(){this.captureToChar(93)&&(this.state=21)}sCDataEnding(){const e=this.getCodeNorm();93===e?this.state=22:(this.text+="]"+String.fromCodePoint(e),this.state=20)}sCDataEnding2(){var e;const t=this.getCodeNorm();switch(t){case 62:null===(e=this.cdataHandler)||void 0===e||e.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]"+String.fromCodePoint(t),this.state=20}}sPIFirstChar(){const e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):63===e||s(e)?(this.fail("processing instruction without a target."),this.state=63===e?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){const{chunk:e,i:t}=this;for(;;){const r=this.getCodeNorm();if(-1===r)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(r)){this.piTarget+=e.slice(t,this.prevI);const n=63===r;n||s(r)?"xml"===this.piTarget?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?33:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(r));break}}}sPIBody(){if(0===this.text.length){const e=this.getCodeNorm();63===e?this.state=26:s(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(63)&&(this.state=26)}sPIEnding(){var e;const t=this.getCodeNorm();if(62===t){const{piTarget:t}=this;"xml"===t.toLowerCase()&&this.fail("the XML declaration must appear at the start of the document."),null===(e=this.piHandler)||void 0===e||e.call(this,{target:t,body:this.text}),this.piTarget=this.text="",this.state=13}else 63===t?this.text+="?":(this.text+="?"+String.fromCodePoint(t),this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const e=this.skipSpaces();63!==e?-1!==e&&(this.state=28,this.name=String.fromCodePoint(e)):this.state=33}sXMLDeclName(){const e=this.captureTo(C);if(63===e)return this.state=33,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(s(e)||61===e){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=61===e?30:29}}sXMLDeclEq(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");s(e)||(61!==e&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const e=this.getCodeNorm();if(63===e)return this.state=33,void this.fail("XML declaration is incomplete.");s(e)||(v(e)?this.q=e:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const e=this.captureTo([this.q,63]);if(63===e)return this.state=33,this.text="",void this.fail("XML declaration is incomplete.");if(-1===e)return;const t=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=t;break;case"standalone":"yes"!==t&&"no"!==t&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name="",this.state=32}sXMLDeclSeparator(){const e=this.getCodeNorm();63!==e?(s(e)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=33}sXMLDeclEnding(){var e;62===this.getCodeNorm()?("xml"!==this.piTarget?this.fail("processing instructions are not allowed before root."):"version"!==this.name&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),null===(e=this.xmldeclHandler)||void 0===e||e.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 e;const t=this.captureNameChars();if(-1===t)return;const r=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=r.ns=Object.create(null)),null===(e=this.openTagStartHandler)||void 0===e||e.call(this,r),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case 62:this.openTag();break;case 47:this.state=35;break;default:s(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){62===this.getCode()?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const e=this.skipSpaces();-1!==e&&(l(e)?(this.unget(),this.state=37):62===e?this.openTag():47===e?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const e=this.captureNameChars();61===e?this.state=39:s(e)?this.state=38:62===e?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):-1!==e&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const e=this.skipSpaces();switch(e){case-1:return;case 61:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",62===e?this.openTag():l(e)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const e=this.getCodeNorm();v(e)?(this.q=e,this.state=40):s(e)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:e,chunk:t}=this;let{i:r}=this;for(;;)switch(this.getCode()){case e:return this.pushAttrib(this.name,this.text+t.slice(r,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=t.slice(r,this.prevI),this.state=14,void(this.entityReturnState=40);case 10:case-2:case 9:this.text+=t.slice(r,this.prevI)+" ",r=this.i;break;case 60:return this.text+=t.slice(r,this.prevI),void this.fail("disallowed character.");case-1:return void(this.text+=t.slice(r))}}sAttribValueClosed(){const e=this.getCodeNorm();s(e)?this.state=36:62===e?this.openTag():47===e?this.state=35:l(e)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const e=this.captureTo(_);switch(e){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="",62===e?this.openTag():this.state=36}}sCloseTag(){const e=this.captureNameChars();62===e?this.closeTag():s(e)?this.state=44:-1!==e&&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:e,forbiddenState:t}=this;const{chunk:r,textHandler:n}=this;e:for(;;)switch(this.getCode()){case 60:if(this.state=15,void 0!==n){const{text:t}=this,i=r.slice(e,this.prevI);0!==t.length?(n(t+i),this.text=""):0!==i.length&&n(i)}t=0;break e;case 38:this.state=14,this.entityReturnState=13,void 0!==n&&(this.text+=r.slice(e,this.prevI)),t=0;break e;case 93:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw new Error("impossible state")}break;case 62:2===t&&this.fail('the string "]]>" is disallowed in char data.'),t=0;break;case-2:void 0!==n&&(this.text+=r.slice(e,this.prevI)+"\n"),e=this.i,t=0;break;case-1:void 0!==n&&(this.text+=r.slice(e));break e;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this;const{chunk:t,textHandler:r}=this;let n=!1;e:for(;;){const i=this.getCode();switch(i){case 60:if(this.state=15,void 0!==r){const{text:n}=this,i=t.slice(e,this.prevI);0!==n.length?(r(n+i),this.text=""):0!==i.length&&r(i)}break e;case 38:this.state=14,this.entityReturnState=13,void 0!==r&&(this.text+=t.slice(e,this.prevI)),n=!0;break e;case-2:void 0!==r&&(this.text+=t.slice(e,this.prevI)+"\n"),e=this.i;break;case-1:void 0!==r&&(this.text+=t.slice(e));break e;default:s(i)||(n=!0)}}n&&(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(e,t){var r;const{prefix:n,local:i}=this.qname(e),o={name:e,prefix:n,local:i,value:t};if(this.attribList.push(o),null===(r=this.attributeHandler)||void 0===r||r.call(this,o),"xmlns"===n){const e=t.trim();"1.0"===this.currentXMLVersion&&""===e&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[i]=e,S(this,i,e)}else if("xmlns"===e){const e=t.trim();this.topNS[""]=e,S(this,"",e)}}pushAttribPlain(e,t){var r;const n={name:e,value:t};this.attribList.push(n),null===(r=this.attributeHandler)||void 0===r||r.call(this,n)}end(){var e,t;this.sawRoot||this.fail("document must contain a root element.");const{tags:r}=this;for(;r.length>0;){const e=r.pop();this.fail("unclosed tag: "+e.name)}0!==this.state&&13!==this.state&&this.fail("unexpected end.");const{text:n}=this;return 0!==n.length&&(null===(e=this.textHandler)||void 0===e||e.call(this,n),this.text=""),this._closed=!0,null===(t=this.endHandler)||void 0===t||t.call(this),this._init(),this}resolve(e){var t,r;let n=this.topNS[e];if(void 0!==n)return n;const{tags:i}=this;for(let o=i.length-1;o>=0;o--)if(n=i[o].ns[e],void 0!==n)return n;return n=this.ns[e],void 0!==n?n:null===(r=(t=this.opt).resolvePrefix)||void 0===r?void 0:r.call(t,e)}qname(e){const t=e.indexOf(":");if(-1===t)return{prefix:"",local:e};const r=e.slice(t+1),n=e.slice(0,t);return(""===n||""===r||r.includes(":"))&&this.fail(`malformed name: ${e}.`),{prefix:n,local:r}}processAttribsNS(){var e;const{attribList:t}=this,r=this.tag;{const{prefix:t,local:n}=this.qname(r.name);r.prefix=t,r.local=n;const i=r.uri=null!==(e=this.resolve(t))&&void 0!==e?e:"";""!==t&&("xmlns"===t&&this.fail('tags may not have "xmlns" as prefix.'),""===i&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),r.uri=t))}if(0===t.length)return;const{attributes:n}=r,i=new Set;for(const o of t){const{name:e,prefix:t,local:r}=o;let s,a;""===t?(s="xmlns"===e?b:"",a=e):(s=this.resolve(t),void 0===s&&(this.fail(`unbound namespace prefix: ${JSON.stringify(t)}.`),s=t),a=`{${s}}${r}`),i.has(a)&&this.fail(`duplicate attribute: ${a}.`),i.add(a),o.uri=s,n[e]=o}this.attribList=[]}processAttribsPlain(){const{attribList:e}=this,t=this.tag.attributes;for(const{name:r,value:n}of e)void 0!==t[r]&&this.fail(`duplicate attribute: ${r}.`),t[r]=n;this.attribList=[]}openTag(){var e;this.processAttribs();const{tags:t}=this,r=this.tag;r.isSelfClosing=!1,null===(e=this.openTagHandler)||void 0===e||e.call(this,r),t.push(r),this.state=13,this.name=""}openSelfClosingTag(){var e,t,r;this.processAttribs();const{tags:n}=this,i=this.tag;i.isSelfClosing=!0,null===(e=this.openTagHandler)||void 0===e||e.call(this,i),null===(t=this.closeTagHandler)||void 0===t||t.call(this,i),null===(this.tag=null!==(r=n[n.length-1])&&void 0!==r?r:null)&&(this.closedRoot=!0),this.state=13,this.name=""}closeTag(){const{tags:e,name:t}=this;if(this.state=13,this.name="",""===t)return this.fail("weird empty close tag."),void(this.text+="</>");const r=this.closeTagHandler;let n=e.length;for(;n-- >0;){const n=this.tag=e.pop();if(this.topNS=n.ns,null==r||r(n),n.name===t)break;this.fail("unexpected close tag.")}0===n?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if("#"!==e[0]){const t=this.ENTITIES[e];return void 0!==t?t:(this.fail(this.isName(e)?"undefined entity.":"disallowed character in entity name."),`&${e};`)}let t=NaN;return"x"===e[1]&&/^#x[0-9a-f]+$/i.test(e)?t=parseInt(e.slice(2),16):/^#[0-9]+$/.test(e)&&(t=parseInt(e.slice(1),10)),this.isChar(t)?String.fromCodePoint(t):(this.fail("malformed character entity."),`&${e};`)}}},{"xmlchars/xml/1.0/ed5":543,"xmlchars/xml/1.1/ed2":544,"xmlchars/xmlns/1.0/ed3":545}],497:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var l=s%i,c=Math.min(o-a,i-l),u=0;u<c;u++)r[l+u]=e[a+u];a+=c,(s+=c)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},{"safe-buffer":494}],498:[function(e,t,r){"use strict";var n=t.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=e("./sha"),n.sha1=e("./sha1"),n.sha224=e("./sha224"),n.sha256=e("./sha256"),n.sha384=e("./sha384"),n.sha512=e("./sha512")},{"./sha":499,"./sha1":500,"./sha224":501,"./sha256":502,"./sha384":503,"./sha512":504}],499:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,i.call(this,64,56)}function c(e){return e<<30|e>>>2}function u(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,l=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=r[d-3]^r[d-8]^r[d-14]^r[d-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((t=n)<<5|t>>>27)+u(f,i,o,a)+l+r[h]+s[f];l=a,a=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],500:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function l(){this.init(),this._w=a,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(l,i),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,l=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=c(n)+d(p,i,o,a)+l+r[f]+s[p]|0;l=a,a=o,o=u(i),i=n,n=m}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],501:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./sha256"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(64);function l(){this.init(),this._w=a,o.call(this,64,56)}n(l,i),l.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},l.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=l},{"./hash":497,"./sha256":502,inherits:440,"safe-buffer":494}],502:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[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],a=new Array(64);function l(){this.init(),this._w=a,i.call(this,64,56)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(l,i),l.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},l.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,b=0;b<16;++b)r[b]=e.readInt32BE(4*b);for(;b<64;++b)r[b]=0|(((t=r[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[b-7]+f(r[b-15])+r[b-16];for(var y=0;y<64;++y){var A=g+h(l)+c(l,p,m)+s[y]+r[y]|0,v=d(n)+u(n,i,o)|0;g=m,m=p,p=l,l=a+A|0,a=o,o=i,i=n,n=A+v|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],503:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./sha512"),o=e("./hash"),s=e("safe-buffer").Buffer,a=new Array(160);function l(){this.init(),this._w=a,o.call(this,128,112)}n(l,i),l.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},l.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=l},{"./hash":497,"./sha512":504,inherits:440,"safe-buffer":494}],504:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,s=[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],a=new Array(160);function l(){this.init(),this._w=a,i.call(this,128,112)}function c(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0<t>>>0?1:0}n(l,i),l.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},l.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,l=0|this._fh,y=0|this._gh,A=0|this._hh,v=0|this._al,w=0|this._bl,x=0|this._cl,k=0|this._dl,C=0|this._el,_=0|this._fl,S=0|this._gl,E=0|this._hl,T=0;T<32;T+=2)t[T]=e.readInt32BE(4*T),t[T+1]=e.readInt32BE(4*T+4);for(;T<160;T+=2){var M=t[T-30],O=t[T-30+1],N=f(M,O),P=p(O,M),R=m(M=t[T-4],O=t[T-4+1]),D=g(O,M),I=t[T-14],L=t[T-14+1],B=t[T-32],j=t[T-32+1],F=P+L|0,z=N+I+b(F,P)|0;z=(z=z+R+b(F=F+D|0,D)|0)+B+b(F=F+j|0,j)|0,t[T]=z,t[T+1]=F}for(var U=0;U<160;U+=2){z=t[U],F=t[U+1];var H=u(r,n,i),V=u(v,w,x),W=d(r,v),K=d(v,r),q=h(a,C),G=h(C,a),X=s[U],Y=s[U+1],$=c(a,l,y),Q=c(C,_,S),J=E+G|0,Z=A+q+b(J,E)|0;Z=(Z=(Z=Z+$+b(J=J+Q|0,Q)|0)+X+b(J=J+Y|0,Y)|0)+z+b(J=J+F|0,F)|0;var ee=K+V|0,te=W+H+b(ee,K)|0;A=y,E=S,y=l,S=_,l=a,_=C,a=o+Z+b(C=k+J|0,k)|0,o=i,k=x,i=n,x=w,n=r,w=v,r=Z+te+b(v=J+ee|0,J)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+k|0,this._el=this._el+C|0,this._fl=this._fl+_|0,this._gl=this._gl+S|0,this._hl=this._hl+E|0,this._ah=this._ah+r+b(this._al,v)|0,this._bh=this._bh+n+b(this._bl,w)|0,this._ch=this._ch+i+b(this._cl,x)|0,this._dh=this._dh+o+b(this._dl,k)|0,this._eh=this._eh+a+b(this._el,C)|0,this._fh=this._fh+l+b(this._fl,_)|0,this._gh=this._gh+y+b(this._gl,S)|0,this._hh=this._hh+A+b(this._hl,E)|0},l.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=l},{"./hash":497,inherits:440,"safe-buffer":494}],505:[function(e,t,r){"use strict";t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",l));var s=!1;function a(){s||(s=!0,e.end())}function l(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function c(e){if(u(),0===n.listenerCount(this,"error"))throw e}function u(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",l),r.removeListener("error",c),e.removeListener("error",c),r.removeListener("end",u),r.removeListener("close",u),e.removeListener("close",u)}return r.on("error",c),e.on("error",c),r.on("end",u),r.on("close",u),e.on("close",u),e.emit("pipe",r),e}},{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,t,r){"use strict";var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],507:[function(e,t,r){"use strict";
vendor: 8,201 bytes, line 2
2t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":508}],508:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=d;var o=Object.create(e("core-util-is"));o.inherits=e("inherits");var s=e("./_stream_readable"),a=e("./_stream_writable");o.inherits(d,s);for(var l=i(a.prototype),c=0;c<l.length;c++){var u=l[c];d.prototype[u]||(d.prototype[u]=a.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},{"./_stream_readable":510,"./_stream_writable":512,"core-util-is":383,inherits:440,"process-nextick-args":466}],509:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform"),i=Object.create(e("core-util-is"));function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":511,"core-util-is":383,inherits:440}],510:[function(e,t,r){(function(r,n){(function(){"use strict";var i=e("process-nextick-args");t.exports=A;var o,s=e("isarray");A.ReadableState=y,e("events").EventEmitter;var a=function(e,t){return e.listeners(t).length},l=e("./internal/streams/stream"),c=e("safe-buffer").Buffer,u=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=Object.create(e("core-util-is"));d.inherits=e("inherits");var h=e("util"),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=e("./internal/streams/BufferList"),g=e("./internal/streams/destroy");d.inherits(A,l);var b=["error","close","destroy","pause","resume"];function y(t,r){t=t||{};var n=r instanceof(o=o||e("./_stream_duplex"));this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=e("string_decoder/").StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function A(t){if(o=o||e("./_stream_duplex"),!(this instanceof A))return new A(t);this._readableState=new y(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function v(e,t,r,n,i){var o,s=e._readableState;return null===t?(s.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,k(e)}}(e,s)):(i||(o=function(e,t){var r,n;return n=t,c.isBuffer(n)||n instanceof u||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):_(e,s)):w(e,s,t,!1))):n||(s.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&k(e)),_(e,t)}function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function k(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(f("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(C,e):C(e))}function C(e){f("emit readable"),e.emit("readable"),M(e)}function _(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(f("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function E(e){f("readable nexttick read 0"),e.read(0)}function T(e,t){t.reading||(f("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(f("flow",t.flowing);t.flowing&&null!==e.read(););}function O(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function N(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}Object.defineProperty(A.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=g.destroy,A.prototype._undestroy=g.undestroy,A.prototype._destroy=function(e,t){this.push(null),t(e)},A.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},A.prototype.unshift=function(e){return v(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(t){return p||(p=e("string_decoder/").StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this},A.prototype.read=function(e){f("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return f("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):k(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,i=t.needReadable;
vendor: 2,032 bytes, line 2
2return f("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&f("length less than watermark",i=!0),t.ended||t.reading?f("reading or ended",i=!1):i&&(f("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&N(this)),null!==n&&this.emit("data",n),n},A.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},A.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?A:u;function c(t,r){f("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,f("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",d),e.removeListener("error",g),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",A),n.removeListener("data",m),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||d())}function u(){f("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var d=function(e){return function(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,M(e))}}(n);e.on("drain",d);var h=!1,p=!1;function m(t){f("ondata"),p=!1,!1!==e.write(t)||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==R(o.pipes,e))&&!h&&(f("false write response, pause",o.awaitDrain),o.awaitDrain++,p=!0),n.pause())}function g(t){f("onerror",t),A(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",y),A()}function y(){f("onfinish"),e.removeListener("close",b),A()}function A(){f("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prepe
vendor: 5,124 bytes, line 2
2ndListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",b),e.once("finish",y),e.emit("pipe",n),o.flowing||(f("pipe resume"),n.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=R(t.pipes,e);return-1===s||(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},A.prototype.on=function(e,t){var r=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&k(this):i.nextTick(E,this))}return r},A.prototype.addListener=A.prototype.on,A.prototype.resume=function(){var e=this._readableState;return e.flowing||(f("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(T,e,t))}(this,e)),this},A.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},A.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(f("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(i){f("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<b.length;o++)e.on(b[o],this.emit.bind(this,b[o]));return this._read=function(t){f("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),A._fromList=O}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?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,t,r){"use strict";t.exports=s;var n=e("./_stream_duplex"),i=Object.create(e("core-util-is"));function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush(function(t,r){l(e,t,r)}):l(this,null,null)}function l(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},{"./_stream_duplex":508,"core-util-is":383,inherits:440}],512:[function(e,t,r){(function(r,n,i){(function(){"use strict";var o=e("process-nextick-args");function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}t.exports=y;
vendor: 4,132 bytes, line 2
2var a,l=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;y.WritableState=b;var c=Object.create(e("core-util-is"));c.inherits=e("inherits");var u,d={deprecate:e("util-deprecate")},h=e("./internal/streams/stream"),f=e("safe-buffer").Buffer,p=(void 0!==n?n:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},m=e("./internal/streams/destroy");function g(){}function b(t,r){a=a||e("./_stream_duplex"),t=t||{};var n=r instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:u,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=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(C,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),C(e,t))}(e,r,n,t,i);else{var s=x(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||w(e,r),n?l(v,e,r,s,i):v(e,r,s,i)}}(r,e)},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 s(this)}function y(t){if(a=a||e("./_stream_duplex"),!(u.call(y,this)||this instanceof a))return new y(t);this._writableState=new b(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function A(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function v(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function w(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,l=!0;r;)i[a]=r,r.isBuf||(l=!1),r=r.next,a+=1;i.allBuffers=l,A(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:c.length,c,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var r=x(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}c.inherits(y,h),b.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(b.prototype,"buffer",{get:d.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===y&&e&&e._writableState instanceof b}})):u=function(e){return e instanceof this}
vendor: 5,595 bytes, line 2
2,y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,a=!i.objectMode&&(n=e,f.isBuffer(n)||n instanceof p);return a&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,r)),t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,a,n,i,o);return l}(this,i,a,e,t,r)),s},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,C(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?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,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=i,r=s,o.data.copy(t,r),s+=o.data.length,o=o.next;return i},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":520,util:188}],514:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)}),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,t,r){arguments[4][490][0].apply(r,arguments)},{dup:490,events:422}],516:[function(e,t,r){"use strict";
vendor: 4,460 bytes, line 2
2t.exports=e("./readable").PassThrough},{"./readable":517}],517:[function(e,t,r){"use strict";(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.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,t,r){"use strict";t.exports=e("./readable").Transform},{"./readable":517}],519:[function(e,t,r){"use strict";t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":512}],520:[function(e,t,r){arguments[4][217][0].apply(r,arguments)},{buffer:220,dup:217}],521:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":520}],522:[function(e,t,r){arguments[4][218][0].apply(r,arguments)},{dup:218,"safe-buffer":494}],523:[function(e,t,r){(function(t,n){(function(){"use strict";var i=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},l=0;function c(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new c(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=l++,n=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,i(function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":467,timers:523}],524:[function(e,t,r){(function(e){(function(){"use strict";function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],525:[function(e,t,r){"use strict";"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],526:[function(e,t,r){"use strict";t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],527:[function(e,t,r){(function(t,n){(function(){"use strict";var i=/%[sdj%]/g;r.format=function(e){if(!b(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),l=n[r];r<o;l=n[++r])m(l)||!v(l)?s+=" "+l:s+=" "+a(l);return s},r.deprecate=function(e,i){if(y(n.process))return function(){return r.deprecate(e,i).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;return function(){if(!o){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),o=!0}return e.apply(this,arguments)}};var o,s={};function a(e,t){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),p(t)?n.showHidden=t:t&&r._extend(n,t),y(n.showHidden)&&(n.showHidden=!1),y(n.depth)&&(n.depth=2),y(n.colors)&&(n.colors=!1),y(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,e,
vendor: 5,118 bytes, line 2
2n.depth)}function l(e,t){var r=a.styles[t];return r?"\x1b["+a.colors[r][0]+"m"+e+"\x1b["+a.colors[r][1]+"m":e}function c(e,t){return e}function u(e,t,n){if(e.customInspect&&t&&k(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return b(i)||(i=u(e,i,n)),i}var o=function(e,t){if(y(t))return e.stylize("undefined","undefined");if(b(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return g(t)?e.stylize(""+t,"number"):p(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),x(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(t);if(0===s.length){if(k(t)){var l=t.name?": "+t.name:"";return e.stylize("[Function"+l+"]","special")}if(A(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(w(t))return e.stylize(Date.prototype.toString.call(t),"date");if(x(t))return d(t)}var c,v="",C=!1,_=["{","}"];return f(t)&&(C=!0,_=["[","]"]),k(t)&&(v=" [Function"+(t.name?": "+t.name:"")+"]"),A(t)&&(v=" "+RegExp.prototype.toString.call(t)),w(t)&&(v=" "+Date.prototype.toUTCString.call(t)),x(t)&&(v=" "+d(t)),0!==s.length||C&&0!=t.length?n<0?A(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),c=C?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)T(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))}),o}(e,t,n,a,s):s.map(function(r){return h(e,t,n,a,r,C)}),e.seen.pop(),function(e,t,r){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(c,v,_)):_[0]+v+_[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,l;if((l=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special")),T(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(l.value)<0?(a=m(r)?u(e,l.value,null):u(e,l.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),y(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function f(e){return Array.isArray(e)}function p(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function b(e){return"string"==typeof e}function y(e){return void 0===e}function A(e){return v(e)&&"[object RegExp]"===C(e)}function v(e){return"object"==typeof e&&null!==e}function w(e){return v(e)&&"[object Date]"===C(e)}function x(e){return v(e)&&("[object Error]"===C(e)||e instanceof Error)}function k(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function _(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(y(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=f,r.isBoolean=p,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=b,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=y,r.isRegExp=A,r.isObject=v,r.isDate=w,r.isError=x,r.isFunction=k,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var e=new Date,t=[_(e.getHours()),_(e.getMinutes()),_(e.getSeconds())].join(":");return[e.getDate(),S[e.getMonth()],t].join(" ")}function T(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",E(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this)}).call(this,e("_process"),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,t,r){"use strict";
vendor: 4,627 bytes, line 2
2Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(r,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(r,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(r,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(r,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(r,"version",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(r,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(r,"parse",{enumerable:!0,get:function(){return d.default}});var n=h(e("./v1.js")),i=h(e("./v3.js")),o=h(e("./v4.js")),s=h(e("./v5.js")),a=h(e("./nil.js")),l=h(e("./version.js")),c=h(e("./validate.js")),u=h(e("./stringify.js")),d=h(e("./parse.js"));function h(e){return e&&e.__esModule?e:{default:e}}},{"./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,t,r){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function o(e,t,r,n,o,s){return i((a=i(i(t,e),i(n,s)))<<(l=o)|a>>>32-l,r);var a,l}function s(e,t,r,n,i,s,a){return o(t&r|~t&n,e,t,i,s,a)}function a(e,t,r,n,i,s,a){return o(t&n|r&~n,e,t,i,s,a)}function l(e,t,r,n,i,s,a){return o(t^r^n,e,t,i,s,a)}function c(e,t,r,n,i,s,a){return o(r^(t|~n),e,t,i,s,a)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var u=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r<t.length;++r)e[r]=t.charCodeAt(r)}return function(e){const t=[],r=32*e.length;for(let n=0;n<r;n+=8){const r=e[n>>5]>>>n%32&255,i=parseInt("0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r),16);t.push(i)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let r=1732584193,o=-271733879,u=-1732584194,d=271733878;for(let n=0;n<e.length;n+=16){const t=r,h=o,f=u,p=d;r=s(r,o,u,d,e[n],7,-680876936),d=s(d,r,o,u,e[n+1],12,-389564586),u=s(u,d,r,o,e[n+2],17,606105819),o=s(o,u,d,r,e[n+3],22,-1044525330),r=s(r,o,u,d,e[n+4],7,-176418897),d=s(d,r,o,u,e[n+5],12,1200080426),u=s(u,d,r,o,e[n+6],17,-1473231341),o=s(o,u,d,r,e[n+7],22,-45705983),r=s(r,o,u,d,e[n+8],7,1770035416),d=s(d,r,o,u,e[n+9],12,-1958414417),u=s(u,d,r,o,e[n+10],17,-42063),o=s(o,u,d,r,e[n+11],22,-1990404162),r=s(r,o,u,d,e[n+12],7,1804603682),d=s(d,r,o,u,e[n+13],12,-40341101),u=s(u,d,r,o,e[n+14],17,-1502002290),o=s(o,u,d,r,e[n+15],22,1236535329),r=a(r,o,u,d,e[n+1],5,-165796510),d=a(d,r,o,u,e[n+6],9,-1069501632),u=a(u,d,r,o,e[n+11],14,643717713),o=a(o,u,d,r,e[n],20,-373897302),r=a(r,o,u,d,e[n+5],5,-701558691),d=a(d,r,o,u,e[n+10],9,38016083),u=a(u,d,r,o,e[n+15],14,-660478335),o=a(o,u,d,r,e[n+4],20,-405537848),r=a(r,o,u,d,e[n+9],5,568446438),d=a(d,r,o,u,e[n+14],9,-1019803690),u=a(u,d,r,o,e[n+3],14,-187363961),o=a(o,u,d,r,e[n+8],20,1163531501),r=a(r,o,u,d,e[n+13],5,-1444681467),d=a(d,r,o,u,e[n+2],9,-51403784),u=a(u,d,r,o,e[n+7],14,1735328473),o=a(o,u,d,r,e[n+12],20,-1926607734),r=l(r,o,u,d,e[n+5],4,-378558),d=l(d,r,o,u,e[n+8],11,-2022574463),u=l(u,d,r,o,e[n+11],16,1839030562),o=l(o,u,d,r,e[n+14],23,-35309556),r=l(r,o,u,d,e[n+1],4,-1530992060),d=l(d,r,o,u,e[n+4],11,1272893353),u=l(u,d,r,o,e[n+7],16,-155497632),o=l(o,u,d,r,e[n+10],23,-1094730640),r=l(r,o,u,d,e[n+13],4,681279174),d=l(d,r,o,u,e[n],11,-358537222),u=l(u,d,r,o,e[n+3],16,-722521979),o=l(o,u,d,r,e[n+6],23,76029189),r=l(r,o,u,d,e[n+9],4,-640364487),d=l(d,r,o,u,e[n+12],11,-421815835),u=l(u,d,r,o,e[n+15],16,530742520),o=l(o,u,d,r,e[n+2],23,-995338651),r=c(r,o,u,d,e[n],6,-198630844),d=c(d,r,o,u,e[n+7],10,1126891415),u=c(u,d,r,o,e[n+14],15,-1416354905),o=c(o,u,d,r,e[n+5],21,-57434055),r=c(r,o,u,d,e[n+12],6,1700485571),d=c(d,r,o,u,e[n+3],10,-1894986606),u=c(u,d,r,o,e[n+10],15,-1051523),o=c(o,u,d,r,e[n+1],21,-2054922799),r=c(r,o,u,d,e[n+8],6,1873313359),d=c(d,r,o,u,e[n+15],10,-30611744),u=c(u,d,r,o,e[n+6],15,-1560198380),o=c(o,u,d,r,e[n+13],21,1309151649),r=c(r,o,u,d,e[n+4],6,-145523070),d=c(d,r,o,u,e[n+11],10,-1120210379),u=c(u,d,r,o,e[n+2],15,718787259),o=c(o,u,d,r,e[n+9],21,-343485551),r=i(r,t),o=i(o,h),u=i(u,f),d=i(d,p)}return[r,o,u,d]}(function(e){if(0===e.length)return[];const t=8*e.length,r=new Uint32Array(n(t));for(let n=0;n<t;n+=8)r[n>>5]|=(255&e[n/8])<<n%32;return r}(e),8*e.length))};r.default=u},{}],530:[function(e,t,r){"use strict";
vendor: 8,903 bytes, line 2
2Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.default="00000000-0000-0000-0000-000000000000"},{}],531:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n},o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};r.default=o},{"./validate.js":541}],532:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0,r.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,t,r){"use strict";let n;Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};const i=new Uint8Array(16)},{}],534:[function(e,t,r){"use strict";function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function i(e,t){return e<<t|e>>>32-t}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var o=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r<t.length;++r)e.push(t.charCodeAt(r))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);const o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s);for(let n=0;n<s;++n){const t=new Uint32Array(16);for(let r=0;r<16;++r)t[r]=e[64*n+4*r]<<24|e[64*n+4*r+1]<<16|e[64*n+4*r+2]<<8|e[64*n+4*r+3];a[n]=t}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(let l=0;l<s;++l){const e=new Uint32Array(80);for(let t=0;t<16;++t)e[t]=a[l][t];for(let t=16;t<80;++t)e[t]=i(e[t-3]^e[t-8]^e[t-14]^e[t-16],1);let o=r[0],s=r[1],c=r[2],u=r[3],d=r[4];for(let r=0;r<80;++r){const a=Math.floor(r/20),l=i(o,5)+n(a,s,c,u)+d+t[a]+e[r]>>>0;d=u,u=c,c=i(s,30)>>>0,s=o,o=l}r[0]=r[0]+o>>>0,r[1]=r[1]+s>>>0,r[2]=r[2]+c>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+d>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};r.default=o},{}],535:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};const o=[];for(let a=0;a<256;++a)o.push((a+256).toString(16).substr(1));var s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const r=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,i.default)(r))throw TypeError("Stringified UUID is invalid");return r};r.default=s},{"./validate.js":541}],536:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./rng.js")),i=o(e("./stringify.js"));function o(e){return e&&e.__esModule?e:{default:e}}let s,a,l=0,c=0;var u=function(e,t,r){let o=t&&r||0;const u=t||new Array(16);let d=(e=e||{}).node||s,h=void 0!==e.clockseq?e.clockseq:a;if(null==d||null==h){const t=e.random||(e.rng||n.default)();null==d&&(d=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=a=16383&(t[6]<<8|t[7]))}let f=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:c+1;const m=f-l+(p-c)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||f>l)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=f,c=p,a=h,f+=122192928e5;const g=(1e4*(268435455&f)+p)%4294967296;u[o++]=g>>>24&255,u[o++]=g>>>16&255,u[o++]=g>>>8&255,u[o++]=255&g;const b=f/4294967296*1e4&268435455;u[o++]=b>>>8&255,u[o++]=255&b,u[o++]=b>>>24&15|16,u[o++]=b>>>16&255,u[o++]=h>>>8|128,u[o++]=255&h;for(let n=0;n<6;++n)u[o+n]=d[n];return t||(0,i.default)(u)};r.default=u},{"./rng.js":533,"./stringify.js":535}],537:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./v35.js")),i=o(e("./md5.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v3",48,i.default);r.default=s},{"./md5.js":529,"./v35.js":538}],538:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t,r){function o(e,o,s,a){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}(e)),"string"==typeof o&&(o=(0,i.default)(o)),16!==o.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+e.length);if(l.set(o),l.set(e,o.length),l=r(l),l[6]=15&l[6]|t,l[8]=63&l[8]|128,s){a=a||0;for(let e=0;e<16;++e)s[a+e]=l[e];return s}return(0,n.default)(l)}try{o.name=e}catch(e){}return o.DNS=s,o.URL=a,o},r.URL=r.DNS=void 0;var n=o(e("./stringify.js")),i=o(e("./parse.js"));function o(e){return e&&e.__esModule?e:{default:e}}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";r.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";r.URL=a},{"./parse.js":531,"./stringify.js":535}],539:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./rng.js")),i=o(e("./stringify.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){const o=(e=e||{}).random||(e.rng||n.default)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=o[e];return t}return(0,i.default)(o)};r.default=s},{"./rng.js":533,"./stringify.js":535}],540:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(e("./v35.js")),i=o(e("./sha1.js"));function o(e){return e&&e.__esModule?e:{default:e}}var s=(0,n.default)("v5",80,i.default);r.default=s},{"./sha1.js":534,"./v35.js":538}],541:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./regex.js"))&&n.__esModule?n:{default:n},o=function(e){return"string"==typeof e&&i.default.test(e)};r.default=o},{"./regex.js":532}],542:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n},o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)};r.default=o},{"./validate.js":541}],543:[function(e,t,r){"use strict";function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="\t\n\r -\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u"),r.S_LIST=[32,10,13,9],r.isChar=function(e){return e>=32&&e<=55295||10===e||13===e||9===e||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=n,r.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],544:[function(e,t,r){"use strict";function n(e){return e>=65&&e<=90||e>=97&&e<=122||58===e||95===e||8204===e||8205===e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}
2Object.defineProperty(r,"__esModule",{value:!0}),r.CHAR="\x01-\ud7ff\ue000-\ufffd\ud800\udc00-\udbff\udfff",r.RESTRICTED_CHAR="\x01-\b\v\f\x0e-\x1f\x7f-\x84\x86-\x9f",r.S=" \t\r\n",r.NAME_START_CHAR=":A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",r.NAME_CHAR="-"+r.NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",r.CHAR_RE=new RegExp("^["+r.CHAR+"]$","u"),r.RESTRICTED_CHAR_RE=new RegExp("^["+r.RESTRICTED_CHAR+"]$","u"),r.S_RE=new RegExp("^["+r.S+"]+$","u"),r.NAME_START_CHAR_RE=new RegExp("^["+r.NAME_START_CHAR+"]$","u"),r.NAME_CHAR_RE=new RegExp("^["+r.NAME_CHAR+"]$","u"),r.NAME_RE=new RegExp("^["+r.NAME_START_CHAR+"]["+r.NAME_CHAR+"]*$","u"),r.NMTOKEN_RE=new RegExp("^["+r.NAME_CHAR+"]+$","u"),r.S_LIST=[32,10,13,9],r.isChar=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isRestrictedChar=function(e){return e>=1&&e<=8||11===e||12===e||e>=14&&e<=31||e>=127&&e<=132||e>=134&&e<=159},r.isCharAndNotRestricted=function(e){return 9===e||10===e||13===e||e>31&&e<127||133===e||e>159&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},r.isS=function(e){return 32===e||10===e||13===e||9===e},r.isNameStartChar=n,r.isNameChar=function(e){return n(e)||e>=48&&e<=57||45===e||46===e||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}],545:[function(e,t,r){"use strict";function n(e){return e>=65&&e<=90||95===e||e>=97&&e<=122||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}Object.defineProperty(r,"__esModule",{value:!0}),r.NC_NAME_START_CHAR="A-Z_a-z\xc0-\xd6\xd8-\xf6\xf8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd\ud800\udc00-\udb7f\udfff",r.NC_NAME_CHAR="-"+r.NC_NAME_START_CHAR+".0-9\xb7\u0300-\u036f\u203f-\u2040",r.NC_NAME_START_CHAR_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]$","u"),r.NC_NAME_CHAR_RE=new RegExp("^["+r.NC_NAME_CHAR+"]$","u"),r.NC_NAME_RE=new RegExp("^["+r.NC_NAME_START_CHAR+"]["+r.NC_NAME_CHAR+"]*$","u"),r.isNCNameStartChar=n,r.isNCNameChar=function(e){return n(e)||45===e||46===e||e>=48&&e<=57||183===e||e>=768&&e<=879||e>=8255&&e<=8256}},{}]},{},[15])(15)},7751(e,t,r){"use strict";r.d(t,{$E:()=>K});const n=(()=>{let e=0;return()=>(e+=1,`u${`0000${(Math.random()*36**4|0).toString(36)}`.slice(-4)}${e}`)})();function i(e){const t=[];for(let r=0,n=e.length;r<n;r++)t.push(e[r]);return t}let o=null;function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o||(e.includeStyleProperties?(o=e.includeStyleProperties,o):(o=i(window.getComputedStyle(document.documentElement)),o))}function a(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{width:t.width||function(e){const t=a(e,"border-left-width"),r=a(e,"border-right-width");return e.clientWidth+t+r}(e),height:t.height||function(e){const t=a(e,"border-top-width"),r=a(e,"border-bottom-width");return e.clientHeight+t+r}(e)}}const c=16384;function u(e){return new Promise((t,r)=>{const n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=r,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function d(e,t,r){const n="http://www.w3.org/2000/svg",i=document.createElementNS(n,"svg"),o=document.createElementNS(n,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${r}`),i.setAttribute("viewBox",`0 0 ${t} ${r}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(e),async function(e){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(e)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)}(i)}const h=(e,t)=>{if(e instanceof t)return!0;const r=Object.getPrototypeOf(e);return null!==r&&(r.constructor.name===t.name||h(r,t))};function f(e,t,r,n){const i=`.${e}:${t}`,o=r.cssText?function(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(r):function(e,t){return s(t).map(t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`).join(" ")}(r,n);return document.createTextNode(`${i}{${o}}`)}function p(e,t,r,i){const o=window.getComputedStyle(e,r),s=o.getPropertyValue("content");
2if(""===s||"none"===s)return;const a=n();try{t.className=`${t.className} ${a}`}catch(c){return}const l=document.createElement("style");l.appendChild(f(a,r,o,i)),t.appendChild(l)}const m="application/font-woff",g="image/jpeg",b={woff:m,woff2:m,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:g,jpeg:g,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function y(e){const t=function(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return b[t]||""}function A(e){return-1!==e.search(/^(data:)/)}function v(e,t){return`data:${t};base64,${e}`}async function w(e,t,r){const n=await fetch(e,t);if(404===n.status)throw new Error(`Resource "${n.url}" not found`);const i=await n.blob();return new Promise((e,t)=>{const o=new FileReader;o.onerror=t,o.onloadend=()=>{try{e(r({res:n,result:o.result}))}catch(i){t(i)}},o.readAsDataURL(i)})}const x={};async function k(e,t,r){const n=function(e,t,r){let n=e.replace(/\?.*/,"");return r&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}(e,t,r.includeQueryParams);if(null!=x[n])return x[n];let i;r.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());try{const n=await w(e,r.fetchRequestInit,e=>{let{res:r,result:n}=e;return t||(t=r.headers.get("Content-Type")||""),function(e){return e.split(/,/)[1]}(n)});i=v(n,t)}catch(o){i=r.imagePlaceholder||"";let t=`Failed to fetch resource: ${e}`;o&&(t="string"===typeof o?o:o.message),t&&console.warn(t)}return x[n]=i,i}async function C(e,t){return h(e,HTMLCanvasElement)?async function(e){const t=e.toDataURL();return"data:,"===t?e.cloneNode(!1):u(t)}(e):h(e,HTMLVideoElement)?async function(e,t){if(e.currentSrc){const t=document.createElement("canvas"),r=t.getContext("2d");return t.width=e.clientWidth,t.height=e.clientHeight,null===r||void 0===r||r.drawImage(e,0,0,t.width,t.height),u(t.toDataURL())}const r=e.poster,n=y(r);return u(await k(r,n,t))}(e,t):h(e,HTMLIFrameElement)?async function(e,t){var r;try{if(null===(r=null===e||void 0===e?void 0:e.contentDocument)||void 0===r?void 0:r.body)return await E(e.contentDocument.body,t,!0)}catch(n){}return e.cloneNode(!1)}(e,t):e.cloneNode(_(e))}const _=e=>null!=e.tagName&&"SVG"===e.tagName.toUpperCase();function S(e,t,r){return h(t,Element)&&(function(e,t,r){const n=t.style;if(!n)return;const i=window.getComputedStyle(e);i.cssText?(n.cssText=i.cssText,n.transformOrigin=i.transformOrigin):s(r).forEach(r=>{let o=i.getPropertyValue(r);if("font-size"===r&&o.endsWith("px")){const e=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${e}px`}h(e,HTMLIFrameElement)&&"display"===r&&"inline"===o&&(o="block"),"d"===r&&t.getAttribute("d")&&(o=`path(${t.getAttribute("d")})`),n.setProperty(r,o,i.getPropertyPriority(r))})}(e,t,r),function(e,t,r){p(e,t,":before",r),p(e,t,":after",r)}(e,t,r),function(e,t){h(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),h(e,HTMLInputElement)&&t.setAttribute("value",e.value)}(e,t),function(e,t){if(h(e,HTMLSelectElement)){const r=t,n=Array.from(r.children).find(t=>e.value===t.getAttribute("value"));n&&n.setAttribute("selected","")}}(e,t)),t}async function E(e,t,r){return r||!t.filter||t.filter(e)?Promise.resolve(e).then(e=>C(e,t)).then(r=>async function(e,t,r){var n,o;if(_(t))return t;let s=[];var a;return s=null!=(a=e).tagName&&"SLOT"===a.tagName.toUpperCase()&&e.assignedNodes?i(e.assignedNodes()):h(e,HTMLIFrameElement)&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?i(e.contentDocument.body.childNodes):i((null!==(o=e.shadowRoot)&&void 0!==o?o:e).childNodes),0===s.length||h(e,HTMLVideoElement)||await s.reduce((e,n)=>e.then(()=>E(n,r)).then(e=>{e&&t.appendChild(e)}),Promise.resolve()),t}(e,r,t)).then(r=>S(e,r,t)).then(e=>async function(e,t){const r=e.querySelectorAll?e.querySelectorAll("use"):[];if(0===r.length)return e;const n={};for(let o=0;o<r.length;o++){const i=r[o].getAttribute("xlink:href");if(i){const r=e.querySelector(i),o=document.querySelector(i);r||!o||n[i]||(n[i]=await E(o,t,!0))}}const i=Object.values(n);if(i.length){const t="http://www.w3.org/1999/xhtml",r=document.createElementNS(t,"svg");r.setAttribute("xmlns",t),r.style.position="absolute",r.style.width="0",r.style.height="0",r.style.overflow="hidden",r.style.display="none";const n=document.createElementNS(t,"defs");r.appendChild(n);for(let e=0;e<i.length;e++)n.appendChild(i[e]);e.appendChild(r)}return e}(e,t)):null}const T=/url\((['"]?)([^'"]+?)\1\)/g,M=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,O=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function N(e,t,r,n,i){try{const o=r?function(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),i=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(i),t&&(n.href=t),i.href=e,i.href}(t,r):t,s=y(t);let a;if(i){a=v(await i(o),s)}else a=await k(o,s,n);return e.replace(function(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${a}$3`)}catch(o){}return e}function P(e){return-1!==e.search(T)}async function R(e,t,r){if(!P(e))return e;const n=function(e,t){let{preferredFontFormat:r}=t;return r?e.replace(O,e=>{for(;;){const[t,,n]=M.exec(e)||[];if(!n)return"";if(n===r)return`src: ${t};`}}):e}(e,r),i=function(e){const t=[];return e.replace(T,(e,r,n)=>(t.push(n),e)),t.filter(e=>!A(e))}(n);return i.reduce((e,n)=>e.then(e=>N(e,n,t,r)),Promise.resolve(n))}async function D(e,t,r){var n;const i=null===(n=t.style)||void 0===n?void 0:n.getPropertyValue(e);if(i){const n=await R(i,null,r);return t.style.setProperty(e,n,t.style.getPropertyPriority(e)),!0}return!1}async function I(e,t){h(e,Element)&&(await async function(e,t){await D("background",e,t)||await D("background-image",e,t),await D("mask",e,t)||await D("-webkit-mask",e,t)||await D("mask-image",e,t)||await D("-webkit-mask-image",e,t)}(e,t),await async function(e,t){const r=h(e,HTMLImageElement);if((!r||A(e.src))&&(!h(e,SVGImageElement)||A(e.href.baseVal)))return;const n=r?e.src:e.href.baseVal,i=await k(n,y(n),t);await new Promise((n,o)=>{e.onload=n,e.onerror=t.onImageErrorHandler?function(){try{n(t.onImageErrorHandler(...arguments))}catch(e){o(e)}}:o;const s=e;s.decode&&(s.decode=n),"lazy"===s.loading&&(s.loading="eager"),r?(e.srcset="",e.src=i):e.href.baseVal=i})}(e,t),await async function(e,t){const r=i(e.childNodes).map(e=>I(e,t));await Promise.all(r).then(()=>e)}(e,t))}const L={};async function B(e){let t=L[e];if(null!=t)return t;const r=await fetch(e);return t={url:e,cssText:await r.text()},L[e]=t,t}async function j(e,t){let r=e.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,i=(r.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),w(o,t.fetchRequestInit,e=>{let{result:t}=e;return r=r.replace(i,`url(${t})`),[i,t]})});return Promise.all(i).then(()=>r)}function F(e){if(null==e)return[];const t=[];let r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const n=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)}
2)","gi");for(;;){const e=n.exec(r);if(null===e)break;t.push(e[0])}r=r.replace(n,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let e=i.exec(r);if(null===e){if(e=o.exec(r),null===e)break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;t.push(e[0])}return t}async function z(e,t){if(null==e.ownerDocument)throw new Error("Provided element is not within a Document");const r=i(e.ownerDocument.styleSheets),n=await async function(e,t){const r=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{i(r.cssRules||[]).forEach((e,i)=>{if(e.type===CSSRule.IMPORT_RULE){let o=i+1;const s=B(e.href).then(e=>j(e,t)).then(e=>F(e).forEach(e=>{try{r.insertRule(e,e.startsWith("@import")?o+=1:r.cssRules.length)}catch(t){console.error("Error inserting rule from remote css",{rule:e,error:t})}})).catch(e=>{console.error("Error loading remote css",e.toString())});n.push(s)}})}catch(o){const i=e.find(e=>null==e.href)||document.styleSheets[0];null!=r.href&&n.push(B(r.href).then(e=>j(e,t)).then(e=>F(e).forEach(e=>{i.insertRule(e,i.cssRules.length)})).catch(e=>{console.error("Error loading remote stylesheet",e)})),console.error("Error inlining remote css file",o)}}),Promise.all(n).then(()=>(e.forEach(e=>{if("cssRules"in e)try{i(e.cssRules||[]).forEach(e=>{r.push(e)})}catch(t){console.error(`Error while reading CSS rules from ${e.href}`,t)}}),r))}(r,t);return function(e){return e.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>P(e.style.getPropertyValue("src")))}(n)}function U(e){return e.trim().replace(/["']/g,"")}async function H(e,t){const r=await z(e,t),n=function(e){const t=new Set;return function e(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(e=>{t.add(U(e))}),Array.from(r.children).forEach(t=>{t instanceof HTMLElement&&e(t)}
2)}(e),t}(e);return(await Promise.all(r.filter(e=>n.has(U(e.style.fontFamily))).map(e=>{const r=e.parentStyleSheet?e.parentStyleSheet.href:null;return R(e.cssText,r,t)}))).join("\n")}async function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{width:r,height:n}=l(e,t),i=await E(e,t,!0);await async function(e,t){const r=null!=t.fontEmbedCSS?t.fontEmbedCSS:t.skipFonts?null:await H(e,t);if(r){const t=document.createElement("style"),n=document.createTextNode(r);t.appendChild(n),e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)}}(i,t),await I(i,t),function(e,t){const{style:r}=e;t.backgroundColor&&(r.backgroundColor=t.backgroundColor),t.width&&(r.width=`${t.width}px`),t.height&&(r.height=`${t.height}px`);const n=t.style;null!=n&&Object.keys(n).forEach(e=>{r[e]=n[e]})}(i,t);return await d(i,r,n)}async function W(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{width:r,height:n}=l(e,t),i=await V(e,t),o=await u(i),s=document.createElement("canvas"),a=s.getContext("2d"),d=t.pixelRatio||function(){let e,t;try{t=process}catch(n){}const r=t&&t.env?t.env.devicePixelRatio:null;return r&&(e=parseInt(r,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),h=t.canvasWidth||r,f=t.canvasHeight||n;return s.width=h*d,s.height=f*d,t.skipAutoScale||function(e){(e.width>c||e.height>c)&&(e.width>c&&e.height>c?e.width>e.height?(e.height*=c/e.width,e.width=c):(e.width*=c/e.height,e.height=c):e.width>c?(e.height*=c/e.width,e.width=c):(e.width*=c/e.height,e.height=c))}(s),s.style.width=`${h}`,s.style.height=`${f}`,t.backgroundColor&&(a.fillStyle=t.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(o,0,0,s.width,s.height),s}async function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(await W(e,t)).toDataURL()}},624(e,t){function r(e,t){var r=[],n=[];return null==t&&(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,o){if(r.length>0){var s=r.indexOf(this);~s?r.splice(s+1):r.push(this),~s?n.splice(s,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}}(e.exports=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)}).getSerialize=r},8728(e){e.exports=function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o=void 0,s=0;s<n.length;s++)i(n[s]);return i}({1:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,s,a,l,c,u=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),s=t>>2,a=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|i>>6:64,c=2<f?63&i:64,u.push(o.charAt(s)+o.charAt(a)+o.charAt(l)+o.charAt(c));return u.join("")},r.decode=function(e){var t,r,n,s,a,l,c=0,u=0,d="data:";if(e.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&f--,e.charAt(e.length-2)===o.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):new Array(0|f);c<e.length;)t=o.indexOf(e.charAt(c++))<<2|(s=o.indexOf(e.charAt(c++)))>>4,r=(15&s)<<4|(a=o.indexOf(e.charAt(c++)))>>2,n=(3&a)<<6|(l=o.indexOf(e.charAt(c++))),h[u++]=t,64!==a&&(h[u++]=r),64!==l&&(h[u++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){"use strict";var n=e("./external"),i=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),s=e("./stream/DataLengthProbe");function a(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}a.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,t,r){return e.pipe(new o).pipe(new s("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",t)},t.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){"use strict";var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){"use strict";var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var o=i,s=n+r;e^=-1;for(var a=n;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var o=i,s=n+r;e^=-1;for(var a=n;a<s;a++)e=e>>>8^o[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){"use strict";var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),o=e("./utils"),s=e("./stream/GenericWorker"),a=n?"uint8array":"array";function l(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",o.inherits(l,s),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(a,e.data),!1)},l.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)}
vendor: 6,827 bytes, line 2
2,l.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){"use strict";function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,s,u){var d,h,f=e.file,p=e.compression,m=u!==a.utf8encode,g=o.transformTo("string",u(f.name)),b=o.transformTo("string",a.utf8encode(f.name)),y=f.comment,A=o.transformTo("string",u(y)),v=o.transformTo("string",a.utf8encode(y)),w=b.length!==f.name.length,x=v.length!==y.length,k="",C="",_="",S=f.dir,E=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var M=0;t&&(M|=8),m||!w&&!x||(M|=2048);var O=0,N=0;S&&(O|=16),"UNIX"===s?(N=798,O|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,S)):(N=20,O|=function(e){return 63&(e||0)}(f.dosPermissions)),d=E.getUTCHours(),d<<=6,d|=E.getUTCMinutes(),d<<=5,d|=E.getUTCSeconds()/2,h=E.getUTCFullYear()-1980,h<<=4,h|=E.getUTCMonth()+1,h<<=5,h|=E.getUTCDate(),w&&(C=n(1,1)+n(l(g),4)+b,k+="up"+n(C.length,2)+C),x&&(_=n(1,1)+n(l(A),4)+v,k+="uc"+n(_.length,2)+_);var P="";return P+="\n\0",P+=n(M,2),P+=p.magic,P+=n(d,2),P+=n(h,2),P+=n(T.crc32,4),P+=n(T.compressedSize,4),P+=n(T.uncompressedSize,4),P+=n(g.length,2),P+=n(k.length,2),{fileRecord:c.LOCAL_FILE_HEADER+P+g+k,dirRecord:c.CENTRAL_FILE_HEADER+n(N,2)+P+n(A.length,2)+"\0\0\0\0"+n(O,4)+n(i,4)+g+k+A}}var o=e("../utils"),s=e("../stream/GenericWorker"),a=e("../utf8"),l=e("../crc32"),c=e("../signature");function u(e,t,r,n){s.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(u,s),u.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,s.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,i=function(e,t,r,i,s){var a=o.transformTo("string",s(i));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(a.length,2)+a}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},u.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!s.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},u.prototype.lock=function(){s.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){"use strict";var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var o=new i(t.streamFiles,r,t.platform,t.encodeFileName),s=0;try{e.forEach(function(e,r){s++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw new Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),a=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,c=r.date;r._compressWorker(i,a).withStreamInfo("file",{name:e,dir:l,date:c,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(o)}),o.entriesCount=s}catch(e){o.error(e)}return o}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;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 e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./external"),o=e("./utf8"),s=e("./zipEntries"),a=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function c(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new a);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip f
2ile",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new s(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var o=0;o<n.length;o++)r.push(c(n[o]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),o=i.files,s=0;s<o.length;s++){var a=o[s],l=a.fileNameStr,c=n.resolve(a.fileNameStr);r.file(c,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:t.createFolders}),a.dir||(r.file(c).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../stream/GenericWorker");function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(o,i),o.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){"use strict";var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){"use strict";t.exports={isNode:"undefined"!=typeof Buffer,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){"use strict";function n(e,t,r){var n,i=o.getTypeOf(t),a=o.extend(r||{},l);a.date=a.date||new Date,null!==a.compression&&(a.compression=a.compression.toUpperCase()),"string"==typeof a.unixPermissions&&(a.unixPermissions=parseInt(a.unixPermissions,8)),a.unixPermissions&&16384&a.unixPermissions&&(a.dir=!0),a.dosPermissions&&16&a.dosPermissions&&(a.dir=!0),a.dir&&(e=m(e)),a.createFolders&&(n=p(e))&&g.call(this,n,!0);var d="string"===i&&!1===a.binary&&!1===a.base64;r&&void 0!==r.binary||(a.binary=!d),(t instanceof c&&0===t.uncompressedSize||a.dir||!t||0===t.length)&&(a.base64=!1,a.binary=!0,t="",a.compression="STORE",i="string");var b=null;b=t instanceof c||t instanceof s?t:h.isNode&&h.isStream(t)?new f(e,t):o.prepareContent(e,t,a.binary,a.optimizedBinaryString,a.base64);var y=new u(e,b,a);this.files[e]=y}var i=e("./utf8"),o=e("./utils"),s=e("./stream/GenericWorker"),a=e("./stream/StreamHelper"),l=e("./defaults"),c=e("./compressedObject"),u=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},g=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function b(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];
vendor: 14,337 bytes, line 2
2return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(b(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var o=this.files[this.root+e];return o&&!o.dir?o:null},folder:function(e){if(!e)return this;if(b(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=g.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=o.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");o.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new s("error")).error(e)}return new a(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=y},{"./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(e,t,r){"use strict";t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.length-4;0<=o;--o)if(this.data[o]===t&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){"use strict";var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){"use strict";var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){"use strict";var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){"use strict";var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../support"),o=e("./ArrayReader"),s=e("./StringReader"),a=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new a(e):i.uint8array?new l(n.transformTo("uint8array",e)):new o(n.transformTo("array",e)):new s(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){"use strict";r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../utils");function o(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,n),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){"use strict";var n=e("./GenericWorker"),i=e("../crc32");function o(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,n),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./GenericWorker");function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){"use strict";function n(e){this.name=e||"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}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),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 e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},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 e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./ConvertWorker"),o=e("./GenericWorker"),s=e("../base64"),a=e("../support"),l=e("../external"),c=null;if(a.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function u(e,t){return new l.Promise(function(r,i){var o=[],a=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",function(e,r){o.push(e),t&&t(r)}).on("error",function(e){o=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return s.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,o=0;for(r=0;r<t.length;r++)o+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(o),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(a,o),c);r(e)}catch(e){i(e)}o=[]}).resume()})}function d(e,t,r){var s=t;switch(t){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=t,this._mimeType=r,n.checkSupport(s),this._worker=e.pipe(new i(s)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){"use strict";if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){"use strict";for(var n=e("./utils"),i=e("./support"),o=e("./nodejsUtils"),s=e("./stream/GenericWorker"),a=new Array(256),l=0;l<256;l++)a[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function c(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}a[254]=a[254]=1,r.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,r,n,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):new Array(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(n=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(n-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,o,s=e.length,l=new Array(2*s);for(t=r=0;t<s;)if((i=e[t++])<128)l[r++]=i;else if(4<(o=a[i]))l[r++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&t<s;)i=i<<6|63&e[t++],o--;
vendor: 8,164 bytes, line 2
21<o?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(c,s),c.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var s=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}(t),l=t;s!==t.length&&(i.uint8array?(l=t.subarray(0,s),this.leftOver=t.subarray(s,t.length)):(l=t.slice(0,s),this.leftOver=t.slice(s,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=c,n.inherits(u,s),u.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){"use strict";var n=e("./support"),i=e("./base64"),o=e("./nodejsUtils"),s=e("./external");function a(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return i.append(t),i.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(e,t,r){var n=[],i=0,o=e.length;if(o<=r)return String.fromCharCode.apply(null,e);for(;i<o;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function u(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=c.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=c.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return c.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return c.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=u;var h={};h.string={string:a,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,o.allocBuffer(e.length))}},h.array={string:u,array:a,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},h.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:a,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:a,nodebuffer:function(e){return o.newBufferFrom(e)}},h.nodebuffer={string:u,array:function(e){return d(e,new Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:a},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return h[n][e](t)},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&o.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,o,a,c){return s.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new s.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var u=r.getTypeOf(t);return u?("arraybuffer"===u?t=r.transformTo("uint8array",t):"string"===u&&(c?t=i.decode(t):o&&!0!==a&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):s.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),o=e("./signature"),s=e("./zipEntry"),a=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},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 e=this.reader.readData(this.zipCommentLength),t=a.uint8array?"uint8array":"array",r=i.transformTo(t,e);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 e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,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 e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;
vendor: 7,200 bytes, line 2
2for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(e=new s({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,o.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(e);var t=e;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.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(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){"use strict";var n=e("./reader/readerFor"),i=e("./utils"),o=e("./compressedObject"),s=e("./crc32"),a=e("./utf8"),l=e("./compressions"),c=e("./support");function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var o=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileName)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||s(this.fileComment)!==t.readInt(4)?null:a.utf8decode(t.readData(e.length-5))}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){"use strict";function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),o=e("./stream/DataWorker"),s=e("./utf8"),a=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var o=!this._dataBinary;o&&!n&&(t=t.pipe(new s.Utf8EncodeWorker)),!o&&n&&(t=t.pipe(new s.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)}
vendor: 47,484 bytes, line 2
2,nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new s.Utf8EncodeWorker)),a.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof l?this._data:new o(this._data)}};for(var c=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],u=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<c.length;d++)n.prototype[c[d]]=u;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){"use strict";var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var o=0,s=new i(u),a=e.document.createTextNode("");s.observe(a,{characterData:!0}),r=function(){a.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,r=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;n=!0;for(var r=c.length;r;){for(t=c,c=[],e=-1;++e<r;)t[e]();r=c.length}n=!1}t.exports=function(e){1!==c.push(e)||n||r()}}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){"use strict";var n=e("immediate");function i(){}var o={},s=["REJECTED"],a=["FULFILLED"],l=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function u(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(n){return o.reject(e,n)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function i(t){r||(r=!0,o.resolve(e,t))}var s=p(function(){t(i,n)});"error"===s.status&&n(s.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===a||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===a?e:t,this.outcome):this.queue.push(new u(r,e,t)),r},u.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){o.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=a,e.outcome=t;for(var i=-1,s=e.queue.length;++i<s;)e.queue[i].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s=new Array(r),a=0,l=-1,c=new this(i);++l<r;)u(e[l],l);return c;function u(e,i){t.resolve(e).then(function(e){s[i]=e,++a!==r||n||(n=!0,o.resolve(c,s))},function(e){n||(n=!0,o.reject(c,e))})}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var s,a=-1,l=new this(i);++a<r;)s=e[a],t.resolve(s).then(function(e){n||(n=!0,o.resolve(l,e))},function(e){n||(n=!0,o.reject(l,e))});return l}},{immediate:36}],38:[function(e,t,r){"use strict";var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){"use strict";var n=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/messages"),a=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,h=8;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({level:u,method:h,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(s[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==c)throw new Error(s[r]);this._dict_set=!0}}function p(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,a=this.strm,u=this.options.chunkSize;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new i.Buf8(u),a.next_out=0,a.avail_out=u),1!==(r=n.deflate(a,s))&&r!==c)return this.onEnd(r),!(this.ended=!0);0!==a.avail_out&&(0!==a.avail_in||4!==s&&2!==s)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(a.output,a.next_out))):this.onData(i.shrinkBuf(a.output,a.next_out)))}while((0<a.avail_in||0===a.avail_out)&&1!==r);return 4===s?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==s||(this.onEnd(c),!(a.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=f,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){"use strict";var n=e("./zlib/inflate"),i=e("./utils/common"),o=e("./utils/strings"),s=e("./zlib/constants"),a=e("./zlib/messages"),l=e("./zlib/zstream"),c=e("./zlib/gzheader"),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==s.Z_OK)throw new Error(a[r]);this.header=new c,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}d.prototype.push=function(e,t){var r,a,l,c,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?s.Z_FINISH:s.Z_NO_FLUSH,"string"==typeof e?f.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,s.Z_NO_FLUSH))===s.Z_NEED_DICT&&m&&(h="string"==typeof m?o.string2buf(m):"[object ArrayBuffer]"===u.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,h)),r===s.Z_BUF_ERROR&&!0===g&&(r=s.Z_OK,g=!1),r!==s.Z_STREAM_END&&r!==s.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==s.Z_STREAM_END&&(0!==f.avail_in||a!==s.Z_FINISH&&a!==s.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(f.output,f.next_out),c=f.next_out-l,d=o.buf2string(f.output,l),f.next_out=c,f.avail_out=p-c,c&&i.arraySet(f.output,f.output,l,c,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==s.Z_STREAM_END);return r===s.Z_STREAM_END&&(a=s.Z_FINISH),a===s.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===s.Z_OK):a!==s.Z_SYNC_FLUSH||(this.onEnd(s.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===s.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},o={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,o))},r.setTyped(n)},{}],42:[function(e,t,r){"use strict";var n=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var s=new n.Buf8(256),a=0;a<256;a++)s[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function l(e,t){if(t<65537&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",s=0;s<t;s++)r+=String.fromCharCode(e[s]);return r}s[254]=s[254]=1,r.string2buf=function(e){var t,r,i,o,s,a=e.length,l=0;for(o=0;o<a;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),o=s=0;s<l;o++)55296==(64512&(r=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(r=65536+(r-55296<<10)+(i-56320),o++),r<128?t[s++]=r:(r<2048?t[s++]=192|r>>>6:(r<65536?t[s++]=224|r>>>12:(t[s++]=240|r>>>18,t[s++]=128|r>>>12&63),t[s++]=128|r>>>6&63),t[s++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,o,a=t||e.length,c=new Array(2*a);for(r=n=0;r<a;)if((i=e[r++])<128)c[n++]=i;else if(4<(o=s[i]))c[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&r<a;)i=i<<6|63&e[r++],o--;1<o?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return l(c,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e,o=e>>>16&65535,s=0;0!==r;){for(r-=s=2e3<r?2e3:r;o=o+(i=i+t[n++]|0)|0,--s;);i%=65521,o%=65521}return i|o<<16}},{}],44:[function(e,t,r){"use strict";t.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(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var o=n,s=i+r;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}},{}],46:[function(e,t,r){"use strict";var n,i=e("../utils/common"),o=e("./trees"),s=e("./adler32"),a=e("./crc32"),l=e("./messages"),c=0,u=4,d=0,h=-2,f=-1,p=4,m=2,g=8,b=9,y=286,A=30,v=19,w=2*y+1,x=15,k=3,C=258,_=C+k+1,S=42,E=113,T=1,M=2,O=3,N=4;function P(e,t){return e.msg=l[t],t}function R(e){return(e<<1)-(4<e?9:0)}function D(e){for(var t=e.length;0<=--t;)e[t]=0}function I(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function L(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,I(e.strm)}function B(e,t){e.pending_buf[e.pending++]=t}function j(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function F(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,c=e.window,u=e.w_mask,d=e.prev,h=e.strstart+C,f=c[o+s-1],p=c[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(c[(r=t)+s]===p&&c[r+s-1]===f&&c[r]===c[o]&&c[++r]===c[o+1]){o+=2,r++;do{}while(c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&c[++o]===c[++r]&&o<h);if(n=C-(h-o),o=h-C,s<n){if(e.match_start=t,a<=(s=n))break;f=c[o+s-1],p=c[o+s]}}}while((t=d[t&u])>l&&0!=--i);return s<=e.lookahead?s:e.lookahead}function z(e){var t,r,n,o,l,c,u,d,h,f,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-_)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=c.avail_in)&&(f=h),r=0===f?0:(c.avail_in-=f,i.arraySet(u,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=s(c.adler,u,f,d):2===c.state.wrap&&(c.adler=a(c.adler,u,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=k)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+k-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<k)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function U(e,t){for(var r,n;;){if(e.lookahead<_){if(z(e),e.lookahead<_&&t===c)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-_&&(e.match_length=F(e,r)),e.match_length>=k)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-k),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=k){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=e.strstart<k-1?e.strstart:k-1,t===u?(L(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:M}function H(e,t){for(var r,n,i;;){if(e.lookahead<_){if(z(e),e.lookahead<_&&t===c)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=k&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=k-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-_&&(e.match_length=F(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===k&&4096<e.strstart-e.match_start)&&(e.match_length=k-1)),e.prev_length>=k&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-k,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-k),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+k-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=k-1,e.strstart++,n&&(L(e,!1),0===e.strm.avail_out))return T}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&L(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return T}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<k-1?e.strstart:k-1,t===u?(L(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:M}function V(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function W(){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=g,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 i.Buf16(2*w),this.dyn_dtree=new i.Buf16(2*(2*A+1)),this.bl_tree=new i.Buf16(2*(2*v+1)),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 i.Buf16(x+1),this.heap=new i.Buf16(2*y+1),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*y+1),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 K(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?S:E,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),d):P(e,h)}function q(e){var t=K(e);return t===d&&function(e){e.window_size=2*e.w_size,D(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=k-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,r,n,o,s){if(!e)return h;var a=1;if(t===f&&(t=6),n<0?(a=0,n=-n):15<n&&(a=2,n-=16),o<1||b<o||r!==g||n<8||15<n||t<0||9<t||s<0||p<s)return P(e,h);8===n&&(n=9);var l=new W;return(e.state=l).strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+k-1)/k),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=s,l.method=r,q(e)}n=[new V(0,0,0,0,function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===c)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,L(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-_&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?O:N):(e.strstart>e.block_start&&(L(e,!1),e.strm.avail_out),T)}),new V(4,4,8,4,U),new V(4,5,16,8,U),new V(4,6,32,32,U),new V(4,4,16,16,H),new V(8,16,32,32,H),new V(8,16,128,128,H),new V(8,32,128,256,H),new V(32,128,258,1024,H),new V(32,258,258,4096,H)],r.deflateInit=function(e,t){return G(e,t,g,15,8,0)},r.deflateInit2=G,r.deflateReset=q,r.deflateResetKeep=K,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},r.deflate=function(e,t){var r,i,s,l;if(!e||!e.state||5<t||t<0)return e?P(e,h):h;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==u)return P(e,0===e.avail_out?-5:h);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===S)if(2===i.wrap)e.adler=0,B(i,31),B(i,139),B(i,8),i.gzhead?(B(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)),B(i,255&i.gzhead.time),B(i,i.gzhead.time>>8&255),B(i,i.gzhead.time>>16&255),B(i,i.gzhead.time>>24&255),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(B(i,255&i.gzhead.extra.length),B(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(B(i,0),B(i,0),B(i,0),B(i,0),B(i,0),B(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),B(i,3),i.status=E);else{var f=g+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=E,j(i,f),0!==i.strstart&&(j(i,e.adler>>>16),j(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),I(e),s=i.pending,i.pending!==i.pending_buf_size));)B(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),I(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,B(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),I(e),s=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,B(i,l)}while(0!==l);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&I(e),i.pending+2<=i.pending_buf_size&&(B(i,255&e.adler),B(i,e.adler>>8&255),e.adler=0,i.status=E)):i.status=E),0!==i.pending){if(I(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&R(t)<=R(r)&&t!==u)return P(e,-5);if(666===i.status&&0!==e.avail_in)return P(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===c)return T;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:M}(i,t):3===i.strategy?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=C){if(z(e),e.lookahead<=C&&t===c)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=k&&0<e.strstart&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+C;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=C-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=k?(r=o._tr_tally(e,1,e.match_length-k),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(L(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===u?(L(e,!0),0===e.strm.avail_out?O:N):e.last_lit&&(L(e,!1),0===e.strm.avail_out)?T:M}(i,t):n[i.level].func(i,t);if(p!==O&&p!==N||(i.status=666),p===T||p===O)return 0===e.avail_out&&(i.last_flush=-1),d;if(p===M&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(D(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),I(e),0===e.avail_out))return i.last_flush=-1,d}return t!==u?d:i.wrap<=0?1:(2===i.wrap?(B(i,255&e.adler),B(i,e.adler>>8&255),B(i,e.adler>>16&255),B(i,e.adler>>24&255),B(i,255&e.total_in),B(i,e.total_in>>8&255),B(i,e.total_in>>16&255),B(i,e.total_in>>24&255)):(j(i,e.adler>>>16),j(i,65535&e.adler)),I(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?d:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==S&&69!==t&&73!==t&&91!==t&&103!==t&&t!==E&&666!==t?P(e,h):(e.state=null,t===E?P(e,-3):d):h},r.deflateSetDictionary=function(e,t){var r,n,o,a,l,c,u,f,p=t.length;if(!e||!e.state)return h;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==S||r.lookahead)return h;for(1===a&&(e.adler=s(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===a&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new i.Buf8(r.w_size),i.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,p=r.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,z(r);r.lookahead>=k;){for(n=r.strstart,o=r.lookahead-(k-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+k-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--o;);r.strstart=n,r.lookahead=k-1,z(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=k-1,r.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,r.wrap=a,d},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){"use strict";t.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(e,t,r){"use strict";t.exports=function(e,t){var r,n,i,o,s,a,l,c,u,d,h,f,p,m,g,b,y,A,v,w,x,k,C,_,S;r=e.state,n=e.next_in,_=e.input,i=n+(e.avail_in-5),o=e.next_out,S=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),l=r.dmax,c=r.wsize,u=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,m=r.lencode,g=r.distcode,b=(1<<r.lenbits)-1,y=(1<<r.distbits)-1;e:do{p<15&&(f+=_[n++]<<p,p+=8,f+=_[n++]<<p,p+=8),A=m[f&b];t:for(;;){if(f>>>=v=A>>>24,p-=v,0===(v=A>>>16&255))S[o++]=65535&A;else{if(!(16&v)){if(0==(64&v)){A=m[(65535&A)+(f&(1<<v)-1)];continue t}if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&A,(v&=15)&&(p<v&&(f+=_[n++]<<p,p+=8),w+=f&(1<<v)-1,f>>>=v,p-=v),p<15&&(f+=_[n++]<<p,p+=8,f+=_[n++]<<p,p+=8),A=g[f&y];r:for(;;){if(f>>>=v=A>>>24,p-=v,!(16&(v=A>>>16&255))){if(0==(64&v)){A=g[(65535&A)+(f&(1<<v)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(x=65535&A,p<(v&=15)&&(f+=_[n++]<<p,(p+=8)<v&&(f+=_[n++]<<p,p+=8)),l<(x+=f&(1<<v)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=v,p-=v,(v=o-s)<x){if(u<(v=x-v)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(C=h,(k=0)===d){if(k+=c-v,v<w){for(w-=v;S[o++]=h[k++],--v;);k=o-x,C=S}}else if(d<v){if(k+=c+d-v,(v-=d)<w){for(w-=v;S[o++]=h[k++],--v;);if(k=0,d<w){for(w-=v=d;S[o++]=h[k++],--v;);k=o-x,C=S}}}else if(k+=d-v,v<w){for(w-=v;S[o++]=h[k++],--v;);k=o-x,C=S}for(;2<w;)S[o++]=C[k++],S[o++]=C[k++],S[o++]=C[k++],w-=3;w&&(S[o++]=C[k++],1<w&&(S[o++]=C[k++]))}else{for(k=o-x;S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],2<(w-=3););w&&(S[o++]=S[k++],1<w&&(S[o++]=S[k++]))}break}}break}}while(n<i&&o<a);n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<a?a-o+257:257-(o-a),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){"use strict";var n=e("../utils/common"),i=e("./adler32"),o=e("./crc32"),s=e("./inffast"),a=e("./inftrees"),l=1,c=2,u=0,d=-2,h=1,f=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,u):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):d}function A(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,y(e))):d}function v(e,t){var r,n;return e?(n=new g,(e.state=n).window=null,(r=A(e,t))!==u&&(e.state=null),r):d}var w,x,k=!0;function C(e){if(k){var t;for(w=new n.Buf32(512),x=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(l,e.lens,0,288,w,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(c,e.lens,0,32,x,0,e.work,{bits:5}),k=!1}e.lencode=w,e.lenbits=9,e.distcode=x,e.distbits=5}function _(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):(i<(o=s.wsize-s.wnext)&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}r.inflateReset=y,r.inflateReset2=A,r.inflateResetKeep=b,r.inflateInit=function(e){return v(e,15)},r.inflateInit2=v,r.inflate=function(e,t){var r,f,p,g,b,y,A,v,w,x,k,S,E,T,M,O,N,P,R,D,I,L,B,j,F=0,z=new n.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return d;12===(r=e.state).mode&&(r.mode=13),b=e.next_out,p=e.output,A=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,v=r.hold,w=r.bits,x=y,k=A,L=u;e:for(;;)switch(r.mode){case h:if(0===r.wrap){r.mode=13;break}for(;w<16;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(2&r.wrap&&35615===v){z[r.check=0]=255&v,z[1]=v>>>8&255,r.check=o(r.check,z,2,0),w=v=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",r.mode=30;break}if(w-=4,I=8+(15&(v>>>=4)),0===r.wbits)r.wbits=I;else if(I>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<I,e.adler=r.check=1,r.mode=512&v?10:12,w=v=0;break;case 2:for(;w<16;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(r.flags=v,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=v>>8&1),512&r.flags&&(z[0]=255&v,z[1]=v>>>8&255,r.check=o(r.check,z,2,0)),w=v=0,r.mode=3;case 3:for(;w<32;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}r.head&&(r.head.time=v),512&r.flags&&(z[0]=255&v,z[1]=v>>>8&255,z[2]=v>>>16&255,z[3]=v>>>24&255,r.check=o(r.check,z,4,0)),w=v=0,r.mode=4;case 4:for(;w<16;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}r.head&&(r.head.xflags=255&v,r.head.os=v>>8),512&r.flags&&(z[0]=255&v,z[1]=v>>>8&255,r.check=o(r.check,z,2,0)),w=v=0,r.mode=5;case 5:if(1024&r.flags){for(;w<16;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}r.length=v,r.head&&(r.head.extra_len=v),512&r.flags&&(z[0]=255&v,z[1]=v>>>8&255,r.check=o(r.check,z,2,0)),w=v=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(y<(S=r.length)&&(S=y),S&&(r.head&&(I=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,g,S,I)),512&r.flags&&(r.check=o(r.check,f,S,g)),y-=S,g+=S,r.length-=S),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===y)break e;for(S=0;I=f[g+S++],r.head&&I&&r.length<65536&&(r.head.name+=String.fromCharCode(I)),I&&S<y;);if(512&r.flags&&(r.check=o(r.check,f,S,g)),y-=S,g+=S,I)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===y)break e;for(S=0;I=f[g+S++],r.head&&I&&r.length<65536&&(r.head.comment+=String.fromCharCode(I)),I&&S<y;);if(512&r.flags&&(r.check=o(r.check,f,S,g)),y-=S,g+=S,I)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;w<16;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(v!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}w=v=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;w<32;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}e.adler=r.check=m(v),w=v=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=b,e.avail_out=A,e.next_in=g,e.avail_in=y,r.hold=v,r.bits=w,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){v>>>=7&w,w-=7&w,r.mode=27;break}for(;w<3;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}switch(r.last=1&v,w-=1,3&(v>>>=1)){case 0:r.mode=14;break;case 1:if(C(r),r.mode=20,6!==t)break;v>>>=2,w-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}v>>>=2,w-=2;break;case 14:for(v>>>=7&w,w-=7&w;w<32;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&v,w=v=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(S=r.length){if(y<S&&(S=y),A<S&&(S=A),0===S)break e;n.arraySet(p,f,g,S,b),y-=S,g+=S,A-=S,b+=S,r.length-=S;break}r.mode=12;break;case 17:for(;w<14;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(r.nlen=257+(31&v),v>>>=5,w-=5,r.ndist=1+(31&v),v>>>=5,w-=5,r.ncode=4+(15&v),v>>>=4,w-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;w<3;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}r.lens[U[r.have++]]=7&v,v>>>=3,w-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,B={bits:r.lenbits},L=a(0,r.lens,0,19,r.lencode,0,r.work,B),r.lenbits=B.bits,L){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;O=(F=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,N=65535&F,!((M=F>>>24)<=w);){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(N<16)v>>>=M,w-=M,r.lens[r.have++]=N;else{if(16===N){for(j=M+2;w<j;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(v>>>=M,w-=M,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}I=r.lens[r.have-1],S=3+(3&v),v>>>=2,w-=2}else if(17===N){for(j=M+3;w<j;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}w-=M,I=0,S=3+(7&(v>>>=M)),v>>>=3,w-=3}else{for(j=M+7;w<j;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}w-=M,I=0,S=11+(127&(v>>>=M)),v>>>=7,w-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=I}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,B={bits:r.lenbits},L=a(l,r.lens,0,r.nlen,r.lencode,0,r.work,B),r.lenbits=B.bits,L){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,B={bits:r.distbits},L=a(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,B),r.distbits=B.bits,L){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=y&&258<=A){e.next_out=b,e.avail_out=A,e.next_in=g,e.avail_in=y,r.hold=v,r.bits=w,s(e,k),b=e.next_out,p=e.output,A=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,v=r.hold,w=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;O=(F=r.lencode[v&(1<<r.lenbits)-1])>>>16&255,N=65535&F,!((M=F>>>24)<=w);){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(O&&0==(240&O)){for(P=M,R=O,D=N;O=(F=r.lencode[D+((v&(1<<P+R)-1)>>P)])>>>16&255,N=65535&F,!(P+(M=F>>>24)<=w);){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}v>>>=P,w-=P,r.back+=P}if(v>>>=M,w-=M,r.back+=M,r.length=N,0===O){r.mode=26;break}if(32&O){r.back=-1,r.mode=12;break}if(64&O){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&O,r.mode=22;case 22:if(r.extra){for(j=r.extra;w<j;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}r.length+=v&(1<<r.extra)-1,v>>>=r.extra,w-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;O=(F=r.distcode[v&(1<<r.distbits)-1])>>>16&255,N=65535&F,!((M=F>>>24)<=w);){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(0==(240&O)){for(P=M,R=O,D=N;O=(F=r.distcode[D+((v&(1<<P+R)-1)>>P)])>>>16&255,N=65535&F,!(P+(M=F>>>24)<=w);){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}v>>>=P,w-=P,r.back+=P}if(v>>>=M,w-=M,r.back+=M,64&O){e.msg="invalid distance code",r.mode=30;break}r.offset=N,r.extra=15&O,r.mode=24;case 24:if(r.extra){for(j=r.extra;w<j;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}r.offset+=v&(1<<r.extra)-1,v>>>=r.extra,w-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===A)break e;if(S=k-A,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}E=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),T=r.window}else T=p,E=b-r.offset,S=r.length;for(A<S&&(S=A),A-=S,r.length-=S;p[b++]=T[E++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===A)break e;p[b++]=r.length,A--,r.mode=21;break;case 27:if(r.wrap){for(;w<32;){if(0===y)break e;y--,v|=f[g++]<<w,w+=8}if(k-=A,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?o(r.check,p,k,b-k):i(r.check,p,k,b-k)),k=A,(r.flags?v:m(v))!==r.check){e.msg="incorrect data check",r.mode=30;break}w=v=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;w<32;){if(0===y)break e;y--,v+=f[g++]<<w,w+=8}if(v!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}w=v=0}r.mode=29;case 29:L=1;break e;case 30:L=-3;break e;case 31:return-4;default:return d}return e.next_out=b,e.avail_out=A,e.next_in=g,e.avail_in=y,r.hold=v,r.bits=w,(r.wsize||k!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&_(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(x-=e.avail_in,k-=e.avail_out,e.total_in+=x,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?o(r.check,p,k,e.next_out-k):i(r.check,p,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==x&&0===k||4===t)&&L===u&&(L=-5),L)},r.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&(t.window=null),e.state=null,u},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?d:((r.head=t).done=!1,u):d},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?d:11===r.mode&&i(1,t,n,0)!==r.check?-3:_(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,u):d},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){"use strict";var n=e("../utils/common"),i=[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],o=[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],s=[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];t.exports=function(e,t,r,l,c,u,d,h){var f,p,m,g,b,y,A,v,w,x=h.bits,k=0,C=0,_=0,S=0,E=0,T=0,M=0,O=0,N=0,P=0,R=null,D=0,I=new n.Buf16(16),L=new n.Buf16(16),B=null,j=0;for(k=0;k<=15;k++)I[k]=0;for(C=0;C<l;C++)I[t[r+C]]++;for(E=x,S=15;1<=S&&0===I[S];S--);if(S<E&&(E=S),0===S)return c[u++]=20971520,c[u++]=20971520,h.bits=1,0;for(_=1;_<S&&0===I[_];_++);for(E<_&&(E=_),k=O=1;k<=15;k++)if(O<<=1,(O-=I[k])<0)return-1;if(0<O&&(0===e||1!==S))return-1;for(L[1]=0,k=1;k<15;k++)L[k+1]=L[k]+I[k];for(C=0;C<l;C++)0!==t[r+C]&&(d[L[t[r+C]]++]=C);if(y=0===e?(R=B=d,19):1===e?(R=i,D-=257,B=o,j-=257,256):(R=s,B=a,-1),k=_,b=u,M=C=P=0,m=-1,g=(N=1<<(T=E))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(A=k-M,w=d[C]<y?(v=0,d[C]):d[C]>y?(v=B[j+d[C]],R[D+d[C]]):(v=96,0),f=1<<k-M,_=p=1<<T;c[b+(P>>M)+(p-=f)]=A<<24|v<<16|w,0!==p;);for(f=1<<k-1;P&f;)f>>=1;if(0!==f?(P&=f-1,P+=f):P=0,C++,0==--I[k]){if(k===S)break;k=t[r+d[C]]}if(E<k&&(P&g)!==m){for(0===M&&(M=E),b+=_,O=1<<(T=k-M);T+M<S&&!((O-=I[T+M])<=0);)T++,O<<=1;if(N+=1<<T,1===e&&852<N||2===e&&592<N)return 1;c[m=P&g]=E<<24|T<<16|b-u}}return 0!==P&&(c[b+P]=k-M<<24|64<<16),h.bits=E,0}},{"../utils/common":41}],51:[function(e,t,r){"use strict";t.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(e,t,r){"use strict";var n=e("../utils/common"),i=0,o=1;function s(e){for(var t=e.length;0<=--t;)e[t]=0}var a=0,l=29,c=256,u=c+1+l,d=30,h=19,f=2*u+1,p=15,m=16,g=7,b=256,y=16,A=17,v=18,w=[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],x=[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],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],C=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],_=new Array(2*(u+2));s(_);var S=new Array(2*d);s(S);var E=new Array(512);s(E);var T=new Array(256);s(T);var M=new Array(l);s(M);var O,N,P,R=new Array(d);function D(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function I(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function L(e){return e<256?E[e]:E[256+(e>>>7)]}function B(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function j(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,B(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function F(e,t,r){j(e,r[2*t],r[2*t+1])}function z(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function U(e,t,r){var n,i,o=new Array(p+1),s=0;for(n=1;n<=p;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=z(o[a]++,a))}}function H(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<h;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*b]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function V(e){8<e.bi_valid?B(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function W(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function K(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&W(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!W(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function q(e,t,r){var n,i,o,s,a=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===n?F(e,i,t):(F(e,(o=T[i])+c+1,t),0!==(s=w[o])&&j(e,i-=M[o],s),F(e,o=L(--n),r),0!==(s=x[o])&&j(e,n-=R[o],s)),a<e.last_lit;);F(e,b,t)}function G(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=f,r=0;r<l;r++)0!==o[2*r]?(e.heap[++e.heap_len]=c=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=c,r=e.heap_len>>1;1<=r;r--)K(e,o,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],K(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,K(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,l=t.dyn_tree,c=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,b=0;for(o=0;o<=p;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<f;r++)g<(o=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(o=g,b++),l[2*n+1]=o,c<n||(e.bl_count[o]++,s=0,m<=n&&(s=h[n-m]),a=l[2*n],e.opt_len+=a*(o+s),d&&(e.static_len+=a*(u[2*n+1]+s)));if(0!==b){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,b-=2}while(0<b);for(o=g;0!==o;o--)for(n=e.bl_count[o];0!==n;)c<(i=e.heap[--r])||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(e,t),U(o,c,e.bl_count)}function X(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<l&&i===s||(a<c?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*y]++):a<=10?e.bl_tree[2*A]++:e.bl_tree[2*v]++,o=i,c=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4))}function Y(e,t,r){var n,i,o=-1,s=t[1],a=0,l=7,c=4;for(0===s&&(l=138,c=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<l&&i===s)){if(a<c)for(;F(e,i,e.bl_tree),0!=--a;);else 0!==i?(i!==o&&(F(e,i,e.bl_tree),a--),F(e,y,e.bl_tree),j(e,a-3,2)):a<=10?(F(e,A,e.bl_tree),j(e,a-3,3)):(F(e,v,e.bl_tree),j(e,a-11,7));o=i,c=(a=0)===s?(l=138,3):i===s?(l=6,3):(l=7,4)}}s(R);var $=!1;function Q(e,t,r,i){j(e,(a<<1)+(i?1:0),3),function(e,t,r,i){V(e),i&&(B(e,r),B(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pen
2ding),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){$||(function(){var e,t,r,n,i,o=new Array(p+1);for(n=r=0;n<l-1;n++)for(M[n]=r,e=0;e<1<<w[n];e++)T[r++]=n;for(T[r-1]=n,n=i=0;n<16;n++)for(R[n]=i,e=0;e<1<<x[n];e++)E[i++]=n;for(i>>=7;n<d;n++)for(R[n]=i<<7,e=0;e<1<<x[n]-7;e++)E[256+i++]=n;for(t=0;t<=p;t++)o[t]=0;for(e=0;e<=143;)_[2*e+1]=8,e++,o[8]++;for(;e<=255;)_[2*e+1]=9,e++,o[9]++;for(;e<=279;)_[2*e+1]=7,e++,o[7]++;for(;e<=287;)_[2*e+1]=8,e++,o[8]++;for(U(_,u+1,o),e=0;e<d;e++)S[2*e+1]=5,S[2*e]=z(e,5);O=new D(_,w,c+1,u,p),N=new D(S,x,0,d,p),P=new D(new Array(0),k,0,h,g)}(),$=!0),e.l_desc=new I(e.dyn_ltree,O),e.d_desc=new I(e.dyn_dtree,N),e.bl_desc=new I(e.bl_tree,P),e.bi_buf=0,e.bi_valid=0,H(e)},r._tr_stored_block=Q,r._tr_flush_block=function(e,t,r,n){var s,a,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return i;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return o;for(t=32;t<c;t++)if(0!==e.dyn_ltree[2*t])return o;return i}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){var t;for(X(e,e.dyn_ltree,e.l_desc.max_code),X(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=h-1;3<=t&&0===e.bl_tree[2*C[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),s=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=s&&(s=a)):s=a=r+5,r+4<=s&&-1!==t?Q(e,t,r,n):4===e.strategy||a===s?(j(e,2+(n?1:0),3),q(e,_,S)):(j(e,4+(n?1:0),3),function(e,t,r,n){var i;for(j(e,t-257,5),j(e,r-1,5),j(e,n-4,4),i=0;i<n;i++)j(e,e.bl_tree[2*C[i]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),q(e,e.dyn_ltree,e.dyn_dtree)),H(e),n&&V(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+c+1)]++,e.dyn_dtree[2*L(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){j(e,2,3),F(e,b,_),function(e){16===e.bi_valid?(B(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,r){"use strict";t.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(e,t,r){(function(e){!function(e,t){"use strict";if(!e.setImmediate){var r,n,i,o,s=1,a={},l=!1,c=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick(function(){h(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(n=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(h,0,e)},u.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return a[s]=i,r(s),s++},u.clearImmediate=d}function d(e){delete a[e]}function h(e){if(l)setTimeout(h,0,e);else{var r=a[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&h(+t.data.slice(o.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)},2434(e,t,r){var n=r(220)(r(4759),"DataView");e.exports=n},1111(e,t,r){var n=r(6958),i=r(1176),o=r(1787),s=r(231),a=r(7455);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},5661(e,t,r){var n=r(5088),i=r(150),o=r(7889),s=r(4349),a=r(3077);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},1465(e,t,r){var n=r(220)(r(4759),"Map");e.exports=n},4467(e,t,r){var n=r(738),i=r(708),o=r(6823),s=r(475),a=r(7859);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=s,l.prototype.set=a,e.exports=l},202(e,t,r){var n=r(220)(r(4759),"Promise");e.exports=n},7887(e,t,r){var n=r(220)(r(4759),"Set");e.exports=n},6669(e,t,r){var n=r(4467),i=r(2274),o=r(9757);function s(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,e.exports=s},5535(e,t,r){var n=r(5661),i=r(4710),o=r(8384),s=r(7379),a=r(799),l=r(2791);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=s,c.prototype.has=a,c.prototype.set=l,e.exports=c},4635(e,t,r){var n=r(4759).Symbol;e.exports=n},8246(e,t,r){var n=r(4759).Uint8Array;e.exports=n},4801(e,t,r){var n=r(220)(r(4759),"WeakMap");e.exports=n},5507(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},299(e){e.exports=function(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i<o;){var s=e[i];t(n,s,r(s),e)}return n}},6860(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o}},3107(e,t,r){var n=r(1049);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},3259(e){e.exports=function(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}},7405(e,t,r){var n=r(4102),i=r(4578),o=r(2279),s=r(6794),a=r(7059),l=r(1641),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&i(e),d=!r&&!u&&s(e),h=!r&&!u&&!d&&l(e),f=r||u||d||h,p=f?n(e.length,String):[],m=p.length;for(var g in e)!t&&!c.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||p.push(g);return p}},1570(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}},7518(e){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;
vendor: 2,551 bytes, line 2
2)e[i+r]=t[r];return e}},6010(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},7305(e,t,r){var n=r(366),i=r(4206),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var s=e[t];o.call(e,t)&&i(s,r)&&(void 0!==r||t in e)||n(e,t,r)}},5099(e,t,r){var n=r(4206);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1971(e,t,r){var n=r(927);e.exports=function(e,t,r,i){return n(e,function(e,n,o){t(i,e,r(e),o)}),i}},366(e,t,r){var n=r(8925);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},927(e,t,r){var n=r(423),i=r(3267)(n);e.exports=i},6993(e){e.exports=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},6810(e,t,r){var n=r(7518),i=r(7989);e.exports=function e(t,r,o,s,a){var l=-1,c=t.length;for(o||(o=i),a||(a=[]);++l<c;){var u=t[l];r>0&&o(u)?r>1?e(u,r-1,o,s,a):n(a,u):s||(a[a.length]=u)}return a}},3031(e,t,r){var n=r(5211)();e.exports=n},423(e,t,r){var n=r(3031),i=r(5724);e.exports=function(e,t){return e&&n(e,t,i)}},52(e,t,r){var n=r(6463),i=r(2535);e.exports=function(e,t){for(var r=0,o=(t=n(t,e)).length;null!=e&&r<o;)e=e[i(t[r++])];return r&&r==o?e:void 0}},4761(e,t,r){var n=r(7518),i=r(2279);e.exports=function(e,t,r){var o=t(e);return i(e)?o:n(o,r(e))}},9641(e,t,r){var n=r(4635),i=r(1581),o=r(5336),s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},4591(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},1049(e,t,r){var n=r(6993),i=r(5381),o=r(7825);e.exports=function(e,t,r){return t===t?o(e,t,r):n(e,i,r)}},3012(e,t,r){var n=r(9641),i=r(9248);e.exports=function(e){return i(e)&&"[object Arguments]"==n(e)}},6666(e,t,r){var n=r(9641),i=r(9248);e.exports=function(e){return i(e)&&"[object Date]"==n(e)}},1404(e,t,r){var n=r(2130),i=r(9248);e.exports=function e(t,r,o,s,a){return t===r||(null==t||null==r||!i(t)&&!i(r)?t!==t&&r!==r:n(t,r,o,s,e,a))}},2130(e,t,r){var n=r(5535),i=r(4519),o=r(1416),s=r(6195),a=r(5531),l=r(2279),c=r(6794),u=r(1641),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,g,b){var y=l(e),A=l(t),v=y?h:a(e),w=A?h:a(t),x=(v=v==d?f:v)==f,k=(w=w==d?f:w)==f,C=v==w;if(C&&c(e)){if(!c(t))return!1;y=!0,x=!1}if(C&&!x)return b||(b=new n),y||u(e)?i(e,t,r,m,g,b):o(e,t,v,r,m,g,b);if(!(1&r)){var _=x&&p.call(e,"__wrapped__"),S=k&&p.call(t,"__wrapped__");
vendor: 7,492 bytes, line 2
2if(_||S){var E=_?e.value():e,T=S?t.value():t;return b||(b=new n),g(E,T,r,m,b)}}return!!C&&(b||(b=new n),s(e,t,r,m,g,b))}},4489(e,t,r){var n=r(5535),i=r(1404);e.exports=function(e,t,r,o){var s=r.length,a=s,l=!o;if(null==e)return!a;for(e=Object(e);s--;){var c=r[s];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++s<a;){var u=(c=r[s])[0],d=e[u],h=c[1];if(l&&c[2]){if(void 0===d&&!(u in e))return!1}else{var f=new n;if(o)var p=o(d,h,u,e,t,f);if(!(void 0===p?i(h,d,3,o,f):p))return!1}}return!0}},5381(e){e.exports=function(e){return e!==e}},7949(e,t,r){var n=r(3008),i=r(3306),o=r(4567),s=r(9131),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,h=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(n(e)?h:a).test(s(e))}},1951(e,t,r){var n=r(9641),i=r(9248);e.exports=function(e){return i(e)&&"[object RegExp]"==n(e)}},8183(e,t,r){var n=r(9641),i=r(5776),o=r(9248),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!s[n(e)]}},5127(e,t,r){var n=r(9769),i=r(4104),o=r(9002),s=r(2279),a=r(8857);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):n(e):a(e)}},7462(e,t,r){var n=r(2161),i=r(5112),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},8833(e,t,r){var n=r(4567),i=r(2161),o=r(7175),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=i(e),r=[];for(var a in e)("constructor"!=a||!t&&s.call(e,a))&&r.push(a);return r}},6602(e,t,r){var n=r(927),i=r(7840);e.exports=function(e,t){var r=-1,o=i(e)?Array(e.length):[];return n(e,function(e,n,i){o[++r]=t(e,n,i)}),o}},9769(e,t,r){var n=r(4489),i=r(3334),o=r(4243);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},4104(e,t,r){var n=r(1404),i=r(7946),o=r(5321),s=r(5916),a=r(9794),l=r(4243),c=r(2535);e.exports=function(e,t){return s(e)&&a(t)?l(c(e),t):function(r){var s=i(r,e);return void 0===s&&s===t?o(r,e):n(t,s,3)}}},8245(e,t,r){var n=r(1570),i=r(52),o=r(5127),s=r(6602),a=r(7311),l=r(5639),c=r(8152),u=r(9002),d=r(2279);e.exports=function(e,t,r){t=t.length?n(t,function(e){return d(e)?function(t){return i(t,1===e.length?e[0]:e)}:e}):[u];var h=-1;t=n(t,l(o));var f=s(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++h,value:e}});return a(f,function(e,t){return c(e,t,r)})}},5271(e,t,r){var n=r(2038),i=r(5321);e.exports=function(e,t){return n(e,t,function(t,r){return i(e,r)})}},2038(e,t,r){var n=r(52),i=r(6992),o=r(6463);e.exports=function(e,t,r){for(var s=-1,a=t.length,l={};++s<a;){var c=t[s],u=n(e,c);r(u,c)&&i(l,o(c,e),u)}return l}},9343(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4753(e,t,r){var n=r(52);e.exports=function(e){return function(t){return n(t,e)}}},516(e,t,r){var n=r(9002),i=r(4295),o=r(1043);e.exports=function(e,t){return o(i(e,t,n),e+"")}},6992(e,t,r){var n=r(7305),i=r(6463),o=r(7059),s=r(4567),a=r(2535);e.exports=function(e,t,r,l){if(!s(e))return e;for(var c=-1,u=(t=i(t,e)).length,d=u-1,h=e;null!=h&&++c<u;){var f=a(t[c]),p=r;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var m=h[f];void 0===(p=l?l(m,f,h):void 0)&&(p=s(m)?m:o(t[c+1])?[]:{})}n(h,f,p),h=h[f]}return e}},5148(e,t,r){var n=r(6800),i=r(8925),o=r(9002),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:o;e.exports=s},7311(e){e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},7606(e,t,r){var n=r(4206);e.exports=function(e,t){for(var r=-1,i=e.length,o=0,s=[];++r<i;){var a=e[r],l=t?t(a):a;if(!r||!n(l,c)){var c=l;s[o++]=0===a?0:a}}return s}},4102(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},1582(e,t,r){var n=r(4635),i=r(1570),o=r(2279),s=r(184),a=n?n.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(s(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},6914(e,t,r){var n=r(8798),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},5639(e){e.exports=function(e){return function(t){return e(t)}}},564(e,t,r){var n=r(6669),i=r(3107),o=r(3259),s=r(3445),a=r(3739),l=r(6557);e.exports=function(e,t,r){var c=-1,u=i,d=e.length,h=!0,f=[],p=f;if(r)h=!1,u=o;else if(d>=200){var m=t?null:a(e);if(m)return l(m);h=!1,u=s,p=new n}else p=t?[]:f;e:for(;++c<d;){var g=e[c],b=t?t(g):g;if(g=r||0!==g?g:0,h&&b===b){for(var y=p.length;y--;)if(p[y]===b)continue e;t&&p.push(b),f.push(g)}else u(p,b,r)||(p!==f&&p.push(b),f.push(g))}return f}},3445(e){e.exports=function(e,t){return e.has(t)}},6463(e,t,r){var n=r(2279),i=r(5916),o=r(7044),s=r(4008);e.exports=function(e,t){return n(e)?e:i(e,t)?[e]:o(s(e))}},656(e,t,r){var n=r(184);e.exports=function(e,t){if(e!==t){var r=void 0!==e,i=null===e,o=e===e,s=n(e),a=void 0!==t,l=null===t,c=t===t,u=n(t);if(!l&&!u&&!s&&e>t||s&&a&&c&&!l&&!u||i&&a&&c||!r&&c||!o)return 1;if(!i&&!s&&!u&&e<t||u&&r&&o&&!i&&!s||l&&r&&o||!a&&o||!c)return-1}return 0}},8152(e,t,r){var n=r(656);e.exports=function(e,t,r){for(var i=-1,o=e.criteria,s=t.criteria,a=o.length,l=r.length;++i<a;){var c=n(o[i],s[i]);if(c)return i>=l?c:c*("desc"==r[i]?-1:1)}return e.index-t.index}},4123(e,t,r){var n=r(4759)["__core-js_shared__"];e.exports=n},6942(e,t,r){var n=r(299),i=r(1971),o=r(5127),s=r(2279);e.exports=function(e,t){return function(r,a){var l=s(r)?n:i,c=t?t():{};return l(r,e,o(a,2),c)}}},3267(e,t,r){var n=r(7840);e.exports=function(e,t){return function(r,i){if(null==r)return r;if(!n(r))return e(r,i);for(var o=r.length,s=t?o:-1,a=Object(r);(t?s--:++s<o)&&!1!==i(a[s],s,a););return r}}},5211(e){e.exports=function(e){return function(t,r,n){for(var i=-1,o=Object(t),s=n(t),a=s.length;a--;){var l=s[e?a:++i];if(!1===r(o[l],l,o))break}return t}}},3739(e,t,r){var n=r(7887),i=r(9208),o=r(6557),s=n&&1/o(new n([,-0]))[1]==1/0?function(e){return new n(e)}:i;e.exports=s},8925(e,t,r){var n=r(220),i=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},4519(e,t,r){var n=r(6669),i=r(6010),o=r(3445);e.exports=function(e,t,r,s,a,l){var c=1&r,u=e.length,d=t.length;if(u!=d&&!(c&&d>u))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,m=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<u;){var b=e[p],y=t[p];if(s)var A=c?s(y,b,p,t,e,l):s(b,y,p,e,t,l);if(void 0!==A){if(A)continue;m=!1;break}if(g){if(!i(t,function(e,t){if(!o(g,t)&&(b===e||a(b,e,r,s,l)))return g.push(t)})){m=!1;break}}else if(b!==y&&!a(b,y,r,s,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},1416(e,t,r){var n=r(4635),i=r(8246),o=r(4206),s=r(4519),a=r(943),l=r(6557),c=n?n.prototype:void 0,u=c?c.valueOf
vendor: 10,794 bytes, line 2
2:void 0;e.exports=function(e,t,r,n,c,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var p=1&n;if(f||(f=l),e.size!=t.size&&!p)return!1;var m=h.get(e);if(m)return m==t;n|=2,h.set(e,t);var g=s(f(e),f(t),n,c,d,h);return h.delete(e),g;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6195(e,t,r){var n=r(3660),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,s,a){var l=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!l)return!1;for(var d=u;d--;){var h=c[d];if(!(l?h in t:i.call(t,h)))return!1}var f=a.get(e),p=a.get(t);if(f&&p)return f==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<u;){var b=e[h=c[d]],y=t[h];if(o)var A=l?o(y,b,h,t,e,a):o(b,y,h,e,t,a);if(!(void 0===A?b===y||s(b,y,r,o,a):A)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(e),a.delete(t),m}},5002(e,t,r){var n=r(2964),i=r(4295),o=r(1043);e.exports=function(e){return o(i(e,void 0,n),e+"")}},6658(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},3660(e,t,r){var n=r(4761),i=r(8194),o=r(5724);e.exports=function(e){return n(e,o,i)}},6387(e,t,r){var n=r(4761),i=r(9653),o=r(1235);e.exports=function(e){return n(e,o,i)}},7101(e,t,r){var n=r(4672);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},3334(e,t,r){var n=r(9794),i=r(5724);e.exports=function(e){for(var t=i(e),r=t.length;r--;){var o=t[r],s=e[o];t[r]=[o,s,n(s)]}return t}},220(e,t,r){var n=r(7949),i=r(8166);e.exports=function(e,t){var r=i(e,t);return n(r)?r:void 0}},2253(e,t,r){var n=r(2621)(Object.getPrototypeOf,Object);e.exports=n},1581(e,t,r){var n=r(4635),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(l){}var i=s.call(e);return n&&(t?e[a]=r:delete e[a]),i}},8194(e,t,r){var n=r(6860),i=r(1515),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),n(s(e),function(t){return o.call(e,t)}))}:i;e.exports=a},9653(e,t,r){var n=r(7518),i=r(2253),o=r(8194),s=r(1515),a=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,o(e)),e=i(e);return t}:s;e.exports=a},5531(e,t,r){var n=r(2434),i=r(1465),o=r(202),s=r(7887),a=r(4801),l=r(9641),c=r(9131),u="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",m=c(n),g=c(i),b=c(o),y=c(s),A=c(a),v=l;(n&&v(new n(new ArrayBuffer(1)))!=p||i&&v(new i)!=u||o&&v(o.resolve())!=d||s&&v(new s)!=h||a&&v(new a)!=f)&&(v=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return p;case g:return u;case b:return d;case y:return h;case A:return f}return t}),e.exports=v},8166(e){e.exports=function(e,t){return null==e?void 0:e[t]}},964(e,t,r){var n=r(6463),i=r(4578),o=r(2279),s=r(7059),a=r(5776),l=r(2535);e.exports=function(e,t,r){for(var c=-1,u=(t=n(t,e)).length,d=!1;++c<u;){var h=l(t[c]);if(!(d=null!=e&&r(e,h)))break;e=e[h]}return d||++c!=u?d:!!(u=null==e?0:e.length)&&a(u)&&s(h,u)&&(o(e)||i(e))}},6958(e,t,r){var n=r(3616);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},1176(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1787(e,t,r){var n=r(3616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return i.call(t,e)?t[e]:void 0}},231(e,t,r){var n=r(3616),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:i.call(t,e)}},7455(e,t,r){var n=r(3616);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},7989(e,t,r){var n=r(4635),i=r(4578),o=r(2279),s=n?n.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(s&&e&&e[s])}},7059(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9042(e,t,r){var n=r(4206),i=r(7840),o=r(7059),s=r(4567);e.exports=function(e,t,r){if(!s(r))return!1;var a=typeof t;return!!("number"==a?i(r)&&o(t,r.length):"string"==a&&t in r)&&n(r[t],e)}},5916(e,t,r){var n=r(2279),i=r(184),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}},4672(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},3306(e,t,r){var n=r(4123),i=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},2161(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},9794(e,t,r){var n=r(4567);e.exports=function(e){return e===e&&!n(e)}},5088(e){e.exports=function(){this.__data__=[],this.size=0}},150(e,t,r){var n=r(5099),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():i.call(t,r,1),--this.size,!0)}},7889(e,t,r){var n=r(5099);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},4349(e,t,r){var n=r(5099);e.exports=function(e){return n(this.__data__,e)>-1}},3077(e,t,r){var n=r(5099);e.exports=function(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}},738(e,t,r){var n=r(1111),i=r(5661),o=r(1465);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},708(e,t,r){var n=r(7101);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6823(e,t,r){var n=r(7101);e.exports=function(e){return n(this,e).get(e)}},475(e,t,r){var n=r(7101);e.exports=function(e){return n(this,e).has(e)}},7859(e,t,r){var n=r(7101);e.exports=function(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}},943(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}},4243(e){e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},3734(e,t,r){var n=r(53);e.exports=function(e){var t=n(e,function(e){return 500===r.size&&r.clear(),e}),r=t.cache;return t}},3616(e,t,r){var n=r(220)(Object,"create");e.exports=n},5112(e,t,r){var n=r(2621)(Object.keys,Object);e.exports=n},7175(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},2479(e,t,r){e=r.nmd(e);var n=r(6658),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=a},5336(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},2621(e){e.exports=function(e,t){return function(r){return e(t(r))}}},4295(e,t,r){var n=r(5507),i=Math.max;e.exports=function(e,t,r){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),l=Array(a);++s<a;)l[s]=o[t+s];s=-1;for(var c=Array(t+1);++s<t;)c[s]=o[s];return c[t]=r(l),n(e,this,c)}}},4759(e,t,r){var n=r(6658),i="object"==typeof self&&self&&self.Object===Object&&self,o=n||i||Function("return this")();e.exports=o},2274(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},9757(e){e.exports=function(e){return this.__data__.has(e)}},6557(e){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}},1043(e,t,r){var n=r(5148),i=r(2929)(n);e.exports=i},2929(e){var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var i=t(),o=16-(i-n);if(n=i,o>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},4710(e,t,r){var n=r(5661);e.exports=function(){this.__data__=new n,this.size=0}},8384(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7379(e){e.exports=function(e){return this.__data__.get(e)}},799(e){e.exports=function(e){return this.__data__.has(e)}},2791(e,t,r){var n=r(5661),i=r(1465),o=r(4467);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!i||s.length<199)return s.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(s)}return r.set(e,t),this.size=r.size,this}},7825(e){e.exports=function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}},7044(e,t,r){var n=r(3734),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=n(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=s},2535(e,t,r){var n=r(184);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},9131(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},8798(e){var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},6800(e){e.exports=function(e){return function(){return e}}},5491(e,t,r){var n=r(4567),i=r(4378),o=r(2588),s=Math.max,a=Math.min;e.exports=function(e,t,r){var l,c,u,d,h,f,p=0,m=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var r=l,n=c;return l=c=void 0,p=t,d=e.apply(n,r)}function A(e){var r=e-f;return void 0===f||r>=t||r<0||g&&e-p>=u}function v(){var e=i();if(A(e))return w(e);h=setTimeout(v,function(e){var r=t-(e-f);return g?a(r,u-(e-p)):r}(e))}function w(e){return h=void 0,b&&l?y(e):(l=c=void 0,d)}function x(){var e=i(),r=A(e);if(l=arguments,c=this,f=e,r){if(void 0===h)return function(e){return p=e,h=setTimeout(v,t),m?y(e):d}(f);if(g)return clearTimeout(h),h=setTimeout(v,t),y(f)}return void 0===h&&(h=setTimeout(v,t)),d}return t=o(t)||0,n(r)&&(m=!!r.leading,u=(g="maxWait"in r)?s(o(r.maxWait)||0,t):u,b="trailing"in r?!!r.trailing:b),x.cancel=function(){void 0!==h&&clearTimeout(h),p=0,l=f=c=h=void 0},x.flush=function(){return void 0===h?d:w(i())},x}
2},210(e,t,r){var n=r(516),i=r(4206),o=r(9042),s=r(1235),a=Object.prototype,l=a.hasOwnProperty,c=n(function(e,t){e=Object(e);var r=-1,n=t.length,c=n>2?t[2]:void 0;for(c&&o(t[0],t[1],c)&&(n=1);++r<n;)for(var u=t[r],d=s(u),h=-1,f=d.length;++h<f;){var p=d[h],m=e[p];(void 0===m||i(m,a[p])&&!l.call(e,p))&&(e[p]=u[p])}return e});e.exports=c},4206(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},2964(e,t,r){var n=r(6810);e.exports=function(e){return(null==e?0:e.length)?n(e,1):[]}},5927(e){e.exports=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n}},7946(e,t,r){var n=r(52);e.exports=function(e,t,r){var i=null==e?void 0:n(e,t);return void 0===i?r:i}},3684(e,t,r){var n=r(366),i=r(6942),o=Object.prototype.hasOwnProperty,s=i(function(e,t,r){o.call(e,r)?e[r].push(t):n(e,r,[t])});e.exports=s},5321(e,t,r){var n=r(4591),i=r(964);e.exports=function(e,t){return null!=e&&i(e,t,n)}},9002(e){e.exports=function(e){return e}},4578(e,t,r){var n=r(3012),i=r(9248),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},2279(e){var t=Array.isArray;e.exports=t},7840(e,t,r){var n=r(3008),i=r(5776);e.exports=function(e){return null!=e&&i(e.length)&&!n(e)}},6794(e,t,r){e=r.nmd(e);var n=r(4759),i=r(3721),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?n.Buffer:void 0,l=(a?a.isBuffer:void 0)||i;e.exports=l},4708(e,t,r){var n=r(6666),i=r(5639),o=r(2479),s=o&&o.isDate,a=s?i(s):n;e.exports=a},6791(e,t,r){var n=r(7462),i=r(5531),o=r(4578),s=r(2279),a=r(7840),l=r(6794),c=r(2161),u=r(1641),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||o(e)))return!e.length;var t=i(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(d.call(e,r))return!1;return!0}},9418(e,t,r){var n=r(1404);e.exports=function(e,t){return n(e,t)}},3008(e,t,r){var n=r(9641),i=r(4567);e.exports=function(e){if(!i(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5776(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4567(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},9248(e){e.exports=function(e){return null!=e&&"object"==typeof e}},5461(e,t,r){var n=r(9641),i=r(2253),o=r(9248),s=Function.prototype,a=Object.prototype,l=s.toString,c=a.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!o(e)||"[object Object]"!=n(e))return!1;var t=i(e);if(null===t)return!0;var r=c.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&l.call(r)==u}},8065(e,t,r){var n=r(1951),i=r(5639),o=r(2479),s=o&&o.isRegExp,a=s?i(s):n;e.exports=a},184(e,t,r){var n=r(9641),i=r(9248);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},1641(e,t,r){var n=r(8183),i=r(5639),o=r(2479),s=o&&o.isTypedArray,a=s?i(s):n;e.exports=a},7842(e){e.exports=function(e){return void 0===e}},5724(e,t,r){var n=r(7405),i=r(7462),o=r(7840);e.exports=function(e){return o(e)?n(e):i(e)}},1235(e,t,r){var n=r(7405),i=r(8833),o=r(7840);e.exports=function(e){return o(e)?n(e,!0):i(e)}},53(e,t,r){var n=r(4467);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},9822(e){e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9208(e){e.exports=function(){}},4378(e,t,r){var n=r(4759);e.exports=function(){return n.Date.now()}},3256(e,t,r){var n=r(5127),i=r(9822),o=r(8936);e.exports=function(e,t){return o(e,i(n(t)))}},263(e,t,r){var n=r(8245),i=r(2279);e.exports=function(e,t,r,o){return null==e?[]:(i(t)||(t=null==t?[]:[t]),i(r=o?void 0:r)||(r=null==r?[]:[r]),n(e,t,r))}},5357(e,t,r){var n=r(5271),i=r(5002)(function(e,t){return null==e?{}:n(e,t)});e.exports=i},8936(e,t,r){var n=r(1570),i=r(5127),o=r(2038),s=r(6387);e.exports=function(e,t){if(null==e)return{};var r=n(s(e),function(e){return[e]});return t=i(t),o(e,r,function(e,r){return t(e,r[0])})}},8857(e,t,r){var n=r(9343),i=r(4753),o=r(5916),s=r(2535);e.exports=function(e){return o(e)?n(s(e)):i(e)}},8116(e,t,r){var n=r(7606);e.exports=function(e){return e&&e.length?n(e):[]}},1515(e){e.exports=function(){return[]}},3721(e){e.exports=function(){return!1}},492(e,t,r){var n=r(5491),i=r(4567);e.exports=function(e,t,r){var o=!0,s=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,s="trailing"in r?!!r.trailing:s),n(e,t,{leading:o,maxWait:t,trailing:s})}},2588(e,t,r){var n=r(6914),i=r(4567),o=r(184),s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=a.test(e);return r||l.test(e)?c(e.slice(2),r?2:8):s.test(e)?NaN:+e}},4008(e,t,r){var n=r(1582);e.exports=function(e){return null==e?"":n(e)}},561(e,t,r){var n=r(564);e.exports=function(e){return e&&e.length?n(e):[]}},5420(e,t,r){var n=r(5127),i=r(564);
2e.exports=function(e,t){return e&&e.length?i(e,n(t,2)):[]}},2810(e,t,r){var n=r(4008),i=0;e.exports=function(e){var t=++i;return n(e)+t}},5341(e,t,r){"use strict";r.d(t,{A:()=>We});var n=r(8728),i=r.n(n),o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function s(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e))}catch(t){o(t)}}function a(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function a(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(l){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(l){a=[6,l],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,l])}}}function l(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}var c,u,d=914400,h=12700,f="\r\n",p=/^[0-9a-fA-F]{6}$/,m="solid",g="666666",b=1,y=[.05,.1,.05,.1],A="363636",v=1,w="888888",x="solid",k=1,C="flat",_="000000",S=12,E="LAYOUT_16x9",T="DEFAULT",M="333333",O={type:"outer",blur:3,offset:23e3/12700,angle:90,color:"000000",opacity:.35,rotateWithShape:!0},N=[.5,.5,.5,.5],P="000000",R={size:8,color:"FFFFFF",opacity:.75},D="2094734552",I="2094734553",L="2094734554",B="2094734555",j="2094734556",F="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),z=["C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360","C0504D","4F81BD","9BBB59","8064A2","4BACC6","F79646","628FC6","C86360"],U=["5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7","5DA5DA","FAA43A","60BD68","F17CB0","B2912F","B276B2","DECF3F","F15854","A7A7A7"];!function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"}(c||(c={})),function(e){e.b="b",e.ctr="ctr",e.t="t"}(u||(u={}));var H,V,W,K,q,G,X,Y,$,Q,J,Z,ee,te="{F7021451-1387-4CA6-816F-3879F97B5CBC}";!function(e){e.arraybuffer="arraybuffer",e.base64="base64",e.binarystring="binarystring",e.blob="blob",e.nodebuffer="nodebuffer",e.uint8array="uint8array"}(H||(H={})),function(e){e.area="area",e.bar="bar",e.bar3d="bar3D",e.bubble="bubble",e.bubble3d="bubble3D",e.doughnut="doughnut",e.line="line",e.pie="pie",e.radar="radar",e.scatter="scatter"}(V||(V={})),function(e){e.accentBorderCallout1="accentBorderCallout1",e.accentBorderCallout2="accentBorderCallout2",e.accentBorderCallout3="accentBorderCallout3",e.accentCallout1="accentCallout1",e.accentCallout2="accentCallout2",e.accentCallout3="accentCallout3",e.actionButtonBackPrevious="actionButtonBackPrevious",e.actionButtonBeginning="actionButtonBeginning",e.actionButtonBlank="actionButtonBlank",e.actionButtonDocument="actionButtonDocument",e.actionButtonEnd="actionButtonEnd",e.actionButtonForwardNext="actionButtonForwardNext",e.actionButtonHelp="actionButtonHelp",e.actionButtonHome="actionButtonHome",e.actionButtonInformation="actionButtonInformation",e.actionButtonMovie="actionButtonMovie",e.actionButtonReturn="actionButtonReturn",e.actionButtonSound="actionButtonSound",e.arc="arc",e.bentArrow="bentArrow",e.bentUpArrow="bentUpArrow",e.bevel="bevel",e.blockArc="blockArc",e.borderCallout1="borderCallout1",e.borderCallout2="borderCallout2",e.borderCallout3="borderCallout3",e.bracePair="bracePair",e.bracketPair="bracketPair",e.callout1="callout1",e.callout2="callout2",e.callout3="callout3",e.can="can",e.chartPlus="chartPlus",e.chartStar="chartStar",e.chartX="chartX",e.chevron="chevron",e.chord="chord",e.circularArrow="circularArrow",e.cloud="cloud",e.cloudCallout="cloudCallout",e.corner="corner",e.cornerTabs="cornerTabs",e.cube="cube",e.curvedDownArrow="curvedDownArrow",e.curvedLeftArrow="curvedLeftArrow",e.curvedRightArrow="curvedRightArrow",e.curvedUpArrow="curvedUpArrow",e.custGeom="custGeom",e.decagon="decagon",e.diagStripe="diagStr
2ipe",e.diamond="diamond",e.dodecagon="dodecagon",e.donut="donut",e.doubleWave="doubleWave",e.downArrow="downArrow",e.downArrowCallout="downArrowCallout",e.ellipse="ellipse",e.ellipseRibbon="ellipseRibbon",e.ellipseRibbon2="ellipseRibbon2",e.flowChartAlternateProcess="flowChartAlternateProcess",e.flowChartCollate="flowChartCollate",e.flowChartConnector="flowChartConnector",e.flowChartDecision="flowChartDecision",e.flowChartDelay="flowChartDelay",e.flowChartDisplay="flowChartDisplay",e.flowChartDocument="flowChartDocument",e.flowChartExtract="flowChartExtract",e.flowChartInputOutput="flowChartInputOutput",e.flowChartInternalStorage="flowChartInternalStorage",e.flowChartMagneticDisk="flowChartMagneticDisk",e.flowChartMagneticDrum="flowChartMagneticDrum",e.flowChartMagneticTape="flowChartMagneticTape",e.flowChartManualInput="flowChartManualInput",e.flowChartManualOperation="flowChartManualOperation",e.flowChartMerge="flowChartMerge",e.flowChartMultidocument="flowChartMultidocument",e.flowChartOfflineStorage="flowChartOfflineStorage",e.flowChartOffpageConnector="flowChartOffpageConnector",e.flowChartOnlineStorage="flowChartOnlineStorage",e.flowChartOr="flowChartOr",e.flowChartPredefinedProcess="flowChartPredefinedProcess",e.flowChartPreparation="flowChartPreparation",e.flowChartProcess="flowChartProcess",e.flowChartPunchedCard="flowChartPunchedCard",e.flowChartPunchedTape="flowChartPunchedTape",e.flowChartSort="flowChartSort",e.flowChartSummingJunction="flowChartSummingJunction",e.flowChartTerminator="flowChartTerminator",e.folderCorner="folderCorner",e.frame="frame",e.funnel="funnel",e.gear6="gear6",e.gear9="gear9",e.halfFrame="halfFrame",e.heart="heart",e.heptagon="heptagon",e.hexagon="hexagon",e.homePlate="homePlate",e.horizontalScroll="horizontalScroll",e.irregularSeal1="irregularSeal1",e.irregularSeal2="irregularSeal2",e.leftArrow="leftArrow",e.leftArrowCallout="leftArrowCallout",e.leftBrace="leftBrace",e.leftBracket="leftBracket",e.leftCircularArrow="leftCircularArrow",e.leftRightArrow="leftRightArrow",e.leftRightArrowCallout="leftRightArrowCallout",e.leftRightCircularArrow="leftRightCircularArrow",e.leftRightRibbon="leftRightRibbon",e.leftRightUpArrow="leftRightUpArrow",e.leftUpArrow="leftUpArrow",e.lightningBolt="lightningBolt",e.line="line",e.lineInv="lineInv",e.mathDivide="mathDivide",e.mathEqual="mathEqual",e.mathMinus="mathMinus",e.mathMultiply="mathMultiply",e.mathNotEqual="mathNotEqual",e.mathPlus="mathPlus",e.moon="moon",e.noSmoking="noSmoking",e.nonIsoscelesTrapezoid="nonIsoscelesTrapezoid",e.notchedRightArrow="notchedRightArrow",e.octagon="octagon",e.parallelogram="parallelogram",e.pentagon="pentagon",e.pie="pie",e.pieWedge="pieWedge",e.plaque="plaque",e.plaqueTabs="plaqueTabs",e.plus="plus",e.quadArrow="quadArrow",e.quadArrowCallout="quadArrowCallout",e.rect="rect",e.ribbon="ribbon",e.ribbon2="ribbon2",e.rightArrow="rightArrow",e.rightArrowCallout="rightArrowCallout",e.rightBrace="rightBrace",e.rightBracket="rightBracket",e.round1Rect="round1Rect",e.round2DiagRect="round2DiagRect",e.round2SameRect="round2SameRect",e.roundRect="roundRect",e.rtTriangle="rtTriangle",e.smileyFace="smileyFace",e.snip1Rect="snip1Rect",e.snip2DiagRect="snip2DiagRect",e.snip2SameRect="snip2SameRect",e.snipRoundRect="snipRoundRect",e.squareTabs="squareTabs",e.star10="star10",e.star12="star12",e.star16="star16",e.star24="star24",e.star32="star32",e.star4="star4",e.star5="star5",e.star6="star6",e.star7="star7",e.star8="star8",e.stripedRightArrow="stripedRightArrow",e.sun="sun",e.swooshArrow="swooshArrow",e.teardrop="teardrop",e.trapezoid="trapezoid",e.triangle="triangle",e.upArrow="upArrow",e.upArrowCallout="upArrowCallout",e.upDownArrow="upDownArrow",e.upDownArrowCallout="upDownArrowCallout",e.uturnArrow="uturnArrow",e.verticalScroll="verticalScroll",e.wave="wave",e.wedgeEllipseCallout="wedgeEllipseCallout",e.wedgeRectCallout="wedgeRectCallout",e.wedgeRoundRectCallout="wedgeRoundRectCallout"}(W||(W={})),function(e){e.text1="tx1",e.text2="tx2",e.background1="bg1",e.background2="bg2",e.accent1="accent1",e.accent2="accent2",e.accent3="accent3",e.accent4="accent4",e.accent5="accent5",e.accent6="accent6"}(K||(K={})),function(e){e.left="left",e.center="center",e.right="right",e.justify="justify"}(q||(q={})),function(e){e.top="top",e.middle="middle",e.bottom="bottom"}(G||(G={})),function(e){e.ACTION_BUTTON_BACK_OR_PREVIOUS="actionButtonBackPrevious",e.ACTION_BUTTON_BEGINNING="actionButtonBeginning",e.ACTION_BUTTON_CUSTOM="actionButtonBlank",e.ACTION_BUTTON_DOCUMENT="actionButtonDocument",e.ACTION_BUTTON_END="actionButtonEnd",e.ACTION_BUTTON_FORWARD_OR_NEXT="actionButtonForwardNext",e.ACTION_BUTTON_HELP="actionButtonHelp",e.ACTION_BUTTON_HOME="actionButtonHome",e.ACTION_BUTTON_INFORMATION="actionButtonInformation",e.ACTION_BUTTON_MOVIE="actionButtonMovie",e.ACTION_BUTTON_RETURN="actionButtonReturn",e.ACTION_BUTTON_SOUND="actionButtonSound",e.ARC="arc",e.BALLOON="wedgeRoundRectCallout",e.BENT_ARROW="bentArrow",e.BENT_UP_ARROW="bentUpArrow",e.BEVEL="bevel",e.BLOCK_ARC="blockArc",e.CAN="can",e.CHART_PLUS="chartPlus",e.CHART_STAR="chartStar",e.CHART_X="chartX",e.CHEVRON="chevron",e.CHORD="chord",e.CIRCULAR_ARROW="circularArrow",e.CLOUD="cloud",e.CLOUD_CALLOUT="cloudCallout",e.CORNER="corner",e.CORNER_TABS="cornerTabs",e.CROSS="plus",e.CUBE="cube",e.CURVED_DOWN_ARROW="curvedDownArrow",e.CURVED_DOWN_RIBBON="ellipseRibbon",e.CURVED_LE
2FT_ARROW="curvedLeftArrow",e.CURVED_RIGHT_ARROW="curvedRightArrow",e.CURVED_UP_ARROW="curvedUpArrow",e.CURVED_UP_RIBBON="ellipseRibbon2",e.CUSTOM_GEOMETRY="custGeom",e.DECAGON="decagon",e.DIAGONAL_STRIPE="diagStripe",e.DIAMOND="diamond",e.DODECAGON="dodecagon",e.DONUT="donut",e.DOUBLE_BRACE="bracePair",e.DOUBLE_BRACKET="bracketPair",e.DOUBLE_WAVE="doubleWave",e.DOWN_ARROW="downArrow",e.DOWN_ARROW_CALLOUT="downArrowCallout",e.DOWN_RIBBON="ribbon",e.EXPLOSION1="irregularSeal1",e.EXPLOSION2="irregularSeal2",e.FLOWCHART_ALTERNATE_PROCESS="flowChartAlternateProcess",e.FLOWCHART_CARD="flowChartPunchedCard",e.FLOWCHART_COLLATE="flowChartCollate",e.FLOWCHART_CONNECTOR="flowChartConnector",e.FLOWCHART_DATA="flowChartInputOutput",e.FLOWCHART_DECISION="flowChartDecision",e.FLOWCHART_DELAY="flowChartDelay",e.FLOWCHART_DIRECT_ACCESS_STORAGE="flowChartMagneticDrum",e.FLOWCHART_DISPLAY="flowChartDisplay",e.FLOWCHART_DOCUMENT="flowChartDocument",e.FLOWCHART_EXTRACT="flowChartExtract",e.FLOWCHART_INTERNAL_STORAGE="flowChartInternalStorage",e.FLOWCHART_MAGNETIC_DISK="flowChartMagneticDisk",e.FLOWCHART_MANUAL_INPUT="flowChartManualInput",e.FLOWCHART_MANUAL_OPERATION="flowChartManualOperation",e.FLOWCHART_MERGE="flowChartMerge",e.FLOWCHART_MULTIDOCUMENT="flowChartMultidocument",e.FLOWCHART_OFFLINE_STORAGE="flowChartOfflineStorage",e.FLOWCHART_OFFPAGE_CONNECTOR="flowChartOffpageConnector",e.FLOWCHART_OR="flowChartOr",e.FLOWCHART_PREDEFINED_PROCESS="flowChartPredefinedProcess",e.FLOWCHART_PREPARATION="flowChartPreparation",e.FLOWCHART_PROCESS="flowChartProcess",e.FLOWCHART_PUNCHED_TAPE="flowChartPunchedTape",e.FLOWCHART_SEQUENTIAL_ACCESS_STORAGE="flowChartMagneticTape",e.FLOWCHART_SORT="flowChartSort",e.FLOWCHART_STORED_DATA="flowChartOnlineStorage",e.FLOWCHART_SUMMING_JUNCTION="flowChartSummingJunction",e.FLOWCHART_TERMINATOR="flowChartTerminator",e.FOLDED_CORNER="folderCorner",e.FRAME="frame",e.FUNNEL="funnel",e.GEAR_6="gear6",e.GEAR_9="gear9",e.HALF_FRAME="halfFrame",e.HEART="heart",e.HEPTAGON="heptagon",e.HEXAGON="hexagon",e.HORIZONTAL_SCROLL="horizontalScroll",e.ISOSCELES_TRIANGLE="triangle",e.LEFT_ARROW="leftArrow",e.LEFT_ARROW_CALLOUT="leftArrowCallout",e.LEFT_BRACE="leftBrace",e.LEFT_BRACKET="leftBracket",e.LEFT_CIRCULAR_ARROW="leftCircularArrow",e.LEFT_RIGHT_ARROW="leftRightArrow",e.LEFT_RIGHT_ARROW_CALLOUT="leftRightArrowCallout",e.LEFT_RIGHT_CIRCULAR_ARROW="leftRightCircularArrow",e.LEFT_RIGHT_RIBBON="leftRightRibbon",e.LEFT_RIGHT_UP_ARROW="leftRightUpArrow",e.LEFT_UP_ARROW="leftUpArrow",e.LIGHTNING_BOLT="lightningBolt",e.LINE_CALLOUT_1="borderCallout1",e.LINE_CALLOUT_1_ACCENT_BAR="accentCallout1",e.LINE_CALLOUT_1_BORDER_AND_ACCENT_BAR="accentBorderCallout1",e.LINE_CALLOUT_1_NO_BORDER="callout1",e.LINE_CALLOUT_2="borderCallout2",e.LINE_CALLOUT_2_ACCENT_BAR="accentCallout2",e.LINE_CALLOUT_2_BORDER_AND_ACCENT_BAR="accentBorderCallout2",e.LINE_CALLOUT_2_NO_BORDER="callout2",e.LINE_CALLOUT_3="borderCallout3",e.LINE_CALLOUT_3_ACCENT_BAR="accentCallout3",e.LINE_CALLOUT_3_BORDER_AND_ACCENT_BAR="accentBorderCallout3",e.LINE_CALLOUT_3_NO_BORDER="callout3",e.LINE_CALLOUT_4="borderCallout3",e.LINE_CALLOUT_4_ACCENT_BAR="accentCallout3",e.LINE_CALLOUT_4_BORDER_AND_ACCENT_BAR="accentBorderCallout3",e.LINE_CALLOUT_4_NO_BORDER="callout3",e.LINE="line",e.LINE_INVERSE="lineInv",e.MATH_DIVIDE="mathDivide",e.MATH_EQUAL="mathEqual",e.MATH_MINUS="mathMinus",e.MATH_MULTIPLY="mathMultiply",e.MATH_NOT_EQUAL="mathNotEqual",e.MATH_PLUS="mathPlus",e.MOON="moon",e.NON_ISOSCELES_TRAPEZOID="nonIsoscelesTrapezoid",e.NOTCHED_RIGHT_ARROW="notchedRightArrow",e.NO_SYMBOL="noSmoking",e.OCTAGON="octagon",e.OVAL="ellipse",e.OVAL_CALLOUT="wedgeEllipseCallout",e.PARALLELOGRAM="parallelogram",e.PENTAGON="homePlate",e.PIE="pie",e.PIE_WEDGE="pieWedge",e.PLAQUE="plaque",e.PLAQUE_TABS="plaqueTabs",e.QUAD_ARROW="quadArrow",e.QUAD_ARROW_CALLOUT="quadArrowCallout",e.RECTANGLE="rect",e.RECTANGULAR_CALLOUT="wedgeRectCallout",e.REGULAR_PENTAGON="pentagon",e.RIGHT_ARROW="rightArrow",e.RIGHT_ARROW_CALLOUT="rightArrowCallout",e.RIGHT_BRACE="rightBrace",e.RIGHT_BRACKET="rightBracket",e.RIGHT_TRIANGLE="rtTriangle",e.ROUNDED_RECTANGLE="roundRect",e.ROUNDED_RECTANGULAR_CALLOUT="wedgeRoundRectCallout",e.ROUND_1_RECTANGLE="round1Rect",e.ROUND_2_DIAG_RECTANGLE="round2DiagRect",e.ROUND_2_SAME_RECTANGLE="round2SameRect",e.SMILEY_FACE="smileyFace",e.SNIP_1_RECTANGLE="snip1Rect",e.SNIP_2_DIAG_RECTANGLE="snip2DiagRect",e.SNIP_2_SAME_RECTANGLE="snip2SameRect",e.SNIP_ROUND_RECTANGLE="snipRoundRect",e.SQUARE_TABS="squareTabs",e.STAR_10_POINT="star10",e.STAR_12_POINT="star12",e.STAR_16_POINT="star16",e.STAR_24_POINT="star24",e.STAR_32_POINT="star32",e.STAR_4_POINT="star4",e.STAR_5_POINT="star5",e.STAR_6_POINT="star6",e.STAR_7_POINT="star7",e.STAR_8_POINT="star8",e.STRIPED_RIGHT_ARROW="stripedRightArrow",e.SUN="sun",e.SWOOSH_ARROW="swooshArrow",e.TEAR="teardrop",e.TRAPEZOID="trapezoid",e.UP_ARROW="upArrow",e.UP_ARROW_CALLOUT="upArrowCallout",e.UP_DOWN_ARROW="upDownArrow",e.UP_DOWN_ARROW_CALLOUT="upDownArrowCallout",e.UP_RIBBON="ribbon2",e.U_TURN_ARROW="uturnArrow",e.VERTICAL_SCROLL="verticalScroll",e.WAVE="wave"}(X||(X={})),function(e){e.AREA="area",e.BAR="bar",e.BAR3D="bar3D",e.BUBBLE="bubble",e.BUBBLE3D="bubble3D",e.DOUGHNUT="doughnut",e.LINE="line",e.PIE="pie",e.RADAR="radar",e.SCATTER="scatter"}(Y||(Y={})),function(e){e.TEXT1="tx1",e.TEXT2="tx2",e.BACKGROUND1="bg1",e.BACKGROUND2="bg2",e.ACCENT1="accent1",e.ACCENT2="accent2",e.ACCENT3="accent3",e.ACCENT4="accent4",e.ACCENT5="accent5",e.ACCENT6="accent6"}($||($={})),function(e){e.chart="chart",e.image="image",e.line="line",e.rect="rect",e.text="text",e.placeholder="placeholder"}(Q||(Q={})),function(e){e.chart="chart",e.hyperlink="hyperlink",e.image="image",e.media="media",e.online="online",e.placeholder="placeholder",e.table="table",e.tablecell="tablecell",e.text="text",e.notes="notes"}(J||(J={})),function(e){e.title="title",e.body="body",e.image="pic",e.chart="chart",e.table="tbl",e.media="media"}(Z||(Z={})),function(e){e.DEFAULT="•",e.CHECK="✓",e.STAR="★",e.TRIANGLE="▶"}(ee||(ee={}));var re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAB3CAYAAAD1oOVhAAAGAUlEQVR4Xu2dT0xcRRzHf7tAYSsc0EBSIq2xEg8mtTGebVzEqOVIolz0siRE4gGTStqKwdpWsXoyGhMuyAVJOHBgqyvLNgonDkabeCBYW/8kTUr0wsJC+Wfm0bfuvn37Znbem9mR9303mJnf/Pb7ed95M7PDI5JIJPYJV5EC7e3t1N/fT62trdqViQCIu+bVgpIHEo/Hqbe3V/sdYVKHyWSSZmZm8ilVA0oeyNjYmEnaVC2Xvr6+qg5fAOJAz4DU1dURGzFSqZRVqtMpAFIGyMjICC0vL9PExIRWKADiAYTNshYWFrRCARAOEFZcCKWtrY0GBgaUTYkBRACIE4rKZwqACALR5RQAqQCIDqcASIVAVDsFQCSAqHQKgEgCUeUUAPEBRIVTAMQnEBvK5OQkbW9vk991CoAEAMQJxc86BUACAhKUUwAkQCBBOAVAAgbi1ykAogCIH6cAiCIgsk4BEIVAZJwCIIqBVLqiBxANQFgXS0tLND4+zl08AogmIG5OSSQS1gGKwgtANAIRcQqAaAbCe6YASBWA2E6xDyeyDUl7+AKQMkDYYevm5mZHabA/Li4uUiaTsYLau8QA4gLE/hU7wajyYtv1hReDAiAOxQcHBymbzark4BkbQKom/X8d
2p9Npmpqasn4BIAYAYSnYp+4BBEAMUcCwNOCQsAKZnp62NtQOw8WmwT09PUo+ijaHsOMx7GppaaH6+nolH0Z10K2tLVpdXbW6UfV3mNqBdHd3U1NTk2rtlMRfW1uj2dlZAFGirkRQAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAFGprkRsAJEQTWUTAGHqrm8caPzQ0WC1logbeiC7X3xJm0PvUmRzh45cuki1588FAmVn9BO6P3yF9utrqGH0MtW82S8UN9RA9v/4k7InjhcJFTs/TLVXLwmJV67S7vD7tHF5pKi46fYdosdOcOOGG8j1OcqefbFEJD9Q3GCwDhqT31HklS4A8VRgfYM2Op6k3bt/BQJl58J7lPvwg5JYNccepaMry0LPqFA7hCm39+NNyp2J0172b19QysGINj5CsRtpij57musOViH0QPJQXn6J9u7dlYJSFkbrMYolrwvDAJAC+WWdEpQz7FTgECeUCpzi6YxvvqXoM6eEhqnCSgDikEzUKUE7Aw7xuHctKB5OYU3dZlNR9syQdAaAcAYTC0pXF+39c09o2Ik+3EqxVKqiB7hbYAxZkk4pbBaEM+AQofv+wTrFwylBOQNABIGwavdfe4O2pg5elO+86l99nY58/VUF0byrYsjiSFluNlXYrOHcBar7+EogUADEQ0YRGHbzoKAASBkg2+9cpM1rV0tK2QOcXW7bLEFAARAXIF4w2DrDWoeUWaf4hQIgDiA8GPZ2iNfi0Q8UACkAIgrDbrJ385eDxaPLLrEsFAB5oG6lMPJQPLZZZKAACBGVhcG2Q+bmuLu2nk55e4jqPv1IeEoceiBeX7s2zCa5MAqdstl91vfXwaEGsv/rb5TtOFk6tWXOuJGh6KmnhO9sayrMninPx103JBtXblHkice58cINZP4Hyr5wpkgkdiChEmc4FWazLzenNKa/p0jncwDiqcD6BuWePk07t1asatZGoYQzSqA4nFJ7soNiP/+EUyfc25GI2GG53dHPrKo1g/1Cw4pIXLrzO+1c+/wg7tBbFDle/EbQcjFCPWQJCau5EoBoFpzXHYDwFNJcDiCaBed1ByA8hTSXA4hmwXndAQhPIc3lAKJZcF53AMJTSHM5gGgWnNcdgPAU0lwOIJoF53UHIDyFNJcfSiCdnZ0Ui8U0SxlMd7lcjubn561gh+Y1scFIU/0o/3sgeLO12E2k7UXKYumgFoAYdg8ACIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6cAhAGKYAoalA4cAiGEKGJYOHAIghilgWDpwCIAYpoBh6ZQ4JB6PKzviYthnNy4d9h+1M5mMlVckkUjsG5dhiBMCEMPg/wuOfrZZ/RSywQAAAABJRU5ErkJggg==";function ne(e,t,r){return"string"!==typeof e||isNaN(Number(e))||(e=Number(e)),"number"===typeof e&&e<100?se(e):"number"===typeof e&&e>=100?e:"string"===typeof e&&e.includes("%")?t&&"X"===t?Math.round(parseFloat(e)/100*r.width):t&&"Y"===t?Math.round(parseFloat(e)/100*r.height):Math.round(parseFloat(e)/100*r.width):0}function ie(e){return e.replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function oe(e){return"undefined"===typeof e||null==e?"":e.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function se(e){return"number"===typeof e&&e>100?e:("string"===typeof e&&(e=Number(e.replace(/in*/gi,""))),Math.round(d*e))}function ae(e){var t=Number(e)||0;return isNaN(t)?0:Math.round(t*h)}function le(e){return e=e||0,Math.round(6e4*(e>360?e-360:e))}function ce(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ue(e,t,r){return(ce(e)+ce(t)+ce(r)).toUpperCase()}function de(e,t){var r=(e||"").replace("#","");p.test(r)||r===K.background1||r===K.background2||r===K.text1||r===K.text2||r===K.accent1||r===K.accent2||r===K.accent3||r===K.accent4||r===K.accent5||r===K.accent6||(console.warn('"'.concat(r,'" is not a valid scheme color or hex RGB! "').concat(_,"\" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!")),r=_);var n=p.test(r)?"srgbClr":"schemeClr",i='val="'+(p.test(r)?r.toUpperCase():r)+'"';return t?"<a:".concat(n," ").concat(i,">").concat(t,"</a:").concat(n,">"):"<a:".concat(n," ").concat(i,"/>")}function he(e){var t="solid",r="",n="",i="";if(e)if("string"===typeof e?r=e:(e.type&&(t=e.type),e.color&&(r=e.color),e.alpha&&(n+='<a:alpha val="'.concat(Math.round(1e3*(100-e.alpha)),'"/>')),e.transparency&&(n+='<a:alpha val="'.concat(Math.round(1e3*(100-e.transparency)),'"/>'))),"solid"===t)i+="<a:solidFill>".concat(de(r,n),"</a:solidFill>");else i+="";return i}function fe(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function pe(e){if(e&&"object"===typeof e)return"outer"!==e.type&&"inner"!==e.type&&"none"!==e.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||e.angle>359)&&(console.warn("Warning: shadow.angle can only be 0-359"),e.angle=270),e.angle=Math.round(Number(e.angle))),e.opacity&&((isNaN(Number(e.opacity))||e.opacity<0||e.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),e.opacity=.75),e.opacity=Number(e.opacity)),e.color&&e.color.startsWith("#")&&(console.warn('Warning: shadow.color should not include hash (#) character, , e.g. "FF0000"'),e.color=e.color.replace("#","")),e}function me(e,t,r,n){void 0===e&&(e=[]),void 0===t&&(t={});var i,s=N,a=1*d,l=0,c=0,u=[],f=ne(t.x,"X",r),p=ne(t.y,"Y",r),m=ne(t.w,"X",r),g=ne(t.h,"Y",r),b=m;function y(){var e=0;0===u.length&&(e=p||se(s[0])),u.length>0&&(e=se(t.autoPageSlideStartY||t.newSlideStartY||s[0])),a=(g||r.height)-e-se(s[2]),u.length>1&&("number"===typeof t.autoPageSlideStartY?a=(g||r.height)-se(t.autoPageSlideStartY+s[2]):"number"===typeof t.newSlideStartY?a=(g||r.height)-se(t.newSlideStartY+s[2]):p&&(a=(g||r.height)-se((p/d<s[0]?p/d:s[0])+s[2]))<g&&(a=g))}if(t.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- TABLE PROPS --------------------------------------------------------|"),console.log("| presLayout.width ................................ = ".concat((r.width/d).toFixed(1))),console.log("| presLayout.height ............................... = ".concat((r.height/d).toFixed(1))),console.log("| tableProps.x .................................... = ".concat("number"===typeof t.x?(t.x/d).toFixed(1):t.x)),c
2onsole.log("| tableProps.y .................................... = ".concat("number"===typeof t.y?(t.y/d).toFixed(1):t.y)),console.log("| tableProps.w .................................... = ".concat("number"===typeof t.w?(t.w/d).toFixed(1):t.w)),console.log("| tableProps.h .................................... = ".concat("number"===typeof t.h?(t.h/d).toFixed(1):t.h)),console.log("| tableProps.slideMargin .......................... = ".concat(t.slideMargin?String(t.slideMargin):"")),console.log("| tableProps.margin ............................... = ".concat(String(t.margin))),console.log("| tableProps.colW ................................. = ".concat(String(t.colW))),console.log("| tableProps.autoPageSlideStartY .................. = ".concat(t.autoPageSlideStartY)),console.log("| tableProps.autoPageCharWeight ................... = ".concat(t.autoPageCharWeight)),console.log("|-- CALCULATIONS -------------------------------------------------------|"),console.log("| tablePropX ...................................... = ".concat(f/d)),console.log("| tablePropY ...................................... = ".concat(p/d)),console.log("| tablePropW ...................................... = ".concat(m/d)),console.log("| tablePropH ...................................... = ".concat(g/d)),console.log("| tableCalcW ...................................... = ".concat(b/d))),t.slideMargin||0===t.slideMargin||(t.slideMargin=N[0]),n&&"undefined"!==typeof n._margin?Array.isArray(n._margin)?s=n._margin:isNaN(Number(n._margin))||(s=[Number(n._margin),Number(n._margin),Number(n._margin),Number(n._margin)]):(t.slideMargin||0===t.slideMargin)&&(Array.isArray(t.slideMargin)?s=t.slideMargin:isNaN(t.slideMargin)||(s=[t.slideMargin,t.slideMargin,t.slideMargin,t.slideMargin])),t.verbose&&console.log("| arrInchMargins .................................. = [".concat(s.join(", "),"]")),(e[0]||[]).forEach(function(e){e||(e={_type:J.tablecell});var t=e.options||null;c+=Number((null===t||void 0===t?void 0:t.colspan)?t.colspan:1)}),t.verbose&&console.log("| numCols ......................................... = ".concat(c)),!m&&t.colW&&(b=Array.isArray(t.colW)?t.colW.reduce(function(e,t){return e+t})*d:t.colW*c||0,t.verbose&&console.log("| tableCalcW ...................................... = ".concat(b/d))),i=b||se((f?f/d:s[1])+s[3]),t.verbose&&console.log("| emuSlideTabW .................................... = ".concat((i/d).toFixed(1))),!t.colW||!Array.isArray(t.colW))if(t.colW&&!isNaN(Number(t.colW))){var A=[];(e[0]||[]).forEach(function(){return A.push(t.colW)}),t.colW=[],A.forEach(function(e){Array.isArray(t.colW)&&t.colW.push(e)})}else{t.colW=[];for(var v=0;v<c;v++)t.colW.push(i/d/c)}var w={rows:[]};return e.forEach(function(e,r){var n=[],i=0,s=0,c=[];e.forEach(function(e){var r,n,o,a;c.push({_type:J.tablecell,text:[],options:e.options}),e.options.margin&&e.options.margin[0]>=1?((null===(r=e.options)||void 0===r?void 0:r.margin)&&e.options.margin[0]&&ae(e.options.margin[0])>i?i=ae(e.options.margin[0]):(null===t||void 0===t?void 0:t.margin)&&t.margin[0]&&ae(t.margin[0])>i&&(i=ae(t.margin[0])),(null===(n=e.options)||void 0===n?void 0:n.margin)&&e.options.margin[2]&&ae(e.options.margin[2])>s?s=ae(e.options.margin[2]):(null===t||void 0===t?void 0:t.margin)&&t.margin[2]&&ae(t.margin[2])>s&&(s=ae(t.margin[2]))):((null===(o=e.options)||void 0===o?void 0:o.margin)&&e.options.margin[0]&&se(e.options.margin[0])>i?i=se(e.options.margin[0]):(null===t||void 0===t?void 0:t.margin)&&t.margin[0]&&se(t.margin[0])>i&&(i=se(t.margin[0])),(null===(a=e.options)||void 0===a?void 0:a.margin)&&e.options.margin[2]&&se(e.options.margin[2])>s?s=se(e.options.margin[2]):(null===t||void 0===t?void 0:t.margin)&&t.margin[2]&&se(t.margin[2])>s&&(s=se(t.margin[2])))}),y(),l+=i+s,t.verbose&&0===r&&console.log("| SLIDE [".concat(u.length,"]: emuSlideTabH ...... = ").concat((a/d).toFixed(1)," ")),e.forEach(function(e,r){var i,s={_type:J.tablecell,_lines:null,_lineHeight:se(((null===(i=e.options)||void 0===i?void 0:i.fontSize)?e.options.fontSize:t.fontSize?t.fontSize:S)*(1.67+(t.autoPageLineWeight?t.autoPageLineWeight:0))/100),text:[],options:e.options};s.options.rowspan&&(s._lineHeight=0),s.options.autoPageCharWeight=t.autoPageCharWeight?t.autoPageCharWeight:null;var a=t.colW[r];e.options.colspan&&Array.isArray(t.colW)&&(a=t.colW.filter(function(t,n){return n>=r&&n<n+e.options.colspan}).reduce(function(e,t){return e+t})),s._lines=function(e,t,r){var n,i,s=2.3+((null===(n=e.options)||void 0===n?void 0:n.autoPageCharWeight)?e.options.autoPageCharWeight:0),a=Math.floor(t/h*d)/(((null===(i=e.options)||void 0===i?void 0:i.fontSize)?e.options.fontSize:S)/s),l=[],c=[],u=[],f=[];
2e.text&&0===e.text.toString().trim().length?c.push({_type:J.tablecell,text:" "}):"number"===typeof e.text||"string"===typeof e.text?c.push({_type:J.tablecell,text:(e.text||"").toString().trim()}):Array.isArray(e.text)&&(c=e.text),r&&(console.log("[1/4] inputCells"),c.forEach(function(e,t){return console.log("[1/4] [".concat(t+1,"] cell: ").concat(JSON.stringify(e)))}));var p=[];return c.forEach(function(e){var t;"string"===typeof e.text&&(e.text.split("\n").length>1?e.text.split("\n").forEach(function(t){p.push({_type:J.tablecell,text:t,options:o(o({},e.options),{breakLine:!0})})}):p.push({_type:J.tablecell,text:e.text.trim(),options:e.options}),(null===(t=e.options)||void 0===t?void 0:t.breakLine)&&(r&&console.log("inputCells: new line > ".concat(JSON.stringify(p))),u.push(p),p=[])),p.length>0&&(u.push(p),p=[])}),r&&(console.log("[2/4] inputLines1 (".concat(u.length,")")),u.forEach(function(e,t){return console.log("[2/4] [".concat(t+1,"] line: ").concat(JSON.stringify(e)))})),u.forEach(function(e){e.forEach(function(e){var t=[],r=String(e.text).split(" ");r.forEach(function(n,i){var s=o({},e.options);(null===s||void 0===s?void 0:s.breakLine)&&(s.breakLine=i+1===r.length),t.push({_type:J.tablecell,text:n+(i+1<r.length?" ":""),options:s})}),f.push(t)})}),r&&(console.log("[3/4] inputLines2 (".concat(f.length,")")),f.forEach(function(e){return console.log("[3/4] line: ".concat(JSON.stringify(e)))})),f.forEach(function(e){var t=[],r="";e.forEach(function(e){r.length+e.text.length>a&&(l.push(t),t=[],r=""),t.push(e),r+=e.text.toString()}),t.length>0&&l.push(t)}),r&&(console.log("[4/4] parsedLines (".concat(l.length,")")),l.forEach(function(e,t){return console.log("[4/4] [Line ".concat(t+1,"]:\n").concat(JSON.stringify(e)))}),console.log("...............................................\n\n")),l}(e,a,!1),n.push(s)}),t.verbose&&console.log("\n| SLIDE [".concat(u.length,"]: ROW [").concat(r,"]: START..."));for(var f=0,p=0,m=!1;!m;){var g=n[f],b=c[f];if(n.forEach(function(e){e._lineHeight>=p&&(p=e._lineHeight)}),l+p>a){t.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((l/d).toFixed(2)," + ").concat((g._lineHeight/d).toFixed(2)," > ").concat(a/d)),console.log("|-----------------------------------------------------------------------|\n\n")),c.length>0&&c.map(function(e){return e.text.length}).reduce(function(e,t){return e+t})>0&&w.rows.push(c),u.push(w);w={rows:[]},c=[],e.forEach(function(e){return c.push({_type:J.tablecell,text:[],options:e.options})}),y(),l+=i+s,t.verbose&&console.log("| SLIDE [".concat(u.length,"]: emuSlideTabH ...... = ").concat((a/d).toFixed(1)," ")),l=0,(t.addHeaderToEach||t.autoPageRepeatHeader)&&t._arrObjTabHeadRows&&t._arrObjTabHeadRows.forEach(function(e){var t=[],r=0;e.forEach(function(e){t.push(e),e._lineHeight>r&&(r=e._lineHeight)}),w.rows.push(t),l+=r}),b=c[f]}var A=g._lines.shift();Array.isArray(b.text)&&(A?b.text=b.text.concat(A):0===b.text.length&&(b.text=b.text.concat({_type:J.tablecell,text:""}))),f===n.length-1&&(l+=p),f=f<n.length-1?f+1:0,0===n.map(function(e){return e._lines.length}).reduce(function(e,t){return e+t})&&(m=!0)}c.length>0&&w.rows.push(c),t.verbose&&console.log("- SLIDE [".concat(u.length,"]: ROW [").concat(r,"]: ...COMPLETE ...... emuTabCurrH = ").concat((l/d).toFixed(2)," ( emuSlideTabH = ").concat((a/d).toFixed(2)," )"))}),u.push(w),t.verbose&&(console.log("\n|================================================|"),console.log("| FINAL: tableRowSlides.length = ".concat(u.length)),u.forEach(function(e){return console.log(e)}),console.log("|================================================|\n\n")),u}var ge=0;function be(e,t,r,n){var i;function o(e){e&&"none"!==e.style&&(void 0!==e.size&&(isNaN(Number(e.size))||e.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete e.size),e.style&&!["solid","dash","dot"].includes(e.style)&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete e.style),e.cap&&!["flat","square","round"].includes(e.cap)&&(console.warn("Warning: chart.gridLine.cap options: `flat`, `square`, `round`."),delete e.cap))}var s=++ge,a={_type:null,text:null,options:null,chartRid:null},l=null,c=[];Array.isArray(t)?(t.forEach(function(e){c=c.concat(e.data)}
2),l=r||n):(c=r,l=n),c.forEach(function(e,t){e._dataIndex=t,void 0===e.labels||Array.isArray(e.labels[0])||(e.labels=[e.labels])});var u=l&&"object"===typeof l?l:{};return u._type=t,u.x="undefined"===typeof u.x||null==u.x||isNaN(Number(u.x))?1:u.x,u.y="undefined"===typeof u.y||null==u.y||isNaN(Number(u.y))?1:u.y,u.w=u.w||"50%",u.h=u.h||"50%",u.objectName=u.objectName?oe(u.objectName):"Chart ".concat(e._slideObjects.filter(function(e){return e._type===J.chart}).length),["bar","col"].includes(u.barDir||"")||(u.barDir="col"),u._type===Y.AREA&&(["stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),u._type===Y.BAR&&(["clustered","stacked","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="clustered")),u._type===Y.BAR3D&&(["clustered","stacked","standard","percentStacked"].includes(u.barGrouping||"")||(u.barGrouping="standard")),(null===(i=u.barGrouping)||void 0===i?void 0:i.includes("tacked"))&&(u.barGapWidthPct||(u.barGapWidthPct=50)),u.dataLabelPosition&&(u._type!==Y.AREA&&u._type!==Y.BAR3D&&u._type!==Y.DOUGHNUT&&u._type!==Y.RADAR||delete u.dataLabelPosition,u._type===Y.PIE&&(["bestFit","ctr","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition),u._type!==Y.BUBBLE&&u._type!==Y.BUBBLE3D&&u._type!==Y.LINE&&u._type!==Y.SCATTER||["b","ctr","l","r","t"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,u._type===Y.BAR&&(["stacked","percentStacked"].includes(u.barGrouping||"")||["ctr","inBase","inEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition,["clustered"].includes(u.barGrouping||"")||["ctr","inBase","inEnd","outEnd"].includes(u.dataLabelPosition)||delete u.dataLabelPosition)),u.dataLabelBkgrdColors=!(!u.dataLabelBkgrdColors&&u.dataLabelBkgrdColors)&&u.dataLabelBkgrdColors,["b","l","r","t","tr"].includes(u.legendPos||"")||(u.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].includes(u.bar3DShape||"")||(u.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].includes(u.lineDataSymbol||"")||(u.lineDataSymbol="circle"),["gap","span"].includes(u.displayBlanksAs||"")||(u.displayBlanksAs="span"),["standard","marker","filled"].includes(u.radarStyle||"")||(u.radarStyle="standard"),u.lineDataSymbolSize=u.lineDataSymbolSize&&!isNaN(u.lineDataSymbolSize)?u.lineDataSymbolSize:6,u.lineDataSymbolLineSize=u.lineDataSymbolLineSize&&!isNaN(u.lineDataSymbolLineSize)?ae(u.lineDataSymbolLineSize):ae(.75),u.layout&&["x","y","w","h"].forEach(function(e){var t=u.layout[e];(isNaN(Number(t))||t<0||t>1)&&(console.warn("Warning: chart.layout."+e+" can only be 0-1"),delete u.layout[e])}),u.catGridLine=u.catGridLine||(u._type===Y.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),u.valGridLine=u.valGridLine||(u._type===Y.SCATTER?{color:"D9D9D9",size:1}:{}),u.serGridLine=u.serGridLine||(u._type===Y.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),o(u.catGridLine),o(u.valGridLine),o(u.serGridLine),pe(u.shadow),u.showDataTable=!(!u.showDataTable&&u.showDataTable)&&u.showDataTable,u.showDataTableHorzBorder=!(u.showDataTableHorzBorder||!u.showDataTableHorzBorder)||u.showDataTableHorzBorder,u.showDataTableVertBorder=!(u.showDataTableVertBorder||!u.showDataTableVertBorder)||u.showDataTableVertBorder,u.showDataTableOutline=!(u.showDataTableOutline||!u.showDataTableOutline)||u.showDataTableOutline,u.showDataTableKeys=!(u.showDataTableKeys||!u.showDataTableKeys)||u.showDataTableKeys,u.showLabel=!(!u.showLabel&&u.showLabel)&&u.showLabel,u.showLegend=!(!u.showLegend&&u.showLegend
2)&&u.showLegend,u.showPercent=!(u.showPercent||!u.showPercent)||u.showPercent,u.showTitle=!(!u.showTitle&&u.showTitle)&&u.showTitle,u.showValue=!(!u.showValue&&u.showValue)&&u.showValue,u.showLeaderLines=!(!u.showLeaderLines&&u.showLeaderLines)&&u.showLeaderLines,u.catAxisLineShow="undefined"===typeof u.catAxisLineShow||u.catAxisLineShow,u.valAxisLineShow="undefined"===typeof u.valAxisLineShow||u.valAxisLineShow,u.serAxisLineShow="undefined"===typeof u.serAxisLineShow||u.serAxisLineShow,u.v3DRotX=!isNaN(u.v3DRotX)&&u.v3DRotX>=-90&&u.v3DRotX<=90?u.v3DRotX:30,u.v3DRotY=!isNaN(u.v3DRotY)&&u.v3DRotY>=0&&u.v3DRotY<=360?u.v3DRotY:30,u.v3DRAngAx=!(u.v3DRAngAx||!u.v3DRAngAx)||u.v3DRAngAx,u.v3DPerspective=!isNaN(u.v3DPerspective)&&u.v3DPerspective>=0&&u.v3DPerspective<=240?u.v3DPerspective:30,u.barGapWidthPct=!isNaN(u.barGapWidthPct)&&u.barGapWidthPct>=0&&u.barGapWidthPct<=1e3?u.barGapWidthPct:150,u.barGapDepthPct=!isNaN(u.barGapDepthPct)&&u.barGapDepthPct>=0&&u.barGapDepthPct<=1e3?u.barGapDepthPct:150,u.chartColors=Array.isArray(u.chartColors)?u.chartColors:u._type===Y.PIE||u._type===Y.DOUGHNUT?U:z,u.chartColorsOpacity=u.chartColorsOpacity&&!isNaN(u.chartColorsOpacity)?u.chartColorsOpacity:null,u.border=u.border&&"object"===typeof u.border?u.border:null,!u.border||u.border.pt&&!isNaN(u.border.pt)||(u.border.pt=v),!u.border||u.border.color&&"string"===typeof u.border.color||(u.border.color=A),u.plotArea=u.plotArea||{},u.plotArea.border=u.plotArea.border&&"object"===typeof u.plotArea.border?u.plotArea.border:null,!u.plotArea.border||u.plotArea.border.pt&&!isNaN(u.plotArea.border.pt)||(u.plotArea.border.pt=v),!u.plotArea.border||u.plotArea.border.color&&"string"===typeof u.plotArea.border.color||(u.plotArea.border.color=A),u.border&&(u.plotArea.border=u.border),u.plotArea.fill=u.plotArea.fill||{color:null,transparency:null},u.fill&&(u.plotArea.fill.color=u.fill),u.chartArea=u.chartArea||{},u.chartArea.border=u.chartArea.border&&"object"===typeof u.chartArea.border?u.chartArea.border:null,u.chartArea.border&&(u.chartArea.border={color:u.chartArea.border.color||A,pt:u.chartArea.border.pt||v}),u.chartArea.roundedCorners="boolean"!==typeof u.chartArea.roundedCorners||u.chartArea.roundedCorners,u.dataBorder=u.dataBorder&&"object"===typeof u.dataBorder?u.dataBorder:null,!u.dataBorder||u.dataBorder.pt&&!isNaN(u.dataBorder.pt)||(u.dataBorder.pt=.75),!u.dataBorder||u.dataBorder.color&&"string"===typeof u.dataBorder.color&&6===u.dataBorder.color.length||(u.dataBorder.color="F9F9F9"),u.dataLabelFormatCode||u._type!==Y.SCATTER||(u.dataLabelFormatCode="General"),u.dataLabelFormatCode||u._type!==Y.PIE&&u._type!==Y.DOUGHNUT||(u.dataLabelFormatCode=u.showPercent?"0%":"General"),u.dataLabelFormatCode=u.dataLabelFormatCode&&"string"===typeof u.dataLabelFormatCode?u.dataLabelFormatCode:"#,##0",u.dataLabelFormatScatter||u._type!==Y.SCATTER||(u.dataLabelFormatScatter="custom"),u.lineSize="number"===typeof u.lineSize?u.lineSize:2,u.valAxisMajorUnit="number"===typeof u.valAxisMajorUnit?u.valAxisMajorUnit:null,u._type===Y.AREA||u._type===Y.BAR||u._type===Y.BAR3D||u._type===Y.LINE?u.catAxisMultiLevelLabels=!!u.catAxisMultiLevelLabels:delete u.catAxisMultiLevelLabels,a._type="chart",a.options=u,a.chartRid=fe(e),e._relsChart.push({rId:fe(e),data:c,opts:u,type:u._type,globalId:s,fileName:"chart".concat(s,".xml"),Target:"/ppt/charts/chart".concat(s,".xml")}),e._slideObjects.push(a),a}function ye(e,t){var r={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},n=t.x||0,i=t.y||0,o=t.w||0,s=t.h||0,a=t.sizing||null,l=t.hyperlink||"",c=t.data||"",u=t.path||"",d=fe(e),h=t.objectName?oe(t.objectName):"Image ".concat(e._slideObjects.filter(function(e){return e._type===J.image}).length);if(!u&&!c)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(u&&"string"!==typeof u)return console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(String(u))),null;if(c&&"string"!==typeof c)return console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(String(c))),null;if(c&&"string"===typeof c&&!c.toLowerCase().includes("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;var f=(u.substring(u.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(c&&/image\/(\w+);/.exec(c)&&/image\/(\w+);/.exec(c).length>
20?f=/image\/(\w+);/.exec(c)[1]:(null===c||void 0===c?void 0:c.toLowerCase().includes("image/svg+xml"))&&(f="svg"),r._type=J.image,r.image=u||"preencoded.png",r.options={x:n||0,y:i||0,w:o||1,h:s||1,altText:t.altText||"",rounding:"boolean"===typeof t.rounding&&t.rounding,sizing:a,placeholder:t.placeholder,rotate:t.rotate||0,flipV:t.flipV||!1,flipH:t.flipH||!1,transparency:t.transparency||0,objectName:h,shadow:pe(t.shadow)},"svg"===f)e._relsMedia.push({path:u||c+"png",type:"image/png",extn:"png",data:c||"",rId:d,Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png"),isSvgPng:!0,svgSize:{w:ne(r.options.w,"X",e._presLayout),h:ne(r.options.h,"Y",e._presLayout)}}),r.imageRid=d,e._relsMedia.push({path:u||c,type:"image/svg+xml",extn:f,data:c||"",rId:d+1,Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(f)}),r.imageRid=d+1;else{var p=e._relsMedia.filter(function(e){return e.path&&e.path===u&&e.type==="image/"+f&&!e.isDuplicate})[0];e._relsMedia.push({path:u||"preencoded."+f,type:"image/"+f,extn:f,data:c||"",rId:d,isDuplicate:!!(null===p||void 0===p?void 0:p.Target),Target:(null===p||void 0===p?void 0:p.Target)?p.Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(f)}),r.imageRid=d}if("object"===typeof l){if(!l.url&&!l.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");d++,e._rels.push({type:J.hyperlink,data:l.slide?"slide":"dummy",rId:d,Target:l.url||l.slide.toString()}),l._rId=d,r.hyperlink=l}e._slideObjects.push(r)}function Ae(e,t,r){var n="object"===typeof r?r:{};n.line=n.line||{type:"none"};var i={_type:J.text,shape:t||X.RECTANGLE,options:n,text:null};if(!t)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");var o={type:n.line.type||"solid",color:n.line.color||M,transparency:n.line.transparency||0,width:n.line.width||1,dashType:n.line.dashType||"solid",beginArrowType:n.line.beginArrowType||null,endArrowType:n.line.endArrowType||null};if("object"===typeof n.line&&"none"!==n.line.type&&(n.line=o),n.x=n.x||(0===n.x?0:1),n.y=n.y||(0===n.y?0:1),n.w=n.w||(0===n.w?0:1),n.h=n.h||(0===n.h?0:1),n.objectName=n.objectName?oe(n.objectName):"Shape ".concat(e._slideObjects.filter(function(e){return e._type===J.text}).length),"string"===typeof n.line){var s=o;s.color=String(n.line),n.line=s}"number"===typeof n.lineSize&&(n.line.width=n.lineSize),"string"===typeof n.lineDash&&(n.line.dashType=n.lineDash),"string"===typeof n.lineHead&&(n.line.beginArrowType=n.lineHead),"string"===typeof n.lineTail&&(n.line.endArrowType=n.lineTail),xe(e,i),e._slideObjects.push(i)}function ve(e,t,r,n){var i={_type:n?J.placeholder:J.text,shape:(null===r||void 0===r?void 0:r.shape)||X.RECTANGLE,text:t&&0!==t.length?t:[{text:"",options:null}],options:r||{}};function s(t){if(t.placeholder||(t.color=t.color||i.options.color||e.color||_),(t.placeholder||n)&&(t.bullet=t.bullet||!1),t.placeholder&&e._slideLayout&&e._slideLayout._slideObjects){var r=e._slideLayout._slideObjects.filter(function(e){return"placeholder"===e._type&&e.options&&e.options.placeholder&&e.options.placeholder===t.placeholder})[0];(null===r||void 0===r?void 0:r.options)&&(t=o(o({},t),r.options))}if(t.objectName=t.objectName?oe(t.objectName):"Text ".concat(e._slideObjects.filter(function(e){return e._type===J.text}).length),t.shape===X.LINE){var s={type:t.line.type||"solid",color:t.line.color||M,transparency:t.line.transparency||0,width:t.line.width||1,dashType:t.line.dashType||"solid",beginArrowType:t.line.beginArrowType||null,endArrowType:t.line.endArrowType||null};if("object"===typeof t.line&&(t.line=s),"string"===typeof t.line){var a=s;"string"===typeof t.line&&(a.color=t.line),t.line=a}"number"===typeof t.lineSize&&(t.line.width=t.lineSize),"string"===typeof t.lineDash&&(t.line.dashType=t.lineDash),"string"===typeof t.lineHead&&(t.line.beginArrowType=t.lineHead),"string"===typeof t.lineTail&&(t.line.endArrowType=t.lineTail)}return t.line=t.line||{},t.lineSpacing=t.lineSpacing&&!isNaN(t.lineSpacing)?t.lineSpacing:null,t.lineSpacingMultiple=t.lineSpacingMultiple&&!isNaN(t.lineSpacingMultiple)?t.lineSpacingMultiple:null,t._bodyProp=t._bodyProp||{},t._bodyProp.autoFit=t.autoFit||!1,t._bodyProp.anchor=t.placeholder?null:u.ctr,t._bodyProp.vert=t.vert||null,t._bodyProp.wrap="boolean"!==typeof t.wrap||t.wrap,(t.inset&&!isNaN(Number(t.inset))||0===t.inset)&&(t._bodyProp.lIns=se(t.inset),t._bodyProp.rIns=se(t.inset),t._bodyProp.tIns=se(t.inset),t._bodyProp.bIns=se(t.inset)),"boolean"===typeof t.underline&&!0===t.underline&&(t.underline={style:"sng"}),0===(t.align||"").toLowerCase().indexOf("c")?t._bodyProp.align=c.center:0===(t.align||"").toLowerCase().indexOf("l")?t._bodyProp.align=c.left:0===(t.align||"").toLowerCase().indexOf("r")?t._bodyProp.align=c.right:0===(t.align||"").toLowerCase().indexOf("j")&&(t._bodyProp.align=c.justify),0===(t.valign||"").toLowerCase().indexOf("b")?t._bodyProp.anchor=u.b:0===(t.valign||"").toLowerCase().indexOf("m")?t._bodyProp.anchor=u.ctr:0===(t.valign||"").toLowerCase().indexOf("t")&&(t._bodyProp.anchor=u.t),pe(t.shadow),t}i.options=s(i.options),i.text.forEach(function(e){return e.options=s(e.options||{})}),xe(e,i.text||""),e._slideObjects.push(i)}function we(e,t){var r;if(t.bkgd&&(t.background||(t.background={}),"string"===typeof t.bkgd?t.background.color=t.bkgd:(t.bkgd.data&&(t.background.data=t.bkgd.data),t.bkgd.path&&(t.background.path=t.bkgd.path),t.bkgd.src&&(t.background.path=t.bkgd.src))),(null===(r=t.background)||void 0===r?void 0:r.fill)&&(t.background.color=t.background.fill),e&&(e.path||e.data)){e.path=e.path||"preencoded.png";var n=(e.path.split(".").pop()||"png").split("?")[0];"jpg"===n&&(n="jpeg"),t._relsMedia=t._relsMedia||[];var i=t._relsMedia.length+1;t._relsMedia.push({path:e.path,type:J.image,extn:n,data:e.data||null,rId:i,Target:"../media/".concat((t._name||"").replace(/\s+/gi,"-"),"-image-").concat(t._relsMedia.length+1,".").concat(n)}),t._bkgdImgRid=i}}function xe(e,t){var r=[];"string"!==typeof t&&"number"!==typeof t&&(Array.isArray(t)?r=t:"object"===typeof t&&(r=[t]),r.forEach(function(t){if(Array.isArray(t))xe(e,t);else if(Array.isArray(t.text))xe(e,t.text);else if(t&&"object"===typeof t&&t.options&&t.options.hyperlink&&!t.options.hyperlink._rId)if("object"!==typeof t.options.hyperlink)console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(t.options.hyperlink.url||t.options.hyperlink.slide){var r=fe(e);e._rels.push({type:J.hyperlink,data:t.options.hyperlink.slide?"slide":"dummy",rId:r,Target:
2oe(t.options.hyperlink.url)||t.options.hyperlink.slide.toString()}),t.options.hyperlink._rId=r}else console.log("ERROR: 'hyperlink requires either: `url` or `slide`'")}))}var ke=function(){function e(e){var t;this.addSlide=e.addSlide,this.getSlide=e.getSlide,this._name="Slide ".concat(e.slideNumber),this._presLayout=e.presLayout,this._rId=e.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=e.setSlideNum,this._slideId=e.slideId,this._slideLayout=e.slideLayout||null,this._slideNum=e.slideNumber,this._slideObjects=[],this._slideNumberProps=(null===(t=this._slideLayout)||void 0===t?void 0:t._slideNumberProps)?this._slideLayout._slideNumberProps:null}return Object.defineProperty(e.prototype,"bkgd",{get:function(){return this._bkgd},set:function(e){this._bkgd=e,this._background&&this._background.color||(this._background||(this._background={}),"string"===typeof e&&(this._background.color=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"background",{get:function(){return this._background},set:function(e){this._background=e,e&&we(e,this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideNumber",{get:function(){return this._slideNumberProps},set:function(e){this._slideNumberProps=e,this._setSlideNum(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newAutoPagedSlides",{get:function(){return this._newAutoPagedSlides},enumerable:!1,configurable:!0}),e.prototype.addChart=function(e,t,r){return(r||{})._type=e,be(this,e,t,r),this},e.prototype.addImage=function(e){return ye(this,e),this},e.prototype.addMedia=function(e){return function(e,t){var r,n=t.x||0,i=t.y||0,o=t.w||2,s=t.h||2,a=t.data||"",l=t.link||"",c=t.path||"",u=t.type||"audio",d=t
vendor: 74,413 bytes, line 2
2.cover||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAVnCAYAAACzfHDVAAAAYHpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjaVcjJDYAwDEXBu6ughBfH+YnLQSwSHVA+Yrkwx7HtPHabHuEWrQ+lBBAZ6TMweBWoCwUH8quZH6VWFXVT696zxp12ARkVFEqn8wB8AAAACXBIWXMAAC4jAAAuIwF4pT92AADZLklEQVR42uzdd5hV9Z0/8M+dmcsUZmDovYOhKCiKYhR7JJuoSTCWGFI0WUxijBoTTXazVlyza4maYm9rTRSJigVsqCDNQhHBAogKCEgRMjMMU+7vj93sL8kqClLmnPt6PY+PeXZM9vP9vO8jZ+Y955xMfJLjorBrRMuSgmiViyjN1Ee2oSCyucbIBAAAAAAAAADbXaYgcoWNUZcrirpMbdRsysa69wbF+rggGrf439vSF7seF12aFUTnxvoosGIAAAAAAACAXacgoqEgF++/VRgr4r5o+Kh/pvD//F8uiII+LaPrum/EXzqui2b1ddHGKgEAAAAAAAB2rVxEQWMmWrQtjHZlA6N2w2tR84//zP8pgHu3ib6NBdG+zdqorK6KVUXZaB85j3sGAAAAAAAAaAoaG6OwIBdtyneP2PBabPzbr/1dAdx3VHRtyESHiIhcYzQrLo7WmVzkcjmPgAYAAAAAAABoSgpy0eIfS+D/LYD7fy3abC6Inn/7X2hsjELlLwAAAAAAAEDT9D8lcM1fHwddFBFxyAVR9M686PVp/gfqayKiJiLqLBMAAAAAAABgh8hGRGlEUekn/6PFEb3ikNgQk6O+KCJi6dzoksv83/cB/1X9xoiaJdmoWxlRV1dk2QAAAAAAAAA7QTZbH9muERX96v7n9t7/q6Exinq3i86LI94pjOOisHUu+uYykfmof7h+Y8Sa6aVRt74gGhs9DRoAAAAAAABgZ2lsLIi69QWxeUUmSjs0/vedwR8hk4uydSfE+wVd6qOyMfMx7/mtj9jwUtbjngEAAAAAAAB2obrqolg7IxtR/9Ffb4wo7P5GtCwobRaVH/c/UvNmNuqqPfIZAAAAAAAAYFerqy6KmjezH/v1ktpoVZBr/PgCeMN7yl8AAAAAAACApmJLHW5jUVQWNDSP+Q3ZeLco4i9/+8X6teHRzwAAAAAAAABNSd3/dLn/oLAoqqIuVhXFxhhSGB/xqGjlLwAAAAAAAECTU1eTjaK/KXSLIv7SWB+bc5ko9YxnAAAAAAAAgATJFv393bz1EeV//c8F1gMAAAAAAACQDgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKSEAhgAAAAAAAAgJRTAAAAAAAAAACmhAAYAAAAAAABICQUwAAAAAAAAQEoogAEAAAAAAABSQgEMAAAAAAAAkBIKYAAAAAAAAICUUAADAAAAAAAApIQCGAAAAAAAACAlFMAAAAAAAAAAKaEABgAAAAAAAEgJBTAAAAAAAABASiiAAQAAAAAAAFJCAQwAAAAAAACQEgpgAAAAAAAAgJRQAAMAAAAAAACkhAIYAAAAAAAAICUUwAAAAAAAAAApoQAGAAAAAAAASAkFMAAAAAAAAEBKKIABAAAAAAAAUkIBDAAAAAAAAJASCmAAAAAAAACAlFAAAwAAAAAAAKREkRUAAACwrUpLSwuGDRvWfMCAAS26du3avKysrLiioqKkZcuWzZs1a1bcvHnz0tLS0rJsNtusuLi4ebNmzUoLCgo+8/eijY2N9Zs3b66pra2tqqur21xTU1NdVVVVs2nTptqNGzdWbdiwoeYvf/nL5hUrVlQtWLBgw6xZs6pqamoaJQYAAEDaKYABAACIiIghQ4aUHnTQQW379u3bql27dq3at2/fpkWLFq2bN29eWVpa2qpZs2bNCwsLm2ez2fLCwsLyoqKi8sLCwtKknK+hoaG6vr6+qqGh4S91dXV/aWhoqNq8eXNVTU3NuqqqqvUbNmxYu2rVqjWrV69e99Zbb6177rnnPpgzZ06NTwYAAABJogAGAADIA8OGDWt+xBFHdBwwYECnLl26dGjdunXHFi1adCgtLe1YUlLSvlmzZq0KCgqK07yDwsLCssLCwrKIaPdp/zuNjY21mzdvXrdp06ZVNTU172/YsGHl2rVr31+2bNnKBQsWrHjyySffnzVrVpVPGAAAAE1Fpuexsd9HfaF+ZcSal0ptCAAAIAE6deqUPf744zvtueeeXbp3796lbdu2XSorKzuXlpZ2KS0t7VBYWFhhSztGQ0PDxpqampU1NTXL169fv+yDDz5Y9s477yybPXv2sj/96U8rVqxYUWdLAAAAbE9t9q6Jog4f/TUFMAAAQEJks9nMt7/97Y4jRozo1bdv397t2rXrXl5e3rWsrKxzcXFx+4gosKUmp7G2tnZVTU3Nso0bNy5btWrV0tdff/2tJ598cvG999672noAAADYFgpgAACAhPne977X6a9Fb/v27Xu1bNmyV1lZWa8kvXOXLauvr9/wl7/8ZdG6desWL1u2bNHChQsX/fGPf1w8derUjbYDAADAliiAAQAAmqhsNps59dRTuxx66KH9+/Tp87n27dv3Ly8v719UVOSRzXlq06ZNKzZu3Pj6+++//8abb775xqOPPvrG3XffvcpmAAAA+CsFMAAAQBNx6qmndvniF784qHfv3v3btWv3uYqKis8VFhaW2wxbUl9fv37Dhg1vfPDBB68vXrz4jccee2z+jTfeuNxmAAAA8pMCGAAAYBc45phjWn/rW9/aq3///kPatGnTv6Kiop9HOLO9NDQ0VG/cuPGtNWvWLFy4cOGcO+6445WHHnporc0AAACknwIYAABgJzjjjDO6f+lLX9qrV69eg1u3bj2orKysR0RkbIadJFddXb103bp18xcvXjz30UcffeXqq69+x1oAAADSRwEMAACwnZWWlhb86le/2u3QQw8d1r17931btmw5qLCwsMxmaEoaGhqqP/zww/nvvPPOzGeeeWbW2LFj36ipqWm0GQAAgGRTAAMAAGwHP/7xj7t+9atf3bdXr15D27Ztu1c2m21jKyRJXV3dmg8++OCVRYsWvfznP/95xh/+8IdltgIAAJA8CmAAAIBtcOKJJ7Y75ZRTDujXr9+w1q1bD81ms61shTSpq6tbt3bt2pfffPPNWbfccsvUe++9d7WtAAAANH0KYAAAgE+hoqKi4IILLhg0YsSI/bp27bpfy5YtB2YymUKbIR/kcrmGDz/8cP6777474/nnn59x4YUXvrZx40aPiwYAAGiCFMAAAAAf4/jjj2/7/e9//8D+/fsf2Lp1630KCgpKbAUiGhsbN61fv37eW2+9NeWGG2545u67715lKwAAAE2DAhgAAOB/ZLPZzAUXXPC5I4888sDu3bsfWFFRsVtEFNgMbFl1dfWSd999d8qsWbNmnnvuuS+vW7euwVYAAAB2DQUwAACQ10pLSwsuvfTSQYcccsjBXbt2HVFWVtbDVmDb1dbWrnr//fdfmDp16uRf/vKXL65evbreVgAAAHYeBTAAAJB3Bg0aVHrBBRd8fs899zywQ4cOBxQVFbWwFdj+Ghsba9euXTtrzpw5T59//vmTX3755WpbAQAA2LEUwAAAQF4YNmxY8/POO+/gIUOGHOZ9vrDz/W0ZfNFFFz07a9asKlsBAADY/hTAAABAarVq1arwyiuv3HfEiBEjO3TocFBhYWGZrcCu19DQUP3+++8/O2XKlIk/+clPZm7cuLHRVgAAALYPBTAAAJAqrVq1Kvztb3+7/3777Xd4x44dRxQWFpbbCjRdDQ0NG99///0pM2bMeOqHP/zhC8pgAACAz0YBDAAApMJZZ53V45vf/OaRvXr1GllaWtrVRiB5ampq3l28ePHEO++8c9LVV1/9jo0AAABsPQUwAACQWMOHDy+/6KKLvjB48OCjW7RoMdBGID0+/PDDV+fNmzfhvPPOe3L69Ol/sREAAIBPRwEMAAAkSqtWrQpvuOGGQ/bbb79/atOmzX6ZTCZrK5BeuVyubs2aNTNmzJjx2JgxYyavW7euwVYAAAA+ngIYAABIhB//+Mddv/e9732lZ8+e/1RcXNzWRiD/1NbWfvD2228/dssttzz029/+9l0bAQAA+L8UwAAAQJNVUVFRcO21137+4IMPPrZ169b7ZTKZAlsBIqJxzZo1M59//vnxp5122hR3BQMAAPx/CmAAAKDJOeWUUzqefvrpx/bu3ftL2Wy2jY0AH6e+vn7j0qVLH/vd7373x+uvv36ZjQAAAPlOAQwAADQJ2Ww2c+uttx5wyCGHnNC6deu9I8LdvsDWaFy7du1L06ZN+/OPfvSjZ1evXl1vJQAAQD5SAAMAALtU//79S6655pp/2nPPPY8tLy/vayPAZ1VTU7NswYIF488999wHp06dutFGAACAfKIABgAAdomf//znPU855ZQTu3btemRhYWGZjQDbW2NjY92KFSuevOWWW+689NJLF9kIAACQDxTAAADATuMxz8Cusn79+rlPP/30f5188slT6+rqcjYCAACklQIYAADY4fr27Vv8hz/84a+Pee5nI8CuUlNT8+68efPu/8EPfvDgwoULN9kIAACQNgpgAABghxkyZEjpNddc89XBgwefWFxc3MFGgKaitrZ21dy5c+/5yU9+8uc5c+bU2AgAAJAWWyqAPYoNAADYJqNHj+4wb968n06ZMuXRYcOGnaH8BZqa4uLi9sOGDTtjypQpj86bN++nJ510UntbAQAA0s4dwAAAwFY599xze33/+9//dufOnY/IZDJZGwGSIpfL1S1fvvzJG2644fbLLrvsbRsBAACSyiOgAQCAz+y8887r+53vfOfbHTt2PDyTyRTaCJBUuVyuYcWKFU/cdNNN//XrX/96sY0AAABJowAGAAC22WWXXTboG9/4xg9at249zDaAtFm7du2su++++9pzzjnnNdsAAACSQgEMAABsNcUvkE8UwQAAQJIogAEAgE9N8Qvks7Vr18665557rvv5z38+3zYAAICmaksFcGHlwOj6UV9orIqoWZG1PQAAyBO/+MUvet9xxx3nHHrooT8pLS3tYiNAPiotLe2y7777HvP973+/X1lZ2ZIpU6assxUAAKCpKetcHwXlH/01BTAAAOS5M844o/u99957zpe//OWflZeX94qIjK0AeS5TXl7e8+CDDx71/e9/v3dEvDVjxowPrQUAAGgqFMAAAMD/ceKJJ7a77777fjJq1Kh/KS8v7xOKX4B/lCkvL+99+OGHj/rWt77VfvXq1Qvnz59fbS0AAMCutqUC2DuAAQAgzwwdOrTs+uuvP6l///4nFRYWltkI20NjY2Ns2rQpqquro6amJurr62PTpk2xefPmqK+vj+rq6qivr4/NmzfHpk2boqGhYZv/fxUWFkZJSUk0a9YsioqKoqysLIqKiqJZs2ZRUlISRUVFUVpa+r9/FRQUCIjtoqGhoeq11167a8yYMffMmTOnxkYAAIBdZUvvAFYAAwBAnujUqVP2nnvuGbXXXnudnM1mK22Ej9PQ0BAbN26MDRs2/J+/Nm7cGBs3boyamprYtGlTbNq0KWpqaqK2trbJnqe4uDhKSkqitLT0f/9eUVERFRUV0aJFi//zV0VFRRQWFvog8LHq6urWvvjii7eceOKJf169enW9jQAAADubAhgAAPLcXXfdddAXv/jF00tLS7vZRn7L5XKxYcOGWLt2baxbty7Wrl37d3+tW7cuNmzYkPd7atGiRbRu3TpatWoVrVu3jjZt2vzvf27dunW0aNHCh4morq5e+sgjj1zzne98Z6ptAAAAO5MCGAAA8tTVV189+MQTTzyzoqJioG3kj8bGxli5cmUsX748Pvjgg1i9evX//n3t2rXR2NhoSZ9RYWFhtGrVKtq1axdt27b937937tw5OnTo4LHTeWbDhg3z77333qvOPPPMebYBAADsDApgAADIM1/72tfaXHrppad27979qIjQRKVUQ0NDrFq1KlasWBHvv//+//595cqVTfqRzGlXXFwcHTp0iI4dO0bnzp2jY8eO0alTp2jXrp1HS6dYLpdrfOeddx76+c9/fv2ECRPW2QgAALAjKYABACBP9OrVq9ldd931jT322OM7hYWFZTaSHh9++GG88847sXTp0njvvfdixYoVsXr16mhoaLCchCgsLIz27dtHp06dolu3btG9e/fo3r27x0mnTENDQ9W8efNu++Y3v/nHJUuWbLYRAABgR1AAAwBAHrjrrrtG/NM//dOZJSUlXWwj2davXx9Lly6Nd955539L3w8//NBiUqqysvJ/y+C//tWqVSuLSbiamppljz322G9Gjx49xTYAAIDtTQEMAAAp9qtf/arPD3/4w5+1atVqL9tIno0bN8aSJUvirbfeikWLFsV7770XmzZtspg8V1JSEl27do0+ffpE3759o3fv3lFeXm4xCbRu3bqXr7322ivGjh27yDYAAIDtRQEMAAApNGjQoNI77rjju7vttttJBQUFWRtJhtWrV8ebb74ZixcvjiVLlsTy5cujsbHRYtiigoKC6Ny5c/Tu3Tt69+4d/fr1i7Zt21pMQjQ2Nta98cYbd33rW9+6ff78+TU2AgAAfFYKYAAASJHS0tKCBx988Jj99tvvn7PZbBsbaboaGhri7bffjrfeeisWLFgQS5YscXcv201FRUX06tUr+vbtG3379o2ePXtGYWGhxTRhdXV1a2bMmHHjV77ylYdqamr85gcAALDNFMAAAJASp59+erdf/vKX51ZWVu5jG03T6tWr47XXXouFCxfGm2++GRs3brQUdooWLVpE3759Y8CAATFw4EB3CDdh69evf/E//uM//vPqq69+xzYAAIBtoQAGAICEGzRoUOm99977w969ex+byWTc4teErF+/PubNmxcLFiyIN954Q+FLk9GiRYvo169fDBgwIPbYY4+orKy0lCYkl8s1LF68eNyJJ554rcdCAwAAW0sBDAAACXbNNdcMOemkk35RVlbWyzZ2vVwuF++++27MnTs3XnvttViyZIl3+NLkFRQURK9evWLQoEExePDg6Natm6U0EdXV1UvuvvvuX//kJz+ZYxsAAMCnpQAGAIAEOuqoo1r99re//VmHDh0Ot41da9OmTTF79uyYO3duLFy4MKqqqiyFRGvevHn0798/Bg8eHHvuuWeUlJRYyi62cuXKp04//fTLJ0yYsM42AACAT6IABgCAhBk3btwRRxxxxFnZbLaNbewaVVVVMXfu3Jg7d27Mnz8/amtrLYVUKi4ujoEDB8bgwYNj8ODBUV5ebim7SF1d3ZqnnnrqqlGjRj1hGwAAwJYogAEAICFOOeWUjhdddNEvW7duvZ9t7HwrV66MWbNmxdy5c+Odd96JXC5nKeSdzp07x9577x3Dhg2LDh06WMgusHbt2hnnnXfepbfccsv7tgEAAHwUBTAAADRxpaWlBU899dQ3Bw8e/L2CggLPYt2JVqxYES+99FK89NJLsXz5cguBv/HXMnjvvfeOTp06WchO1NjYuGnu3Lk3H3744XfV1NR40TgAAPB3FMAAANCEjR49usOll176yzZt2gy3jZ1j/fr18eKLL8bMmTNj6dKlFgKfQs+ePWPfffeNYcOGRYsWLSxkJ1mzZs0L55577q/vvvvuVbYBAAD8lQIYAACaoIqKioKJEyd+c/Dgwd8vKCgotpEda8OGDfHiiy/G9OnTlb7wGfXo0SOGDx8ew4YNi4qKCgvZwdwNDAAA/CMFMAAANDGnnHJKx7Fjx/5rZWXlMNvYcerr6+PVV1+NGTNmxLx586Kurs5SYDvKZrMxZMiQ2HfffWP33XePwsJCS9mB1q5dO+MXv/jFv995550rbQMAAPKbAhgAAJqIbDabeeKJJ47fZ599fuSu3x0jl8vFwoULY/r06TF79uzYtGmTpcBOUFpaGkOGDInhw4fHgAEDLGQHaWhoqJ42bdo1Rx555J9tAwAA8pcCGAAAmoDjjz++7ZVXXvmr1q1be9fvDrBmzZqYNm1azJw5M1audHMc7EodO3aMz3/+87H//vt7X/CO+3fetDPPPPOScePGfWAbAACQfxTAAACwi9100037HXvssf9WXFzc1ja2n1wuF6+99lo8//zzMW/evKivr7cUaEKKiopizz33jBEjRsTnPve5yGQylrId1dbWrvrjH/948Q9+8INZtgEAAPlFAQwAALvIkCFDSu+///5zunTp8k+2sf2sXbs2Jk+eHNOnT48PP/zQQiABKisrY8SIEXHIIYdEeXm5hWxHy5Yte+zrX//6f86ZM6fGNgAAID9sqQAurBwYXT/qC41VETUrsrYHAADb6IILLtjt97///VVt2rQZZhvbx+LFi2P8+PFx9913xxtvvBG1tbWWAgmxadOmeOONN+LZZ5+NtWvXRps2bTweejtp0aJFv5NOOumg0tLSuc8+++xaGwEAgPQr61wfBR/zu7XuAAYAgO0sm81mJk2a9PVhw4b9pKCgwG9VfkZ1dXUxY8aMeOaZZ+K9996zEEiRfv36xSGHHBJDhw6NgoICC/mMGhsbN8+YMeOaL37xi+Pq6upyNgIAAOnlEdAAALCTHH/88W2vuuqqCyorK/exjc9mzZo18dRTT8XUqVNj06ZNFgIpVlFREZ///OfjsMMOi8rKSgv5jNavXz/r9NNPv3DcuHEf2AYAAKSTAhgAAHaC22677fNf+9rXzstms5W2se0WLVoUjz/+eMybNy9yOTewQT4pKiqKIUOGxBFHHBG9e/e2kM+grq5u3QMPPHDRySefPM02AAAgfRTAAACwA1VUVBQ8/fTTpwwcOPCUTCbjGabbIJfLxauvvhpPPvlkLFy40EIgz2UymRgwYEAcccQRMWjQIAvZ9n+3Ns6fP/+Www8//JaNGzc22ggAAKTHlgrgwsqB0fWjvtBYFVGzwuvKAABgS0488cR2EyZMuLx79+5fzmQyGRvZOo2NjTFr1qy49dZb48knn4wPPvC0UuC/rV69OmbMmBFz5syJ0tLS6NSpU/jX7NbJZDKZ9u3bD/3+978/dPny5TNfffXValsBAIB0KOtcHwXlH/O9gDuAAQBg29x66637H3vssRcWFRW1sI2tU1NTE0899VQ8++yzsWHDBgsBPlGLFi3i4IMPjsMPPzxKS/28YmvV19d/OG7cuPNPPvnk6bYBAADJ5xHQAACwHWWz2cyzzz77rSFDhvzAI5+3zqZNm2Ly5Mnx1FNPKX6BbdKiRYs47LDD4pBDDlEEb6VcLtfwyiuvXHfooYfeWVdX5yXrAACQYApgAADYTo455pjW11133cWVlZV728ant2HDhnj88cdjypQpUVtbayHAZ1ZcXBwHHnhgfPGLX4wWLTyIYWusWbNm2re//e3zn3nmGb+JAwAACeUdwAAAsB1cfvnlu1900UW/LS8v72cbn05VVVVMmDAhbrnllnjzzTejoaHBUoDtoqGhIZYsWRLPPfdc1NTURI8ePSKb9XOMT6OsrKzb17/+9SPbtm0774knnlhtIwAAkMDreu8ABgCAz+bhhx/+8qGHHnpOQUFBsW18sk2bNsUzzzwTTzzxRFRVVVkIsMOVl5fHkUceGYccckgUF/tX9afR2Ni46emnn/71Mccc87htAABAsngENAAAbKN27doVTZ48+YxevXodZxufrK6uLp5++umYOHGi4hfYJSoqKuKLX/xiHHzwwe4I/pQWLVr0x4MOOuiadevWeUwDAAAkhEdAAwDANjj22GPbPvzww7/p2LHjobaxZXV1dfHkk0/GddddF3Pnzo26ujpLAXaJzZs3x2uvvRbPPfdcRET06NEjCgsLLWYLWrduvfv3vve9fd9+++1pCxYsqLYRAABo+rb0CGgFMAAAfITLL7989wsuuOB3zZs372UbH6+xsTGmTJkS119/fbzyyiuKX6DJ2Lx5cyxYsCCmT58excXF0a1bt8hkMhbzMUpKSjp8+ctfPrJt27ZzvBcYAACaPu8ABgCArTB+/Pgjv/CFL/xLQUFBiW18vAULFsT48eNj6dKllgE0eT169IivfOUrMWjQIMvYgsbGxpqJEydecuyxxz5pGwAA0HR5BzAAAHwK7dq1K3ruued+1qNHj6/axsdbtGhR3H///bF48WLLABKnV69ecdxxx0WfPn0sYwuWLl3654MOOujy1atX19sGAAA0Pd4BDAAAn2DYsGHNn3766V936tTpC7bx0TZs2BD33Xdf/PGPf4y1a9daCJBI69evj2nTpsW6deuiZ8+eUVLiYQ8fpbKysv+3v/3t/lOmTJmyfPlyz/cHAIAmxjuAAQBgC372s5/1uP76669t0aKF54J+hJqamhg/fnzcfPPN8fbbb0cul7MUINFyuVy888478cwzz0RVVVX07t07slk/A/lHZWVl3U488cTD6+rqZkyfPv1DGwEAgCZ0va4ABgCAj3bFFVfscdZZZ11dXFzcwTb+Xi6XixkzZsR1110XCxYsiMbGRksBUqWxsTGWLFkSM2bMiPLy8ujSpUtkMhmL+RvZbLbFQQcddHibNm1mP/HEE6ttBAAAmoYtFcDeAQwAQN6aNGnSqAMOOODsTCZTaBt/b9GiRXHPPffEu+++axlA3ujWrVucdNJJ0bt3b8v4B7lcrm7y5Mm//vKXv/yIbQAAwK63pXcAK4ABAMg7paWlBTNnzjyzT58+x9vG39uwYUOMGzcuZsyY4VHPQF7KZDKx3377xde//vWoqKiwkH+waNGiP+27775X1dTUeCwEAADsQgpgAAD4H926dctOnjz5V506dRppG/9fLpeLqVOnxp///OfYuHGjhQB5r6KiIkaNGhX777+/x0L/g+XLlz9+6KGHXvLuu+/W2QYAAOwaWyqAvQMYAIC8MXz48PInnnjiynbt2o2wjf/vnXfeiWuvvTaee+652Lx5s4UARMTmzZtjzpw58dprr0XPnj2jRYsWlvI/Kioq+n7rW98aMnXq1Ofee+89f3AAAMAusKV3ACuAAQDIC9/+9rc73n777X9o0aLFANv4b1VVVXHXXXfFvffeG+vXr7cQgI+wbt26eP7552P9+vWx2267RVFRkaVERElJSefjjjvuoA8++GDKK6+88hcbAQCAnUsBDABAXjv//PP7XXzxxX8oKSnpbBv/bfr06XHttdfGokWLLAPgU3jnnXdi2rRp0bp16+jc2R8nERHZbLbyC1/4whElJSUvTp48eY2NAADAzqMABgAgb/3ud7/b60c/+tFVRUVFrWwjYs2aNXHzzTfHpEmTora21kIAtkJtbW289NJL8c4770Tfvn2jtLQ073dSWFhYNnz48C/26dNn4UMPPbTMpwQAAHYOBTAAAHnp1ltv3f+b3/zmfxYWFjbP913kcrl4/vnn4/rrr4/ly5f7cAB8BitXroxp06ZFRUVFdOvWLTKZTF7vo6CgIDto0KBDBw0atOiBBx54xycEAAB2vC0VwJmex8Z+H/WF+pURa17ym6wAACTTww8//KXDDjvsXzKZTN6/rPGDDz6I22+/Pd544w0fDIDtbMCAAfGtb30r2rRpk/e7yOVyjVOmTPn1yJEjH/LJAACAHavN3jVR1OGjv6YABgAgdV555ZXTPve5z30r3/fQ0NAQjz32WDz++ONRV1fngwGwg2Sz2Tj66KPjC1/4QhQUFOT9Pl5//fU79tprr9/7ZAAAwI6jAAYAIC9ks9nMyy+/fFafPn2Oz/ddvPvuu3HbbbfFe++954MBsJN069YtvvOd70S3bt3yfhdLliy5f5999rmypqam0ScDAAC2PwUwAACpV1paWjBr1qyzevfufVw+7yGXy8WTTz4ZDz74oLt+AXaBbDYbxxxzTBxxxBF5fzfw0qVLHxg6dOjlSmAAANj+FMAAAKRar169mk2ePHlsu3btDsrnPaxcuTJuueWWePvtt30oAHaxnj17ximnnBIdOnTI6z2sXr16yiGHHPIvS5Ys2exTAQAA28+WCuDCyoHR9aO+0FgVUbMia3sAADRpQ4cOLXvqqacub9Omzf75uoNcLhfPPPNMXH/99bF27VofCoAmYP369TFlypQoKSmJnj17RiaTycs9NG/evPtJJ500ZPLkyc+sWLHCoykAAGA7KetcHwXlH/01BTAAAIk1ZMiQ0kceeeSKVq1a7Z2vO6iuro7bb789nnjiiWhs9IRNgKaksbEx5s+fH++//34MGDAgstn8/DlLaWlpp6997WuDn3rqqadXrlxZ75MBAACfnQIYAIDUOfTQQ1s8+OCDv2/ZsuUe+bqDOXPmxNVXX+2RzwBN3PLly+OFF16Ijh075u0joUtLSzudcMIJ+7/00ktPv/3227U+FQAA8NkogAEASJVhw4Y1v++++37TsmXLQfl4/vr6+hg/fnz88Y9/jNpaP0MHSILNmzfHiy++GJs3b47ddtstCgoK8m4HxcXFbY866qg9n3vuuaeXL1/ucdAAAPAZKIABAEiNI488snLcuHG/b9GixcB8PP97770XV111VcyZM8eHASCBFi1aFC+//HL069cvWrRokXfnLykp6XDcccftP2fOnGcWLVq0yScCAAC2jQIYAIBUOPLIIyvvvPPO35aXl++Wj+d/+umn48Ybb4wPP/zQhwEgwf7yl7/ECy+8ECUlJdGrV6+8O3+zZs3aHHXUUfspgQEAYNspgAEASLxjjz227W233faH5s2b98m3s1dVVcXNN98cTz31VDQ2NvowAKRAY2NjzJ8/P5YtWxYDBgyIZs2a5dX5mzVr1uaYY4458M0333xm4cKFNT4RAACwdRTAAAAk2qGHHtritttuuzofy9+33347rrnmmli8eLEPAkAKvf/++/HKK69Enz59orKyMq/Ons1mK4888sh9Zs6c+dTSpUs3+zQAAMCnpwAGACCxjjjiiJb33nvvteXl5f3y6dy5XC4mTZoUN998c1RVVfkgAKRYVVVVTJ06NbLZbPTp0ycymUzenL24uLjtV7/61c+/8sorTy1evLjWpwEAAD4dBTAAAIl06KGHtrj33nt/l2/lb3V1ddx0000xefLkyOVyPggAeSCXy8WCBQvi3Xffjd133z2y2fz5mUyzZs1aH3300fvNmDHjSXcCAwDAp6MABgAgcYYOHVo2fvz4qysqKgbk07mXLVsWV111lUc+A+SplStXxiuvvBKf+9znoqKiIm/O3axZszZHH3300GeeeebJFStW1PkkAADAlimAAQBIlCFDhpQ++uij17Rs2XL3fDr31KlT49prr42NGzf6EADksaqqqpg+fXq0bds2unTpkjfnLikpaT9q1KihTz755JMrV66s90kAAICPt6UCuMB6AABoSjp16pSdMGHCv1dWVu6RL2dubGyMcePGxR133BF1dW56AiCitrY2br755hg/fnw0NjbmzbkrKyv3mDBhwr9369bNXQkAALCNFMAAADQZrVq1Kpw+ffolbdq02T9fzlxdXR2/+93vYtKkSd73C8DfyeVy8fjjj8fvf//7qK6uzptzt2nTZv8pU6Zc0qpVq0KfAgAA2HoKYAAAmoSKioqC2bNnX9KuXbuD8uXMS5cujYsuuijmz5/vAwDAx3r11VfjoosuiqVLl+bNmdu1a3fQ7Nmz/72iosLPrgAAYCu5iAYAoEmYOXPmz9q1a3dIvpz35ZdfjiuuuCLWrVsnfAA+0bp16+KKK66Il19+OW/O3K5du4Nnzpz5M+kDAMDWUQADALDLvfjii2N69OgxKh/Omsvl4oEHHogbbrghamtrhQ/Ap1ZbWxs33HBDPPDAA3nz2oAePXqMevHFF8dIHwAAPj0FMAAAu9SkSZO+NnDgwFPy4ax1dXVx8803x8SJE73vF4BtksvlYuLEiXHLLbdEXV1dXpx54MCBJ0+aNOlr0gcAgE9HAQwAwC7z6KOPHnXggQeekw9nXbduXfz617+OWbNmCR6Az2zmzJnx61//Ol9eJZA58MADz3n00UePkjwAAHyywsqB0fWjvtBYFVGzImtDAADsEDfeeOO+Rx999EWZTKYw7Wddvnx5XHXVVbFy5UrBA7DdbNiwIWbPnh0DBw6MioqKtB8307179/179uz56sMPP7xc+gAA5LuyzvVRUP7RX1MAAwCw011xxRV7fPe7372qoKCgWdrPOmfOnPjtb38bGzduFDwA2111dXVMmzYtOnfuHB07dkz1WTOZTOHuu+9+eJs2bV6aNGnSKukDAJDPFMAAADQZZ5xxRvef/exnvy0sLCxP+1knTJgQd999d9TX1wsegB2moaEhXnrppchms9G3b99UnzWTyRTttddeB/3lL395dubMmRukDwBAvlIAAwDQJBx00EEVf/jDH64pLi7ulOZz5nK5eOCBB+Kxxx4TOgA77c+eBQsWRF1dXfTv3z8ymUxqz1pQUFBywAEHDJs+ffqkpUuXbpY+AAD5aEsFcIH1AACwMwwaNKj0vvvuu7qsrKxXms9ZV1cX1113XUyaNEnoAOx0EydOjOuvvz7q6upSfc6ysrJef/rTn67u379/idQBAODvKYABANjhKioqCh577LGLKyoqBqb5nNXV1XHNNdfE7NmzhQ7ALvPKK6/ElVdeGVVVVak+Z4sWLQZOnDhxbEVFhZ9vAQDA33CBDADADjdz5syftW3b9sA0n3HdunVx2WWXxRtvvCFwAHa5xYsXx2WXXRZr165N9TnbtWt34MyZM38mcQAA+P8UwAAA7FBPPvnkqB49eoxK8xlXrVoVV1xxRSxfvlzgADQZK1asiCuuuCJWrlyZ6nP26NFj1KRJk0ZJHAAA/lth5cDo+lFfaKyKqFmRtSEAALbZjTfeuO+XvvSlCzOZTGp/8fDdd9+NK6+8MtatWydwAJqc6urqmDVrVvTv3z8qKytTe85u3boN79mz57yHH37Yb2MBAJAXyjrXR0H5R39NAQwAwA5x3nnn9T311FOvLigoKE7rGV977bW45pprorq6WuAANFmbN2+OGTNmRI8ePaJ9+/apPGMmkykYNGjQIYWFhVOee+45v5UFAEDqKYABANipjjrqqFb/8R//8YdmzZq1SusZX3755bj++uujrq5O4AA0eQ0NDfHSSy9Fp06dolOnTqk8Y0FBQXbYsGGfnz9//qQ33nhjk9QBAEizLRXA3gEMAMB21a1bt+wNN9zwnyUlJR3TesYpU6bEjTfeGPX19QIHIDHq6+vjxhtvjKlTp6b2jCUlJZ1uuOGG/+jWrZu7GgAAyFsKYAAAtqunn376XyorK/dI6/kmTZoUd955ZzQ2NgobgMRpbGyMO+64I5588snUnrGysnLw008//UtpAwCQrxTAAABsN88///w3unTp8k9pPd/EiRNj3LhxkcvlhA1AYuVyubj//vtTXQJ36dLlS88+++yJ0gYAIB95BzAAANvFTTfdNPzII488L5PJZNJ4vsceeyzGjx8vaABS47XXXotmzZpF3759U3m+zp0779urV695Dz/88DJpAwCQNlt6B7ACGACAz+wXv/hF7x/+8IdXFxQUNEvj+R544IF45JFHBA1A6ixYsCDq6upiwIABqTtbJpPJDBo06ODGxsbnpk6dul7aAACkiQIYAIAd5oADDqj43e9+99tmzZq1TeP5xo0bF5MmTRI0AKm1aNGi2Lx5cwwcODB1ZysoKMjut99+w5577rnH33vvvc3SBgAgLbZUAHsHMAAA2yybzWbuvPPOfyktLe2exvNNmDBB+QtAXpg0aVI89NBDqTxbaWlpj3vuuedfstlsRtIAAOQDBTAAANvs+eef/06HDh0OTePZHn744Xj44YeFDEDeeOSRR+LPf/5zKs/WoUOHw5599tlvSxkAgHygAAYAYJvcd999hw8ePPjUNJ7t/vvvjwkTJggZgLzz2GOPxX333ZfKs+25554/+NOf/nSYlAEASDvvAAYAYKudccYZ3ceMGXN5QUFBcdrONnHixHjkkUeEDEDeWrx4cWSz2ejbt2/ajpbp06fPvn/5y18mz5w5c4OkAQBIsi29A1gBDADAVhk2bFjzG2+88Q/NmjVrl7azPfroo6l99CUAbI2FCxdGUVFR9OvXL1XnKigoKD7wwAP3e/LJJx9dsWJFnaQBAEiqLRXAHgENAMBWuffee39ZWlraPW3nevzxx+PBBx8UMAD8jz//+c8xceLE1J2rtLS0x3333fdLCQMAkFYKYAAAPrVJkyaN6tSp0xEpPFeMHz9ewADwD8aPHx+TJ09O3bk6der0hUmTJn1VwgAApJFHQAMA8Kmcd955fU888cR/z2QyRWk618yZM+Puu+8WMAB8jNdeey06duwYnTt3TtW5unbtuk9BQcHzzz333DopAwCQNN4BDADAZ3LEEUe0vOKKK67NZrOVaTrXyy+/HDfffHPkcjkhA8DHyOVyMXv27OjSpUt06tQpNefKZDJF++yzz/CpU6c+9u67726WNAAASeIdwAAAbLNsNpu55ZZb/q2kpKRjms61YMGCuPnmm6OxsVHIAPAJGhsb4+abb44333wzVecqLS3tcvfdd5+fzWYzUgYAIC0UwAAAbNGkSZO+3rZt2wPTdKZly5bFDTfcEPX19QIGgE+prq4urr322li+fHmqztWuXbsDH3/88VESBgAgLTwCGgCAj3XZZZcN+upXvzo2k8mk5hcH33///bjyyiujqqpKwACwlerq6uLll1+OIUOGRHl5eWrO1aVLl31LS0unPvPMM2ukDABAEngENAAAW61///4lJ5988q8ymUxRWs60YcOG+P3vfx8bN24UMABso40bN8bvfve7VP15WlBQkP3hD394ft++fYslDABA4q9vrQAAgI/y4IMPnl1WVtYrLeeprq6O3/zmN7Fq1SrhAsBntGrVqrjyyiujuro6NWcqKyvr8/DDD58lXQAAkk4BDADA/zF+/Pgju3XrdnRazlNfX5/KdxYCwK60fPnyuO6666K+vj41Z+rRo8dXx40bd4R0AQBIMgUwAAB/53vf+16nI4444py0nCeXy8Vtt90Wb7zxhnABYDt7/fXX47bbbotcLpeaMx155JHnfvvb3+4oXQAAkkoBDADA/6qoqCi4+OKLLywsLCxPy5nGjx8fs2bNEi4A7CCzZs2Khx56KDXnKSwsrPj1r399QUVFhZ+bAQCQSC5kAQD4XxMnThxdWVk5OC3nef7552PixImCBYAd7LHHHosXXnghNeeprKzc89FHHz1RsgAAJFFh5cDo+lFfaKyKqFmRtSEAgDxxwQUX7DZq1KgLM5lMYRrO8+qrr8Ytt9ySqkdSAkBT/7O3d+/e0a5du1Scp2PHjkNzudxzU6ZMWSddAACamrLO9VHwMc/wcwcwAADRt2/f4h//+McXZzKZVPwG4HvvvRc33HBDNDY2ChcAdpKGhoa47rrrYtmyZak4T0FBQfbss88e27dv32LpAgCQqGtZKwAAYPz48T8qKyvrkYazbNiwIX7/+99HbW2tYAFgJ9u0aVP8/ve/j40bN6biPGVlZb3GjRs3RrIAACSJAhgAIM/ddNNNw/v06XN8Gs5SX18f1157baxdu1awALCLrFmzJq699tqor69PxXn69ev3jd///vdDJQsAQFIogAEA8thBBx1Uceyxx/5rRGTScJ477rgjFi9eLFgA2MUWLVoUd955Z1qOU/CNb3zj34YNG9ZcsgAAJOIC1goAAPLXzTfffFZxcXG7NJxl4sSJMX36dKECQBMxbdq0mDRpUirOUlJS0unOO+88Q6oAACSBAhgAIE/913/914FdunT5UhrO8tprr8Wf//xnoQJAEzN+/PhYsGBBKs7SrVu3o2+66abhUgUAoKlTAAMA5KEvfelLlV/5yld+lYazrFixIq6//vpobGwULAA0MY2NjXHdddfFihUr0nCczHHHHfergw46qEKyAAA0ZQpgAIA8dPXVV5+ezWYrk36OmpqauPbaa2PTpk1CBYAmatOmTXHttddGTU1N4s+SzWbb3njjjT+RKgAATZkCGAAgz9x6663Du3Tp8uWknyOXy8Utt9wSK1euFCoANHErV66MW2+9NXK5XOLP4lHQAAA0dQpgAIA8MnTo0LKvfvWrv0jDWSZMmBBz584VKgAkxJw5c+Kxxx5LxVlGjRr1i6FDh5ZJFQCApkgBDACQR+64444fFRcXd0z6OV5++eV45JFHBAoACfPQQw+l4he4SkpKOt5xxx0/lCgAAE2RAhgAIE9cfvnlu/fs2XNU0s/xwQcfxB133JGKR0gCQL7J5XJx2223xZo1axJ/lp49ex57+eWX7y5VAACaGgUwAEAe6NatW/a73/3uv2YymURf/9XX18cNN9wQ1dXVQgWAhKqqqoobb7wx6uvrE32OTCZT8N3vfvdX3bp1y0oVAICmRAEMAJAHxo8ff0pZWVmvpJ/jnnvuiaVLlwoUABJuyZIlcd999yX+HGVlZT3Hjx9/ikQBAGhKFMAAACn385//vOeAAQNGJ/0c06dPjylTpggUAFJi8uTJMWPGjMSfY8CAAaN//vOf95QoAABNhQIYACDFstls5qyzzjo3k8kk+tGEK1asiLvvvlugAJAyd911V6xYsSLRZ8hkMtmzzjrr3Gw2m5EoAABNgQIYACDFxo0b98XKysq9knyG2trauOGGG6K2tlagAJAyf/1zfvPmzYk+R2Vl5V7jxo0bKVEAAJoCBTAAQEoNHz68/OCDDz4t6ee4//77Y/ny5QIFgJRavnx5jBs3LvHnGDFixI+HDRvWXKIAAOxqCmAAgJS69dZbT8tms22TfIYZM2bEc889J0wASLnJkyfHzJkzE32G4uLitrfffvtp0gQAYFdTAAMApNBVV121R48ePb6S5DOsXLky7rrrLmECQJ64++6744MPPkj0GXr27PnVK664Yg9pAgCwKymAAQBSprS0tOAb3/jGT5N8rdfY2Bi333679/4CQB6pqamJ2267LRobG5N8jIJvfvObZ5aWlvqZGwAAu+6i1AoAANJlwoQJX6uoqBiQ5DOMHz8+Fi1aJEwAyDNvvvlmPPjgg4k+Q4sWLQY9+OCDx0gTAIBdRQEMAJAiRx55ZOWwYcN+kOQzzJ07N5544glhAkCemjhxYixYsCDRZxg+fPiPjjjiiJbSBABgV1AAAwCkyBVXXHFyUVFRRVLnr6qqijvvvDNyuZwwASBP5XK5uP3226O6ujqxZygqKmrxm9/85mRpAgCwKyiAAQBS4vzzz+/Xu3fv45J8httvvz0+/PBDYQJAnlu3bl3cfvvtiT5D7969jz///PP7SRMAgJ1NAQwAkALZbDZz6qmn/jyTyST2+m769OkxZ84cYQIAERExe/bsmDFjRmLnz2QyBaeeeurPs9lsRpoAAOxMCmAAgBT44x//eERlZeXgpM6/du3auPfeewUJAPyde+65J9atW5fY+SsrKwf/6U9/+oIkAQDYmRTAAAAJ17dv3+JDDjnkR0k+w9133x01NTXCBAD+Tk1NTdx9992JPsPBBx/8o759+xZLEwCAnUUBDACQcHfdddc3S0pKOiV1/smTJ8e8efMECQB8pLlz58azzz6b2PlLSko63nPPPd+SJAAAO4sCGAAgwb70pS9VDhw48KSkzr9mzZoYP368IAGALXrggQdizZo1iZ2/f//+Jx111FGtJAkAwM6gAAYASLArrrji1MLCwvIkzp7L5eK2226LTZs2CRIA2KJNmzbFbbfdFrlcLpHzFxYWll1++eU/kCQAADuDAhgAIKF+8Ytf9O7evftXkjr/s88+G2+88YYgAYBP5Y033ojnn38+sfN369bt6F/96ld9JAkAwI6mAAYASKgf/vCHP8pkMom8nvvggw/igQceECIAsFXGjRsX69atS+TsmUym4NRTT/2xFAEA2NEUwAAACXTdddcNa9eu3YFJnD2Xy8Udd9wRtbW1ggQAtsqmTZvizjvvTOz8bdq02f+mm27aT5IAAOxICmAAgIQpLS0t+NrXvnZ6Uud/4YUXYuHChYIEALbJq6++GjNmzEjs/Mccc8zpFRUVfiYHAMAO42ITACBhbr/99oMrKip2S+LsGzZsiHHjxgkRAPhM7r///qiqqkrk7OXl5X3/67/+6wgpAgCwoyiAAQASpKKiouCwww47Nanz33vvvYn9YS0A0HRs2LAh7r///sTOf9BBB/1zq1atCiUJAMCOoAAGAEiQ+++//+iysrKeSZx9zpw58dJLLwkRANguXnjhhViwYEEiZy8tLe32xz/+8StSBABgR1AAAwAkRN++fYv33Xfff07i7LW1tXHvvfcKEQDYru6+++6oq6tL5Oz77bffKf379y+RIgAA25sCGAAgIW6++eZRxcXFbZM4+yOPPBJr164VIgCwXa1atSoee+yxRM6ezWbb3njjjV+TIgAA25sCGAAgAYYOHVq21157fSeJs7/33nvxxBNPCBEA2CEmTpwYK1asSOTsQ4YM+c7QoUPLpAgAwPakAAYASIBrr732xKKiosqkzZ3L5eKee+6JxsZGIQIAO0R9fX3cddddkcvlEjd7UVFR5bXXXnuCFAEA2J4UwAAATdwBBxxQMWDAgG8kcfYZM2bEW2+9JUQAYId6880348UXX0zk7AMGDPjG8OHDy6UIAMD2ogAGAGjirrrqqhOKiooqkjb3pk2b4oEHHhAgALBT3H///VFbW5u4uYuKilpcffXV7gIGAGC7UQADADRhBx10UEX//v0Teffvww8/HB9++KEQAYCdYv369TFhwoREzj5w4MBvHHDAARVSBABge1AAAwA0Yf/5n/95bGFhYfOkzb1q1aqYPHmyAAGAnerpp5+O1atXJ27uwsLC8ssuu2yUBAEA2B4UwAAATdQBBxxQMWjQoNFJnP3uu++O+vp6IQIAO1V9fX3cddddiZx99913/+bQoUPLpAgAwGelAAYAaKIuv/zyYwsLC8uTNvfcuXNjwYIFAgQAdokFCxbE3LlzEzd3UVFRi9/97ndflyAAAJ+VAhgAoAkaOnRo2aBBgxL37t+6urr405/+JEAAYJf605/+FHV1dYmbe/fdd//mkCFDSiUIAMBnoQAGAGiCfvOb33ylqKioZdLmfu655xL53j0AIF1Wr14dzz33XOLmLioqann11VcfLUEAAD4LBTAAQBPTq1evZoMHD/5m0uaurq6ORx55RIAAQJPwyCOPRHV1deLmHjJkyLe6deuWlSAAANtKAQwA0MTcdNNNxxQXF7dN2twTJkyIqqoqAQIATUJVVVUifzmtuLi43a233uouYAAAtpkCGACgCWnVqlXhXnvtdVLS5l61alU8++yzAgQAmpTJkyfHqlWrEjf30KFDR7dq1apQggAAbAsFMABAE3LLLbccXlJS0jlpcz/44INRX18vQACgSamvr48HH3wwcXOXlJR0vummmw6VIAAA20IBDADQRGSz2cwBBxzw7aTNvWjRonjppZcECAA0SS+99FIsXrw4cXOPGDHiO9lsNiNBAAC2lgIYAKCJuOaaa/YuLy/vm7S5H3roocjlcgIEAJqkXC6XyLuAy8vL+1111VV7SRAAgK2lAAYAaCK+8pWvfDdpM8+bNy8WLlwoPACgSVu4cGG8+uqrrg8BAMgLCmAAgCbgsssuG1RZWblPkmbO5XIxfvx44QEAifDAAw8k7qklrVu33veSSy7pLz0AALaGAhgAoAkYNWrUCUmbefbs2bFs2TLhAQCJsGzZsnjllVcSN/cJJ5xwovQAANgaCmAAgF3sn//5nzt37NjxiCTN3NjYGA888IDwAIBEGT9+fDQ0NCRq5k6dOn1h9OjRHaQHAMCnpQAGANjFfvSjH30tk8kk6rps2rRpsWrVKuEBAImyatWqeOGFFxI1cyaTKfzpT386SnoAAHxaCmAAgF1o0KBBpX369Plqkmaur6+PCRMmCA8ASKQJEyZEXV1dombu27fvV/r27VssPQAAPg0FMADALnTZZZcdXlRUVJGkmadOnRpr164VHgCQSOvXr48pU6YkauaioqLK3/zmN0dIDwCAT0MBDACwi2Sz2cy+++57UpJmrqurc/cvAJB4jz76aOLuAt5///1PymazGekBAPBJFMAAALvI1VdfPbSsrKx3kmaeMmVKbNiwQXgAQKJt2LAhnn/++UTNXFZW1ueqq67aS3oAAHwSBTAAwC7y5S9/+bgkzVtfXx8TJ04UHACQCo8//nji7gL+0pe+dLzkAAD4JApgAIBdYPTo0R3atm07IkkzT5s2LdatWyc8ACAVPvzww5g+fXqiZm7fvv2I0aNHd5AeAABbogAGANgFfvrTn47KZDKFSZm3vr4+HnnkEcEBAKnyyCOPRH19fWLmzWQyhT/96U+/JjkAALZEAQwAsJN16tQp26dPn6OTNLO7fwGANFq3bl1MmzYtUTP36dPnmE6dOmWlBwDAx1EAAwDsZFddddUB2Wy2dVLmbWxsjEmTJgmOVOvYsWN06OCJmgD5aNKkSdHY2JiYebPZbOurrrrqAMkBAPBxFMAAADvZiBEjvp6keV988cVYtWqV4Ei1Ll26xIUXXhinnXZadO3a1UIA8siqVavipZdecj0JAEBqKIABAHaiM844o3tlZeXeSZk3l8vFxIkTBUdeyGQyMXjw4PjVr34VY8aMcUcwQB55/PHHI5fLJWbeysrKvc8444zukgMA4KMogAEAdqJTTjnlqxGRScq8CxYsiPfee09w5JVMJhN77713XHjhhTFmzJho3769pQCk3HvvvRcLFy5M1B9X/3NdCQAA/4cCGABgJ+nVq1ezXr16fTlJM3v3L/nsr0XwBRdcECeffHK0bdvWUgBSLGnXPb169fpyr169mkkOAIB/pAAGANhJrrjiioOLiopaJmXeBN4JAztEYWFhDB8+PC688MIYPXp0VFZWWgpACi1YsCCWLVuWmHmLiopaXnnllYdIDgCAf6QABgDYSYYPH/6VJM2btHfhwY5WVFQUI0aMiEsuuSRGjx4dLVu2tBSAFMnlcvH4448naub99tvvK5IDAOAfKYABAHaC0aNHd6isrByalHnXrl0bL7/8suDgI/y1CL744ovjhBNOiBYtWlgKQEq89NJLsW7dusTMW1lZudfo0aM7SA4AgL+lAAYA2AlOP/30o5J07fXMM89EQ0OD4GALiouL47DDDouxY8fGqFGjoqyszFIAEq6hoSGeeeaZJI1c8D/XmQAA8P8vEq0AAGDHymazmX79+n05KfPW1tbGlClTBAefUnFxcYwcOTIuvfTSGDVqVJSWlloKQII9//zzUVtbm5h5+/Xr9+VsNpuRHAAAf6UABgDYwX7zm9/sWVJS0jkp886YMSOqq6sFB1uppKQkRo4cGZdcckkcffTRUVJSYikACVRdXR0zZ85M0p8/na+44orBkgMA4K8UwAAAO9gXvvCFLyVl1lwuF08//bTQ4DNo3rx5HHXUUXHJJZfEyJEjI5vNWgpAwjz11FORy+USM++RRx75ZakBAPBXCmAAgB1oyJAhpZ07dz4iKfO+/vrrsWLFCsHBdlBeXh6jRo2KSy+9VBEMkDArVqyI119/PTHzdunS5fD+/ft79AQAABGhAAYA2KHGjh17aGFhYWJeCOruX9j+KioqYtSoUXHxxRfH4YcfHkVFRZYC4LpouyosLGz+H//xHwdLDQCACAUwAMAOteeeex6ZlFnXrl0b8+bNExrsIK1atYrjjz8+LrroohgxYkQUFPh2DKApmzdvXqxZsyYx8+61115HSg0AgAgFMADADnPMMce0bt269b5Jmfe5556LxsZGwcEO1qZNmxg9enRcfPHFimCAJqyxsTGee+65JP35MvyYY45pLTkAAPykAQBgBznzzDMPz2Qyibjeqq+vj6lTpwoNdqK2bdvG6NGj47zzzovhw4crggGaoBdeeCHq6+sTMWsmkyk844wzDpUaAAB+wgAAsIP079//C0mZdc6cObFhwwahwS7QqVOnOPnkk+Pf/u3fYu+9945MJmMpAE3Ehg0bYvbs2YmZd8CAAR4DDQCAAhgAYEf43ve+16mysnKPpMybpMcbQlp17tw5xowZE7/61a8UwQBNyPPPP5+YWSsrKwd/73vf6yQ1AID8pgAGANgBTj755CMiIhHtzcqVK+P1118XGjQRXbt2jTFjxsQ555wTgwcPthCAXez111+PlStXJmXczMknn3y41AAA8psCGABgB+jXr19iHv88ZcqUyOVyQoMmpnfv3nHaaafFOeecE/3797cQgF0kl8vFlClTknQd6jHQAAB5TgEMALCdnX766d0qKip2S8Ks9fX1MW3aNKFBE9anT58466yz4pxzzonddtvNQgB2gWnTpkV9fX0iZq2oqNjt9NNP7yY1AID8pQAGANjORo8efURSZp03b15s3LhRaJAAffr0ibPPPjvOPPPM6Nmzp4UA7EQbN26MefPmuR4FACARFMAAANtZr169EvPetSQ9zhD4bwMGDIhf/vKXceaZZ0b37t0tBGAnmTp1apKuRw+TGABA/lIAAwBsR2eccUb38vLyvkmYdf369fHaa68JDRJqwIAB8S//8i9x2mmnRbdunvQJsKPNnz8/Pvzww0TMWl5e3u9HP/pRF6kBAOQnBTAAwHZ03HHHHZSUWWfMmBGNjY1CgwTLZDIxePDg+Nd//dcYM2ZMdOjQwVIAdpDGxsaYMWNGYub9xje+cYjUAADykwIYAGA76tOnz8FJmDOXyyXqMYbAlmUymdh7773jwgsvjDFjxkT79u0tBWAHeOGFF5J0XXqIxAAA8pMCGABgOznppJPat2zZcvckzLpkyZJYuXKl0CBl/loEX3DBBXHyySdH27ZtLQVgO1qxYkW8/fbbiZi1srJy0PHHH+8PAgCAPKQABgDYTr773e8eGBGZJMyapMcXAluvsLAwhg8fHhdeeGGMHj06KisrLQVgO5k+fXpSRi34/ve/f6DEAADyjwIYAGA72X333Q9Nwpz19fUxc+ZMgUEeKCoqihEjRsQll1wSo0ePjpYtW1oKwGc0c+bMqK+vT8SsAwcOPFRiAAD5RwEMALAdHHTQQRUtW7bcKwmzLly4MKqrq4UGeeSvRfDFF18cJ5xwQrRo0cJSALZRVVVVvP7664mYtVWrVkOHDx9eLjUAgPyiAAYA2A7OPvvsz2cymaIkzOrxz5C/iouL47DDDouxY8fGqFGjoqyszFIAtkFSnqaSyWSy55577uclBgCQXxTAAADbwe67735AEuasra2NOXPmCAzyXHFxcYwcOTIuvfRSRTDANpg9e3bU1dUlYtY99tjjAIkBAOQXBTAAwGfUqlWrwnbt2u2fhFnnzZsXtbW1QgMiIqKkpCRGjhwZY8eOjaOPPjpKSkosBeBT2LRpU8ybNy8Rs7Zv337/iooKPwMEAMgjLv4AAD6jCy+8cPeioqKKJMz64osvCgz4P5o3bx5HHXVUXHLJJTFy5MjIZrOWAvAJZs2alYg5i4qKWlx88cWDJAYAkD8UwAAAn9GBBx6YiMfqVVdXJ+ZOFWDXKC8vj1GjRsWll16qCAb4BPPmzYuamppEzHrQQQd5DDQAQB5RAAMAfEZdu3YdnoQ5582bF/X19QIDPlFFRUWMGjUqLr744jj88MOjqKjIUgD+QV1dXbz66quJmLVLly77SwwAIH8ogAEAPoNTTjmlY3l5+W5JmPXll18WGLBVWrVqFccff3xcdNFFMWLEiCgo8C0kwN966aWXEjFnRUXFbieddFJ7iQEA5AffvQMAfAYnnnji55MwZ21tbcyfP19gwDZp06ZNjB49OsaOHasIBvgb8+fPj9ra2iSMmvnud7/7eYkBAOQH37UDAHwGn/vc5/ZLwpwLFy6Muro6gQGfyV+L4PPOOy+GDx+uCAby3ubNm2PhwoWJmLVfv37DJQYAkB98tw4AsI1atWpV2Lp1672TMKvHPwPbU6dOneLkk0+Oc889NwYNGmQhQF6bPXt2IuZs06bN3hUVFX4WCACQB1z0AQBso/PPP39gYWFheVOfs76+PubMmSMwYLvr2bNn/OQnP4nzzjsv9t5778hkMpYC5J3Zs2dHfX19k5+zqKio4vzzzx8oMQCA9FMAAwBso/3333/fJMz5+uuvR01NjcCAHaZLly4xZsyYOOecc2Lw4MEWAuSV6urqeOONNxIx64EHHriPxAAA0k8BDACwjbp27ZqIxz/PnTtXWMBO0bt37zjttNPinHPOif79+1sIkDeScr3VvXv3vaUFAJB+CmAAgG0wZMiQ0srKyj2a+py5XM7jn4Gdrk+fPnHWWWfFOeecE7vttpuFAKk3e/bsyOVyTX7Oli1b7jlo0KBSiQEApJsCGABgG5x55pl7ZjKZbFOfc9myZbFu3TqBAbtEnz594uyzz44zzzwzevbsaSFAaq1bty6WL1/e5OfMZDLZs846a4jEAADSrcgKAAC23tChQ4clYc558+YJC9jlBgwYEAMGDIgFCxbE+PHjY+nSpZYCpM68efOiS5cuTX7OffbZZ5+ImC4xAID0cgcwAMA26Nix4z5JmHP+/PnCApqMAQMGxC9/+cs47bTTolu3bhYCpEpSrrs6deq0j7QAANJNAQwAsJWOOOKIlhUVFf2a+pxVVVWxaNEigQFNSiaTicGDB8e//uu/xpgxY6JDhw6WAqTCW2+9FVVVVU1+zoqKis8deuihLSQGAJBeCmAAgK108sknD46ITFOfc/78+dHY2CgwoEnKZDKx9957x4UXXhhjxoyJ9u3bWwqQaI2NjbFgwYJE/Cv4u9/97h4SAwBILwUwAMBW2n333fdMwpze/wskwV+L4AsuuCBOPvnkaNu2raUAiZWU66/BgwfvKS0AgPQqsgIAgK3Trl27wU19xlwul5Q7UAAiIqKwsDCGDx8e++yzT0ybNi0mTJgQ69evtxggURYsWBC5XC4ymab9sJgOHToMlhYAQHq5AxgAYCsMGjSotGXLlgOa+pzvvfdebNy4UWBA4hQVFcWIESPikksuidGjR0fLli0tBUiMDz/8MJYtW9bk52zZsuXA/v37l0gMACCdFMAAAFvhxz/+8aBMJtPkn6Li7l8g6f5aBI8dOzZOOOGEaNGihaUAibBw4cImP2Mmk8n+5Cc/GSAtAIB0UgADAGyFvffee88kzJmEHzwCfBrNmjWLww47LMaOHRujRo2KsrIySwGatKT8Il5SrmsBANh63gEMALAVunbtOqSpz1hfXx9vvvmmsIBUKS4ujpEjR8bBBx8czz77bDz++ONRXV1tMUCT8+abb0Z9fX0UFTXtH7t16dJlT2kBAKSTO4ABAD6lioqKgoqKikFNfc4lS5bE5s2bBQakUklJSYwcOTLGjh0bRx99dJSUeIUl0LTU1tbG0qVLm/ycLVu2HFRaWupngwAAKeQiDwDgUzr77LP7FhYWNvlnj7722mvCAlKvefPmcdRRR8Ull1wSI0eOjGbNmlkK4HpsKxQWFpafffbZvaQFAJA+CmAAgE9p//3375+EOV9//XVhAXmjvLw8Ro0aFf/+7/8eI0eOjGw2aymA67FP6fOf//xAaQEApI8CGADgU+rRo8fuTX3G2traePvtt4UF5J2KiooYNWpUXHzxxXH44Yc3+XdvAum2ePHiRLySo1evXoOkBQCQPgpgAIBPqXXr1k3+DoklS5ZEQ0ODsIC81apVqzj++OPj4osvjhEjRkRBgW97gZ2voaEhlixZ0uTnbNOmjQIYACCFfCcMAPApDBkypLR58+a9m/qcb775prAAIqJ169YxevToGDt2rCIYcF32MZo3b95n0KBBpdICAEgX3wEDAHwKp556av9MJtPkr53eeustYQH8jTZt2sTo0aPjvPPOi+HDhyuCAddlfyOTyRT84Ac/+Jy0AADSxXe+AACfwuDBg5v84/Hq6+tj0aJFwgL4CJ06dYqTTz45/u3f/i323nvvyGQylgLsUIsXL07Eqzn23HPPgdICAEgXBTAAwKfQpUuXAU19xnfeeSfq6uqEBbAFnTt3jjFjxiiCgR2utrY23n333SRc53oPMABAyiiAAQA+hZYtW/Zv6jN6/DPAp9elS5cYM2ZMnHvuuTF48GALAfL2+iwJ17kAAGwdBTAAwCcYPnx4eUlJSeemPqfHPwNsvV69esVpp50W55xzTvTvrwMB8u/6rLS0tPPw4cPLpQUAkB4KYACAT/Ctb31rt4ho8s8IXbx4sbAAtlGfPn3irLPOinPOOSd22203CwG2i4T8gl7m29/+dj9pAQCkhwIYAOAT7L777k2+CVi7dm1s2LBBWACfUZ8+feLss8+OM888M3r27GkhwGfy4Ycfxrp165r8nAMHDlQAAwCkSJEVAABsWadOnZr8D8TefvttQQFsRwMGDIgBAwbEggULYvz48bF06VJLAbb5Oq1Vq1audwEA2GkUwAAAn6CyslIBDJCnBgwYEP3794958+bFQw89FO+++66lAFtlyZIlsddeezX1613PvgcASBEFMADAFnTq1CnbvHnzXk19ziVLlggLYAfJZDIxePDg2GOPPeLll1+OBx98MFauXGkxQGqu05o3b967Xbt2RatXr66XGABA8nkHMADAFowZM6ZnJpPJNuUZGxsbPZoUYCfIZDKx9957x4UXXhhjxoyJ9u3bWwrwiZYuXRqNjY1NesaCgoLsqaee2kNaAADp4A5gAIAt2Hvvvfs29RlXrlwZtbW1wgLYSf5aBO+5554xa9asmDBhQqxevdpigI9UW1sb77//fnTu3LlJzzls2LC+EbFIYgAAyecOYACALejRo0eTL4DfeecdQQHsAoWFhTF8+PC48MILY/To0VFZWWkpQGKv15Jw3QsAwKejAAYA2ILWrVs3+ff/vvvuu4IC2IUKCwtjxIgRcckll8To0aOjZcuWlgIk7notCde9AAB8Oh4BDQCwBc2bN+/Z1GdUAAM0kW+wi4pixIgRsd9++8WUKVPiscceiw0bNlgMEO+9914SrnsVwAAAKeEOYACAj9G/f/+SkpKSjk19TgUwQNPSrFmzOOyww2Ls2LExatSoKCsrsxTIc0m4XistLe3Ut2/fYmkBACSfAhgA4GOccMIJ3Zr69dK6deuiqqpKWABNUHFxcYwcOTJ+/etfK4Ihz1VVVcX69eub+pgF3/zmN7tLCwAg+RTAAAAfY8iQIT2b+oxJeJwgQL77axE8duzYOProo6OkpMRSIA8l4botCde/AAB8MgUwAMDH6N69e8+mPqPHPwMkR/PmzeOoo46KSy65JEaOHBnNmjWzFMgjSbhuS8L1LwAAn0wBDADwMVq1atWjqc+4bNkyQQEkTHl5eYwaNSr+/d//PUaOHBnZbNZSIA8k4botCde/AAB8MgUwAMDHqKio6NXUZ1y+fLmgAJL750yMGjUqLr744jj88MOjqKjIUiDFknDd1rJly16SAgBIPgUwAMBHyGazmbKysq5NecbGxsZYtWqVsAASrlWrVnH88cfHxRdfHCNGjIiCAt+qQxqtWrUqGhsbm/SMJSUlXbPZbEZaAADJ5rtKAICPcNxxx7UrKCgobsozrl69Ourr64UFkBKtW7eO0aNHx9ixYxXBkEJ1dXXxwQcfNOkZCwoKio877rh20gIASDbfTQIAfITPf/7zXZr6jO+//76gAFKoTZs2MXr06Dj//PNj+PDhimBIkRUrVrgOBgBgh/NdJP+PvTuPr7I888d/nSwEkhD2HUQEUVRAoIiouCtq64Jabd1arVorbqO2tlXbaavTOu38Rqffdmpbu9rWpYogsqgFRXCttAIKArJDgAAJBLKQ5JzfH8WO4+DOcp6T9/v18jWvTv657ut6hNvnk/t+AICd2G+//bL+xVcSXiAC8PF17do1Lr300rj99ttj2LBhkUq5lRWSLgn7tyTsgwEAeH8FWgAA8H917txZAAxAVujevXtceeWVsXr16njiiSdi9uzZkclkNAYSKAn7tyTsgwEAeH8CYACAnWjXrp0roAHIKj169Igrr7wyli5dGpMmTYo5c+ZoCiRMEvZvSdgHAwDw/gTAAAA7UVxc3D3baxQAAzRPffr0ibFjx8aSJUti/PjxsWDBAk2BhEjC/i0J+2AAAN6fbwADAOxESUlJz2yur7q6Ourq6gwKoBnbb7/94l/+5V/ia1/7WhxwwAEaAglQV1cX1dXV9sEAAOxWAmAAgHc5/PDDSwsKCtpmc40VFRUGBUBERPTt2zduvPHGuOGGG2LffffVEMhy2b6PKygoaDt8+PASkwIASC4BMADAu5x44oldsr3GDRs2GBQA/8uAAQPiG9/4Rtxwww3Ru3dvDQH7uE+yH+5qUgAAyeUbwAAA79KvX7+sD4DXr19vUADs1IABA+LAAw+MuXPnxoQJE2LlypWaAlkkCTe5HHDAAV0i4i3TAgBIJgEwAMC7dO/evXO21+gEMADvJ5VKxaBBg2LgwIExe/bsGD9+fKxbt05jwD4uZ/bDAAC8NwEwAMC7tG/fvlO21ygABuDDSKVSMWzYsBg6dGjMnj07HnvsMbdIwF6WhBPASdgPAwDw3gTAAADv0rp166w/8ZCEF4cAZI+3g+BDDz00XnnllZg4caK/S8A+LtH7YQAA3psAGADgXUpKSrL6xENjY2Ns3rzZoAD4yPLz8+Pwww+P4cOHx/PPPx8TJ06MqqoqjYE9aPPmzdHY2BgFBdn7Wi7b98MAALw/ATAAwLu0bNmySzbXV1lZGZlMxqAA+Njy8/Nj1KhRMXLkyHjhhRcEwbAHZTKZqKqqio4dO9oPAwCwWwiAAQDepaioKKuvvKusrDQkAHaJgoKCGDVqVIwYMSJmzpwZkydPji1btmgM7IH9XDYHwNm+HwYA4P3laQEAwP8YPnx4SX5+fkk21ygABmBXa9GiRRx//PFxxx13xNlnnx0lJSWaAs14P5efn18yfPhwfxAAACSUABgA4B2OOOKIDtleo+//ArC7FBUVxejRo+P73/9+nH322VFcXKwpsBsk4cr1JOyLAQDYOQEwAMA79O3bt1221+gEMAC729tB8B133BGnn356tGrVSlOgme3n9ttvv7YmBQCQTAJgAIB36NSpkwAYAHYoKSmJz3zmM3HnnXfG6NGjo0WLFpoCzWQ/l4R9MQAAOycABgB4hw4dOrTN9hqTcGUgALmlpKQkzj777PjOd74To0aNivz8fE2BHN/PJWFfDADAzgmAAQDeoaysrG221ygABmBvad++fVx00UVx5513xgknnBCFhYWaAjm6nysrK3MCGAAgoQTAAADvUFJS0j6b68tkMlFdXW1QAOxV7dq1i/POOy+++93vxqhRoyIvz+sF+CiSsJ8rLS0VAAMAJJT/QgMAeIfi4uK22VxfXV1dNDY2GhQAWeHtE8F33HGHIBg+gsbGxqirq7MvBgBgt/BfZgAA79CqVausPung9C8A2ahDhw5x0UUXxbe//e04/PDDBcGQA/u6oqIiJ4ABABLKf5EBALxDQUGBABgAPqauXbvGpZdeGt/61rdi2LBhkUqlNAUSuq9r0aJFW1MCAEimAi0AAPgfhYWFZdlc39atWw0JgKzXrVu3uPLKK2P16tXxxBNPxOzZsyOTyWgMJGhfl+37YgAA3psAGADgnZujgoLW2VyfE8AAJEmPHj3iyiuvjKVLl8akSZNizpw5mgIJ2ddl+74YAID35gpoAIAdWrdunZefn98ym2sUAAOQRH369ImxY8fGLbfcEgMGDNAQSMC+Lj8/v1WrVq28OwQASCCbOACAHQYNGlQSEVn9scJt27YZFACJtd9++8UNN9wQX/va1+KAAw7QEJq1BOzr8gYPHlxsUgAAySMABgDY4YADDijJ9hpramoMCoDE69u3b9x4441xww03xL777qshNEu1tbVZX2P//v1LTQoAIHl8AxgAYIeePXtm/QuuJLwoBIAPa8CAATFgwICYP39+jBs3LpYvX64pNBtJ2Nf16NGjxKQAAJJHAAwAsEOnTp0EwACwFwwYMCAOPPDAmDt3bkyYMCFWrlypKeS8JOzrunbtKgAGAEggATAAwA5lZWVZ/4Krrq7OoADISalUKgYNGhQDBw6M2bNnx4QJE2Lt2rUaQ85KQgDcpk0bV0ADACSQABgAYIeysjIngAFgL0ulUjFs2LAYOnRozJ49O8aPHx/r1q3TGHKOABgAgN1FAAwAsENJSUlxttfoBDAAzcXbQfCQIUPi5ZdfjokTJ0ZFRYXGkDOSEAAnYX8MAMD/JQAGANihqKioKNtrrKmpMSgAmpW8vLw4/PDDY/jw4fH888/HE088EZWVlRpD4iUhAG7RokWRSQEAJI8AGABgh8LCwhbZXF86nY7t27cbFADNUn5+fowaNSpGjhwZL7zwQkycODGqqqo0hsTavn17ZDKZSKVSWVtjixYtWpgUAEDyCIABAHbI9gC4oaHBkABo9goKCmLUqFExYsSImDlzZkyePDm2bNmiMSROJpOJhoaGyOaMtbCw0AlgAIAk/neTFgAA7NgYFRRk9QuuxsZGQwKAHVq0aBHHH398HHnkkfHMM8/E1KlTY9u2bRpDomR7AJzt+2MAAN5jH6cFAAA7NkZZ/oLL9c8A8H8VFRXF6NGj49hjj41nnnkmpkyZEjU1NRpDImT7DS8FBQWugAYASCABMADA2xujLH/B5QpoAHhvbwfBRx11VEyfPj2efvrpqK2t1RiymgAYAIDdIU8LAAD+QQAMAMlXUlISn/nMZ+LOO++M0aNHZ/X1uiAABgBgdxAAAwDskO1XQAuAAeDDKykpibPPPjv+7d/+LUaPHh2FhYWagv3dR5Sfn9/SlAAAkkcADADw9sYoL88JYADIMa1bt46zzz47vve978UJJ5wgCMb+7iPIz8/3LwwAQAIJgAEAdkilUlm9N2psbDQkAPiY2rVrF+edd15897vfjRNOOCEKCgo0Bfu7D94f55sSAEDyCIABAHbI9gA4nU4bEgB8Qu3bt/9nEDxq1KjIy/NqBPu799kfp0wJACB5/FcOAMAOXnABQPPRoUOHuOiii+J73/ueIJi9JpPJZHuJ/sUAAEggmzgAgP+R1QFwAl4QAkDidOzYMS666KL41re+FYcffnj4fTDs796xOc7yG3IAANg5mzgAgITsjQTAALD7dOvWLS699NL41re+FcOGDRMEs0dk+xXQeXl5/kUAAEigAi0AAPiHbH/BJQAGgN2ve/fuceWVV8ayZcviiSeeiDlz5mgKzXl/5/AIAEACCYABAHbIZDJOAAMAERGx7777xtixY2PJkiUxYcKEmD9/vqZgfwwAQCIIgAEA/ocr7gCA/2W//faLG264Id56660YP358vPnmm5rCLpPtV0Cn3IUOAJBIAmAAgB2y/QVXtr8gBIBc1rdv37jxxhvjrbfeinHjxsWiRYs0hU/MFdAAANjEAQDsXln9Bs4BDADY+/r27Rs333xz3HDDDdG7d28NIdf3d75BAgCQQE4AAwDskO0nMATAAJA9BgwYEAMGDIj58+fHI488EitXrtQUcnF/5woaAIAEcgIYAGCHVCqVzvL6DAkAssyAAQPi1ltvjbFjx0bPnj01hJza32UScEc1AAD/lxPAAAD/QwAMAHysv6MHDRoUBx98cDz//PMxadKk2LRpk8aQ+P1dtv+CJAAAO+cEMADADul0dr/fEgADQHarr6+PioqK2LZtm2aQE/u7dDrtBDAAQAI5AQwA8D+cAAYAPrK6urp4+umnY9q0acJfcm1/5wQwAEACCYABAP6HEw4AwIfW0NAQ06ZNiyeffDK2bt2qIXxkCfgGsAAYACCBBMAAADtkMpmsDoDz8ny9AwCywdvB71NPPRXV1dUaQs7u7wTAAADJJAAGANgh219wCYABYO9qbGyMGTNmxJNPPhmVlZUawieWn5+f9VtkUwIASB4BMADADplMpiGb6yssLDQkANgL0ul0zJo1KyZPnhwbN27UEHaZgoLsfjXX1NTUaEoAAAncZ2oBAMA/NDY2bs/m+gTAALBnpdPpePnll2Py5Mmxdu1aDWGXa9GiRbb/O1BvSgAAySMABgDYoampSQAMAEQmk4nZs2fH448/HuXl5RpCs93fNTY2CoABABJIAAwAsENDQ0NWv+ASAAPA7vV28PvEE0/E6tWrNYTdLtuvgM72G3IAAHiPfaYWAAD8gyugAaD5mjNnTkyaNCmWLl2qGewx2X4FtAAYACCZBMAAADs0NTU5AQwAzcyCBQtiwoQJ8dZbb2kG9nfv0tDQIAAGAEggATAAwA7Z/oJLAAwAu87ChQtj/PjxsXjxYs1gr8n2K6Cz/RckAQB4j32mFgAA/EO2B8AFBQWRl5cX6XTasADgY1q+fHmMGzcu5s+frxnsVXl5eVkfAG/fvt0JYACABBIAAwDs0NDQkPUnHFq1ahXbtm0zLAD4iFauXBmPPPKI4Jes2tclYH8sAAYASCABMADADrW1tXXZXqMAGAA+mnXr1sX48eNj9uzZkclkNISs2tdlu7q6ulqTAgBIHgEwAMAOW7du3ZrtNSbhRSEAZIP169fHY489JvjFvu4TqK6u3mpSAADJIwAGANihqqpKAAwACbdhw4Z4/PHH45VXXommpiYNwb7uE6isrHT1DABAAgmAAQB22LRpU9a/4GrZsqVBAcBOVFVVxcSJE+OFF16IxsZGDSHrJSEA3rRpkxPAAAAJJAAGANhh3bp1WR8AOwEMAP/bli1bYsKECYJfEicJ+7ry8nIBMABAAgmAAQB2WLZsmSugASAhqqurY/LkyTFz5syor6/XEBInCfu6pUuXCoABABJIAAwAsMP8+fOz/gRwcXGxQQHQrNXU1MSUKVPimWeeEfySaEnY173++uu+AQwAkEACYACAHRYsWFCXyWQaUqlUYbbW2Lp1a4MCoFmqq6uLp59+OqZNmxbbtsmkSL5s39el0+mGpUuXbjcpAIDkEQADALxDU1PTtoKCgrbZWp8AGIDmZvv27TF9+vR48sknY+tWt9GSO7J9X9fU1ORfOACAhBIAAwC8Q0NDw9ZsDoBLS0sNCYDm8ndyTJs2LZ566qmorq7WEHJOtu/rGhsb/YsHAJBQAmAAgHeor6+vbNWqVc9src8JYAByXWNjY8yYMSOefPLJqKys1BByVrbv6+rr66tMCQAgmQTAAADv0NDQkNVvmgXAAOSqdDods2bNismTJ8fGjRs1hJyX7fu6bN8XAwDw3gTAAADvUFdXV5XN9ZWWlkYqlYpMJmNYAOSETCYTr732Wjz++OOxatUqDaFZSKVSUVJSktU11tbWVpkUAEAyCYABAN5h27Ztm7K5vvz8/GjVqlXU1NQYFgCJlslkYvbs2fH4449HeXm5htCstGrVKvLz87O6xq1btzoBDACQUAJgAIB3qK6u3pztNZaVlQmAAUist4PfiRMnxpo1azSEZqmsrCzra9y2bVuVSQEAJJMAGADgHaqqqjZle43t2rWLtWvXGhYAiTNnzpyYNGlSLF26VDNo1tq1a5f1NW7atMkJYACALNbQWBgFjQ0REZFKRSavMJre/pkAGADgHSoqKqqyvcYkvDAEgHdasGBBTJgwId566y3NgITs5zZs2CAABgDIYoUFDf9MejMRqab0/+S+AmAAgHdYtWpV1r/oatu2rUEBkAgLFy6M8ePHx+LFizUD3iEJAfDq1aurTAoAIJkEwAAA77BgwYKsD4CdAAYg2y1fvjzGjRsX8+fP1wzYiST8Ql8S9sUAAOycABgA4B2eeOKJjZlMpimVSuVna41OAAOQrVauXBmPPPKI4Bc+QLb/Ql8mk2l64oknNpoUAEAyCYABAN6huro6vX379g1FRUVdsrVGJ4AByDZr166NCRMmxOzZsyOTyWgIJHw/t3379g3V1dVpkwIASCYBMADAu9TV1a0XAAPAB1u/fn089thjgl/Isf1cXV3delMCAEguATAAwLvU1dVVtGnTJmvrKykpiRYtWsT27dsNC4C9oqKiIiZOnBivvPJKNDU1aQh8BEVFRVFcXJz1+2GTAgBILgEwAMC7bN26dV2XLll7ADhSqVR07Ngx1qxZY1gA7FFVVVUxceLEeP755wW/8DF17NgxUqlU1u+HTQoAILkEwAAA71JVVZX1Jx46deokAAZgj9m8eXM8/vjj8cILL0RjY6OGwCfcx9kPAwCwOwmAAQDeZf369Vn/zbMkvDgEIPm2bNkSU6ZMiZkzZ0Z9fb2GwC7QsWNH+2EAAHYrATAAwLusXr066088JOHFIQDJVVNTE1OmTIlnnnlG8Au7WBJ+kW/VqlUCYACABBMAAwC8y9///ves/+aZABiA3aG2tjYmT54czz77bNTV1WkINNN93KuvvioABgBIMAEwAMC7PPzww+t//OMfN6RSqcJsrbFz584GBcAus3379pg+fXpMnTo1tm3bpiGwG2X7CeB0Ot3w8MMPC4ABABJMAAwA8C7V1dXpurq68latWu2TrTV26NAh8vLyIp1OGxgAH1tDQ0NMmzYtnnrqqaiurtYQ2M3y8vKiQ4cOWV1jfX39mtraWptMAIAEEwADAOxEbW3tmmwOgAsKCqJdu3axceNGwwLgI2tsbIwZM2bEk08+GZWVlRoCe0j79u2joCC7X8fV1NSUmxQAQLIJgAEAdmLz5s2r2rdvn9U1duvWTQAMwEeSTqdj1qxZMXnyZH+HwF7av2W7LVu2rDQpAIBkEwADAOzEpk2bVvfp0yera+zWrVvMmzfPsAD4QG8Hv1OmTIkNGzZoCOzF/Vu227BhwxqTAgBINgEwAMBOrFixYvWwYcOyusYkvEAEYO/KZDLx0ksvxZQpU6K83K2usLd17do162tctWrVKpMCAEg2ATAAwE7Mnz9/9ZgxY7K6xiS8QARg78hkMjF79uyYOHFirFnjMB9kiyT8At+8efP8oQEAkHACYACAnRg3btyab37zm5mISGVrjU4AA7Azc+bMiSeeeCKWLVumGZBlEvALfJlx48atNikAgGQTAAMA7MTrr79e29DQsKmwsLBDttZYXFwcZWVlsWXLFgMDIBYsWBDjx4+PJUuWaAZkobKysiguLs7qGhsaGjYuWLCgzrQAAJJNAAwA8B62bt26vF27dh2yucauXbsKgAGauYULF8b48eNj8eLFmgFZLAm3t2zbtm25SQEAJJ8AGADgPVRVVS1t167d0GyusWfPnrFw4ULDAmiGli1bFo899ljMnz9fMyABevbsmfU1VlZWLjUpAIDkEwADALyHdevWLevTp09W15iEF4kA7ForVqyIRx99VPALCZOEfdvatWuXmRQAQPIJgAEA3sPChQuXHX744VldY69evQwKoJlYtWpVjB8/PubOnRuZTEZDIGGSsG9buHDhMpMCAEg+ATAAwHuYNm3a0ksuuSSra+zevXvk5+dHU1OTgQHkqHXr1sX48eNj9uzZgl9IqIKCgkR8A/jpp59eZloAADmw/9QCAICde+ihhzbcd999W/Pz80uzdjNXUBBdunSJNWvWGBhAjqmoqIiJEyfGyy+/HOl0WkMgwbp27RoFBdn9Gq6xsbH6kUce2WBaAADJJwAGAHgf27ZtW15WVnZwNtfYq1cvATBADqmqqoqJEyfG888/74YHyBFJ+P7vtm3blpsUAEBuEAADALyPLVu2LMv2ALhnz57x0ksvGRZAwm3evDkef/zxeOGFF6KxsVFDIIck4fu/W7ZsWWpSAAC5QQAMAPA+1q9fvyzbT2z06NHDoAASbMuWLTFlypSYOXNm1NfXawjkoCTs19avX7/MpAAAcoMAGADgfSxYsGDh0KFDs7rGfffdN1KpVGQyGQMDSJCampqYMmVKPPPMM4JfyGGpVCr23XffrK9z/vz5C00LACA3CIABAN7Ho48++uYFF1yQ1TWWlJRE586dY926dQYGkAC1tbUxefLkePbZZ6Ourk5DIMd17do1WrVqlfV1/vnPf15kWgAAuUEADADwPiZNmlRVX1+/oaioqGM217nvvvsKgAGy3Pbt22P69OkxderU2LZtm4ZAM9GnT5+sr7G+vr7iySefrDItAIDcIAAGAPgAW7duXZTtAXCfPn3ipZdeMiyALNTQ0BDTpk2Lp556KqqrqzUEmpkkXP+8detWp38BAHKIABgA4ANUVFQs7NChw8hsrjEJLxYBmpvGxsaYMWNGPPnkk1FZWakh0EwlYZ9WUVHh+78AADlEAAwA8AGWLl266MADD8zqGnv16hUFBQXR2NhoYAB7WTqdjlmzZsWkSZNi06ZNGgLNWGFhYfTs2TMR+13TAgDIHQJgAIAPMHPmzEWnnnpqdm/qCgqiZ8+esWzZMgMD2EveDn4nT54cGzdu1BAg9tlnn8jPz0/CfnexaQEA5I48LQAAeH+//OUvV6bT6bpsr7NPnz6GBbAXZDKZePHFF+O73/1u3H///cJf4J+ScP1zOp2u++Uvf7nStAAAcocTwAAAH6C6ujpdXV29uE2bNodkc539+vWL6dOnGxjAHpLJZGL27NkxceLEWLNmjYYAO92fJWCvu7i6ujptWgAAuUMADADwIWzYsGFetgfA/fv3NyiAPeTVV1+NSZMmxapVqzQD2KlUKpWI/dmGDRvmmhYAQG4RAAMAfAiLFy9+o2/fvlldY1lZWXTu3DnWr19vYAC7yYIFC2L8+PGxZMkSzQDeV5cuXaK0tDQJ+9z5pgUAkFsEwAAAH8JTTz31+ujRo7O+zv33318ADLAbLFy4MMaPHx+LFy/WDOBD78uSYMqUKa+bFgBAbsnTAgCAD/aLX/xiTWNjY1W215mUF40ASbFs2bK4++674z/+4z+Ev8BHkoTv/zY0NFTee++9q00LACC3OAEMAPAhNDQ0ZDZv3jy/Q4cOI7O5TgEwwK6xYsWKePTRR2P+fDejArm7L9uyZYs/5AAAcpAAGADgQ1q3bl3WB8AdO3aMNm3axObNmw0M4GNYtWpVjB8/PubOnRuZTEZDgI+lbdu20aFDh0Tsb00LACD3CIABAD6kefPmzTvooIOyvs4DDzwwXnrpJQMD+AjWrVsX48ePj9mzZwt+gV2yH0uCuXPnzjMtAIDcIwAGAPiQ/vznP88/77zzsr7OAw44QAAM8CFVVFTEuHHjBL/ALt+PJcHDDz/sBDAAQA4SAAMAfEgTJ06srK2tXdGqVat9srnOgw8+2LAAPkBVVVVMnDgxnn/++WhqatIQYJdKwq0xNTU1yydNmlRlWgAAuUcADADwEWzYsOHvvXr1yuoAuG3bttG1a9dYu3atgQG8y+bNm+Pxxx+PF154IRobGzUE2OW6desWbdu2TcS+1rQAAHKTABgA4CNYuHDha7169Toj2+scMGCAABjgHbZs2RJTpkyJ5557LrZv364hwG6TlO//Lly48O+mBQCQmwTAAAAfwcSJE/9+wgknZH2dBx54YEyfPt3AgGavpqYmpkyZEs8880zU19drCLDbDRgwIBF1jh8//u+mBQCQmwTAAAAfwb333rv6Bz/4wfqioqLO2VznAQccEHl5eZFOpw0NaJZqa2tj8uTJ8eyzz0ZdXZ2GAHtEXl5e9O/fP+vrrK+vX3ffffeVmxgAQG4SAAMAfESVlZVzu3btmtXHgFu1ahX77LNPLFu2zMCAZqWuri6efvrpmDZtWmzbtk1DgD1qn332iVatWmV9nZs2bZpjWgAAuUsADADwES1dunR2tgfAERGDBg0SAAPNRkNDQ0ybNi2eeuqpqK6u1hBgr+2/kuCtt976m2kBAOQuATAAwEc0ffr0v48cOTLr6xw4cGBMmDDBwICc1tDQEM8991w8+eSTUVlZqSHAXt9/JcG0adP+bloAALlLAAwA8BH9x3/8x9JbbrmlOj8/v3U219mrV68oKyuLLVu2GBqQc9LpdMyaNSsmTZoUmzZt0hBgrysrK4tevXplfZ2NjY1b7rnnnmUmBgCQuwTAAAAfUW1tbXrDhg1/7dKly3HZXGcqlYqBAwfGrFmzDA3IGW8Hv5MnT46NGzdqCJA1Bg4cGKlUKuvr3Lhx4yu1tbVpEwMAyF0CYACAj+Gtt956JdsD4IgQAAM5I51Ox8svvxxTpkyJ8vJyDQGyct+VBIsWLXrFtAAAcpsAGADgYxg/fvwrRxxxRNbXedBBB0VBQUE0NjYaGpBImUwmZs+eHRMnTow1a9ZoCJCVCgoK4qCDDkpErY888ogAGAAgx+VpAQDAR/fjH/94ZX19/fpsr7OoqCj69etnYEAivfrqq3HHHXfEz3/+c+EvkNX69esXRUVFWV9nXV1d+b333rvaxAAAcpsTwAAAH9OGDRte6dGjx6ezvc5BgwbFggULDAxIjCVLlsSECRNi/vz5mgEkwuDBgxNR5/r1653+BQBoBgTAAAAf07x5815OQgA8bNiwePjhhyOTyRgakNXefPPNmDBhQixevFgzgMRIpVIxdOjQRNQ6d+7cl0wMACD3CYABAD6m++677+XRo0dnIiKVzXW2bds2evfuHcuWLTM0ICstW7YsHnvsMSd+gUTq06dPtG3bNgmlpu+9996/mhgAQO4TAAMAfEwTJ06s3Lp165LS0tK+2V7rkCFDBMBA1lmxYkU8+uijgl8g0YYMGZKIOqurqxc+/fTTm00MACD3CYABAD6B8vLyl/fff/+sD4AHDx4c48aNMzAgK6xcuTImTJgQc+fOdT09kHhJ+f7vmjVrfP8XAKCZEAADAHwCM2fOfG7//ff/fLbX2a1bt+jWrVuUl5cbGrDXrFu3LsaPHx+zZ88W/AI5oWfPntGlS5dE1DpjxoznTAwAoHkQAAMAfAK33Xbba5dcckl1fn5+62yvdciQIQJgYK9Yv359PPbYY4JfIOck5frnxsbGzbfddts8EwMAaB4EwAAAn0BlZWXThg0b/tqlS5fjsr3WQw89NCZNmmRowJ78MzKeeOKJeP7556OpqUlDgJxz6KGHJqLOioqKV6qrq9MmBgDQPAiAAQA+oXnz5s1MQgDcu3dv10ADe0RVVVVMnDgxXnjhhWhsbNQQICd17949evbsmZT9quufAQCakTwtAAD4ZP77v/97VkQk4kTFpz71KQMDdpstW7bEQw89FLfffns899xzwl8gpw0fPjwRdWYymfTdd9/9gokBADQfTgADAHxCkyZNqtqyZcuCsrKyg7K91uHDh8fjjz9uaMAuVVNTE1OmTIlnnnkm6uvrNQTIealUKg477LBE1Lply5bXp0+fvsXUAACaDwEwAMAusHz58lkDBw7M+gC4S5cu0atXr1i5cqWhAZ9YbW1tTJ48OZ599tmoq6vTEKDZ6N27d3Ts2DEx+1QTAwBoXgTAAAC7wLPPPvvCwIEDr0hCrcOGDRMAA59IXV1dPP300zFt2rTYtm2bhgDNzrBhwxJT61/+8pcXTQwAoHnxDWAAgF3g1ltvnV9fX782CbUefvjhkUqlDA34yBoaGmLq1Klx6623xuOPPy78BZqlJF3/XFdXt/rWW29dYGoAAM2LE8AAALtAQ0NDZs2aNc/16dPns9lea7t27aJPnz6xZMkSgwM+7J9xMW3atHjqqaeiurpaQ4Bmbb/99ou2bdsmotbVq1fPNDEAgOZHAAwAsIs8++yz05IQAEdEHHHEEQJg4AOl0+mYNWtWTJo0KTZt2qQhABFx5JFHJqbW6dOnTzMxAIDmxxXQAAC7yC233PJaQ0NDZRJqHT58eLRo0cLQgJ1Kp9Px3HPPxW233Rb333+/8Bdgh6KiovjUpz6ViFobGho23HLLLXNNDQCg+XECGABgF6murk6Xl5c/t88++5yR7bW2bNkyDj300Hj55ZcNDvindDodL7/8ckyZMiXKy8s1BOBdhgwZEkVFRYmodc2aNc/V1tamTQ0AoPkRAAMA7EIvvvjiM0kIgCMiRo4cKQAGIiIik8nE7NmzY+LEibFmzRoNAXif/VNSzJo161kTAwBongTAAAC70O233/7KOeecszU/P78022sdMGBAtG/f3tWu0My9+uqrMWnSpFi1apVmALyPjh07xgEHHJCIWhsbG6u/8Y1v/NXUAACaJwEwAMAutHLlyob169fP6tat2+hsrzWVSsXhhx8ekyZNMjhohubMmROTJ0+OJUuWaAbAh3D44YdHKpVKRK3r16+fVVFR0WhqAADNU54WAADsWq+++mpirts77LDDDAyamTfffDP+/d//PX7yk58IfwE+pFQqFSNGjEhMva+88sozpgYA0Hw5AQwAsIvddNNNz5166qnV+fn5rbO91m7dukX//v1j4cKFBgc5btmyZfHYY4/F/PnzNQPgIzrggAOic+fOiai1sbFxy4033jjL1AAAmi8BMADALrZy5cqG8vLyGT179vx0Euo9+uijBcCQw5YvXx7jxo0T/AJ8wv1SUpSXlz9TXl7eYGoAAM2XABgAYDeYMWPGUxdccEEiAuAhQ4ZE69ato7q62uAgh6xcuTImTJgQc+fOjUwmoyEAH1ObNm3i0EMPTUy9zz777FOmBgDQvPkGMADAbvDVr371lYaGhk1JqLWgoCCOOOIIQ4McsW7duvj5z38ed955Z8yZM0f4C/AJjRw5MvLz8xNRa0NDw8abbrrpVVMDAGjenAAGANgNKisrm1atWjW9T58+5ySh3qOPPjqefPJJQREk2Pr16+Oxxx6L2bNn+3cZYBdJpVIxatSoxNS7cuXKadXV1WmTAwBo3pwABgDYTaZNm5aY6/c6duwYAwYMMDRIoA0bNsSvf/3r+Nd//dd49dVXhb8Au9CAAQOiY8eOian36aefftLUAAAQAAMA7CZf+9rX5tTX11ckpd6jjjrK0CBBqqqq4v77749vf/vb8eKLL0ZTU5OmAOxiRx55ZGJqra+vX/eNb3zjdVMDAMAV0AAAu0ltbW16xYoVT++///6fT0K9hx56aLRt2zaqqqoMD7LYli1bYsqUKfHcc8/F9u3bNQRgN2nbtm0MGTIkMfUuX778qdraWtc/AwDgBDAAwO70xz/+cUJSas3Pz4/jjjvO0CBL1dTUxKOPPhq33XZb/OUvfxH+Auxmxx57bOTn5yel3Myvf/3rCaYGAECEABgAYLe66667llZXV89PSr1HH310tGjRwuAgi7wd/H7jG9+IqVOnRn19vaYA7GYtWrSIo48+OjH1btmy5Y177rlnhckBABDhCmgAgN3u9ddfn3T44YcPSEKtxcXFcdhhh8XMmTMNDvayurq6ePrpp2PatGmxbds2DQHYgw477LAoKSlJTL3z5s17wtQAAHibE8AAALvZ9773vanpdLohKfWecMIJkUqlDA72koaGhpg6dWrceuut8fjjjwt/AfawVCoVJ5xwQmLqTafT27/73e8+ZXIAALzNCWAAgN1s+vTpWyoqKmZ26dIlER/Y7d69e/Tv3z/efPNNw4M9qKGhIaZNmxZPPfVUVFdXawjAXnLAAQdE9+7dE1NvRUXFczNmzPAXBwAA/+QEMADAHjBr1qxEXcuXpFMvkHTpdDqee+65uP322+PRRx8V/gLsZccff3yi6p0xY8YkUwMA4J2cAAYA2AO++tWvvnT66adXFRYWtk1CvQMHDoyOHTvGhg0bDA92k3Q6HbNmzYrJkyfHxo0bNQQgC3Ts2DEGDhyYmHobGhoqb7755pdMDgCAd3ICGABgDygvL29YsWLF1MRsEvPy4sQTTzQ42A3S6XS8+OKL8Z3vfCfuv/9+4S9AFjnppJMiLy85r8tWrFgxpaKiotHkAAB4JwEwAMAe8qtf/erRiMgkpd6jjjoqysrKDA52kUwmE6+++mp873vfi1//+texdu1aTQHIImVlZXHUUUcl6q+W//7v//6zyQEA8G4CYACAPeQ///M/l1dWVv4tKfUWFhbGMcccY3CwC7wd/P785z+PNWvWaAhAFjruuOOioCA5X0urqqqa/dOf/nS1yQEA8G4CYACAPeill14al6R6jzvuuCgqKjI4+JjmzJkTd911V/z85z+P1au9owfIVkVFRYn7xbcXXnhhnMkBALAzBVoAALDnjB079pkFCxZUFhYWtktCvSUlJXHEEUfE9OnTDQ8+gjfffDPGjx8fb731lmYAJMCRRx4ZJSUliam3oaFh0zXXXPOsyQEAsDMCYACAPai8vLxh6dKlE/v3739xUmo+8cQT49lnn410Om2A8AEWLVoUjz32WCxevFgzABIiLy8vTjzxxETVvGTJkifKy8sbTA8AgJ3ucbUAAGDP+u1vfzsxIjJJqbdjx44xdOhQg4P3sXz58rj77rvjRz/6kfAXIGGGDRsWHTp0SFLJmd/85jePmxwAAO9FAAwAsIf953/+5/JNmza9kqSaTz/99EilUoYH77Jy5cr4yU9+Et///vdj/vz5GgKQMHl5eXHGGWckquZNmza9fM8996wwPQAA3osroAEA9oKXXnpp/KmnnnpYUurt2rVrDBkyJGbPnm14EBHr1q2L8ePHx+zZsyOTyWgIQEINHTo0OnfunKiaX3jhhQkmBwDA+xEAAwDsBZdffvkzS5YsWVdUVNQlKTWfccYZ8be//U3YRbO2fv36eOyxxwS/ADkglUrF6aefnqia6+rq1lx22WXTTQ8AgPcjAAYA2AsqKyub5s+f/8ihhx56dVJq7tatm1PANFsbNmyIxx9/PF555ZVoamrSEIAc8KlPfSq6du2aqJrfeOONcdXV1WnTAwDg/fgGMADAXvL1r399XDqdrktSzb4FTHNTVVUV999/f3z729+OF198UfgLkCNSqVR8+tOfTlTN6XS69pvf/OZjpgcAwAdxAhgAYC+ZMWNG9Zo1a/7Ss2fPxLx97N69ewwcODDmzJljgOS0LVu2xIQJE+KFF16IxsZGDQHIMYceemh069YtUTWvXr36qRkzZlSbHgAAH8QJYACAvejXv/71HyMiUR8SPeuss5wCJmdt27YtHn300bjtttviueeeE/4C5KC8vLwYM2ZM0srO/OpXv/qT6QEA8KH2vFoAALD3fP/733+rqqoqUR/V7dGjR3zqU58yPHJKfX19TJ06Nb71rW/F1KlTo76+XlMActSIESOiS5cuiap506ZNf73rrruWmh4AAB+GABgAYC975plnHkpazWeccUbk5dlKkjvmzZsXjz76aGzdulUzAHJYQUFBnH766Ymre9q0aQ+aHgAAH5a3dgAAe9nYsWNn1tfXr01SzZ07d47DDjvM8ACARBk5cmR06NAhUTXX1dWtHjt27POmBwDAhyUABgDYyyorK5tee+21Pyat7jPPPDMKCgoMEABIhBYtWiTy9O/s2bP/UF1dnTZBAAA+LAEwAEAWuOqqqyY0NjZWJanm9u3bx9FHH214AEAiHHfccdGmTZtE1dzQ0LDxiiuumGh6AAB8FAJgAIAssGDBgrqFCxc+lrS6R48eHYWFhQYIAGS1li1bxsknn5y4uhcuXDhu6dKl200QAICPQgAMAJAlvv71r/8pnU7XJqnmtm3bximnnGJ4AEBWO+2006K0tDRRNTc1NdV+7Wtfe8j0AAD4qATAAABZ4umnn968fPnyxF3xN3r06GjXrp0BAgBZqUOHDnH88ccnru5ly5ZNmD59+hYTBADgoxIAAwBkkbvvvvtPmUymKUk1FxYWxumnn254AEBWOvPMMxP3yYpMJtN41113/dH0AAD4OATAAABZ5Be/+MWatWvXTkta3UcccUT06tXLAAGArNK7d+847LDDEld3eXn5X+6///51JggAwMchAAYAyDIPP/zwn5JWcyqVijPPPNPwAICsMmbMmEilUomr+8EHH/yT6QEA8HEJgAEAsszXv/71NzZs2DAraXUPHDgwDj74YAMEALLCoEGDYsCAAYmru6KiYuatt966wAQBAPi4BMAAAFlo3Lhxv01i3WPGjIm8PFtMAGDvysvLizFjxiSy9j//+c+/NUEAAD7RflgLAACyz/XXXz+nqqrqr0mru1evXnHUUUcZIACwVx1zzDHRvXv3xNW9adOmV2666aa5JggAwCchAAYAyFJ/+tOf7k1i3WPGjInS0lIDBAD2ijZt2sRZZ52VyNofeOCBe00QAIBPSgAMAJClbrrpprlJPAVcXFwcZ555pgECAHvFWWedFS1btkxc3Zs2bXrl5ptvnmeCAAB8UgJgAIAsNm7cuF8lse5Ro0ZF7969DRAA2KP69OkTI0eOTGTtjz322K9MEACAXUEADACQxcaOHTu7qqrqb0mrO5VKxfnnnx+pVMoQAYA9tv/4/Oc/n8j9R2Vl5d+uueaav5kiAAC7ggAYACDLTZ069bdJrLtv374xZMgQAwQA9ojDDjsssTeQTJ48+TcmCADAriIABgDIcpdeeumLVVVVryax9s9//vNRXFxsiADAblVaWhrnn39+Imuvqqr66+WXX/6SKQIAsKsIgAEAEuChhx76WRLrLisri9NPP90AAYDd6qyzzoqSkpIklp753e9+91MTBABgVxIAAwAkwA033DB3w4YNs5JY+3HHHRd9+vQxRABgt+jbt28cddRRiay9oqJi1te//vU3TBEAgF1JAAwAkBA///nPfxoR6aTVnUql4vOf/3zk5dl6AgC7Vn5+flx00UWRSqWSWH76F7/4xX+bIgAAu5q3cAAACXHHHXe8tW7duulJrL13795xzDHHGCIAsEudcMIJ0b1790TWXl5e/pc77rjjLVMEAGBXEwADACTI3XfffW8mk2lKYu1nnXVWtG3b1hABgF2iQ4cOcfrppyey9kwm03T33Xf/3BQBANgdBMAAAAlyzz33rCgvL386ibW3bNkyzj33XEMEAHaJc889N1q0aJHI2tesWTP1xz/+8UpTBABgdxAAAwAkzA9/+MOfZzKZhiTWPnz48Bg0aJAhAgCfyKGHHhpDhw5NZO3pdLrhBz/4wS9MEQCA3UUADACQMPfee+/qRYsWPZDU+i+++OIoKSkxSADgY2ndunVcfPHFia1/4cKFf7jvvvvKTRIAgN1FAAwAkECXXXbZrxsaGjYlsfaysjJXQQMAH9u5554bpaWliay9oaFh4+WXX/47UwQAYHcSAAMAJNDs2bNrXn311V8ntf4jjjgiDj74YIMEAD6SwYMHx+GHH57Y+l955ZX7Zs+eXWOSAADsTgJgAICEOueccx6tqalZmtT6L7roomjZsqVBAgAfSsuWLeNzn/tcYuuvqalZMmbMmMdMEgCA3U0ADACQUJWVlU3Tpk37RVLrb9++fZx++ukGCQB8KGeccUa0b98+sfU/+eST91ZXV6dNEgCA3U0ADACQYOedd960qqqqV5Ja/wknnOAqaADgAx188MFx/PHHJ7b+TZs2vXzBBRc8a5IAAOwJAmAAgIT74x//eG9EZJJYeyqVigsuuMBV0ADAe2rZsmVccMEFkUqlkrqEzP333/8zkwQAYE8RAAMAJNzNN988b9WqVU8ktf6OHTsm+nt+AMDudcEFF0THjh0TW/+KFSse//rXv/6GSQIAsKcIgAEAcsCNN974k6ampq1JrX/kyJExdOhQgwQA/pdPfepTMWLEiMTW39TUVH3zzTf/t0kCALAnCYABAHLAxIkTK//+97//KslruPDCC6OsrMwwAYCIiGjTpk18/vOfT/QaZs+efd/EiRMrTRMAgD1JAAwAkCPOPvvsh2pqapYntf7S0tK46KKLDBIAiFQqFV/84hejtLQ0sWuoqal566yzznrYNAEA2NMEwAAAOaKioqJx0qRJP07yGgYPHhwjR440TABo5o444og46KCDEr2GJ5544qeVlZVNpgkAwJ4mAAYAyCGXXHLJzIqKihlJXsMFF1wQ3bp1M0wAaKZ69uyZ+KufKyoqZnzhC1+YZZoAAOwNAmAAgBzzb//2b/ek0+ntSa2/RYsWceWVV0ZhYaFhAkAzU1hYGF/60pcSvQ9Ip9Pb/+3f/u0e0wQAYG8RAAMA5Jh777139aJFix5M8hq6d+8eZ555pmECQDNzxhlnRPfu3RO9hsWLFz947733rjZNAAD2FgEwAEAO+uxnP/vL2traRL94PPHEE2Pw4MGGCQDNxKBBg+Kkk05K9Bpqa2tXn3vuub80TQAA9iYBMABADlq8eHH9uHHj/j3Ja0ilUnHJJZdE27ZtDRQAclybNm3ikksuiVQqleh1jBs37t8XL15cb6IAAOxNAmAAgBx1+eWXv1RRUTEjyWsoLS2NL3zhC4l/GQwAvLe3f+mrdevWiV5HRUXFM5dffvlLJgoAwN4mAAYAyGE33HDDXU1NTVuTvIaDDjrI94ABIId95jOfiUMOOSTRa2hqaqq+4YYbfmiaAABkAwEwAEAOGzdu3MbZs2cn/jt0p5xyiu8BA0AOOuSQQ+LTn/504tfx17/+9efjxo3baKIAAGQDATAAQI77zGc+81B1dfXCJK8hlUrFF7/4xejQoYOBAkCO6NixY3zpS19K/KceNm/ePO+00057xEQBAMgWAmAAgBxXXV2dfuCBB34UEekkr6O4uDguvfTSyMuzhQWApMvPz4/LLrssiouLk76U9P333/+ftbW1aVMFACBbeHsGANAMXH/99XMWLVr0YNLXsf/++8e5555roACQcOedd1707ds38etYuHDhH7/61a++bqIAAGQTATAAQDNxySWX/Lyurq486es4/vjjfQ8YABJs2LBhccwxxyR+HXV1dWsuvPDC+0wUAIBsIwAGAGgmXnvttdoHHnjguxGRSfI6UqlUfOlLX4oePXoYKgAkTO/evePSSy9N/Hd/IyLzwAMPfO/111+vNVUAALKNABgAoBm5+uqr/7Z06dJHk76OoqKiGDt2bJSWlhoqACRE69at46qrrorCwsLEr2X58uXjrr766r+ZKgAA2UgADADQzJx33nn/r66ubnXS19GhQ4e4/PLLIy/PlhYAsl1eXl5cfvnl0b59+8Svpb6+ft0ll1zyE1MFACBr999aAADQvLz++uu1Dz744Pcj4VdBR0QMGDAgzjrrLEMFgCw3ZsyYOPDAA3NiLY899tgPXnnllW2mCgBAthIAAwA0Q1/5ylf+umbNmqm5sJaTTz45Dj30UEMFgCw1ZMiQOOmkk3JiLWvXrv3LpZde+oKpAgCQzQTAAADN1GWXXfYf9fX1FUlfRyqViksvvTS6d+9uqACQZXr06BFf/OIXI5VKJX4tDQ0Nm6655pofmioAANlOAAwA0EzNmDGj+oEHHvhO5MBV0C1btozrr78+2rZta7AAkCXatWsX1113XbRs2TIXlpN56KGH/nXSpElVJgsAQLYTAAMANGNf+cpX/rpkyZI/58Ja2rZtG1dffXW0aNHCYAFgL2vRokVcffXVOfPLWUuXLn30iiuueNlkAQBIAgEwAEAzd+655/6ktrZ2eS6spXfv3jlzzSQAJNXbn2fYZ599cmI9tbW1y88555wfmywAAEkhAAYAaOYWLFhQ97Of/ezbmUymMRfWM2zYsDjllFMMFgD2kk9/+tMxdOjQnFhLJpNp/NnPfvbtBQsW1JksAABJIQAGACBuvfXWBfPnz78/V9Zz5plnxuDBgw0WAPaw4cOHx2c+85mcWc/8+fN/d+utty4wWQAAkkQADABARESMGTPmvpqamrdyYS2pVCouu+yy6Nmzp8ECwB7Su3fvuPjii3PmUwxbt25ddPrpp//aZAEASBoBMAAAERGxcuXKhh/+8Ie3pdPpnLjisGXLlvEv//Iv0aVLF8MFgN2sS5cucf3110dRUVFOrKepqanmu9/97jfKy8sbTBcAgKQRAAMA8E933XXX0ueff/6eXFlPaWlpXHvttVFWVma4ALCblJWVxXXXXRclJSU5s6aZM2fe/f/+3/9bZboAACSRABgAgP/l5JNPHldeXv50rqynU6dOMXbs2Jw5kQQA2aSoqCiuueaa6NixY86sqby8/MlTTz11gukCAJBUAmAAAP6PSy655K66urq1ubKefffdN6644orIy7P9BYBdJS8vL6688sro3bt3zqyprq6u/JJLLvmh6QIAkOi9uhYAAPBus2bNqn7ooYfujIh0rqxp4MCBcd555xkuAOwi559/fhxyyCG5tKT0gw8+eOesWbOqTRcAgCTLb3tQ9NzpjndbRG15oQ4BADRTEydOXDNmzJi8Tp06Dc2VNfXp0yfy8/PjzTffNGAA+ATOOuusOOmkk3JqTa+//vp9Z5555kTTBQAgCYq7N0Ze6c5/5gQwAADv6dRTT/31li1bXs+lNZ122mlx9NFHGy4AfEzHHntsnHrqqTm1pi1btrxx2mmn/cZ0AQDIBQJgAADeU0VFReONN974jcbGxqpcWtcFF1wQRx55pAEDwEd05JFHxuc+97mcWlNjY2PVzTff/I2KiopGEwYAIBcIgAEAeF9//OMf1z/yyCPfiRz6HnAqlYqLLroohgwZYsAA8CENHTo0LrrookilUrm0rPQjjzzynfvvv3+dCQMAkCsEwAAAfKBLL730hQULFvwupzbCeXnxpS99Kfbff38DBoAPcNBBB8WXvvSlyMvLrVdJCxYs+N2ll176ggkDAJBLBMAAAHwoo0eP/mVVVdXcXFpTYWFhfOUrX4kePXoYMAC8h169esUVV1wRBQUFObWuqqqqOaNHj/6lCQMAkGsEwAAAfCgVFRWNV1111S0NDQ0bcmldJSUlcfPNN8c+++xjyADwLr17946bbropiouLc2pdDQ0NG6666qqv++4vAAC5SAAMAMCHNmHChE3333//tzKZTDqX1lVcXBzXXXdddO/e3ZABYIfu3bvHtddeG61atcqpdWUymfT999//rQkTJmwyZQAAcpEAGACAj2Ts2LGz58+f/9tcW1fr1q3juuuuiw4dOhgyAM1ehw4d4rrrrovWrVvn3Nrmz5//m7Fjx842ZQAAcpUAGACAj+y44477xaZNm17MtXW1a9cubrzxxmjXrp0hA9BstW3bNmf/Pty4ceOLxx13nO/+AgCQ0wTAAAB8ZNXV1emLL774W3V1datzbW0dO3aMG2+8Mdq0aWPQADQ7ZWVlceONN0bHjh1zbm21tbWrL7zwwturq6vTJg0AQC7Lb3tQ9NzZD9LbImrLC3UIAICdWrZsWf327dtfOvbYY0/Ny8trkUtrKykpiaFDh8Zrr70WNTU1hg1As9ChQ4f42te+Fp06dcq5tTU1NW39zne+M/bBBx9cb9IAAOSC4u6NkVe6858JgAEA+NhefPHFzYcccsiyAQMGnBgRqZzaRBcXx5AhQ4TAADQLHTt2jJtuuik6dOiQi8tLjx8//ravfvWrc0waAIBc8X4BsCugAQD4RC688MIZb7zxxm9ycW3t27ePm266KSdPQgHA2zp16pTL4W+88cYbv77wwgufM2kAAJoLATAAAJ/YqFGjfrFhw4aZubi2t0Pgzp07GzQAOadz585x0003Rfv27XNyfRs2bJg5atSo+0waAIDmRAAMAMAnVltbm77sssu+V1dXtzoX19euXbu44YYbomPHjoYNQM7o0KFDXH/99dGuXbtc3Z+s/sIXvvDd2tratGkDANCc+AYwAAC7xJIlS+oj4pVRo0admpeX1yLX1ldcXBxDhw6NuXPnxrZt2wwcgETr0qVL3HjjjTl77XNTU1P1nXfeec0f/vCHdaYNAEAuer9vAAuAAQDYZWbNmlXVo0ePuYceeujoVCqVn2vra9WqVYwYMSIWLVoUlZWVBg5AIu23335x0003RVlZWU6uL51ON/z617++4fbbb3/TtAEAyFUCYAAA9phJkyatPeqoozbsu+++R+fi+goLC2P48OGxbNmy2LBhg4EDkCgDBgyIa6+9Nlq1apWza5w2bdq/XXLJJc+ZNgAAuez9AmDfAAYAYJc77bTTHn/rrbcezNX1FRUVxTXXXBNDhgwxbAASY8iQIXHNNddEUVFRzq5xwYIFvzv99NOfMG0AAJozATAAALvFEUcccc+GDRtm5ur6CgoK4sorr4wjjjjCsAFIwt/LceWVV0ZBQUHOrrG8vPypESNG/LdpAwDQ3AmAAQDYLaqrq9MXXXTRd2pra1fk7GY6Ly8uvvjiOPLIIw0cgKw1atSouPjiiyMvL3dfA23dunXxZz/72e83NDRkTBwAgObON4ABANhtli9fvr2mpuaFY4899uT8/PyWubjGVCoVgwYNikwmE4sWLTJ0ALLK6aefHueee26kUqmcXWN9fX3FDTfccM3UqVOrTBwAgObi/b4BLAAGAGC3evnll7cUFBS8cMQRR4zOy8trkYtrTKVSccABB0SnTp1i7ty5kck4fATA3lVYWBhXXHFFHHPMMTm9zsbGxuo777zzKz/72c9WmzoAAM2JABgAgL1qxowZlb169Xp98ODBJ6dSqfxcXWfPnj2jb9++8fe//z0aGxsNHoC9olWrVnH11VfHwIEDc3qd6XS64be//e2Nt9122wJTBwCguREAAwCw1z3xxBPlw4cPX9OvX79jIyJn76Hs2LFjDBw4MObMmRN1dXUGD8Ae1a5du7jxxhujT58+ub7U9JQpU779xS9+8XlTBwCgOXq/ADhPewAA2FPGjBkz9Y033vh1rq+zZ8+eceONN0bHjh0NHYA9pkuXLnHTTTdF9+7dc36tc+fO/eU555zzF1MHAID/SwAMAMAe9alPfernS5cufTjX19mlS5e49dZb48ADDzR0AHa7gQMHxje/+c3o1KlTzq/1rbfeemjEiBG/MnUAANg5ATAAAHvcsccee8/GjRtfyPV1FhcXx7XXXhsjRowwdAB2m8MPPzyuuuqqaNmyZc6vdePGjc8fffTR95g6AAC8NwEwAAB7XEVFReNxxx339crKyr/l+loLCgrisssui/PPPz9SqZThA7DLpFKpOP/88+PSSy+NgoKCnF/vpk2bXj7ssMNuqaysbDJ9AAB4bwJgAAD2isWLF9efddZZN1dXV7/ZHNZ7/PHHx5e//OUoKioyfAA+sRYtWsSXv/zlOP7445vFequrq98cM2bMN8rLyxtMHwAA3l9+24Oi585+kN4WUVteqEMAAOw2a9asaVi1atWs0aNHH1dQUNA619fbrVu3OOCAA2LevHlRX1/vAQDgYykrK4trrrkmDjrooGax3rq6uvKxY8de89RTT202fQAA+Ifi7o2RV7rznwmAAQDYq+bNm1ezevXqZ04++eTjCwoKSnN9ve3atYuRI0fG8uXLY+PGjR4AAD6S/v37x0033RRdu3ZtFuutr69fd9111335T3/6U4XpAwDA/xAAAwCQ1ebMmbMtlUq9fOSRR56Ul5eX83ckt2jRIkaMGBG1tbWxdOlSDwAAH8rxxx8fX/rSl5rN5wQaGxu33HXXXdf99Kc/XWn6AADwvwmAAQDIejNnzqzs2bPn64MHDz4plUrl5/p6U6lUHHLIIdGqVatYsGBBZDIZDwEAO5WXlxef/exn4/TTT49UKtUs1pxOp7f//ve//+o3vvGN1z0BAADwfwmAAQBIhEmTJpXvs88+8wYOHHhCKpUqaA5r3m+//WLAgAExd+5c3wUG4P8oKyuL6667LoYNG9Zs1pxOp7f/8Y9/vOmqq676qycAAAB2TgAMAEBiTJw4cc3BBx+85MADDzwulUrlNYc1t2/fPoYOHRqLFi2KLVu2eAgAiIiIffbZJ66//vro2bNns1lzJpNpnDBhwm1f/OIXn/cEAADAexMAAwCQKI8++ujy/fff/42DDjrohOZwHXRERHFxcRx11FHR2NgYb731locAoJkbPXp0XHHFFVFSUtJs1pxOpxsefvjhr15yySWzPAEAAPD+BMAAACTO+PHjVw0cOHDpAQcccGxzOQmcSqViwIAB0aVLl3jjjTeiqanJgwDQzBQVFcWll14aJ554YrP53m/EP07+Pv7447dffPHFMz0FAADwwQTAAAAk0iOPPLLs0EMPXbb//vs3mxA4IqJHjx4xZMiQePPNN2Pr1q0eBIBmonv37vEv//IvccABBzSrdWcymaYnnnji9s997nPPeAoAAODDEQADAJBYDz/88NJjjjlmY+/evY+KiGZzFKq0tDSGDx8eq1evjvXr13sQAHLcwIED45prrol27do1t6VnZsyY8YOzzjprqqcAAAA+PAEwAACJdv/99795zDHHVO6zzz5HRDMKgVu0aBGHHXZYtGzZMhYuXBjpdNrDAJBjCgoK4pxzzonzzz8/WrRo0dyWn37uuefuOuWUUyZ4EgAA4KMRAAMAkHi///3v5w8bNmxF3759j2lO10GnUqno27dvDB06NBYvXhxbtmzxMADkiJ49e8YNN9wQgwcPblbf+434x7XPU6ZM+fbpp58+2ZMAAAAfnQAYAICc8OCDDy4ZNmzYin79+jWrEDgionXr1nHEEUdEfX19LF261MMAkGCpVCpOOOGEuOKKK6JNmzbNbv07wt9vnXPOOX/xNAAAwMcjAAYAIGc89NBDS4YNG7a8X79+xza3EDg/Pz8OPvjg6NWrV8yfPz8aGho8EAAJU1JSEpdffnmccMIJkZ+f3+zWn8lkGp944olvffazn53maQAAgI9PAAwAQE556KGHlo4cOXJdnz59RqWa252ZEdG1a9cYNmxYLFu2LCorKz0QAAnRt2/fuO6662K//fZrluvPZDLpp59++rvnnHPO054GAAD4ZATAAADknD/96U+LDj300KX7779/s7sOOiKiuLg4jjzyyCgpKYk333wz0um0hwIgSxUUFMRnP/vZuPDCC6OkpKRZ9iCdTjc88sgjt5x//vnTPREAAPDJCYABAMhJDz/88NId3wQelUqlmt09mqlUKvr06RMHH3xwLFy4MLZt2+ahAMgynTt3jrFjx8bQoUOjGV5aERH/CH+feOKJ2y+88MLnPBEAALBrCIABAMhZDz300JIePXq8NmjQoGPz8vJaNMcetG3bNkaNGhVNTU2xZMkSDwVAFkilUjF69Oi48soro0OHDs22D01NTdt++9vf/stll132oqcCAAB2HQEwAAA5bdKkSeXdu3efM3jw4GYbAufn58eAAQOiV69esWDBgti+fbsHA2Avad26dVx66aVx/PHHR35+frPtQ2NjY/WvfvWrf7nuuute81QAAMCuJQAGACDnTZ48eW1jY+OMI4444uiCgoKS5tqHrl27xqhRo2Lbtm2xcuVKDwbAHpRKpWLUqFExduzY6NWrV7PuRX19/fo77rjjK9/61rcWejIAAGDXEwADANAsPP/881UbNmx45rjjjjuqsLCwrLn2obCwMAYNGhT77bdfLF68OGpraz0cALtZ+/bt44orrogTTzwxCgub9/uU2tralTfffPPVP/nJT1Z7MgAAYPcQAAMA0Gz87W9/27p27doZJ5xwwsjCwsK2zbkXnTp1ipEjR0Z1dbXTwAC70ciRI+Pqq6+OHj16NPte1NTULL/hhhuu/e1vf7vOkwEAALuPABgAgGbltdde2zpv3rynTznllKFFRUWdmnMvCgsL49BDD4399tsvFi1a5DQwwC709qnfk08+udmf+o2I2Lx587yLL774unHjxm30dAAAwO71fgFwat9zYsTOftC4LmLjq610DwCAxOrVq1fhs88++69du3Y9QTciGhoaYurUqTF58uRobGzUEICPqaCgIE499dQYPXq04HeH8vLyp4499tjvrly5skE3AABg9+swrDYKuuz8ZwJgAAByWuvWrfNeeumlm/fdd9+zdeMfVq9eHffff38sWbJEMwA+ov322y8uuugi1z2/w8KFC38/fPjwnzY0NGR0AwAA9gwBMAAAzd7zzz9/8aGHHnp1RKR0IyKTycTMmTPjz3/+c9TV1WkIwAcoKSmJ8847L0aMGBGplL9Kdki//PLL9xx77LEPagUAAOxZ7xcA+wYwAADNwn333Tfn+OOP39yrV6/DQwgcqVQqevfuHcOHD49169ZFRUWFhwTgPRxyyCExduzY6N+/v/B3h0wm0/jMM8/828knnzxONwAAYM97v28AC4ABAGg2fve7370xePDgJf369Ts6lUrl60hEcXFxjBgxInr06BFLly6N2tpaTQHYoUOHDvGFL3whzjzzzCguLtaQHZqammoeeOCBWz73uc9N1w0AANg7BMAAALDDww8/vKygoOC54cOHH1FQUFCqI//QrVu3OO6446K0tDQWL14cTU1NmgI0Wy1btoxzzjknLr300ujevbuGvENtbe2K22677arbbrvtDd0AAIC9RwAMAADv8Oyzz25avHjx0yeddNKQoqKiTjryD3l5edGnT58YOXJkbN26NVatWqUpQLNz+OGHx1e+8pUYMGBA5OXlacg7VFVV/e3CCy+8/oEHHvDdAAAA2MsEwAAA8C7z58+vefbZZ58+44wz+hcXF/fSkf/RsmXLGDJkSOyzzz6xdOnSqKmp0RQg53Xs2DG++MUvximnnBItW7bUkHdZt27dMyeffPI3Xn755W26AQAAe9/7BcCpfc+JETv7QeO6iI2vttI9AAByWmFhYer555//0sEHH3y5bvxfTU1N8fzzz8f48eOjurpaQ4Cc07p16zjzzDPjyCOPdOJ35zJ///vff3rMMcfc39DQkNEOAADIDh2G1UZBl53/TAAMAAARMWnSpM8cc8wxt6RSKdfg7ERNTU1MmTIlpk2bFg0NDRoCJF5hYWGccsopcdJJJ0VRUZGG7EQ6na6fOnXqd88555y/6AYAAGSX9wuAXQENAAAR8Yc//GHhfvvt98aAAQOOysvLkwS8S2FhYQwYMCCGDh0amzZtinXr1mkKkFiDBw+Oq666KoYOHRoFBQUashONjY1Vv//972/5whe+MEs3AAAg+/gGMAAAfAgTJkxYXV1dPf3II4/8VGFhYTsd+b9KS0vjsMMOi/79+8eaNWti8+bNmgIkRu/evePyyy+PU045JUpLSzXkPWzdunXxLbfccs33vve9hboBAADZyTeAAQDgI+jTp0+LJ5988us9evQ4TTfe3/z58+ORRx6JlStXagaQtXr16hXnnHNODBgwQDM+wKpVq5444YQTfrBy5Ur3/QMAQBbzDWAAAPgYnnnmmfOHDx9+fSqVytON95bJZGL27Nkxbty4qKio0BAga3Tu3DnOOuusGDp0aKRSKQ15/z/Lm2bNmvXDk08++THdAACA7OcbwAAA8DH85je/eX3//fd//cADDzzSd4HfWyqViu7du8cxxxwT7dq1i2XLlkV9fb3GAHtN27Zt49xzz42LL744evToIfz9AI2NjdUPPvjgLZ/97Gf/ohsAAJAMvgEMAAAf0/jx41dFxPOHHXbYiMLCwjIdeW95eXnRu3fvOOqoo6KgoCBWrlwZjY2NGgPsMcXFxXHKKafEl770pejbt2/k5bnA4YPU1tau+MEPfnD9LbfcMk83AAAgQf/94xvAAADwyQwePLjVo48++s1u3bqdpBsfTn19fTzzzDMxderU2LZtm4YAu01ZWVmceuqpceSRR0ZRkQsbPqyVK1c+/ulPf/pHixcvdm0DAAAkjG8AAwDALvLkk0+edeSRR96USqVcl/MhCYKB3eXtE7/HHnus4PcjyGQyDbNmzfoP3/sFAIDk8g1gAADYRX7/+98v6NGjx2uHHHLIyPz8fL8x+SEUFBREv3794qijjoq8vLxYtWqVq6GBT6Rly5ZxwgknxBVXXBEHHXRQFBQUaMqH1NDQsOG3v/3t1z7/+c8/oxsAAJBcroAGAIBd7Lzzzut4991339m2bdvBuvHR1NTUxLPPPhvTpk2LLVu2aAjwoZWVlcXxxx8fxxxzTBQXF2vIR1RVVfW3a6+99vZHHnlkg24AAECyuQIaAAB2g06dOhVMmzZtbN++fT8XESkd+WgaGhri+eefjyeffDI2bJBFAO/7522cdNJJccQRR0RhodvKPobMokWL/nTsscf+pLKyskk7AAAg+QTAAACwG/3hD38Ydfrpp99WUFDQRjc+unQ6Ha+++mpMnTo1Vq5cqSHAP/Xq1StOOeWUGDp0aOTl5WnIx9DY2Fg1YcKEOy666KKZugEAALlDAAwAALvZaaed1vbee+/9docOHUbqxse3fPnymDZtWrz88suRTqc1BJqhvLy8OOyww+L444+P3r17a8gnsHHjxue//OUvf3fSpElVugEAALlFAAwAAHtAYWFh6qmnnjpv+PDh16RSKXeUfgIbNmyIGTNmxHPPPRc1NTUaAs1AcXFxjBo1Ko4++ujo2LGjhnwCmUym4ZVXXvl/J5100kMNDQ0ZHQEAgNzzfgFwftuDoufOfpDeFlFb7p0VAAB8WOl0On7zm9+8Xlpa+uLgwYM/VVhYWKYrH09xcXEMGDAgjj322GjTpk2sXbs2amtrNQZyUIcOHeKMM86ISy+9NAYOHBjFxcWa8gnU1tau+slPfnLjxRdf/IybFAAAIHcVd2+MvNKd/8wJYAAA2A1OPPHENvfdd9+tnTp1Olo3PrnGxsb429/+Fs8++2wsWrRIQyAH9OvXL44++ugYNmxYFBQUaMguUFFR8cwXv/jFf5s+ffoW3QAAgNzmCmgAANhLHn744RNGjx799YKCgta6sWusX78+Zs6cGc8//3xUV1drCCRIaWlpHHnkkXHUUUdF586dNWQXaWxs3DJ16tS7PvvZz/5FNwAAoHkQAAMAwF50ySWXdP3+97//rXbt2g3VjV2nsbExXnvttXjuuedi/vz5GgJZbMCAATFq1KgYPHiw0767WFVV1atf//rXv/e73/1urW4AAEDzIQAGAIC9rF27dvlTp0699OCDD740lUrl68iutXz58nj++efj5ZdfjpqaGg2BLFBSUhLDhw+PI444Inr37q0hu1gmk2mcN2/efSeeeOJvq6urfewXAACaGQEwAABkia9//ev73Xjjjf9aWlraXzd2vXQ6HW+++WY899xz8dprr0VjY6OmwB5UUFAQgwcPjlGjRsUBBxwQeXl5mrIbVFdXL/zP//zPf/3BD36wRDcAAKB5EgADAEAWOfjgg1v9+c9/vrZ3795jIiKlI7tHZWVlvPjii/HCCy/EunXrNAR2o65du8bIkSPj8MMPj7Zt22rI7pNZunTpn88888z/t3jx4nrtAACA5ksADAAAWejuu+8eePHFF9/WqlUrd6PuZuXl5fHqq6/GSy+9FOvXr9cQ2AU6d+4cI0aMiGHDhkW3bt00ZDerqalZ9tvf/vbOm266aa5uAAAAAmAAAMhS/fr1K3r44Ycv79+//4WpVMpdqXvA8uXL46WXXoqXX345qqurNQQ+grKyshg+fHiMGDHCd333kEwmk164cOEfzj777F8sXbp0u44AAAARAmAAAMh6P/3pT4d97nOf+2bLli176Mae0dDQEHPnzo2//vWvMXfu3Ni+Xa4CO9OyZcsYNGhQDBs2LA455JAoKCjQlD2ktrZ21R//+Mc7rr322r/rBgAA8E4CYAAASIA+ffq0ePTRR69wGnjPS6fTsXTp0nj11VedDIaIaNu2bQwbNiyGDRsWffr0ibw8fyTtSZlMpuG11177+ZlnnvmnioqKRh0BAADeTQAMAAAJ8uMf//jQCy644JutWrXaRzf2vLdPBs+ePTvmzp0bdXV1mkKzUFZWFoMHD45hw4ZF//79Iz8/X1P2gpqammX333//nTfccINv/QIAAO9JAAwAAAnTrl27/HHjxp37qU996qq8vDwb870kk8nEihUrYu7cuTFnzpxYsWJFZDIZjSEnpFKp6Nu3bwwbNiwGDRoUHTt21JS9qKmpqfbVV1/92ZgxY/5cWVnZpCMAAMD7EQADAEBCffnLX+5x++23f7V9+/aH68bet2XLlnjjjTdizpw5MW/evKivr9cUEqVly5Zx8MEHx6BBg+KQQw6J0tJSTckCGzdufPG73/3uv//iF79YoxsAAMCHIQAGAIAEKywsTE2cOPGMkSNHXlNQUNBaR7JDXV1dvPnmm/HGG2/EG2+8EevXr9cUslKXLl3ioIMOioMOOigOOOCAKCoq0pQs0djYuGXmzJk/PvPMMyc2NDS4XgAAAPjQBMAAAJADjjzyyNY/+9nPrujbt++5EZGnI9mluro6Fi5cGPPnz4958+ZFZWWlprBXtGvXLg455JAYMGBA9O/fP1q39nsjWSj91ltv/fmqq676xaxZs6q1AwAA+KgEwAAAkEN++ctfjhgzZsyNrVq16q0b2SmdTsfKlStj0aJFsXDhwli8eHFs27ZNY9gtSkpKol+/ftG/f//Yf//9o1evXpGX53dEslVNTc3yRx999EdXXnnlK7oBAAB8XAJgAADIMd26dSt8+OGHPzd48ODL8vPzbdyzXCaTiTVr1sTChQtj0aJFsWjRotiyZYvG8LGUlZVF//79/xn6du/ePVKplMZkuaampprXXnvtV2PGjHmgoqKiUUcAAIBPQgAMAAA56rjjjiv7r//6r8tdC508mzdvjuXLl8eKFSti+fLlsXjx4qipqdEY/pfi4uLo169f9O7dO/bZZ5/Yd999o6ysTGMSJJPJpJcsWfLn66677pfTp0/3mx8AAMAuIQAGAIAc99Of/nTIueeee3NpaWlf3UimxsbGWLlyZSxdujSWLVsWy5cvj3Xr1kUmk9GcZiKVSkWXLl1in332iT59+kSfPn2iV69eUVBQoDkJtXXr1sUPPvjgj6699tq/6wYAALArCYABAKAZaNeuXf64cePOGTp06BUFBQWtdST56uvrY+XKlf88KbxixYpYu3ZtpNNpzUm4vLy86Nq1a+yzzz7//KdXr17RsmVLzckBjY2NW/7617/+4pxzznm0srKySUcAAIBdTQAMAADNyIknntjmnnvuuXzfffcdk0qlHB3MMdu3b481a9bEmjVrYu3atbF27dooLy+PDRs2CIazUF5eXnTs2DG6desWXbt2jW7dukW3bt2iR48eUVhYqEE5JpPJNC5ZsuRR1z0DAAC7mwAYAACaoa9+9av7Xnfdddd16NDhCN3IfY2Njf8MhNetWxfr1q2LioqKWLduXWzbtk2DdrPS0tLo3LnzP//p0qVLdO3aNbp27eoK52Ziw4YNM//rv/7rxz/60Y+W6wYAALC7CYABAKAZ++UvfznirLPOuq64uNj3gZupmpqaWL9+/T//qaioiMrKyqisrIxNmzZFY2OjJn2AgoKCaN++fbRr1y7at28fHTt2jC5dukSnTp2ic+fOUVxcrEnN1NatW98aP378PVdcccXLugEAAOwpAmAAAGjm2rVrl//ggw+eOWLEiCsLCwvb6gjvtHnz5n+GwZs2bYrKysqorq6OLVu2xJYtW6K6ujqqq6sjk8nk3NpTqVS0bt06WrduHWVlZdGmTZsoLS39X2Fvu3btok2bNh4U/peGhobKl1566efnnHPO+OrqavevAwAAe5QAGAAAiIiIoUOHFt97770XHHjggRfk5+c7ssiHlk6n/xkEV1dXR01Nzfv+k8lkora2NtLpdNTX10dTU1PU1dXt0u8U5+XlRcuWLSM/Pz+KiooiLy8vWrVqFalUKoqLi3f6T0lJSbRq1eqfgW9paWnk5eUZMB9aU1NTzYIFC/745S9/+Y+zZ8+u0REAAGBvEAADAAD/y2mnndb2rrvuurRPnz5n5+XlFeoIe9LbgfDbtm/f/r7XUBcUFESLFi3++b/fDnxhT8pkMg1LliwZd8stt/xq0qRJVToCAADsTQJgAABgp0477bS2d95554X777//5wTBAP9XJpNpWLhw4QO33nrrHwS/AABAtni/ADi/7UHRc2c/SG+LqC33/gcAAHLZokWL6u69995X0un0swcddFCnkpKS3roC8A8VFRUz/7//7/+77aKLLpq6aNGiOh0BAACyRXH3xsgr3fnPBMAAAEDMnDmz8u67736qqalpWr9+/Ypbt27dN5VKpXQGaG4ymUx6zZo1U+65555/Peeccx6cOXNmpa4AAADZRgAMAAB8KDNnzqz88Y9//Gw6nZ4uCAaak7eD37vvvvtfzz///McEvwAAQDYTAAMAAB+JIBhoLgS/AABAEgmAAQCAj+XtILisrOyFvn37diwuLu4VEYJgIBdkKioqnrv33nu/PWbMmEcEvwAAQJK8XwCc2vecGLGzHzSui9j4aivdAwAA/unqq6/u8ZWvfOX8Pn36nJWXl9dCR4CkSafT9UuXLh3/X//1Xw/84he/WKMjAABAEnUYVhsFXXb+MwEwAADwkZ1xxhntb7/99rMPPPDA8/Pz81vrCJDtmpqaqhcsWPDgd77znUcmTpzotC8AAJBoAmAAAGC3GD58eMkPf/jDzwwePPjioqKijjoCZJv6+voNr7322u9vvPHGx2fPnl2jIwAAQC4QAAMAALvV0KFDi++5556zDjnkkPOKioq66giwt9XV1a19/fXXH7z++uvHC34BAIBcIwAGAAD2iFatWuXdc889w0455ZTzO3bseJSOAHtYZsOGDbOmTJny4PXXX/9qbW1tWksAAIBcJAAGAAD2uH/913/tf/7555/dq1ev0/Ly8lroCLC7pNPp+pUrV05+4IEHHvnOd76zSEcAAIBcJwAGAAD2mjPOOKP97bfffvYBBxzw2YKCgjY6AuwqjY2NVW+++eafv/e97z06YcKETToCAAA0FwJgAABgrxs+fHjJ97///dGDBg0aU1paur+OAB9XdXX1wtdee+3Rr371q1Nfe+21Wh0BAACaGwEwAACQVb761a/ue8EFF3y6b9++ZxUUFLTWEeCDNDY2bnnrrbfG/+EPf5j4ox/9aLmOAAAAzZkAGAAAyEpDhw4t/sEPfnDy4MGDz27dunV/HQHerbq6+s2XX375weuuu+7ppUuXbtcRAAAAATAAAJDlCgsLU3ffffeQ0aNHn9G1a9fj8vLyinQFmq90Ol1XXl4+bcqUKROuvfbav+sIAADA/yYABgAAEqNPnz4t/v3f/33UyJEjz2rfvv2nIiKlK9AsZDZt2vTXF1544bGvfe1rzzntCwAA8N4EwAAAQCJddNFFXa6++uqTDzzwwLNbtmzZTUcg99TV1a1ZsGDBuJ/+9KdP3n///et0BAAA4IMJgAEAgETr1q1b4d13333k4YcffmqHDh2OyMvLK9QVSK50Ot2wcePGWbNmzZp8/fXXz6qoqGjUFQAAgA9PAAwAAOSMo48+uvWtt956/CGHHHJKu3btBkdEnq5AIqQrKytfmzdv3uQ777xz+owZM6q1BAAA4OMRAAMAADnpuOOOK/vGN75x/CGHHHJa27ZtB4bvBUO2yVRVVc2dN2/epO9///vTpk+fvkVLAAAAPjkBMAAAkPNuu+22vmedddZJffr0Oa5Vq1a9dQT2ntra2uXLly+f/uijjz51xx13vKUjAAAAu5YAGAAAaFa+9KUvdbv44ouP7t+//wlOBsMekamqqpq7cOHCv/z+97+fcd9995VrCQAAwO4jAAYAAJqtSy65pOtll112jDAYdrl0VVXVvIULF/7lV7/61bO/+93v1moJAADAniEABgAAiIirr766x/nnnz9q//33P7JNmzZDUqlUga7Ah5fJZBoqKyv/vnjx4uf+9Kc/zbr33ntX6woAAMCeJwAGAAB4l379+hV97WtfGzRy5MhRPXv2PLaoqKizrsD/VV9fv37VqlXPvPDCC8/9+7//+5zFixfX6woAAMDeJQAGAAB4H61bt8678847Bx599NFHde/efURpaen+4apomq/M1q1bF69Zs+bF5557btY3v/nNOdXV1WltAQAAyB4CYAAAgI9g8ODBrcaOHXvI8OHDD+vevfvw1q1bHxACYXJXprq6+s01a9a88sorr7z8k5/8ZN5rr71Wqy0AAADZSwAMAADwCVx//fX7nHHGGYf169dvePv27Yfm5+e31hWSrLGxsXrjxo2vvvXWWy+PHz/+lR//+McrdQUAACA5BMAAAAC70Je//OUe55xzzvA+ffoM7tix45CioqKuukI2q6+vX7t27doXFy9ePGfixImv3Xvvvat1BQAAILkEwAAAALvRl7/85R6f+cxnBvfr129Qly5dDm/ZsqVAmL2qrq5u7bp16wS+AAAAOUoADAAAsIe0atUq75prrtnn2GOPPXi//fY7uH379oeUlpb2TaVS+brDbpKuqalZtnHjxnlvvfXW3GeffXbef/3Xfy2vra1Naw0AAEBuEgADAADsRQceeGDLq6+++oAhQ4Yc3LNnz4Pbtm17sGuj+biampqqq6qqXi8vL583Z86ceb/85S/nvfjii1t1BgAAoPkQAAMAAGSZoUOHFn/xi1/cf9CgQQf26NHjwHbt2h3YqlWr3qlUKk932CFdU1OzvLKycsHq1asXzJkzZ8Gf//znJTNmzKjWGgAAgOZNAAwAAJAAxx13XNkFF1xw4MEHH3xA165dDywtLd23pKRkn1QqVag7uS2TyTRs27ZtRXV19dJ169YtfOONNxZOmDBh4YQJEzbpDgAAAO8mAAYAAEiw8847r+OJJ57Yp3///vt16dKlT5s2bfZr3bp1v/z8/GLdSZampqaa6urqxZs3b16ybt26pQsXLlzy9NNPL33ooYc26A4AAAAflgAYAAAgx7Rr1y7/kksu6TFkyJCe++67b89OnTr1Kisr61VcXNyzZcuW3VKpVL4u7R2ZTKaprq6uvKamZtWWLVtWVlRUrFy6dOnK2bNnr7r//vvXVFZWNukSAAAAn4QAGAAAoBnp1KlTwec+97luQ4cO7bnPPvv0aNeuXafWrVt3Li4u7tqyZcvORUVFnfLy8lro1MeTTqe319fXr6+rq6uoqalZW11dvb6ysnL9ihUrVr/66qurHnzwwbUVFRWNOgUAAMDuIgAGAADgfznjjDPaH3bYYZ369OnTuUuXLp3Kysral5SUtC0uLu5YVFTUrqioqG2LFi065OfnlzaXnjQ1NW3dvn37xvr6+qr6+vrKmpqaDdu2bavasmXLpnXr1lUsXbp0/Ysvvrh+4sSJlZ4gAAAA9iYBMAAAAB9Lr169CkeNGtXuoIMOatexY8ey9u3bl7Zp06Z1SUlJWXFxcetWrVq1btGiRVlRUVHrwsLC1hGRX1hYWBoR+QUFBSV5eXkFeXl5u/0/LtPpdG06nW5sbGzcFhFNDQ0NW3f83+r6+vrq7du3b6mtra2uqamp3rZtW/XmzZurN23aVL1hw4YtCxYsqJo1a1bl0qVLt5s4AAAASSAABgAAYK/q169fUffu3Vvss88+xSUlJQVv//8LCwtT3bp1+8BTxuXl5VsbGhoyb//vbdu2Na5YsaJmzZo12xcvXlyvwwAAADQn7xcAF2gPAAAAu9vixYvrdwS11boBAAAAu0+eFgAAAAAAAADkBgEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4QAAMAAAAAAADkCAEwAAAAAAAAQI4o0AIAAAAAAACA5GhoLIyCxoaIiEilIpNXGE1v/0wADAAAAAAAAJAghQUN/0x6MxGppvT/5L6ugAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAAYAAAAAAADIEQJgAAAAAAAAgBwhAIb/v5272ZHiusM4/FZ1NUkz9sQwOF4EyZJtpJCwysa5jSy4n1xPEqRIuQFvvfGSgIwBOzGRQAQERnx0d1UW0cgWGvKxsMGvnmfVdc7/1OJsf+oCAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoIQADAAAAAAAAlBCAAQAAAAAAAEoIwAAAAAAAAAAlBGAAAAAAAACAEgIwAAAAAAAAQAkBGAAAAAAAAKCEAAwAAAAAAABQQgAGAAAAAAAAKCEAAwAAAAAAAJQQgAEAAAAAAABKCMAAAAAAAAAAJQRgAAAAAAAAgBICMAAAAAAAAEAJARgAAAAAAACghAAMAAAAAAAAUEIABgAAAAAAACghAAMAAAAAAACUEIABAAAAAAAASgjAAAAAAAAAACUEYAAAAAAAAIASAjAAAAAAAABACQEYAAAAAAAAoIQADAAAAAAAAFBCAAYAAAAAAAAoMY3JP//9K8My551lzpAk293a7QAAAAAAAAD8iIw3r+SL7TpPxuSt4/ibJJuz20QDBgAAAAAAAHhzrJPp6NvHYcyyjLl7dJTPbl/Jp6sPLufSsM+5ec7q5YOrF0OeP/SVaAAAAAAAAIA3weH7u6zfm79dWDIMSw6225w785vsx3XyzasOby5ssz69c4sAAAAAAAAAr9n69C6bC9sT93a7rKdnORin5Otxynzi1JQcfiwCAwAAAAAAALxO69O7HH68TaaT98cp85R8vbp3Nfszv8q0LHn7xMF1sjk/ZzUPmZ/MmWefhAYAAAAAAAD4oayPdjn7223Gn7x6ZrXPnetX8mBKkpv3cufDd/Pufn5FL56SzcVtNheT3dNt8tQlAwAAAAAAAHyv1sm0ySv/9XtsNWZ3I/lHkgzHi7/4XY7WYz5yiwAAAAAAAAA/Ivtcv/3nPEyS1fHa42t5+vNLyX7JoRsCAAAAAAAAePPt1/nbV3/KvePn1Xc371/NYxEYAAAAAAAA4M0yTHk2rvNo2WdzvHZqzN9v/SF3vju3evng/at5fPDLPDu1yuGyZHSVAAAAAAAAAK/XOGe4ueSvZ4e8M8xZbVe5ceuPufvy3Oqkw4+v5emDX+fuuTlLhhwsEYIBAAAAAAAAXpclGR8OuXP0TR4cPM/9z/+SRyfNDf/1TZezOp/87KdjzizJZkhO7edMy/w/nAUAAAAAAADg/zaMWcZkP8/ZLsmLacr2/MV8+cnvs/tP5/4FmLjAq1ifcioAAAAASUVORK5CYII=",
2h=t.objectName?oe(t.objectName):"Media ".concat(e._slideObjects.filter(function(e){return e._type===J.media}).length),f={_type:J.media};if(!c&&!a&&"online"!==u)throw new Error("addMedia() error: either `data` or `path` are required!");if(a&&!a.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if(d&&!d.toLowerCase().includes("base64,"))throw new Error("addMedia() error: `cover` value lacks a base64 header! Ex: 'data:image/png;base64,iV[...]')");if("online"===u&&!l)throw new Error("addMedia() error: online videos require `link` value");if(r=t.extn||(a?a.split(";")[0].split("/")[1]:c.split(".").pop())||"mp3",f.mtype=u,f.media=c||"preencoded.mov",f.options={},f.options.x=n,f.options.y=i,f.options.w=o,f.options.h=s,f.options.objectName=h,"online"===u){var p=fe(e);e._relsMedia.push({path:c||"preencoded"+r,data:"dummy",type:"online",extn:r,rId:p,Target:l}),f.mediaRid=p,e._relsMedia.push({path:"preencoded.png",data:d,type:"image/png",extn:"png",rId:fe(e),Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png")})}else{var m=e._relsMedia.filter(function(e){return e.path&&e.path===c&&e.type===u+"/"+r&&!e.isDuplicate})[0];p=fe(e),e._relsMedia.push({path:c||"preencoded"+r,type:u+"/"+r,extn:r,data:a||"",rId:p,isDuplicate:!!(null===m||void 0===m?void 0:m.Target),Target:(null===m||void 0===m?void 0:m.Target)?m.Target:"../media/media-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(r)}),f.mediaRid=p,e._relsMedia.push({path:c||"preencoded"+r,type:u+"/"+r,extn:r,data:a||"",rId:fe(e),isDuplicate:!!(null===m||void 0===m?void 0:m.Target),Target:(null===m||void 0===m?void 0:m.Target)?m.Target:"../media/media-".concat(e._slideNum,"-").concat(e._relsMedia.length+0,".").concat(r)}),e._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:d,rId:fe(e),Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png")})}e._slideObjects.push(f)}(this,e),this},e.prototype.addNotes=function(e){return function(e,t){e._slideObjects.push({_type:J.notes,text:[{text:t}]})}(this,e),this},e.prototype.addShape=function(e,t){return Ae(this,e,t),this},e.prototype.addTable=function(e,t){return this._newAutoPagedSlides=function(e,t,r,n,i,o,s){var a=[e],l=r&&"object"===typeof r?r:{};if(l.objectName=l.objectName?oe(l.objectName):"Table ".concat(e._slideObjects.filter(function(e){return e._type===J.table}).length),null===t||0===t.length||!Array.isArray(t))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!t[0]||!Array.isArray(t[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");var c=[];t.forEach(function(e){var t=[];Array.isArray(e)?e.forEach(function(e){var r={_type:J.tablecell,text:"",options:"object"===typeof e&&e.options?e.options:{}};"string"===typeof e||"number"===typeof e?r.text=e.toString():e.text&&("string"===typeof e.text||"number"===typeof e.text?r.text=e.text.toString():e.text&&(r.text=e.text),e.options&&"object"===typeof e.options&&(r.options=e.options)),r.options.border=r.options.border||l.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];var n=r.options.border;Array.isArray(n)||"object"!==typeof n||(r.options.border=[n,n,n,n]),r.options.border[0]||(r.options.border[0]={type:"none"}),r.options.border[1]||(r.options.border[1]={type:"none"}),r.options.border[2]||(r.options.border[2]={type:"none"}),r.options.border[3]||(r.options.border[3]={type:"none"}),[0,1,2,3].forEach(function(e){r.options.border[e]={type:r.options.border[e].type||m,color:r.options.border[e].color||g,pt:"number"===typeof r.options.border[e].pt?r.options.border[e].pt:b}}),t.push(r)}):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(e)),c.push(t)}),l.x=ne(l.x||(0===l.x?0:d/2),"X",i),l.y=ne(l.y||(0===l.y?0:d/2),"Y",i),l.h&&(l.h=ne(l.h,"Y",i)),l.fontSize=l.fontSize||S,l.margin=0===l.margin||l.margin?l.margin:y,"number"===typeof l.margin&&(l.margin=[Number(l.margin),Number(l.margin),Number(l.margin),Number(l.margin)]),l.color||(l.color=l.color||_),"string"===typeof l.border?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),l.border=null):Array.isArray(l.border)&&[0,1,2,3].forEach(function(e){l.border[e]=l.border[e]?{type:l.border[e].type||m,color:l.border[e].color||g,pt:l.border[e].pt||b}:{type:"none"}}),l.autoPage="boolean"===typeof l.autoPage&&l.autoPage,l.autoPageRepeatHeader="boolean"===typeof l.autoPageRepeatHeader&&l.autoPageRepeatHeader,l.autoPageHeaderRows="undefined"===typeof l.autoPageHeaderRows||isNaN(Number(l.autoPageHeaderRows))?1:Number(l.autoPageHeaderRows),l.autoPageLineWeight="undefined"===typeof l.autoPageLineWeight||isNaN(Number(l.autoPageLineWeight))?0:Number(l.autoPageLineWeight),l.autoPageLineWeight&&(l.autoPageLineWeight>1?l.autoPageLineWeight=1:l.autoPageLineWeight<-1&&(l.autoPageLineWeight=-1));var u=N;if(n&&"undefined"!==typeof n._margin&&(Array.isArray(n._margin)?u=n._margin:isNaN(Number(n._margin))||(u=[Number(n._margin),Number(n._margin),Number(n._margin),Number(n._margin)])),l.colW){var h=c[0].reduce(function(e,t){var r;return(null===(r=null===t||void 0===t?void 0:t.options)||void 0===r?void 0:r.colspan)&&"number"===typeof t.options.colspan?e+=t.options.colspan:e+=1,e},0);"string"===typeof l.colW||"number"===typeof l.colW||l.colW&&Array.isArray(l.colW)&&1===l.colW.length&&h>1?(l.w=Math.floor(Number(l.colW)*h),l.colW=null):l.colW&&Array.isArray(l.colW)&&l.colW.length!==h&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),l.colW=null)}else l.w?l.w=ne(l.w,"X",i):l.w=Math.floor(i._sizeW/d-u[1]-u[3]);l.x&&l.x<20&&(l.x=se(l.x)),l.y&&l.y<20&&(l.y=se(l.y)),l.w&&l.w<20&&(l.w=se(l.w)),l.h&&l.h<20&&(l.h=se(l.h)),c.forEac
2h(function(e){e.forEach(function(t,r){"number"===typeof t||"string"===typeof t?e[r]={_type:J.tablecell,text:String(e[r]),options:l}:"object"===typeof t&&("number"===typeof t.text?e[r].text=e[r].text.toString():"undefined"!==typeof t.text&&null!==t.text||(e[r].text=""),e[r].options=t.options||{},e[r]._type=J.tablecell)})});var f=[];return l&&!l.autoPage?(xe(e,c),e._slideObjects.push({_type:J.table,arrTabRows:c,options:Object.assign({},l)})):(l.autoPageRepeatHeader&&(l._arrObjTabHeadRows=c.filter(function(e,t){return t<l.autoPageHeaderRows})),me(c,l,i,n).forEach(function(t,r){s(e._slideNum+r)||a.push(o({masterName:(null===n||void 0===n?void 0:n._name)||null})),r>0&&(l.y=se(l.autoPageSlideStartY||l.newSlideStartY||u[0]));var i=s(e._slideNum+r);l.autoPage=!1,xe(i,t.rows),i.addTable(t.rows,Object.assign({},l)),r>0&&f.push(i)})),f}(this,e,t,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this},e.prototype.addText=function(e,t){return ve(this,"string"===typeof e||"number"===typeof e?[{text:e,options:t}]:e,t,!1),this},e}();function Ce(e,t){return s(this,void 0,void 0,function(){var r;return a(this,function(n){switch(n.label){case 0:return r=e.data,[4,new Promise(function(n,s){var a,l,c=new(i()),u=2*(r.length-1)+1,d=(null===(l=null===(a=r[0])||void 0===a?void 0:a.labels)||void 0===l?void 0:l.length)>1;c.folder("_rels"),c.folder("docProps"),c.folder("xl/_rels"),c.folder("xl/tables"),c.folder("xl/theme"),c.folder("xl/worksheets"),c.folder("xl/worksheets/_rels"),c.file("[Content_Types].xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"> <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/> <Default Extension="xml" ContentType="application/xml"/> <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/> <Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/> <Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/> <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/> <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/> <Override PartName="/xl/tables/table1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/> <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/> <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>\n'),c.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>\n'),c.file("docProps/app.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company>
2</Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>\n'),c.file("docProps/core.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><cp:coreProperties 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"><dc:creator>PptxGenJS</dc:creator><cp:lastModifiedBy>PptxGenJS</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'+(new Date).toISOString()+'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">'+(new Date).toISOString()+"</dcterms:modified></cp:coreProperties>"),c.file("xl/_rels/workbook.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>'),c.file("xl/styles.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><numFmts count="1"><numFmt numFmtId="0" formatCode="General"/></numFmts><fonts count="4"><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="9"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="10"/><color indexed="8"/><name val="Geneva"/></font><font><sz val="18"/><color indexed="8"/><name val="Arial"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><dxfs count="0"/><tableStyles count="0"/><colors><indexedColors><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ffff0000"/><rgbColor rgb="ff00ff00"/><rgbColor rgb="ff0000ff"/><rgbColor rgb="ffffff00"/><rgbColor rgb="ffff00ff"/><rgbColor rgb="ff00ffff"/><rgbColor rgb="ff000000"/><rgbColor rgb="ffffffff"/><rgbColor rgb="ff878787"/><rgbColor rgb="fff9f9f9"/></indexedColors></colors></styleSheet>\n'),c.file("xl/theme/theme1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><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="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="DengXian Light"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><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"/>
2<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" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="Yu Gothic"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="DengXian"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><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:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>
2'),c.file("xl/workbook.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><workbook 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"><fileVersion appName="xl" lastEdited="7" lowestEdited="6" rupBuild="10507"/><workbookPr/><bookViews><workbookView xWindow="0" yWindow="500" windowWidth="20960" windowHeight="15960"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="0" concurrentCalc="0"/></workbook>\n'),c.file("xl/worksheets/_rels/sheet1.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table1.xml"/></Relationships>\n');var h='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(e.opts._type===Y.BUBBLE||e.opts._type===Y.BUBBLE3D)h+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(u,'" uniqueCount="').concat(u,'">');else if(e.opts._type===Y.SCATTER)h+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(r.length,'" uniqueCount="').concat(r.length,'">');else if(d){var f=r.length;r[0].labels.forEach(function(e){return f+=e.filter(function(e){return e&&""!==e}).length}),h+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(f,'" uniqueCount="').concat(f,'">'),h+="<si><t/></si>"}else{var p=r.length+r[0].labels.length*r[0].labels[0].length+r[0].labels.length,m=r.length+r[0].labels.length*r[0].labels[0].length+1;h+='<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(p,'" uniqueCount="').concat(m,'">'),h+='<si><t xml:space="preserve"></t></si>'}e.opts._type===Y.BUBBLE||e.opts._type===Y.BUBBLE3D?r.forEach(function(e,t){0===t?h+="<si><t>X-Axis</t></si>":(h+="<si><t>".concat(oe(e.name||"Y-Axis".concat(t)),"</t></si>"),h+="<si><t>".concat(oe("Size".concat(t)),"</t></si>"))}):r.forEach(function(e){h+="<si><t>".concat(oe((e.name||" ").replace("X-Axis","X-Values")),"</t></si>")}),e.opts._type!==Y.BUBBLE&&e.opts._type!==Y.BUBBLE3D&&e.opts._type!==Y.SCATTER&&r[0].labels.slice().reverse().forEach(function(e){e.filter(function(e){return e&&""!==e}).forEach(function(e){h+="<si><t>".concat(oe(e),"</t></si>")})}),h+="</sst>\n",c.file("xl/sharedStrings.xml",h);var g='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(e.opts._type===Y.BUBBLE||e.opts._type===Y.BUBBLE3D){g+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(Me(u)).concat(u,'" totalsRowShown="0">'),g+='<tableColumns count="'.concat(u,'">');var b=1;r.forEach(function(e,t){0===t?g+='<tableColumn id="'.concat(t+1,'" name="X-Values"/>'):(g+='<tableColumn id="'.concat(t+b,'" name="').concat(e.name,'"/>'),b++,g+='<tableColumn id="'.concat(t+b,'" name="Size').concat(t,'"/>'))})}else e.opts._type===Y.SCATTER?(g+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(Me(r.length)).concat(r[0].values.length+1,'" totalsRowShown="0">'),g+='<tableColumns count="'.concat(r.length,'">'),r.forEach(function(e,t){g+='<tableColumn id="'.concat(t+1,'" name="').concat(0===t?"X-Values":"Y-Value ").concat(t,'"/>')})):(g+='<table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" id="1" name="Table1" displayName="Table1" ref="A1:'.concat(Me(r.length+r[0].labels.length)).concat(r[0].labels[0].length+1,'\'" totalsRowShown="0">'),g+='<tableColumns count="'.concat(r.length+r[0].labels.length,'">'),r[0].labels.forEach(function(e,t){g+='<tableColumn id="'.concat(t+1,'" name="Column').concat(t+1,'"/>')}),r.forEach(function(e,t){g+='<tableColumn id="'.concat(t+r[0].labels.length+1,'" name="').concat(oe(e.name),'"/>')}));g+="</tableColumns>",g+='<tableStyleInfo showFirstColumn="0" showLastColumn="0" showRowStripes="1" showColumnStripes="0"/>',g+="</table>",c.file("xl/tables/table1.xml",g);var y='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>';if(y+='<worksheet 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">',e.opts._type===Y.BUBBLE||e.opts._type===Y.BUBBLE3D?y+='<dimension ref="A1:'.concat(Me(u)).concat(r[0].values.length+1,'"/>'):e.opts._type===Y.SCATTER?y+='<dimension ref="A1:'.concat(Me(r.length)).concat(r[0].values.length+1,'"/>'):y+='<dimension ref="A1:'.concat(Me(r.length+1)).concat(r[0].values.length+1,'"/>'),y+='<sheetViews><sheetView tabSelected="1" workbookViewId="0"><selection activeCell="B1" sqref="B1"/></sheetView></sheetViews>',y+='<sheetFormatPr baseColWidth="10" defaultRowHeight="16"/>',e.opts._type===Y.BUBBLE||e.opts._type===Y.BUBBLE3D){y+="<sheetData>",y+='<row r="1" spans="1:'.concat(u,'">'),y+='<c r="A1" t="s"><v>0</v></c>';for(var A=1;A<u;A++)y+='<c r="'.concat(Me(A+1),'1" t="s"><v>').concat(A,"</v></c>");y+="</row>
2",r[0].values.forEach(function(e,t){y+='<row r="'.concat(t+2,'" spans="1:').concat(u,'">'),y+='<c r="A'.concat(t+2,'"><v>').concat(e,"</v></c>");for(var n=2,i=1;i<r.length;i++)y+='<c r="'.concat(Me(n)).concat(t+2,'"><v>').concat(r[i].values[t]||"","</v></c>"),n++,y+='<c r="'.concat(Me(n)).concat(t+2,'"><v>').concat(r[i].sizes[t]||"","</v></c>"),n++;y+="</row>"})}else if(e.opts._type===Y.SCATTER){y+="<sheetData>",y+='<row r="1" spans="1:'.concat(r.length,'">');for(A=0;A<r.length;A++)y+='<c r="'.concat(Me(A+1),'1" t="s"><v>').concat(A,"</v></c>");y+="</row>",r[0].values.forEach(function(e,t){y+='<row r="'.concat(t+2,'" spans="1:').concat(r.length,'">'),y+='<c r="A'.concat(t+2,'"><v>').concat(e,"</v></c>");for(var n=1;n<r.length;n++)y+='<c r="'.concat(Me(n+1)).concat(t+2,'"><v>').concat(r[n].values[t]||0===r[n].values[t]?r[n].values[t]:"","</v></c>");y+="</row>"})}else if(y+="<sheetData>",d){y+='<row r="1" spans="1:'.concat(r.length+r[0].labels.length,'">');for(A=0;A<r[0].labels.length;A++)y+='<c r="'.concat(Me(A+1),'1" t="s"><v>0</v></c>');for(A=r[0].labels.length-1;A<r.length+r[0].labels.length-1;A++)y+='<c r="'.concat(Me(A+r[0].labels.length),'1" t="s"><v>').concat(A,"</v></c>");y+="</row>";var v=r.length,x=r[0].labels[0].length,k=r[0].labels.length,C=function(e){y+='<row r="'.concat(e+2,'" spans="1:').concat(v+k,'">');var t=v,n=r[0].labels.slice().reverse();n.forEach(function(r,i){if(r[e]){var o=0===i?1:n[i-1].filter(function(e){return e&&""!==e}).length;t+=o,y+='<c r="'.concat(Me(e+1+i)).concat(e+2,'" t="s"><v>').concat(t,"</v></c>")}});for(var i=0;i<v;i++)y+='<c r="'.concat(Me(k+i+1)).concat(e+2,'"><v>').concat(r[i].values[e]||0,"</v></c>");y+="</row>"};for(A=0;A<x;A++)C(A)}else{y+='<row r="1" spans="1:'.concat(r.length+r[0].labels.length,'">'),r[0].labels.forEach(function(e,t){y+='<c r="'.concat(Me(t+1),'1" t="s"><v>0</v></c>')});for(var A=0;A<r.length;A++)y+='<c r="'.concat(Me(A+1+r[0].labels.length),'1" t="s"><v>').concat(A+1,"</v></c>");y+="</row>",r[0].labels[0].forEach(function(e,t){y+='<row r="'.concat(t+2,'" spans="1:').concat(r.length+r[0].labels.length,'">');for(var n=r[0].labels.length-1;n>=0;n--)y+='<c r="'.concat(Me(r[0].labels.length-n)).concat(t+2,'" t="s">'),y+="<v>".concat(r.length+t+1,"</v>"),y+="</c>";for(var i=0;i<r.length;i++)y+='<c r="'.concat(Me(r[0].labels.length+i+1)).concat(t+2,'"><v>').concat(r[i].values[t]||"","</v></c>");y+="</row>"})}y+="</sheetData>",y+='<pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>',y+="</worksheet>\n",c.file("xl/worksheets/sheet1.xml",y),c.generateAsync({type:"base64"}).then(function(r){t.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(e.globalId,".xlsx"),r,{base64:!0}),t.file("ppt/charts/_rels/"+e.fileName+".rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">'+'<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/package" Target="../embeddings/Microsoft_Excel_Worksheet'.concat(e.globalId,'.xlsx"/>')+"</Relationships>"),t.file("ppt/charts/".concat(e.fileName),function(e){var t,r,n,i,s='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>',a=!1;s+='<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">',s+='<c:date1904 val="0"/>',s+='<c:roundedCorners val="'.concat(e.opts.chartArea.roundedCorners?"1":"0",'"/>'),s+="<c:chart>",e.opts.showTitle?(s+=Te({title:e.opts.title||"Chart Title",color:e.opts.titleColor,fontFace:e.opts.titleFontFace,fontSize:e.opts.titleFontSize||18,titleAlign:e.opts.titleAlign,titleBold:e.opts.titleBold,titlePos:e.opts.titlePos,titleRotate:e.opts.titleRotate},e.opts.x,e.opts.y),s+='<c:autoTitleDeleted val="0"/>'):s+='<c:autoTitleDeleted val="1"/>';e.opts._type===Y.BAR3D&&(s+='<c:view3D><c:rotX val="'.concat(e.opts.v3DRotX,'"/><c:rotY val="').concat(e.opts.v3DRotY,'"/><c:rAngAx val="').concat(e.opts.v3DRAngAx?1:0,'"/><c:perspective val="').concat(e.opts.v3DPerspective,'"/>
2</c:view3D>'));s+="<c:plotArea>",e.opts.layout?(s+="<c:layout>",s+=" <c:manualLayout>",s+=' <c:layoutTarget val="inner" />',s+=' <c:xMode val="edge" />',s+=' <c:yMode val="edge" />',s+=' <c:x val="'+(e.opts.layout.x||0)+'" />',s+=' <c:y val="'+(e.opts.layout.y||0)+'" />',s+=' <c:w val="'+(e.opts.layout.w||1)+'" />',s+=' <c:h val="'+(e.opts.layout.h||1)+'" />',s+=" </c:manualLayout>",s+="</c:layout>"):s+="<c:layout/>";Array.isArray(e.opts._type)?e.opts._type.forEach(function(t){var r=o(o({},e.opts),t.options),n=r.secondaryValAxis?I:D,i=r.secondaryCatAxis?B:L;a=a||r.secondaryValAxis,s+=_e(t.type,t.data,r,n,i)}):s+=_e(e.opts._type,e.data,e.opts,D,L);if(e.opts._type!==Y.PIE&&e.opts._type!==Y.DOUGHNUT){if(e.opts.valAxes&&e.opts.valAxes.length>1&&!a)throw new Error("Secondary axis must be used by one of the multiple charts");if(e.opts.catAxes){if(!e.opts.valAxes||e.opts.valAxes.length!==e.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");s+=Se(o(o({},e.opts),e.opts.catAxes[0]),L,D)}else s+=Se(e.opts,L,D);e.opts.valAxes?(s+=Ee(o(o({},e.opts),e.opts.valAxes[0]),D),e.opts.valAxes[1]&&(s+=Ee(o(o({},e.opts),e.opts.valAxes[1]),I))):(s+=Ee(e.opts,D),e.opts._type===Y.BAR3D&&(s+=function(e,t,r){var n="";n+="<c:serAx>",n+=' <c:axId val="'+t+'"/>',n+=' <c:scaling><c:orientation val="'+(e.serAxisOrientation||(e.barDir,"minMax"))+'"/></c:scaling>',n+=' <c:delete val="'+(e.serAxisHidden?"1":"0")+'"/>',n+=' <c:axPos val="'+("col"===e.barDir?"b":"l")+'"/>',n+="none"!==e.serGridLine.style?Ne(e.serGridLine):"",e.showSerAxisTitle&&(n+=Te({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||"Axis Title"}));n+=' <c:numFmt formatCode="'.concat(oe(e.serLabelFormatCode)||"General",'" sourceLinked="0"/>'),n+=' <c:majorTickMark val="out"/>',n+=' <c:minorTickMark val="none"/>',n+=' <c:tickLblPos val="'.concat(e.serAxisLabelPos||"col"===e.barDir?"low":"nextTo",'"/>'),n+=" <c:spPr>",n+=' <a:ln w="12700" cap="flat">',n+=e.serAxisLineShow?"<a:solidFill>".concat(de(e.serAxisLineColor||w),"</a:solidFill>"):"<a:noFill/>",n+=' <a:prstDash val="solid"/>',n+=" <a:round/>",n+=" </a:ln>",n+=" </c:spPr>",n+=" <c:txPr>",n+=" <a:bodyPr/>",n+=" <a:lstStyle/>",n+=" <a:p>",n+=" <a:pPr>",n+=' <a:defRPr sz="'.concat(Math.round(100*(e.serAxisLabelFontSize||S)),'" b="').concat(e.serAxisLabelFontBold?"1":"0",'" i="').concat(e.serAxisLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),n+=" <a:solidFill>".concat(de(e.serAxisLabelColor||_),"</a:solidFill>"),n+=' <a:latin typeface="'.concat(e.serAxisLabelFontFace||"Arial",'"/>'),n+=" </a:defRPr>",n+=" </a:pPr>",n+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',n+=" </a:p>",n+=" </c:txPr>",n+=' <c:crossAx val="'+r+'"/>',n+=' <c:crosses val="autoZero"/>',e.serAxisLabelFrequency&&(n+=' <c:tickLblSkip val="'+e.serAxisLabelFrequency+'"/>');e.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(t){!e[t]||"string"===typeof e[t]&&["days","months","years"].includes(t.toLowerCase())||(console.warn('"'.concat(t,"\" must be one of: 'days','months','years' !")),e[t]=null)}),e.serAxisBaseTimeUnit&&(n+=' <c:baseTimeUnit val="'.concat(e.serAxisBaseTimeUnit.toLowerCase(),'"/>')),e.serAxisMajorTimeUnit&&(n+=' <c:majorTimeUnit val="'.concat(e.serAxisMajorTimeUnit.toLowerCase(),'"/>')),e.serAxisMinorTimeUnit&&(n+=' <c:minorTimeUnit val="'.concat(e.serAxisMinorTimeUnit.toLowerCase(),'"/>')),e.serAxisMajorUnit&&(n+=' <c:majorUnit val="'.concat(e.serAxisMajorUnit,'"/>')),e.serAxisMinorUnit&&(n+=' <c:minorUnit val="'.concat(e.serAxisMinorUnit,'"/>')));return n+="</c:serAx>",n}(e.opts,j,D))),(null===(t=e.opts)||void 0===t?void 0:t.catAxes)&&(null===(r=e.opts)||void 0===r?void 0:r.catAxes[1])&&(s+=Se(o(o({},e.opts),e.opts.catAxes[1]),B,I))}e.opts.showDataTable&&(s+="<c:dTable>",s+=' <c:showHorzBorder val="'.concat(e.opts.showDataTableHorzBorder?1:0,'"/>'),s+=' <c:showVertBorder val="'.concat(e.opts.showDataTableVertBorder?
21:0,'"/>'),s+=' <c:showOutline val="'.concat(e.opts.showDataTableOutline?1:0,'"/>'),s+=' <c:showKeys val="'.concat(e.opts.showDataTableKeys?1:0,'"/>'),s+=" <c:spPr>",s+=" <a:noFill/>",s+=' <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln>',s+=" <a:effectLst/>",s+=" </c:spPr>",s+=" <c:txPr>",s+=' <a:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="ellipsis" vert="horz" wrap="square" anchor="ctr" anchorCtr="1"/>',s+=" <a:lstStyle/>",s+=" <a:p>",s+=' <a:pPr rtl="0">',s+=' <a:defRPr sz="'.concat(Math.round(100*(e.opts.dataTableFontSize||S)),'" b="0" i="0" u="none" strike="noStrike" kern="1200" baseline="0">'),s+=' <a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill>',s+=' <a:latin typeface="+mn-lt"/>',s+=' <a:ea typeface="+mn-ea"/>',s+=' <a:cs typeface="+mn-cs"/>',s+=" </a:defRPr>",s+=" </a:pPr>",s+=' <a:endParaRPr lang="en-US"/>',s+=" </a:p>",s+=" </c:txPr>",s+="</c:dTable>");s+=" <c:spPr>",s+=(null===(n=e.opts.plotArea.fill)||void 0===n?void 0:n.color)?he(e.opts.plotArea.fill):"<a:noFill/>",s+=e.opts.plotArea.border?'<a:ln w="'.concat(ae(e.opts.plotArea.border.pt),'" cap="flat">').concat(he(e.opts.plotArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",s+=" <a:effectLst/>",s+=" </c:spPr>",s+="</c:plotArea>",e.opts.showLegend&&(s+="<c:legend>",s+='<c:legendPos val="'+e.opts.legendPos+'"/>',s+='<c:overlay val="0"/>',(e.opts.legendFontFace||e.opts.legendFontSize||e.opts.legendColor)&&(s+="<c:txPr>",s+=" <a:bodyPr/>",s+=" <a:lstStyle/>",s+=" <a:p>",s+=" <a:pPr>",s+=e.opts.legendFontSize?'<a:defRPr sz="'.concat(Math.round(100*Number(e.opts.legendFontSize)),'">'):"<a:defRPr>",e.opts.legendColor&&(s+=he(e.opts.legendColor)),e.opts.legendFontFace&&(s+='<a:latin typeface="'+e.opts.legendFontFace+'"/>'),e.opts.legendFontFace&&(s+='<a:cs typeface="'+e.opts.legendFontFace+'"/>'),s+=" </a:defRPr>",s+=" </a:pPr>",s+=' <a:endParaRPr lang="en-US"/>',s+=" </a:p>",s+="</c:txPr>"),s+="</c:legend>");s+=' <c:plotVisOnly val="1"/>',s+=' <c:dispBlanksAs val="'+e.opts.displayBlanksAs+'"/>',e.opts._type===Y.SCATTER&&(s+='<c:showDLblsOverMax val="1"/>');return s+="</c:chart>",s+="<c:spPr>",s+=(null===(i=e.opts.chartArea.fill)||void 0===i?void 0:i.color)?he(e.opts.chartArea.fill):"<a:noFill/>",s+=e.opts.chartArea.border?'<a:ln w="'.concat(ae(e.opts.chartArea.border.pt),'" cap="flat">').concat(he(e.opts.chartArea.border.color),"</a:ln>"):"<a:ln><a:noFill/></a:ln>",s+=" <a:effectLst/>",s+="</c:spPr>",s+='<c:externalData r:id="rId1"><c:autoUpdate val="0"/></c:externalData>',s+="</c:chartSpace>"}(e)),n("")}).catch(function(e){s(e)})})];case 1:return[2,n.sent()]}})})}function _e(e,t,r,n,i,o){var s=-1,a=1,l=null,c="";switch(e){case Y.AREA:case Y.BAR:case Y.BAR3D:case Y.LINE:case Y.RADAR:c+="<c:".concat(e,"Chart>"),e===Y.AREA&&"stacked"===r.barGrouping&&(c+='<c:grouping val="'+r.barGrouping+'"/>'),e!==Y.BAR&&e!==Y.BAR3D||(c+='<c:barDir val="'+r.barDir+'"/>',c+='<c:grouping val="'+(r.barGrouping||"clustered")+'"/>'),e===Y.RADAR&&(c+='<c:radarStyle val="'+r.radarStyle+'"/>'),c+='<c:varyColors val="0"/>',t.forEach(function(n){var i;s++,c+="<c:ser>",c+=' <c:idx val="'.concat(n._dataIndex,'"/><c:order val="').concat(n._dataIndex,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+Me(n._dataIndex+n.labels.length+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+oe(n.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>";var o=r.chartColors?r.chartColors[s%r.chartColors.length]:null;c+=" <c:spPr>","transparent"===o?c+="<a:noFill/>":r.chartColorsOpacity?c+="<a:solidFill>"+de(o,'<a:alpha val="'.concat(Math.round(1e3*r.chartColorsOpacity),'"/>'))+"</a:solidFill>":c+="<a:solidFill>"+de(o)+"</a:solidFill>",e===Y.LINE||e===Y.RADAR?0===r.lineSize?c+="<a:ln><a:noFill/></a:ln>":(c+='<a:ln w="'.concat(ae(r.lineSize),'" cap="').concat(Pe(r.lineCap),'"><a:solidFill>').concat(de(o),"</a:solidFill>"),c+='<a:prstDash val="'+(r.lineDash||"solid")+'"/><a:round/></a:ln>'):r.dataBorder&&(c+='<a:ln w="'.concat(ae(r.dataBorder.pt),'" cap="').concat(Pe(r.lineCap),'"><a:solidFill>').concat(de(r.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),c+=Oe(r.shadow,O),c+=" </c:spPr>",c+=' <c:invertIfNegative val="0"/>',e!==Y.RADAR&&(c+="<c:dLbls>",c+='<c:numFmt formatCode="'.concat(oe(r.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),r.dataLabelBkgrdColors&&(c+="<c:spPr><a:solidFill>".concat(de(o),"</a:solidFill></c:spPr>")),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+='<a:defRPr b="'.concat(r.dataLabelFontBold?1:0,'" i="').concat(r.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*(r.dataLabelFontSize||S)),'" u="none">'),c+="<a:solidFill>".concat(de(r.dataLabelColor||_),"</a:solidFill>"),c+='<a:latin typeface="'.concat(r.dataLabelFontFace||"Arial",'"/>'),c+="</a:defRPr></a:pPr></a:p></c:txPr>",r.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(r.dataLabelPosition,'"/>')),c+='<c:showLegendKey val="0"/>',c+='<c:showVal val="'.concat(r.showValue?"1":"0",'"/>'),c+='<c:showCatName val="0"/><c:showSerName val="'.concat(r.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),c+='<c:showLeaderLines val="'.concat(r.showLeaderLines?"1":"0",'"/>'),c+="</c:dLbls>"),e!==Y.LINE&&e!==Y.RADAR||(c+="<c:marker>",c+=' <c:symbol val="'+r.lineDataSymbol+'"/>',r.lineDataSymbolSize&&(c+='<c:size val="'.concat(r.lineDataSymbolSize,'"/>')),c+=" <c:spPr>",c+=" <a:solidFill>".concat(de(r.chartColors[n._dataIndex+1>r.chartColors.length?Math.floor(Math.random()*r.chartColors.length):n._dataIndex]),"</a:solidFill>"),c+=' <a:ln w="'.concat(r.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>
2').concat(de(r.lineDataSymbolLineColor||o),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),c+=" <a:effectLst/>",c+=" </c:spPr>",c+="</c:marker>"),e!==Y.BAR&&e!==Y.BAR3D||1!==t.length||!(r.chartColors&&r.chartColors!==z&&r.chartColors.length>1||(null===(i=r.invertedColors)||void 0===i?void 0:i.length))||n.values.forEach(function(t,n){var i=t<0?r.invertedColors||r.chartColors||z:r.chartColors||[];c+=" <c:dPt>",c+=' <c:idx val="'.concat(n,'"/>'),c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",0===r.lineSize?c+="<a:ln><a:noFill/></a:ln>":e===Y.BAR?(c+="<a:solidFill>",c+=' <a:srgbClr val="'+i[n%i.length]+'"/>',c+="</a:solidFill>"):(c+="<a:ln>",c+=" <a:solidFill>",c+=' <a:srgbClr val="'+i[n%i.length]+'"/>',c+=" </a:solidFill>",c+="</a:ln>"),c+=Oe(r.shadow,O),c+=" </c:spPr>",c+=" </c:dPt>"}),c+="<c:cat>",r.catLabelFormatCode?(c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(n.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>"+(r.catLabelFormatCode||"General")+"</c:formatCode>",c+=' <c:ptCount val="'.concat(n.labels[0].length,'"/>'),n.labels[0].forEach(function(e,t){return c+='<c:pt idx="'.concat(t,'"><c:v>').concat(oe(e),"</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>"):(c+=" <c:multiLvlStrRef>",c+=" <c:f>Sheet1!$A$2:$".concat(Me(n.labels.length),"$").concat(n.labels[0].length+1,"</c:f>"),c+=" <c:multiLvlStrCache>",c+=' <c:ptCount val="'.concat(n.labels[0].length,'"/>'),n.labels.forEach(function(e){c+="<c:lvl>",e.forEach(function(e,t){return c+='<c:pt idx="'.concat(t,'"><c:v>').concat(oe(e),"</c:v></c:pt>")}),c+="</c:lvl>"}),c+=" </c:multiLvlStrCache>",c+=" </c:multiLvlStrRef>"),c+="</c:cat>",c+="<c:val>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(Me(n._dataIndex+n.labels.length+1),"$2:$").concat(Me(n._dataIndex+n.labels.length+1),"$").concat(n.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>"+(r.valLabelFormatCode||r.dataTableFormatCode||"General")+"</c:formatCode>",c+=' <c:ptCount val="'.concat(n.labels[0].length,'"/>'),n.values.forEach(function(e,t){return c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:val>",e===Y.LINE&&(c+='<c:smooth val="'+(r.lineSmooth?"1":"0")+'"/>'),c+="</c:ser>"}),c+=" <c:dLbls>",c+=' <c:numFmt formatCode="'.concat(oe(r.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr b="'.concat(r.dataLabelFontBold?1:0,'" i="').concat(r.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*(r.dataLabelFontSize||S)),'" u="none">'),c+=" <a:solidFill>"+de(r.dataLabelColor||_)+"</a:solidFill>",c+=' <a:latin typeface="'+(r.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",r.dataLabelPosition&&(c+=' <c:dLblPos val="'+r.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(r.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(r.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="'.concat(r.showLeaderLines?"1":"0",'"/>'),c+=" </c:dLbls>",e===Y.BAR?(c+=' <c:gapWidth val="'.concat(r.barGapWidthPct,'"/>'),c+=' <c:overlap val="'.concat((r.barGrouping||"").includes("tacked")?100:r.barOverlapPct?r.barOverlapPct:0,'"/>')):e===Y.BAR3D?(c+=' <c:gapWidth val="'.concat(r.barGapWidthPct,'"/>'),c+=' <c:gapDepth val="'.concat(r.barGapDepthPct,'"/>'),c+=' <c:shape val="'+r.bar3DShape+'"/>'):e===Y.LINE&&(c+=' <c:marker val="1"/>'),c+='<c:axId val="'.concat(i,'"/><c:axId val="').concat(n,'"/><c:axId val="').concat(j,'"/>'),c+="</c:".concat(e,"Chart>");break;case Y.SCATTER:c+="<c:"+e+"Chart>",c+='<c:scatterStyle val="lineMarker"/>',c+='<c:varyColors val="0"/>',s=-1,t.filter(function(e,t){return t>0}).forEach(function(e,n){s++,c+="<c:ser>",c+=' <c:idx val="'.concat(n,'"/>'),c+=' <c:order val="'.concat(n,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$".concat(Me(n+2),"$1</c:f>"),c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+oe(e.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>";var i=r.chartColors[s%r.chartColors.length];
2if("transparent"===i?c+="<a:noFill/>":r.chartColorsOpacity?c+="<a:solidFill>"+de(i,'<a:alpha val="'+Math.round(1e3*r.chartColorsOpacity).toString()+'"/>')+"</a:solidFill>":c+="<a:solidFill>"+de(i)+"</a:solidFill>",0===r.lineSize?c+="<a:ln><a:noFill/></a:ln>":(c+='<a:ln w="'.concat(ae(r.lineSize),'" cap="').concat(Pe(r.lineCap),'"><a:solidFill>').concat(de(i),"</a:solidFill>"),c+='<a:prstDash val="'.concat(r.lineDash||"solid",'"/><a:round/></a:ln>')),c+=Oe(r.shadow,O),c+=" </c:spPr>",c+="<c:marker>",c+=' <c:symbol val="'+r.lineDataSymbol+'"/>',r.lineDataSymbolSize&&(c+='<c:size val="'.concat(r.lineDataSymbolSize,'"/>')),c+="<c:spPr>",c+="<a:solidFill>".concat(de(r.chartColors[n+1>r.chartColors.length?Math.floor(Math.random()*r.chartColors.length):n]),"</a:solidFill>"),c+='<a:ln w="'.concat(r.lineDataSymbolLineSize,'" cap="flat"><a:solidFill>').concat(de(r.lineDataSymbolLineColor||r.chartColors[s%r.chartColors.length]),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'),c+="<a:effectLst/>",c+="</c:spPr>",c+="</c:marker>",r.showLabel){var o=ie("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!e.labels[0]||"custom"!==r.dataLabelFormatScatter&&"customXY"!==r.dataLabelFormatScatter||(c+="<c:dLbls>",e.labels[0].forEach(function(t,n){"custom"!==r.dataLabelFormatScatter&&"customXY"!==r.dataLabelFormatScatter||(c+=" <c:dLbl>",c+=' <c:idx val="'.concat(n,'"/>'),c+=" <c:tx>",c+=" <c:rich>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:r>",c+=' <a:rPr lang="'+(r.lang||"en-US")+'" dirty="0"/>',c+=" <a:t>"+oe(t)+"</a:t>",c+=" </a:r>","customXY"!==r.dataLabelFormatScatter||/^ *$/.test(t)||(c+=" <a:r>",c+=' <a:rPr lang="'+(r.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t> (</a:t>",c+=" </a:r>
2",c+=' <a:fld id="{'+ie("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="XVALUE">',c+=' <a:rPr lang="'+(r.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+oe(e.name)+"</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(r.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>, </a:t>",c+=" </a:r>",c+=' <a:fld id="{'+ie("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")+'}" type="YVALUE">',c+=' <a:rPr lang="'+(r.lang||"en-US")+'" baseline="0"/>',c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=" <a:t>["+oe(e.name)+"]</a:t>",c+=" </a:fld>",c+=" <a:r>",c+=' <a:rPr lang="'+(r.lang||"en-US")+'" baseline="0" dirty="0"/>',c+=" <a:t>)</a:t>",c+=" </a:r>",c+=' <a:endParaRPr lang="'+(r.lang||"en-US")+'" dirty="0"/>'),c+=" </a:p>",c+=" </c:rich>",c+=" </c:tx>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",r.dataLabelPosition&&(c+=' <c:dLblPos val="'+r.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="1"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart"/>',c+=' <c:ext uri="{C3380CC4-5D6E-409C-BE32-E72D297353CC}" xmlns:c16="http://schemas.microsoft.com/office/drawing/2014/chart">',c+=' <c16:uniqueId val="{'.concat("00000000".substring(0,8-(n+1).toString().length).toString()).concat(n+1).concat(o,'}"/>'),c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbl>")}),c+="</c:dLbls>"),"XY"===r.dataLabelFormatScatter&&(c+="<c:dLbls>",c+=" <c:spPr>",c+=" <a:noFill/>",c+=" <a:ln>",c+=" <a:noFill/>",c+=" </a:ln>",c+=" <a:effectLst/>",c+=" </c:spPr>",c+=" <c:txPr>",c+=" <a:bodyPr>",c+=" <a:spAutoFit/>",c+=" </a:bodyPr>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=" <a:defRPr/>",c+=" </a:pPr>",c+=' <a:endParaRPr lang="en-US"/>',c+=" </a:p>",c+=" </c:txPr>",r.dataLabelPosition&&(c+=' <c:dLblPos val="'+r.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'.concat(r.showLabel?"1":"0",'"/>'),c+=' <c:showCatName val="'.concat(r.showLabel?"1":"0",'"/>'),c+=' <c:showSerName val="'.concat(r.showSerName?"1":"0",'"/>'),c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" <c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="1"/>',c+=" </c:ext>",c+=" </c:extLst>",c+="</c:dLbls>")}1===t.length&&r.chartColors!==z&&e.values.forEach(function(e,t){var n=e<0?r.invertedColors||r.chartColors||z:r.chartColors||[];c+=" <c:dPt>",c+=' <c:idx val="'.concat(t,'"/>'),c+=' <c:invertIfNegative val="0"/>',c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",0===r.lineSize?c+="<a:ln><a:noFill/></a:ln>":(c+="<a:solidFill>",c+=' <a:srgbClr val="'+n[t%n.length]+'"/>',c+="</a:solidFill>"),c+=Oe(r.shadow,O),c+=" </c:spPr>",c+=" </c:dPt>"}),c+="<c:xVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(t[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>'),t[0].values.forEach(function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$".concat(Me(n+2),"$2:$").concat(Me(n+2),"$").concat(t[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>
2'),t[0].values.forEach(function(t,r){c+='<c:pt idx="'.concat(r,'"><c:v>').concat(e.values[r]||0===e.values[r]?e.values[r]:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+='<c:smooth val="'+(r.lineSmooth?"1":"0")+'"/>',c+="</c:ser>"}),c+=" <c:dLbls>",c+=' <c:numFmt formatCode="'.concat(oe(r.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr b="'.concat(r.dataLabelFontBold?"1":"0",'" i="').concat(r.dataLabelFontItalic?"1":"0",'" strike="noStrike" sz="').concat(Math.round(100*(r.dataLabelFontSize||S)),'" u="none">'),c+=" <a:solidFill>"+de(r.dataLabelColor||_)+"</a:solidFill>",c+=' <a:latin typeface="'+(r.dataLabelFontFace||"Arial")+'"/>',c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",r.dataLabelPosition&&(c+=' <c:dLblPos val="'+r.dataLabelPosition+'"/>'),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(r.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="0"/>',c+=' <c:showSerName val="'+(r.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="0"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbls>",c+='<c:axId val="'.concat(i,'"/><c:axId val="').concat(n,'"/>'),c+="</c:"+e+"Chart>";break;case Y.BUBBLE:case Y.BUBBLE3D:c+="<c:bubbleChart>",c+='<c:varyColors val="0"/>',s=-1,t.filter(function(e,t){return t>0}).forEach(function(n,i){s++,c+="<c:ser>",c+=' <c:idx val="'.concat(i,'"/>'),c+=' <c:order val="'.concat(i,'"/>'),c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$"+Me(a+1)+"$1</c:f>",c+=' <c:strCache><c:ptCount val="1"/><c:pt idx="0"><c:v>'+oe(n.name)+"</c:v></c:pt></c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+="<c:spPr>";var o=r.chartColors[s%r.chartColors.length];"transparent"===o?c+="<a:noFill/>":r.chartColorsOpacity?c+="<a:solidFill>".concat(de(o,'<a:alpha val="'+Math.round(1e3*r.chartColorsOpacity).toString()+'"/>'),"</a:solidFill>"):c+="<a:solidFill>"+de(o)+"</a:solidFill>",0===r.lineSize?c+="<a:ln><a:noFill/></a:ln>":r.dataBorder?c+='<a:ln w="'.concat(ae(r.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(de(r.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>'):(c+='<a:ln w="'.concat(ae(r.lineSize),'" cap="flat"><a:solidFill>').concat(de(o),"</a:solidFill>"),c+='<a:prstDash val="'.concat(r.lineDash||"solid",'"/><a:round/></a:ln>')),c+=Oe(r.shadow,O),c+="</c:spPr>",c+="<c:xVal>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(t[0].values.length+1,"</c:f>"),c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>'),t[0].values.forEach(function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:xVal>",c+="<c:yVal>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(Me(a+1),"$2:$").concat(Me(a+1),"$").concat(t[0].values.length+1,"</c:f>"),a++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(t[0].values.length,'"/>'),t[0].values.forEach(function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(n.values[t]||0===n.values[t]?n.values[t]:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+="</c:yVal>",c+=" <c:bubbleSize>",c+=" <c:numRef>",c+="<c:f>Sheet1!$".concat(Me(a+1),"$2:$").concat(Me(a+1),"$").concat(n.sizes.length+1,"</c:f>"),a++,c+=" <c:numCache>",c+=" <c:formatCode>General</c:formatCode>",c+=' <c:ptCount val="'.concat(n.sizes.length,'"/>
2'),n.sizes.forEach(function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:bubbleSize>",c+=' <c:bubble3D val="'+(e===Y.BUBBLE3D?"1":"0")+'"/>',c+="</c:ser>"}),c+="<c:dLbls>",c+='<c:numFmt formatCode="'.concat(oe(r.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+="<c:txPr><a:bodyPr/><a:lstStyle/><a:p><a:pPr>",c+='<a:defRPr b="'.concat(r.dataLabelFontBold?1:0,'" i="').concat(r.dataLabelFontItalic?1:0,'" strike="noStrike" sz="').concat(Math.round(100*Math.round(r.dataLabelFontSize||S)),'" u="none">'),c+="<a:solidFill>".concat(de(r.dataLabelColor||_),"</a:solidFill>"),c+='<a:latin typeface="'.concat(r.dataLabelFontFace||"Arial",'"/>'),c+="</a:defRPr></a:pPr></a:p></c:txPr>",r.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(r.dataLabelPosition,'"/>')),c+='<c:showLegendKey val="0"/>',c+='<c:showVal val="'.concat(r.showValue?"1":"0",'"/>'),c+='<c:showCatName val="0"/><c:showSerName val="'.concat(r.showSerName?"1":"0",'"/><c:showPercent val="0"/><c:showBubbleSize val="0"/>'),c+="<c:extLst>",c+=' <c:ext uri="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}" xmlns:c15="http://schemas.microsoft.com/office/drawing/2012/chart">',c+=' <c15:showLeaderLines val="'+(r.showLeaderLines?"1":"0")+'"/>',c+=" </c:ext>",c+="</c:extLst>",c+="</c:dLbls>",c+='<c:axId val="'.concat(i,'"/><c:axId val="').concat(n,'"/>'),c+="</c:bubbleChart>";break;case Y.DOUGHNUT:case Y.PIE:l=t[0],c+="<c:"+e+"Chart>",c+=' <c:varyColors val="1"/>',c+="<c:ser>",c+=' <c:idx val="0"/>',c+=' <c:order val="0"/>',c+=" <c:tx>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$B$1</c:f>",c+=" <c:strCache>",c+=' <c:ptCount val="1"/>',c+=' <c:pt idx="0"><c:v>'+oe(l.name)+"</c:v></c:pt>",c+=" </c:strCache>",c+=" </c:strRef>",c+=" </c:tx>",c+=" <c:spPr>",c+=' <a:solidFill><a:schemeClr val="accent1"/></a:solidFill>',c+=' <a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="F9F9F9"/></a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>',r.dataNoEffects?c+="<a:effectLst/>":c+=Oe(r.shadow,O),c+=" </c:spPr>",l.labels[0].forEach(function(e,t){c+="<c:dPt>",c+=' <c:idx val="'.concat(t,'"/>'),c+=' <c:bubble3D val="0"/>',c+=" <c:spPr>",c+="<a:solidFill>".concat(de(r.chartColors[t+1>r.chartColors.length?Math.floor(Math.random()*r.chartColors.length):t]),"</a:solidFill>"),r.dataBorder&&(c+='<a:ln w="'.concat(ae(r.dataBorder.pt),'" cap="flat"><a:solidFill>').concat(de(r.dataBorder.color),'</a:solidFill><a:prstDash val="solid"/><a:round/></a:ln>')),c+=Oe(r.shadow,O),c+=" </c:spPr>",c+="</c:dPt>"}),c+="<c:dLbls>",l.labels[0].forEach(function(t,n){c+="<c:dLbl>",c+=' <c:idx val="'.concat(n,'"/>'),c+=' <c:numFmt formatCode="'.concat(oe(r.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:spPr/><c:txPr>",c+=" <a:bodyPr/><a:lstStyle/>",c+=" <a:p><a:pPr>",c+=' <a:defRPr sz="'.concat(Math.round(100*(r.dataLabelFontSize||S)),'" b="').concat(r.dataLabelFontBold?1:0,'" i="').concat(r.dataLabelFontItalic?1:0,'" u="none" strike="noStrike">'),c+=" <a:solidFill>"+de(r.dataLabelColor||_)+"</a:solidFill>",c+=' <a:latin typeface="'.concat(r.dataLabelFontFace||"Arial",'"/>'),c+=" </a:defRPr>",c+=" </a:pPr></a:p>",c+=" </c:txPr>",e===Y.PIE&&r.dataLabelPosition&&(c+='<c:dLblPos val="'.concat(r.dataLabelPosition,'"/>')),c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="'+(r.showValue?"1":"0")+'"/>',c+=' <c:showCatName val="'+(r.showLabel?"1":"0")+'"/>',c+=' <c:showSerName val="'+(r.showSerName?"1":"0")+'"/>',c+=' <c:showPercent val="'+(r.showPercent?"1":"0")+'"/>',c+=' <c:showBubbleSize val="0"/>',c+=" </c:dLbl>"}),c+=' <c:numFmt formatCode="'.concat(oe(r.dataLabelFormatCode)||"General",'" sourceLinked="0"/>'),c+=" <c:txPr>",c+=" <a:bodyPr/>",c+=" <a:lstStyle/>",c+=" <a:p>",c+=" <a:pPr>",c+=' <a:defRPr sz="1800" b="'.concat(r.dataLabelFontBold?"1":"0",'" i="').concat(r.dataLabelFontItalic?"1":"0",'" u="none" strike="noStrike">'),c+=' <a:solidFill><a:srgbClr val="000000"/></a:solidFill><a:latin typeface="Arial"/>',c+=" </a:defRPr>",c+=" </a:pPr>",c+=" </a:p>",c+=" </c:txPr>",c+=e===Y.PIE?'<c:dLblPos val="ctr"/>':"",c+=' <c:showLegendKey val="0"/>',c+=' <c:showVal val="0"/>',c+=' <c:showCatName val="1"/>',c+=' <c:showSerName val="0"/>',c+=' <c:showPercent val="1"/>',c+=' <c:showBubbleSize val="0"/>',c+=' <c:showLeaderLines val="'.concat(r.showLeaderLines?"1":"0",'"/>'),c+="</c:dLbls>",c+="<c:cat>",c+=" <c:strRef>",c+=" <c:f>Sheet1!$A$2:$A$".concat(l.labels[0].length+1,"</c:f>"),c+=" <c:strCache>",c+=' <c:ptCount val="'.concat(l.labels[0].length,'"/>
2'),l.labels[0].forEach(function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(oe(e),"</c:v></c:pt>")}),c+=" </c:strCache>",c+=" </c:strRef>",c+="</c:cat>",c+=" <c:val>",c+=" <c:numRef>",c+=" <c:f>Sheet1!$B$2:$B$".concat(l.labels[0].length+1,"</c:f>"),c+=" <c:numCache>",c+=' <c:ptCount val="'.concat(l.labels[0].length,'"/>'),l.values.forEach(function(e,t){c+='<c:pt idx="'.concat(t,'"><c:v>').concat(e||0===e?e:"","</c:v></c:pt>")}),c+=" </c:numCache>",c+=" </c:numRef>",c+=" </c:val>",c+=" </c:ser>",c+=' <c:firstSliceAng val="'.concat(r.firstSliceAng?Math.round(r.firstSliceAng):0,'"/>'),e===Y.DOUGHNUT&&(c+='<c:holeSize val="'.concat("number"===typeof r.holeSize?r.holeSize:"50",'"/>')),c+="</c:"+e+"Chart>";break;default:c+=""}return c}function Se(e,t,r){var n="";return e._type===Y.SCATTER||e._type===Y.BUBBLE||e._type===Y.BUBBLE3D?n+="<c:valAx>":n+="<c:"+(e.catLabelFormatCode?"dateAx":"catAx")+">",n+=' <c:axId val="'+t+'"/>',n+=" <c:scaling>",n+='<c:orientation val="'+(e.catAxisOrientation||(e.barDir,"minMax"))+'"/>',(e.catAxisMaxVal||0===e.catAxisMaxVal)&&(n+='<c:max val="'.concat(e.catAxisMaxVal,'"/>')),(e.catAxisMinVal||0===e.catAxisMinVal)&&(n+='<c:min val="'.concat(e.catAxisMinVal,'"/>')),n+="</c:scaling>",n+=' <c:delete val="'+(e.catAxisHidden?"1":"0")+'"/>',n+=' <c:axPos val="'+("col"===e.barDir?"b":"l")+'"/>',n+="none"!==e.catGridLine.style?Ne(e.catGridLine):"",e.showCatAxisTitle&&(n+=Te({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||"Axis Title"})),e._type===Y.SCATTER||e._type===Y.BUBBLE||e._type===Y.BUBBLE3D?n+=' <c:numFmt formatCode="'+(e.valAxisLabelFormatCode?oe(e.valAxisLabelFormatCode):"General")+'" sourceLinked="1"/>':n+=' <c:numFmt formatCode="'+(oe(e.catLabelFormatCode)||"General")+'" sourceLinked="1"/>',e._type===Y.SCATTER?(n+=' <c:majorTickMark val="none"/>',n+=' <c:minorTickMark val="none"/>',n+=' <c:tickLblPos val="nextTo"/>'):(n+=' <c:majorTickMark val="'+(e.catAxisMajorTickMark||"out")+'"/>',n+=' <c:minorTickMark val="'+(e.catAxisMinorTickMark||"none")+'"/>',n+=' <c:tickLblPos val="'+(e.catAxisLabelPos||("col"===e.barDir?"low":"nextTo"))+'"/>'),n+=" <c:spPr>",n+=' <a:ln w="'.concat(e.catAxisLineSize?ae(e.catAxisLineSize):h,'" cap="flat">'),n+=e.catAxisLineShow?"<a:solidFill>"+de(e.catAxisLineColor||w)+"</a:solidFill>":"<a:noFill/>",n+=' <a:prstDash val="'+(e.catAxisLineStyle||"solid")+'"/>',n+=" <a:round/>",n+=" </a:ln>",n+=" </c:spPr>",n+=" <c:txPr>",e.catAxisLabelRotate?n+='<a:bodyPr rot="'.concat(le(e.catAxisLabelRotate),'"/>'):n+="<a:bodyPr/>",n+=" <a:lstStyle/>",n+=" <a:p>",n+=" <a:pPr>",n+=' <a:defRPr sz="'.concat(Math.round(100*(e.catAxisLabelFontSize||S)),'" b="').concat(e.catAxisLabelFontBold?1:0,'" i="').concat(e.catAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),n+=" <a:solidFill>"+de(e.catAxisLabelColor||_)+"</a:solidFill>",n+=' <a:latin typeface="'+(e.catAxisLabelFontFace||"Arial")+'"/>',n+=" </a:defRPr>",n+=" </a:pPr>",n+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',n+=" </a:p>",n+=" </c:txPr>",n+=' <c:crossAx val="'+r+'"/>',n+=" <c:".concat("number"===typeof e.valAxisCrossesAt?"crossesAt":"crosses",' val="').concat(e.valAxisCrossesAt||"autoZero",'"/>'),n+=' <c:auto val="1"/>',n+=' <c:lblAlgn val="ctr"/>',n+=' <c:noMultiLvlLbl val="'.concat(e.catAxisMultiLevelLabels?0:1,'"/>'),e.catAxisLabelFrequency&&(n+=' <c:tickLblSkip val="'+e.catAxisLabelFrequency+'"/>'),(e.catLabelFormatCode||e._type===Y.SCATTER||e._type===Y.BUBBLE||e._type===Y.BUBBLE3D)&&(e.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(t){!e[t]||"string"===typeof e[t]&&["days","months","years"].includes(e[t].toLowerCase())||(console.warn('"'.concat(t,"\" must be one of: 'days','months','years' !")),e[t]=null)}),e.catAxisBaseTimeUnit&&(n+='<c:baseTimeUnit val="'+e.catAxisBaseTimeUnit.toLowerCase()+'"/>'),e.catAxisMajorTimeUnit&&(n+='<c:majorTimeUnit val="'+e.catAxisMajorTimeUnit.toLowerCase()+'"/>'),e.catAxisMinorTimeUnit&&(n+='<c:minorTimeUnit val="'+e.catAxisMinorTimeUnit.toLowerCase()+'"/>')),e.catAxisMajorUnit&&(n+='<c:majorUnit val="'.concat(e.catAxisMajorUnit,'"/>')),e.catAxisMinorUnit&&(n+='<c:minorUnit val="'.concat(e.catAxisMinorUnit,'"/>'))),e._type===Y.SCATTER||e._type===Y.BUBBLE||e._type===Y.BUBBLE3D?n+="</c:valAx>":n+="</c:"+(e.catLabelFormatCode?"dateAx":"catAx")+">",n}function Ee(e,t){var r=t===D?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t";t===I&&(r="r");var n=t===D?L:B,i="";if(i+="<c:valAx>",i+=' <c:axId val="'+t+'"/>',i+=" <c:scaling>",e.valAxisLogScaleBase&&(i+='<c:logBase val="'.concat(e.valAxisLogScaleBase,'"/>')),i+='<c:orientation val="'+(e.valAxisOrientation||(e.barDir,"minMax"))+'"/>',(e.valAxisMaxVal||0===e.valAxisMaxVal)&&(i+='<c:max val="'.concat(e.valAxisMaxVal,'"/>')),(e.valAxisMinVal||0===e.valAxisMinVal)&&(i+='<c:min val="'.concat(e.valAxisMinVal,'"/>')),i+=" </c:scaling>",i+=' <c:delete val="'.concat(e.valAxisHidden?1:0,'"/>'),i+=' <c:axPos val="'+r+'"/>',"none"!==e.valGridLine.style&&(i+=Ne(e.valGridLine)),e.showValAxisTitle&&(i+=Te({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),i+='<c:numFmt formatCode="'.concat(e.valAxisLabelFormatCode?oe(e.valAxisLabelFormatCode):"General",'" sourceLinked="0"/>'),e._type===Y.SCATTER?(i+=' <c:majorTickMark val="none"/>',i+=' <c:minorTickMark val="none"/>',i+=' <c:tickLblPos val="nextTo"/>'):(i+=' <c:majorTickMark val="'+(e.valAxisMajorTickMark||"out")+'"/>',i+=' <c:minorTickMark val="'+(e.valAxisMinorTickMark||"none")+'"/>',i+=' <c:tickLblPos val="'+(e.valAxisLabelPos||("col"===e.barDir?"nextTo":"low"))+'"/>'),i+=" <c:spPr>",i+=' <a:ln w="'.concat(e.valAxisLineSize?ae(e.valAxisLineSize):h,'" cap="flat">'),i+=e.valAxisLineShow?"<a:solidFill>"+de(e.valAxisLineColor||w)+"</a:solidFill>":"<a:noFill/>",i+=' <a:prstDash val="'+(e.valAxisLineStyle||"solid")+'"/>',i+=" <a:round/>",i+=" </a:ln>",i+=" </c:spPr>",i+=" <c:txPr>",i+=" <a:bodyPr".concat(e.valAxisLabelRotate?' rot="'+le(e.valAxisLabelRotate).toString()+'"':"","/>"),i+=" <a:lstStyle/>",i+=" <a:p>",i+=" <a:pPr>",i+=' <a:defRPr sz="'.concat(Math.round(100*(e.valAxisLabelFontSize||S)),'" b="').concat(e.valAxisLabelFontBold?1:0,'" i="').concat(e.valAxisLabelFontItalic?1:0,'" u="none" strike="noStrike">'),i+=" <a:solidFill>"+de(e.valAxisLabelColor||_)+"</a:solidFill>",i+=' <a:latin typeface="'+(e.valAxisLabelFontFace||"Arial")+'"/>',i+=" </a:defRPr>",i+=" </a:pPr>",i+=' <a:endParaRPr lang="'+(e.lang||"en-US")+'"/>',i+=" </a:p>",i+=" </c:txPr>",i+=' <c:crossAx val="'+n+'"/>',"number"===typeof e.catAxisCrossesAt)i+=' <c:crossesAt val="'.concat(e.catAxisCrossesAt,'"/>');else if("string"===typeof e.catAxisCrossesAt)i+=' <c:crosses val="'+e.catAxisCrossesAt+'"/>';
2else{i+=' <c:crosses val="'+("r"===r||"t"===r?"max":"autoZero")+'"/>'}return i+=' <c:crossBetween val="'+(e._type===Y.SCATTER||Array.isArray(e._type)&&e._type.filter(function(e){return e.type===Y.AREA}).length>0?"midCat":"between")+'"/>',e.valAxisMajorUnit&&(i+=' <c:majorUnit val="'.concat(e.valAxisMajorUnit,'"/>')),e.valAxisDisplayUnit&&(i+='<c:dispUnits><c:builtInUnit val="'.concat(e.valAxisDisplayUnit,'"/>').concat(e.valAxisDisplayUnitLabel?"<c:dispUnitsLbl/>":"","</c:dispUnits>")),i+="</c:valAx>"}function Te(e,t,r){var n="left"===e.titleAlign||"right"===e.titleAlign?'<a:pPr algn="'.concat(e.titleAlign.substring(0,1),'">'):"<a:pPr>",i=e.titleRotate?'<a:bodyPr rot="'.concat(le(e.titleRotate),'"/>'):"<a:bodyPr/>",o=e.fontSize?'sz="'.concat(Math.round(100*e.fontSize),'"'):"",s=e.titleBold?1:0,a="<c:layout/>";if(e.titlePos&&"number"===typeof e.titlePos.x&&"number"===typeof e.titlePos.y){var l=e.titlePos.x+t,c=e.titlePos.y+r,u=0===l?0:l*(l/5)/10;u>=1&&(u/=10),u>=.1&&(u/=10);var d=0===c?0:c*(c/5)/10;d>=1&&(d/=10),d>=.1&&(d/=10),a='<c:layout><c:manualLayout><c:xMode val="edge"/><c:yMode val="edge"/><c:x val="'.concat(u,'"/><c:y val="').concat(d,'"/></c:manualLayout></c:layout>')}return"<c:title>\n <c:tx>\n <c:rich>\n ".concat(i,"\n <a:lstStyle/>\n <a:p>\n ").concat(n,"\n <a:defRPr ").concat(o,' b="').concat(s,'" i="0" u="none" strike="noStrike">\n <a:solidFill>').concat(de(e.color||_),'</a:solidFill>\n <a:latin typeface="').concat(e.fontFace||"Arial",'"/>\n </a:defRPr>\n </a:pPr>\n <a:r>\n <a:rPr ').concat(o,' b="').concat(s,'" i="0" u="none" strike="noStrike">\n <a:solidFill>').concat(de(e.color||_),'</a:solidFill>\n <a:latin typeface="').concat(e.fontFace||"Arial",'"/>\n </a:rPr>\n <a:t>').concat(oe(e.title)||"","</a:t>\n </a:r>\n </a:p>\n </c:rich>\n </c:tx>\n ").concat(a,'\n <c:overlay val="0"/>\n </c:title>')}function Me(e){var t=e-1;return t<=25?F[t]:"".concat(F[Math.floor(t/F.length-1)]).concat(F[t%F.length])}function Oe(e,t){if(!e)return"<a:effectLst/>";if("object"!==typeof e)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"<a:effectLst/>";var r="<a:effectLst>",n=o(o({},t),e),i=n.type||"outer",s=ae(n.blur),a=ae(n.offset),l=Math.round(6e4*n.angle),c=n.color,u=Math.round(1e5*n.opacity),d=n.rotateWithShape?1:0;return r+="<a:".concat(i,'Shdw sx="100000" sy="100000" kx="0" ky="0" algn="bl" blurRad="').concat(s,'" rotWithShape="').concat(d,'" dist="').concat(a,'" dir="').concat(l,'">'),r+='<a:srgbClr val="'.concat(c,'">'),r+='<a:alpha val="'.concat(u,'"/></a:srgbClr>'),r+="</a:".concat(i,"Shdw>"),r+="</a:effectLst>"}function Ne(e){var t="<c:majorGridlines>";return t+=" <c:spPr>",t+=' <a:ln w="'.concat(ae(e.size||k),'" cap="').concat(Pe(e.cap||C),'">'),t+=' <a:solidFill><a:srgbClr val="'+(e.color||w)+'"/></a:solidFill>',t+=' <a:prstDash val="'+(e.style||x)+'"/><a:round/>',t+=" </a:ln>",t+=" </c:spPr>",t+="</c:majorGridlines>"}function Pe(e){if(e&&"flat"!==e){if("square"===e)return"sq";if("round"===e)return"rnd";throw new Error("Invalid chart line cap: ".concat(e))}return"flat"}function Re(e){var t="undefined"===typeof window?r(9912):null,n="undefined"===typeof window?r(908):null,i=[],o=e._relsMedia.filter(function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&!e.path.includes("preencoded"))}),s=[];return o.forEach(function(e){s.includes(e.path)?e.isDuplicate=!0:(e.isDuplicate=!1,s.push(e.path))}),o.filter(function(e){return!e.isDuplicate}).forEach(function(e){i.push(new Promise(function(r,i){if(t&&0!==e.path.indexOf("http"))try{var s=t.readFileSync(e.path);e.data=Buffer.from(s).toString("base64"),o.filter(function(t){return t.isDupl
2icate&&t.path===e.path}).forEach(function(t){return t.data=e.data}),r("done")}catch(l){e.data=re,o.filter(function(t){return t.isDuplicate&&t.path===e.path}).forEach(function(t){return t.data=e.data}),i(new Error('ERROR: Unable to read media: "'.concat(e.path,'"\n').concat(String(l))))}else if(t&&n&&0===e.path.indexOf("http"))n.get(e.path,function(t){var n="";t.setEncoding("binary"),t.on("data",function(e){return n+=e}),t.on("end",function(){e.data=Buffer.from(n,"binary").toString("base64"),o.filter(function(t){return t.isDuplicate&&t.path===e.path}).forEach(function(t){return t.data=e.data}),r("done")}),t.on("error",function(t){e.data=re,o.filter(function(t){return t.isDuplicate&&t.path===e.path}).forEach(function(t){return t.data=e.data}),i(new Error("ERROR! Unable to load image (https.get): ".concat(e.path)))})});else{var a=new XMLHttpRequest;a.onload=function(){var t=new FileReader;t.onloadend=function(){e.data=t.result,o.filter(function(t){return t.isDuplicate&&t.path===e.path}).forEach(function(t){return t.data=e.data}),e.isSvgPng?De(e).then(function(){r("done")}).catch(function(e){i(e)}):r("done")},t.readAsDataURL(a.response)},a.onerror=function(t){e.data=re,o.filter(function(t){return t.isDupl
2icate&&t.path===e.path}).forEach(function(t){return t.data=e.data}),i(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(e.path)))},a.open("GET",e.path),a.responseType="blob",a.send()}}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){t?(e.data=re,i.push(Promise.resolve().then(function(){return"done"}))):i.push(De(e))}),i}function De(e){return s(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,new Promise(function(t,r){var n=new Image;n.onload=function(){n.width+n.height===0&&n.onerror("h/w=0");var r=document.createElement("CANVAS"),i=r.getContext("2d");r.width=n.width,r.height=n.height,i.drawImage(n,0,0);try{e.data=r.toDataURL(e.type),t("done")}catch(o){n.onerror(o)}r=null},n.onerror=function(t){e.data=re,r(new Error("ERROR! Unable to load image (image.onerror): ".concat(e.path)))},n.src="string"===typeof e.data?e.data:re})];case 1:return[2,t.sent()]}})})}var Ie={cover:function(e,t){var r=e.h/e.w,n=t.h/t.w>r,i=n?t.h/r:t.w,o=n?t.h:t.w*r,s=Math.round(5e4*(1-t.w/i)),a=Math.round(5e4*(1-t.h/o));return'<a:srcRect l="'.concat(s,'" r="').concat(s,'" t="').concat(a,'" b="').concat(a,'"/><a:stretch/>')},contain:function(e,t){var r=e.h/e.w,n=t.h/t.w>r,i=n?t.w:t.h/r,o=n?t.w*r:t.h,s=Math.round(5e4*(1-t.w/i)),a=Math.round(5e4*(1-t.h/o));return'<a:srcRect l="'.concat(s,'" r="').concat(s,'" t="').concat(a,'" b="').concat(a,'"/><a:stretch/>')},crop:function(e,t){var r=t.x,n=e.w-(t.x+t.w),i=t.y,o=e.h-(t.y+t.h),s=Math.round(r/e.w*1e5),a=Math.round(n/e.w*1e5),l=Math.round(i/e.h*1e5),c=Math.round(o/e.h*1e5);return'<a:srcRect l="'.concat(s,'" r="').concat(a,'" t="').concat(l,'" b="').concat(c,'"/><a:stretch/>')}};function Le(e){var t,r=e._name?'<p:cSld name="'+e._name+'">':"<p:cSld>",n=1;return e._bkgdImgRid?r+='<p:bg><p:bgPr><a:blipFill dpi="0" rotWithShape="1"><a:blip r:embed="rId'.concat(e._bkgdImgRid,'"><a:lum/></a:blip><a:srcRect/><a:stretch><a:fillRect/></a:stretch></a:blipFill><a:effectLst/></p:bgPr></p:bg>'):(null===(t=e.background)||void 0===t?void 0:t.color)?r+="<p:bg><p:bgPr>".concat(he(e.background),"</p:bgPr></p:bg>"):!e.bkgd&&e._name&&e._name===T&&(r+='<p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg>'),r+="<p:spTree>",r+='<p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr>',r+='<p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/>',r+='<a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr>',e._slideObjects.forEach(function(t,i){var o,s,a,c,u,h,f,p,m,g=0,b=0,A=ne("75%","X",e._presLayout),v=0,w="",x=null,k=null,C=0,_=0,S=null,E=null,T=null===(o=t.options)||void 0===o?void 0:o.sizing,M=null===(s=t.options)||void 0===s?void 0:s.rounding;void 0!==e._slideLayout&&void 0!==e._slideLayout._slideObjects&&t.options&&t.options.placeholder&&(m=e._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===t.options.placeholder})[0]),t.options=t.options||{},"undefined"!==typeof t.options.x&&(g=ne(t.options.x,"X",e._presLayout)),"undefined"!==typeof t.options.y&&(b=ne(t.options.y,"Y",e._presLayout)),"undefined"!==typeof t.options.w&&(A=ne(t.options.w,"X",e._presLayout)),"undefined"!==typeof t.options.h&&(v=ne(t.options.h,"Y",e._presLayout));var O=A,N=v;switch(m&&((m.options.x||0===m.options.x)&&(g=ne(m.options.x,"X",e._presLayout)),(m.options.y||0===m.options.y)&&(b=ne(m.options.y,"Y",e._presLayout)),(m.options.w||0===m.options.w)&&(A=ne(m.options.w,"X",e._presLayout)),(m.options.h||0===m.options.h)&&(v=ne(m.options.h,"Y",e._presLayout))),t.options.flipH&&(w+=' flipH="1"'),t.options.flipV&&(w+=' flipV="1"'),t.options.rotate&&(w+=' rot="'.concat(le(t.options.rotate),'"')),t._type){case J.table:if(x=t.arrTabRows,k=t.options,C=0,_=0,x[0].forEach(function(e){S=e.options||null,C+=(null===S||void 0===S?void 0:S.colspan)?Number(S.colspan):1}),E='<p:graphicFrame><p:nvGraphicFramePr><p:cNvPr id="'.concat(n*e._slideNum+1,'" name="').concat(t.options.objectName,'"/>'),E+='<p:cNvGraphicFramePr><a:graphicFrameLocks noGrp="1"/></p:cNvGraphicFramePr> <p:nvPr><p:extLst><p:ext uri="{D42A27DB-BD31-4B8C-83A1-F6EECF244321}"><p14:modId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1579011935"/></p:ext></p:extLst></p:nvPr></p:nvGraphicFramePr>',E+='<p:xfrm><a:off x="'.concat(g||(0===g?0:d),'" y="').concat(b||(0===b?0:d),'"/><a:ext cx="').concat(A||(0===A?0:d),'" cy="').concat(v||d,'"/></p:xfrm>'),E+='<a:graphic><a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/table"><a:tbl><a:tblPr/>',Array.isArray(k.colW)){E+="<a:tblGrid>";for(var R=0;R<C;R++){var D=se(k.colW[R]);(null==D||isNaN(D))&&(D=("number"===typeof t.options.w?t.options.w:1)/C),E+='<a:gridCol w="'.concat(Math.round(D),'"/>')}E+="</a:tblGrid>"}else{_=k.colW?k.colW:d,t.options.w&&!k.colW&&(_=Math.round(("number"===typeof t.options.w?t.options.w:1)/C)),E+="<a:tblGrid>";for(var I=0;I<C;I++)E+='<a:gridCol w="'.concat(_,'"/>');E+="</a:tblGrid>"}
2x.forEach(function(e){for(var t,r,n,i=function(i){var o=e[i],s=null===(t=o.options)||void 0===t?void 0:t.colspan,a=null===(r=o.options)||void 0===r?void 0:r.rowspan;if(s&&s>1){var c=new Array(s-1).fill(void 0).map(function(e){return{_type:J.tablecell,options:{rowspan:a},_hmerge:!0}});e.splice.apply(e,l([i+1,0],c,!1)),i+=s}else i+=1;n=i},o=0;o<e.length;)i(o),o=n}),x.forEach(function(e,t){var r=x[t+1];r&&e.forEach(function(e,t){var n,i,o=e._rowContinue||(null===(n=e.options)||void 0===n?void 0:n.rowspan),s=null===(i=e.options)||void 0===i?void 0:i.colspan,a=e._hmerge;if(o&&o>1){var l={_type:J.tablecell,options:{colspan:s},_rowContinue:o-1,_vmerge:!0,_hmerge:a};r.splice(t,0,l)}})}),x.forEach(function(e,r){var n=0;Array.isArray(k.rowH)&&k.rowH[r]?n=se(Number(k.rowH[r])):k.rowH&&!isNaN(Number(k.rowH))?n=se(Number(k.rowH)):(t.options.cy||t.options.h)&&(n=Math.round((t.options.h?se(t.options.h):"number"===typeof t.options.cy?t.options.cy:1)/x.length)),E+='<a:tr h="'.concat(n,'">'),e.forEach(function(e){var t,r,n,i,o,s=e,a={rowSpan:(null===(t=s.options)||void 0===t?void 0:t.rowspan)>1?s.options.rowspan:void 0,gridSpan:(null===(r=s.options)||void 0===r?void 0:r.colspan)>1?s.options.colspan:void 0,vMerge:s._vmerge?1:void 0,hMerge:s._hmerge?1:void 0},l=Object.keys(a).map(function(e){return[e,a[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){var t=e[0],r=e[1];return"".concat(String(t),'="').concat(String(r),'"')}).join(" ");if(l&&(l=" "+l),s._hmerge||s._vmerge)E+="<a:tc".concat(l,"><a:tcPr/></a:tc>");else{var c=s.options||{};s.options=c,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(e){k[e]&&!c[e]&&0!==c[e]&&(c[e]=k[e])});var u=c.valign?' anchor="'.concat(c.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",d=(null===(i=null===(n=s._optImp)||void 0===n?void 0:n.fill)||void 0===i?void 0:i.color)?s._optImp.fill.color:(null===(o=s._optImp)||void 0===o?void 0:o.fill)&&"string"===typeof s._optImp.fill?s._optImp.fill:"",h=(d=d||c.fill?c.fill:"")?he(d):"",f=0===c.margin||c.margin?c.margin:y;Array.isArray(f)||"number"!==typeof f||(f=[f,f,f,f]);var p="";p=f[0]>=1?' marL="'.concat(ae(f[3]),'" marR="').concat(ae(f[1]),'" marT="').concat(ae(f[0]),'" marB="').concat(ae(f[2]),'"'):' marL="'.concat(se(f[3]),'" marR="').concat(se(f[1]),'" marT="').concat(se(f[0]),'" marB="').concat(se(f[2]),'"'),E+="<a:tc".concat(l,">").concat(ze(s),"<a:tcPr").concat(p).concat(u,">"),c.border&&Array.isArray(c.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(e){"none"!==c.border[e.idx].type?(E+="<a:".concat(e.name,' w="').concat(ae(c.border[e.idx].pt),'" cap="flat" cmpd="sng" algn="ctr">'),E+="<a:solidFill>".concat(de(c.border[e.idx].color),"</a:solidFill>"),E+='<a:prstDash val="'.concat("dash"===c.border[e.idx].type?"sysDash":"solid",'"/><a:round/><a:headEnd type="none" w="med" len="med"/><a:tailEnd type="none" w="med" len="med"/>'),E+="</a:".concat(e.name,">")):E+="<a:".concat(e.name,' w="0" cap="flat" cmpd="sng" algn="ctr"><a:noFill/></a:').concat(e.name,">")}),E+=h,E+=" </a:tcPr>",E+=" </a:tc>"}}),E+="</a:tr>"}),E+=" </a:tbl>",E+=" </a:graphicData>",E+=" </a:graphic>",r+=E+="</p:graphicFrame>",n++;break;case J.text:case J.placeholder:if(t.options.line||0!==v||(v=274320),t.options._bodyProp||(t.options._bodyProp={}),t.options.margin&&Array.isArray(t.options.margin)?(t.options._bodyProp.lIns=ae(t.options.margin[0]||0),t.options._bodyProp.rIns=ae(t.options.margin[1]||0),t.options._bodyProp.bIns=ae(t.options.margin[2]||0),t.options._bodyProp.tIns=ae(t.options.margin[3]||0)):"number"===typeof t.options.margin&&(t.options._bodyProp.lIns=ae(t.options.margin),t.options._bodyProp.rIns=ae(t.options.margin),t.options._bodyProp.bIns=ae(t.options.margin),t.options._bodyProp.tIns=ae(t.options.margin)),r+="<p:sp>",r+='<p:nvSpPr><p:cNvPr id="'.concat(i+2,'" name="').concat(t.options.objectName,'">'),(null===(a=t.options.hyperlink)||void 0===a?void 0:a.url)&&(r+='<a:hlinkClick r:id="rId'.concat(t.options.hyperlink._rId,'" tooltip="').concat(t.options.hyperlink.tooltip?oe(t.options.hyperlink.tooltip):"",'"/>')),(null===(c=t.options.hyperlink)||void 0===c?void 0:c.slide)&&(r+='<a:hlinkClick r:id="rId'.concat(t.options.hyperlink._rId,'" tooltip="').concat(t.options.hyperlink.tooltip?oe(t.options.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),r+="</p:cNvPr>",r+="<p:cNvSpPr"+((null===(u=t.options)||void 0===u?void 0:u.isTextBox)?' txBox="1"/>':"/>"),r+="<p:nvPr>".concat("placeholder"===t._type?Ue(t):Ue(m),"</p:nvPr>"),r+="</p:nvSpPr><p:spPr>",r+="<a:xfrm".concat(w,">"),r+='<a:off x="'.concat(g,'" y="').concat(b,'"/>'),r+='<a:ext cx="'.concat(A,'" cy="').concat(v,'"/></a:xfrm>'),"custGeom"===t.shape)r+="<a:custGeom><a:avLst />",r+="<a:gdLst>",r+="</a:gdLst>",r+="<a:ahLst />",r+="<a:cxnLst>",r+="</a:cxnLst>",r+='<a:rect l="l" t="t" r="r" b="b" />',r+="<a:pathLst>",r+='<a:path w="'.concat(A,'" h="').concat(v,'">'),null===(h=t.options.points)||void 0===h||h.forEach(function(t,n){if("curve"in t)switch(t.curve.type){case"arc":r+='<a:arcTo hR="'.concat(ne(t.curve.hR,"Y",e._presLayout),'" wR="').concat(ne(t.curve.wR,"X",e._presLayout),'" stAng="').concat(le(t.curve.stAng),'" swA
2ng="').concat(le(t.curve.swAng),'" />');break;case"cubic":r+='<a:cubicBezTo>\n\t\t\t\t\t\t\t\t\t<a:pt x="'.concat(ne(t.curve.x1,"X",e._presLayout),'" y="').concat(ne(t.curve.y1,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(ne(t.curve.x2,"X",e._presLayout),'" y="').concat(ne(t.curve.y2,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(ne(t.x,"X",e._presLayout),'" y="').concat(ne(t.y,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t</a:cubicBezTo>');break;case"quadratic":r+='<a:quadBezTo>\n\t\t\t\t\t\t\t\t\t<a:pt x="'.concat(ne(t.curve.x1,"X",e._presLayout),'" y="').concat(ne(t.curve.y1,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t<a:pt x="').concat(ne(t.x,"X",e._presLayout),'" y="').concat(ne(t.y,"Y",e._presLayout),'" />\n\t\t\t\t\t\t\t\t\t</a:quadBezTo>')}else"close"in t?r+="<a:close />":t.moveTo||0===n?r+='<a:moveTo><a:pt x="'.concat(ne(t.x,"X",e._presLayout),'" y="').concat(ne(t.y,"Y",e._presLayout),'" /></a:moveTo>'):r+='<a:lnTo><a:pt x="'.concat(ne(t.x,"X",e._presLayout),'" y="').concat(ne(t.y,"Y",e._presLayout),'" /></a:lnTo>')}),r+="</a:path>",r+="</a:pathLst>",r+="</a:custGeom>";else{if(r+='<a:prstGeom prst="'+t.shape+'"><a:avLst>',t.options.rectRadius)r+='<a:gd name="adj" fmla="val '.concat(Math.round(t.options.rectRadius*d*1e5/Math.min(A,v)),'"/>');else if(t.options.angleRange){for(var L=0;L<2;L++){var B=t.options.angleRange[L];r+='<a:gd name="adj'.concat(L+1,'" fmla="val ').concat(le(B),'" />')}t.options.arcThicknessRatio&&(r+='<a:gd name="adj3" fmla="val '.concat(Math.round(5e4*t.options.arcThicknessRatio),'" />'))}r+="</a:avLst></a:prstGeom>"}r+=t.options.fill?he(t.options.fill):"<a:noFill/>",t.options.line&&(r+=t.options.line.width?'<a:ln w="'.concat(ae(t.options.line.width),'">'):"<a:ln>",t.options.line.color&&(r+=he(t.options.line)),t.options.line.dashType&&(r+='<a:prstDash val="'.concat(t.options.line.dashType,'"/>')),t.options.line.beginArrowType&&(r+='<a:headEnd type="'.concat(t.options.line.beginArrowType,'"/>')),t.options.line.endArrowType&&(r+='<a:tailEnd type="'.concat(t.options.line.endArrowType,'"/>')),r+="</a:ln>"),t.options.shadow&&"none"!==t.options.shadow.type&&(t.options.shadow.type=t.options.shadow.type||"outer",t.options.shadow.blur=ae(t.options.shadow.blur||8),t.options.shadow.offset=ae(t.options.shadow.offset||4),t.options.shadow.angle=Math.round(6e4*(t.options.shadow.angle||270)),t.options.shadow.opacity=Math.round(1e5*(t.options.shadow.opacity||.75)),t.options.shadow.color=t.options.shadow.color||P,r+="<a:effectLst>",r+=" <a:".concat(t.options.shadow.type,"Shdw ").concat("outer"===t.options.shadow.type?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(t.options.shadow.blur,'" dist="').concat(t.options.shadow.offset,'" dir="').concat(t.options.shadow.angle,'">'),r+=' <a:srgbClr val="'.concat(t.options.shadow.color,'">'),r+=' <a:alpha val="'.concat(t.options.shadow.opacity,'"/></a:srgbClr>'),r+=" </a:outerShdw>",r+="</a:effectLst>"),r+="</p:spPr>",r+=ze(t),r+="</p:sp>";break;case J.image:if(r+="<p:pic>",r+=" <p:nvPicPr>",r+='<p:cNvPr id="'.concat(i+2,'" name="').concat(t.options.objectName,'" descr="').concat(oe(t.options.altText||t.image),'">'),(null===(f=t.hyperlink)||void 0===f?void 0:f.url)&&(r+='<a:hlinkClick r:id="rId'.concat(t.hyperlink._rId,'" tooltip="').concat(t.hyperlink.tooltip?oe(t.hyperlink.tooltip):"",'"/>')),(null===(p=t.hyperlink)||void 0===p?void 0:p.slide)&&(r+='<a:hlinkClick r:id="rId'.concat(t.hyperlink._rId,'" tooltip="').concat(t.hyperlink.tooltip?oe(t.hyperlink.tooltip):"",'" action="ppaction://hlinksldjump"/>')),r+=" </p:cNvPr>",r+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',r+=" <p:nvPr>"+Ue(m)+"</p:nvPr>",r+=" </p:nvPicPr>",r+="<p:blipFill>",(e._relsMedia||[]).filter(function(e){return e.rId===t.imageRid})[0]&&"svg"===(e._relsMedia||[]).filter(function(e){return e.rId===t.imageRid})[0].extn?(r+='<a:blip r:embed="rId'.concat(t.imageRid-1,'">'),r+=t.options.transparency?' <a:alphaModFix amt="'.concat(Math.round(1e3*(100-t.options.transparency)),'"/>'):"",r+=" <a:extLst>
2",r+=' <a:ext uri="{96DAC541-7B7A-43D3-8B79-37D633B846F1}">',r+=' <asvg:svgBlip xmlns:asvg="http://schemas.microsoft.com/office/drawing/2016/SVG/main" r:embed="rId'.concat(t.imageRid,'"/>'),r+=" </a:ext>",r+=" </a:extLst>",r+="</a:blip>"):(r+='<a:blip r:embed="rId'.concat(t.imageRid,'">'),r+=t.options.transparency?'<a:alphaModFix amt="'.concat(Math.round(1e3*(100-t.options.transparency)),'"/>'):"",r+="</a:blip>"),null===T||void 0===T?void 0:T.type){var j=T.w?ne(T.w,"X",e._presLayout):A,F=T.h?ne(T.h,"Y",e._presLayout):v,z=ne(T.x||0,"X",e._presLayout),U=ne(T.y||0,"Y",e._presLayout);r+=Ie[T.type]({w:O,h:N},{w:j,h:F,x:z,y:U}),O=j,N=F}else r+=" <a:stretch><a:fillRect/></a:stretch>";r+="</p:blipFill>",r+="<p:spPr>",r+=" <a:xfrm"+w+">",r+=' <a:off x="'.concat(g,'" y="').concat(b,'"/>'),r+=' <a:ext cx="'.concat(O,'" cy="').concat(N,'"/>'),r+=" </a:xfrm>",r+=' <a:prstGeom prst="'.concat(M?"ellipse":"rect",'"><a:avLst/></a:prstGeom>'),t.options.shadow&&"none"!==t.options.shadow.type&&(t.options.shadow.type=t.options.shadow.type||"outer",t.options.shadow.blur=ae(t.options.shadow.blur||8),t.options.shadow.offset=ae(t.options.shadow.offset||4),t.options.shadow.angle=Math.round(6e4*(t.options.shadow.angle||270)),t.options.shadow.opacity=Math.round(1e5*(t.options.shadow.opacity||.75)),t.options.shadow.color=t.options.shadow.color||P,r+="<a:effectLst>",r+="<a:".concat(t.options.shadow.type,"Shdw ").concat("outer"===t.options.shadow.type?'sx="100000" sy="100000" kx="0" ky="0" algn="bl" rotWithShape="0"':"",' blurRad="').concat(t.options.shadow.blur,'" dist="').concat(t.options.shadow.offset,'" dir="').concat(t.options.shadow.angle,'">'),r+='<a:srgbClr val="'.concat(t.options.shadow.color,'">'),r+='<a:alpha val="'.concat(t.options.shadow.opacity,'"/></a:srgbClr>'),r+="</a:".concat(t.options.shadow.type,"Shdw>"),r+="</a:effectLst>"),r+="</p:spPr>",r+="</p:pic>";break;case J.media:"online"===t.mtype?(r+="<p:pic>",r+=" <p:nvPicPr>",r+='<p:cNvPr id="'.concat(t.mediaRid+2,'" name="').concat(t.options.objectName,'"/>'),r+=" <p:cNvPicPr/>",r+=" <p:nvPr>",r+=' <a:videoFile r:link="rId'.concat(t.mediaRid,'"/>'),r+=" </p:nvPr>",r+=" </p:nvPicPr>",r+=' <p:blipFill><a:blip r:embed="rId'.concat(t.mediaRid+1,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),r+=" <p:spPr>",r+=" <a:xfrm".concat(w,'><a:off x="').concat(g,'" y="').concat(b,'"/><a:ext cx="').concat(A,'" cy="').concat(v,'"/></a:xfrm>'),r+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',r+=" </p:spPr>",r+="</p:pic>"):(r+="<p:pic>",r+=" <p:nvPicPr>",r+='<p:cNvPr id="'.concat(t.mediaRid+2,'" name="').concat(t.options.objectName,'"><a:hlinkClick r:id="" action="ppaction://media"/></p:cNvPr>'),r+=' <p:cNvPicPr><a:picLocks noChangeAspect="1"/></p:cNvPicPr>',r+=" <p:nvPr>",r+=' <a:videoFile r:link="rId'.concat(t.mediaRid,'"/>'),r+=" <p:extLst>",r+=' <p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">',r+=' <p14:media xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId'.concat(t.mediaRid+1,'"/>'),r+=" </p:ext>",r+=" </p:extLst>",r+=" </p:nvPr>",r+=" </p:nvPicPr>",r+=' <p:blipFill><a:blip r:embed="rId'.concat(t.mediaRid+2,'"/><a:stretch><a:fillRect/></a:stretch></p:blipFill>'),r+=" <p:spPr>",r+=" <a:xfrm".concat(w,'><a:off x="').concat(g,'" y="').concat(b,'"/><a:ext cx="').concat(A,'" cy="').concat(v,'"/></a:xfrm>'),r+=' <a:prstGeom prst="rect"><a:avLst/></a:prstGeom>',r+=" </p:spPr>",r+="</p:pic>");break;case J.chart:r+="<p:graphicFrame>",r+=" <p:nvGraphicFramePr>",r+=' <p:cNvPr id="'.concat(i+2,'" name="').concat(t.options.objectName,'" descr="').concat(oe(t.options.altText||""),'"/>'),r+=" <p:cNvGraphicFramePr/>",r+=" <p:nvPr>".concat(Ue(m),"</p:nvPr>"),r+=" </p:nvGraphicFramePr>",r+=' <p:xfrm><a:off x="'.concat(g,'" y="').concat(b,'"/><a:ext cx="').concat(A,'" cy="').concat(v,'"/></p:xfrm>'),r+=' <a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">',r+=' <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">',r+=' <c:chart r:id="rId'.concat(t.chartRid,'" xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"/>'),r+=" </a:graphicData>",r+=" </a:graphic>",r+="</p:graphicFrame>";break;default:r+=""}}),e._slideNumberProps&&(e._slideNumberProps.align||(e._slideNumberProps.align="left"),r+="<p:sp>",r+=" <p:nvSpPr>",r+=' <p:cNvPr id="25" name="Slide Number Placeholder 0"/>
2<p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr>',r+=' <p:nvPr><p:ph type="sldNum" sz="quarter" idx="4294967295"/></p:nvPr>',r+=" </p:nvSpPr>",r+=" <p:spPr>",r+="<a:xfrm>"+'<a:off x="'.concat(ne(e._slideNumberProps.x,"X",e._presLayout),'" y="').concat(ne(e._slideNumberProps.y,"Y",e._presLayout),'"/>')+'<a:ext cx="'.concat(e._slideNumberProps.w?ne(e._slideNumberProps.w,"X",e._presLayout):"800000",'" cy="').concat(e._slideNumberProps.h?ne(e._slideNumberProps.h,"Y",e._presLayout):"300000",'"/>')+'</a:xfrm> <a:prstGeom prst="rect"><a:avLst/></a:prstGeom> <a:extLst><a:ext uri="{C572A759-6A51-4108-AA02-DFA0A04FC94B}"><ma14:wrappingTextBoxFlag val="0" xmlns:ma14="http://schemas.microsoft.com/office/mac/drawingml/2011/main"/></a:ext></a:extLst></p:spPr>',r+="<p:txBody>",r+="<a:bodyPr",e._slideNumberProps.margin&&Array.isArray(e._slideNumberProps.margin)?(r+=' lIns="'.concat(ae(e._slideNumberProps.margin[3]||0),'"'),r+=' tIns="'.concat(ae(e._slideNumberProps.margin[0]||0),'"'),r+=' rIns="'.concat(ae(e._slideNumberProps.margin[1]||0),'"'),r+=' bIns="'.concat(ae(e._slideNumberProps.margin[2]||0),'"')):"number"===typeof e._slideNumberProps.margin&&(r+=' lIns="'.concat(ae(e._slideNumberProps.margin||0),'"'),r+=' tIns="'.concat(ae(e._slideNumberProps.margin||0),'"'),r+=' rIns="'.concat(ae(e._slideNumberProps.margin||0),'"'),r+=' bIns="'.concat(ae(e._slideNumberProps.margin||0),'"')),e._slideNumberProps.valign&&(r+=' anchor="'.concat(e._slideNumberProps.valign.replace("top","t").replace("middle","ctr").replace("bottom","b"),'"')),r+="/>",r+=" <a:lstStyle><a:lvl1pPr>",(e._slideNumberProps.fontFace||e._slideNumberProps.fontSize||e._slideNumberProps.color)&&(r+='<a:defRPr sz="'.concat(Math.round(100*(e._slideNumberProps.fontSize||12)),'">'),e._slideNumberProps.color&&(r+=he(e._slideNumberProps.color)),e._slideNumberProps.fontFace&&(r+='<a:latin typeface="'.concat(e._slideNumberProps.fontFace,'"/><a:ea typeface="').concat(e._slideNumberProps.fontFace,'"/><a:cs typeface="').concat(e._slideNumberProps.fontFace,'"/>')),r+="</a:defRPr>"),r+="</a:lvl1pPr></a:lstStyle>",r+="<a:p>",e._slideNumberProps.align.startsWith("l")?r+='<a:pPr algn="l"/>':e._slideNumberProps.align.startsWith("c")?r+='<a:pPr algn="ctr"/>':e._slideNumberProps.align.startsWith("r")?r+='<a:pPr algn="r"/>':r+='<a:pPr algn="l"/>',r+='<a:fld id="'.concat(te,'" type="slidenum"><a:rPr b="').concat(e._slideNumberProps.bold?1:0,'" lang="en-US"/>'),r+="<a:t>".concat(e._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p>'),r+="</p:txBody></p:sp>"),r+="</p:spTree>",r+="</p:cSld>"}function Be(e,t){var r=0,n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">';return e._rels.forEach(function(e){r=Math.max(r,e.rId),e.type.toLowerCase().includes("hyperlink")?"slide"===e.data?n+='<Relationship Id="rId'.concat(e.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slide').concat(e.Target,'.xml"/>'):n+='<Relationship Id="rId'.concat(e.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="').concat(e.Target,'" TargetMode="External"/>'):e.type.toLowerCase().includes("notesSlide")&&(n+='<Relationship Id="rId'.concat(e.rId,'" Target="').concat(e.Target,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"/>'))}),(e._relsChart||[]).forEach(function(e){r=Math.max(r,e.rId),n+='<Relationship Id="rId'.concat(e.rId,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="').concat(e.Target,'"/>')}),(e._relsMedia||[]).forEach(function(e){var t=e.rId.toString();r=Math.max(r,e.rId),e.type.toLowerCase().includes("image")?n+='<Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+e.Target+'"/>':e.type.toLowerCase().includes("audio")?n.includes(' Target="'+e.Target+'"')?n+='<Relationship Id="rId'+t+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+e.Target+'"/>':n+='<Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="'+e.Target+'"/>':e.type.toLowerCase().includes("video")?n.includes(' Target="'+e.Target+'"')?n+='<Relationship Id="rId'+t+'" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="'+e.Target+'"/>':n+='<Relationship Id="rId'+t+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="'+e.Target+'"/>':e.type.toLowerCase().includes("online")&&(n.includes(' Target="'+e.Target+'"')?n+='<Relationship Id="rId'+t+'" Type="http://schemas.microsoft.com/office/2007/relationships/image" Target="'+e.Target+'"/>':n+='<Relationship Id="rId'+t+'" Target="'+e.Target+'" TargetMode="External" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/video"/>')}),t.forEach(function(e,t){n+='<Relationship Id="rId'.concat(r+t+1,'" Type="').concat(e.type,'" Target="').concat(e.target,'"/>')}),n+="</Relationships>"}function je(e,t){var r,n,i="",o="",s="",a="",l=t?"a:lvl1pPr":"a:pPr",c=ae(27),u="<".concat(l).concat(e.options.rtlMode?' rtl="1" ':"");
2if(e.options.align)switch(e.options.align){case"left":u+=' algn="l"';break;case"right":u+=' algn="r"';break;case"center":u+=' algn="ctr"';break;case"justify":u+=' algn="just"';break;default:u+=""}if(e.options.lineSpacing?o='<a:lnSpc><a:spcPts val="'.concat(Math.round(100*e.options.lineSpacing),'"/></a:lnSpc>'):e.options.lineSpacingMultiple&&(o='<a:lnSpc><a:spcPct val="'.concat(Math.round(1e5*e.options.lineSpacingMultiple),'"/></a:lnSpc>')),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&e.options.indentLevel>0&&(u+=' lvl="'.concat(e.options.indentLevel,'"')),e.options.paraSpaceBefore&&!isNaN(Number(e.options.paraSpaceBefore))&&e.options.paraSpaceBefore>0&&(s+='<a:spcBef><a:spcPts val="'.concat(Math.round(100*e.options.paraSpaceBefore),'"/></a:spcBef>')),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&e.options.paraSpaceAfter>0&&(s+='<a:spcAft><a:spcPts val="'.concat(Math.round(100*e.options.paraSpaceAfter),'"/></a:spcAft>')),"object"===typeof e.options.bullet)if((null===(n=null===(r=null===e||void 0===e?void 0:e.options)||void 0===r?void 0:r.bullet)||void 0===n?void 0:n.indent)&&(c=ae(e.options.bullet.indent)),e.options.bullet.type)"number"===e.options.bullet.type.toString().toLowerCase()&&(u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),i='<a:buSzPct val="100000"/><a:buFont typeface="+mj-lt"/><a:buAutoNum type="'.concat(e.options.bullet.style||"arabicPeriod",'" startAt="').concat(e.options.bullet.numberStartAt||e.options.bullet.startAt||"1",'"/>'));else if(e.options.bullet.characterCode){var d="&#x".concat(e.options.bullet.characterCode,";");/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),d=ee.DEFAULT),u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),i='<a:buSzPct val="100000"/><a:buChar char="'+d+'"/>'}else if(e.options.bullet.code){d="&#x".concat(e.options.bullet.code,";");/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),d=ee.DEFAULT),u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),i='<a:buSzPct val="100000"/><a:buChar char="'+d+'"/>'}else u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),i='<a:buSzPct val="100000"/><a:buChar char="'.concat(ee.DEFAULT,'"/>');else e.options.bullet?(u+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?c+c*e.options.indentLevel:c,'" indent="-').concat(c,'"'),i='<a:buSzPct val="100000"/><a:buChar char="'.concat(ee.DEFAULT,'"/>')):e.options.bullet||(u+=' indent="0" marL="0"',i="<a:buNone/>");if(e.options.tabStops&&Array.isArray(e.options.tabStops)){var h=e.options.tabStops.map(function(e){return'<a:tab pos="'.concat(se(e.position||1),'" algn="').concat(e.alignment||"l",'"/>')}).join("");a="<a:tabLst>".concat(h,"</a:tabLst>")}return u+=">"+o+s+i+a,t&&(u+=Fe(e.options,!0)),u+="</"+l+">"}function Fe(e,t){var r,n="",i=t?"a:defRPr":"a:rPr";if(n+="<"+i+' lang="'+(e.lang?e.lang:"en-US")+'"'+(e.lang?' altLang="en-US"':""),n+=e.fontSize?' sz="'.concat(Math.round(100*e.fontSize),'"'):"",n+=(null===e||void 0===e?void 0:e.bold)?' b="'.concat(e.bold?"1":"0",'"'):"",n+=(null===e||void 0===e?void 0:e.italic)?' i="'.concat(e.italic?"1":"0",'"'):"",n+=(null===e||void 0===e?void 0:e.strike)?' strike="'.concat("string"===typeof e.strike?e.strike:"sngStrike",'"'):"","object"===typeof e.underline&&(null===(r=e.underline)||void 0===r?void 0:r.style)?n+=' u="'.concat(e.underline.style,'"'):"string"===typeof e.underline?n+=' u="'.concat(String(e.underline),'"'):e.hyperlink&&(n+=' u="sng"'),e.baseline?n+=' baseline="'.concat(Math.round(50*e.baseline),'"'):e.subscript?n+=' baseline="-40000"':e.superscript&&(n+=' baseline="30000"'),n+=e.charSpacing?' spc="'.concat(Math.round(100*e.charSpacing),'" kern="0"'):"",n+=' dirty="0">',(e.color||e.fontFace||e.outline||"object"===typeof e.underline&&e.underline.color)&&(e.outline&&"object"===typeof e.outline&&(n+='<a:ln w="'.concat(ae(e.outline.size||.75),'">').concat(he(e.outline.color||"FFFFFF"),"</a:ln>")),e.color&&(n+=he({color:e.color,transparency:e.transparency})),e.highlight&&(n+="<a:highlight>
2".concat(de(e.highlight),"</a:highlight>")),"object"===typeof e.underline&&e.underline.color&&(n+="<a:uFill>".concat(he(e.underline.color),"</a:uFill>")),e.glow&&(n+="<a:effectLst>".concat(function(e,t){var r="",n=o(o({},t),e),i=Math.round(n.size*h),s=n.color,a=Math.round(1e5*n.opacity);return r+='<a:glow rad="'.concat(i,'">'),r+=de(s,'<a:alpha val="'.concat(a,'"/>')),r+"</a:glow>"}(e.glow,R),"</a:effectLst>")),e.fontFace&&(n+='<a:latin typeface="'.concat(e.fontFace,'" pitchFamily="34" charset="0"/><a:ea typeface="').concat(e.fontFace,'" pitchFamily="34" charset="-122"/><a:cs typeface="').concat(e.fontFace,'" pitchFamily="34" charset="-120"/>'))),e.hyperlink){if("object"!==typeof e.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?n+='<a:hlinkClick r:id="rId'.concat(e.hyperlink._rId,'" invalidUrl="" action="" tgtFrame="" tooltip="').concat(e.hyperlink.tooltip?oe(e.hyperlink.tooltip):"",'" history="1" highlightClick="0" endSnd="0"').concat(e.color?">":"/>"):e.hyperlink.slide&&(n+='<a:hlinkClick r:id="rId'.concat(e.hyperlink._rId,'" action="ppaction://hlinksldjump" tooltip="').concat(e.hyperlink.tooltip?oe(e.hyperlink.tooltip):"",'"').concat(e.color?">":"/>")),e.color&&(n+=" <a:extLst>",n+=' <a:ext uri="{A12FA001-AC4F-418D-AE19-62706E023703}">',n+=' <ahyp:hlinkClr xmlns:ahyp="http://schemas.microsoft.com/office/drawing/2018/hyperlinkcolor" val="tx"/>',n+=" </a:ext>",n+=" </a:extLst>",n+="</a:hlinkClick>")}return n+="</".concat(i,">")}function ze(e){var t=e.options||{},r=[],n=[];if(t&&e._type!==J.tablecell&&("undefined"===typeof e.text||null===e.text))return"";var i=e._type===J.tablecell?"<a:txBody>":"<p:txBody>";i+=function(e){var t="<a:bodyPr";return e&&e._type===J.text&&e.options._bodyProp?(t+=e.options._bodyProp.wrap?' wrap="square"':' wrap="none"',(e.options._bodyProp.lIns||0===e.options._bodyProp.lIns)&&(t+=' lIns="'.concat(e.options._bodyProp.lIns,'"')),(e.options._bodyProp.tIns||0===e.options._bodyProp.tIns)&&(t+=' tIns="'.concat(e.options._bodyProp.tIns,'"')),(e.options._bodyProp.rIns||0===e.options._bodyProp.rIns)&&(t+=' rIns="'.concat(e.options._bodyProp.rIns,'"')),(e.options._bodyProp.bIns||0===e.options._bodyProp.bIns)&&(t+=' bIns="'.concat(e.options._bodyProp.bIns,'"')),t+=' rtlCol="0"',e.options._bodyProp.anchor&&(t+=' anchor="'+e.options._bodyProp.anchor+'"'),e.options._bodyProp.vert&&(t+=' vert="'+e.options._bodyProp.vert+'"'),t+=">",e.options.fit&&("none"===e.options.fit?t+="":"shrink"===e.options.fit?t+="<a:normAutofit/>":"resize"===e.options.fit&&(t+="<a:spAutoFit/>")),e.options.shrinkText&&(t+="<a:normAutofit/>"),t+=e.options._bodyProp.autoFit?"<a:spAutoFit/>":"",t+="</a:bodyPr>"):(t+=' wrap="square" rtlCol="0">',t+="</a:bodyPr>"),e._type===J.tablecell?"<a:bodyPr/>":t}(e),0===t.h&&t.line&&t.align?i+='<a:lstStyle><a:lvl1pPr algn="l"/></a:lstStyle>':"placeholder"===e._type?i+="<a:lstStyle>".concat(je(e,!0),"</a:lstStyle>"):i+="<a:lstStyle/>","string"===typeof e.text||"number"===typeof e.text?r.push({text:e.text.toString(),options:t||{}}):e.text&&!Array.isArray(e.text)&&"object"===typeof e.text&&Object.keys(e.text).includes("text")?r.push({text:e.text||"",options:e.options||{}}):Array.isArray(e.text)&&(r=e.text.map(function(e){return{text:e.text,options:e.options}})),r.forEach(function(e,r){e.text||(e.text=""),e.options=e.options||t||{},0===r&&e.options&&!e.options.bullet&&t.bullet&&(e.options.bullet=t.bullet),"string"!==typeof e.text&&"number"!==typeof e.text||(e.text=e.text.toString().replace(/\r*\n/g,f)),e.text.includes(f)&&null===e.text.match(/\n$/g)?e.text.split(f).forEach(function(t){e.options.breakLine=!0,n.push({text:t,options:e.options})}):n.push(e)});var o=[],s=[];return n.forEach(function(e,r){s.length>0&&(e.options.align||t.align)?e.options.align!==n[r-1].options.align&&(o.push(s),s=[]):s.length>0&&e.options.bullet&&s.length>0&&(o.push(s),s=[],e.options.breakLine=!1),s.push(e),s.length>0&&e.options.breakLine&&r+1<n.length&&(o.push(s),s=[]),r+1===n.length&&o.push(s)}),o.forEach(function(r){var n,o=!1;i+="<a:p>";var s="<a:pPr ".concat((null===(n=r[0].options)||void 0===n?void 0:n.rtlMode)?' rtl="1" ':"");r.forEach(function(e,r){e.options._lineIdx=r,r>0&&e.options.softBreakBefore&&(i+="<a:br/>
2"),e.options.align=e.options.align||t.align,e.options.lineSpacing=e.options.lineSpacing||t.lineSpacing,e.options.lineSpacingMultiple=e.options.lineSpacingMultiple||t.lineSpacingMultiple,e.options.indentLevel=e.options.indentLevel||t.indentLevel,e.options.paraSpaceBefore=e.options.paraSpaceBefore||t.paraSpaceBefore,e.options.paraSpaceAfter=e.options.paraSpaceAfter||t.paraSpaceAfter,s=je(e,!1),i+=s.replace("<a:pPr></a:pPr>",""),Object.entries(t).filter(function(t){var r=t[0];return t[1],!(e.options.hyperlink&&"color"===r)}).forEach(function(t){var r=t[0],n=t[1];"bullet"===r||e.options[r]||(e.options[r]=n)}),i+=function(e){return e.text?"<a:r>".concat(Fe(e.options,!1),"<a:t>").concat(oe(e.text),"</a:t></a:r>"):""}(e),(!e.text&&t.fontSize||e.options.fontSize)&&(o=!0,t.fontSize=t.fontSize||e.options.fontSize)}),e._type===J.tablecell&&(t.fontSize||t.fontFace)?t.fontFace?(i+='<a:endParaRPr lang="'.concat(t.lang||"en-US",'"')+(t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"")+' dirty="0">',i+='<a:latin typeface="'.concat(t.fontFace,'" charset="0"/>'),i+='<a:ea typeface="'.concat(t.fontFace,'" charset="0"/>'),i+='<a:cs typeface="'.concat(t.fontFace,'" charset="0"/>'),i+="</a:endParaRPr>"):i+='<a:endParaRPr lang="'.concat(t.lang||"en-US",'"')+(t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"")+' dirty="0"/>':i+=o?'<a:endParaRPr lang="'.concat(t.lang||"en-US",'"')+(t.fontSize?' sz="'.concat(Math.round(100*t.fontSize),'"'):"")+' dirty="0"/>':'<a:endParaRPr lang="'.concat(t.lang||"en-US",'" dirty="0"/>'),i+="</a:p>"}),i+=e._type===J.tablecell?"</a:txBody>":"</p:txBody>"}function Ue(e){var t,r;if(!e)return"";var n=(null===(t=e.options)||void 0===t?void 0:t._placeholderIdx)?e.options._placeholderIdx:"",i=(null===(r=e.options)||void 0===r?void 0:r._placeholderType)?e.options._placeholderType:"",o=i&&Z[i]?Z[i].toString():"";return"<p:ph\n\t\t".concat(n?' idx="'+n.toString()+'"':"","\n\t\t").concat(o&&Z[o]?' type="'.concat(o,'"'):"","\n\t\t").concat(e.text&&e.text.length>0?' hasCustomPrompt="1"':"","\n\t\t/>")}function He(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<p:notes xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Slide Image Placeholder 1"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg"/></p:nvPr></p:nvSpPr><p:spPr/></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Notes Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" idx="1"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:r><a:rPr lang="en-US" dirty="0"/><a:t>').concat(oe(function(e){var t="";return e._slideObjects.forEach(function(e){e._type===J.notes&&(t+=(null===e||void 0===e?void 0:e.text)&&e.text[0]?e.text[0].text:"")}),t.replace(/\r*\n/g,f)}(e)),'</a:t></a:r><a:endParaRPr lang="en-US" dirty="0"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Number Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="10"/></p:nvPr></p:nvSpPr><p:spPr/><p:txBody><a:bodyPr/><a:lstStyle/><a:p><a:fld id="').concat(te,'" type="slidenum"><a:rPr lang="en-US"/><a:t>').concat(e._slideNum,'</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:notes>')}function Ve(e,t,r){for(var n=0;n<t.length;n++)if(t[n]._name===e[r-1]._slideLayout._name)return n+1;return 1}var We=function(){function e(){var e=this;this._version="3.12.0",this._alignH=q,this._alignV=G,this._chartType=V,this._outputType=H,this._schemeColor=K,this._shapeType=W,this._charts=Y,this._colors=$,this._shapes=X,this.addNewSlide=function(t){var r=e.sections.length>0&&e.sections[e.sections.length-1]._slides.filter(function(t){return t._slideNum===e.slides[e.slides.length-1]._slideNum}).length>0;return t.sectionTitle=r?e.sections[e.sections.length-1].title:null,e.addSlide(t)}
2,this.getSlide=function(t){return e.slides.filter(function(e){return e._slideNum===t})[0]},this.setSlideNumber=function(t){e.masterSlide._slideNumberProps=t,e.slideLayouts.filter(function(e){return e._name===T})[0]._slideNumberProps=t},this.createChartMediaRels=function(e,t,r){e._relsChart.forEach(function(e){return r.push(Ce(e,t))}),e._relsMedia.forEach(function(e){if("online"!==e.type&&"hyperlink"!==e.type){var r=e.data&&"string"===typeof e.data?e.data:"";(r.includes(",")||r.includes(";"))&&r.includes(",")?r.includes(";")||(r="image/png;"+r):r="image/png;base64,"+r,t.file(e.Target.replace("..","ppt"),r.split(",").pop(),{base64:!0})}})},this.writeFileToBrowser=function(t,r){return s(e,void 0,void 0,function(){var e,n;return a(this,function(i){switch(i.label){case 0:return(e=document.createElement("a")).setAttribute("style","display:none;"),e.dataset.interception="off",document.body.appendChild(e),window.URL.createObjectURL?(n=window.URL.createObjectURL(new Blob([r],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"})),e.href=n,e.download=t,e.click(),setTimeout(function(){window.URL.revokeObjectURL(n),document.body.removeChild(e)},100),[4,Promise.resolve(t)]):[3,2];case 1:return[2,i.sent()];case 2:return[2]}})})},this.exportPresentation=function(t){return s(e,void 0,void 0,function(){var e,r,n,o=this;return a(this,function(l){switch(l.label){case 0:return e=[],r=[],n=new(i()),this.slides.forEach(function(e){r=r.concat(Re(e))}),this.slideLayouts.forEach(function(e){r=r.concat(Re(e))}),r=r.concat(Re(this.masterSlide)),[4,Promise.all(r).then(function(){return s(o,void 0,void 0,function(){var r=this;return a(this,function(i){switch(i.label){case 0:return this.slides.forEach(function(e){e._slideLayout&&function(e){(e._slideLayout._slideObjects||[]).forEach(function(t){t._type===J.placeholder&&0===e._slideObjects.filter(function(e){return e.options&&e.options.placeholder===t.options.placeholder}).length&&ve(e,[{text:""}],t.options,!1)})}(e)}),n.folder("_rels"),n.folder("docProps"),n.folder("ppt").folder("_rels"),n.folder("ppt/charts").folder("_rels"),n.folder("ppt/embeddings"),n.folder("ppt/media"),n.folder("ppt/slideLayouts").folder("_rels"),n.folder("ppt/slideMasters").folder("_rels"),n.folder("ppt/slides").folder("_rels"),n.folder("ppt/theme"),n.folder("ppt/notesMasters").folder("_rels"),n.folder("ppt/notesSlides").folder("_rels"),n.file("[Content_Types].xml",function(e,t,r){var n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';return n+='<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">',n+='<Default Extension="xml" ContentType="application/xml"/>',n+='<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>',n+='<Default Extension="jpeg" ContentType="image/jpeg"/>',n+='<Default Extension="jpg" ContentType="image/jpg"/>',n+='<Default Extension="svg" ContentType="image/svg+xml"/>',n+='<Default Extension="png" ContentType="image/png"/>',n+='<Default Extension="gif" ContentType="image/gif"/>',n+='<Default Extension="m4v" ContentType="video/mp4"/>',n+='<Default Extension="mp4" ContentType="video/mp4"/>',e.forEach(function(e){(e._relsMedia||[]).forEach(function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||n.includes(e.type)||(n+='<Default Extension="'+e.extn+'" ContentType="'+e.type+'"/>')})}),n+='<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>',n+='<Default Extension="xlsx" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"/>',n+='<Override PartName="/ppt/presentation.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"/>',n+='<Override PartName="/ppt/notesMasters/notesMaster1.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml"/>',e.forEach(function(e,t){n+='<Override PartName="/ppt/slideMasters/slideMaster'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml"/>'),n+='<Override PartName="/ppt/slides/slide'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slide+xml"/>'),e._relsChart.forEach(function(e){n+='<Override PartName="'.concat(e.Target,'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>')})}),n+='<Override PartName="/ppt/presProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.presPro
2ps+xml"/>',n+='<Override PartName="/ppt/viewProps.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml"/>',n+='<Override PartName="/ppt/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>',n+='<Override PartName="/ppt/tableStyles.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml"/>',t.forEach(function(e,t){n+='<Override PartName="/ppt/slideLayouts/slideLayout'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml"/>'),(e._relsChart||[]).forEach(function(e){n+=' <Override PartName="'+e.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'})}),e.forEach(function(e,t){n+='<Override PartName="/ppt/notesSlides/notesSlide'.concat(t+1,'.xml" ContentType="application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml"/>')}),r._relsChart.forEach(function(e){n+=' <Override PartName="'+e.Target+'" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>'}),r._relsMedia.forEach(function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||n.includes(e.type)||(n+=' <Default Extension="'+e.extn+'" ContentType="'+e.type+'"/>')}),n+=' <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>',n+=' <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>',n+="</Types>"}(this.slides,this.slideLayouts,this.masterSlide)),n.file("_rels/.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n\t\t<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n\t\t<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="ppt/presentation.xml"/>\n\t\t</Relationships>')),n.file("docProps/app.xml",(d=this.slides,h=this.company,'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n\t<TotalTime>0</TotalTime>\n\t<Words>0</Words>\n\t<Application>Microsoft Office PowerPoint</Application>\n\t<PresentationFormat>On-screen Show (16:9)</PresentationFormat>\n\t<Paragraphs>0</Paragraphs>\n\t<Slides>').concat(d.length,"</Slides>\n\t<Notes>").concat(d.length,'</Notes>\n\t<HiddenSlides>0</HiddenSlides>\n\t<MMClips>0</MMClips>\n\t<ScaleCrop>false</ScaleCrop>\n\t<HeadingPairs>\n\t\t<vt:vector size="6" baseType="variant">\n\t\t\t<vt:variant><vt:lpstr>Fonts Used</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>2</vt:i4></vt:variant>\n\t\t\t<vt:variant><vt:lpstr>Theme</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>1</vt:i4></vt:variant>\n\t\t\t<vt:variant><vt:lpstr>Slide Titles</vt:lpstr></vt:variant>\n\t\t\t<vt:variant><vt:i4>').concat(d.length,'</vt:i4></vt:variant>\n\t\t</vt:vector>\n\t</HeadingPairs>\n\t<TitlesOfParts>\n\t\t<vt:vector size="').concat(d.length+1+2,'" baseType="lpstr">\n\t\t\t<vt:lpstr>Arial</vt:lpstr>\n\t\t\t<vt:lpstr>Calibri</vt:lpstr>\n\t\t\t<vt:lpstr>Office Theme</vt:lpstr>\n\t\t\t').concat(d.map(function(e,t){return"<vt:lpstr>Slide ".concat(t+1,"</vt:lpstr>")}).join(""),"\n\t\t</vt:vector>\n\t</TitlesOfParts>\n\t<Company>").concat(h,"</Company>\n\t<LinksUpToDate>false</LinksUpToDate>\n\t<SharedDoc>false</SharedDoc>\n\t<HyperlinksChanged>false</HyperlinksChanged>\n\t<AppVersion>16.0000</AppVersion>\n\t</Properties>"))),n.file("docProps/core.xml",(o=this.title,l=this.subject,c=this.author,u=this.revision,'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t<cp:coreProperties 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">\n\t\t<dc:title>'.concat(oe(o),"</dc:title>\n\t\t<dc:subject>").concat(oe(l),"</dc:subject>\n\t\t<dc:creator>").concat(oe(c),"</dc:creator>\n\t\t<cp:lastModifiedBy>").concat(oe(c),"</cp:lastModifiedBy>\n\t\t<cp:revision>").concat(u,'</cp:revision>\n\t\t<dcterms:created xsi:type="dcterms:W3CDTF">').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),'</dcterms:created>\n\t\t<dcterms:modified xsi:type="dcterms:W3CDTF">').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),"</dcterms:modified>\n\t</cp:coreProperties>"))),n.file("ppt/_rels/presentation.xml.rels",function(e){var t=1,r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';r+='<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">',r+='<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster" Target="slideMasters/slideMaster1.xml"/>';for(var n=1;n<=e.length;n++)r+='<Relationship Id="rId'.concat(++t,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="slides/slide').concat(n,'.xml"/>');return t++,r+('<Relationship Id="rId'.concat(t+0,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notes
2Master" Target="notesMasters/notesMaster1.xml"/>')+'<Relationship Id="rId'.concat(t+1,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps" Target="presProps.xml"/>')+'<Relationship Id="rId'.concat(t+2,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps" Target="viewProps.xml"/>')+'<Relationship Id="rId'.concat(t+3,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/>')+'<Relationship Id="rId'.concat(t+4,'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles" Target="tableStyles.xml"/>')+"</Relationships>")}(this.slides)),n.file("ppt/theme/theme1.xml",function(e){var t,r,n,i,o=(null===(t=e.theme)||void 0===t?void 0:t.headFontFace)?'<a:latin typeface="'.concat(null===(r=e.theme)||void 0===r?void 0:r.headFontFace,'"/>'):'<a:latin typeface="Calibri Light" panose="020F0302020204030204"/>',s=(null===(n=e.theme)||void 0===n?void 0:n.bodyFontFace)?'<a:latin typeface="'.concat(null===(i=e.theme)||void 0===i?void 0:i.bodyFontFace,'"/>'):'<a:latin typeface="Calibri" panose="020F0502020204030204"/>';return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?><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="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont>'.concat(o,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf Light"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Angsana New"/><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:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont>').concat(s,'<a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf"/>
2<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Cordia New"/><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:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></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:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>')}(this)),n.file("ppt/presentation.xml",function(e){var t='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f)+'<p:presentation xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" '+'xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" '.concat(e.rtlMode?'rtl="
21"':"",' saveSubsetFonts="1" autoCompressPictures="0">');t+='<p:sldMasterIdLst><p:sldMasterId id="2147483648" r:id="rId1"/></p:sldMasterIdLst>',t+="<p:sldIdLst>",e.slides.forEach(function(e){return t+='<p:sldId id="'.concat(e._slideId,'" r:id="rId').concat(e._rId,'"/>')}),t+="</p:sldIdLst>",t+='<p:notesMasterIdLst><p:notesMasterId r:id="rId'.concat(e.slides.length+2,'"/></p:notesMasterIdLst>'),t+='<p:sldSz cx="'.concat(e.presLayout.width,'" cy="').concat(e.presLayout.height,'"/>'),t+='<p:notesSz cx="'.concat(e.presLayout.height,'" cy="').concat(e.presLayout.width,'"/>'),t+="<p:defaultTextStyle>";for(var r=1;r<10;r++)t+="<a:lvl".concat(r,'pPr marL="').concat(457200*(r-1),'" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1">')+'<a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/>'+"</a:defRPr></a:lvl".concat(r,"pPr>");return t+="</p:defaultTextStyle>",e.sections&&e.sections.length>0&&(t+='<p:extLst><p:ext uri="{521415D9-36F7-43E2-AB2F-B90AF26B5E84}">',t+='<p14:sectionLst xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main">',e.sections.forEach(function(e){t+='<p14:section name="'.concat(oe(e.title),'" id="{').concat(ie("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),'}"><p14:sldIdLst>'),e._slides.forEach(function(e){return t+='<p14:sldId id="'.concat(e._slideId,'"/>')}),t+="</p14:sldIdLst></p14:section>"}),t+="</p14:sectionLst></p:ext>",t+='<p:ext uri="{EFAFB233-063F-42B5-8137-9DF3F51BA10A}"><p15:sldGuideLst xmlns:p15="http://schemas.microsoft.com/office/powerpoint/2012/main"/></p:ext>',t+="</p:extLst>"),t+="</p:presentation>"}(this)),n.file("ppt/presProps.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<p:presentationPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"/>')),n.file("ppt/tableStyles.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<a:tblStyleLst xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" def="{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"/>')),n.file("ppt/viewProps.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<p:viewPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:normalViewPr horzBarState="maximized"><p:restoredLeft sz="15611"/><p:restoredTop sz="94610"/></p:normalViewPr><p:slideViewPr>
2<p:cSldViewPr snapToGrid="0" snapToObjects="1"><p:cViewPr varScale="1"><p:scale><a:sx n="136" d="100"/><a:sy n="136" d="100"/></p:scale><p:origin x="216" y="312"/></p:cViewPr><p:guideLst/></p:cSldViewPr></p:slideViewPr><p:notesTextViewPr><p:cViewPr><p:scale><a:sx n="1" d="1"/><a:sy n="1" d="1"/></p:scale><p:origin x="0" y="0"/></p:cViewPr></p:notesTextViewPr><p:gridSpacing cx="76200" cy="76200"/></p:viewPr>')),this.slideLayouts.forEach(function(e,t){var i;n.file("ppt/slideLayouts/slideLayout".concat(t+1,".xml"),function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t\t<p:sldLayout xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main" preserve="1">\n\t\t'.concat(Le(e),"\n\t\t<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sldLayout>")}(e)),n.file("ppt/slideLayouts/_rels/slideLayout".concat(t+1,".xml.rels"),(i=t+1,Be(r.slideLayouts[i-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])))}),this.slides.forEach(function(e,t){n.file("ppt/slides/slide".concat(t+1,".xml"),function(e){return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f)+'<p:sld xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"'+"".concat((null===e||void 0===e?void 0:e.hidden)?' show="0"':"",">")+"".concat(Le(e))+"<p:clrMapOvr><a:masterClrMapping/></p:clrMapOvr></p:sld>"}(e)),n.file("ppt/slides/_rels/slide".concat(t+1,".xml.rels"),function(e,t,r){return Be(e[r-1],[{target:"../slideLayouts/slideLayout".concat(Ve(e,t,r),".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:"../notesSlides/notesSlide".concat(r,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}(r.slides,r.slideLayouts,t+1)),n.file("ppt/notesSlides/notesSlide".concat(t+1,".xml"),He(e)),n.file("ppt/notesSlides/_rels/notesSlide".concat(t+1,".xml.rels"),'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n\t\t<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/notes
2Master" Target="../notesMasters/notesMaster1.xml"/>\n\t\t\t<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide" Target="../slides/slide'.concat(t+1,'.xml"/>\n\t\t</Relationships>'))}),n.file("ppt/slideMasters/slideMaster1.xml",function(e,t){var r=t.map(function(t,r){return'<p:sldLayoutId id="'.concat(2147483649+r,'" r:id="rId').concat(e._rels.length+r+1,'"/>')}),n='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';return n+='<p:sldMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main">',n+=Le(e),n+='<p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/>',n+="<p:sldLayoutIdLst>"+r.join("")+"</p:sldLayoutIdLst>",n+='<p:hf sldNum="0" hdr="0" ftr="0" dt="0"/>',n+='<p:txStyles> <p:titleStyle> <a:lvl1pPr algn="ctr" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="0"/></a:spcBef><a:buNone/><a:defRPr sz="4400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mj-lt"/><a:ea typeface="+mj-ea"/><a:cs typeface="+mj-cs"/></a:defRPr></a:lvl1pPr> </p:titleStyle> <p:bodyStyle> <a:lvl1pPr marL="342900" indent="-342900" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="3200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="742950" indent="-285750" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2013"/><a:defRPr sz="2800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="1143000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2400" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1600200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2013"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="2057400" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\xbb"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2514600" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2971800" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3429000" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3886200" indent="-228600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:spcBef><a:spcPct val="20000"/></a:spcBef><a:buFont typeface="Arial" pitchFamily="34" charset="0"/><a:buChar char="\u2022"/><a:defRPr sz="2000" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:bodyStyle> <p:otherStyle> <a:defPPr><a:defRPr lang="en-US"/></a:defPPr> <a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr> <a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr> <a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr> <a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr> <a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr> <a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr> <a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr> <a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr> <a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1800" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr> </p:otherStyle></p:txStyles>',n+"</p:sldMaster>"}(this.masterSlide,this.slideLayouts)),n.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(e,t){var r=t.map(function(e,t){return{target:"../slideLayouts/slideLayout".concat(t+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}});return r.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),Be(e,r)}(this.masterSlide,this.slideLayouts)),n.file("ppt/notesMasters/notesMaster1.xml",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<p:notesMaster xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:p="http://schemas.openxmlformats.org/presentationml/2006/main"><p:cSld><p:bg><p:bgRef idx="1001"><a:schemeClr val="bg1"/></p:bgRef></p:bg><p:spTree><p:nvGrpSpPr><p:cNvPr id="1" name=""/><p:cNvGrpSpPr/><p:nvPr/></p:nvGrpSpPr><p:grpSpPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="0" cy="0"/><a:chOff x="0" y="0"/><a:chExt cx="0" cy="0"/></a:xfrm></p:grpSpPr><p:sp><p:nvSpPr><p:cNvPr id="2" name="Header Placeholder 1"/>
2<p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="hdr" sz="quarter"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="3" name="Date Placeholder 2"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="dt" idx="1"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="0"/><a:ext cx="2971800" cy="458788"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{5282F153-3F37-0F45-9E97-73ACFA13230C}" type="datetimeFigureOut"><a:rPr lang="en-US"/><a:t>7/23/19</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="4" name="Slide Image Placeholder 3"/><p:cNvSpPr><a:spLocks noGrp="1" noRot="1" noChangeAspect="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldImg" idx="2"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="1143000"/><a:ext cx="5486400" cy="3086100"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom><a:noFill/><a:ln w="12700"><a:solidFill><a:prstClr val="black"/></a:solidFill></a:ln></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="ctr"/><a:lstStyle/><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="5" name="Notes Placeholder 4"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="body" sz="quarter" idx="3"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="685800" y="4400550"/><a:ext cx="5486400" cy="3600450"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0"/><a:lstStyle/><a:p><a:pPr lvl="0"/><a:r><a:rPr lang="en-US"/><a:t>Click to edit Master text styles</a:t></a:r></a:p><a:p><a:pPr lvl="1"/><a:r><a:rPr lang="en-US"/><a:t>Second level</a:t></a:r></a:p><a:p><a:pPr lvl="2"/><a:r><a:rPr lang="en-US"/><a:t>Third level</a:t></a:r></a:p><a:p><a:pPr lvl="3"/><a:r><a:rPr lang="en-US"/><a:t>Fourth level</a:t></a:r></a:p><a:p><a:pPr lvl="4"/><a:r><a:rPr lang="en-US"/><a:t>Fifth level</a:t></a:r></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="6" name="Footer Placeholder 5"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="ftr" sz="quarter" idx="4"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="0" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="l"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp><p:sp><p:nvSpPr><p:cNvPr id="7" name="Slide Number Placeholder 6"/><p:cNvSpPr><a:spLocks noGrp="1"/></p:cNvSpPr><p:nvPr><p:ph type="sldNum" sz="quarter" idx="5"/></p:nvPr></p:nvSpPr><p:spPr><a:xfrm><a:off x="3884613" y="8685213"/><a:ext cx="2971800" cy="458787"/></a:xfrm><a:prstGeom prst="rect"><a:avLst/></a:prstGeom></p:spPr><p:txBody><a:bodyPr vert="horz" lIns="91440" tIns="45720" rIns="91440" bIns="45720" rtlCol="0" anchor="b"/><a:lstStyle><a:lvl1pPr algn="r"><a:defRPr sz="1200"/></a:lvl1pPr></a:lstStyle><a:p><a:fld id="{CE5E9CC1-C706-0F49-92D6-E571CC5EEA8F}" type="slidenum"><a:rPr lang="en-US"/><a:t>\u2039#\u203a</a:t></a:fld><a:endParaRPr lang="en-US"/></a:p></p:txBody></p:sp></p:spTree><p:extLst><p:ext uri="{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}"><p14:creationId xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main" val="1024086991"/></p:ext></p:extLst></p:cSld><p:clrMap bg1="lt1" tx1="dk1" bg2="lt2" tx2="dk2" accent1="accent1" accent2="accent2" accent3="accent3" accent4
2="accent4" accent5="accent5" accent6="accent6" hlink="hlink" folHlink="folHlink"/><p:notesStyle><a:lvl1pPr marL="0" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl1pPr><a:lvl2pPr marL="457200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl2pPr><a:lvl3pPr marL="914400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl3pPr><a:lvl4pPr marL="1371600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl4pPr><a:lvl5pPr marL="1828800" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl5pPr><a:lvl6pPr marL="2286000" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl6pPr><a:lvl7pPr marL="2743200" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl7pPr><a:lvl8pPr marL="3200400" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl8pPr><a:lvl9pPr marL="3657600" algn="l" defTabSz="914400" rtl="0" eaLnBrk="1" latinLnBrk="0" hangingPunct="1"><a:defRPr sz="1200" kern="1200"><a:solidFill><a:schemeClr val="tx1"/></a:solidFill><a:latin typeface="+mn-lt"/><a:ea typeface="+mn-ea"/><a:cs typeface="+mn-cs"/></a:defRPr></a:lvl9pPr></p:notesStyle></p:notesMaster>')),n.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'.concat(f,'<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n\t\t<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="../theme/theme1.xml"/>\n\t\t</Relationships>')),this.slideLayouts.forEach(function(t){r.createChartMediaRels(t,n,e)}),this.slides.forEach(function(t){r.createChartMediaRels(t,n,e)}),this.createChartMediaRels(this.masterSlide,n,e),[4,Promise.all(e).then(function(){return s(r,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return"STREAM"!==t.outputType?[3,2]:[4,n.generateAsync({type:"nodebuffer",compression:t.compression?"DEFLATE":"STORE"})];case 1:case 3:case 5:return[2,e.sent()];case 2:return t.outputType?[4,n.generateAsync({type:t.outputType})]:[3,4];case 4:return[4,n.generateAsync({type:"blob",compression:t.compression?"DEFLATE":"STORE"})]}})})})];case 1:return[2,i.sent()]}var o,l,c,u,d,h})})})];case 1:return[2,l.sent()]}})})};this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[E].name,_sizeW:this.LAYOUTS[E].width,_sizeH:this.LAYOUTS[E].height,width:this.LAYOUTS[E].width,height:this.LAYOUTS[E].height},this._rtlMode=!1,this._slideLayouts=[{_margin:N,_name:T,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(e.prototype,"layout",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error("UNKNOWN-LAYOUT");this._layout=e,this._presLayout=t}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"theme",{get:function(){return this._theme},set:function(e){this._theme=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),e.prototype.stream=function(e){return s(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.exportPresentation({compression:null===e||void 0===e?void 0:e.compression,outputType:"STREAM"})];case 1:return[2,t.sent()]}})})},e.prototype.write=function(e){return s(this,void 0,void 0,function(){var t,r;return a(this,function(n){switch(n.label){case 0:return t="object"===typeof e&&(null===e||void 0===e?void 0:e.outputType)?e.outputType:e||null,r=!("object"!==typeof e||!(null===e||void 0===e?void 0:e.compression))&&e.compression,[4,this.exportPresentation({compression:r,outputType:t})];case 1:return[2,n.sent()]}})})},e.prototype.writeFile=function(e){return s(this,void 0,void 0,function(){var t,n,i,o,l=this;return a(this,function(c){switch(c.label){case 0:return t="undefined"===typeof window?r(9912):null,"string"===typeof e&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),n="object"===typeof e&&(null===e||void 0===e?void 0:e.fileName)?e.fileName:"string"===typeof e?e:"",i=!("object"!==typeof e||!(null===e||void 0===e?void 0:e.compression))&&e.compression,o=n?n.toString().toLowerCase().endsWith(".pptx")?n:n+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:i,outputType:t?"nodebuffer":null}).then(function(e){return s(l,void 0,void 0,function(){return a(this,function(r){switch(r.label){case 0:return t?[4,new Promise(function(r,n){t.writeFile(o,e,function(e){e?n(e):r(o)})})]:[3,2];case 1:case 3:return[2,r.sent()];case 2:return[4,this.writeFileToBrowser(o,e)]}})})})];case 1:return[2,c.sent()]}})})},e.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var t={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},e.prototype.addSlide=function(e){var t="string"===typeof e?e:(null===e||void 0===e?void 0:e.masterName)?e.masterName:"",r={_name:this.LAYOUTS[E].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(t){var n=this.slideLayouts.filter(function(e){return e._name===t})[0];n&&(r=n)}var i=new ke({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:r});if(this._slides.push(i),null===e||void 0===e?void 0:e.sectionTitle){var o=this.sections.filter(function(t){return t.title===e.sectionTitle})[0];o?o._slides.push(i):console.warn('addSlide: unable to find section with title: "'.concat(e.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&!(null===e||void 0===e?void 0:e.sectionTitle)){var s=this._sections[this.sections.length-1];"default"===s._type?s._slides.push(i):this._sections.push({title:"Default-".concat(this.sections.filter(function(e){return"default"===e._type}).length+1),_type:"default",_slides:[i]})}return i},e.prototype.defineLayout=function(e){e?e.name?e.width?e.height?"number"!==typeof e.height?console.warn("defineLayout `height` should be a number (inches)"):"number"!==typeof e.width&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[e.name]={name:e.name,_sizeW:Math.round(Number(e.width)*d),_sizeH:Math.round(Number(e.height)*d),width:Math.round(Number(e.width)*d),height:Math.round(Number(e.height)*d)}},e.prototype.defineSlideMaster=function(e){if(!e.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var t={_margin:e.margin||N,_name:e.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:e.slideNumber||null,_slideObjects:[],background:e.background||null,bkgd:e.bkgd||null};!function(e,t){e.bkgd&&(t.bkgd=e.bkgd),e.objects&&Array.isArray(e.objects)&&e.objects.length>
20&&e.objects.forEach(function(e,r){var n=Object.keys(e)[0],i=t;Q[n]&&"chart"===n?be(i,e[n].type,e[n].data,e[n].opts):Q[n]&&"image"===n?ye(i,e[n]):Q[n]&&"line"===n?Ae(i,X.LINE,e[n]):Q[n]&&"rect"===n?Ae(i,X.RECTANGLE,e[n]):Q[n]&&"text"===n?ve(i,[{text:e[n].text}],e[n].options,!1):Q[n]&&"placeholder"===n&&(e[n].options.placeholder=e[n].options.name,delete e[n].options.name,e[n].options._placeholderType=e[n].options.type,delete e[n].options.type,e[n].options._placeholderIdx=100+r,ve(i,[{text:e[n].text}],e[n].options,!0))}),e.slideNumber&&"object"===typeof e.slideNumber&&(t._slideNumberProps=e.slideNumber)}(e,t),this.slideLayouts.push(t),(e.background||e.bkgd)&&we(e.background,t),t._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=t._slideNumberProps)},e.prototype.tableToSlides=function(e,t){void 0===t&&(t={}),function(e,t,r,n){void 0===r&&(r={});var i=r||{};i.slideMargin=i.slideMargin||0===i.slideMargin?i.slideMargin:.5;var o=i.w||e.presLayout.width,s=[],a=[],c=[],u=[],h=[],f=[.5,.5,.5,.5],p=0;if(!document.getElementById(t))throw new Error('tableToSlides: Table ID "'+t+'" does not exist!');(null===n||void 0===n?void 0:n._margin)?(Array.isArray(n._margin)?f=n._margin:isNaN(n._margin)||(f=[n._margin,n._margin,n._margin,n._margin]),i.slideMargin=f):(null===i||void 0===i?void 0:i.slideMargin)&&(Array.isArray(i.slideMargin)?f=i.slideMargin:isNaN(i.slideMargin)||(f=[i.slideMargin,i.slideMargin,i.slideMargin,i.slideMargin])),o=(i.w?se(i.w):e.presLayout.width)-se(f[1]+f[3]),i.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log("| tableProps.h .................................... = ".concat(i.h)),console.log("| tableProps.w .................................... = ".concat(i.w)),console.log("| pptx.presLayout.width ........................... = ".concat((e.presLayout.width/d).toFixed(1))),console.log("| pptx.presLayout.height .......................... = ".concat((e.presLayout.height/d).toFixed(1))),console.log("| emuSlideTabW .................................... = ".concat((o/d).toFixed(1))));var m=document.querySelectorAll("#".concat(t," tr:first-child th"));0===m.length&&(m=document.querySelectorAll("#".concat(t," tr:first-child td"))),m.forEach(function(e){if(e.getAttribute("colspan"))for(var t=0;t<Number(e.getAttribute("colspan"));t++)h.push(Math.round(e.offsetWidth/Number(e.getAttribute("colspan"))));else h.push(e.offsetWidth)}),h.forEach(function(e){p+=e}),h.forEach(function(e,r){var n=Number((Number(o)*(e/p*100)/100/d).toFixed(2)),i=0,s=document.querySelector("#".concat(t," thead tr:first-child th:nth-child(").concat(r+1,")"));s&&(i=Number(s.getAttribute("data-pptx-min-width")));var a=document.querySelector("#".concat(t," thead tr:first-child th:nth-child(").concat(r+1,")"));a&&(i=Number(a.getAttribute("data-pptx-width"))),u.push(i>n?i:n)}),i.verbose&&console.log("| arrColW ......................................... = [".concat(u.join(", "),"]")),["thead","tbody","tfoot"].forEach(function(e){document.querySelectorAll("#".concat(t," ").concat(e," tr")).forEach(function(t){var r=[];switch(Array.from(t.cells).forEach(function(e){var t=window.getComputedStyle(e).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(","),n=window.getComputedStyle(e).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");("rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||window.getComputedStyle(e).getPropertyValue("transparent"))&&(n=["255","255","255"]);var i={align:null,bold:!!("bold"===window.getComputedStyle(e).getPropertyValue("font-weight")||Number(window.getComputedStyle(e).getPropertyValue("font-weight"))>=500),border:null,color:ue(Number(t[0]),Number(t[1]),Number(t[2])),fill:{color:ue(Number(n[0]),Number(n[1]),Number(n[2]))},fontFace:(window.getComputedStyle(e).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(e).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(e.getAttribute("colspan"))||null,rowspan:Number(e.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].includes(window.getComputedStyle(e).getPropertyValue("text-align"))){var o=window.getComputedStyle(e).getPropertyValue("text-align").replace("start","left").replace("end","right");i.align="center"===o?"center":"left"===o?"left":"right"===o?"right":null}if(["top","middle","bottom"].includes(window.getComputedStyle(e).getPropertyValue("vertical-align"))){var s=window.getComputedStyle(e).getPropertyValue("vertical-align");i.valign="top"===s?"top":"middle"===s?"middle":"bottom"===s?"bottom":null}window.getComputedStyle(e).getPropertyValue("padding-left")&&(i.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach(function(t,r){i.margin[r]=Math.round(Number(window.getComputedStyle(e).getPropertyValue(t).replace(/\D/gi,"")))})),(window.getComputedStyle(e).getPropertyValue("border-top-width")||window.getComputedStyle(e).getPropertyValue("border-right-width")||window.getComputedStyle(e).getPropertyValue("border-bottom-width")||window.getComputedStyle(e).getPropertyValue("border-left-width"))&&(i.border=[null,
2null,null,null],["top","right","bottom","left"].forEach(function(t,r){var n,o=Math.round(Number(window.getComputedStyle(e).getPropertyValue("border-"+t+"-width").replace("px","")));n=window.getComputedStyle(e).getPropertyValue("border-"+t+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");var s=ue(Number(n[0]),Number(n[1]),Number(n[2]));i.border[r]={pt:o,color:s}})),r.push({_type:J.tablecell,text:e.innerText,options:i})}),e){case"thead":s.push(r);break;case"tbody":a.push(r);break;case"tfoot":c.push(r);break;default:console.log("table parsing: unexpected table part: ".concat(e))}})}),i._arrObjTabHeadRows=s||null,i.colW=u,me(l(l(l([],s,!0),a,!0),c,!0),i,e.presLayout,n).forEach(function(t,r){var n=e.addSlide({masterName:i.masterSlideName||null});0===r&&(i.y=i.y||f[0]),r>0&&(i.y=i.autoPageSlideStartY||i.newSlideStartY||f[0]),i.verbose&&console.log("| opts.autoPageSlideStartY: ".concat(i.autoPageSlideStartY," / arrInchMargins[0]: ").concat(f[0]," => opts.y = ").concat(i.y)),n.addTable(t.rows,{x:i.x||f[3],y:i.y,w:Number(o)/d,colW:u,autoPage:!1}),i.addImage&&(i.addImage.options=i.addImage.options||{},i.addImage.image&&(i.addImage.image.path||i.addImage.image.data)?n.addImage({path:i.addImage.image.path,data:i.addImage.image.data,x:i.addImage.options.x,y:i.addImage.options.y,w:i.addImage.options.w,h:i.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),i.addShape&&n.addShape(i.addShape.shapeName,i.addShape.options||{}),i.addTable&&n.addTable(i.addTable.rows,i.addTable.options||{}
2),i.addText&&n.addText(i.addText.text,i.addText.options||{})})}(this,e,t,(null===t||void 0===t?void 0:t.masterSlideName)?this.slideLayouts.filter(function(e){return e._name===t.masterSlideName})[0]:null)},e}()},4901(e){var t="undefined"!==typeof Element,r="function"===typeof Map,n="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(e,s){if(e===s)return!0;if(e&&s&&"object"==typeof e&&"object"==typeof s){if(e.constructor!==s.constructor)return!1;var a,l,c,u;if(Array.isArray(e)){if((a=e.length)!=s.length)return!1;for(l=a;0!==l--;)if(!o(e[l],s[l]))return!1;return!0}if(r&&e instanceof Map&&s instanceof Map){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!o(l.value[1],s.get(l.value[0])))return!1;return!0}if(n&&e instanceof Set&&s instanceof Set){if(e.size!==s.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!s.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(s)){if((a=e.length)!=s.length)return!1;for(l=a;0!==l--;)if(e[l]!==s[l])return!1;return!0}if(e.constructor===RegExp)return e.source===s.source&&e.flags===s.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof s.valueOf)return e.valueOf()===s.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof s.toString)return e.toString()===s.toString();if((a=(c=Object.keys(e)).length)!==Object.keys(s).length)return!1;for(l=a;0!==l--;)if(!Object.prototype.hasOwnProperty.call(s,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=a;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!o(e[c[l]],s[c[l]]))return!1;return!0}return e!==e&&s!==s}e.exports=function(e,t){try{return o(e,t)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}}},759(e,t,r){"use strict";var n=r(9950);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=n.useState,s=n.useEffect,a=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(n){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=o({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return a(function(){i.value=r,i.getSnapshot=t,c(i)&&u({inst:i})},[e,r,t]),s(function(){return c(i)&&u({inst:i}),e(function(){c(i)&&u({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},9940(e,t,r){"use strict";var n=r(9950),i=r(6538);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},s=i.useSyncExternalStore,a=n.useRef,l=n.useEffect,c=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=a(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=c(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==i&&h.hasValue){var t=h.value;if(i(t,e))return a=t}return a=e}if(t=a,o(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(s=e,t):(s=e,a=r)}var s,a,l=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]);var f=s(e,d[0],d[1]);return l(function(){h.hasValue=!0,h.value=f},[f]),u(f),f}},6538(e,t,r){"use strict";e.exports=r(759)},3044(e,t,r){"use strict";e.exports=r(9940)},9367(e,t,r){"use strict";r.d(t,{O:()=>L});var n=r(9950),i=r(6791),o=r.n(i),s=r(3410),a=r(2742),l=r(6374),c=r(3204),u=r(725),d=r(8682),h=r(5212),f=r(1328),p=r(210),m=r.n(p),g=r(1423),b=r(95);const y={top:-1,left:-1,right:1,bottom:1},A=e=>null!==e&&void 0!==e,v=function(e,t){void 0===t&&(t={});const r=e.style||{};return{parent:m()(r.parent,t.parent,{height:"100%",width:"100%"}),axis:m()({},r.axis,t.axis),axisLabel:m()({},r.axisLabel,t.axisLabel),grid:m()({},r.grid,t.grid),ticks:m()({},r.ticks,t.ticks),tickLabels:m()({},r.tickLabels,t.tickLabels)}},w=(e,t,r)=>{const{position:n,transform:i}=e;return{x1:i.x,y1:i.y,x2:i.x+n.x2,y2:i.y+n.y2,style:t,datum:r}},x=(e,t,r,n,i)=>{const{position:o,transform:s}=e;return{style:t,x:s.x+o.x,y:s.y+o.y,verticalAnchor:r.verticalAnchor,textAnchor:r.textAnchor,angle:t.angle,text:i,datum:n}},k=(e,t,r)=>{const{edge:n,transform:i}=e;return{x1:i.x,y1:i.y,x2:n.x+i.x,y2:n.y+i.y,style:t,datum:r}},C=(e,t,r)=>{const n=t||"positive";return r?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[n][e]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[n][e]},_=(e,t)=>
2e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t,S=(e,t,r)=>{const{orientation:n,axis:i}=t,o=u.hN(e,i);return{top:{x:0,y:void 0!==o?o:r.y},bottom:{x:0,y:void 0!==o?o:e.height-r.y},left:{x:void 0!==o?o:r.x,y:0},right:{x:void 0!==o?o:e.width-r.x,y:0}}[n]},E=(e,t,r)=>{const{tickStyle:n,labelStyle:i}=e,o=n.size||0,s=o+(n.padding||0)+(i.padding||0),a=y[t];return{x:r?a*s:0,x2:r?a*o:0,y:r?0:a*s,y2:r?0:a*o}},T=(e,t,r)=>({x:r?t.x:e+t.x,y:r?e+t.y:t.y}),M=(e,t)=>{const{orientation:r,padding:n,isVertical:i}=t,o=-y[r];return{x:i?o*(e.width-(n.left+n.right)):0,y:i?0:o*(e.height-(n.top+n.bottom))}},O=(e,t)=>{const{padding:r,orientation:n,crossAxis:i}=e,o="right"===n?r.right:r.left,s="top"===n?r.top:r.bottom;return{x:i?t.x-o:0,y:i?t.y-s:0}},N=(e,t)=>{let r;return r=t.domain.x&&t.domain.y?e.horizontal?((e,t)=>{const{scale:r,origin:n,orientation:i,orientations:o,domain:s,padding:a}=t,{top:l,bottom:c,left:u,right:d}=a,h="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"bottom"===h?c:l,y:"left"===f?u:d},m="left"===f?0:e.width,g="bottom"===h?e.height:0,b=_(n.x,s.x[0])||_(n.x,s.x[1])?0:r.x(n.x),y=_(n.y,s.y[0])||_(n.y,s.y[1])?0:r.y(n.y),v=b?Math.abs(g-b):p.x,w=y?Math.abs(m-y):p.y;return{x:A(e.offsetX)?e.offsetX:w,y:A(e.offsetY)?e.offsetY:v}})(e,t):((e,t)=>{const{scale:r,origin:n,orientation:i,orientations:o,domain:s,padding:a}=t,{top:l,bottom:c,left:u,right:d}=a,h="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"left"===f?u:d,y:"bottom"===h?c:l},m="left"===f?0:e.width,g="bottom"===h?e.height:0,b=_(n.x,s.x[0])||_(n.x,s.x[1])?0:r.x(n.x),y=_(n.y,s.y[0])||_(n.y,s.y[1])?0:r.y(n.y),v=b?Math.abs(m-b):p.x,w=y?Math.abs(g-y):p.y;return{x:A(e.offsetX)?e.offsetX:v,y:A(e.offsetY)?e.offsetY:w}})(e,t):((e,t)=>{const{style:r,scale:n,orientation:i,padding:o,axis:s,ticks:a,stringTicks:l,isVertical:c,labelPadding:u}=t,{polar:d,horizontal:h}=e,f={scale:{[s]:n},polar:d,horizontal:h,ticks:a,stringTicks:l},p="right"===i?o.right:o.left,m="top"===i?o.top:o.bottom,g=null!==e.offsetX&&void 0!==e.offsetX?e.offsetX:p,y=null!==e.offsetY&&void 0!==e.offsetY?e.offsetY:m,A=r.axisLabel.fontSize||14,v=a.map((t,n)=>{const i=l?e.tickValues[t-1]:t;return b.xj(r.ticks,Object.assign({},f,{tick:i,index:n})).size||0}),w=A+2*Math.max(...v)+u,x=1.2*A;return{x:null!==g&&void 0!==g?g:c?w:x,y:null!==y&&void 0!==y?y:c?x:w}})(e,t),{globalTransform:S(e,t,r),gridOffset:O(t,r),gridEdge:M(e,t)}},P=e=>{const t=(e=>{const{theme:t,dependentAxis:r}=e,n=t&&t.axis&&t.axis.style,i=r?"dependentAxis":"independentAxis",o=t&&t[i]&&t[i].style;return n&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((e,t)=>(e[t]=m()({},o[t],n[t]),e),{}):o||n})(e),r=v(e,t),n=b.Cq(e.padding),i=((e,t)=>{const r=t.axisLabel||{};if(void 0!==r.padding&&null!==r.padding)return r.padding;const n=u.fk(e),i=r.fontSize||14;return e.label?i*(n?2.3:1.6):0})(e,r),o=u.UK(e)?e.tickValues:void 0,s=u.C3(e),a=u.FB(e),l=(e=>{const t=u.C3(e),r=((e,t)=>{const{orientation:r,horizontal:n}=e;return r?{top:"x",bottom:"x",left:"y",right:"y"}[r]:n?"x"===t?"y":"x":t})(e,t),n=g.wV(e,t),i=e.domain&&e.domain[t]||u.FB(e)||n.domain();return n.range(b.eO(e,r)),n.domain(i),n})(e),c="x"===s?a:void 0,d="y"===s?a:void 0,h="x"===s?l:void 0,f="y"===s?l:void 0,p=!(!1===e.crossAxis||!0===e.standalone),y=u.fC(e,l,p),A=u.RE(e,l),w={x:b.eO(e,"x"),y:b.eO(e,"y")},x={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:d},k={x:e.domain&&e.domain.x?g.wV(e,"x").domain(e.domain.x).range(e.horizontal?w.y:w.x):h,y:e.domain&&e.domain.y?g.wV(e,"y").domain(e.domain.y).range(e.horizontal?w.x:w.y):f},_=x.x&&x.y?u.$z(x):void 0,S=_?{x:u.Oi(_.x,x.x),y:u.Oi(_.y,x.y)}:void 0,E=S?{x:C("x",S.y,e.horizontal),y:C("y",S.x,e.horizontal)}:void 0,T=E?e.orientation||E[s]:(e=>{if(e.orientation)return e.orientation;const t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent})(e),M=u.fk(Object.assign({},e,{orientation:T})),O=((e,t)=>{const r={top:"end",left:"end",right:"start",bottom:"start"}[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}})(T,M);return{anchors:O,axis:s,crossAxis:p,domain:x,isVertical:M,labelPadding:i,orientation:T,orientations:E,origin:_,padding:n,scale:k,stringTicks:o,style:r,tickFormat:A,ticks:y}},R=(e,t)=>{const r=u.Ly(e,t),n=P(r),{axis:i,style:o,orientation:s,isVertical:a,scale:l,ticks:c,tickFormat:d,anchors:h,domain:f,stringTicks:p}=n,m="x"===i?"y":"x",{width:g,height:A,standalone:v,theme:C,polar:_,padding:S,horizontal:M}=r,{globalTransform:O,gridOffset:R,gridEdge:D}=N(r,n),I={scale:{[i]:l[i]},polar:_,horizontal:M,ticks:c,stringTicks:p},L=((e,t,r)=>{const{style:n,padding:i,isVertical:o}=t,{width:s,height:a}=e;return{style:n.axis,x1:o?r.x:i.left+r.x,x2:o?r.x:s-i.right+r.x,y1:o?i.top+r.y:r.y,y2:o?a-i.bottom+r.y:r.y}})(r,n,O),B=((e,t,r)=>{const{style:n,orientation:i,padding:o,labelPadding:s,isVertical:a}=t,l=y[i],c=o.left+o.right,u=o.top+o.bottom,d=l<0?"end":"start",h=n.axisLabel,f
2=a?-90:0;return{x:a?r.x+l*s:(e.width-c)/2+o.left+r.x,y:a?(e.height-u)/2+o.top+r.y:l*s+r.y,verticalAnchor:h.verticalAnchor||d,textAnchor:h.textAnchor||"middle",angle:void 0===h.angle?f:h.angle,style:h,text:e.label}})(r,n,O),j={parent:Object.assign({style:o.parent,ticks:c,standalone:v,theme:C,width:g,height:A,padding:S,domain:f},I)},F={dimension:m,range:{[m]:b.eO(r,m)},scale:r.scale&&r.scale[m]?{[m]:r.scale[m]}:void 0};return c.reduce((e,t,r)=>{const n=p?p[r]:t,u=d(t,r,c),f=((e,t)=>({tickStyle:b.xj(e.ticks,t),labelStyle:b.xj(e.tickLabels,t),gridStyle:b.xj(e.grid,t)}))(o,Object.assign({},I,{tick:n,tickValue:t,index:r,text:u})),m={position:E(f,s,a),transform:T(l[i]?.(t),O,a)},g={edge:D,transform:{x:a?-R.x+O.x:l[i]?.(t)+O.x,y:a?l[i]?.(t)+O.y:R.y+O.y}};return e[r]={axis:Object.assign({dimension:i},I,L),axisLabel:Object.assign({},I,B),ticks:Object.assign({},I,w(m,f.tickStyle,t)),tickLabels:Object.assign({},I,x(m,f.labelStyle,h,t,u)),grid:Object.assign({},I,F,k(g,f.gridStyle,t))},e},j)},D={width:450,height:300,padding:50};class I extends n.Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps=(()=>({axisComponent:n.createElement(s.e,null),axisLabelComponent:n.createElement(a.R,null),tickLabelComponent:n.createElement(a.R,null),tickComponent:n.createElement(s.e,null),gridComponent:n.createElement(s.e,null),standalone:!0,theme:l.g.grayscale,containerComponent:n.createElement(c._,null),groupComponent:n.createElement("g",{role:"presentation"}),fixLabelOverlap:!1}))();static getDomain=(()=>u.FB)();static getAxis=(()=>u.C3)();static getStyles(e){return v(e)}static getBaseProps(e){return R(e,D)}static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(e){const{axisComponent:t}=e,r=this.getComponentProps(t,"axis",0);return n.cloneElement(t,r)}renderLabel(e){const{axisLabelComponent:t,label:r}=e;if(!r)return null;const i=this.getComponentProps(t,"axisLabel",0);return n.cloneElement(t,i)}renderGridAndTicks(e){const{tickComponent:t,tickLabelComponent:r,gridComponent:i,name:s}=e,a=e=>{const{style:t={},events:r={}}=e;return"transparent"!==t.stroke&&"none"!==t.stroke&&0!==t.strokeWidth||!o()(r)};return this.dataKeys.map((o,l)=>{const c=this.getComponentProps(t,"ticks",l),u=n.cloneElement(t,c),d=a(u.props)?u:void 0,h=this.getComponentProps(i,"grid",l),f=n.cloneElement(i,h),p=a(f.props)?f:void 0,m=this.getComponentProps(r,"tickLabels",l),g=[p,d,n.cloneElement(r,m)].filter(Boolean);return n.cloneElement(e.groupComponent,{key:`${s}-tick-group-${o}`},g)})}fixLabelOverlap(e,t){const r=u.fk(t),n=r?t.height:t.width,i=e=>e.type&&"label"===e.type.role,o=e.map(e=>e.props.children).reduce((e,t)=>e.concat(t),[]).filter(i).map(e=>e.props),s=o.reduce((e,t)=>{const n=(e=>"object"===typeof e?Object.assign({},{top:0,right:0,bottom:0,left:0},e):{top:e,right:e,bottom:e,left:e})(t.style.padding),i=d.Pu(t.text,{angle:t.angle,fontSize:t.style.fontSize,letterSpacing:t.style.letterSpacing,fontFamily:t.style.fontFamily});return e+(r?i.height+n.top+n.bottom:i.width+n.right+n.left)},0),a=Math.floor(n*e.length/s),l=Math.ceil(e.length/a)||1,c=e=>e.props.children.filter(i).reduce((e,t)=>(r?t.props.y:t.props.x)||0,0);return e.sort((e,t)=>r?c(t)-c(e):c(e)-c(t)).filter((e,t)=>t%l===0)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:e}=L,t=u.Ly(this.props,D),r=h.ti(this.props);if(this.shouldAnimate())return this.animateComponent(t,e);const i=this.renderGridAndTicks(t),o=t.fixLabelOverlap?this.fixLabelOverlap(i,t):i,s=[this.renderLine(t),this.renderLabel(t),...o],a=n.cloneElement(t.containerComponent,r);return t.standalone?this.renderContainer(a,s):n.cloneElement(t.groupComponent,r,s)}}const L=(0,f.v)(I,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]})},6464(e,t,r){"use strict";r.d(t,{t:()=>xe});var n=r(9950),i=r(210),o=r.n(i),s=r(6791),a=r.n(s),l=r(95),c=r(6012);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}const d=(0,n.forwardRef)((e,t)=>{const{desc:r,id:i,tabIndex:o,origin:s,...a}=e,c={vectorEffect:"non-scaling-stroke",id:(0,l.Vx)(i,e)?.toString(),tabIndex:(0,l.Vx)(o,e),...a};return r?n.createElement("circle",u({},c,{ref:t}),n.createElement("desc",null,r)):n.createElement("circle",u({},c,{ref:t}))}),h={circleComponent:n.createElement(d,null),rectComponent:n.createElement(c.r,null),role:"presentation",shapeRendering:"auto"},f=e=>{const t=(e=>{const t=l.Vx(e.id,e);return Object.assign({},e,{id:t})})(o()({},e,h));return t.polar?n.cloneElement(t.circleComponent,{...t.events,style:t.style,role:t.role,shapeRendering:t.shapeRendering,cx:t.x,cy:t.y,r:t.height,className:t.className}):n.cloneElement(t.rectComponent,{...t.events,style:t.style,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,rx:t.rx,ry:t.ry,width:t.width,height:t.height,className:t.className})};var p=r(3204),m=r(6374),g=r(348),b=r(3594);const y={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0};var A=r(5212),v=r(561),w=r.n(v),x=(r(3684),r(5420)),k=r.n(x),C=r(725),_=r(6813),S=r(3712),E=r(669),T=r(1423);function M(e,t,r){const{datasets:n,horizontal:i}=e,o=i?l.eO(e,"y"):l.eO(e,"x"),s=Math.abs(o[1]-o[0]),a=void 0!==r?r:Array.isArray(n[0])&&n[0].length||1,c=(t||n.length)*a;return Math.round(.5*s/c)}function O(e,t,r){const i=r||n.Children.toArray(e.children),o=S.VB(e,t),s=function(e,t,r){if(e.polar||"x"!==t)return;const n=r.filter(e=>e.type&&e.type.role&&"group"===e.type.role);if(n.length<1)return;const{offset:i,children:o}=n[0].props;if(!i)return;const s=Array.isArray(o)&&o[0];if(!s)return;let a=s.props.barWidth,l=s.props.data&&s.props.data.length||1;if(s&&"stack"===s.type.role){const e=s.props.children&&s.props.children[0];if(!e)return;a=e.props.barWidth,l=s.props.children.length}const c=a||M(e,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}(e,t,i);let a;if(o)a=o;else{const r=S.fV(e,t),o=S.Jd(e,t),s=(e.data||e.y)&&_.bQ(e),c=s?S.fK(e,t,s):[],u=function(e,t,r){const i=r?r.slice(0):n.Children.toArray(e.children),o=e.data?_.bQ(e):void 0,{polar:s,startAngle:a,endAngle:c,categories:u,minDomain:d,maxDomain:h,horizontal:f}=e,p={horizontal:f,polar:s,startAngle:a,endAngle:c,minDomain:d,maxDomain:h,categories:u},m=o?Object.assign(p,{data:o}):p,b=l.El(i,e=>{const r=Object.assign({},e.props,m);return S.kh(e)?e.type&&l.Tn(e.type.getDomain)?e.props&&e.type.getDomain(r,t):S.FB(r,t):null},e);return[0===b.length?0:g.Y0(b),0===b.length?1:g.gP(b)]}(e,t,i),d=r||g.Y0([...c,...u]),h=o||g.gP([...c,...u]);a=S.nB(d,h)}return S.I4(a,Object.assign({domainPadding:s},e),t)}function N(e,t,r){if(e.data)return T.wV(e,t);const i=r?r.slice(0):n.Children.toArray(e.children),o=w()(l.El(i,r=>{const n=Object.assign({},r.props,{horizontal:e.horizontal});return T.bI(n,t)},e));return o.length>1?T.ie("linear"):T.ie(o[0])}function P(e,t,r){const n=_.BD(e,t),i=C.dW(r,t),o=i?_.AO(i.props,t):[],s=n.length?n:function(e,t){return l.El(e.slice(0),e=>{if(!S.kh(e))return null;const r=e.props||{};return _.BD(r,t)})}(r,t);return w()([...s,...o].flat())}function R(e,t){const r=t||n.Children.toArray(e.children),i=P(e,"x",r),o=P(e,"y",r),s=function(e){return l.El(e.slice(0),e=>{const t=e.props||{};let r;return _.Wi(e)?(r=e.type&&l.Tn(e.type.getData)?e.type.getData(t):_.bQ(t),r.map(e=>({x:e.xName,y:e.yName}))):null},{},{x:[],y:[]},(e,t)=>{const r=Array.isArray(t)?t.map(e=>e.x).filter(Boolean):t.x,n=Array.isArray(t)?t.map(e=>e.y).filter(Boolean):t.y;return{x:void 0!==r?e.x.concat(r):e.x,y:void 0!==n?e.y.concat(n):e.y}})}(r);return{x:w()([...i,...s.x].flat()),y:w()([...o,...s.y].flat())}}var D=r(5927),I=r.n(D),L=r(4901),B=r.n(L),j=r(624),F=r.n(j),z=r(6646);class U extends n.Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=(()=>z.A)();static defaultProps=(()=>({groupComponent:n.createElement("g",null)}))();constructor(e){super(e),this.getScopedEvents=E.Qu.bind(this),this.getEventState=E.Mk.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(e)}shouldComponentUpdate(e){if(!B()(this.props,e)){this.baseProps=this.getBaseProps(e);const t=this.getExternalMutations(e,this.baseProps);this.applyExternalMutations(e,t)}return!0}componentDidMount(){const e=Object.keys(this.globalEvents);
2e.forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentDidUpdate(){const e=Object.keys(this.globalEvents);g.iv(this.prevGlobalEventKeys,e).forEach(e=>this.removeGlobalListener(e));g.iv(e,this.prevGlobalEventKeys).forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach(e=>this.removeGlobalListener(e))}addGlobalListener(e){const t=t=>{const r=this.globalEvents[e];return r&&r(E.nG(t))};this.boundGlobalEvents[e]=t,window.addEventListener(E.Sd(e),t)}removeGlobalListener(e){window.removeEventListener(E.Sd(e),this.boundGlobalEvents[e])}getAllEvents(e){const t=E.D0(e,["container","groupComponent"]);return Array.isArray(t)?Array.isArray(e.events)?t.concat(...e.events):t:e.events}applyExternalMutations(e,t){if(!a()(t)){const r=e.externalEventMutations.reduce((e,t)=>l.Tn(t.callback)?e.concat(t.callback):e,[]),n=r.length?()=>{r.forEach(e=>e())}:void 0;this.setState(t,n)}}getExternalMutations(e,t){return a()(e.externalEventMutations)?void 0:E.JB(e.externalEventMutations,t,this.state,Object.keys(t))}cacheSharedEvents(e,t,r){this.sharedEventsCache[e]=[t,r]}getCachedSharedEvents(e,t){const[r,n]=this.sharedEventsCache[e]||[];if(r&&B()(t,n))return r}getBaseProps(e){const{container:t}=e,r=n.Children.toArray(this.props.children),i=this.getBasePropsFromChildren(r),o=t?t.props:{};return Object.assign({},i,{parent:o})}getBasePropsFromChildren(e){const t=l.El(e,(e,t)=>{if(e.type&&l.Tn(e.type.getBaseProps)){const r=e.props&&e.type.getBaseProps(e.props);return r?[[t,r]]:null}return null});return I()(t)}getNewChildren(e,t){const{events:r,eventKey:i}=e,o=(e,s)=>e.reduce((e,a,c)=>{if(a.props.children){const t=n.Children.toArray(a.props.children),r=s.slice(c,c+t.length),i=n.cloneElement(a,a.props,o(t,r));return e.concat(i)}if("parent"!==s[c]&&a.type&&l.Tn(a.type.getBaseProps)){const o=a.props.name||s[c],l=Array.isArray(r)&&r.filter(e=>"parent"!==e.target&&(Array.isArray(e.childName)?e.childName.indexOf(o)>-1:e.childName===o||"all"===e.childName)),u=[o,t,l,F()(this.state[o])],d=this.getCachedSharedEvents(o,u)||{events:l,getEvents:(e,r)=>this.getScopedEvents(e,r,o,t),getEventState:(e,t)=>this.getEventState(e,t,o)};return this.cacheSharedEvents(o,d,u),e.concat(n.cloneElement(a,Object.assign({key:`events-${o}`,sharedEvents:d,eventKey:i,name:o},a.props)))}return e.concat(a)},[]),s=Object.keys(t),a=n.Children.toArray(e.children);return o(a,s)}getContainer(e,t,r){const i=this.getNewChildren(e,t),s=Array.isArray(r)?r.filter(e=>"parent"===e.target):[],a=s.length>0?{events:s,getEvents:(e,r)=>this.getScopedEvents(e,r,null,t),getEventState:this.getEventState}:null,l=e.container||e.groupComponent,c=l.type&&l.type.role,u=l.props||{},d=E.kQ.bind(this),h=a&&d({sharedEvents:a},"parent"),f=o()({},this.getEventState("parent","parent"),u,t.parent,{children:i}),p=o()({},E.lU(h,"parent",f),u.events);this.globalEvents=E.N0(p);const m=E.gc(p);return"container"===c?n.cloneElement(l,Object.assign({},f,{events:m})):n.cloneElement(l,m,i)}render(){const e=this.getAllEvents(this.props);return e?this.getContainer(this.props,this.baseProps,e):n.cloneElement(this.props.container,{children:this.props.children})}}var H=r(9367),V=r(3410),W=r(2742),K=r(5793);const q=e=>{const{cx:t,cy:r,r:n,startAngle:i,endAngle:o,closedPath:s}=e,a=Math.abs(o-i)/2+i,c=t+n*Math.cos(l.tR(i)),u=r-n*Math.sin(l.tR(i));return`${s?` M ${t}, ${r} L ${c}, ${u}`:`M ${c}, ${u}`} ${`A ${n}, ${n}, 0, ${a-i<=180?0:1}, 0, ${t+n*Math.cos(l.tR(a))}, ${r-n*Math.sin(l.tR(a))}`} ${`A ${n}, ${n}, 0, ${o-a<=180?0:1}, 0, ${t+n*Math.cos(l.tR(o))}, ${r-n*Math.sin(l.tR(o))}`} ${s?"Z":""}`},G={pathComponent:n.createElement(K.w,null),role:"presentation",shapeRendering:"auto"},X=e=>{const t=(e=>{const t=l.Vx(e.ariaLabel,e),r=l.Vx(e.desc,e),n=l.Vx(e.id,e),i=l.xj(Object.assign({stroke:"black",fill:"none"},e.style),e),o=l.Vx(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:r,id:n,style:i,tabIndex:o})})(o()({},e,G));return n.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:q(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform,clipPath:t.clipPath})};var Y=r(1328),$=r(2216);const Q=(e,t,r)=>"x"===r?e*Math.cos(t):-e*Math.sin(t),J=e=>
2{const t=e.dependentAxis?"radial":"angular",r="angular"===t?"radial":"angular";return e.horizontal?r:t},Z=(e,t)=>({tickStyle:l.xj(e.ticks,t),labelStyle:l.xj(e.tickLabels,t),gridStyle:l.xj(e.grid,t)}),ee=e=>{const{left:t,right:r,top:n,bottom:i}=l.Cq(e.padding),{width:o,height:s}=e;if(void 0===o||void 0===s)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-t-r,s-n-i)/2},te=(e,t)=>{if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if("angular"===J(e)){return[l.tR(e.startAngle),l.tR(e.endAngle)]}const r=ee(e);return[e.innerRadius||0,r]},re=e=>{const t=C.C3(e),r=T.wV(e,t),n=C.FB(e,t)||r.domain(),i=te(e,t);return r.range(i),r.domain(n),r},ne=function(e,t){if(void 0===t&&(t={}),e.disableInlineStyles)return{};const r=e.style||{};return{parent:o()({height:"auto",width:"100%"},r.parent,t.parent),axis:o()({},r.axis,t.axis),axisLabel:o()({},r.axisLabel,t.axisLabel),grid:o()({},r.grid,t.grid),ticks:o()({},r.ticks,t.ticks),tickLabels:o()({},r.tickLabels,t.tickLabels)}},ie=e=>{const{axisAngle:t,startAngle:r,dependentAxis:n}=e,i=C.C3(e),o=C.hN(e,i);return void 0!==o&&n?l.nv(o):void 0===t?r:t},oe=(e,t,r,n)=>{const{axisType:i,radius:o,scale:s,style:a,stringTicks:c,ticks:u,tickFormat:d,origin:h}=t,f=d(r,n,u),p=c?c[n]:r,{tickStyle:m}=Z(a,{tick:p,tickValue:r,index:n,ticks:u,stringTicks:c,radius:o,scale:s,axisType:i,text:f}),g="radial"===i?ie(e):void 0,b=m.padding||m.size||0,y=l.tR(90-g),A="angular"===i?s(r):l.tR(-1*g),v="angular"===i?o:s(r);return"angular"===i?{index:n,datum:p,style:m,x1:Q(v,A,"x")+h.x,y1:Q(v,A,"y")+h.y,x2:Q(v+b,A,"x")+h.x,y2:Q(v+b,A,"y")+h.y}:{index:n,datum:p,style:m,x1:v*Math.cos(A)+Math.cos(y)*b+h.x,x2:v*Math.cos(A)-Math.cos(y)*b+h.x,y1:v*Math.sin(A)+Math.sin(y)*b+h.y,y2:v*Math.sin(A)-Math.sin(y)*b+h.y}},se=(e,t,r,n)=>{const{axisType:i,radius:o,tickFormat:s,style:a,scale:c,ticks:u,stringTicks:d,origin:h}=t,f=s(r,n,u),p=d?d[n]:r,{labelStyle:m}=Z(a,{text:f,tick:p,tickValue:r,index:n,ticks:u,stringTicks:d,radius:o,scale:c,axisType:i}),{tickLabelComponent:g}=e,b=g?.props.labelPlacement?g.props.labelPlacement:e.labelPlacement,y=m.padding||0,A="radial"===i?ie(e):void 0,v="angular"===i?l.nv(c(r)):A+0,w=void 0===m.angle?$.W8(Object.assign({},e,{labelPlacement:b}),v):m.angle,x="angular"===i?o+y:c(r);return{index:n,datum:p,style:m,angle:w,textAnchor:m.textAnchor||$.r6(Object.assign({},e,{labelPlacement:b}),v),text:f,x:x*Math.cos(l.tR(v))+h.x,y:-x*Math.sin(l.tR(v))+h.y}},ae=(e,t,r,n)=>{const{axisType:i,radius:o,style:s,scale:a,stringTicks:l,ticks:c,tickFormat:u,origin:d}=t,h=u(r,n,c),{startAngle:f,endAngle:p,innerRadius:m=0}=e,g=l?l[n]:r,{gridStyle:b}=Z(s,{tick:g,tickValue:r,index:n,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:h}),y=a(r);return"angular"===i?{index:n,datum:g,style:b,x1:Q(o,y,"x")+d.x,y1:Q(o,y,"y")+d.y,x2:Q(m,y,"x")+d.x,y2:Q(m,y,"y")+d.y}:{style:b,index:n,datum:g,cx:d.x,cy:d.y,r:a(r),startAngle:f,endAngle:p}},le=e=>{const t=Object.assign({polar:!0},e),r=(e=>{const{theme:t={},dependentAxis:r}=e,n=t.polarAxis&&t.polarAxis.style||t.axis&&t.axis.style,i=r?"polarDependentAxis":"polarIndependentAxis",s=r?"dependentAxis":"independentAxis",a=t?.[i]?.style||t?.[s]?.style;return n&&a?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((e,t)=>(e[t]=o()({},a?.[t],n?.[t]),e),{}):a||n})(t),n=ne(t,r),i=l.Cq(t.padding),s=C.C3(t),a=J(t),c=C.UK(t)?t.tickValues:void 0,u=C.FB(t,s),d=te(t,s),h=re(t),f=C.fC(t,h),p="angular"===a?((e,t)=>k()(e,e=>t(e)%(2*Math.PI)))(f,h):f;return{axis:s,style:n,padding:i,stringTicks:c,axisType:a,scale:h,ticks:p,tickFormat:C.RE(t,h),domain:u,range:d,radius:ee(t),origin:l.Pw(t)}},ce=(e,t)=>{const r=C.Ly(e,t),n=le(r),{style:i,scale:o,ticks:s,domain:a}=n,{width:c,height:u,standalone:d,theme:h,name:f}=r,p=((e,t)=>{const{style:r,axisType:n,radius:i,origin:o}=t,{startAngle:s,endAngle:a,innerRadius:c=0}=e,u="radial"===n?l.tR(ie(e)):void 0;return"radial"===n?{style:r.axis,x1:Q(c,u,"x")+o.x,x2:Q(i,u,"x")+o.x,y1:Q(c,u,"y")+o.y,y2:Q(i,u,"y")+o.y}:{style:r.axis,cx:o.x,cy:o.y,r:i,startAngle:s,endAngle:a}})(r,n),m=((e,t)=>{const{axisType:r,radius:n,style:i,origin:o}=t,{axisLabelComponent:s}=e;if("radial"!==r)return{};const a=s?.props.labelPlacement?s.props.labelPlacement:e.labelPlacement,c=i&&i.axisLabel||{},u="radial"===r?ie(e):void 0,d=void 0===c.angle?$.W8(Object.assign({},e,{labelPlacement:a}),u):c.angle,h=n+(c.padding||0);return{style:c,angle:d,textAnchor:c.textAnchor||$.r6(Object.assign({},e,{labelPlacement:a}),u),verticalAnchor:c.verticalAnchor||$.WP(Object.assign({},e,{labelPlacement:a}),u),text:e.label,x:Q(h,l.tR(u),"x")+o.x,y:Q(h,l.tR(u),"y")+o.y}})(r,n),g={parent:{style:i.parent,ticks:s,scale:o,width:c,height:u,domain:a,standalone:d,theme:h,name:f}};return s.reduce((e,t,i)=>(e[i]={axis:p,axisLabel:m,ticks:oe(r,n,t,i),tickLabels:se(r,n,t,i),grid:ae(r,n,t,i)},e),g)},ue={width:450,height:300,padding:50};class de extends n.Component{static animationWhitelist=["style","domain","range","t
2ickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps=(()=>({axisComponent:n.createElement(V.e,null),axisLabelComponent:n.createElement(W.R,null),circularAxisComponent:n.createElement(X,null),circularGridComponent:n.createElement(X,null),containerComponent:n.createElement(p._,null),endAngle:360,gridComponent:n.createElement(V.e,null),groupComponent:n.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:m.g.grayscale,tickComponent:n.createElement(V.e,null),tickLabelComponent:n.createElement(W.R,null)}))();static getDomain=(()=>C.FB)();static getAxis=(()=>C.C3)();static getScale(e){return re(e)}static getStyles(e){return ne(e,ue.style)}static getBaseProps(e){return ce(e,ue)}static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(e){const{dependentAxis:t}=e,r=t?e.axisComponent:e.circularAxisComponent,i=this.getComponentProps(r,"axis",0);return n.cloneElement(r,i)}renderLabel(e){const{axisLabelComponent:t,dependentAxis:r,label:i}=e;if(!i||!r)return null;const o=this.getComponentProps(t,"axisLabel",0);return n.cloneElement(t,o)}renderAxis(e){const{tickComponent:t,tickLabelComponent:r,name:i}=e,o=e=>{const{style:t={},events:r={}}=e;return"transparent"!==t.stroke&&"none"!==t.stroke&&0!==t.strokeWidth||!a()(r)},s="radial"===(e.dependentAxis?"radial":"angular")?e.circularGridComponent:e.gridComponent,l=this.dataKeys.map((e,r)=>{const s=Object.assign({key:`${i}-tick-${e}`},this.getComponentProps(t,"ticks",r)),a=n.cloneElement(t,s);return o(a.props)?a:void 0}).filter(Boolean),c=this.dataKeys.map((e,t)=>{const r=Object.assign({key:`${i}-grid-${e}`},this.getComponentProps(s,"grid",t)),a=n.cloneElement(s,r);return o(a.props)?a:void 0}).filter(Boolean),u=this.dataKeys.map((e,t)=>{const o=Object.assign({key:`${i}-tick-${e}`},this.getComponentProps(r,"tickLabels",t));return n.cloneElement(r,o)}),d=[this.renderAxisLine(e),this.renderLabel(e),...l,...c,...u];return this.renderGroup(e,d)}renderGroup(e,t){const{groupComponent:r}=e;return n.cloneElement(r,{},t)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:e}=he,t=C.Ly(this.props,ue);if(this.shouldAnimate())return this.animateComponent(t,e);const r=this.renderAxis(t);return t.standalone?this.renderContainer(t.containerComponent,r):r}}const he=(0,Y.v)(de,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),fe={width:450,height:300,padding:50};function pe(e,t){const r=function(e){const t=e.style&&e.style.parent;return{parent:o()({},t,{height:"100%",width:"100%",userSelect:"none"})}}(e),n=l.Ly(e,fe,"chart"),{horizontal:i,polar:s}=n,a=R(n,t),c=function(e,t,r){const n=e.categories&&_.BD(e,"x"),i=e.categories&&_.BD(e,"y"),o=n&&i?{}:r||R(e,t),s=n||o.x,a=i||o.y;return{x:s.length>0?s:void 0,y:a.length>0?a:void 0}}(n,t,a),u=ye(n,t,a),d={x:be(Object.assign({},n,{categories:c}),"x",t),y:be(Object.assign({},n,{categories:c}),"y",t)},h={x:l.eO(n,"x"),y:l.eO(n,"y")},f={x:T.RJ(n,"x")||N(n,"x"),y:T.RJ(n,"y")||N(n,"y")};return{categories:c,domain:d,range:h,horizontal:i,scale:{x:f.x.domain(d.x).range(i?h.y:h.x),y:f.y.domain(d.y).range(i?h.x:h.y)},stringMap:u,style:r,origin:s?l.Pw(n):C.$z(d),padding:l.Cq(n.padding)}}function me(e,t,r){const i=t||ge(e),s=r||pe(e,i),a=s.style.parent,{height:l,polar:c,theme:u,width:d}=e,{origin:h,horizontal:f}=s,p=e.name||"chart";return i.filter(n.isValidElement).map((t,r)=>{const i=t.type&&t.type.role,m=Array.isArray(t.props.style)?t.props.style:o()({},t.props.style,{parent:a}),g=function(e,t,r){const n=C.hh([e]);if(n.length>0)return function(e,t,r){const{domain:n,scale:i,stringMap:o,categories:s,horizontal:a}=r;return{stringMap:o,horizontal:a,categories:s,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:n,scale:i}}(n[0],t,r);const{categories:i,domain:o,range:s,scale:a,stringMap:l,horizontal:c}=r;return{categories:i,domain:o,range:s,scale:a,stringMap:l,horizontal:c}}(t,e,s),b=t.props.name||`${p}-${i}-${r}`,y=o()({horizontal:f,height:l,polar:c,theme:u,width:d,style:m,name:b,origin:c?h:void 0,padding:s.padding,key:`${b}-key-${r}`,standalone:!1},g);return n.cloneElement(t,y)})}const ge=(e,t)=>
2{let r=n.Children.toArray(e.children);if(0===r.length)r.push(t.independent,t.dependent);else{const n={dependent:C.Ei(r,"dependent"),independent:C.Ei(r,"independent")};0===n.dependent.length&&0===n.independent.length&&(r=e.prependDefaultAxes?[t.independent,t.dependent].concat(r):r.concat([t.independent,t.dependent]))}return r},be=(e,t,r)=>{const i=r||n.Children.toArray(e.children),o=O(e,t,i),s=C.dW(i,t);return s&&s.props&&s.props.invertAxis?o.concat().reverse():o},ye=(e,t,r)=>({x:r.x&&0!==r.x.length?r.x.reduce((e,t,r)=>(e[t]=r+1,e),{}):null,y:r.y&&0!==r.y.length?r.y.reduce((e,t,r)=>(e[t]=r+1,e),{}):null}),Ae={width:450,height:300,padding:50},ve={backgroundComponent:n.createElement(f,null),containerComponent:n.createElement(p._,null),defaultAxes:{independent:n.createElement(H.O,null),dependent:n.createElement(H.O,{dependentAxis:!0})},defaultPolarAxes:{independent:n.createElement(he,null),dependent:n.createElement(he,{dependentAxis:!0})},groupComponent:n.createElement("g",null),standalone:!0,theme:m.g.grayscale},we=e=>{const t=n.useMemo(()=>o()({},e,ve),[e]),{getAnimationProps:r,setAnimationState:i,getProps:s}=function(e){void 0===e&&(e=y);const[t,r]=n.useState(e),i=n.useCallback(e=>{r(t=>({...t,...e}))},[r]),s=n.useCallback((e,r,n)=>{if(!e?.animate)return r.props.animate;let s=e.animate&&e.animate.getTransitions;const a=(()=>{let e=t&&t.childrenTransitions;return e=g.ZI(e)?e[n]:e,o()({childrenTransitions:e},t)})(),l=e.animate&&e.animate.parentState||a;if(!s){const t=b.u(e,a,e=>i(e));s=e=>t(e,n)}return o()({getTransitions:s,parentState:l},e.animate,r.props.animate)},[t,i]),a=n.useCallback((e,t)=>{if(e?.animate)if(e.animate.parentState){const r=e.animate.parentState.nodesWillExit?e:null,n=o()({oldProps:r,nextProps:t},e.animate.parentState);i(n)}else{const r=n.Children.toArray(e.children),o=n.Children.toArray(t.children),s=e=>{const t=e=>e.type&&e.type.continuous;return Array.isArray(e)?e.some(t):t(e)},a=!e.polar&&r.some(e=>s(e)||e?.props?.children&&s(e.props.children)),{nodesWillExit:l,nodesWillEnter:c,childrenTransitions:u,nodesShouldEnter:d}=b.$(r,o);i({nodesWillExit:l,nodesWillEnter:c,nodesShouldEnter:d,childrenTransitions:g.ZI(u)?u[0]:u,oldProps:l?e:void 0,nextProps:t,continuous:a})}},[i]),l=n.useCallback(e=>t&&t.nodesWillExit&&t.oldProps||e,[t]);return{state:t,setState:i,getAnimationProps:s,setAnimationState:a,getProps:l}}(),c=s(t),u=l.Ly(c,Ae,"chart"),{desc:d,eventKey:h,containerComponent:f,standalone:p,groupComponent:m,externalEventMutations:v,width:w,height:x,theme:k,polar:C,name:_,title:S}=u,T=c.polar?u.defaultPolarAxes:u.defaultAxes,M=n.useMemo(()=>ge(u,T),[u,T]),O=n.useMemo(()=>pe(u,M),[u,M]),{domain:N,scale:P,style:R,origin:D,horizontal:I}=O,L=n.useMemo(()=>{const e=me(c,M,O).map((e,t)=>{const i=Object.assign({animate:r(c,e,t)},e.props);return n.cloneElement(e,i)});if(c.style&&c.style.background){const t=function(e,t){const r=e.backgroundComponent,i=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],s=t.range.x[1]-t.range.x[0],a=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],l=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],c=e.polar?t.origin.x:a,u=e.polar?t.origin.y:l,d=e.name||"chart",h={height:i,polar:e.polar,scale:t.scale,style:e.style.background,x:c,y:u,key:`${d}-background`,width:s};return n.cloneElement(r,o()({},r.props,h))}(c,O);e.unshift(t)}return e},[r,M,c,O]),B=n.useMemo(()=>p?{desc:d,domain:N,width:w,height:x,horizontal:I,name:_,origin:C?D:void 0,polar:C,theme:k,title:S,scale:P,standalone:p,style:R.parent}:{},[d,N,x,I,_,D,C,P,p,R,S,k,w]),j=n.useMemo(()=>{if(p){const e=o()({},f.props,B,A.ti(t));return n.cloneElement(f,e)}return m},[m,p,f,B,t]),F=n.useMemo(()=>function(e){const t=E.D0(e,["groupComponent","containerComponent","labelComponent"]);let r=e.events;return Array.isArray(t)&&(r=Array.isArray(e.events)?t.concat(...e.events):t),r||[]}(c),[c]),z=function(e){const t=n.useRef();return n.useEffect(()=>{t.current=e}),t.current}(t);return n.useEffect(()=>()=>{t.animate&&i(z,t)},[i,z,t]),a()(F)?n.cloneElement(j,j.props,L):n.createElement(U,{container:j,eventKey:h,events:F,externalEventMutations:v},L)},xe=n.memo(we,B());xe.displayName="VictoryChart",xe.expectedComponents=["groupComponent","containerComponent"]},3204(e,t,r){"use strict";r.d(t,{_:()=>p});var n=r(9950),i=r(2810),o=r.n(i);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s.apply(this,arguments)}const a=n.forwardRef((e,t)=>n.createElement("svg",s({ref:t},e)));var l=r(5212),c=r(95);var u=r(3906);const d=e=>{let{as:t,...r}=e;const i=(0,u.vB)();if(!i)return null;const o=Array.from(i.children.values());return n.cloneElement(t,r,o)};function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}const f={className:"VictoryContainer",portalComponent:n.createElement(a,null),portalZIndex:99,responsive:!0,role:"img"};const p=e=>{const{role:t,title:r,desc:i,children:s,className:a,portalZIndex:p,portalComponent:m,width:g,height:b,style:y,tabIndex:A,responsive:v,events:w,ouiaId:x,ouiaSafe:k,ouiaType:C,dimensions:_,ariaDescribedBy:S,ariaLabelledBy:E,viewBox:T,preserveAspectRatio:M,userProps:O,titleId:N,descId:P,containerRef:R,localContainerRef:D}=function(e){const t={...f,...e},{title:r,desc:i,width:s,height:a,responsive:c}=t,u=(0,n.useRef)(null),d=(0,n.useRef)(o()("victory-container-")),h=t.containerId??d.current,p=e=>`${h}-${e}`,m=l.ti(t),g=c?{width:"100%",height:"100%"}:{width:s,height:a},b=c?`0 0 ${s} ${a}`:void 0,y=c?t.preserveAspectRatio:void 0,A=[r&&p("title"),t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,v=[i&&p("desc"),t["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=p("title"),x=p("desc");return{...t,titleId:w,descId:x,dimensions:g,viewBox:b,preserveAspectRatio:y,ariaLabelledBy:A,ariaDescribedBy:v,userProps:m,localContainerRef:u}}(e);return n.useEffect(()=>{if(!w?.onWheel)return;const e=e=>e.preventDefault(),t=D?.current;return t?.addEventListener("wheel",e),()=>{t?.removeEventListener("wheel",e)}},[]),n.createElement("div",{className:a,style:{...y,width:v?y?.width:_.width,height:v?y?.height:_.height,pointerEvents:y?.pointerEvents??"none",touchAction:y?.touchAction??"none",position:y?.position??"relative"},"data-ouia-component-id":x,"data-ouia-component-type":C,"data-ouia-safe":k,ref:(I=[D,R],e=>{I.forEach(t=>{c.Tn(t)?t(e):null!==t&&void 0!==t&&(t.current=e)})})},n.createElement(u.GD,null,n.createElement("svg",h({width:g,height:b,tabIndex:A,role:t,"aria-labelledby":E,"aria-describedby":S,viewBox:T,preserveAspectRatio:M,style:{..._,pointerEvents:"all"}},O,w),r?n.createElement("title",{id:N},r):null,i?n.createElement("desc",{id:P},i):null,s),n.createElement("div",{style:{..._,zIndex:p,position:"absolute",top:0,left:0}},n.createElement(d,{as:m,width:g,height:b,viewBox:T,preserveAspectRatio:M,style:{..._,overflow:"visible"}}))));var I};p.role="container"},2742(e,t,r){"use strict";r.d(t,{R:()=>O});var n=r(9950),i=r(210),o=r.n(i),s=r(6791),a=r.n(s),l=r(8845),c=r(6012),u=r(95);const d=e=>{const{children:t,desc:r,id:i,origin:o,tabIndex:s,title:a,...l}=e,c={id:(0,u.Vx)(i,e)?.toString(),tabIndex:(0,u.Vx)(s,e),...l};return n.createElement("text",c,a&&n.createElement("title",null,a),r&&n.createElement("desc",null,r),t)},h=e=>{const{desc:t,id:r,tabIndex:i,origin:o,...s}=e,a={id:(0,u.Vx)(r,e)?.toString(),tabIndex:(0,u.Vx)(i,e),...s};return n.createElement("tspan",a)};var f=r(2216),p=r(4788);const m=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(r.length>0)return r.reduce((e,t)=>[e,m(t)].join(" "),m(e)).trim();if(void 0===e||null===e||"string"===typeof e)return e;const i=[];for(const o in e)if(e.hasOwnProperty(o)){const t=e[o];i.push(`${o}(${t})`)}return i.join(" ").trim()};var g=r(8682),b=r(5212);const y={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser\xadavek', 'Trebuchet MS', sans-serif",stroke:"transparent"},A=(e,t)=>{if(!e.datum)return 0;return u.hq(e,e.datum)[t]},v=e=>{const t=e&&e.fontSize;if("number"===typeof t)return t;if(void 0===t||null===t)return y.fontSize;if("string"===typeof t){const e=Number(t.replace("px",""));return isNaN(e)?(p.R("fontSize should be expressed as a number of pixels"),y.fontSize):e}return y.fontSize},w=function(e,t){return void 0===t&&(t=0),Array.isArray(e)?e[t]||e[0]:e},x=e=>{const{backgroundStyle:t,backgroundPadding:r}=e;return Array.isArray(t)&&!a()(t)||Array.isArray(r)&&!a()(r)},k=(e,t)=>{const{direction:r,textAnchor:n,x:i,dx:o}=e;if("rtl"===r)return i-t;switch(n){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(o||0)}},C=(e,t)=>{const{verticalAnchor:r,y:n,originalDy:i=0}=e,o=n+i;switch(r){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},_=(e,t)=>
2x(e)?((e,t)=>{const{dy:r,dx:i,transform:s,backgroundStyle:a,backgroundPadding:l,backgroundComponent:c,inline:u,y:d}=e,h=t.map((e,n)=>{const o=w(t,n-1),s=e.textSize,a=e.fontSize*e.lineHeight,c=Math.ceil(a),h=w(l,n),f=w(l,n-1),p=u&&i||0,m=n&&!u?o.fontSize*o.lineHeight+f.top+f.bottom:r-.5*a-(e.fontSize-e.capHeight);return{textHeight:c,labelSize:s,heightWithPadding:c+h.top+h.bottom,widthWithPadding:s.width+h.left+h.right+p,y:d,fontSize:e.fontSize,dy:m}});return h.map((t,r)=>{const i=k(e,t.labelSize.width),f=h.slice(0,r+1).reduce((e,t)=>e+t.dy,d),p=w(l,r),m=t.heightWithPadding,g=u?((e,t,r)=>{const{textAnchor:n}=e,i=t.map(e=>e.widthWithPadding),o=-i.reduce((e,t)=>e+t,0)/2;switch(n){case"start":return i.reduce((e,t,n)=>n<r?e+t:e,0);case"end":return i.reduce((e,t,n)=>n>r?e-t:e,0);default:return i.reduce((e,t,n)=>n===r?e+t/2:e+(n<r?t:0),o)}})(e,h,r)+i-p.left:i,b=u?C(e,m)-p.top:f,y={key:`tspan-background-${r}`,height:m,style:w(a,r),width:t.widthWithPadding,transform:s,x:g-p.left,y:b};return n.cloneElement(c,o()({},c.props,y))})})(e,t):((e,t)=>{const{dx:r=0,transform:i,backgroundComponent:s,backgroundStyle:a,inline:l,backgroundPadding:c,capHeight:u}=e,d=t.map(e=>e.textSize),h=l?Math.max(...d.map(e=>e.height)):d.reduce((e,r,n)=>{const i=n?0:u/2;return e+r.height*(t[n].lineHeight-i)},0),f=l?d.reduce((e,t,n)=>{const i=n?r:0;return e+t.width+i},0):Math.max(...d.map(e=>e.width)),p=k(e,f),m=C(e,h),g={key:"background",height:h+c.top+c.bottom,style:a,transform:i,width:f+c.left+c.right,x:l?p-c.left:p+r-c.left,y:m};return n.cloneElement(s,o()({},s.props,g))})(e,t),S=(e,t,r)=>{const{inline:n}=t,i=w(e,r);return r&&!n?((e,t,r)=>{const n=w(e,t),i=w(e,t-1),o=i.fontSize*i.lineHeight,s=n.fontSize*n.lineHeight,a=i.fontSize-i.capHeight,l=n.fontSize-n.capHeight,c=o-i.fontSize/2+n.fontSize/2-o/2+s/2-l/2+a/2;return x(r)?c+n.backgroundPadding.top+i.backgroundPadding.bottom:c})(e,r,t):n?0===r?i.backgroundPadding.top:void 0:i.backgroundPadding.top},E=e=>{const t=((e,t)=>{if(void 0===e||null===e)return;if(Array.isArray(e))return e.map(e=>u.Vx(e,t));const r=u.Vx(e,t);return void 0!==r&&null!==r?Array.isArray(r)?r:`${r}`.split("\n"):void 0})(e.text,e),r=((e,t)=>{if(t.disableInlineStyles){const r=u.xj(e,t);return{fontSize:v(r)}}const r=e=>{const r=u.xj(e?o()({},e,y):y,t);return Object.assign({},r,{fontSize:v(r)})};return Array.isArray(e)&&!a()(e)?e.map(e=>r(e)):r(e)})(e.style,Object.assign({},e,{text:t})),n=((e,t)=>{if(e)return Array.isArray(e)&&!a()(e)?e.map(e=>u.xj(e,t)):u.xj(e,t)})(e.backgroundStyle,Object.assign({},e,{text:t,style:r})),i=(e=>{if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(t=>{const r=u.Vx(t,e);return u.Cq(r)});const t=u.Vx(e.backgroundPadding,e);return u.Cq(t)})(Object.assign({},e,{text:t,style:r,backgroundStyle:n})),s=u.Vx(e.id,e);return Object.assign({},e,{backgroundStyle:n,backgroundPadding:i,style:r,text:t,id:s})},T=e=>{const t=u.Vx(e.ariaLabel,e),r=w(e.style),n=(e=>{const t=u.Vx(e.lineHeight,e);return Array.isArray(t)&&a()(t)?[1]:t})(e),i=e.direction?u.Vx(e.direction,e):"inherit",o=e.textAnchor?u.Vx(e.textAnchor,e):r.textAnchor||"start",s=e.verticalAnchor?u.Vx(e.verticalAnchor,e):r.verticalAnchor||"middle",l=e.dx?u.Vx(e.dx,e):0,c=((e,t,r)=>{const n=e.dy?u.Vx(e.dy,e):0,i=e.inline?1:e.text.length,o=u.Vx(e.capHeight,e),s=t?u.Vx(t,e):"middle",a=[...Array(i).keys()].map(t=>w(e.style,t).fontSize),l=[...Array(i).keys()].map(e=>w(r,e));if("start"===s)return n+(o/2+l[0]/2)*a[0];if(e.inline)return"end"===s?n+(o/2-l[0]/2)*a[0]:n+o/2*a[0];if(1===i)return"end"===s?n+(o/2+(.5-i)*l[0])*a[0]:n+(o/2+(.5-i/2)*l[0])*a[0];const c=[...Array(i).keys()].reduce((e,t)=>e+(o/2+(.5-i)*l[t])*a[t]/i,0);return"end"===s?n+c:n+c/2+o/2*l[i-1]*a[i-1]})(e,s,n),d=void 0!==e.x?e.x:A(e,"x"),h=void 0!==e.y?e.y:A(e,"y"),p=((e,t,r)=>{const{polar:n}=e,i=w(e.style),o=n?f.W8(e):0,s=void 0===i.angle?u.Vx(e.angle,e):i.angle,a=void 0===s?o:s,l=e.transform||i.transform,c=l&&u.Vx(l,e);return c||a?m(c,a&&{rotate:[a,t,r]}):void 0})(e,d,h);return Object.assign({},e,{ariaLabel:t,lineHeight:n,direction:i,textAnchor:o,verticalAnchor:s,dx:l,dy:c,originalDy:u.Vx(e.dy,e),transform:p,x:d,y:h})},M={backgroundComponent:n.createElement(c.r,null),groupComponent:n.createElement("g",null),direction:"inherit",textComponent:n.createElement(d,null),tspanComponent:n.createElement(h,null),capHeight:.71,lineHeight:1},O=e=>{const t=E(o()({},e,M));if(null===t.text||void 0===t.text)return null;const r=T(t),{text:i,style:s,capHeight:a,backgroundPadding:c,lineHeight:d}=r,h=i.map((e,t)=>{const r=w(s,t),n=g.kB(`${a}em`,r.fontSize),i=w(d,t);return{style:r,fontSize:r.fontSize||y.fontSize,capHeight:n,text:e,textSize:g.Pu(e,r),lineHeight:i,backgroundPadding:w(c,t)}}),f=((e,t)=>{const{ariaLabel:r,inline:i,className:o,title:s,events:a,direction:l,text:c,textAnchor:d,dx:h,dy:f,transform:p,x:m,y:g,desc:y,id:A,tabIndex:v,tspanComponent:w,textComponent:x}=e,k=b.ti(e),C={"aria-label":r,key:"text",...a,direction:l,dx:h,x:m,y:g+f,transform:p,className:o,title:s,desc:u.Vx(y,e),tabIndex:u.Vx(v,e),id:A,...k},_=c.map((r,o)=>{const s=t[o].style,a={key:`${A}-key-${o}`,x:i?void 0:m,dx:i?h+t[o].backgroundPadding.left:h,dy:S(t,e,o),textAnchor:s.textAnchor||d,style:s,children:r};return n.cloneElement(w,a)});return n.cloneElement(x,C,_)})(r,h);if(t.backgroundStyle){const e=[_(r,h),f],i=n.cloneElement(t.groupComponent,{},e);return t.renderInPortal?n.createElement(l.D,null,i):i}return t.renderInPortal?n.createElement(l.D,null,f):f};O.displayName="VictoryLabel",O.role="label",O.defaultStyles=y},3906(e,t,r){"use strict";r.d(t,{GD:()=>s,vB:()=>o});var n=r(9950);const i=n.createContext(void 0);i.displayName="PortalContext";const o=()=>n.useContext(i),s=e=>{let{children:t}=e;const[r,o]=n.useState(new Map),s=n.useCallback((e,t)=>{o(r=>{const n=new Map(r);return n.set(e,t),n})},[o]),a=n.useCallback(e=>{o(t=>{const r=new Map(t);return r.delete(e),r})},[o]),l=n.useMemo(()=>({addChild:s,removeChild:a,children:r}),[s,a,r]);return n.createElement(i.Provider,{value:l},t)}},8845(e,t,r){"use strict";r.d(t,{D:()=>h});var n=r(9950),i=r(210),o=r.n(i),s=r(2810),a=r.n(s),l=r(4788),c=r(95),u=r(3906);const d={groupComponent:n.createElement("g",null)},h=e=>{const t={...d,...e}
2,[r]=(0,n.useState)(a()()),i=(0,u.vB)();if(!i){const e="`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place";l.R(e)}const s=Array.isArray(t.children)?t.children[0]:t.children,{groupComponent:h}=t,f=s&&s.props||{},p=f.groupComponent?{groupComponent:h,standalone:!1}:{},m=o()(p,f,c.cJ(t,["children","groupComponent"]),{key:f.key??r}),g=s&&n.cloneElement(s,m);return n.useEffect(()=>{i?.addChild(r,g)},[t.children]),n.useEffect(()=>()=>i?.removeChild(r),[]),i?null:g};h.role="portal"},3410(e,t,r){"use strict";r.d(t,{e:()=>u});var n=r(9950),i=r(210),o=r.n(i),s=r(95);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const l=(0,n.forwardRef)((e,t)=>{const{desc:r,id:i,tabIndex:o,origin:l,...c}=e,u={vectorEffect:"non-scaling-stroke",id:(0,s.Vx)(i,e)?.toString(),tabIndex:(0,s.Vx)(o,e),...c};return r?n.createElement("line",a({},u,{ref:t}),n.createElement("desc",null,r)):n.createElement("line",a({},u,{ref:t}))}),c={lineComponent:n.createElement(l,null),role:"presentation",shapeRendering:"auto"},u=e=>{const t=(e=>{const t=s.Vx(e.ariaLabel,e),r=s.Vx(e.desc,e),n=s.Vx(e.id,e),i=s.xj(Object.assign({stroke:"black"},e.style),e),o=s.Vx(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:r,id:n,style:i,tabIndex:o})})(o()({},e,c));return n.cloneElement(t.lineComponent,{...t.events,"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath})}},5793(e,t,r){"use strict";r.d(t,{w:()=>s});var n=r(9950),i=r(95);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const s=(0,n.forwardRef)((e,t)=>{const{desc:r,id:s,tabIndex:a,origin:l,...c}=e,u={id:(0,i.Vx)(s,e)?.toString(),tabIndex:(0,i.Vx)(a,e),...c};return r?n.createElement("path",o({},u,{ref:t}),n.createElement("desc",null,r)):n.createElement("path",o({},u,{ref:t}))})},6012(e,t,r){"use strict";r.d(t,{r:()=>s});var n=r(9950),i=r(95);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o.apply(this,arguments)}const s=(0,n.forwardRef)((e,t)=>{const{desc:r,id:s,tabIndex:a,origin:l,...c}=e,u={vectorEffect:"non-scaling-stroke",id:(0,i.Vx)(s,e)?.toString(),tabIndex:(0,i.Vx)(a,e),...c};return r?n.createElement("rect",o({},u,{ref:t}),n.createElement("desc",null,r)):n.createElement("rect",o({},u,{ref:t}))})},6374(e,t,r){"use strict";r.d(t,{g:()=>ce});const n=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],i="#252525",o="#969696",s={width:450,height:300,padding:50,colorScale:n},a={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:i,stroke:"transparent"},l=Object.assign({textAnchor:"middle"},a),c={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:n,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:i},labels:a}},s),axis:Object.assign({style:{axis:{fill:"transparent",stroke:i,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},l,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:a}},s),bar:Object.assign({style:{data:{fill:i,padding:8,strokeWidth:0},labels:a}},s),boxplot:Object.assign({style:{max:{padding:8,stroke:i,strokeWidth:1},maxLabels:Object.assign({},a,{padding:3}),median:{padding:8,stroke:i,strokeWidth:1},medianLabels:Object.assign({},a,{padding:3}),min:{padding:8,stroke:i,strokeWidth:1},minLabels:Object.assign({},a,{padding:3}),q1:{padding:8,fill:o},q1Labels:Object.assign({},a,{padding:3}),q3:{padding:8,fill:o},q3Labels:Object.assign({},a,{padding:3})},boxWidth:20},s),candlestick:Object.assign({style:{data:{stroke:i,strokeWidth:1},labels:Object.assign({},a,{padding:5})},candleColors:{positive:"#ffffff",negative:i}},s),chart:s,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:i,strokeWidth:2},labels:a}},s),group:Object.assign({colorScale:n},s),histogram:Object.assign({style:{data:{fill:o,stroke:i,strokeWidth:2},labels:a}},s),legend:{colorScale:n,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:a,title:Object.assign({},a,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:i,strokeWidth:2},labels:a}},s),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},a,{padding:20})},colorScale:n,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:i,stroke:"transparent",strokeWidth:0},labels:a}},s),stack:Object.assign({colorScale:n},s),tooltip:{style:Object.assign({},a,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:i,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},a,{padding:5,pointerEvents:"none"}),flyout:{stroke:i,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},s)},u="#FFF59D",d="#F4511E",h="#8BC34A",f="#00796B",p="#006064",m=[d,u,"#DCE775",h,f,p],g="#ECEFF1",b="#90A4AE",y="#455A64",A="#212121",v={blue:"#4F7DA1",pink:"#E2A37F",teal:f,purple:"#DF948A",green:h,orange:d,cyan:p,red:"#DF5A49",yellow:u},w=[g,b,y,A],x={width:350,height:350,padding:50},k={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:y,stroke:"transparent",strokeWidth:0}
2,C=Object.assign({textAnchor:"middle"},k),_="round",S="round",E={palette:{colors:v,grayscale:w,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:A},labels:k}},x),axis:Object.assign({style:{axis:{fill:"transparent",stroke:b,strokeWidth:2,strokeLinecap:_,strokeLinejoin:S},axisLabel:Object.assign({},C,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:g,strokeDasharray:"10, 5",strokeLinecap:_,strokeLinejoin:S,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:b,strokeWidth:1,strokeLinecap:_,strokeLinejoin:S},tickLabels:Object.assign({},k,{fill:y})}},x),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:y,padding:8,strokeWidth:0},labels:k}},x),boxplot:Object.assign({style:{max:{padding:8,stroke:y,strokeWidth:1},maxLabels:Object.assign({},k,{padding:3}),median:{padding:8,stroke:y,strokeWidth:1},medianLabels:Object.assign({},k,{padding:3}),min:{padding:8,stroke:y,strokeWidth:1},minLabels:Object.assign({},k,{padding:3}),q1:{padding:8,fill:y},q1Labels:Object.assign({},k,{padding:3}),q3:{padding:8,fill:y},q3Labels:Object.assign({},k,{padding:3})},boxWidth:20},x),candlestick:Object.assign({style:{data:{stroke:y},labels:Object.assign({},k,{padding:5})},candleColors:{positive:"#ffffff",negative:y}},x),chart:x,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:y,strokeWidth:2},labels:k}},x),group:Object.assign({colorScale:m},x),histogram:Object.assign({style:{data:{fill:y,stroke:A,strokeWidth:2},labels:k}},x),legend:{colorScale:m,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:k,title:Object.assign({},k,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:y,strokeWidth:2},labels:k}},x),pie:Object.assign({colorScale:m,style:{data:{padding:8,stroke:g,strokeWidth:1},labels:Object.assign({},k,{padding:20})}},x),scatter:Object.assign({style:{data:{fill:y,opacity:1,stroke:"transparent",strokeWidth:0},labels:k}},x),stack:Object.assign({colorScale:m},x),tooltip:{style:Object.assign({},k,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:A,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},k,{padding:5,pointerEvents:"none"}),flyout:{stroke:A,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},x)},T="#FFFFFF",M="#F2F2F2",O="#E8E8E8",N="#E0E0E0",P="#D1D1D1",R="#757575",D="#5C5C5C",I="#424242",L="#292929",B="#FFD66E",j="#FCB400",F="#FF6F2C",z="#D74D26",U={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},H="#8B46FF",V={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},W="#18BFFF",K="#20D9D2",q={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},G={blue:V[500],cyan:W,green:q[500],yellow:j,orange:F,red:U[500],purple:H,teal:K},X=Object.values(G),Y=[M,N,R,I,L],$=[B,j,F,z,U[500]],Q=[H,V[500],W,K,q[500]],J=[q[900],q[500],j,F,U[500]],Z=Object.values(U),ee=Object.values(q),te=Object.values(V),re=V[500],ne={width:450,height:300,padding:60,colorScale:X},ie={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:L,stroke:"transparent"},oe=Object.assign({textAnchor:"middle"},ie),se="10, 5",ae="round",le="round",ce={grayscale:c,material:E,clean:{palette:{colors:G,grayscale:Y,qualitative:X,heatmap:J,warm:$,cool:Q,red:Z,green:ee,blue:te},area:Object.assign({style:{data:{fill:re,strokeWidth:2,fillOpacity:.5},labels:ie}},ne),axis:Object.assign({style:{axis:{fill:"transparent",stroke:R,strokeWidth:1,strokeLinecap:ae,strokeLinejoin:le},axisLabel:Object.assign({},oe,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:ie}},ne),polarAxis:Object.assign({style:{axis:{stroke:R},grid:{stroke:P,strokeDasharray:se,strokeLinecap:ae,strokeLinejoin:le,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:P,strokeWidth:1,strokeLinecap:ae,strokeLinejoin:le},tickLabels:ie}}),polarDependentAxis:Object.assign({style:{axis:{stroke:R},grid:{stroke:P,strokeDasharray:se,strokeLinecap:ae,strokeLinejoin:le,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:N,strokeWidth:1,strokeLinecap:ae,strokeLinejoin:le},tickLabels:ie}}),bar:Object.assign({style:{data:{fill:re,padding:8,strokeWidth:1,fillOpacity:.5},labels:ie},cornerRadius:{top:1}},ne),boxplot:Object.assign({style:{max:{padding:8,stroke:P,strokeWidth:2},maxLabels:Object.assign({},ie,{padding:3}),median:{padding:8,stroke:T,strokeWidth:2},medianLabels:Object.assign({},ie,{padding:3}),min:{padding:8,stroke:P,strokeWidth:2},minLabels:Object.assign({},ie,{padding:3}),q1:{padding:8,fill:X[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},ie,{padding:3}),q3:{padding:8,fill:X[1],rx:1},q3Labels:Object.assign({},ie,{padding:3})},boxWidth:20},ne),candlestick:Object.assign({style:{data:{stroke:N,strokeWidth:0,rx:1},labels:Object.assign({},ie,{padding:5})},candleColors:{positive:q[500],negative:U[500]},wickStrokeWidth:2},ne),chart:ne,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:I,strokeWidth:2,strokeLinecap:ae},labels:ie}},ne),group:Object.assign({colorScale:X},ne),histogram:Object.assign({style:{data:{fill:W,fillOpacity:.5},labels:ie},binSpacing:4,cornerRadius:{top:1}},ne),label:ie,legend:{colorScale:X,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...ie,fontSize:12},title:Object.assign({},ie,{padding:8,fontSize:16}),border:{stroke:O,strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:re,strokeWidth:2,strokeLinecap:ae,strokeLinejoin:le},labels:ie}},ne),pie:Object.assign({style:{parent:{backgroundColor:T},data:{padding:8,stroke:T,strokeWidth:1},labels:{...ie,padding:20,fill:D,fontSize:10}},colorScale:X,cornerRadius:1},ne),scatter:Object.assign({style:{data:{fill:re,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...ie,padding:20}}},ne),stack:Object.assign({colorScale:X},ne),tooltip:{style:Object.assign({},ie,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:N,strokeWidth:2,fill:T,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:V[100],stroke:re,strokeWidth:2},labels:Object.assign({},ie,{padding:5,pointerEvents:"none"}),flyout:{stroke:L,strokeWidth:1,fill:M,pointerEvents:"none"},padding:{left:2,bottom:2}}},ne)}}},1328(e,t,r){"use strict";r.d(t,{v:()=>ve});var n={};r.r(n),r.d(n,{easeBack:()=>X,easeBackIn:()=>q,easeBackInOut:()=>X,easeBackOut:()=>G,easeBounce:()=>V,easeBounceIn:()=>H,easeBounceInOut:()=>W,easeBounceOut:()=>
2V,easeCircle:()=>D,easeCircleIn:()=>P,easeCircleInOut:()=>D,easeCircleOut:()=>R,easeCubic:()=>A,easeCubicIn:()=>b,easeCubicInOut:()=>A,easeCubicOut:()=>y,easeElastic:()=>Q,easeElasticIn:()=>$,easeElasticInOut:()=>J,easeElasticOut:()=>Q,easeExp:()=>N,easeExpIn:()=>M,easeExpInOut:()=>N,easeExpOut:()=>O,easeLinear:()=>f,easePoly:()=>x,easePolyIn:()=>v,easePolyInOut:()=>x,easePolyOut:()=>w,easeQuad:()=>g,easeQuadIn:()=>p,easeQuadInOut:()=>g,easeQuadOut:()=>m,easeSin:()=>E,easeSinIn:()=>_,easeSinInOut:()=>E,easeSinOut:()=>S});var i=r(9950),o=r(210),s=r.n(o),a=r(6791),l=r.n(a),c=r(5357),u=r.n(c),d=r(4901),h=r.n(d);const f=e=>+e;function p(e){return e*e}function m(e){return e*(2-e)}function g(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function b(e){return e*e*e}function y(e){return--e*e*e+1}function A(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var v=function e(t){function r(e){return Math.pow(e,t)}return t=+t,r.exponent=e,r}(3),w=function e(t){function r(e){return 1-Math.pow(1-e,t)}return t=+t,r.exponent=e,r}(3),x=function e(t){function r(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,r.exponent=e,r}(3),k=Math.PI,C=k/2;function _(e){return 1===+e?1:1-Math.cos(e*C)}function S(e){return Math.sin(e*C)}function E(e){return(1-Math.cos(k*e))/2}function T(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function M(e){return T(1-+e)}function O(e){return 1-T(e)}function N(e){return((e*=2)<=1?T(1-e):2-T(e-1))/2}function P(e){return 1-Math.sqrt(1-e*e)}function R(e){return Math.sqrt(1- --e*e)}function D(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var I=4/11,L=6/11,B=8/11,j=9/11,F=10/11,z=21/22,U=7.5625;function H(e){return 1-V(1-e)}function V(e){return(e=+e)<I?U*e*e:e<B?U*(e-=L)*e+.75:e<F?U*(e-=j)*e+.9375:U*(e-=z)*e+.984375}function W(e){return((e*=2)<=1?1-V(1-e):V(e-1)+1)/2}var K=1.70158,q=function e(t){function r(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,r.overshoot=e,r}(K),G=function e(t){function r(e){return--e*e*((e+1)*t+e)+1}return t=+t,r.overshoot=e,r}(K),X=function e(t){function r(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,r.overshoot=e,r}(K),Y=2*Math.PI,$=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Y);function i(e){return t*T(- --e)*Math.sin((n-e)/r)}return i.amplitude=function(t){return e(t,r*Y)},i.period=function(r){return e(t,r)},i}(1,.3),Q=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Y);function i(e){return 1-t*T(e=+e)*Math.sin((e+n)/r)}return i.amplitude=function(t){return e(t,r*Y)},i.period=function(r){return e(t,r)},i}(1,.3),J=function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=Y);function i(e){return((e=2*e-1)<0?t*T(-e)*Math.sin((n-e)/r):2-t*T(e)*Math.sin((n+e)/r))/2}return i.amplitude=function(t){return e(t,r*Y)},i.period=function(r){return e(t,r)},i}(1,.3),Z=r(5461),ee=r.n(Z),te=r(263),re=r.n(te),ne=r(3959);const ie=function(e){if(null!==e)switch(typeof e){case"undefined":case"boolean":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return e instanceof Date||Array.isArray(e)||ee()(e)}return!1},oe=function(e,t,r){return void 0===r&&(r=0),function(n){return n<r?e:t}},se=function(e,t){return function(r){return r>=1?t:function(){const n="function"===typeof e?e.apply(this,arguments):e,i="function"===typeof t?t.apply(this,arguments):t;return(0,ne.A)(n,i)(r)}}},ae=function(e,t){const r=(e,t)=>e!==t&&ie(e)&&ie(t)?"function"===typeof e||"function"===typeof t?se(e,t):"object"===typeof e&&ee()(e)||"object"===typeof t&&ee()(t)?ae(e,t):(0,ne.A)(e,t):oe(e,t),n=e=>Array.isArray(e)?re()(e,"key"):e,i={},o={};let s,a=e,l=t;for(s in null!==a&&"object"===typeof a||(a={}),null!==l&&"object"===typeof l||(l={}),l)s in a?i[s]=r(n(a[s]),n(l[s])):o[s]=l[s];return function(e){for(s in i)o[s]=i[s](e);return o}},le=function(e,t){return e!==t&&ie(e)&&ie(t)?"function"===typeof e||"function"===typeof t?se(e,t):ee()(e)||ee()(t)?ae(e,t):"string"===typeof e||"string"===typeof t?function(e,t){const r=e=>"string"===typeof e?e.replace(/,/g,""):e;return(0,ne.A)(r(e),r(t))}(e,t):(0,ne.A)(e,t):oe(e,t)};var ce=r(6646);const ue=1e3,de=e=>{let{duration:t=ue,easing:r="quadInOut",delay:o=0,data:s,children:a,onEnd:l}=e;const[c,u]=i.useState({data:Array.isArray(s)?s[0]:s,animationInfo:{progress:0,animating:!1}}),d=i.useContext(ce.A).animationTimer,h=i.useRef(Array.isArray(s)?s.slice(1):[]),f=i.useRef(null),p=i.useRef(void 0),m=n[g=r,`ease${g.charAt(0).toUpperCase()+g.slice(1)}`];var g;i.useEffect(()=>(h.current.length&&b(),()=>{p.current?d.unsubscribe(p.current):d.stop()}),[]),i.useEffect(()=>{f.current&&c.animationInfo&&c.animationInfo.progress<1?u({data:f.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(d.unsubscribe(p.current),h.current=Array.isArray(s)?s:[s],b())},[s]);const b=()=>{if(h.current.length){const e=h.current[0];f.current=le(c.data,e),o?setTimeout(()=>{p.current=d.subscribe(y,t)},o):p.current=d.subscribe(y,t)}else l&&l()},y=e=>{if(!f.current)return;const r=t?e/t:1;if(r>=1)return u({data:f.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),p.current&&d.unsubscribe(p.current),h.current.shift(),void b();u({data:f.current(m(r)),animationInfo:{progress:r,animating:r<1}})};return a(c.data,c.animationInfo)};var he=r(348),fe=r(95),pe=r(3594);function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},me.apply(this,arguments)}class ge extends i.Component{static displayName="VictoryTransition";static contextType=(()=>ce.A)();constructor(e,t){super(e,t),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const r=this.props.children,n=r.props.polar;this.continuous=!n&&r.type&&!0===r.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(e){return h()(this.props,e)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,e),()=>this.timer.resumeAnimation())),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(e,t){const{animate:r}=e;if(!r)return{};if(r.parentState){return{oldProps:r.parentState.nodesWillExit?e:null,nextProps:t}}const n=i.Children.toArray(e.children),o=i.Children.toArray(t.children),{nodesWillExit:s,nodesWillEnter:a,childrenTransitions:l,nodesShouldEnter:c}=pe.$(n,o);return{nodesWillExit:s,nodesWillEnter:a,childrenTransitions:l,nodesShouldEnter:c,oldProps:s?e:null,nextProps:t}}getDomainFromChildren(e,t){const r=e=>e.reduce((e,n)=>{if(n.type&&fe.Tn(n.type.getDomain)){const r=n.props&&n.type.getDomain(n.props,t);return r?e.concat(r):e}return n.props&&n.props.children?e.concat(r(i.Children.toArray(n.props.children))):e},[]),n=i.Children.toArray(e.children)[0],o=n.props||{},s=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[t];if(!o.children&&s)return s;const a=r([n]);return 0===a.length?[0,1]:[he.Y0(a),he.gP(a)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(e){const t=e.animate?.parentState;return t&&t.nodesWillExit?(this.continuous||t.continuous)&&(t.nextProps||this.state.nextProps)||e:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||e}getClipWidth(e,t){const r=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==r?r:(()=>{const r=fe.eO(t.props,"x");return r?Math.abs(r[1]-r[0]):e.width})()}render(){const e=this.pickProps(),t=this.props.animate?.getTransitions?this.props.animate.getTransitions:pe.u(e,this.state,e=>this.setState(e)),r=i.Children.toArray(e.children)[0],n=t(r);this.transitionProps=n;const o={x:this.getDomainFromChildren(this.pickDomainProps(e),"x"),y:this.getDomainFromChildren(e,"y")},a=this.getClipWidth(e,r),l=s()({domain:o,clipWidth:a},n,r.props),c=(e.animationWhitelist||[]).concat(["clipWidth"]),d=c.length?u()(l,c):l;return i.createElement(de,me({},l.animate,{data:d}),e=>{if(r.props.groupComponent){const t=this.continuous?i.cloneElement(r.props.groupComponent,{clipWidth:e.clipWidth||0}):r.props.groupComponent;return i.cloneElement(r,s()({animate:null,animating:!0,groupComponent:t},e,l))}return i.cloneElement(r,s()({animate:null,animating:!0},e,l))})}}var be=r(669);const ye=e=>!(0,fe.gD)(e._x)&&!(0,fe.gD)(e._y),Ae=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function ve(e,t){void 0===t&&(t={});return class extends e{constructor(e){super(e),this.cacheValues(this.getCalculatedValues(e))}state={};getEventState=(()=>be.Mk.bind(this))();getScopedEvents=(()=>be.Qu.bind(this))();getEvents=(e,t,r)=>be.kQ.call(this,e,t,r,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(e){const t=this.getExternalMutations(e),r=this.props.animating||this.props.animate,n=!h()(t,this.externalMutations);if(r||n)return this.cacheValues(this.getCalculatedValues(e)),this.externalMutations=t,this.applyExternalMutations(e,t),!0;const i=this.getStateChanges(e);return h()(this.calculatedState,i)?!h()(this.props,e)&&(this.cacheValues(this.getCalculatedValues(e)),!0):(this.cacheValues(this.getCalculatedValues(e)),!0)}componentDidMount(){const e=Object.keys(this.globalEvents);e.forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=e}componentDidUpdate(e){const t=this.getStateChanges(e);this.calculatedState=t;const r=Object.keys(this.globalEvents);
2(0,he.iv)(this.prevGlobalEventKeys,r).forEach(e=>this.removeGlobalListener(e));(0,he.iv)(r,this.prevGlobalEventKeys).forEach(e=>this.addGlobalListener(e)),this.prevGlobalEventKeys=r}componentWillUnmount(){this.prevGlobalEventKeys.forEach(e=>this.removeGlobalListener(e))}addGlobalListener(e){const t=t=>{const r=this.globalEvents[e];return r&&r(be.nG(t))};this.boundGlobalEvents[e]=t,window.addEventListener(be.Sd(e),t)}removeGlobalListener(e){window.removeEventListener(be.Sd(e),this.boundGlobalEvents[e])}getStateChanges(e){if(!this.hasEvents)return{};const r=(e,t)=>{const r=s()({},this.getEventState(e,t),this.getSharedEventState(e,t));return l()(r)?void 0:r};return(t.components||Ae).map(t=>{if(e.standalone||"parent"!==t.name)return void 0!==t.index?r(t.index,t.name):this.dataKeys.map(e=>r(e,t.name)).filter(Boolean)}).filter(Boolean)}applyExternalMutations(e,t){if(!l()(t)){const r=e.externalEventMutations.reduce((e,t)=>(0,fe.Tn)(t.callback)?e.concat(t.callback):e,[]),n=r.length?()=>{r.forEach(e=>e())}:void 0;this.setState(t,n)}}getCalculatedValues(t){const{sharedEvents:r}=t,n=e.expectedComponents,i=be.D0(t,n),o=r&&(0,fe.Tn)(r.getEventState)?r.getEventState:()=>{},s=this.getBaseProps(t,o);return{componentEvents:i,getSharedEventState:o,baseProps:s,dataKeys:Object.keys(s).filter(e=>"parent"!==e),hasEvents:t.events||t.sharedEvents||i,events:this.getAllEvents(t)}}getExternalMutations(e){const{sharedEvents:t,externalEventMutations:r}=e;return l()(r)||t?void 0:be.qy(r,this.baseProps,this.state)}cacheValues(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}getBaseProps(t,r){const n=(r||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=s()({},i,n),a=o.parentControlledProps,l=a?u()(o,a):{},c=s()({},l,t);return"function"===typeof e.getBaseProps?e.getBaseProps(c):{}}getAllEvents(e){return Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events}getComponentProps(t,r,n){const i=this.props.name||e.role,o=this.dataKeys&&this.dataKeys[n]||n,a=`${i}-${r}-${o}`,l=this.baseProps[o]&&this.baseProps[o][r]||this.baseProps[o];if(!l&&!this.hasEvents)return;const c=t&&"object"===typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){const e=this.getEvents(this.props,r,o),t=s()({index:n,key:a},this.getEventState(o,r),this.getSharedEventState(o,r),c,l,{id:a}),i=s()({},be.lU(e,o,t),t.events);return Object.assign({},t,{events:i})}return s()({index:n,key:a},c,l,{id:a})}renderContainer(e,t){const r=e.type&&"container"===e.type.role?this.getComponentProps(e,"parent","parent"):{};return r.events&&(this.globalEvents=be.N0(r.events),r.events=be.gc(r.events)),i.cloneElement(e,r,t)}animateComponent(e,t){const r="object"===typeof e.animate&&e.animate?.animationWhitelist||t,n=this.constructor;return i.createElement(ge,{animate:e.animate,animationWhitelist:r},i.createElement(n,e))}renderContinuousData(e){const{dataComponent:t,labelComponent:r,groupComponent:n}=e,o=this.dataKeys.filter(e=>"all"!==e),s=o.reduce((e,t)=>{let n=e;const o=this.getComponentProps(r,"labels",t);return o&&void 0!==o.text&&null!==o.text&&(n=n.concat(i.cloneElement(r,o))),n},[]),a=this.getComponentProps(t,"data","all"),l=[i.cloneElement(t,a),...s];return this.renderContainer(n,l)}renderData(e,t){void 0===t&&(t=ye);const{dataComponent:r,labelComponent:n,groupComponent:o}=e,s=[...this.dataKeys.reduce((e,n,o)=>{const s=this.getComponentProps(r,"data",o);return t(s.datum)&&e.push(i.cloneElement(r,s)),e},[]),...this.dataKeys.map((e,t)=>{const r=this.getComponentProps(n,"labels",t);if(void 0!==r.text&&null!==r.text)return i.cloneElement(n,r)}).filter(Boolean)];return this.renderContainer(o,s)}}}},725(e,t,r){"use strict";r.d(t,{$z:()=>v,C3:()=>g,Ei:()=>A,FB:()=>M,Ly:()=>N,Oi:()=>w,RE:()=>_,UK:()=>k,dW:()=>y,fC:()=>E,fk:()=>x,hN:()=>O,hh:()=>b});var n=r(9950),i=r(210),o=r.n(i),s=r(4567),a=r.n(s),l=r(561),c=r.n(l),u=r(263),d=r.n(u),h=r(348),f=r(3712),p=r(95);function m(e){return e}function g(e){const{dependentAxis:t}=e;return t?"y":"x"}function b(e,t){const r=t||m,i=e=>e.reduce((e,t)=>t.type&&"axis"===t.type.role&&r(t)?e.concat(t):t.props&&t.props.children?e.concat(i(n.Children.toArray(t.props.children))):e,[]);return i(e)}function y(e,t){return b(e,e=>e.type.getAxis(e.props)===t)[0]}function A(e,t){const r=e=>e.reduce((e,i)=>
2{if(i.type&&"axis"===i.type.role&&(e=>"dependent"===t?e.props.dependentAxis:!e.props.dependentAxis)(i))return e.concat(i);if(i.props&&i.props.children){return r(n.Children.toArray(i.props.children)).length>0?e.concat(i):e}return e},[]);return r(e)}function v(e){const t=e=>{const t=Math.min(...e),r=Math.max(...e);return r<0?r:Math.max(0,t)};return{x:h.dw(e.x)?new Date(Math.min(...e.x)):t(e.x),y:h.dw(e.y)?new Date(Math.min(...e.y)):t(e.y)}}function w(e,t){return h.dw(t)?"positive":e<=0&&Math.max(...t)<=0?"negative":"positive"}function x(e){return{top:!1,bottom:!1,left:!0,right:!0}[e.orientation||(e.dependentAxis?"left":"bottom")]}function k(e){return void 0!==e.tickValues&&h.Au(e.tickValues)}function C(e){const{tickValues:t,tickFormat:r}=e;if(0===t?.length)return[];const n=g(e),i=e.stringMap&&e.stringMap[n];let o=t;i&&(o=function(e){const t=g(e),r=e.stringMap&&e.stringMap[t],n=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=n&&h.ym(n)?n.map(e=>r[e]):void 0,o=r&&Object.values(r);return i&&0!==i.length?i:o}(e)),t&&h.Au(t)&&(o=i?t.map(e=>i[e]):p.y1(1,t.length+1));const s=o?c()(o):(()=>{if(r&&Array.isArray(r))return h.Au(r)?r.map((e,t)=>t):r})();return Array.isArray(s)&&s.length?(t=>{const r=[],i=e.domain&&e.domain[n]||e.domain;if(t)return t.forEach((e,t)=>{Array.isArray(i)?e>=h.Y0(i).valueOf()&&e<=h.gP(i).valueOf()&&r.push({value:e,index:t}):r.push({value:e,index:t})}),r})(s):void 0}function _(e,t){const{tickFormat:r}=e,n=g(e),i=e.stringMap&&e.stringMap[n];if(!r){const r=function(e){const{tickValues:t}=e,r=g(e),n=e.stringMap&&e.stringMap[r],i=t&&!h.dw(t)?e=>e:void 0;if(!n)return k(e)?(e,r)=>t[r]:i;const o=n&&p.B8(n),s=["",...d()(Object.values(n),e=>e).map(e=>o[e]),""];return e=>s[e]}(e),n=t.tickFormat&&p.Tn(t.tickFormat)?t.tickFormat():e=>e;return r||n}if(r&&Array.isArray(r)){const t=C(e),n=t?.map(e=>e.index),i=r.filter((e,t)=>n?.includes(t));return(e,t)=>i[t]}if(r&&p.Tn(r)){return i?(t,r,n)=>{const o=p.B8(i),s=n.map(e=>o[e]);return e.tickFormat(o[t],r,s)}:r}return e=>e}function S(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;const r=Math.floor(e.length/t);return e.filter((e,t)=>t%r===0)}function E(e,t,r){void 0===r&&(r=!1);const{tickCount:n}=e,i=C(e);if(0===i?.length)return[""];const o=i?i.map(e=>e.value):void 0;if(o)return S(o,n);if(t.ticks&&p.Tn(t.ticks)){const e=n||5,i=t.ticks(e),o=S(Array.isArray(i)&&i.length?i:t.domain(),n);if(r){const e=o.filter(e=>0!==e);return e.length?e:o}return o}return t.domain()}function T(e,t){const{polar:r,startAngle:n=0,endAngle:i=360}=e,o=C(e),s=o&&0!==o?.length?o.map(e=>e.value):void 0;if(!Array.isArray(s))return;const a=f.fV(e,t),l=f.Jd(e,t),c=k(e),u=s.map(e=>Number(e)),d=c?1:h.Y0(u),p=c?s.length:h.gP(u),m=void 0!==a?a:d,g=void 0!==l?l:p,b=f.nB(m,g),y=r&&"x"===t&&360===Math.abs(n-i)?f.si(b,u):b;return x(e)&&!r&&y.reverse(),y}function M(e,t){const r=g(e);if(!t||t===r)return f.n3(T)(e,r)}function O(e,t){if(!e.axisValue)return;const r="x"===t?"y":"x",n=a()(e.scale)&&p.Tn(e.scale[r])?e.scale[r]:void 0;if(!n)return;const i="x"===t?"y":"x",o=a()(e.stringMap)&&e.stringMap[i];return n(o&&"string"===typeof e.axisValue?o[e.axisValue]:e.axisValue)}function N(e,t){if(!a()(e.theme))return p.Ly(e,t,"axis");let r="axis";if(e.dependentAxis&&e.theme.dependentAxis?r="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(r="independentAxis"),"axis"===r)return p.Ly(e,t,"axis");const n=o()({},e.theme[r],e.theme.axis),i=Object.assign({},e.theme,{axis:n});return p.Ly(Object.assign({},e,{theme:i}),t,"axis")}},348(e,t,r){"use strict";function n(e){return Array.isArray(e)&&e.length>0}function i(e){return Array.isArray(e)&&e.some(e=>"string"===typeof e)}function o(e){return Array.isArray(e)&&e.some(e=>e instanceof Date)}function s(e){return n(e)&&e.every(e=>"string"===typeof e)}function a(e,t){return e&&t?e.filter(e=>!t.includes(e)):[]}function l(e){return n(e)&&e.every(Array.isArray)}function c(e){return e.filter(e=>void 0!==e)}function u(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const i=e.concat(r);return o(i)?new Date(Math.max(...i)):Math.max(...i)}function d(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const i=e.concat(r);return o(i)?new Date(Math.min(...i)):Math.min(...i)}r.d(t,{Au:()=>i,Bb:()=>c,Y0:()=>d,ZI:()=>l,dw:()=>o,gP:()=>u,iv:()=>a,ym:()=>s})},6813(e,t,r){"use strict";r.d(t,{QM:()=>N,bW:()=>D,bQ:()=>I,AO:()=>L,BD:()=>B,Wi:()=>j});
2var n=r(9950),i=r(6791),o=r.n(i),s=r(9418),a=r.n(s),l=r(5461),c=r.n(l),u=r(7842),d=r.n(u),h=r(3256),f=r.n(h),p=r(263),m=r.n(p),g=r(8857),b=r.n(g),y=r(561),A=r.n(y),v=r(95),w=r(348),x=r(1423);function k(e){return!(!e||!e["@@__IMMUTABLE_ITERABLE__@@"])}function C(e,t){return k(e)?e.reduce((e,r,n)=>{let i=r;return t&&t[n]&&(i=C(r)),e[n]=i,e},function(e){return!(!e||!e["@@__IMMUTABLE_LIST__@@"])}(e)?[]:{}):e}function _(e){return k(t=e)||function(e){return!(!e||!e["@@__IMMUTABLE_RECORD__@@"])}(t)?C(e,{errorX:!0,errorY:!0}):e;var t}function S(e){return k(e)?e.size:e.length}function E(e,t){const r=(c()(e.domain)?e.domain[t]:e.domain)||x.wV(e,t).domain(),n=e.samples||1,i=Math.max(...r),o=Math.min(...r),s=(i-o)/n,a=v.y1(o,i,s);return a[a.length-1]===i?a:a.concat(i)}function T(e,t,r){if(void 0===r&&(r="ascending"),!t)return e;let n=t;"x"!==t&&"y"!==t||(n=`_${t}`);const i="ascending"===r?"asc":"desc";return m()(e,n,i)}function M(e,t){const r=1/Number.MAX_SAFE_INTEGER,n={x:x.bI(t,"x"),y:x.bI(t,"y")};if("log"!==n.x&&"log"!==n.y)return e;const i=(e,t)=>"log"!==n[t]||0!==e[`_${t}`];return e.map(e=>i(e,"x")&&i(e,"y")&&i(e,"y0")?e:(e=>{const t=i(e,"x")?e._x:r,n=i(e,"y")?e._y:r,o=i(e,"y0")?e._y0:r;return Object.assign({},e,{_x:t,_y:n,_y0:o})})(e))}function O(e,t){const r=!!e.eventKey,n=(i=e.eventKey,v.Tn(i)?i:null===i||void 0===i?()=>{}:b()(i));var i;return t.map((e,t)=>{if(void 0!==e.eventKey)return e;if(r){const r=n(e,t);return void 0!==r?Object.assign({eventKey:r},e):e}return e})}function N(e,t,r){const n=e=>void 0!==e,i=w.Y0(t.x),o=w.gP(t.x),s=w.Y0(t.y),a=w.gP(t.y),l=e=>t=>n(t)&&t<e,c=e=>t=>n(t)&&t>e,u=l(i),h=l(s),p=c(o),m=c(a);return e.map(e=>{let{_x:t,_y:i,_y0:o,_y1:l}=e;(u(t)||p(t))&&(t=null);const c=n(o)?o:r,g=n(l)?l:i;return n(g)?(n(c)||!h(g)&&!m(g)||(i=null),(h(c)&&h(g)||m(c)&&m(g))&&(i=o=l=null),h(c)&&!h(g)&&(o=s),m(c)&&!m(g)&&(o=a),Object.assign({},e,f()({_x:t,_y:i,_y0:o,_y1:l},d()))):e})}function P(e,t){const r=L(e,t),n=B(e,t),i=function(e,t){const r=Array.isArray(e.data)||k(e.data);if(!r)return[];const n=void 0===e[t]?t:e[t],i=v.qP(n),o=e.data.reduce((e,t)=>(e.push(_(t)),e),[]),s=T(o,e.sortKey,e.sortOrder);return s.reduce((e,t)=>{const r=_(t);return e.push(i(r)),e},[]).filter(e=>"string"===typeof e).reduce((e,t)=>(void 0!==t&&null!==t&&-1===e.indexOf(t)&&e.push(t),e),[])}(e,t),o=A()([...r,...n,...i]);return 0===o.length?null:o.reduce((e,t,r)=>(e[t]=r+1,e),{})}function R(e,t,r){if(!(Array.isArray(e)||k(e))||S(e)<1)return[];const n=["x","y","y0"];r=Array.isArray(r)?r:n;const i=r.reduce((e,r)=>{var n;return e[r]=(n=r,v.qP(void 0!==t[n]?t[n]:n)),e},{}),s=a()(r,n)&&"_x"===t.x&&"_y"===t.y&&"_y0"===t.y0;let l;!1===s&&(l={x:-1!==r.indexOf("x")?P(t,"x"):void 0,y:-1!==r.indexOf("y")?P(t,"y"):void 0,y0:-1!==r.indexOf("y0")?P(t,"y"):void 0});const c=M(T(s?e:e.reduce((e,t,n)=>{const s=_(t),a={x:n,y:s},c=r.reduce((e,t)=>{const r=i[t](s),n=void 0!==r?r:a[t];return void 0!==n&&("string"===typeof n&&l[t]?(e[`${t}Name`]=n,e[`_${t}`]=l[t][n]):e[`_${t}`]=n),e},{}),u=Object.assign({},c,s);return o()(u)||e.push(u),e}
2,[]),t.sortKey,t.sortOrder),t);return O(t,c)}function D(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function I(e){return e.data?R(e.data,e):R(function(e){const t=E(e,"x"),r=E(e,"y");return t.map((e,t)=>({x:e,y:r[t]}))}(e),e)}function L(e,t){const{tickValues:r,tickFormat:n}=e;let i;return i=r&&(Array.isArray(r)||r[t])?r[t]||r:n&&Array.isArray(n)?n:[],i.filter(e=>"string"===typeof e)}function B(e,t){if(!e.categories)return[];const r=D(e,t),n=r&&r.filter(e=>"string"===typeof e);return n?w.Bb(n):[]}function j(e){const t=e=>e&&e.type?e.type.role:"";let r=t(e);if("portal"===r){const i=n.Children.toArray(e.props.children);r=i.length?t(i[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(r)}},3712(e,t,r){"use strict";r.d(t,{FB:()=>y,I4:()=>b,Jd:()=>x,VB:()=>w,fK:()=>A,fV:()=>k,kh:()=>_,n3:()=>g,nB:()=>v,si:()=>C});var n=r(9950),i=r(4708),o=r.n(i),s=r(5461),a=r.n(s),l=r(8116),c=r.n(l),u=r(6813),d=r(1423),h=r(95),f=r(348);function p(e,t,r){void 0===r&&(r="min");const n=e=>"max"===r?Math.max(...e):Math.min(...e),i="max"===r?-1/0:1/0;let o=!1;const s=e.flat().reduce((e,r)=>{const i=void 0!==r[`_${t}0`]?r[`_${t}0`]:r[`_${t}`],s=void 0!==r[`_${t}1`]?r[`_${t}1`]:r[`_${t}`],a=n([i,s]);return o=o||i instanceof Date||s instanceof Date,n([e,a])},i);return o?new Date(s):s}function m(e,t,r){if(!t.domainPadding)return e;const n=k(t,r),i=x(t,r),o=function(e,t){const r=e=>Array.isArray(e)?{left:e[0],right:e[1]}:{left:e,right:e};return a()(e.domainPadding)?r(e.domainPadding[t]):r(e.domainPadding)}(t,r);if(!o.left&&!o.right)return e;const s=f.Y0(e),l=f.gP(e),c=h.B(r,t.horizontal),u=h.eO(t,c),d=Math.abs(u[0]-u[1]),p=Math.max(d-o.left-o.right,1),m=Math.abs(l.valueOf()-s.valueOf())/p*d,g=m*o.left/d,b=m*o.right/d;let y={min:s.valueOf()-g,max:l.valueOf()+b};const A=a()(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[r]:t.singleQuadrantDomainPadding,w=(e,t)=>"min"===t&&s.valueOf()>=0&&e<=0||"max"===t&&l.valueOf()<=0&&e>=0?0:e;if((s.valueOf()>=0&&y.min<=0||l.valueOf()<=0&&y.max>=0)&&!1!==A){const e={left:Math.abs(l-s)*o.left/d,right:Math.abs(l-s)*o.right/d},t={min:w(s.valueOf()-e.left,"min"),max:w(l.valueOf()+e.right,"max")},r={left:Math.abs(t.max-t.min)*o.left/d,right:Math.abs(t.max-t.min)*o.right/d};y={min:w(s.valueOf()-r.left,"min"),max:w(l.valueOf()+r.right,"max")}}const C={min:void 0!==n?n:y.min,max:void 0!==i?i:y.max};return s instanceof Date||l instanceof Date?v(new Date(C.min),new Date(C.max)):v(C.min,C.max)}function g(e,t){const r=h.Tn(e)?e:A,n=h.Tn(t)?t:b;return(e,t)=>{const i=w(e,t);if(i)return n(i,e,t);const o=u.bW(e,t),s=o?function(e,t,r){const n=r||u.bW(e,t),{polar:i,startAngle:o=0,endAngle:s=360}=e;if(!n)return;const a=k(e,t),l=x(e,t),c=f.Au(n)?u.BD(e,t):[],d=0===c.length?null:c.reduce((e,t,r)=>(e[t]=r+1,e),{}),h=d?n.map(e=>d[e]):n,p=void 0!==a?a:f.Y0(h),m=void 0!==l?l:f.gP(h),g=v(p,m);return i&&"x"===t&&360===Math.abs(o-s)?C(g,h):g}(e,t,o):r(e,t);return s?n(s,e,t):void 0}}function b(e,t,r){return function(e,t,r){return"log"!==d.bI(t,r)?e:(e=>{const t=e[0]<0||e[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===e[0]?t:e[0],0===e[1]?t:e[1]]})(e)}(m(e,t,r),t,r)}function y(e,t){return g()(e,t)}function A(e,t,r){const n=r||u.bQ(e),{polar:i,startAngle:o=0,endAngle:s=360}=e,a=k(e,t),l=x(e,t);if(n.length<1)return void 0!==a&&void 0!==l?v(a,l):void 0;const c=v(void 0!==a?a:p(n,t,"min"),void 0!==l?l:p(n,t,"max"));return i&&"x"===t&&360===Math.abs(o-s)?C(c,function(e,t){const r=`_${t}`;return e.flat().map(e=>e[r]&&void 0!==e[r][1]?e[r][1]:e[r])}(n,t)):c}function v(e,t){return Number(e)===Number(t)?(e=>{const t=0===e?2*Math.pow(10,-10):Math.pow(10,-10),r=e instanceof Date?new Date(Number(e)-1):Number(e)-t,n=e instanceof Date?new Date(Number(e)+1):Number(e)+t;return 0===e?[0,n]:[r,n]})(t):[e,t]}function w(e,t){const r=k(e,t),n=x(e,t);return a()(e.domain)&&e.domain[t]?e.domain[t]:Array.isArray(e.domain)?e.domain:void 0!==r&&void 0!==n?v(r,n):void 0}function x(e,t){return a()(e.maxDomain)&&void 0!==e.maxDomain[t]?e.maxDomain[t]:"number"===typeof e.maxDomain||o()(e.maxDomain)?e.maxDomain:void 0}function k(e,t){return a()(e.minDomain)&&void 0!==e.minDomain[t]?e.minDomain[t]:"number"===typeof e.minDomain||o()(e.minDomain)?e.minDomain:void 0}function C(e,t){const r=c()(t.sort((e,t)=>
2e-t)),n=r[1]-r[0];return[e[0],e[1]+n]}function _(e){const t=e=>e&&e.type?e.type.role:"";let r=t(e);if("portal"===r){const i=n.Children.toArray(e.props.children);r=i.length?t(i[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(r)}},669(e,t,r){"use strict";r.d(t,{D0:()=>v,JB:()=>b,Mk:()=>g,N0:()=>x,Qu:()=>p,Sd:()=>w,gc:()=>k,kQ:()=>f,lU:()=>m,nG:()=>C,qy:()=>y});var n=r(6791),i=r.n(n),o=r(8936),s=r.n(o),a=r(3256),l=r.n(a),c=r(561),u=r.n(c),d=r(95);const h=/^onGlobal(.*)$/;function f(e,t,r,n){const i=e=>{const n=(()=>{const n=e.reduce((e,r)=>{if(void 0!==r.target){return(Array.isArray(r.target)?r.target.includes(t):`${r.target}`===`${t}`)?e.concat(r):e}return e.concat(r)},[]);return void 0!==r&&"parent"!==t?n.filter(e=>{const t=e.eventKey,n=e=>!e||`${e}`===`${r}`;return Array.isArray(t)?t.some(e=>n(e)):n(t)}):n})();return Array.isArray(n)&&n.reduce((e,t)=>t?Object.assign(e,t.eventHandlers):e,{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(e.events)?this.componentEvents.concat(...e.events):this.componentEvents:e.events)(),s=o&&(0,d.Tn)(n)?n(i(o),t):void 0;if(!e.sharedEvents)return s;const a=e.sharedEvents.getEvents,l=e.sharedEvents.events&&a(i(e.sharedEvents.events),t);return Object.assign({},l,s)}function p(e,t,r,n){if(i()(e))return{};const o=n||this.baseProps,s=(e,t)=>{const{childName:r,target:n,key:i}=e,s="props"===t?o:this.state||{},a=void 0!==r&&null!==r&&s[r]?s[r]:s;return"parent"===i?a.parent:a[i]&&a[i][n]},a=(e,n)=>{const i="parent"===t?e.childName:e.childName||r,a=e.target||t,l=(t,r)=>{const n=this.state||{};if(!(0,d.Tn)(e.mutation))return n;const i=s({childName:r,key:t,target:a},"props"),l=s({childName:r,key:t,target:a},"state"),c=e.mutation(Object.assign({},i,l),o),u=n[r]||{},h=e=>c?(e=>"parent"===a?Object.assign(e,{[t]:Object.assign(e[t]||{},c)}):Object.assign(e,{[t]:Object.assign(e[t]||{},{[a]:c})}))(e):(e=>(e[t]&&e[t][a]&&delete e[t][a],e[t]&&!Object.keys(e[t]).length&&delete e[t],e))(e);return void 0!==r&&null!==r?Object.assign(n,{[r]:h(u)}):h(n)},c=t=>{const r=(t=>"parent"===a?"parent":"all"===e.eventKey?o[t]?Object.keys(o[t]).filter(e=>"parent"!==e):Object.keys(o).filter(e=>"parent"!==e):void 0===e.eventKey&&"parent"===n?o[t]?Object.keys(o[t]):Object.keys(o):void 0!==e.eventKey?e.eventKey:n)(t);return Array.isArray(r)?r.reduce((e,r)=>Object.assign(e,l(r,t)),{}):l(r,t)},u="all"===i?Object.keys(o).filter(e=>"parent"!==e):i;return Array.isArray(u)?u.reduce((e,t)=>Object.assign(e,c(t)),{}):c(u)},l=(t,r,n,o)=>{const s=e[o](t,r,n,this);if(!i()(s)){const e=(e=>{const t=e=>(0,d.Tn)(e.callback)&&e.callback,r=(Array.isArray(e)?e.map(e=>t(e)):[t(e)]).filter(e=>!1!==e);return r.length?()=>r.forEach(e=>e()):void 0})(s);this.setState(((e,t)=>Array.isArray(e)?e.reduce((e,r)=>Object.assign({},e,a(r,t)),{}):a(e,t))(s,n),e)}};return Object.keys(e).reduce((e,t)=>(e[t]=l,e),{})}function m(e,t,r){return e?Object.keys(e).reduce((n,i)=>(n[i]=n=>e[i](n,r,t,i),n),{}):{}}function g(e,t,r){const n=this.state||{};return r?n[r]&&n[r][e]&&n[r][e][t]:"parent"===e?n[e]&&n[e][t]||n[e]:n[e]&&n[e][t]}function b(e,t,r,n){return void 0===t&&(t={}),void 0===r&&(r={}),n.reduce((n,o)=>{const a=r[o],l=y(e,t[o],r[o],o);return n[o]=l||a,s()(n,e=>!i()(e))},{})}function y(e,t,r,n){void 0===t&&(t={}),void 0===r&&(r={});return Object.keys(t).reduce((o,a)=>{const l=r[a]||{},c=t[a]||{};if("parent"===a){const t=A(e,c,l,{eventKey:a,target:"parent"});o[a]=void 0!==t?Object.assign({},l,t):l}else{const t=u()(Object.keys(c).concat(Object.keys(l)));o[a]=t.reduce((t,r)=>{const o={eventKey:a,target:r,childName:n},u=A(e,c[r],l[r],o);return t[r]=void 0!==u?Object.assign({},l[r],u):l[r],s()(t,e=>!i()(e))},{})}return s()(o,e=>!i()(e))},{})}function A(e,t,r,n){const o=(e,t)=>{if("string"===typeof e[t])return"all"===e[t]||e[t]===n[t];if(Array.isArray(e[t])){return e[t].map(e=>`${e}`).includes(n[t])}return!1};let s=Array.isArray(e)?e:[e];n.childName&&(s=e.filter(e=>o(e,"childName")));const a=s.filter(e=>o(e,"target"));if(i()(a))return;const l=a.filter(e=>o(e,"eventKey"));return i()(l)?void 0:l.reduce((e,n)=>{const i=(n&&(0,d.Tn)(n.mutation)?n.mutation:()=>{})(Object.assign({},t,r));return Object.assign({},e,i)},{})}function v(e,t){const r=Array.isArray(t)&&t.reduce((t,r)=>{const n=e[r],i=n&&n.type&&n.type.defaultEvents,o=(0,d.Tn)(i)?i(n.props):i;return Array.isArray(o)?t.concat(...o):t},[]);return r&&r.length?r:void 0}function w(e){const t=e.match(h);return t&&t[1]&&t[1].toLowerCase()}const x=e=>s()(e,(e,t)=>h.test(t)),k=e=>l()(e,(e,t)=>h.test(t)),C=e=>Object.assign(e,{nativeEvent:e})},95(e,t,r){"use strict";r.d(t,{$f:()=>b,B:()=>M,B8:()=>u,Cq:()=>p,El:()=>N,Ly:()=>T,Pw:()=>k,Tn:()=>S,Vx:()=>y,cJ:()=>d,eO:()=>C,fC:()=>h,gD:()=>_,hq:()=>f,nv:()=>w,o8:()=>g,qP:()=>E,tR:()=>v,xj:()=>A,y1:()=>O,yK:()=>m});
2var n=r(9950),i=r(210),o=r.n(i),s=r(8857),a=r.n(s),l=r(5357),c=r.n(l);function u(e){return Object.entries(e).reduce((e,t)=>(e[t[1]]=t[0],e),{})}function d(e,t){void 0===t&&(t=[]);const r={};for(const n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function h(e){const{_x:t,_x1:r,_x0:n,_voronoiX:i,_y:s,_y1:a,_y0:l,_voronoiY:c}=e,u={x:i??(r??t),x0:n??t,y:c??(a??s),y0:l??s};return o()({},u,e)}function f(e,t){const{scale:r,polar:n,horizontal:i}=e,o=h(t),s=e.origin||{x:0,y:0},a=i?r.y(o.y):r.x(o.x),l=i?r.y(o.y0):r.x(o.x0),c=i?r.x(o.x):r.y(o.y),u=i?r.x(o.x0):r.y(o.y0);return{x:n?c*Math.cos(a)+s.x:a,x0:n?u*Math.cos(l)+s.x:l,y:n?-c*Math.sin(a)+s.y:c,y0:n?-u*Math.sin(l)+s.x:u}}function p(e){const t="number"===typeof e?e:0,r="object"===typeof e?e:{};return{top:r.top||t,bottom:r.bottom||t,left:r.left||t,right:r.right||t}}function m(e){return"tooltip"===(e&&e.type&&e.type.role)}function g(e,t){const{theme:r={},labelComponent:n}=e,i=r[t]&&r[t].style||{};if(!m(n))return i;const s=r.tooltip&&r.tooltip.style||{},a=o()({},s,i.labels);return o()({},{labels:a},i)}function b(e,t){const r="100%",n="100%";if(!e)return o()({parent:{height:n,width:r}},t);const{data:i,labels:s,parent:a}=e,l=t&&t.parent||{},c=t&&t.labels||{},u=t&&t.data||{};return{parent:o()({},a,l,{width:r,height:n}),labels:o()({},s,c),data:o()({},i,u)}}function y(e,t){return S(e)?e(t):e}function A(e,t){return t.disableInlineStyles?{}:e&&Object.keys(e).some(t=>S(e[t]))?Object.keys(e).reduce((r,n)=>(r[n]=y(e[n],t),r),{}):e}function v(e){return"number"===typeof e?e*(Math.PI/180):e}function w(e){return"number"===typeof e?e/(Math.PI/180):e}function x(e){const{width:t,height:r,padding:n}=e,{left:i,right:o,top:s,bottom:a}=n;return Math.min(t-i-o,r-s-a)/2}function k(e){const{width:t,height:r}=e,{top:n,bottom:i,left:o,right:s}=p(e.padding),a=Math.min(t-o-s,r-n-i)/2,l=t/2+o-s,c=r/2+n-i;return{x:l+a>t?a+o-s:l,y:c+a>r?a+n-i:c}}function C(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?function(e){if("x"===e.axis)return[v(e.startAngle||0),v(e.endAngle||360)];return[e.innerRadius||0,x({height:e.height,width:e.width,padding:e.padding})]}({axis:t,innerRadius:e.innerRadius,startAngle:e.startAngle,endAngle:e.endAngle,height:e.height,width:e.width,padding:p(e.padding)}):"x"!==(r={axis:t,height:e.height,width:e.width,padding:p(e.padding)}).axis?[r.height-r.padding.bottom,r.padding.top]:[r.padding.left,r.width-r.padding.right];var r}function _(e){return null==e}function S(e){return"function"===typeof e}function E(e){return S(e)?e:null===e||void 0===e?e=>e:a()(e)}function T(e,t,r){const i=d(e.theme&&e.theme[r]?e.theme[r]:{},["style"]),s=function(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;const t=e=>e.reduce((e,r)=>{const i=r.props||{};return e||i.horizontal||!i.children?e||i.horizontal:t(n.Children.toArray(i.children))},!1);return t(n.Children.toArray(e.children))}(e),a=void 0===s?{}:{horizontal:s};return o()(a,e,i,t)}function M(e,t){return t?"x"===e?"y":"x":e}function O(e,t,r){const n=t?e:0;let i=t||e;i||(i=0);const o=i-n,s=Math.abs(o),a=o/s||1,l=r||1,c=Math.max(Math.ceil(s/l),0);return Array.from(Array(c),(e,t)=>n+t*a*l)}function N(e,t,r,i,o){void 0===r&&(r={}),void 0===i&&(i=[]),void 0===o&&(o=(e,t)=>e.concat(t));const s=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(e,l,u)=>e.reduce((e,i,d)=>{let h=e;const f=i.type&&i.type.role,p=i.props.name||`${f}-${l[d]}`;if(i.props&&i.props.children){const e=Object.assign({},i.props,c()(r,s)),t=i.type&&"stack"===i.type.role&&S(i.type.getChildren)?i.type.getChildren(e):n.Children.toArray(i.props.children).map(t=>{const r=Object.assign({},t.props,c()(e,s));return n.cloneElement(t,r)}),l=t.map((e,t)=>`${p}-${t}`),u=a(t,l,i);h=o(h,u)}else{const e=t(i,p,u);e&&(h=o(h,e))}return h},i),l=e.filter(n.isValidElement),u=l.map((e,t)=>t);return a(l,u)}},2216(e,t,r){"use strict";r.d(t,{DM:()=>p,W8:()=>h,WP:()=>d,kv:()=>f,q4:()=>c,r6:()=>u});var n=r(95),i=r(210),o=r.n(i);function s(e,t){if(e.polar)return{};const r=function(e,t){void 0===t&&(t={});const{horizontal:r,style:i}=e,o=i.labels||{},s=n.Vx(o.padding,e)||0,a=t._y<0?-1:1;return{x:r?a*s:0,y:r?0:-1*a*s}}(e,t);return{dx:r.x,dy:r.y}}function a(e,t){const{polar:r}=e,{x:i,y:o}=n.hq(e,t);if(!r)return{x:i,y:o};const s=function(e,t){const{style:r}=e,i=f(e,t),o=r.labels||{},s=n.Vx(o.padding,e)||0,a=n.tR(i);return{x:s*Math.cos(a),y:-s*Math.sin(a)}}(e,t);return{x:i+s.x,y:o+s.y}}function l(e){const{labelComponent:t,labelPlacement:r,polar:n}=e,i=n?"perpendicular":"vertical";return r||(t.props&&t.props.labelPlacement||i)}function c(e,t,r){return void 0===t&&(t={}),void 0!==t.label?t.label:Array.isArray(e.labels)?e.labels[r]:e.labels}function u(e,t){const r=l(e);return"perpendicular"===r||"vertical"===r&&(90===t||270===t)?"middle":t<=90||t>270?"start":"end"}function d(e,t){const r=l(e),n=function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}(t);return"parallel"===r||"left"===n||"right"===n?"middle":"top"===n?"end":"start"}function h(e,t){const{labelPlacement:r,datum:n}=e;if(!r||"vertical"===r)return 0;const i=void 0!==t?t%360:f(e,n);let o=0;0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i);return o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===r?0:90)}function f(e,t){const{x:r}=n.fC(t);return n.nv(e.scale.x(r))%360}function p(e,t){const{scale:r,data:i,style:h,horizontal:p,polar:m,width:g,height:b,theme:y,labelComponent:A,disableInlineStyles:v}=e,w=i[t],x=f(e,w),k=m?u(e,x):function(e,t){void 0===t&&(t={});const{style:r,horizontal:n}
2=e,i=t._y>=0?1:-1,o=r&&r.labels||{};return t.verticalAnchor||o.verticalAnchor?t.verticalAnchor||o.verticalAnchor:n?i>=0?"start":"end":"middle"}(e,w),C=m?d(e,x):function(e,t){void 0===t&&(t={});const r=t._y>=0?1:-1,n=e.style&&e.style.labels||{};return t.verticalAnchor||n.verticalAnchor?t.verticalAnchor||n.verticalAnchor:e.horizontal?"middle":r>=0?"end":"start"}(e,w),_=function(e,t){void 0===t&&(t={});const r=e.style&&e.style.labels||{};return void 0===t.angle?r.angle:t.angle}(e,w),S=c(e,w,t),E=l(e),{x:T,y:M}=a(e,w),{dx:O,dy:N}=s(e,w),P={angle:_,data:i,datum:w,disableInlineStyles:v,horizontal:p,index:t,polar:m,scale:r,labelPlacement:E,text:S,textAnchor:k,verticalAnchor:C,x:T,y:M,dx:O,dy:N,width:g,height:b,style:h.labels};if(!n.yK(A))return P;const R=y&&y.tooltip||{};return o()({},P,n.cJ(R,["style"]))}},4788(e,t,r){"use strict";function n(e){0}r.d(t,{R:()=>n})},1423(e,t,r){"use strict";r.d(t,{wV:()=>Mn,ie:()=>Tn,RJ:()=>On,bI:()=>Nn});var n={};r.r(n),r.d(n,{scaleBand:()=>b,scaleDiverging:()=>yn,scaleDivergingLog:()=>An,scaleDivergingPow:()=>wn,scaleDivergingSqrt:()=>xn,scaleDivergingSymlog:()=>vn,scaleIdentity:()=>de,scaleImplicit:()=>m,scaleLinear:()=>ue,scaleLog:()=>ve,scaleOrdinal:()=>g,scalePoint:()=>A,scalePow:()=>Me,scaleQuantile:()=>Ue,scaleQuantize:()=>He,scaleRadial:()=>Pe,scaleSequential:()=>dn,scaleSequentialLog:()=>hn,scaleSequentialPow:()=>pn,scaleSequentialQuantile:()=>gn,scaleSequentialSqrt:()=>mn,scaleSequentialSymlog:()=>fn,scaleSqrt:()=>Oe,scaleSymlog:()=>Ce,scaleThreshold:()=>Ve,scaleTime:()=>an,scaleUtc:()=>ln,tickFormat:()=>le});var i=r(5461),o=r.n(i),s=r(95),a=r(348);function l(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function c(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class u extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[r,n]of e)this.set(r,n)}get(e){return super.get(d(this,e))}has(e){return super.has(d(this,e))}set(e,t){return super.set(h(this,e),t)}delete(e){return super.delete(f(this,e))}}Set;function d(e,t){let{_intern:r,_key:n}=e;const i=n(t);return r.has(i)?r.get(i):t}function h(e,t){let{_intern:r,_key:n}=e;const i=n(t);return r.has(i)?r.get(i):(r.set(i,t),t)}function f(e,t){let{_intern:r,_key:n}=e;const i=n(t);return r.has(i)&&(t=r.get(i),r.delete(i)),t}function p(e){return null!==e&&"object"===typeof e?e.valueOf():e}const m=Symbol("implicit");function g(){var e=new u,t=[],r=[],n=m;function i(i){let o=e.get(i);if(void 0===o){if(n!==m)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new u;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return g(t,r).unknown(n)},l.apply(i,arguments),i}function b(){var e,t,r=g().unknown(void 0),n=r.domain,i=r.range,o=0,s=1,a=!1,c=0,u=0,d=.5;function h(){var r=n().length,l=s<o,h=l?s:o,f=l?o:s;e=(f-h)/Math.max(1,r-c+2*u),a&&(e=Math.floor(e)),h+=(f-h-e*(r-c))*d,t=e*(1-c),a&&(h=Math.round(h),t=Math.round(t));var p=function(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}(r).map(function(t){return h+e*t});return i(l?p.reverse():p)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),h()):n()},r.range=function(e){return arguments.length?([o,s]=e,o=+o,s=+s,h()):[o,s]},r.rangeRound=function(e){return[o,s]=e,o=+o,s=+s,a=!0,h()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(a=!!e,h()):a},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),h()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),h()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,h()):u},r.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),h()):d},r.copy=function(){return b(n(),[o,s]).round(a).paddingInner(c).paddingOuter(u).align(d)},l.apply(h(),arguments)}function y(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return y(t())},e}function A(){return y(b.apply(null,arguments).paddingInner(1))}const v=Math.sqrt(50),w=Math.sqrt(10),x=Math.sqrt(2);function k(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),s=o>=v?10:o>=w?5:o>=x?2:1;let a,l,c;return i<0?(c=Math.pow(10,-i)/s,a=Math.round(e*c),l=Math.round(t*c),a/c<e&&++a,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*s,a=Math.round(e/c),l=Math.round(t/c),a*c<e&&++a,l*c>t&&--l),l<a&&.5<=r&&r<2?k(e,t,2*r):[a,l,c]}function C(e,t,r){if(!((r=+r)>0))return[];
2if((e=+e)===(t=+t))return[e];const n=t<e,[i,o,s]=n?k(t,e,r):k(e,t,r);if(!(o>=i))return[];const a=o-i+1,l=new Array(a);if(n)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(i+c)/-s;else for(let c=0;c<a;++c)l[c]=(i+c)*s;return l}function _(e,t,r){return k(e=+e,t=+t,r=+r)[2]}function S(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?_(t,e,r):_(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function E(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function T(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function M(e){let t,r,n;function i(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=E,r=(t,r)=>E(e(t),r),n=(t,r)=>e(t)-r):(t=e===E||e===T?e:O,r=e,n=e),{left:i,center:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const o=i(e,t,r,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return o>r&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<=0?i=t+1:o=t}while(i<o)}return i}}}function O(){return 0}function N(e){return null===e?NaN:+e}const P=M(E),R=P.right,D=(P.left,M(N).center,R);var I=r(3959),L=r(9253);function B(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function j(e){return+e}var F=[0,1];function z(e){return e}function U(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function H(e,t,r){var n=e[0],i=e[1],o=t[0],s=t[1];return i<n?(n=U(i,n),o=r(s,o)):(n=U(n,i),o=r(o,s)),function(e){return o(n(e))}}function V(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),s=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<n;)i[s]=U(e[s],e[s+1]),o[s]=r(t[s],t[s+1]);return function(t){var r=D(e,t,1,n)-1;return o[r](i[r](t))}}function W(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function K(){var e,t,r,n,i,o,s=F,a=F,l=I.A,c=z;function u(){var e=Math.min(s.length,a.length);return c!==z&&(c=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(s[0],s[e-1])),n=e>2?V:H,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?r:(i||(i=n(s.map(e),a,l)))(e(c(t)))}return d.invert=function(r){return c(t((o||(o=n(a,s.map(e),L.A)))(r)))},d.domain=function(e){return arguments.length?(s=Array.from(e,j),u()):s.slice()},d.range=function(e){return arguments.length?(a=Array.from(e),u()):a.slice()},d.rangeRound=function(e){return a=Array.from(e),l=B,u()},d.clamp=function(e){return arguments.length?(c=!!e||z,u()):c!==z},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,u()}}function q(){return K()(z,z)}var G,X=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Y(e){if(!(t=X.exec(e)))throw new Error("invalid format: "+e);var t;return new $({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Q(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function J(e){return(e=Q(Math.abs(e)))?e[1]:NaN}function Z(e,t){var r=Q(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Y.prototype=$.prototype,$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
vendor: 2,153 bytes, line 2
2:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ee={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Z(100*e,t),r:Z,s:function(e,t){var r=Q(e,t);if(!r)return G=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(G=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=n.length;return o===s?n:o>s?n+new Array(o-s+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Q(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function te(e){return e}var re,ne,ie,oe=Array.prototype.map,se=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function ae(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?te:(t=oe.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],s=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),o.push(e.substring(i-=a,i+a)),!((l+=a+1)>n));)a=t[s=(s+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?te:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(oe.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"\u2212":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var r=(e=Y(e)).fill,d=e.align,h=e.sign,f=e.symbol,p=e.zero,m=e.width,g=e.comma,b=e.precision,y=e.trim,A=e.type;"n"===A?(g=!0,A="g"):ee[A]||(void 0===b&&(b=12),y=!0,A="g"),(p||"0"===r&&"="===d)&&(p=!0,r="0",d="=");var v=(t&&void 0!==t.prefix?t.prefix:"")+("$"===f?i:"#"===f&&/[boxX]/.test(A)?"0"+A.toLowerCase():""),w=("$"===f?o:/[%p]/.test(A)?l:"")+(t&&void 0!==t.suffix?t.suffix:""),x=ee[A],k=/[defgprs%]/.test(A);function C(e){var t,i,o,l=v,f=w;if("c"===A)f=x(e)+f,e="";else{var C=(e=+e)<0||1/e<0;
vendor: 4,326 bytes, line 2
2if(e=isNaN(e)?u:x(Math.abs(e),b),y&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0===+e&&"+"!==h&&(C=!1),l=(C?"("===h?h:c:"-"===h||"("===h?"":h)+l,f=("s"!==A||isNaN(e)||void 0===G?"":se[8+G/3])+f+(C&&"("===h?")":""),k)for(t=-1,i=e.length;++t<i;)if(48>(o=e.charCodeAt(t))||o>57){f=(46===o?s+e.slice(t+1):e.slice(t))+f,e=e.slice(0,t);break}}g&&!p&&(e=n(e,1/0));var _=l.length+e.length+f.length,S=_<m?new Array(m-_+1).join(r):"";switch(g&&p&&(e=n(S+e,S.length?m-f.length:1/0),S=""),d){case"<":e=l+e+f+S;break;case"=":e=l+S+e+f;break;case"^":e=S.slice(0,_=S.length>>1)+l+e+f+S.slice(_);break;default:e=S+l+e+f}return a(e)}return b=void 0===b?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),C.toString=function(){return e+""},C}return{format:d,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(J(t)/3))),n=Math.pow(10,-r),i=d(((e=Y(e)).type="f",e),{suffix:se[8+r/3]});return function(e){return i(n*e)}}}}function le(e,t,r,n){var i,o=S(e,t,r);switch((n=Y(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(J(t)/3)))-J(Math.abs(e)))}(o,s))||(n.precision=i),ie(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,J(t)-J(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-J(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return ne(n)}function ce(e){var t=e.domain;return e.ticks=function(e){var r=t();return C(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return le(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,o=t(),s=0,a=o.length-1,l=o[s],c=o[a],u=10;for(c<l&&(i=l,l=c,c=i,i=s,s=a,a=i);u-- >0;){if((i=_(l,c,r))===n)return o[s]=l,o[a]=c,t(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}n=i}return e},e}function ue(){var e=q();return e.copy=function(){return W(e,ue())},l.apply(e,arguments),ce(e)}function de(e){var t;function r(e){return null==e||isNaN(e=+e)?t:e}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,j),r):e.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return de(e).unknown(t)},e=arguments.length?Array.from(e,j):[0,1],ce(r)}function he(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],s=e[i];return s<o&&(r=n,n=i,i=r,r=o,o=s,s=r),e[n]=t.floor(o),e[i]=t.ceil(s),e}function fe(e){return Math.log(e)}function pe(e){return Math.exp(e)}function me(e){return-Math.log(-e)}function ge(e){return-Math.exp(-e)}function be(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ye(e){return(t,r)=>-e(-t,r)}function Ae(e){const t=e(fe,pe),r=t.domain;let n,i,o=10;function s(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?be:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),r()[0]<0?(n=ye(n),i=ye(i),e(me,ge)):e(fe,pe),t}return t.base=function(e){return arguments.length?(o=+e,s()):o},t.domain=function(e){return arguments.length?(r(e),s()):r()},t.ticks=e=>{const t=r();let s=t[0],a=t[t.length-1];const l=a<s;l&&([s,a]=[a,s]);let c,u,d=n(s),h=n(a);const f=null==e?10:+e;let p=[];if(!(o%1)&&h-d<f){if(d=Math.floor(d),h=Math.ceil(h),s>0){for(;d<=h;++d)for(c=1;c<o;++c)if(u=d<0?c/i(-d):c*i(d),!(u<s)){if(u>a)break;p.push(u)}}else for(;d<=h;++d)for(c=o-1;c>=1;--c)if(u=d>0?c/i(-d):c*i(d),!(u<s)){if(u>a)break;p.push(u)}2*p.length<f&&(p=C(s,a,f))}else p=C(d,h,Math.min(h-d,f)).map(i);return l?p.reverse():p},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===o?"s":","),"function"!==typeof r&&(o%1||null!=(r=Y(r)).precision||(r.trim=!0),r=ne(r)),e===1/0)return r;const s=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(n(e)));return t*o<o-.5&&(t*=o),t<=s?r(e):""}},t.nice=()=>r(he(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function ve(){const e=Ae(K()).domain([1,10]);return e.copy=()=>
vendor: 15,400 bytes, line 2
2W(e,ve()).base(e.base()),l.apply(e,arguments),e}function we(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function xe(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ke(e){var t=1,r=e(we(t),xe(t));return r.constant=function(r){return arguments.length?e(we(t=+r),xe(t)):t},ce(r)}function Ce(){var e=ke(K());return e.copy=function(){return W(e,Ce()).constant(e.constant())},l.apply(e,arguments)}function _e(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Se(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ee(e){return e<0?-e*e:e*e}function Te(e){var t=e(z,z),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(z,z):.5===r?e(Se,Ee):e(_e(r),_e(1/r)):r},ce(t)}function Me(){var e=Te(K());return e.copy=function(){return W(e,Me()).exponent(e.exponent())},l.apply(e,arguments),e}function Oe(){return Me.apply(null,arguments).exponent(.5)}function Ne(e){return Math.sign(e)*e*e}function Pe(){var e,t=q(),r=[0,1],n=!1;function i(r){var i=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(r));return isNaN(i)?e:n?Math.round(i):i}return i.invert=function(e){return t.invert(Ne(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((r=Array.from(e,j)).map(Ne)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Pe(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},l.apply(i,arguments),ce(i)}function Re(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function De(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function Ie(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E;if(e===E)return Le;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}function Le(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function Be(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,i=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=void 0===i?Le:Ie(i);n>r;){if(n-r>600){const o=n-r+1,s=t-r+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);Be(e,t,Math.max(r,Math.floor(t-s*l/o+c)),Math.min(n,Math.floor(t+(o-s)*l/o+c)),i)}const o=e[t];let s=r,a=n;for(je(e,r,t),i(e[n],o)>0&&je(e,r,n);s<a;){for(je(e,s,a),++s,--a;i(e[s],o)<0;)++s;for(;i(e[a],o)>0;)--a}0===i(e[r],o)?je(e,r,a):(++a,je(e,a,n)),a<=t&&(r=a+1),t<=a&&(n=a-1)}return e}function je(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Fe(e,t,r){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r)),(n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return De(e);if(t>=1)return Re(e);var n,i=(n-1)*t,o=Math.floor(i),s=Re(Be(e,o).subarray(0,o+1));return s+(De(e.subarray(o+1))-s)*(i-o)}}function ze(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),s=+r(e[o],o,e);return s+(+r(e[o+1],o+1,e)-s)*(i-o)}}function Ue(){var e,t=[],r=[],n=[];function i(){var e=0,i=Math.max(1,r.length);for(n=new Array(i-1);++e<i;)n[e-1]=ze(t,e/i);return o}function o(t){return null==t||isNaN(t=+t)?e:r[D(n,t)]}return o.invertExtent=function(e){var i=r.indexOf(e);return i<0?[NaN,NaN]:[i>0?n[i-1]:t[0],i<n.length?n[i]:t[t.length-1]]},o.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(E),i()},o.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.quantiles=function(){return n.slice()},o.copy=function(){return Ue().domain(t).range(r).unknown(e)},l.apply(o,arguments)}function He(){var e,t=0,r=1,n=1,i=[.5],o=[0,1];function s(t){return null!=t&&t<=t?o[D(i,t,0,n)]:e}function a(){var e=-1;for(i=new Array(n);++e<n;)i[e]=((e+1)*r-(e-n)*t)/(n+1);return s}return s.domain=function(e){return arguments.length?([t,r]=e,t=+t,r=+r,a()):[t,r]},s.range=function(e){return arguments.length?(n=(o=Array.from(e)).length-1,a()):o.slice()},s.invertExtent=function(e){var s=o.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,i[0]]:s>=n?[i[n-1],r]:[i[s-1],i[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return He().domain([t,r]).range(o).unknown(e)},l.apply(ce(s),arguments)}function Ve(){var e,t=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[D(t,i,0,n)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),n=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return Ve().domain(t).range(r).unknown(e)},l.apply(i,arguments)}re=ae({thousands:",",grouping:[3],currency:["$",""]}),ne=re.format,ie=re.formatPrefix;const We=1e3,Ke=6e4,qe=36e5,Ge=864e5,Xe=6048e5,Ye=2592e6,$e=31536e6,Qe=new Date,Je=new Date;function Ze(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{const t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,o)=>{const s=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n)||!(o>0))return s;let a;do{s.push(a=new Date(+r)),t(r,o),e(r)}while(a<r&&r<n);return s},i.filter=r=>Ze(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(Qe.setTime(+t),Je.setTime(+n),e(Qe),e(Je),Math.floor(r(Qe,Je))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?t=>n(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const et=Ze(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);et.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Ze(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):et:null);et.range;const tt=Ze(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*We)},(e,t)=>(t-e)/We,e=>e.getUTCSeconds()),rt=(tt.range,Ze(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*We)},(e,t)=>{e.setTime(+e+t*Ke)},(e,t)=>(t-e)/Ke,e=>e.getMinutes())),nt=(rt.range,Ze(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ke)},(e,t)=>(t-e)/Ke,e=>e.getUTCMinutes())),it=(nt.range,Ze(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*We-e.getMinutes()*Ke)},(e,t)=>{e.setTime(+e+t*qe)},(e,t)=>(t-e)/qe,e=>e.getHours())),ot=(it.range,Ze(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qe)},(e,t)=>(t-e)/qe,e=>e.getUTCHours())),st=(ot.range,Ze(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ke)/Ge,e=>e.getDate()-1)),at=(st.range,Ze(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ge,e=>e.getUTCDate()-1)),lt=(at.range,Ze(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ge,e=>Math.floor(e/Ge)));lt.range;function ct(e){return Ze(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ke)/Xe)}const ut=ct(0),dt=ct(1),ht=ct(2),ft=ct(3),pt=ct(4),mt=ct(5),gt=ct(6);ut.range,dt.range,ht.range,ft.range,pt.range,mt.range,gt.range;function bt(e){return Ze(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/Xe)}const yt=bt(0),At=bt(1),vt=bt(2),wt=bt(3),xt=bt(4),kt=bt(5),Ct=bt(6),_t=(yt.range,At.range,vt.range,wt.range,xt.range,kt.range,Ct.range,Ze(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),St=(_t.range,Ze(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),Et=(St.range,Ze(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));Et.every=e=>isFinite(e=Math.floor(e))&&e>0?Ze(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null;Et.range;const Tt=Ze(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Tt.every=e=>isFinite(e=Math.floor(e))&&e>0?Ze(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null;Tt.range;function Mt(e,t,r,n,i,o){const s=[[tt,1,We],[tt,5,5e3],[tt,15,15e3],[tt,30,3e4],[o,1,Ke],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,qe],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,Ge],[n,2,1728e5],[r,1,Xe],[t,1,Ye],[t,3,7776e6],[e,1,$e]];function a(t,r,n){const i=Math.abs(r-t)/n,o=M(e=>{let[,,t]=e;return t}).right(s,i);if(o===s.length)return e.every(S(t/$e,r/$e,n));if(0===o)return et.every(Math.max(S(t,r,n),1));const[a,l]=s[i/s[o-1][2]<s[o][2]/i?o-1:o];return a.every(l)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"===typeof r.range?r:a(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},a]}const[Ot,Nt]=Mt(Tt,St,yt,lt,ot,nt),[Pt,Rt]=Mt(Et,_t,ut,st,it,rt);function Dt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function It(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Lt(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Bt,jt,Ft,zt={"-":"",_:" ",0:"0"},Ut=/^\s*\d+/,Ht=/^%/,Vt=/[\\^$*+?|[\]().{}]/g;function Wt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function Kt(e){return e.replace(Vt,"\\$&")}function qt(e){return new RegExp("^(?:"+e.map(Kt).join("|")+")","i")}function Gt(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Xt(e,t,r){var n=Ut.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Yt(e,t,r){var n=Ut.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function $t(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Qt(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Jt(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Zt(e,t,r){var n=Ut.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function er(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function tr(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function rr(e,t,r){var n=Ut.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function nr(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ir(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function or(e,t,r){var n=Ut.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function sr(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function ar(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lr(e,t,r){var n=Ut.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function cr(e,t,r){var n=Ut.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function ur(e,t,r){var n=Ut.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function dr(e,t,r){var n=Ht.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hr(e,t,r){var n=Ut.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function fr(e,t,r){var n=Ut.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function pr(e,t){return Wt(e.getDate(),t,2)}function mr(e,t){return Wt(e.getHours(),t,2)}function gr(e,t){return Wt(e.getHours()%12||12,t,2)}function br(e,t){return Wt(1+st.count(Et(e),e),t,3)}function yr(e,t){return Wt(e.getMilliseconds(),t,3)}function Ar(e,t){return yr(e,t)+"000"}function vr(e,t){return Wt(e.getMonth()+1,t,2)}function wr(e,t){return Wt(e.getMinutes(),t,2)}function xr(e,t){return Wt(e.getSeconds(),t,2)}function kr(e){var t=e.getDay();return 0===t?7:t}function Cr(e,t){return Wt(ut.count(Et(e)-1,e),t,2)}function _r(e){var t=e.getDay();return t>=4||0===t?pt(e):pt.ceil(e)}function Sr(e,t){return e=_r(e),Wt(pt.count(Et(e),e)+(4===Et(e).getDay()),t,2)}function Er(e){return e.getDay()}function Tr(e,t){return Wt(dt.count(Et(e)-1,e),t,2)}function Mr(e,t){return Wt(e.getFullYear()%100,t,2)}function Or(e,t){return Wt((e=_r(e)).getFullYear()%100,t,2)}function Nr(e,t){return Wt(e.getFullYear()%1e4,t,4)}function Pr(e,t){var r=e.getDay();return Wt((e=r>=4||0===r?pt(e):pt.ceil(e)).getFullYear()%1e4,t,4)}function Rr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Wt(t/60|0,"0",2)+Wt(t%60,"0",2)}function Dr(e,t){return Wt(e.getUTCDate(),t,2)}function Ir(e,t){return Wt(e.getUTCHours(),t,2)}function Lr(e,t){return Wt(e.getUTCHours()%12||12,t,2)}function Br(e,t){return Wt(1+at.count(Tt(e),e),t,3)}function jr(e,t){return Wt(e.getUTCMilliseconds(),t,3)}function Fr(e,t){return jr(e,t)+"000"}function zr(e,t){return Wt(e.getUTCMonth()+1,t,2)}function Ur(e,t){return Wt(e.getUTCMinutes(),t,2)}function Hr(e,t){return Wt(e.getUTCSeconds(),t,2)}function Vr(e){var t=e.getUTCDay();return 0===t?7:t}function Wr(e,t){return Wt(yt.count(Tt(e)-1,e),t,2)}function Kr(e){var t=e.getUTCDay();return t>=4||0===t?xt(e):xt.ceil(e)}function qr(e,t){return e=Kr(e),Wt(xt.count(Tt(e),e)+(4===Tt(e).getUTCDay()),t,2)}function Gr(e){return e.getUTCDay()}function Xr(e,t){return Wt(At.count(Tt(e)-1,e),t,2)}function Yr(e,t){return Wt(e.getUTCFullYear()%100,t,2)}function $r(e,t){return Wt((e=Kr(e)).getUTCFullYear()%100,t,2)}function Qr(e,t){return Wt(e.getUTCFullYear()%1e4,t,4)}function Jr(e,t){var r=e.getUTCDay();return Wt((e=r>=4||0===r?xt(e):xt.ceil(e)).getUTCFullYear()%1e4,t,4)}function Zr(){return"+0000"}function en(){return"%"}function tn(e){return+e}function rn(e){return Math.floor(+e/1e3)}function nn(e){return new Date(e)}function on(e){return e instanceof Date?+e:+new Date(+e)}function sn(e,t,r,n,i,o,s,a,l,c){var u=q(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),b=c("%a %d"),y=c("%b %
2d"),A=c("%B"),v=c("%Y");function w(e){return(l(e)<e?f:a(e)<e?p:s(e)<e?m:o(e)<e?g:n(e)<e?i(e)<e?b:y:r(e)<e?A:v)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,on)):h().map(nn)},u.ticks=function(t){var r=h();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var r=h();return e&&"function"===typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?h(he(r,e)):u},u.copy=function(){return W(u,sn(e,t,r,n,i,o,s,a,l,c))},u}function an(){return l.apply(sn(Pt,Rt,Et,_t,ut,st,it,rt,tt,jt).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ln(){return l.apply(sn(Ot,Nt,Tt,St,yt,at,ot,nt,tt,Ft).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function cn(){var e,t,r,n,i,o=0,s=1,a=z,l=!1;function c(t){return null==t||isNaN(t=+t)?i:a(0===r?.5:(t=(n(t)-e)*r,l?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var r,n;return arguments.length?([r,n]=t,a=e(r,n),c):[a(0),a(1)]}}return c.domain=function(i){return arguments.length?([o,s]=i,e=n(o=+o),t=n(s=+s),r=e===t?0:1/(t-e),c):[o,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(a=e,c):a},c.range=u(I.A),c.rangeRound=u(B),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return n=i,e=i(o),t=i(s),r=e===t?0:1/(t-e),c}}function un(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dn(){var e=ce(cn()(z));return e.copy=function(){return un(e,dn())},c.apply(e,arguments)}function hn(){var e=Ae(cn()).domain([1,10]);return e.copy=function(){return un(e,hn()).base(e.base())},c.apply(e,arguments)}function fn(){var e=ke(cn());return e.copy=function(){return un(e,fn()).constant(e.constant())},c.apply(e,arguments)}function pn(){var e=Te(cn());return e.copy=function(){return un(e,pn()).exponent(e.exponent())},c.apply(e,arguments)}function mn(){return pn.apply(null,arguments).exponent(.5)}function gn(){var e=[],t=z;function r(r){if(null!=r&&!isNaN(r=+r))return t((D(e,r,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(E),r},r.interpolator=function(e){return arguments.length?(t=e,r):t},r.range=function(){return e.map((r,n)=>t(n/(e.length-1)))},r.quantiles=function(t){return Array.from({length:t+1},(r,n)=>Fe(e,n/t))},r.copy=function(){return gn(t).domain(e)},c.apply(r,arguments)}function bn(){var e,t,r,n,i,o,s,a=0,l=.5,c=1,u=1,d=z,h=!1;function f(e){return isNaN(e=+e)?s:(e=.5+((e=+o(e))-t)*(u*e<u*t?n:i),d(h?Math.max(0,Math.min(1,e)):e))}function p(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,d=function(e,t){void 0===t&&(t=e,e=I.A);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}}(e,[r,n,i]),f):[d(0),d(.5),d(1)]}}return f.domain=function(s){return arguments.length?([a,l,c]=s,e=o(a=+a),t=o(l=+l),r=o(c=+c),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),u=t<e?-1:1,f):[a,l,c]},f.clamp=function(e){return arguments.length?(h=!!e,f):h},f.interpolator=function(e){return arguments.length?(d=e,f):d},f.range=p(I.A),f.rangeRound=p(B),f.unknown=function(e){return arguments.length?(s=e,f):s},function(s){return o=s,e=s(a),t=s(l),r=s(c),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),u=t<e?-1:1,f}}function yn(){var e=ce(bn()(z));return e.copy=function(){return un(e,yn())},c.apply(e,arguments)}function An(){var e=Ae(bn()).domain([.1,1,10]);return e.copy=function(){return un(e,An()).base(e.base())},c.apply(e,arguments)}function vn(){var e=ke(bn());return e.copy=function(){return un(e,vn()).constant(e.constant())},c.apply(e,arguments)}function wn(){var e=Te(bn());return e.copy=function(){return un(e,wn()).exponent(e.exponent())},c.apply(e,arguments)}function xn(){return wn.apply(null,arguments).exponent(.5)}!function(e){Bt=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,l=e.shortMonths,c=qt(i),u=Gt(i),d=qt(o),h=Gt(o),f=qt(s),p=Gt(s),m=qt(a),g=Gt(a),b=qt(l),y=Gt(l),A={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:pr,e:pr,f:Ar,g:Or,G:Pr,H:mr,I:gr,j:br,L:yr,m:vr,M:wr,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:tn,s:rn,S:xr,u:kr,U:Cr,V:Sr,w:Er,W:Tr,x:null,X:null,y:Mr,Y:Nr,Z:Rr,"%":en},v={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:Dr,e:Dr,f:Fr,g:$r,G:Jr,H:Ir,I:Lr,j:Br,L:jr,m:zr,M:Ur,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:tn,s:rn,S:Hr,u:Vr,U:Wr,V:qr,w:Gr,W:Xr,x:null,X:null,y:Yr,Y:Qr,Z:Zr,"%":en},w={a:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=b.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return C(e,t,r,n)},d:ir,e:ir,f:ur,g:er,G:Zt,H:sr,I:sr,j:or,L:cr,m:nr,M:ar,p:function(e,t,r){var n=c.exec(t.slice(r));return n?(e.p=u.get(n[0].toLowerCase()),r+n[0].length):-1}
2,q:rr,Q:hr,s:fr,S:lr,u:Yt,U:$t,V:Qt,w:Xt,W:Jt,x:function(e,t,n){return C(e,r,t,n)},X:function(e,t,r){return C(e,n,t,r)},y:er,Y:Zt,Z:tr,"%":dr};function x(e,t){return function(r){var n,i,o,s=[],a=-1,l=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++a<c;)37===e.charCodeAt(a)&&(s.push(e.slice(l,a)),null!=(i=zt[n=e.charAt(++a)])?n=e.charAt(++a):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),s.push(n),l=a+1);return s.push(e.slice(l,a)),s.join("")}}function k(e,t){return function(r){var n,i,o=Lt(1900,void 0,1);if(C(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=It(Lt(o.y,0,1))).getUTCDay(),n=i>4||0===i?At.ceil(n):At(n),n=at.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Dt(Lt(o.y,0,1))).getDay(),n=i>4||0===i?dt.ceil(n):dt(n),n=st.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?It(Lt(o.y,0,1)).getUTCDay():Dt(Lt(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,It(o)):Dt(o)}}function C(e,t,r,n){for(var i,o,s=0,a=t.length,l=r.length;s<a;){if(n>=l)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in zt?t.charAt(s++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return A.x=x(r,A),A.X=x(n,A),A.c=x(t,A),v.x=x(r,v),v.X=x(n,v),v.c=x(t,v),{format:function(e){var t=x(e+="",A);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=x(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),jt=Bt.format,Bt.parse,Ft=Bt.utcFormat,Bt.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const kn=["linear","time","log","sqrt"];function Cn(e){return"function"===typeof e?s.Tn(e.copy)&&s.Tn(e.domain)&&s.Tn(e.range):"string"===typeof e&&kn.includes(e)}function _n(e,t){return!!e.scale&&(!e.scale.x&&!e.scale.y||!!e.scale[t])}function Sn(e,t){if(!_n(e,t))return;const r=e.scale[t]||e.scale;return"string"===typeof r?r:function(e){if("string"===typeof e)return e;const t=Pn.filter(t=>void 0!==e[t.method])[0];return t?t.name:void 0}(r)}function En(e,t){if(!e.data)return"linear";const r=s.qP(e[t]),n=e.data.map(e=>{const n=o()(r(e))?r(e)[t]:r(e);return void 0!==n?n:e[t]});return a.dw(n)?"time":"linear"}function Tn(e){if(Cn(e)){const t=function(e){return`scale${t=e,t&&t[0].toUpperCase()+t.slice(1)}`;var t}(e);return n[t]()}return ue()}function Mn(e,t){const r=On(e,t);if(r)return"string"===typeof r?Tn(r):r;return Tn(function(e,t){let r;if(e.domain&&e.domain[t]?r=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(r=e.domain),r)return a.dw(r)?"time":"linear"}(e,t)||En(e,t))}function On(e,t){if(!_n(e,t))return;const r=e.scale[t]||e.scale;return Cn(r)?s.Tn(r)?r:Tn(r):void 0}function Nn(e,t){return Sn(e,t)||En(e,t)}const Pn=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}]},8682(e,t,r){"use strict";r.d(t,{Pu:()=>k,kB:()=>m});var n=r(210),i=r.n(n),o=r(53),s=r.n(o);const a={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.637
25,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.601
25625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.729687
25,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.601
25625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.89
20625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},l={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},c={em:1,ex:.5},u=1.05,d=1.15,h={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},f=e=>Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g),p=(e,t,r)=>{const n=(e=>e*Math.PI/180)(r);return Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t)},m=(e,t)=>{const r=e.match(/[a-zA-Z%]+/)?.[0],n=Number(e.match(/[0-9.,]+/));let i;return i=r?l.hasOwnProperty(r)?n*l[r]:c.hasOwnProperty(r)?(t?n*t:n*h.fontSize)*c[r]:n:n||
20,i},g=(e,t)=>{const r=Array.isArray(e)?e[t]:e,n=i()({},r,h);return Object.assign({},n,{fontFamily:n.fontFamily,letterSpacing:"number"===typeof n.letterSpacing?n.letterSpacing:m(String(n.letterSpacing),n.fontSize),fontSize:"number"===typeof n.fontSize?n.fontSize:m(String(n.fontSize))})},b=(e,t)=>{if(void 0===e||""===e||null===e)return 0;const r=f(e).map((e,r)=>{const n=e.toString().length,{fontSize:i,letterSpacing:o,fontFamily:s}=g(t,r),l=(e=>{const t=e.split(",").map(e=>e.replace(/'|"/g,"")).find(e=>a[e])||"Helvetica";return a[t]})(s);return e.toString().split("").map(e=>e.charCodeAt(0)<l.widths.length?l.widths[e.charCodeAt(0)]:l.avg).reduce((e,t)=>t+e,0)*i+o*Math.max(n-1,0)});return Math.max(...r)},y=(e,t)=>{const r=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,n=((e,t)=>void 0===e||""===e||null===e?0:f(e).reduce((e,r,n)=>{const i=g(t,n),o=r.toString().match(/[(A-Z)(0-9)]/)?i.fontSize*d:i.fontSize;return e+i.lineHeight*o},0))(e,t),i=b(e,t);return{width:r?p(i,n,r):i,height:(r?p(n,i,r):n)*u}},A=s()(()=>{const e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300"),e.setAttribute("aria-hidden","true");const t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),v=e=>e?`${e.angle}:${e.fontFamily}:${e.fontSize}:${e.letterSpacing}:${e.lineHeight}`:"null",w=s()((e,t)=>{let r=A();r.isConnected||(A.cache.clear?.(),r=A());const n=f(e);let i=0;for(const[s,a]of n.entries()){const e=document.createElementNS("http://www.w3.org/2000/svg","tspan"),n=g(t,s);e.style.fontFamily=n.fontFamily,e.style.fontSize=`${n.fontSize}px`,e.style.lineHeight=n.lineHeight,e.style.fontFamily=n.fontFamily,e.style.letterSpacing=n.letterSpacing,e.textContent=a,e.setAttribute("x","0"),e.setAttribute("y",`${i}`),r.appendChild(e),i+=n.lineHeight*e.getBoundingClientRect().height}const{width:o}=r.getBoundingClientRect();return r.innerHTML="",{width:t?.angle?p(o,i,t?.angle):o,height:t?.angle?p(i,o,t?.angle):i}},(e,t)=>`${Array.isArray(e)?e.join():e}::${Array.isArray(t)?t.map(v).join():v(t)}`),x=function(e,t,r){void 0===r&&(r=!1);return!("undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement)||r?y(e,t):w(e,t)},k=(e,t)=>x(e,t)},6646(e,t,r){"use strict";r.d(t,{A:()=>k});var n,i,o=r(9950),s=0,a=0,l=0,c=0,u=0,d=0,h="object"===typeof performance&&performance.now?performance:Date,f="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function p(){return u||(f(m),u=h.now()+d)}function m(){u=0}function g(){this._call=this._time=this._next=null}function b(e,t,r){var n=new g;return n.restart(e,t,r),n}function y(){u=(c=h.now())+d,s=a=0;try{!function(){p(),++s;for(var e,t=n;t;)(e=u-t._time)>=0&&t._call.call(void 0,e),t=t._next;--s}()}finally{s=0,function(){var e,t,r=n,o=1/0;for(;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(t=r._next,r._next=null,r=e?e._next=t:n=t);i=e,v(o)}(),u=0}}function A(){var e=h.now(),t=e-c;t>1e3&&(d-=t,c=e)}function v(e){s||(a&&(a=clearTimeout(a)),e-u>24?(e<1/0&&(a=setTimeout(y,e-h.now()-d)),l&&(l=clearInterval(l))):(l||(c=h.now(),l=setInterval(A,1e3)),s=1,f(y)))}g.prototype=b.prototype={constructor:g,restart:function(e,t,r){if("function"!==typeof e)throw new TypeError("callback is not a function");r=(null==r?p():+r)+(null==t?0:+t),this._next||i===this||(i?i._next=this:n=this,i=this),this._call=e,this._time=r,v()},stop:function(){this._call&&(this._call=null,this._time=1/0,v())}};class w{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach(e=>{e.callback(p()-e.startTime,e.duration)})};start(){this.timer||(this.timer=b(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}
2subscribe(e,t){const r=this.subscribers.push({startTime:p(),callback:e,duration:this.shouldAnimate?t:0});return this.activeSubscriptions++,this.start(),r}unsubscribe(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const x=o.createContext({transitionTimer:new w,animationTimer:new w});x.displayName="TimerContext";const k=x},3594(e,t,r){"use strict";r.d(t,{$:()=>h,u:()=>f});var n=r(9950),i=r(210),o=r.n(i),s=r(9002),a=r.n(s);function l(e,t){return(e.key||t).toString()}function c(e){return e.reduce((e,t,r)=>(e[l(t,r)]=t,e),{})}function u(e,t){let r=!1;const n=Object.keys(e).reduce((e,n)=>(n in t||(r=!0,e[n]=!0),e),{});return r&&n}function d(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function h(e,t){let r=!1,i=!1;const o=(e,t)=>{if(!t||e.type!==t.type)return{};const{entering:n,exiting:o}=function(e,t){const r=e&&c(e),n=t&&c(t);return{entering:r&&u(n,r),exiting:n&&u(r,n)}}(d(e),d(t))||{};return r=r||!!o,i=i||!!n,{entering:n||!1,exiting:o||!1}},s=(e,t)=>e.map((r,i)=>r&&r.props&&r.props.children&&t[i]?s(n.Children.toArray(e[i].props.children),n.Children.toArray(t[i].props.children)):o(r,t[i])),a=s(n.Children.toArray(e),n.Children.toArray(t));return{nodesWillExit:r,nodesWillEnter:i,childrenTransitions:a,nodesShouldEnter:!1}}function f(e,t,r){const n=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,s=t&&t.nodesShouldEnter,c=t&&t.nodesShouldLoad,u=t&&t.nodesDoneLoad,h=t&&t.childrenTransitions||[],f={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},p=(e,t,n)=>c?function(e,t,r){const n=Object.assign({},e,{onEnd:r});let i=t;if(n&&n.onLoad&&!n.onLoad.duration)return{animate:e,data:t};const o=e.onLoad&&e.onLoad.after?e.onLoad.after:a();return i=t.map((e,r)=>Object.assign({},e,o(e,r,t))),{animate:n,data:i}}(n,t,()=>{r({nodesShouldLoad:!1,nodesDoneLoad:!0})}):function(e,t,r,n){const i=Object.assign({},e,{onEnd:n});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:r};const o=i.onLoad&&i.onLoad.before?i.onLoad.before:a();return{animate:i,data:r.map((e,t)=>Object.assign({},e,o(e,t,r))),clipWidth:0}}(n,0,t,()=>{r({nodesDoneLoad:!0})}),m=(e,t,n,i)=>function(e,t,r,n,i){const o=e&&e.onExit,s=Object.assign({},e,o);let l=r;if(n){e.onEnd=i;const t=e.onExit&&e.onExit.before?e.onExit.before:a();l=r.map((e,i)=>{const o=(e.key||i).toString();return n[o]?Object.assign({},e,t(e,i,r)):e})}return{animate:s,data:l}}(i,0,n,e,()=>{r({nodesWillExit:!1})}),g=(e,t,n,i)=>s?function(e,t,r,n){const i=e&&e.onEnter,o=Object.assign({},e,i);let s=t;if(r){o.onEnd=n;const e=o.onEnter&&o.onEnter.after?o.onEnter.after:a();s=t.map((n,i)=>{const o=l(n,i);return r[o]?Object.assign({},n,e(n,i,t)):n})}return{animate:o,data:s}}(i,n,e,()=>{r({nodesWillEnter:!1})}):function(e,t,r,n,i){let o=e,s=r;if(n){o=Object.assign({},e,{onEnd:i});const t=e.onEnter&&e.onEnter.before?e.onEnter.before:a();s=r.map((e,i)=>{const o=(e.key||i).toString();return n[o]?Object.assign({},e,t(e,i,r)):e})}return{animate:o,data:s}}(i,0,n,e,()=>{r({nodesShouldEnter:!0})}),b=function(e,t){const r=e.props.animate;if(!e.type)return{};const n=e.props&&e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;if(n){const e=r[t]&&r[t].duration;return void 0!==e?e:n[t]&&n[t].duration}return{}};return function(r,l){const c=d(r)||[],y=o()({},e.animate,r.props.animate),A=r.props.polar&&r.type.defaultPolarTransitions||r.type.defaultTransitions;y.onExit=o()({},y.onExit,A&&A.onExit),y.onEnter=o()({},y.onEnter,A&&A.onEnter),y.onLoad=o()({},y.onLoad,A&&A.onLoad);const v=h[l]||h[0];if(!u){const e={duration:void 0!==f.load?f.load:b(r,"onLoad")};return p(0,c,Object.assign({},y,e))}if(n){const e=v&&v.exiting,t=void 0!==f.exit?f.exit:b(r,"onExit"),n=e?{duration:t}:{delay:t};return m(e,0,c,Object.assign({},y,n))}if(i){const e=v&&v.entering,t=void 0!==f.enter?f.enter:b(r,"onEnter"),n=void 0!==f.move?f.move:r.props.animate&&r.props.animate.duration,i={duration:s&&e?t:n};return g(e,0,c,Object.assign({},y,i))}return!t&&y&&y.onExit?function(e,t){const r=e.onEnter&&e.onEnter.after?e.onEnter.after:a();return{data:t.map((e,n)=>Object.assign({},e,r(e,n,t)))}}(y,c):{animate:y,data:c}}}},5212(e,t,r){"use strict";r.d(t,{NZ:()=>c,ti:()=>l,vA:()=>a});var n=r(9950),i=r(95);const o={startsWith:["data-","aria-"],exactMatch:[]},s=e=>!(!(e=>{let t=!1;return o.startsWith.forEach(r=>{new RegExp(`\\b(${r})(\\w|-)+`,"g").test(e)&&(t=!0)}),t})(e)&&!(e=>o.exactMatch.includes(e))(e));function a(e,t){if(void 0===e||null===e)throw new Error(t)}const l=e=>{const t={...e};return Object.fromEntries(Object.entries(t).filter(e=>{let[t]=e;return s(t)}).map(t=>{let[r,n]=t;return[r,(0,i.Vx)(n,e)]}))},c=(e,t)=>n.cloneElement(e,l(t))},2981(e,t,r){"use strict";r.d(t,{J:()=>I});var n={};r.r(n),r.d(n,{circle:()=>c,cross:()=>m,diamond:()=>d,minus:()=>g,plus:()=>p,square:()=>u,star:()=>b,triangleDown:()=>h,triangleUp:()=>f});var i=r(9950);var o=r(3204),s=r(210),a=r.n(s),l=r(95);function c(e,t,r){return`M ${e}, ${t}\n m ${-r}, 0\n a ${r}, ${r} 0 1,0 ${2*r},0\n a ${r}, ${r} 0 1,0 ${2*-r},0`}function u(e,t,r){const n=.87*r,i=e-n,o=e+n-i;return`M ${i}, ${t+n}\n h${o}\n v-${o}\n h-${o}\n z`}function d(e,t,r){const n=.87*r,i=Math.sqrt(n*n*2);return`M ${e}, ${t+i}\n l ${i}, -${i}\n l -${i}, -${i}\n l -${i}, ${i}\n l ${i}, ${i}\n z`}function h(e,t,r){const n=t-r;return`M ${e-r}, ${n}\n L ${e+r}, ${n}\n L ${e}, ${t+r/2*Math.sqrt(3)}\n z`}function f(e,t,r){const n=t+r;return`M ${e-r}, ${n}\n L ${e+r}, ${n}\n L ${e}
2, ${t-r/2*Math.sqrt(3)}\n z`}function p(e,t,r){const n=1.1*r,i=n/1.5;return`\n M ${e-i/2}, ${t+n}\n v-${i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${i}\n z`}function m(e,t,r){const n=.8*r,i=n/1.5;return`\n M ${e-i/2}, ${t+n+i}\n v-${2*i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${2*i}\n z`}function g(e,t,r){const n=1.1*r,i=n-.3*n,o=e-n,s=e+n-o;return`M ${o}, ${t+i/2}\n h${s}\n v-${i}\n h-${s}\n z`}function b(e,t,r){const n=1.35*r,i=Math.PI/5;return`M ${l.y1(10).map(r=>{const o=r%2===0?n:n/2;return`${o*Math.sin(i*(r+1))+e},\n ${o*Math.cos(i*(r+1))+t}`}).join("L")} z`}var y=r(5212),A=r(5793);const v=e=>{const{x:t,y:r,size:i,symbol:o}=e;if(e.getPath)return e.getPath(t,r,i);return("function"===typeof n[o]?n[o]:n.circle)(t,r,i)},w={pathComponent:i.createElement(A.w,null),role:"presentation",shapeRendering:"auto"},x=e=>{const t=(e=>{const t=l.Vx(e.ariaLabel,e),r=l.Vx(e.desc,e),n=l.Vx(e.id,e),i=l.Vx(e.size,e),o=l.xj(e.style,e),s=l.Vx(e.symbol,e),a=l.Vx(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:r,id:n,size:i,style:o,symbol:s,tabIndex:a})})(a()({},e,w)),r=y.ti(t);return i.cloneElement(t.pathComponent,{...t.events,"aria-label":t.ariaLabel,d:v(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,role:t.role,shapeRendering:t.shapeRendering,className:t.className,transform:t.transform,clipPath:t.clipPath,...r})};var k=r(2742),C=r(6374),_=r(3712),S=r(6813),E=r(1328),T=r(1423),M=r(2216);const O=(e,t)=>t.bubbleProperty?"circle":e.symbol||t.symbol,N=(e,t)=>{const{size:r,z:n}=t;return e.size?"function"===typeof e.size?e.size:Math.max(e.size,1):"function"===typeof t.size?r:e[n]?((e,t)=>{const{data:r,z:n,maxBubbleSize:i,minBubbleSize:o}=t,s=r.map(e=>e[n]),a=Math.min(...s),c=Math.max(...s),u=i||(()=>{const e=Math.min(...Object.values(l.Cq(t.padding)));return Math.max(e,5)})(),d=o||.1*u;if(c===a)return Math.max(d,1);const h=Math.PI*Math.pow(u,2),f=Math.PI*Math.pow(d,2),p=(e[n]-a)/(c-a)*h,m=Math.max(p,f),g=Math.sqrt(m/Math.PI);return Math.max(g,1)})(e,t):Math.max(r||0,1)},P=(e,t)=>{const r=l.Ly(e,t,"scatter"),n=Object.assign({},r,(e=>{const t=l.o8(e,"scatter"),r=l.$f(e.style,t),n={x:l.eO(e,"x"),y:l.eO(e,"y")},i={x:_.FB(e,"x"),y:_.FB(e,"y")},o={x:T.wV(e,"x").domain(i.x).range(e.horizontal?n.y:n.x),y:T.wV(e,"y").domain(i.y).range(e.horizontal?n.x:n.y)},s=e.polar?e.origin||l.Pw(e):void 0,a=e.bubbleProperty||"z";let c=S.bQ(e);return c=S.QM(c,i),{domain:i,data:c,scale:o,style:r,origin:s,z:a}})(r)),{data:i,domain:o,events:s,height:a,origin:c,padding:u,polar:d,scale:h,name:f,sharedEvents:p,standalone:m,style:g,theme:b,width:y,labels:A,horizontal:v,disableInlineStyles:w}=n,x={parent:{style:g.parent,scale:h,domain:o,data:i,height:a,width:y,standalone:m,theme:b,origin:c,polar:d,padding:u,name:f,horizontal:v}};return i.reduce((e,t,r)=>{const o=l.gD(t.eventKey)?r:t.eventKey,{x:a,y:u}=l.hq(n,t),f={x:a,y:u,datum:t,data:i,index:r,scale:h,polar:d,origin:c,horizontal:v,size:N(t,n),symbol:O(t,n),style:w?{}:g.data,disableInlineStyles:w};e[o]={data:f};const m=M.q4(n,t,r);return(void 0!==m&&null!==m||A&&(s||p))&&(e[o].labels=M.DM(n,r)),e},x)},R={width:450,height:300,padding:50,size:3,symbol:"circle"};class D extends i.Component{static animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"];static displayName="VictoryScatter";static role="scatter";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:e=>e},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:e=>e}};static defaultProps=(()=>({containerComponent:i.createElement(o._,null),dataComponent:i.createElement(x,null),labelComponent:i.createElement(k.R,null),groupComponent:i.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:C.g.grayscale}))();static getDomain=(()=>_.FB)();static getData=(()=>S.bQ)();static getBaseProps(e){return P(e,R)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:e,role:t}=I,r=l.Ly(this.props,R,t);if(this.shouldAnimate())return this.animateComponent(r,e);const n=this.renderData(r),i=r.standalone?this.renderContainer(r.containerComponent,n):n;return y.NZ(i,r)}}const I=(0,E.v)(D)},3229(e,t,r){"use strict";r.d(t,{A:()=>C});var n=r(9950),i=r(2742),o=r(2216),s=r(6374),a=r(95),l=r(8682),c=r(8845),u=r(210),d=r.n(u),h=r(2810),f=r.n(h),p=r(5461),m=r.n(p),g=r(263),b=r.n(g),y=r(5793),A=r(5212);const v=e=>{const t=e.orientation||"top";return"left"===t||"right"===t?(e=>{const{pointerWidth:t,cornerRadius:r,orientation:n,width:i,height:o,center:s}=e,a="left"===n?1:-1,l=e.x+(e.dx||0),c=e.y+(e.dy||0),u=s.x,d=s.y,h=u-a*(i/2),f=u+a*(i/2),p=d+o/2,m=d-o/2,g=a*(l-h)>0?0:e.pointerLength,b=`${r} ${r} ${"left"===n?"0 0 0":"0 0 1"}`;return`M ${h}, ${d-t/2}\n L ${g?l:h}, ${g?c:d+t/2}\n L ${h}, ${d+t/2}\n L ${h}, ${p-r}\n A ${b} ${h+a*r}, ${p}\n L ${f-a*r}, ${p}\n A ${b} ${f}, ${p-r}\n L ${f}, ${m+r}\n A ${b} ${f-a*r}, ${m}\n L ${h+a*r}, ${m}\n A ${b} ${h}, ${m+r}\n z`})(e):(e=>{const{pointerWidth:t,cornerRadius:r,orientation:n,width:i,height:o,center:s}=e,a="bottom"===n?1:-1,l=e.x+(e.dx||0),c=e.y+(e.dy||0),u=s.x,d=s.y,h=d+a*(o/2),f=d-a*(o/2),p=u+i/2,m=u-i/2,g=a*(c-h)<0?0:e.pointerLength,b=`${r} ${r} ${"bottom"===n?"0 0 0":"0 0 1"}`;return`M ${u-t/2}, ${h}\n L ${g?l:u+t/2}, ${g?c:h}\n L ${u+t/2}, ${h}\n L ${p-r}, ${h}\n A ${b} ${p}, ${h-a*r}\n L ${p}, ${f+a*r}\n A ${b} ${p-r}, ${f}\n L ${m+r}, ${f}\n A ${b} ${m}, ${f+a*r}\n L ${m}, ${h-a*r}\n A ${b} ${m+r}, ${h}\n z`})(e)},w={pathComponent:n.createElement(y.w,null),role:"presentation",shapeRendering:"auto"},x=e=>{const t=(e=>{const t=a.Vx(e.id,e),r=a.xj(e.style,e);return{...e,id:t,style:r}})(d()({},e,w)),r=A.ti(t);A.vA(t.height,"Flyout props[height] is undefined"),A.vA(t.width,"Flyout props[width] is undefined"),A.vA(t.x,"Flyout props[x] is undefined"),A.vA(t.y,"Flyout props[y] is undefined");const i={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return n.cloneElement(t.pathComponent,{...t.events,...r,style:t.style,d:v(i),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath})},k={cornerRadius:5,pointerLength:10,pointerWidth:10};class C extends n.Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps=(()=>({active:!1,renderInPortal:!0,labelComponent:n.createElement(i.R,null),flyoutComponent:n.createElement(x,null),groupComponent:n.createElement("g",null)}))();static defaultEvents(e){const t=e.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],r=e.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>t,onFocus:()=>t,onTouchStart:()=>t,onMouseOut:()=>r,onBlur:()=>r,onTouchEnd:()=>r}}]}constructor(e){super(e),this.id=void 0===e.id?f()("tooltip-"):e.id}getDefaultOrientation(e){const{datum:t,horizontal:r,polar:n}=e;if(!n){const e=r?"right":"top",n=r?"left":"bottom";return t&&t.y<0?n:e}return this.getPolarOrientation(e)}getPolarOrientation(e){const t=o.kv(e,e.datum),r=e.labelPlacement||"vertical";return"vertical"===r?this.getVerticalOrientations(t):"parallel"===r?t<90||t>270?"right":"left":t>180?"bottom":"top"}getVerticalOrientations(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}getStyles(e){const t=e.theme||s.g.grayscale,r=t&&t.tooltip&&t.tooltip.style?t.tooltip.style:{},n=Array.isArray(e.style)?e.style.map(e=>d()({},e,r)):d()({},e.style,r),i=t&&t.tooltip&&t.tooltip.flyoutStyle?t.tooltip.flyoutStyle:{},o=e.flyoutStyle?d()({},e.flyoutStyle,i):i,l=Array.isArray(n)?n.map(t=>a.xj(t,e)):a.xj(n,e);return{style:l,flyoutStyle:a.xj(o,Object.assign({},e,{style:l}))}}getEvaluatedProps(e){const{cornerRadius:t,centerOffset:r,dx:n,dy:i}=e,o=a.Vx(e.active,e);let s=a.Vx(e.text,Object.assign({},e,{active:o}));void 0!==s&&null!==s||(s=""),"number"===typeof s&&(s=s.toString());const{style:c,flyoutStyle:u}=this.getStyles(Object.assign({},e,{active:o,text:s})),d=a.Vx(e.orientation,Object.assign({},e,{active:o,text:s,style:c,flyoutStyle:u}))||this.getDefaultOrientation(e),h=a.Vx(e.flyoutPadding,Object.assign({},e,{active:o,text:s,style:c,flyoutStyle:u,orientation:d}))||this.getLabelPadding(c),f=a.Cq(h),p=a.Vx(e.pointerWidth,Object.assign({},e,{active:o,text:s,style:c,flyoutStyle:u,orientation:d})),g=a.Vx(e.pointerLength,Object.assign({},e,{active:o,text:s,style:c,flyoutStyle:u,orientation:d})),b=l.Pu(s,c),{flyoutHeight:y,flyoutWidth:A}=this.getDimensions(Object.assign({},e,{style:c,flyoutStyle:u,active:o,text:s,orientation:d,flyoutPadding:f,pointerWidth:p,pointerLength:g}),b),v=Object.assign({},e,{active:o,text:s,style:c,flyoutStyle:u,orientation:d,flyoutHeight:y,flyoutWidth:A,flyoutPadding:f,pointerWidth:p,pointerLength:g}),w=m()(r)&&void 0!==r?.x?a.Vx(r.x,v):0,x=m()(r)&&void 0!==r?.y?a.Vx(r.y,v):0;return{...v,centerOffset:{x:w,y:x},dx:void 0!==n?a.Vx(n,v):0,dy:void 0!==i?a.Vx(i,v):0,cornerRadius:a.Vx(t,v)}}getCalculatedValues(e){const{style:t,text:r,flyoutStyle:n,flyoutHeight:i,flyoutWidth:o}=e,s={height:i,width:o};return{style:t,flyoutStyle:n,labelSize:l.Pu(r,t),flyoutDimensions:s,flyoutCenter:this.getFlyoutCenter(e,s),transform:this.getTransform(e)}}getTransform(e){const{x:t,y:r,style:n}=e,i=(n||{}).angle||e.angle||this.getDefaultAngle(e);return i?`rotate(${i} ${t} ${r})`:void 0}getDefaultAngle(e){const{polar:t,labelPlacement:r,orientation:n,datum:i}=e;if(!t||!r||"vertical"===r)return 0;const s=o.kv(e,i);let a=0;return 0===s||180===s?a="top"===n&&180===s?270:90:s>0&&s<180?a=90-s:s>
2180&&s<360&&(a=270-s),a+(s>90&&s<180||s>270?1:-1)*("perpendicular"===r?0:90)}constrainTooltip(e,t,r){const{x:n,y:i}=e,{width:o,height:s}=r,a=[0,t.width],l=[0,t.height],c=[n-o/2,n+o/2],u=[i-s/2,i+s/2],d=[c[0]<a[0]?a[0]-c[0]:0,c[1]>a[1]?c[1]-a[1]:0],h=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(n+d[0]-d[1]),y:Math.round(i+h[0]-h[1])}}getFlyoutCenter(e,t){const{x:r,y:n,dx:i,dy:o,pointerLength:s,orientation:a,constrainToVisibleArea:l,centerOffset:c}=e,{height:u,width:d}=t,h="left"===a?-1:1,f="bottom"===a?-1:1,p={x:"left"===a||"right"===a?r+h*(s+d/2+h*i):r+i,y:"top"===a||"bottom"===a?n-f*(s+u/2-f*o):n+o},g=m()(e.center)&&void 0!==e.center.x?e.center.x:p.x,b=m()(e.center)&&void 0!==e.center.y?e.center.y:p.y,y={x:g+c.x,y:b+c.y};return l?this.constrainTooltip(y,e,t):y}getLabelPadding(e){if(!e)return 0;const t=Array.isArray(e)?e.map(e=>e.padding):[e.padding];return Math.max(...t,0)}getDimensions(e,t){const{orientation:r,pointerLength:n,pointerWidth:i,flyoutHeight:o,flyoutWidth:s,flyoutPadding:l}=e,c=a.Vx(e.cornerRadius,e);return{flyoutHeight:o?a.Vx(o,e):(()=>{const e=t.height+l.top+l.bottom,n="top"===r||"bottom"===r?2*c:2*c+i;return Math.max(n,e)})(),flyoutWidth:s?a.Vx(s,e):(()=>{const e=t.width+l.left+l.right,i="left"===r||"right"===r?2*c+n:2*c;return Math.max(i,e)})()}}getLabelProps(e,t){const{flyoutCenter:r,style:n,labelSize:i,dy:o=0,dx:s=0}=t,{text:a,datum:l,activePoints:c,labelComponent:u,index:h,flyoutPadding:f}=e,p=(Array.isArray(n)&&n.length?n[0].textAnchor:n.textAnchor)||"middle";return d()({},u.props,{key:`${this.id}-label-${h}`,text:a,datum:l,activePoints:c,textAnchor:p,dy:o,dx:s,style:n,x:(()=>{if(!p||"middle"===p)return r.x;const e="end"===p?-1:1;return r.x-e*(i.width/2)})()+(f.left-f.right)/2,y:r.y+(f.top-f.bottom)/2,verticalAnchor:"middle",angle:n.angle})}getPointerOrientation(e,t,r){const n=t.y+r.height/2,i=t.y-r.height/2,o=t.x-r.width/2,s=t.x+r.width/2,a=[{side:"top",val:i>e.y?i-e.y:-1},{side:"bottom",val:n<e.y?e.y-n:-1},{side:"right",val:s<e.x?e.x-s:-1},{side:"left",val:o>e.x?o-e.x:-1}];return b()(a,"val","desc")[0].side}getFlyoutProps(e,t){const{flyoutDimensions:r,flyoutStyle:n,flyoutCenter:i}=t,{x:o,y:s,dx:l,dy:c,datum:u,activePoints:h,index:f,pointerLength:p,pointerWidth:m,cornerRadius:g,events:b,flyoutComponent:y}=e,A=a.Vx(e.pointerOrientation,e);return d()({},y.props,{x:o,y:s,dx:l,dy:c,datum:u,activePoints:h,index:f,pointerLength:p,pointerWidth:m,cornerRadius:g,events:b,orientation:A||this.getPointerOrientation({x:o,y:s},i,r),key:`${this.id}-tooltip-${f}`,width:r.width,height:r.height,style:n,center:i})}renderTooltip(e){const t=a.Vx(e.active,e),{renderInPortal:r}=e;if(!t)return null;const i=this.getEvaluatedProps(e),{flyoutComponent:o,labelComponent:s,groupComponent:l}=i,u=this.getCalculatedValues(i),d=[n.cloneElement(o,this.getFlyoutProps(i,u)),n.cloneElement(s,this.getLabelProps(i,u))],h=n.cloneElement(l,{role:"presentation",transform:u.transform},d);return r?n.createElement(c.D,null,h):h}render(){const e=a.Ly(this.props,k,"tooltip");return this.renderTooltip(e)}}},7666(e,t,r){"use strict";r.d(t,{EL:()=>M});var n=r(9950),i=r(210),o=r.n(i),s=r(5357),a=r.n(s),l=r(3229),c=r(95),u=r(3204),d=r(348),h=r(6813);function f(e,t,r){const{a:n,d:i,e:o,f:s}=t;return"y"===r?i*e+s:n*e+o}function p(e){return!(!e||void 0===e.identifier)}function m(e){if(p(e.nativeEvent))return;const t=e=>"svg"===e.nodeName?e:e.parentNode?t(e.parentNode):e;return t(e.target)}var g=r(6791),b=r.n(g),y=r(8065),A=r.n(y),v=r(492),w=r.n(v),x=r(4901),k=r.n(x),C=r(8586);const _=new class{withinBounds(e,t){const{width:r,height:n,polar:i,origin:o,scale:s}=e,a=c.Cq(e.voronoiPadding),{x:l,y:u}=t;if(i){const e=Math.pow(l-o.x,2)+Math.pow(u-o.y,2),t=Math.max(...s.y.range());return e<Math.pow(t,2)}return l>=a.left&&l<=r-a.right&&u>=a.top&&u<=n-a.bottom}getDatasets(e){const t={x:d.Y0(e.domain.x),y:d.Y0(e.domain.y)},r=n.Children.toArray(e.children),i=(r,n,i)=>{const o=i&&i.type&&i.type.continuous,s=i?i.props&&i.props.style:e.style;return r.map((r,i)=>{const{x:a,y:l,y0:u,x0:d}=c.fC(r),h=(Number(a)+Number(d))/2,f=(Number(l)+Number(u))/2;return Object.assign({_voronoiX:"y"===e.voronoiDimension?t.x:h,_voronoiY:"x"===e.voronoiDimension?t.y:f,eventKe
2y:i,childName:n,continuous:o,style:s},r)})};if(e.data)return i(e.data);const o=e=>{const t=h.bQ(e);return Array.isArray(t)&&t.length>0?t:void 0};return c.El(r,(t,r)=>{const n=(t.props||{}).name||r,s=e.voronoiBlacklist||[],a=s.filter(e=>!!e&&"string"===typeof e.valueOf()),l=s.filter(A()).some(e=>e.test(n));if(!h.Wi(t)||a.includes(n)||l)return null;const u=(t.type&&c.Tn(t.type.getData)?t.type.getData:o)(t.props);return u?i(u,n,t):null},e)}findPoints(e,t){return e.filter(e=>t._voronoiX===e._voronoiX&&t._voronoiY===e._voronoiY)}withinRadius(e,t,r){if(!e)return!1;if(!r)return!0;const{x:n,y:i}=t;return Math.pow(n-e[0],2)+Math.pow(i-e[1],2)<Math.pow(r,2)}getVoronoiPoints(e,t){const r=this.getDatasets(e),n=r.map(t=>{const{x:r,y:n}=c.hq(e,t);return[r,n]}),i=C.A.from(n).find(t.x,t.y);return{points:this.withinRadius(n[i],t,e.radius)?this.findPoints(r,r[i]):[],index:i}}getActiveMutations(e,t){const{childName:r,continuous:n}=t,{activateData:i,activateLabels:o,labels:s}=e;if(!i&&!o)return[];const a=i?["data"]:[],l=s&&!o?a:a.concat("labels");return b()(l)?[]:l.map(e=>{const i=!0===n&&"data"===e?"all":t.eventKey;return{childName:r,eventKey:i,target:e,mutation:()=>({active:!0})}})}getInactiveMutations(e,t){const{childName:r,continuous:n}=t,{activateData:i,activateLabels:o,labels:s}=e;if(!i&&!o)return[];const a=i?["data"]:[],l=s&&!o?a:a.concat("labels");return b()(l)?[]:l.map(e=>{const i=n&&"data"===e?"all":t.eventKey;return{childName:r,eventKey:i,target:e,mutation:()=>null}})}getParentMutation(e,t,r,n){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:e,mousePosition:t,parentSVG:r,vIndex:n})}]}onActivated(e,t){c.Tn(e.onActivated)&&e.onActivated(t,e)}onDeactivated(e,t){c.Tn(e.onDeactivated)&&e.onDeactivated(t,e)}onMouseLeave=(e,t)=>{this.onMouseMove.cancel();const r=t.activePoints||[];this.onDeactivated(t,r);const n=r.length?r.map(e=>this.getInactiveMutations(t,e)):[];return this.getParentMutation([]).concat(...n)};handleMouseMove=(e,t)=>{const r=t.activePoints||[],n=t.parentSVG||m(e),i=function(e,t){if(p(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};const r=function(e){return e.changedTouches&&e.changedTouches.length>0}(e)?e.changedTouches[0]:e,n=function(e){return e.getScreenCTM().inverse()}(t||m(r));return{x:f(r.clientX,n,"x"),y:f(r.clientY,n,"y")}}(e,n);if(!this.withinBounds(t,i)){this.onDeactivated(t,r);const e=r.length?r.map(e=>this.getInactiveMutations(t,e)):[];return this.getParentMutation([],i,n).concat(...e)}const{points:o=[],index:s}=this.getVoronoiPoints(t,i),a=this.getParentMutation(o,i,n,s);if(r.length&&k()(o,r))return a;this.onActivated(t,o),this.onDeactivated(t,r);const l=o.length?o.map(e=>this.getActiveMutations(t,e)):[],c=r.length?r.map(e=>this.getInactiveMutations(t,e)):[];return a.concat(...c,...l)};onMouseMove=(()=>w()(this.handleMouseMove,32,{leading:!0,trailing:!1}))()},S={activateData:!0,activateLabels:!0,labelComponent:n.createElement(l.A,null),voronoiPadding:5},E=e=>a()(e,["_x","_x1","_x0","_y","_y1","_y0"]),T=e=>{const t={...S,...e},{children:r}=t,i=(e,r)=>{const{mousePosition:n,mouseFollowTooltips:i}=t,s=(()=>{const{horizontal:e,voronoiDimension:r}=t;return e&&r?"x"===r?"y":"x":r})(),a=E(r[0]),l=c.hq(t,a);let u=i?n:void 0;if(!s||r.length<2)return{...l,center:o()({},e.center,u)};const d="y"===s?n.x:l.x,h="x"===s?n.y:l.y;return u=i?n:{x:d,y:h},{x:d,y:h,center:o()({},e.center,u)}},s=(e,r)=>{const{labels:n,labelComponent:i,theme:s}=t,a=i.props||{},l=s&&s.voronoi&&s.voronoi.style?s.voronoi.style:{},u="flyout"===r?a.flyoutStyle:a.style;return e.reduce((e,t,i)=>{const s=o()({},a,{datum:t,active:!0}),d=c.Tn(n)?n(s):void 0,h=void 0!==d?`${d}`.split("\n"):[],f=t.style&&t.style[r]||{},p=Array.isArray(u)?u[i]:u,m=c.xj(o()({},p,f,l[r]),s),g=h.length?h.map(()=>m):[m];return e.concat(g)},[])},a=e=>{const{labels:r,scale:n,labelComponent:a,theme:l,width:u,height:d}=t,h=a.props||{},f=e.reduce((e,t)=>{const n=o()({},h,{datum:t,active:!0}),i=c.Tn(r)?r(n):null;return null===i||void 0===i?e:e.concat(`${i}`.split("\n"))},[]),{childName:p,eventKey:m,style:g,continuous:b,...y}=e[0],A=t.name===p?p:`${t.name}-${p}`,v=o()({key:`${A}-${m}-voronoi-tooltip`,id:`${A}-${m}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:e,datum:y,scale:n,theme:l},h,{text:f,width:u,height:d,style:s(e,"labels"),flyoutStyle:s(e,"flyout")[0]},(e=>{const{voronoiDimension:r,horizontal:n,mouseFollowTooltips:i}=t,o=E(e[0]),s=r&&e.length>1,a=void 0!==o._y1?o._y1:o._y;return{orientation:i?void 0:n?a<0?"left":"right":a<0?"bottom":"top",pointerLength:s?0:void 0,constrainToVisibleArea:!(!s&&!i)||void 0}})(e)),w=i(v,e);return o()({},w,v)};return{props:t,children:[...n.Children.toArray(r),(()=>{const{labels:e,activePoints:r,labelComponent:i}=t;if(!e)return null;if(Array.isArray(r)&&r.length){const e=a(r),{text:t}=e;return(Array.isArray(t)?t.filter(Boolean).length:t)?n.cloneElement(i,e):null}return null})()]}},M=e=>{const{props:t,children:r}=T(e);return n.createElement(u._,t,r)};M.role="container",M.defaultEvents=e=>{const t={...S,...e},r=(e,r)=>(n,i,o,s)=>r||t.disable?{}:e(n,{...t,...i},o,s);return[{target:"parent",eventHandlers:{onMouseLeave:r(_.onMouseLeave),onTouchCancel:r(_.onMouseLeave),onMouseMove:r(_.onMouseMove),onTouchMove:r(_.onMouseMove)}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]}},9291(e,t,r){"use strict";r.d(t,{Q:()=>H});var n=r(9950);const i=new Set,o=new WeakMap,s=new WeakMap,a=new WeakMap,l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,h=new WeakMap,f=new WeakSet;let p,m=0,g=0;const b="__aa_tgt",y="__aa_del",A="__aa_new",v=e=>{const t=function(e){const t=e.reduce((e,t)=>
2[...e,...Array.from(t.addedNodes),...Array.from(t.removedNodes)],[]);return!t.every(e=>"#comment"===e.nodeName)&&e.reduce((e,t)=>{if(!1===e)return!1;if(t.target instanceof Element){if(M(t.target),!e.has(t.target)){e.add(t.target);for(let r=0;r<t.target.children.length;r++){const n=t.target.children.item(r);if(n){if(y in n)return!1;M(t.target,n),e.add(n)}}}if(t.removedNodes.length)for(let r=0;r<t.removedNodes.length;r++){const n=t.removedNodes[r];if(y in n)return!1;n instanceof Element&&(e.add(n),M(t.target,n),s.set(n,[t.previousSibling,t.nextSibling]))}}return e},new Set)}(e);t&&t.forEach(e=>function(e){var t,r;const n=e.isConnected,i=o.has(e);n&&s.has(e)&&s.delete(e);"finished"!==(null===(t=a.get(e))||void 0===t?void 0:t.playState)&&(null===(r=a.get(e))||void 0===r||r.cancel());A in e?F(e):i&&n?function(e){const t=o.get(e),r=N(e);if(!I(e))return o.set(e,r);if(x(e))return o.set(e,r),void k(e);let n;if(!t)return;const i=R(e);if("function"!==typeof i){let o=t.left-r.left,s=t.top-r.top;const a=t.left+t.width-(r.left+r.width);0==t.top+t.height-(r.top+r.height)&&(s=0),0==a&&(o=0);const[l,c,u,d]=P(e,t,r),h={transform:`translate(${o}px, ${s}px)`},f={transform:"translate(0, 0)"};l!==c&&(h.width=`${l}px`,f.width=`${c}px`),u!==d&&(h.height=`${u}
2px`,f.height=`${d}px`),n=e.animate([h,f],{duration:i.duration,easing:i.easing})}else{const[o]=B(i(e,"remain",t,r));n=new Animation(o),n.play()}a.set(e,n),o.set(e,r),n.addEventListener("finish",C.bind(null,e,!1),{once:!0})}(e):i&&!n?function(e){var t;if(!s.has(e)||!o.has(e))return;const[r,n]=s.get(e);Object.defineProperty(e,y,{value:!0,configurable:!0});const i=window.scrollX,l=window.scrollY;n&&n.parentNode&&n.parentNode instanceof Element?n.parentNode.insertBefore(e,n):r&&r.parentNode?r.parentNode.appendChild(e):null===(t=D(e))||void 0===t||t.appendChild(e);if(!I(e))return z(e);const[c,u,d,h]=function(e){var t;const r=o.get(e),[n,,i]=P(e,r,N(e));let s=e.parentElement;for(;s&&("static"===getComputedStyle(s).position||s instanceof HTMLBodyElement);)s=s.parentElement;s||(s=document.body);const l=getComputedStyle(s),c=a.has(e)&&"finished"!==(null===(t=a.get(e))||void 0===t?void 0:t.playState)?o.get(s):N(s),u=Math.round(r.top-c.top)-O(l.borderTopWidth),d=Math.round(r.left-c.left)-O(l.borderLeftWidth);return[u,d,n,i]}(e),f=R(e),b=o.get(e);i===m&&l===g||function(e,t,r,n){const i=m-t,o=g-r,s=document.documentElement.style.scrollBehavior;"smooth"===getComputedStyle(p).scrollBehavior&&(document.documentElement.style.scrollBehavior="auto");if(window.scrollTo(window.scrollX+i,window.scrollY+o),!e.parentElement)return;const a=e.parentElement;let l=a.clientHeight,c=a.clientWidth;const u=performance.now();function d(){requestAnimationFrame(()=>{if(!j(n)){const e=l-a.clientHeight,t=c-a.clientWidth;u+n.duration>performance.now()?(window.scrollTo({left:window.scrollX-t,top:window.scrollY-e}),l=a.clientHeight,c=a.clientWidth,d()):document.documentElement.style.scrollBehavior=s}})}d()}(e,i,l,f);let A,v={position:"absolute",top:`${c}px`,left:`${u}px`,width:`${d}px`,height:`${h}px`,margin:"0",pointerEvents:"none",transformOrigin:"center",zIndex:"100"};if(j(f)){const[t,r]=B(f(e,"remove",b));!1!==(null===r||void 0===r?void 0:r.styleReset)&&(v=(null===r||void 0===r?void 0:r.styleReset)||v,Object.assign(e.style,v)),A=new Animation(t),A.play()}else Object.assign(e.style,v),A=e.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.98)",opacity:0}
2],{duration:f.duration,easing:"ease-out"});a.set(e,A),A.addEventListener("finish",()=>z(e,v),{once:!0})}(e):F(e)}(e))},w=e=>{e.forEach(e=>{e.target===p&&(clearTimeout(h.get(p)),h.set(p,setTimeout(()=>{i.forEach(e=>L(e,e=>S(()=>C(e))))},100))),o.has(e.target)&&C(e.target)})};function x(e){const t=e.getBoundingClientRect(),r=(null===p||void 0===p?void 0:p.clientWidth)||0,n=(null===p||void 0===p?void 0:p.clientHeight)||0;return t.bottom<0||t.top>n||t.right<0||t.left>r}function k(e){const t=l.get(e);null===t||void 0===t||t.disconnect();let r=o.get(e),n=0;r||(r=N(e),o.set(e,r));const{offsetWidth:i,offsetHeight:s}=p,a=[r.top-5,i-(r.left+5+r.width),s-(r.top+5+r.height),r.left-5].map(e=>-1*Math.floor(e)+"px").join(" "),c=new IntersectionObserver(()=>{++n>1&&C(e)},{root:p,threshold:1,rootMargin:a});c.observe(e),l.set(e,c)}function C(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];clearTimeout(h.get(e));const r=R(e),n=t?j(r)?500:r.duration:0;h.set(e,setTimeout(async()=>{const t=a.get(e);try{await(null===t||void 0===t?void 0:t.finished),o.set(e,N(e)),k(e)}catch{}},n))}function _(e){setTimeout(()=>{u.set(e,setInterval(()=>S(C.bind(null,e)),2e3))},Math.round(2e3*Math.random()))}function S(e){"function"===typeof requestIdleCallback?requestIdleCallback(()=>e()):requestAnimationFrame(()=>e())}let E;const T="undefined"!==typeof window&&"ResizeObserver"in window;function M(e,t){t||b in e?t&&!(b in t)&&Object.defineProperty(t,b,{value:e}):Object.defineProperty(e,b,{value:e})}function O(e){return Number(e.replace(/[^0-9.\-]/g,""))}function N(e){const t=e.getBoundingClientRect(),{x:r,y:n}=function(e){let t=e.parentElement;for(;t;){if(t.scrollLeft||t.scrollTop)return{x:t.scrollLeft,y:t.scrollTop};t=t.parentElement}return{x:0,y:0}}(e);return{top:t.top+n,left:t.left+r,width:t.width,height:t.height}}function P(e,t,r){let n=t.width,i=t.height,o=r.width,s=r.height;const a=getComputedStyle(e);if("content-box"===a.getPropertyValue("box-sizing")){const e=O(a.paddingTop)+O(a.paddingBottom)+O(a.borderTopWidth)+O(a.borderBottomWidth),t=O(a.paddingLeft)+O(a.paddingRight)+O(a.borderRightWidth)+O(a.borderLeftWidth);n-=t,o-=t,i-=e,s-=e}return[n,o,i,s].map(Math.round)}function R(e){return b in e&&d.has(e[b])?d.get(e[b]):{duration:250,easing:"ease-in-out"}}function D(e){if(b in e)return e[b]}function I(e){const t=D(e);return!!t&&f.has(t)}function L(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];r.forEach(t=>t(e,d.has(e)));for(let i=0;i<e.children.length;i++){const t=e.children.item(i);t&&r.forEach(e=>e(t,d.has(t)))}}function B(e){return Array.isArray(e)?e:[e]}function j(e){return"function"===typeof e}function F(e){A in e&&delete e[A];const t=N(e);o.set(e,t);const r=R(e);if(!I(e))return;if(x(e))return void k(e);let n;if("function"!==typeof r)n=e.animate([{transform:"scale(.98)",opacity:0}
2,{transform:"scale(0.98)",opacity:0,offset:.5},{transform:"scale(1)",opacity:1}],{duration:1.5*r.duration,easing:"ease-in"});else{const[i]=B(r(e,"add",t));n=new Animation(i),n.play()}a.set(e,n),n.addEventListener("finish",C.bind(null,e,!1),{once:!0})}function z(e,t){var r;e.remove(),o.delete(e),s.delete(e),a.delete(e),null===(r=l.get(e))||void 0===r||r.disconnect(),setTimeout(()=>{if(y in e&&delete e[y],Object.defineProperty(e,A,{value:!0,configurable:!0}),t&&e instanceof HTMLElement)for(const r in t)e.style[r]=""},0)}function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(T&&E){if(!(window.matchMedia("(prefers-reduced-motion: reduce)").matches&&!j(t)&&!t.disrespectUserMotionPreference)){f.add(e),"static"===getComputedStyle(e).position&&Object.assign(e.style,{position:"relative"}),L(e,C,_,e=>null===E||void 0===E?void 0:E.observe(e)),j(t)?d.set(e,t):d.set(e,{duration:250,easing:"ease-in-out",...t});const r=new MutationObserver(v);r.observe(e,{childList:!0}),c.set(e,r),i.add(e)}}return Object.freeze({parent:e,enable:()=>{f.add(e)},disable:()=>{f.delete(e),L(e,e=>{const t=a.get(e);try{null===t||void 0===t||t.cancel()}catch{}a.delete(e);const r=h.get(e);r&&clearTimeout(r),h.delete(e);const n=u.get(e);n&&clearInterval(n),u.delete(e)})},isEnabled:()=>f.has(e),destroy:()=>{f.delete(e),i.delete(e),d.delete(e);const t=c.get(e);null===t||void 0===t||t.disconnect(),c.delete(e),L(e,e=>{null===E||void 0===E||E.unobserve(e);const t=a.get(e);try{null===t||void 0===t||t.cancel()}catch{}a.delete(e);const r=l.get(e);null===r||void 0===r||r.disconnect(),l.delete(e);const n=u.get(e);n&&clearInterval(n),u.delete(e);const i=h.get(e);i&&clearTimeout(i),h.delete(e),o.delete(e),s.delete(e)})}})}T&&(p=document.documentElement,new MutationObserver(v),E=new ResizeObserver(w),window.addEventListener("scroll",()=>{g=window.scrollY,m=window.scrollX}),E.observe(p));function H(e){const[t,r]=(0,n.useState)(),i=(0,n.useMemo)(()=>e,[]),o=(0,n.useCallback)(e=>{e instanceof HTMLElement?r(U(e,i)):r(void 0)},[i]),s=(0,n.useCallback)(e=>{t&&(e?t.enable():t.disable())},[t]);return(0,n.useEffect)(()=>()=>{var e;null===(e=null===t||void 0===t?void 0:t.destroy)||void 0===e||e.call(t)},[t]),[o,s]}},7788(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(9950),i=r(9398),o=r(4613);r(7119);const s="default",a="success",l="warning",c="danger";class u extends n.Component{getSizeClassName(e){switch(e){case"small":return"ant-input-sm";case"medium":default:return"";case"large":return"ant-input-lg";case"xlarge":return"ant-input-xl"}}getTypeClassName(e){switch(e){case s:return"st-input-default";case a:return"st-input-success";case l:return"st-input-warning";case c:return"st-input-danger";default:return"st-input-default"}}getWrapperClassName(e){switch(e){case s:return"st-input-default-wrapper";case a:return"st-input-success-wrapper";case l:return"st-input-warning-wrapper";case c:return"st-input-danger-wrapper";default:return"st-input-default-wrapper"}}render(){const{type:e,label:t,direction:r,required:n,caption:s,className:a,size:l,...c}=this.props;return(0,i.a)("span",{className:`st-input-wrapper ${this.getWrapperClassName(e)} ${"horizontal"===r?"direction-horizontal":"direction-vertical"} ${n?"required":""} ${a||""}`,children:[t&&(0,i.j)("small",{className:"input-label",children:t}),(0,i.a)("span",{className:"input-with-caption",children:[(0,i.j)(o.I,{...c,className:`${this.getTypeClassName(e)}
2 ${this.getSizeClassName(l)} `}),s&&(0,i.j)("small",{className:"input-caption",children:s})]})]})}}},857(e,t,r){"use strict";r.d(t,{Ay:()=>d});var n=r(9950),i=r(9398),o=r(678);r(7119);const{Item:s}=o.A,{ItemGroup:a}=o.A,{Divider:l}=o.A,c="large";class u extends n.Component{render(){const{children:e,size:t,...r}=this.props;return(0,i.j)(o.A.SubMenu,{popupClassName:"st-dropdown-submenu "+(t===c?"st-dropdown-menu-large":""),...r,children:e})}}class d extends n.Component{render(){const{children:e,size:t,...r}=this.props;return(0,i.j)(o.A,{className:""+(t===c?"st-dropdown-menu-large":""),...r,children:e})}}d.Item=s,d.ItemGroup=a,d.Divider=l,d.SubMenu=u},6951(e,t,r){"use strict";r.d(t,{Ay:()=>l});var n=r(9950),i=r(9398),o=r(6697);r(7119);const{Group:s,Button:a}=o.A;class l extends n.Component{render(){const{children:e,className:t,alternate:r,...n}=this.props,s=`st-radio-wrapper ${r?"alternate":""} ${t||""}`;return(0,i.j)("span",{className:s,children:(0,i.j)(o.A,{...n,children:e})})}}l.Group=s,l.Button=a},4590(e,t,r){"use strict";r.d(t,{A:()=>u});var n=r(9950),i=r(9398),o=r(4613);r(7119);const s="default",a="positive",l="warning",c="danger";class u extends n.Component{getSizeClassName(e){switch(e){case"small":return"st-search-sm";case"medium":default:return"st-search-md";case"large":return"st-search-lg";case"xlarge":return"st-search-xl"}}getClassName(e){switch(e){case s:return"st-search-default";case a:return"st-search-positive";case l:return"st-search-warning";case c:return"st-search-danger";default:return"st-search-default"}}getWrapperClassName(e){switch(e){case s:return"st-search-default-wrapper";case a:return"st-search-positive-wrapper";case l:return"st-search-warning-wrapper";case c:return"st-search-danger-wrapper";default:return"st-search-default-wrapper"}}render(){const{type:e,label:t,suffix:r,enterButton:n,message:s,className:a,size:l,...c}=this.props,u=r?n||!0:n;return(0,i.a)("span",{className:`st-search-wrapper ${this.getWrapperClassName(e)} ${a||""}`,children:[t&&(0,i.j)("small",{className:"input-label",children:t}),(0,i.j)(o.I.Search,{...c,suffix:r||void 0,enterButton:u||void 0,className:`${this.getClassName(e)}
2 ${this.getSizeClassName(l)} ${u?"":"icononly"}`}),s&&(0,i.j)("small",{className:"input-caption",children:s})]})}}},3238(e,t,r){"use strict";r.d(t,{A:()=>f});var n=r(9950),i=r(9398),o=r(6744),s=r(6042),a=r(8029),l=r(3507),c=(r(7119),n.forwardRef(function(e,t){var r,i=e.prefixCls,l=void 0===i?"rc-switch":i,c=e.className,u=e.checked,d=e.defaultChecked,h=e.disabled,f=e.loadingIcon,p=e.checkedChildren,m=e.unCheckedChildren,g=e.onClick,b=e.onChange,y=e.onKeyDown,A=(0,o.z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),v=(0,s.u)(!1,{value:u,defaultValue:d}),w=(0,o._)(v,2),x=w[0],k=w[1];function C(e,t){var r=x;return h||(k(r=e),null==b||b(r,t)),r}var _=(0,o.c)(l,c,(r={},(0,o.a)(r,"".concat(l,"-checked"),x),(0,o.a)(r,"".concat(l,"-disabled"),h),r));return n.createElement("button",Object.assign({},A,{type:"button",role:"switch","aria-checked":x,disabled:h,className:_,ref:t,onKeyDown:function(e){e.which===a.K.LEFT?C(!1,e):e.which===a.K.RIGHT&&C(!0,e),null==y||y(e)},onClick:function(e){var t=C(!x,e);null==g||g(t,e)}}),f,n.createElement("span",{className:"".concat(l,"-inner")},x?p:m))}));c.displayName="Switch";var u=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},d=n.forwardRef(function(e,t){var r,i=e.prefixCls,s=e.size,a=e.loading,d=e.className,h=void 0===d?"":d,f=e.disabled,p=u(e,["prefixCls","size","loading","className","disabled"]);(0,o.j)("checked"in p||!("value"in p),"Switch","`value` is not a valid prop, do you mean `checked`?");var m=n.useContext(o.k),g=m.getPrefixCls,b=m.direction,y=n.useContext(o.S),A=g("switch",i),v=n.createElement("div",{className:"".concat(A,"-handle")},a&&n.createElement(o.M,{className:"".concat(A,"-loading-icon")})),w=(0,o.c)((r={},(0,o.a)(r,"".concat(A,"-small"),"small"===(s||y)),(0,o.a)(r,"".concat(A,"-loading"),a),(0,o.a)(r,"".concat(A,"-rtl"),"rtl"===b),r),h);return n.createElement(l.W,{insertExtraNode:!0},n.createElement(c,(0,o.g)({},p,{prefixCls:A,className:w,disabled:f||a,ref:t,loadingIcon:v})))});d.__ANT_SWITCH=!0,d.displayName="Switch";const h=d;class f extends n.Component{getWrapperClassName(e){switch(e){case"large":return"large";case"medium":default:return"medium";case"small":return"small"}}render(){const{size:e,...t}=this.props;return(0,i.j)("span",{className:`st-switch-wrapper ${this.getWrapperClassName(e)}`,children:(0,i.j)(h,{...t})})}}},8200(e,t,r){"use strict";r.d(t,{A:()=>Ml});var n=r(9950),i=r(9398),o=r(6744),s=r(2644),a=r(4001),l=r(3919),c=r(4783),u=r(1300),d=r(5678),h=r(4483),f=r(5789),p=r(8766),m=r(6378),g=r(2171),b=r(5489),y=r(6045),A=r(6042),v=r(3870),w=r(1892),x=r(678),k=r(6697),C=r(1172),_=r(1376),S=r(8029),E=r(4617),T=r(3236),M=r(4613),O=r(8281),N=(r(7119),typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{});function P(e){return null!=e&&e===e.window}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.getContainer,n=void 0===r?function(){return window}:r,i=t.callback,s=t.duration,a=void 0===s?450:s,l=n(),c=function(e,t){var r;if(typeof window>"u")return 0;var n=t?"scrollTop":"scrollLeft",i=0;return P(e)?i=e[t?"pageYOffset":"pageXOffset"]:e instanceof Document?i=e.documentElement[n]:e&&(i=e[n]),e&&!P(e)&&"number"!=typeof i&&(i=null===(r=(e.ownerDocument||e).documentElement)||void 0===r?void 0:r[n]),i}(l,!0),u=Date.now();(0,o.G)(function t(){var r=Date.now()-u,n=function(e,t,r,n){var i=r-t;return(e/=n/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}(r>a?a:r,c,e,a);P(l)?l.scrollTo(window.pageXOffset,n):l instanceof HTMLDocument||"HTMLDocument"===l.constructor.name?l.documentElement.scrollTop=n:l.scrollTop=n,r<a?(0,o.G)(t):"function"==typeof i&&i()})}var D="object"==typeof N&&N&&N.Object===Object&&N,I=D,L="object"==typeof self&&self&&self.Object===Object&&self,B=I||L||Function("return this")(),j=B.Symbol,F=Array.isArray,z=j,U=Object.prototype,H=U.hasOwnProperty,V=U.toString,W=z?z.toStringTag:void 0;var K=function(e){var t=H.call(e,W),r=e[W];try{e[W]=void 0;var n=!0}catch{}var i=V.call(e);return n&&(t?e[W]=r:delete e[W]),i},q=Object.prototype.toString;var G=function(e){return q.call(e)},X=K,Y=G,$=j?j.toStringTag:void 0;
2var Q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":$&&$ in Object(e)?X(e):Y(e)};var J=function(e){return null!=e&&"object"==typeof e},Z=Q,ee=J;var te=function(e){return"symbol"==typeof e||ee(e)&&"[object Symbol]"==Z(e)},re=/\s/;var ne=function(e){for(var t=e.length;t--&&re.test(e.charAt(t)););return t},ie=ne,oe=/^\s+/;var se=function(e){return e&&e.slice(0,ie(e)+1).replace(oe,"")};var ae=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},le=se,ce=ae,ue=te,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,fe=/^0o[0-7]+$/i,pe=parseInt;var me=function(e){if("number"==typeof e)return e;if(ue(e))return NaN;if(ce(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ce(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=le(e);var r=he.test(e);return r||fe.test(e)?pe(e.slice(2),r?2:8):de.test(e)?NaN:+e},ge=function(e){if((0,o.K)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],r=window.document.documentElement;return t.some(function(e){return e in r.style})}return!1};function be(e,t){return Array.isArray(e)||void 0===t?ge(e):function(e,t){if(!ge(e))return!1;var r=document.createElement("div"),n=r.style[e];return r.style[e]=t,r.style[e]!==n}(e,t)}var ye=B,Ae=ae,ve=function(){return ye.Date.now()},we=me,xe=Math.max,ke=Math.min;var Ce=function(e,t,r){var n,i,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var r=n,o=i;return n=i=void 0,c=t,s=e.apply(o,r)}function p(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=o}function m(){var e=ve();if(p(e))return g(e);a=setTimeout(m,function(e){var r=t-(e-l);return d?ke(r,o-(e-c)):r}(e))}function g(e){return a=void 0,h&&n?f(e):(n=i=void 0,s)}function b(){var e=ve(),r=p(e);if(n=arguments,i=this,l=e,r){if(void 0===a)return function(e){return c=e,a=setTimeout(m,t),u?f(e):s}(l);if(d)return clearTimeout(a),a=setTimeout(m,t),f(l)}return void 0===a&&(a=setTimeout(m,t)),s}return t=we(t)||0,Ae(r)&&(u=!!r.leading,o=(d="maxWait"in r)?xe(we(r.maxWait)||0,t):o,h="trailing"in r?!!r.trailing:h),b.cancel=function(){void 0!==a&&clearTimeout(a),c=0,n=l=i=a=void 0},b.flush=function(){return void 0===a?s:g(ve())},b};function _e(e,t){var r=new Set;return e.forEach(function(e){t.has(e)||r.add(e)}),r}function Se(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,i=t.checkable;return!(!r&&!n)||!1===i}function Ee(e,t,r,n){var i,s=[];i=n||Se;var a,l=new Set(e.filter(function(e){var t=!!r[e];return t||s.push(e),t})),c=new Map,u=0;return Object.keys(r).forEach(function(e){var t=r[e],n=t.level,i=c.get(n);i||(i=new Set,c.set(n,i)),i.add(t),u=Math.max(u,n)}),(0,o.D)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,r,n){for(var i=new Set(e),o=new Set,s=0;s<=r;s+=1)(t.get(s)||new Set).forEach(function(e){var t=e.key,r=e.node,o=e.children,s=void 0===o?[]:o;i.has(t)&&!n(r)&&s.filter(function(e){return!n(e.node)}).forEach(function(e){i.add(e.key)})});for(var a=new Set,l=r;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent,r=e.node;if(!n(r)&&e.parent&&!a.has(e.parent.key)){if(n(e.parent.node))return void a.add(t.key);var s=!0,l=!1;(t.children||[]).filter(function(e){return!n(e.node)}).forEach(function(e){var t=e.key,r=i.has(t);s&&!r&&(s=!1),!l&&(r||o.has(t))&&(l=!0)}),s&&i.add(t.key),l&&o.add(t.key),a.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(_e(o,i))}}(l,c,u,i):function(e,t,r,n,i){for(var o=new Set(e),s=new Set(t),a=0;a<=n;a+=1)(r.get(a)||new Set).forEach(function(e){var t=e.key,r=e.node,n=e.children,a=void 0===n?[]:n;!o.has(t)&&!s.has(t)&&!i(r)&&a.filter(function(e){return!i(e.node)}).forEach(function(e){o.delete(e.key)})});s=new Set;for(var l=new Set,c=n;c>=0;c-=1)(r.get(c)||new Set).forEach(function(e){var t=e.parent,r=e.node;if(!i(r)&&e.parent&&!l.has(e.parent.key)){if(i(e.parent.node))return void l.add(t.key);var n=!0,a=!1;(t.children||[]).filter(function(e){return!i(e.node)}).forEach(function(e){var t=e.key,r=o.has(t);n&&!r&&(n=!1),!a&&(r||s.has(t))&&(a=!0)}),n||o.delete(t.key),a&&s.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(_e(s,o))}}(l,t.halfCheckedKeys,c,u,i),a}var Te=n.createContext(null),Me=function(e){for(var t=e.prefixCls,r=e.level,i=e.isStart,s=e.isEnd,a="".concat(t,"-indent-unit"),l=[],c=0;c<r;c+=1){var u;l.push(n.createElement("span",{key:c,className:(0,o.c)(a,(u={},(0,o.a)(u,"".concat(a,"-start"),i[c]),(0,o.a)(u,"".concat(a,"-end"),s[c]),u))}))}return n.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)};const Oe=n.memo(Me);
2var Ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Pe="open",Re="close",De=function(e){(0,o.b)(r,e);var t=(0,o.d)(r);function r(){var e;(0,o.e)(this,r);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return(e=t.call.apply(t,[this].concat(s))).state={dragNodeHighlight:!1},e.selectHandle=void 0,e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Ze(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Ze(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var r=e.props.context.onNodeSelect;t.preventDefault(),r(t,Ze(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var r=e.props,n=r.disableCheckbox,i=r.checked,o=e.props.context.onNodeCheck;if(e.isCheckable()&&!n){t.preventDefault();var s=!i;o(t,Ze(e.props),s)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Ze(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Ze(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Ze(e.props))},e.onDragStart=function(t){var r=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),r(t,(0,o.J)(e));try{t.dataTransfer.setData("text/plain","")}catch{}},e.onDragEnter=function(t){var r=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),r(t,(0,o.J)(e))},e.onDragOver=function(t){var r=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),r(t,(0,o.J)(e))},e.onDragLeave=function(t){var r=e.props.context.onNodeDragLeave;t.stopPropagation(),r(t,(0,o.J)(e))},e.onDragEnd=function(t){var r=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),r(t,(0,o.J)(e))},e.onDrop=function(t){var r=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),r(t,(0,o.J)(e))},e.onExpand=function(t){var r=e.props,n=r.loading,i=r.context.onNodeExpand;n||i(t,Ze(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?Pe:Re},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,r=t.isLeaf,n=t.loaded,i=e.props.context.loadData,o=e.hasChildren();return!1!==r&&(r||!i&&!o||i&&n&&!o)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,r=e.props.context.checkable;return!(!r||!1===t)&&r},e.syncLoadData=function(t){var r=t.expanded,n=t.loading,i=t.loaded,o=e.props.context,s=o.loadData,a=o.onNodeLoad;n||s&&r&&!e.isLeaf()&&!e.hasChildren()&&!i&&a(Ze(e.props))},e.isDraggable=function(){var t=e.props,r=t.data,n=t.context.draggable;return!(!n||n.nodeDraggable&&!n.nodeDraggable(r))},e.renderDragHandler=function(){var t=e.props.context,r=t.draggable,i=t.prefixCls;return null!=r&&r.icon?n.createElement("span",{className:"".concat(i,"-draggable-icon")},r.icon):null},e.renderSwitcherIconDom=function(t){var r=e.props.switcherIcon,n=e.props.context.switcherIcon,i=r||n;return"function"==typeof i?i((0,o.l)((0,o.l)({},e.props),{},{isLeaf:t})):i},e.renderSwitcher=function(){var t=e.props.expanded,r=e.props.context.prefixCls;if(e.isLeaf()){var i=e.renderSwitcherIconDom(!0);return!1!==i?n.createElement("span",{className:(0,o.c)("".concat(r,"-switcher"),"".concat(r,"-switcher-noop"))},i):null}var s=(0,o.c)("".concat(r,"-switcher"),"".concat(r,"-switcher_").concat(t?Pe:Re)),a=e.renderSwitcherIconDom(!1);return!1!==a?n.createElement("span",{onClick:e.onExpand,className:s},a):null},e.renderCheckbox=function(){var t=e.props,r=t.checked,i=t.halfChecked,s=t.disableCheckbox,a=e.props.context.prefixCls,l=e.isDisabled(),c=e.isCheckable();if(!c)return null;var u="boolean"!=typeof c?c:null;return n.createElement("span",{className:(0,o.c)("".concat(a,"-checkbox"),r&&"".concat(a,"-checkbox-checked"),!r&&i&&"".concat(a,"-checkbox-indeterminate"),(l||s)&&"".concat(a,"-checkbox-disabled")),onClick:e.onCheck},u)},e.renderIcon=function(){var t=e.props.loading,r=e.props.context.prefixCls;return n.createElement("span",{className:(0,o.c)("".concat(r,"-iconEle"),"".concat(r,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(r,"-icon_loading"))})}
2,e.renderSelector=function(){var t,r,i=e.state.dragNodeHighlight,s=e.props,a=s.title,l=s.selected,c=s.icon,u=s.loading,d=s.data,h=e.props.context,f=h.prefixCls,p=h.showIcon,m=h.icon,g=h.loadData,b=h.titleRender,y=e.isDisabled(),A="".concat(f,"-node-content-wrapper");if(p){var v=c||m;t=v?n.createElement("span",{className:(0,o.c)("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof v?v(e.props):v):e.renderIcon()}else g&&u&&(t=e.renderIcon());r="function"==typeof a?a(d):b?b(d):a;var w=n.createElement("span",{className:"".concat(f,"-title")},r);return n.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof a?a:"",className:(0,o.c)("".concat(A),"".concat(A,"-").concat(e.getNodeState()||"normal"),!y&&(l||i)&&"".concat(f,"-node-selected")),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick},t,w,e.renderDropIndicator())},e.renderDropIndicator=function(){var t=e.props,r=t.disabled,n=t.eventKey,i=e.props.context,o=i.draggable,s=i.dropLevelOffset,a=i.dropPosition,l=i.prefixCls,c=i.indent,u=i.dropIndicatorRender,d=i.dragOverNodeKey,h=i.direction;return!r&&!1!==o&&d===n?u({dropPosition:a,dropLevelOffset:s,indent:c,prefixCls:l,direction:h}):null},e}return(0,o.f)(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,r=t.eventKey,i=t.className,s=t.style,a=t.dragOver,c=t.dragOverGapTop,u=t.dragOverGapBottom,d=t.isLeaf,h=t.isStart,f=t.isEnd,p=t.expanded,m=t.selected,g=t.checked,b=t.halfChecked,y=t.loading,A=t.domRef,v=t.active;t.data;var w=t.onMouseMove,x=t.selectable,k=(0,o.z)(t,Ne),C=this.props.context,_=C.prefixCls,S=C.filterTreeNode,E=C.keyEntities,T=C.dropContainerKey,M=C.dropTargetKey,O=C.draggingNodeKey,N=this.isDisabled(),P=(0,l.p)(k,{aria:!0,data:!0}),R=(E[r]||{}).level,D=f[f.length-1],I=this.isDraggable(),L=!N&&I,B=O===r,j=void 0!==x?{"aria-selected":!!x}:void 0;return n.createElement("div",(0,o.g)({ref:A,className:(0,o.c)(i,"".concat(_,"-treenode"),(e={},(0,o.a)(e,"".concat(_,"-treenode-disabled"),N),(0,o.a)(e,"".concat(_,"-treenode-switcher-").concat(p?"open":"close"),!d),(0,o.a)(e,"".concat(_,"-treenode-checkbox-checked"),g),(0,o.a)(e,"".concat(_,"-treenode-checkbox-indeterminate"),b),(0,o.a)(e,"".concat(_,"-treenode-selected"),m),(0,o.a)(e,"".concat(_,"-treenode-loading"),y),(0,o.a)(e,"".concat(_,"-treenode-active"),v),(0,o.a)(e,"".concat(_,"-treenode-leaf-last"),D),(0,o.a)(e,"".concat(_,"-treenode-draggable"),L),(0,o.a)(e,"dragging",B),(0,o.a)(e,"drop-target",M===r),(0,o.a)(e,"drop-container",T===r),(0,o.a)(e,"drag-over",!N&&a),(0,o.a)(e,"drag-over-gap-top",!N&&c),(0,o.a)(e,"drag-over-gap-bottom",!N&&u),(0,o.a)(e,"filter-node",S&&S(Ze(this.props))),e)),style:s,draggable:L,"aria-grabbed":B,onDragStart:L?this.onDragStart:void 0,onDragEnter:I?this.onDragEnter:void 0,onDragOver:I?this.onDragOver:void 0,onDragLeave:I?this.onDragLeave:void 0,onDrop:I?this.onDrop:void 0,onDragEnd:I?this.onDragEnd:void 0,onMouseMove:w},j,P),n.createElement(Oe,{prefixCls:_,level:R,isStart:h,isEnd:f}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r}(n.Component),Ie=function(e){return n.createElement(Te.Consumer,null,function(t){return n.createElement(De,(0,o.g)({},e,{context:t}))})};function Le(e,t){if(!e)return[];var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function Be(e,t){var r=(e||[]).slice();return-1===r.indexOf(t)&&r.push(t),r}function je(e){return e.split("-")}function Fe(e,t){return"".concat(e,"-").concat(t)}function ze(e,t){var r=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var n=t.key,i=t.children;r.push(n),e(i)})}(t[e].children),r}function Ue(e){if(e.parent){var t=je(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function He(e,t,r,n,i,o,s,a,l,c){var u,d=e.clientX,h=e.clientY,f=e.target.getBoundingClientRect(),p=f.top,m=f.height,g=(("rtl"===c?-1:1)*(((null==i?void 0:i.x)||0)-d)-12)/n,b=a[r.props.eventKey];if(h<p+m/2){var y=s.findIndex(function(e){return e.key===b.key}),A=s[y<=0?0:y-1].key;b=a[A]}var v=b.key,w=b,x=b.key,k=0,C=0;if(!l.includes(v))for(var _=0;_<g&&Ue(b);_+=1)b=b.parent,C+=1;var S=t.props.data,E=b.node,T=!0;return function(e){var t=je(e.pos);return 0===Number(t[t.length-1])}(b)&&0===b.level&&h<p+m/2&&o({dragNode:S,dropNode:E,dropPosition:-1})&&b.key===r.props.eventKey?k=-1:(w.children||[]).length&&l.includes(x)?o({dragNode:S,dropNode:E,dropPosition:0})?k=0:T=!1:0===C?g>-1.5?o({dragNode:S,dropNode:E,dropPosition:1})?k=1:T=!1:o({dragNode:S,dropNode:E,dropPosition:0})?k=0:o({dragNode:S,dropNode:E,dropPosition:1})?k=1:T=!1:o({dragNode:S,dropNode:E,dropPosition:1})?k=1:T=!1,{dropPosition:k,dropLevelOffset:C,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:x,dropContainerKey:0===k?null:(null===(u=b.parent)||void 0===u?void 0:u.ke
2y)||null,dropAllowed:T}}function Ve(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function We(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,o.i)(e))return(0,o.D)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function Ke(e,t){var r=new Set;function n(e){if(!r.has(e)){var i=t[e];if(i){r.add(e);var o=i.parent;i.node.disabled||o&&n(o.key)}}}return(e||[]).forEach(function(e){n(e)}),(0,o.h)(r)}Ie.displayName="TreeNode",Ie.defaultProps={title:"---"},Ie.isTreeNode=1;var qe=["children"];function Ge(e,t){return null!=e?e:t}function Xe(e){var t=e||{},r=t.title||"title";return{title:r,_title:t._title||[r],key:t.key||"key",children:t.children||"children"}}function Ye(e){return function e(t){return(0,o.t)(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,o.D)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var r=t.key,n=t.props,i=n.children,s=(0,o.z)(n,qe),a=(0,o.l)({key:r},s),l=e(i);return l.length&&(a.children=l),a}).filter(function(e){return e})}(e)}function $e(e,t,r){var n=Xe(r),i=n._title,a=n.key,l=n.children,c=new Set(!0===t?[]:t),u=[];return function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r.map(function(d,h){for(var f,p=Fe(n?n.pos:"0",h),m=Ge(d[a],p),g=0;g<i.length;g+=1){var b=i[g];if(void 0!==d[b]){f=d[b];break}}var y=(0,o.l)((0,o.l)({},(0,s.o)(d,[].concat((0,o.h)(i),[a,l]))),{},{title:f,key:m,parent:n,pos:p,children:null,data:d,isStart:[].concat((0,o.h)(n?n.isStart:[]),[0===h]),isEnd:[].concat((0,o.h)(n?n.isEnd:[]),[h===r.length-1])});return u.push(y),!0===t||c.has(m)?y.children=e(d[l]||[],y):y.children=[],y})}(e),u}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.initWrapper,n=t.processEntity,i=t.onProcessFinished,s=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=s||(arguments.length>2?arguments[2]:void 0),u={},d={},h={posEntities:u,keyEntities:d};return r&&(h=r(h)||h),function(e,t,r){var n,i=("object"===(0,o.i)(r)?r:{externalGetKey:r})||{},s=i.childrenPropName,a=i.externalGetKey,l=Xe(i.fieldNames),c=l.key,u=l.children,d=s||u;a?"string"==typeof a?n=function(e){return e[a]}:"function"==typeof a&&(n=function(e){return a(e)}):n=function(e,t){return Ge(e[c],t)},function r(i,s,a,l){var c=i?i[d]:e,u=i?Fe(a.pos,s):"0",h=i?[].concat((0,o.h)(l),[i]):[];if(i){var f=n(i,u),p={node:i,index:s,pos:u,key:f,parentPos:a.node?a.pos:null,level:a.level+1,nodes:h};t(p)}c&&c.forEach(function(e,t){r(e,t,{node:i,pos:u,level:a?a.level+1:-1},h)})}(null)}(e,function(e){var t=e.node,r=e.index,i=e.pos,o=e.key,s=e.parentPos,a=e.level,l={node:t,nodes:e.nodes,index:r,key:o,pos:i,level:a},c=Ge(o,i);u[i]=l,d[c]=l,l.parent=u[s],l.parent&&(l.parent.children=l.parent.children||[],l.parent.children.push(l)),n&&n(l,h)},{externalGetKey:c,childrenPropName:a,fieldNames:l}),i&&i(h),h}function Je(e,t){var r=t.expandedKeys,n=t.selectedKeys,i=t.loadedKeys,o=t.loadingKeys,s=t.checkedKeys,a=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==r.indexOf(e),selected:-1!==n.indexOf(e),loaded:-1!==i.indexOf(e),loading:-1!==o.indexOf(e),checked:-1!==s.indexOf(e),halfChecked:-1!==a.indexOf(e),pos:String(u?u.pos:""),dragOver:l===e&&0===c,dragOverGapTop:l===e&&-1===c,dragOverGapBottom:l===e&&1===c}}function Ze(e){var t=e.data,r=e.expanded,n=e.selected,i=e.checked,s=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,h=e.pos,f=e.active,p=e.eventKey,m=(0,o.l)((0,o.l)({},t),{},{expanded:r,selected:n,checked:i,loaded:s,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:h,active:f,key:p});return"props"in m||Object.defineProperty(m,"props",{get:function(){return(0,o.D)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}function et(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var tt=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};(0,h.t)("small","default","large");var rt=null;var nt=function(e){(0,o.b)(r,e);var t=(0,o.d)(r);function r(e){var i;(0,o.e)(this,r),(i=t.call(this,e)).debouncifyUpdateSpinning=function(e){var t=(e||i.props).delay;t&&(i.cancelExistingSpin(),i.updateSpinning=Ce(i.originalUpdateSpinning,t))},i.updateSpinning=function(){var e=i.props.spinning;i.state.spinning!==e&&i.setState({spinning:e})},i.renderSpin=function(e){var t,r=e.getPrefixCls,a=e.direction,l=i.props,c=l.prefixCls,u=l.className,d=l.size,h=l.tip,p=l.wrapperClassName,m=l.style,g=tt(l,["prefixCls","className","size","tip","wrapperClassName","style"]),b=i.state.spinning,y=r("spin",c),A=(0,o.c)(y,(t={}
2,(0,o.a)(t,"".concat(y,"-sm"),"small"===d),(0,o.a)(t,"".concat(y,"-lg"),"large"===d),(0,o.a)(t,"".concat(y,"-spinning"),b),(0,o.a)(t,"".concat(y,"-show-text"),!!h),(0,o.a)(t,"".concat(y,"-rtl"),"rtl"===a),t),u),v=(0,s.o)(g,["spinning","delay","indicator"]),w=n.createElement("div",(0,o.g)({},v,{style:m,className:A}),function(e,t){var r=t.indicator,i="".concat(e,"-dot");return null===r?null:(0,f.i)(r)?(0,f.c)(r,{className:(0,o.c)(r.props.className,i)}):(0,f.i)(rt)?(0,f.c)(rt,{className:(0,o.c)(rt.props.className,i)}):n.createElement("span",{className:(0,o.c)(i,"".concat(e,"-dot-spin"))},n.createElement("i",{className:"".concat(e,"-dot-item")}),n.createElement("i",{className:"".concat(e,"-dot-item")}),n.createElement("i",{className:"".concat(e,"-dot-item")}),n.createElement("i",{className:"".concat(e,"-dot-item")}))}(y,i.props),h?n.createElement("div",{className:"".concat(y,"-text")},h):null);if(i.isNestedPattern()){var x=(0,o.c)("".concat(y,"-container"),(0,o.a)({},"".concat(y,"-blur"),b));return n.createElement("div",(0,o.g)({},v,{className:(0,o.c)("".concat(y,"-nested-loading"),p)}),b&&n.createElement("div",{key:"loading"},w),n.createElement("div",{className:x,key:"container"},i.props.children))}return w};var a=e.spinning,l=function(e,t){return!!e&&!!t&&!isNaN(Number(t))}(a,e.delay);return i.state={spinning:a&&!l},i.originalUpdateSpinning=i.updateSpinning,i.debouncifyUpdateSpinning(e),i}return(0,o.f)(r,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var e=this.updateSpinning;e&&e.cancel&&e.cancel()}},{key:"isNestedPattern",value:function(){return!!(this.props&&typeof this.props.children<"u")}},{key:"render",value:function(){return n.createElement(o.L,null,this.renderSpin)}}],[{key:"setDefaultIndicator",value:function(e){rt=e}}]),r}(n.Component);nt.defaultProps={spinning:!0,size:"default",wrapperClassName:""};const it=nt;var ot=function(e){var t,r="".concat(e.rootPrefixCls,"-item"),i=(0,o.c)(r,"".concat(r,"-").concat(e.page),(t={},(0,o.a)(t,"".concat(r,"-active"),e.active),(0,o.a)(t,"".concat(r,"-disabled"),!e.page),(0,o.a)(t,e.className,!!e.className),t));return n.createElement("li",{title:e.showTitle?e.page:null,className:i,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",n.createElement("a",{rel:"nofollow"},e.page)))};const st=13,at=38,lt=40;var ct=function(e){(0,o.b)(r,e);var t=(0,o.d)(r);function r(){var e;(0,o.e)(this,r);for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return(e=t.call.apply(t,[this].concat(i))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var r=e.props,n=r.goButton,i=r.quickGo,o=r.rootPrefixCls,s=e.state.goInputText;n||""===s||(e.setState({goInputText:""}),(!t.relatedTarget||!(t.relatedTarget.className.indexOf("".concat(o,"-item-link"))>=0||t.relatedTarget.className.indexOf("".concat(o,"-item"))>=0))&&i(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode===st||"click"===t.type)&&(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue()))},e}return(0,o.f)(r,[{key:"getValidValue",value:function(){var e=this.state.goInputText;return!e||isNaN(e)?void 0:Number(e)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,r=e.pageSizeOptions;return r.some(function(e){return e.toString()===t.toString()})?r:r.concat([t.toString()]).sort(function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))})}},{key:"render",value:function(){var e=this,t=this.props,r=t.pageSize,i=t.locale,o=t.rootPrefixCls,s=t.changeSize,a=t.quickGo,l=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,d=t.selectPrefixCls,h=t.disabled,f=this.state.goInputText,p="".concat(o,"-options"),m=c,g=null,b=null,y=null;if(!s&&!a)return null;var A=this.getPageSizeOptions();if(s&&m){var v=A.map(function(t,r){return n.createElement(m.Option,{key:r,value:t.toString()},(u||e.buildOptionText)(t))});g=n.createElement(m,{disabled:h,prefixCls:d,showSearch:!1,className:"".concat(p,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(r||A[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode},"aria-label":i.page_size,defaultOpen:!1},v)}return a&&(l&&(y="boolean"==typeof l?n.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:h,className:"".concat(p,"-quick-jumper
2-button")},i.jump_to_confirm):n.createElement("span",{onClick:this.go,onKeyUp:this.go},l)),b=n.createElement("div",{className:"".concat(p,"-quick-jumper")},i.jump_to,n.createElement("input",{disabled:h,type:"text",value:f,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":i.page}),i.page,y)),n.createElement("li",{className:"".concat(p)},g,b)}}]),r}(n.Component);ct.defaultProps={pageSizeOptions:["10","20","50","100"]};function ut(){}function dt(e){var t=Number(e);return"number"==typeof t&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function ht(e,t,r){var n=typeof e>"u"?t.pageSize:e;return Math.floor((r.total-1)/n)+1}var ft=function(e){(0,o.b)(r,e);var t=(0,o.d)(r);function r(e){var s;(0,o.e)(this,r),(s=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(ht(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(e,t){var r=s.props.prefixCls,a=e||(0,i.j)("button",{type:"button","aria-label":t,className:"".concat(r,"-item-link")});return"function"==typeof e&&(a=n.createElement(e,(0,o.l)({},s.props))),a},s.savePaginationNode=function(e){s.paginationNode=e},s.isValid=function(e){var t=s.props.total;return dt(e)&&e!==s.state.current&&dt(t)&&t>0},s.shouldDisplayQuickJumper=function(){var e=s.props,t=e.showQuickJumper;return!(e.total<=s.state.pageSize)&&t},s.handleKeyDown=function(e){(e.keyCode===at||e.keyCode===lt)&&e.preventDefault()},s.handleKeyUp=function(e){var t=s.getValidValue(e);t!==s.state.currentInputValue&&s.setState({currentInputValue:t}),e.keyCode===st?s.handleChange(t):e.keyCode===at?s.handleChange(t-1):e.keyCode===lt&&s.handleChange(t+1)},s.handleBlur=function(e){var t=s.getValidValue(e);s.handleChange(t)},s.changePageSize=function(e){var t=s.state.current,r=ht(e,s.state,s.props);t=t>r?r:t,0===r&&(t=s.state.current),"number"==typeof e&&("pageSize"in s.props||s.setState({pageSize:e}),"current"in s.props||s.setState({current:t,currentInputValue:t})),s.props.onShowSizeChange(t,e),"onChange"in s.props&&s.props.onChange&&s.props.onChange(t,e)},s.handleChange=function(e){var t=s.props,r=t.disabled,n=t.onChange,i=s.state,o=i.pageSize,a=i.current,l=i.currentInputValue;if(s.isValid(e)&&!r){var c=ht(void 0,s.state,s.props),u=e;return e>c?u=c:e<1&&(u=1),"current"in s.props||s.setState({current:u}),u!==l&&s.setState({currentInputValue:u}),n(u,o),u}return a},s.prev=function(){s.hasPrev()&&s.handleChange(s.state.current-1)},s.next=function(){s.hasNext()&&s.handleChange(s.state.current+1)},s.jumpPrev=function(){s.handleChange(s.getJumpPrevPage())},s.jumpNext=function(){s.handleChange(s.getJumpNextPage())},s.hasPrev=function(){return s.state.current>1},s.hasNext=function(){return s.state.current<ht(void 0,s.state,s.props)},s.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];t.apply(void 0,n)}},s.runIfEnterPrev=function(e){s.runIfEnter(e,s.prev)},s.runIfEnterNext=function(e){s.runIfEnter(e,s.next)},s.runIfEnterJumpPrev=function(e){s.runIfEnter(e,s.jumpPrev)},s.runIfEnterJumpNext=function(e){s.runIfEnter(e,s.jumpNext)},s.handleGoTO=function(e){(e.keyCode===st||"click"===e.type)&&s.handleChange(s.state.currentInputValue)};var a=e.onChange!==ut;"current"in e&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=e.defaultCurrent;"current"in e&&(l=e.current);var c=e.defaultPageSize;return"pageSize"in e&&(c=e.pageSize),l=Math.min(l,ht(c,void 0,e)),s.state={current:l,currentInputValue:l,pageSize:c},s}return(0,o.f)(r,[{key:"componentDidUpdate",value:function(e,t){var r=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var n=this.paginationNode.querySelector(".".concat(r,"-item-").concat(t.current));n&&document.activeElement===n&&n.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,r=ht(void 0,this.state,this.props),n=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?n:t>=r?r:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,r=e.total,n=e.totalBoundaryShowSizeChanger;return typeof t<"u"?t:r>n}},{key:"renderPrev",value:function(e){var t=this.props,r=t.prevIcon,i=(0,t.itemRender)(e,"prev",this.getItemIcon(r,"prev page")),o=!this.hasPrev();return(0,n.isValidElement)(i)?(0,n.cloneElement)(i,{disabled:o}):i}},{key:"renderNext",value:function(e){var t=this.props,r=t.nextIcon,i=(0,t.itemRender)(e,"next",this.getItemIcon(r,"next page")),o=!this.hasNext();return(0,n.isValidElement)(i)?(0,n.cloneElement)(i,{disabled:o}):i}},{key:"render",value:function(){var e=this,t=this.props,r=t.prefixCls,s=t.className,a=t.style,l=t.disabled,c=t.hideOnSinglePage,u=t.total,d=t.locale,h=t.showQuickJumper,f=t.showLessItems,p=t.showTitle,m=t.showTotal,g=t.simple,b=t.itemRender,y=t.showPrevNextJumpers,A=t.jumpPrevIcon,v=t.jumpNextIcon,w=t.selectComponentClass,x=t.selectPrefixCls,k=t.pageSizeOptions,C=this.state,_=C.current,S=C.pageSize,E=C.currentInputValue;if(!0===c&&u<=S)return null;
2var T=ht(void 0,this.state,this.props),M=[],O=null,N=null,P=null,R=null,D=null,I=h&&h.goButton,L=f?1:2,B=_-1>0?_-1:0,j=_+1<T?_+1:T,F=Object.keys(this.props).reduce(function(t,r){return("data-"===r.substr(0,5)||"aria-"===r.substr(0,5)||"role"===r)&&(t[r]=e.props[r]),t},{});if(g)return I&&(D="boolean"==typeof I?(0,i.j)("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO,children:d.jump_to_confirm}):(0,i.j)("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO,children:I}),D=(0,i.j)("li",{title:p?"".concat(d.jump_to).concat(_,"/").concat(T):null,className:"".concat(r,"-simple-pager"),children:D})),(0,i.a)("ul",{className:(0,o.c)(r,"".concat(r,"-simple"),(0,o.a)({},"".concat(r,"-disabled"),l),s),style:a,ref:this.savePaginationNode,...F,children:[(0,i.j)("li",{title:p?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:(0,o.c)("".concat(r,"-prev"),(0,o.a)({},"".concat(r,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev(),children:this.renderPrev(B)}),(0,i.a)("li",{title:p?"".concat(_,"/").concat(T):null,className:"".concat(r,"-simple-pager"),children:[(0,i.j)("input",{type:"text",value:E,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),(0,i.j)("span",{className:"".concat(r,"-slash"),children:"/"}),T]}),(0,i.j)("li",{title:p?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:(0,o.c)("".concat(r,"-next"),(0,o.a)({},"".concat(r,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext(),children:this.renderNext(j)}),D]});if(T<=3+2*L){var z={locale:d,rootPrefixCls:r,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:b};T||M.push((0,n.createElement)(ot,{...z,key:"noPager",page:1,className:"".concat(r,"-item-disabled")}));for(var U=1;U<=T;U+=1){var H=_===U;M.push((0,n.createElement)(ot,{...z,key:U,page:U,active:H}))}}else{var V=f?d.prev_3:d.prev_5,W=f?d.next_3:d.next_5;y&&(O=(0,i.j)("li",{title:p?V:null,onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:(0,o.c)("".concat(r,"-jump-prev"),(0,o.a)({},"".concat(r,"-jump-prev-custom-icon"),!!A)),children:b(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(A,"prev page"))},"prev"),N=(0,i.j)("li",{title:p?W:null,tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:(0,o.c)("".concat(r,"-jump-next"),(0,o.a)({},"".concat(r,"-jump-next-custom-icon"),!!v)),children:b(this.getJumpNextPage(),"jump-next",this.getItemIcon(v,"next page"))},"next")),R=(0,i.j)(ot,{locale:d,last:!0,rootPrefixCls:r,onClick:this.handleChange,onKeyPress:this.runIfEnter,page:T,active:!1,showTitle:p,itemRender:b},T),P=(0,i.j)(ot,{locale:d,rootPrefixCls:r,onClick:this.handleChange,onKeyPress:this.runIfEnter,page:1,active:!1,showTitle:p,itemRender:b},1);var K=Math.max(1,_-L),q=Math.min(_+L,T);_-1<=L&&(q=1+2*L),T-_<=L&&(K=T-2*L);for(var G=K;G<=q;G+=1){var X=_===G;M.push((0,i.j)(ot,{locale:d,rootPrefixCls:r,onClick:this.handleChange,onKeyPress:this.runIfEnter,page:G,active:X,showTitle:p,itemRender:b},G))}_-1>=2*L&&3!==_&&(M[0]=(0,n.cloneElement)(M[0],{className:"".concat(r,"-item-after-jump-prev")}),M.unshift(O)),T-_>=2*L&&_!==T-2&&(M[M.length-1]=(0,n.cloneElement)(M[M.length-1],{className:"".concat(r,"-item-before-jump-next")}),M.push(N)),1!==K&&M.unshift(P),q!==T&&M.push(R)}var Y=null;m&&(Y=(0,i.j)("li",{className:"".concat(r,"-total-text"),children:m(u,[0===u?0:(_-1)*S+1,_*S>u?u:_*S])}));var $=!this.hasPrev()||!T,Q=!this.hasNext()||!T;return(0,i.a)("ul",{className:(0,o.c)(r,s,(0,o.a)({},"".concat(r,"-disabled"),l)),style:a,unselectable:"unselectable",ref:this.savePaginationNode,...F,children:[Y,(0,i.j)("li",{title:p?d.prev_page:null,onClick:this.prev,tabIndex:$?null:0,onKeyPress:this.runIfEnterPrev,className:(0,o.c)("".concat(r,"-prev"),(0,o.a)({},"".concat(r,"-disabled"),$)),"aria-disabled":$,children:this.renderPrev(B)}),M,(0,i.j)("li",{title:p?d.next_page:null,onClick:this.next,tabIndex:Q?null:0,onKeyPress:this.runIfEnterNext,className:(0,o.c)("".concat(r,"-next"),(0,o.a)({},"".concat(r,"-disabled"),Q)),"aria-disabled":Q,children:this.renderNext(j)}),(0,i.j)(ct,{disabled:l,locale:d,rootPrefixCls:r,selectComponentClass:w,selectPrefixCls:x,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:_,pageSize:S,pageSizeOptions:k,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:I})]})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r={};if("current"in e&&(r.current=e.current,e.current!==t.current&&(r.currentInputValue=r.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var n=t.current,i=ht(e.pageSize,t,e);n=n>i?i:n,"current"in e||(r.current=n,r.currentInputValue=n),r.pageSize=e.pageSize}return r}}]),r}(n.Component);ft.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:ut,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:ut,locale:{items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"},style:{},itemRender:function(e,t,r){return r},totalBoundaryShowSizeChanger:50};const pt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var mt=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:pt}))};mt.displayName="DoubleLeftOutlined";const gt=n.forwardRef(mt);const bt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.
21 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};var yt=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:bt}))};yt.displayName="DoubleRightOutlined";const At=n.forwardRef(yt);var vt=function(e){return n.createElement(g.A,(0,o.g)({size:"small"},e))};vt.Option=g.A.Option;const wt=vt;var xt=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const kt=function(e){var t=e.prefixCls,r=e.selectPrefixCls,i=e.className,s=e.size,a=e.locale,l=e.selectComponentClass,c=xt(e,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass"]),u=(0,b.u)().xs,d=n.useContext(o.k),h=d.getPrefixCls,f=d.direction,y=h("pagination",t),A=function(e){var t=(0,o.g)((0,o.g)({},e),a),d="small"===s||!(!u||s||!c.responsive),b=h("select",r),A=(0,o.c)((0,o.a)({mini:d},"".concat(y,"-rtl"),"rtl"===f),i);return n.createElement(ft,(0,o.g)({},function(){var e=n.createElement("span",{className:"".concat(y,"-item-ellipsis")},"\u2022\u2022\u2022"),t=n.createElement("button",{className:"".concat(y,"-item-link"),type:"button",tabIndex:-1},n.createElement(p.L,null)),r=n.createElement("button",{className:"".concat(y,"-item-link"),type:"button",tabIndex:-1},n.createElement(m.R,null)),i=n.createElement("a",{className:"".concat(y,"-item-link")},n.createElement("div",{className:"".concat(y,"-item-container")},n.createElement(gt,{className:"".concat(y,"-item-link-icon")}),e)),o=n.createElement("a",{className:"".concat(y,"-item-link")},n.createElement("div",{className:"".concat(y,"-item-container")},n.createElement(At,{className:"".concat(y,"-item-link-icon")}),e));if("rtl"===f){var s=[r,t];t=s[0],r=s[1];var a=[o,i];i=a[0],o=a[1]}return{prevIcon:t,nextIcon:r,jumpPrevIcon:i,jumpNextIcon:o}}(),c,{prefixCls:y,selectPrefixCls:b,className:A,selectComponentClass:l||(d?wt:g.A),locale:t}))};return n.createElement(o.Q,{componentName:"Pagination",defaultLocale:o.a2},A)};function Ct(e){return null==e?[]:Array.isArray(e)?e:[e]}function _t(e,t){if(!t&&"number"!=typeof t)return e;for(var r=Ct(t),n=e,i=0;i<r.length;i+=1){if(!n)return null;n=n[r[i]]}return n}function St(e){var t=[],r={};return e.forEach(function(e){for(var n=e||{},i=n.key,o=n.dataIndex,s=i||Ct(o).join("-")||"RC_TABLE_KEY";r[s];)s="".concat(s,"_next");r[s]=!0,t.push(s)}),t}function Et(){var e={};function t(e,r){r&&Object.keys(r).forEach(function(n){var i=r[n];i&&"object"===(0,o.i)(i)?(e[n]=e[n]||{},t(e[n],i)):e[n]=i})}for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return n.forEach(function(r){t(e,r)}),e}function Tt(e){return null!=e}var Mt=n.createContext(!1),Ot=n.createContext({}),Nt=["colSpan","rowSpan","style","className"];function Pt(e){return"string"==typeof e||(0,o.w)(e)}function Rt(e,t){var r,i,s,a,l,c=e.prefixCls,u=e.className,d=e.record,h=e.index,f=e.renderIndex,p=e.dataIndex,m=e.render,g=e.children,b=e.component,y=void 0===b?"td":b,A=e.colSpan,v=e.rowSpan,w=e.fixLeft,x=e.fixRight,k=e.firstFixLeft,C=e.lastFixLeft,_=e.firstFixRight,S=e.lastFixRight,E=e.appendNode,T=e.additionalProps,M=void 0===T?{}:T,O=e.ellipsis,N=e.align,P=e.rowType,R=e.isSticky,D=e.hovering,I=e.onHover,L="".concat(c,"-cell"),B=n.useContext(Mt);if(Tt(g))l=g;else{var j=_t(d,p);if(l=j,m){var F=m(j,d,f);!function(e){return e&&"object"===(0,o.i)(e)&&!Array.isArray(e)&&!n.isValidElement(e)}(F)?l=F:(l=F.children,a=F.props)}}"object"===(0,o.i)(l)&&!Array.isArray(l)&&!n.isValidElement(l)&&(l=null),O&&(C||_)&&(l=n.createElement("span",{className:"".concat(L,"-content")},l));var z=a||{},U=z.colSpan,H=z.rowSpan,V=z.style,W=z.className,K=(0,o.z)(z,Nt),q=null!==(r=void 0!==U?U:A)&&void 0!==r?r:1,G=null!==(i=void 0!==H?H:v)&&void 0!==i?i:1;if(0===q||0===G)return null;var X={},Y="number"==typeof w&&B,$="number"==typeof x&&B;Y&&(X.position="sticky",X.left=w),$&&(X.position="sticky",X.right=x);var Q={};N&&(Q.textAlign=N);var J,Z=!0===O?{showTitle:!0}:O;Z&&(Z.showTitle||"header"===P)&&("string"==typeof l||"number"==typeof l?J=l.toString():n.isValidElement(l)&&"string"==typeof l.props.children&&(J=l.props.children));var ee=(0,o.l)((0,o.l)((0,o.l)({title:J},K),M),{},{colSpan:1!==q?q:null,rowSpan:1!==G?G:null,className:(0,o.c)(L,u,(s={},(0,o.a)(s,"".concat(L,"-fix-left"),Y&&B),(0,o.a)(s,"".concat(L,"-fix-left-first"),k&&B),(0,o.a)(s,"".concat(L,"-fix-left-last"),C&&B),(0,o.a)(s,"".concat(L,"-fix-right"),$&&B),(0,o.a)(s,"".concat(L,"-fix-right-first"),_&&B),(0,o.a)(s,"".concat(L,"-fix-right-last"),S&&B),(0,o.a)(s,"".concat(L,"-ellipsis"),O),(0,o.a)(s,"".concat(L,"-with-append"),E),(0,o.a)(s,"".concat(L,"-fix-sticky"),(Y||$)&&R&&B),(0,o.a)(s,"".concat(L,"-row-hover"),!a&&D),s),M.className,W),style:(0,o.l)((0,o.l)((0,o.l)((0,o.l)({}
2,M.style),Q),X),V),onMouseEnter:function(e){var t;d&&I(h,h+G-1),null==M||null===(t=M.onMouseEnter)||void 0===t||t.call(M,e)},onMouseLeave:function(e){var t;d&&I(-1,-1),null==M||null===(t=M.onMouseLeave)||void 0===t||t.call(M,e)},ref:Pt(y)?t:null});return n.createElement(y,ee,E,l)}var Dt=n.forwardRef(Rt);Dt.displayName="Cell";var It=["expanded","className","hovering"],Lt=n.memo(Dt,function(e,t){return t.shouldCellUpdate?It.every(function(r){return e[r]===t[r]})&&!t.shouldCellUpdate(t.record,e.record):(0,c.s)(e,t)}),Bt=n.forwardRef(function(e,t){var r=n.useContext(Ot),i=r.onHover,s=r.startRow,a=r.endRow,l=e.index,c=e.additionalProps,u=void 0===c?{}:c,d=e.colSpan,h=e.rowSpan,f=u.colSpan,p=u.rowSpan,m=null!=d?d:f,g=null!=h?h:p,b=function(e,t,r,n){return e<=n&&e+t-1>=r}(l,g||1,s,a);return n.createElement(Lt,(0,o.g)({},e,{colSpan:m,rowSpan:g,hovering:b,ref:t,onHover:i}))});Bt.displayName="WrappedCell";var jt=n.createContext(null);function Ft(e,t,r,n,i){var o,s,a=r[e]||{},l=r[t]||{};"left"===a.fixed?o=n.left[e]:"right"===l.fixed&&(s=n.right[t]);var c=!1,u=!1,d=!1,h=!1,f=r[t+1],p=r[e-1];if("rtl"===i){if(void 0!==o)h=!(p&&"left"===p.fixed);else if(void 0!==s){d=!(f&&"right"===f.fixed)}}else if(void 0!==o){c=!(f&&"left"===f.fixed)}else if(void 0!==s){u=!(p&&"right"===p.fixed)}return{fixLeft:o,fixRight:s,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:h,isSticky:n.isSticky}}function zt(e){var t,r=e.cells,i=e.stickyOffsets,s=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,u=e.index,d=n.useContext(jt),h=d.prefixCls,f=d.direction;c&&(t=c(r.map(function(e){return e.column}),u));var p=St(r.map(function(e){return e.column}));return n.createElement(a,t,r.map(function(e,t){var r,a=e.column,c=Ft(e.colStart,e.colEnd,s,i,f);return a&&a.onHeaderCell&&(r=e.column.onHeaderCell(a)),n.createElement(Bt,(0,o.g)({},e,{ellipsis:a.ellipsis,align:a.align,component:l,prefixCls:h,key:p[t]},c,{additionalProps:r,rowType:"header"}))}))}function Ut(e){var t=e.stickyOffsets,r=e.columns,i=e.flattenColumns,o=e.onHeaderRow,s=n.useContext(jt),a=s.prefixCls,l=s.getComponent,c=n.useMemo(function(){return function(e){var t=[];!function e(r,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[i]=t[i]||[];var o=n;return r.filter(Boolean).map(function(r){var n={key:r.key,className:r.className||"",children:r.title,column:r,colStart:o},s=1,a=r.children;return a&&a.length>0&&(s=e(a,o,i+1).reduce(function(e,t){return e+t},0),n.hasSubColumns=!0),"colSpan"in r&&(s=r.colSpan),"rowSpan"in r&&(n.rowSpan=r.rowSpan),n.colSpan=s,n.colEnd=n.colStart+s-1,t[i].push(n),o+=s,s})}(e,0);for(var r=t.length,n=function(e){t[e].forEach(function(t){!("rowSpan"in t)&&!t.hasSubColumns&&(t.rowSpan=r-e)})},i=0;i<r;i+=1)n(i);return t}(r)},[r]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),h=l(["header","cell"],"th");return n.createElement(u,{className:"".concat(a,"-thead")},c.map(function(e,r){return n.createElement(zt,{key:r,flattenColumns:i,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:h,onHeaderRow:o,index:r})}))}zt.displayName="HeaderRow";var Ht=n.createContext(null),Vt=n.createContext(null);function Wt(e){var t=e.prefixCls,r=e.children,i=e.component,o=e.cellComponent,s=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,u=n.useContext(jt).scrollbarSize,d=n.useContext(Vt),h=d.fixHeader,f=d.fixColumn,p=d.componentWidth,m=d.horizonScroll;return n.useMemo(function(){var e=r;return(c?m:f)&&(e=n.createElement("div",{style:{width:p-(h?u:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),n.createElement(i,{className:s,style:{display:a?null:"none"}},n.createElement(Bt,{component:o,prefixCls:t,colSpan:l},e))},[r,i,s,a,l,c,u,p,f,h,m])}var Kt=n.createContext(null);function qt(e){var t=e.className,r=e.style,i=e.record,s=e.index,a=e.renderIndex,l=e.rowKey,c=e.rowExpandable,u=e.expandedKeys,d=e.onRow,h=e.indent,f=void 0===h?0:h,p=e.rowComponent,m=e.cellComponent,g=e.childrenColumnName,b=n.useContext(jt),y=b.prefixCls,A=b.fixedInfoList,v=n.useContext(Ht),w=v.flattenColumns,x=v.expandableType,k=v.expandRowByClick,C=v.onTriggerExpand,_=v.rowClassName,S=v.expandedRowClassName,E=v.indentSize,T=v.expandIcon,M=v.expandedRowRender,O=v.expandIconColumnIndex,N=n.useState(!1),P=(0,o._)(N,2),R=P[0],D=P[1],I=u&&u.has(e.recordKey);n.useEffect(function(){I&&D(!0)},[I]);var L="row"===x&&(!c||c(i)),B="nest"===x,j=g&&i&&i[g],F=L||B,z=n.useRef(C);z.current=C;var U,H=function(){z.current.apply(z,arguments)};d&&(U=d(i,s));var V;"string"==typeof _?V=_:"function"==typeof _&&(V=_(i,s,f));var W,K=St(w),q=n.createElement(p,(0,o.g)({}
2,U,{"data-row-key":l,className:(0,o.c)(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(f),V,U&&U.className),style:(0,o.l)((0,o.l)({},r),U?U.style:null),onClick:function(e){var t,r;k&&F&&H(i,e);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];null===(t=U)||void 0===t||null===(r=t.onClick)||void 0===r||r.call.apply(r,[t,e].concat(o))}}),w.map(function(e,t){var r,l,c=e.render,u=e.dataIndex,d=e.className,h=K[t],p=A[t];return t===(O||0)&&B&&(r=n.createElement(n.Fragment,null,n.createElement("span",{style:{paddingLeft:"".concat(E*f,"px")},className:"".concat(y,"-row-indent indent-level-").concat(f)}),T({prefixCls:y,expanded:I,expandable:j,record:i,onExpand:H}))),e.onCell&&(l=e.onCell(i,s)),n.createElement(Bt,(0,o.g)({className:d,ellipsis:e.ellipsis,align:e.align,component:m,prefixCls:y,key:h,record:i,index:s,renderIndex:a,dataIndex:u,render:c,shouldCellUpdate:e.shouldCellUpdate,expanded:r&&I},p,{appendNode:r,additionalProps:l}))}));if(L&&(R||I)){var G=M(i,s,f+1,I),X=S&&S(i,s,f);W=n.createElement(Wt,{expanded:I,className:(0,o.c)("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(f+1),X),prefixCls:y,component:p,cellComponent:m,colSpan:w.length,isEmpty:!1},G)}return n.createElement(n.Fragment,null,q,W)}function Gt(e,t,r,n,i,s){var a=[];a.push({record:e,indent:t,index:s});var l=i(e),c=null==n?void 0:n.has(l);if(e&&Array.isArray(e[r])&&c)for(var u=0;u<e[r].length;u+=1){var d=Gt(e[r][u],t+1,r,n,i,u);a.push.apply(a,(0,o.h)(d))}return a}function Xt(e){var t=e.columnKey,r=e.onColumnResize,i=n.useRef();return n.useEffect(function(){i.current&&r(t,i.current.offsetWidth)},[]),n.createElement(u.R,{data:t},n.createElement("td",{ref:i,style:{padding:0,border:0,height:0}},n.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function Yt(e){var t=e.prefixCls,r=e.columnsKey,i=e.onColumnResize,s=n.useRef(new Map),a=n.useRef(null);return n.useEffect(function(){return function(){o.G.cancel(a.current)}},[]),n.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},n.createElement(u.R.Collection,{onBatchResize:function(e){e.forEach(function(e){var t=e.data,r=e.size;s.current.set(t,r.offsetWidth)}),null===a.current&&(a.current=(0,o.G)(function(){s.current.forEach(function(e,t){i(t,e)}),s.current.clear(),a.current=null},2))}},r.map(function(e){return n.createElement(Xt,{key:e,columnKey:e,onColumnResize:i})})))}function $t(e){var t=e.data,r=e.getRowKey,i=e.measureColumnWidth,s=e.expandedKeys,a=e.onRow,l=e.rowExpandable,c=e.emptyNode,u=e.childrenColumnName,d=n.useContext(Kt).onColumnResize,h=n.useContext(jt),f=h.prefixCls,p=h.getComponent,m=n.useContext(Ht).flattenColumns,g=function(e,t,r,i){return n.useMemo(function(){if(null!=r&&r.size){for(var n=[],s=0;s<(null==e?void 0:e.length);s+=1){var a=e[s];n.push.apply(n,(0,o.h)(Gt(a,0,t,r,i,s)))}return n}return null==e?void 0:e.map(function(e,t){return{record:e,indent:0,index:t}})},[e,t,r,i])}(t,u,s,r),b=n.useState(-1),y=(0,o._)(b,2),A=y[0],v=y[1],w=n.useState(-1),x=(0,o._)(w,2),k=x[0],C=x[1],_=n.useCallback(function(e,t){v(e),C(t)},[]),S=n.useMemo(function(){return{startRow:A,endRow:k,onHover:_}},[_,A,k]),E=n.useMemo(function(){var e,o=p(["body","wrapper"],"tbody"),h=p(["body","row"],"tr"),b=p(["body","cell"],"td");e=t.length?g.map(function(e,t){var i=e.record,o=e.indent,c=e.index,d=r(i,t);return n.createElement(qt,{key:d,rowKey:d,record:i,recordKey:d,index:t,renderIndex:c,rowComponent:h,cellComponent:b,expandedKeys:s,onRow:a,getRowKey:r,rowExpandable:l,childrenColumnName:u,indent:o})}):n.createElement(Wt,{expanded:!0,className:"".concat(f,"-placeholder"),prefixCls:f,component:h,cellComponent:b,colSpan:m.length,isEmpty:!0},c);var y=St(m);return n.createElement(o,{className:"".concat(f,"-tbody")},i&&n.createElement(Yt,{prefixCls:f,columnsKey:y,onColumnResize:d}),e)},[t,f,a,i,s,r,p,c,m,u,d,l,g]);return n.createElement(Ot.Provider,{value:S},E)}qt.displayName="BodyRow";var Qt=n.memo($t);Qt.displayName="Body";var Jt=["expandable"],Zt="RC_TABLE_INTERNAL_COL_DEFINE";var er={},tr=["children"],rr=["fixed"];function nr(e){return(0,o.t)(e).filter(function(e){return n.isValidElement(e)}).map(function(e){var t=e.key,r=e.props,n=r.children,i=(0,o.z)(r,tr),s=(0,o.l)({key:t},i);return n&&(s.children=nr(n)),s})}function ir(e){return e.reduce(function(e,t){var r=t.fixed,n=!0===r?"left":r,i=t.children;return i&&i.length>0?[].concat((0,o.h)(e),(0,o.h)(ir(i).map(function(e){return(0,o.l)({fixed:n},e)}))):[].concat((0,o.h)(e),[(0,o.l)((0,o.l)({},t),{},{fixed:n})])},[])}function or(e,t){var r=e.prefixCls,i=e.columns,s=e.children,a=e.expandable,l=e.expandedKeys,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,h=e.rowExpandable,f
2=e.expandIconColumnIndex,p=e.direction,m=e.expandRowByClick,g=e.columnWidth,b=e.fixed,y=n.useMemo(function(){return i||nr(s)},[i,s]),A=n.useMemo(function(){if(a){var e,t=y.slice();if(!t.includes(er)){var i=f||0;i>=0&&t.splice(i,0,er)}var s=t.indexOf(er);t=t.filter(function(e,t){return e!==er||t===s});var p,A=y[s];p="left"!==b&&!b||f?"right"!==b&&!b||f!==y.length?A?A.fixed:null:"right":"left";var v=(e={},(0,o.a)(e,Zt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,o.a)(e,"title",""),(0,o.a)(e,"fixed",p),(0,o.a)(e,"className","".concat(r,"-row-expand-icon-cell")),(0,o.a)(e,"width",g),(0,o.a)(e,"render",function(e,t,i){var o=c(t,i),s=l.has(o),a=!h||h(t),f=d({prefixCls:r,expanded:s,expandable:a,record:t,onExpand:u});return m?n.createElement("span",{onClick:function(e){return e.stopPropagation()}},f):f}),e);return t.map(function(e){return e===er?v:e})}return y.filter(function(e){return e!==er})},[a,y,c,l,d,p]),v=n.useMemo(function(){var e=A;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,A,p]),w=n.useMemo(function(){return"rtl"===p?function(e){return e.map(function(e){var t=e.fixed,r=(0,o.z)(e,rr),n=t;return"left"===t?n="right":"right"===t&&(n="left"),(0,o.l)({fixed:n},r)})}(ir(v)):ir(v)},[v,p]);return[v,w]}function sr(e){var t=(0,n.useRef)(e),r=(0,n.useState)({}),i=(0,o._)(r,2)[1],s=(0,n.useRef)(null),a=(0,n.useRef)([]);return(0,n.useEffect)(function(){return function(){s.current=null}},[]),[t.current,function(e){a.current.push(e);var r=Promise.resolve();s.current=r,r.then(function(){if(s.current===r){var e=a.current,n=t.current;a.current=[],e.forEach(function(e){t.current=e(t.current)}),s.current=null,n!==t.current&&i({})}})}]}var ar=["columnType"];function lr(e){for(var t=e.colWidths,r=e.columns,i=[],s=!1,a=(e.columCount||r.length)-1;a>=0;a-=1){var l=t[a],c=r&&r[a],u=c&&c[Zt];if(l||u||s){var d=u||{};d.columnType;var h=(0,o.z)(d,ar);i.unshift(n.createElement("col",(0,o.g)({key:a,style:{width:l}},h))),s=!0}}return n.createElement("colgroup",null,i)}function cr(e){var t=e.className,r=e.children;return n.createElement("div",{className:t},r)}var ur=["children"];function dr(e){return e.children}dr.Row=function(e){var t=e.children,r=(0,o.z)(e,ur);return n.createElement("tr",r,t)},dr.Cell=function(e){var t=e.className,r=e.index,i=e.children,s=e.colSpan,a=void 0===s?1:s,l=e.rowSpan,c=e.align,u=n.useContext(jt),d=u.prefixCls,h=u.direction,f=n.useContext(hr),p=f.scrollColumnIndex,m=f.stickyOffsets,g=r+a-1+1===p?a+1:a,b=Ft(r,r+g-1,f.flattenColumns,m,h);return n.createElement(Bt,(0,o.g)({className:t,index:r,component:"td",prefixCls:d,record:null,dataIndex:null,align:c,colSpan:g,rowSpan:l,render:function(){return i}},b))};var hr=n.createContext({});function fr(e){var t=e.children,r=e.stickyOffsets,i=e.flattenColumns,o=n.useContext(jt).prefixCls,s=i.length-1,a=i[s],l=n.useMemo(function(){return{stickyOffsets:r,flattenColumns:i,scrollColumnIndex:null!=a&&a.scrollbar?s:null}},[a,i,s,r]);return n.createElement(hr.Provider,{value:l},n.createElement("tfoot",{className:"".concat(o,"-summary")},t))}var pr=dr;function mr(e){var t,r=e.prefixCls,i=e.record,s=e.onExpand,a=e.expanded,l=e.expandable,c="".concat(r,"-row-expand-icon");if(!l)return n.createElement("span",{className:(0,o.c)(c,"".concat(r,"-row-spaced"))});return n.createElement("span",{className:(0,o.c)(c,(t={},(0,o.a)(t,"".concat(r,"-row-expanded"),a),(0,o.a)(t,"".concat(r,"-row-collapsed"),!a),t)),onClick:function(e){s(i,e),e.stopPropagation()}})}var gr=function(e,t){var r,i,s=e.scrollBodyRef,l=e.onScroll,c=e.offsetScroll,u=e.container,h=n.useContext(jt).prefixCls,f=(null===(r=s.current)||void 0===r?void 0:r.scrollWidth)||0,p=(null===(i=s.current)||void 0===i?void 0:i.clientWidth)||0,m=f&&p*(p/f),g=n.useRef(),b=sr({scrollLeft:0,isHiddenScrollBar:!1}),y=(0,o._)(b,2),A=y[0],v=y[1],w=n.useRef({delta:0,x:0}),x=n.useState(!1),k=(0,o._)(x,2),C=k[0],_=k[1],S=function(){_(!1)},E=function(e){var t,r=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(C&&0!==r){var n=w.current.x+e.pageX-w.current.x-w.current.delta;n<=0&&(n=0),n+m>=p&&(n=p-m),l({scrollLeft:n/p*(f+2)}),w.current.x=e.pageX}else C&&_(!1)},T=function(){if(s.current){var e=et(s.current).top,t=e+s.current.offsetHeight,r=u===window?document.documentElement.scrollTop+window.innerHeight:et(u).top+u.clientHeight;t-(0,d.g)()<=r||e>=r-c?v(function(e){return(0,o.l)((0,o.l)({},e),{},{isHiddenScrollBar:!0})}):v(function(e){return(0,o.l)((0,o.l)({},e),{},{isHiddenScrollBar:!1})})}},M=function(e){v(function(t){return(0,o.l)((0,o.l)({},t),{},{scrollLeft:e/f*p||0})})};return n.useImperativeHandle(t,function(){return{setScrollLeft:M}}),n.useEffect(function(){var e=(0,a.a)(document.body,"mouseup",S,!1),t=(0,a.a)(document.body,"mousemove",E,!1);return T(),function(){e.remove(),t.remove()}},[m,C]),n.useEffect(function(){var e=(0,a.a)(u,"scroll",T,!1),t=(0,a.a)(window,"resize",T,!1);return function(){e.remove(),t.remove()}},[u]),n.useEffect(function(){A.isHiddenScrollBar||v(function(e){var t=s.current;return t?(0,o.l)((0,o.l)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}
2):e})},[A.isHiddenScrollBar]),f<=p||!m||A.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,d.g)(),width:p,bottom:c},className:"".concat(h,"-sticky-scroll")},n.createElement("div",{onMouseDown:function(e){e.persist(),w.current.delta=e.pageX-A.scrollLeft,w.current.x=0,_(!0),e.preventDefault()},ref:g,className:(0,o.c)("".concat(h,"-sticky-scroll-bar"),(0,o.a)({},"".concat(h,"-sticky-scroll-bar-active"),C)),style:{width:"".concat(m,"px"),transform:"translate3d(".concat(A.scrollLeft,"px, 0, 0)")}}))};const br=n.forwardRef(gr);var yr=(0,o.K)()?window:null;var Ar=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var vr=n.forwardRef(function(e,t){var r=e.className,i=e.noData,s=e.columns,a=e.flattenColumns,l=e.colWidths,c=e.columCount,u=e.stickyOffsets,d=e.direction,h=e.fixHeader,f=e.stickyTopOffset,p=e.stickyBottomOffset,m=e.stickyClassName,g=e.onScroll,b=e.maxContentScroll,y=e.children,A=(0,o.z)(e,Ar),v=n.useContext(jt),w=v.prefixCls,x=v.scrollbarSize,k=v.isSticky,C=k&&!h?0:x,_=n.useRef(null),S=n.useCallback(function(e){(0,o.a3)(t,e),(0,o.a3)(_,e)},[]);n.useEffect(function(){var e;function t(e){var t=e.currentTarget,r=e.deltaX;r&&(g({currentTarget:t,scrollLeft:t.scrollLeft+r}),e.preventDefault())}return null===(e=_.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=_.current)||void 0===e||e.removeEventListener("wheel",t)}},[]);var E=n.useMemo(function(){return a.every(function(e){return e.width>=0})},[a]),T=a[a.length-1],M={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},O=(0,n.useMemo)(function(){return C?[].concat((0,o.h)(s),[M]):s},[C,s]),N=(0,n.useMemo)(function(){return C?[].concat((0,o.h)(a),[M]):a},[C,a]),P=(0,n.useMemo)(function(){var e=u.right,t=u.left;return(0,o.l)((0,o.l)({},u),{},{left:"rtl"===d?[].concat((0,o.h)(t.map(function(e){return e+C})),[0]):t,right:"rtl"===d?e:[].concat((0,o.h)(e.map(function(e){return e+C})),[0]),isSticky:k})},[C,u,k]),R=function(e,t){return(0,n.useMemo)(function(){for(var r=[],n=0;n<t;n+=1){var i=e[n];if(void 0===i)return null;r[n]=i}return r},[e.join("_"),t])}(l,c);return n.createElement("div",{style:(0,o.l)({overflow:"hidden"},k?{top:f,bottom:p}:{}),ref:S,className:(0,o.c)(r,(0,o.a)({},m,!!m))},n.createElement("table",{style:{tableLayout:"fixed",visibility:i||R?null:"hidden"}},(!i||!b||E)&&n.createElement(lr,{colWidths:R?[].concat((0,o.h)(R),[C]):[],columCount:c+1,columns:N}),y((0,o.l)((0,o.l)({},A),{},{stickyOffsets:P,columns:O,flattenColumns:N}))))});vr.displayName="FixedHolder";var wr=[],xr={},kr="rc-table-internal-hook",Cr=n.memo(function(e){return e.children},function(e,t){return!!(0,c.s)(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)});function _r(e){var t,r,i,s,c=e.prefixCls,h=e.className,f=e.rowClassName,p=e.style,m=e.data,g=e.rowKey,b=e.scroll,y=e.tableLayout,A=e.direction,v=e.title,w=e.footer,x=e.summary,k=e.id,C=e.showHeader,_=e.components,S=e.emptyText,E=e.onRow,T=e.onHeaderRow,M=e.internalHooks,O=e.transformColumns,N=e.internalRefs,P=e.sticky,R=m||wr,D=!!R.length,I=n.useMemo(function(){return Et(_,{})},[_]),L=n.useCallback(function(e,t){return _t(I,e)||t},[I]),B=n.useMemo(function(){return"function"==typeof g?g:function(e){return e&&e[g]}},[g]),j=function(e){var t,r=e.expandable,n=(0,o.z)(e,Jt);return!1===(t="expandable"in e?(0,o.l)((0,o.l)({},n),r):n).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),F=j.expandIcon,z=j.expandedRowKeys,U=j.defaultExpandedRowKeys,H=j.defaultExpandAllRows,V=j.expandedRowRender,W=j.onExpand,K=j.onExpandedRowsChange,q=j.expandRowByClick,G=j.rowExpandable,X=j.expandIconColumnIndex,Y=j.exp
2andedRowClassName,$=j.childrenColumnName,Q=j.indentSize,J=F||mr,Z=$||"children",ee=n.useMemo(function(){return V?"row":!!(e.expandable&&M===kr&&e.expandable.__PARENT_RENDER_ICON__||R.some(function(e){return e&&"object"===(0,o.i)(e)&&e[Z]}))&&"nest"},[!!V,R]),te=n.useState(function(){return U||(H?function(e,t,r){var n=[];return function e(i){(i||[]).forEach(function(i,o){n.push(t(i,o)),e(i[r])})}(e),n}(R,B,Z):[])}),re=(0,o._)(te,2),ne=re[0],ie=re[1],oe=n.useMemo(function(){return new Set(z||ne||[])},[z,ne]),se=n.useCallback(function(e){var t,r=B(e,R.indexOf(e)),n=oe.has(r);n?(oe.delete(r),t=(0,o.h)(oe)):t=[].concat((0,o.h)(oe),[r]),ie(t),W&&W(!n,e),K&&K(t)},[B,oe,R,W,K]),ae=n.useState(0),le=(0,o._)(ae,2),ce=le[0],ue=le[1],de=or((0,o.l)((0,o.l)((0,o.l)({},e),j),{},{expandable:!!V,expandedKeys:oe,getRowKey:B,onTriggerExpand:se,expandIcon:J,expandIconColumnIndex:X,direction:A}),M===kr?O:null),he=(0,o._)(de,2),fe=he[0],pe=he[1],me=n.useMemo(function(){return{columns:fe,flattenColumns:pe}},[fe,pe]),ge=n.useRef(),ye=n.useRef(),Ae=n.useRef(),ve=n.useRef(),we=n.useState(!1),xe=(0,o._)(we,2),ke=xe[0],Ce=xe[1],_e=n.useState(!1),Se=(0,o._)(_e,2),Ee=Se[0],Te=Se[1],Me=sr(new Map),Oe=(0,o._)(Me,2),Ne=Oe[0],Pe=Oe[1],Re=St(pe).map(function(e){return Ne.get(e)}),De=n.useMemo(function(){return Re},[Re.join("_")]),Ie=function(e,t,r){return(0,n.useMemo)(function(){for(var n=[],i=[],o=0,s=0,a=0;a<t;a+=1)if("rtl"===r){i[a]=s,s+=e[a]||0;var l=t-a-1;n[l]=o,o+=e[l]||0}else{n[a]=o,o+=e[a]||0;var c=t-a-1;i[c]=s,s+=e[c]||0}return{left:n,right:i}},[e,t,r])}(De,pe.length,A),Le=b&&Tt(b.y),Be=b&&Tt(b.x)||Boolean(j.fixed),je=Be&&pe.some(function(e){return e.fixed}),Fe=n.useRef(),ze=function(e,t){var r="object"===(0,o.i)(e)?e:{},i=r.offsetHeader,s=void 0===i?0:i,a=r.offsetSummary,l=void 0===a?0:a,c=r.offsetScroll,u=void 0===c?0:c,d=r.getContainer,h=(void 0===d?function(){return yr}:d)()||yr;return n.useMemo(function(){var r=!!e;return{isSticky:r,stickyClassName:r?"".concat(t,"-sticky-holder"):"",offsetHeader:s,offsetSummary:l,offsetScroll:u,container:h}},[u,s,l,t,h])}(P,c),Ue=ze.isSticky,He=ze.offsetHeader,Ve=ze.offsetSummary,We=ze.offsetScroll,Ke=ze.stickyClassName,qe=ze.container,Ge=null==x?void 0:x(R),Xe=(Le||Ue)&&n.isValidElement(Ge)&&Ge.type===dr&&Ge.props.fixed;Le&&(i={overflowY:"scroll",maxHeight:b.y}),Be&&(r={overflowX:"auto"},Le||(i={overflowY:"hidden"}),s={width:!0===b.x?"auto":b.x,minWidth:"100%"});var Ye=n.useCallback(function(e,t){(0,a.i)(ge.current)&&Pe(function(r){if(r.get(e)!==t){var n=new Map(r);return n.set(e,t),n}return r})},[]),$e=function(e){var t=(0,n.useRef)(e||null),r=(0,n.useRef)();function i(){window.clearTimeout(r.current)}return(0,n.useEffect)(function(){return i},[]),[function(e){t.current=e,i(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)},function(){return t.current}]}(null),Qe=(0,o._)($e,2),Je=Qe[0],Ze=Qe[1];function et(e,t){!t||("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var tt=function(e){var t,r=e.currentTarget,n=e.scrollLeft,i="rtl"===A,o="number"==typeof n?n:r.scrollLeft,s=r||xr;Ze()&&Ze()!==s||(Je(s),et(o,ye.current),et(o,Ae.current),et(o,ve.current),et(o,null===(t=Fe.current)||void 0===t?void 0:t.setScrollLeft));if(r){var a=r.scrollWidth,l=r.clientWidth;i?(Ce(-o<a-l),Te(-o>0)):(Ce(o>0),Te(o<a-l))}},rt=function(){Be&&Ae.current?tt({currentTarget:Ae.current}):(Ce(!1),Te(!1))},nt=n.useRef(!1);n.useEffect(function(){nt.current&&rt()},[Be,m,fe.length]),n.useEffect(function(){nt.current=!0},[]);var it=n.useState(0),ot=(0,o._)(it,2),st=ot[0],at=ot[1],lt=n.useState(!0),ct=(0,o._)(lt,2),ut=ct[0],dt=ct[1];n.useEffect(function(){at((0,d.a)(Ae.current).width),dt(be("position","sticky"))},[]),n.useEffect(function(){M===kr&&N&&(N.body.current=Ae.current)});var ht,ft=L(["table"],"table"),pt=n.useMemo(function(){return y||(je?"max-content"===b.x?"auto":"fixed":Le||Ue||pe.some(function(e){return e.ellipsis})?"fixed":"auto")},[Le,je,pe,y,Ue]),mt={colWidths:De,columCount:pe.length,stickyOffsets:Ie,onHeaderRow:T,fixHeader:Le,scroll:b},gt=n.useMemo(function(){return D?null:"function"==typeof S?S():S},[D,S]),bt=n.createElement(Qt,{data:R,measureColumnWidth:Le||Be||Ue,expandedKeys:oe,rowExpandable:G,getRowKey:B,onRow:E,emptyNode:gt,childrenColumnName:Z}),yt=n.createElement(lr,{colWidths:pe.map(function(e){return e.width}),columns:pe}),At=L(["body"]);if(Le||Ue){var vt;"function"==typeof At?(vt=At(R,{scrollbarSize:st,ref:Ae,onScroll:tt}),mt.colWidths=pe.map(function(e,t){var r=e.width,n=t===fe.length-1?r-st:r;return"number"!=typeof n||Number.isNaN(n)?((0,o.D)(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):n})):vt=n.createElement("div",{style:(0,o.l)((0,o.l)({},r),i),onScroll:tt,ref:Ae,className:(0,o.c)("".concat(c,"-body"))},n.createElement(ft,{style:(0,o.l)((0,o.l)({},s),{},{tableLayout:pt})},yt,bt,!Xe&&Ge&&n.createElement(fr,{stickyOffsets:Ie,flattenColumns:pe},Ge)));var wt=(0,o.l)((0,o.l)((0,o.l)({noData:!R.length,maxContentScroll:Be&&"max-content"===b.x},mt),me),{},{direction:A,stickyClassName:Ke,onScroll:tt});ht=n.createElement(n.Fragment,null,!1!==C&&n.createElement(vr,(0,o.g)({},wt,{stickyTopOffset:He,className:"".concat(c,"-header"),ref:ye}),function(e){return n.createElement(n.Fragment,null,n.createElement(Ut,e),"top"===Xe&&n.createElement(fr,e,Ge))}),vt,Xe&&"top"!==Xe&&n.createElement(vr,(0,o.g)({},wt,{stickyBottomOffset:Ve,className:"".concat(c,"-summary"),ref:ve}),function(e){return n.createElement(fr,e,Ge)}),Ue&&n.createElement(br,{ref:Fe,offsetScroll:We,scrollBodyRef:Ae,onScroll:tt,container:qe}))}else ht=n.createElement("div",{style:(0,o.l)((0,o.l)({},r),i),className:(0,o.c)("".concat(c,"-content")),onScroll:tt,ref:Ae},n.createElement(ft,{style:(0,o.l)((0,o.l)({},s),{},{tableLayout:pt})},yt,!1!==C&&n.createElement(Ut,(0,o.g)({},mt,me)),bt,Ge&&n.createElement(fr,{stickyOffsets:Ie,flattenColumns:pe},Ge)));var xt=(0,l.p)(e,{aria:!0,data:!0}),kt=n.createElement("div",(0,o.g)({className:(0,o.c)(c,h,(t={},(0,o.a)(t,"".concat(c,"-rtl"),"rtl"===A),(0,o.a)(t,"".concat(c,"-ping-left"),ke),(0,o.a)(t,"".concat(c,"-ping-right"),Ee),(0,o.a)(t,"".concat(c,"-layout-fixed"),"fixed"===y),(0,o.a)(t,"".concat(c,"-fixed-header"),Le),(0,o.a)(t,"".concat(c,"-fixed-column"),je),(0,o.a)(t,"".concat(c,"-scroll-horizontal"),Be),(0,o.a)(t,"".concat(c,"-has-fix-left"),pe[0]&&pe[0].fixed),(0,o.a)(t,"".concat(c,"-has-fix-right"),pe[pe.length-1]&&"right"===pe[pe.length-1].fixed),t)),style:p,id:k,ref:ge},xt),n.createElement(Cr,{pingLeft:ke,pingRight:Ee,props:(0,o.l)((0,o.l)({},e),{},{stickyOffsets:Ie,mergedExpandedKeys:oe})},v&&n.createElement(cr,{className:"".concat(c,"-title")},v(R)),n.createElement("div",{className:"".concat(c,"-container")},ht),w&&n.createElement(cr,{className:"".concat(c,"-footer")},w(R))));Be&&(kt=n.createElement(u.R,{onResize:function(e){var t=e.width;t!==ce&&(rt(),ue(ge.current?ge.current.offsetWidth:t))}},kt));var Ct=n.useMemo(function(){return{prefixCls:c,getComponent:L,scrollbarSize:st,direction:A,fixedInfoList:pe.map(function(e,t){return Ft(t,t,pe,Ie,A)}),isSticky:Ue}},[c,L,st,A,pe,Ie,A,Ue]),Ot=n.useMemo(function(){return(0,o.l)((0,o.l)({},me),{},{tableLayout:pt,rowClassName:f,expandedRowClassName:Y,expandIcon:J,expandableType:ee,expandRowByClick:q,expandedRowRender:V,onTriggerExpand:se,expandIconColumnIndex:X,indentSize:Q})},[me,pt,f,Y,J,ee,q,V,se,X,Q]),Nt=n.useMemo(function(){return{componentWidth:ce,fixHeader:Le,fixColumn:je,horizonScroll:Be}},[ce,Le,je,Be]),Pt=n.useMemo(function(){return{onColumnResize:Ye}},[Ye]);return n.createElement(Mt.Provider,{value:ut},n.createElement(jt.Provider,{value:Ct},n.createElement(Ht.Provider,{value:Ot},n.createElement(Vt.Provider,{value:Nt},n.createElement(Kt.Provider,{value:Pt},kt)))))}_r.EXPAND_COLUMN=er,_r.Column=function(e){return null},_r.ColumnGroup=function(e){return null},_r.Summary=pr,_r.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Sr=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function Er(e,t,r){var i=t&&"object"===(0,o.i)(t)?t:{}
2,s=i.total,a=void 0===s?0:s,l=Sr(i,["total"]),c=(0,n.useState)(function(){return{current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:10}}),u=(0,o._)(c,2),d=u[0],h=u[1],f=function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){t&&Object.keys(t).forEach(function(r){var n=t[r];void 0!==n&&(e[r]=n)})}),e}(d,l,{total:a>0?a:e}),p=Math.ceil((a||e)/f.pageSize);f.current>p&&(f.current=p||1);var m=function(e,t){h({current:null!=e?e:1,pageSize:t||f.pageSize})};return!1===t?[{},function(){}]:[(0,o.g)((0,o.g)({},f),{onChange:function(e,n){var i;t&&(null===(i=t.onChange)||void 0===i||i.call(t,e,n)),m(e,n),r(e,n||(null==f?void 0:f.pageSize))}}),m]}var Tr={},Mr="SELECT_ALL",Or="SELECT_INVERT",Nr="SELECT_NONE";function Pr(e,t){var r=[];return(e||[]).forEach(function(e){r.push(e),e&&"object"===(0,o.i)(e)&&t in e&&(r=[].concat((0,o.h)(r),(0,o.h)(Pr(e[t],t))))}),r}function Rr(e,t){var r=e||{},i=r.preserveSelectedRowKeys,s=r.selectedRowKeys,a=r.defaultSelectedRowKeys,l=r.getCheckboxProps,c=r.onChange,u=r.onSelect,d=r.onSelectAll,h=r.onSelectInvert,f=r.onSelectNone,p=r.onSelectMultiple,m=r.columnWidth,g=r.type,b=r.selections,C=r.fixed,_=r.renderCell,S=r.hideSelectAll,E=r.checkStrictly,T=void 0===E||E,M=t.prefixCls,O=t.data,N=t.pageData,P=t.getRecordByKey,R=t.getRowKey,D=t.expandType,I=t.childrenColumnName,L=t.locale,B=t.getPopupContainer,j=(0,A.u)(s||a||[],{value:s}),F=(0,o._)(j,2),z=F[0],U=F[1],H=n.useRef(new Map),V=(0,n.useCallback)(function(e){if(i){var t=new Map;e.forEach(function(e){var r=P(e);!r&&H.current.has(e)&&(r=H.current.get(e)),t.set(e,r)}),H.current=t}},[P,i]);n.useEffect(function(){V(z)},[z]);var W=(0,n.useMemo)(function(){return T?{keyEntities:null}:Qe(O,{externalGetKey:R,childrenPropName:I})},[O,R,T,I]).keyEntities,K=(0,n.useMemo)(function(){return Pr(N,I)},[N,I]),q=(0,n.useMemo)(function(){var e=new Map;return K.forEach(function(t,r){var n=R(t,r),i=(l?l(t):null)||{};e.set(n,i)}),e},[K,R,l]),G=(0,n.useCallback)(function(e){var t;return!(null===(t=q.get(R(e)))||void 0===t||!t.disabled)},[q,R]),X=(0,n.useMemo)(function(){if(T)return[z||[],[]];var e=Ee(z,!0,W,G);return[e.checkedKeys||[],e.halfCheckedKeys]},[z,T,W,G]),Y=(0,o._)(X,2),$=Y[0],Q=Y[1],J=(0,n.useMemo)(function(){var e="radio"===g?$.slice(0,1):$;return new Set(e)},[$,g]),Z=(0,n.useMemo)(function(){return"radio"===g?new Set:new Set(Q)},[Q,g]),ee=(0,n.useState)(null),te=(0,o._)(ee,2),re=te[0],ne=te[1];n.useEffect(function(){e||U([])},[!!e]);var ie=(0,n.useCallback)(function(e){var t,r;V(e),i?(t=e,r=e.map(function(e){return H.current.get(e)})):(t=[],r=[],e.forEach(function(e){var n=P(e);void 0!==n&&(t.push(e),r.push(n))})),U(t),null==c||c(t,r)},[U,P,c,i]),oe=(0,n.useCallback)(function(e,t,r,n){if(u){var i=r.map(function(e){return P(e)});u(P(e),t,i,n)}ie(r)},[u,P,ie]),se=(0,n.useMemo)(function(){return!b||S?null:(!0===b?[Mr,Or,Nr]:b).map(function(e){return e===Mr?{key:"all",text:L.selectionAll,onSelect:function(){ie(O.map(function(e,t){return R(e,t)}).filter(function(e){var t=q.get(e);return!(null!=t&&t.disabled)||J.has(e)}))}}:e===Or?{key:"invert",text:L.selectInvert,onSelect:function(){var e=new Set(J);N.forEach(function(t,r){var n=R(t,r),i=q.get(n);null!=i&&i.disabled||(e.has(n)?e.delete(n):e.add(n))});var t=Array.from(e);h&&((0,o.j)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),h(t)),ie(t)}}:e===Nr?{key:"none",text:L.selectNone,onSelect:function(){null==f||f(),ie(Array.from(J).filter(function(e){var t=q.get(e);return null==t?void 0:t.disabled}))}}:e})},[b,J,N,R,h,ie]);return[(0,n.useCallback)(function(t){var r;if(!e)return t.filter(function(e){return e!==Tr});var i,s,a=(0,o.h)(t),l=new Set(J),c=K.map(R).filter(function(e){return!q.get(e).disabled}),u=c.every(function(e){return l.has(e)}),h=c.some(function(e){return l.has(e)});if("radio"!==g){var f;if(se){var b=n.createElement(x.A,{getPopupContainer:B},se.map(function(e,t){var r=e.key,i=e.text,o=e.onSelect;return n.createElement(x.A.Item,{key:r||t,onClick:function(){null==o||o(c)}},i)}));f=n.createElement("div",{className:"".concat(M,"-selection-extra")},n.createElement(w.D,{overlay:b,getPopupContainer:B},n.createElement("span",null,n.createElement(y.D,null))))}var A=K.map(function(e,t){var r=R(e,t),n=q.get(r)||{};return(0,o.g)({checked:l.has(r)},n)}).filter(function(e){return e.disabled}),E=!!A.length&&A.length===K.length,O=E&&A.every(function(e){return e.checked}),N=E&&A.some(function(e){return e.checked});i=!S&&n.createElement("div",{className:"".concat(M,"-selection")},n.createElement(v.A,{checked:E?O:!!K.length&&u,indeterminate:E?!O&&N:!u&&h,onChange:function(){var e=[];
2u?c.forEach(function(t){l.delete(t),e.push(t)}):c.forEach(function(t){l.has(t)||(l.add(t),e.push(t))});var t=Array.from(l);null==d||d(!u,t.map(function(e){return P(e)}),e.map(function(e){return P(e)})),ie(t)},disabled:0===K.length||E,skipGroup:!0}),f)}s="radio"===g?function(e,t,r){var i=R(t,r),s=l.has(i);return{node:n.createElement(k.A,(0,o.g)({},q.get(i),{checked:s,onClick:function(e){return e.stopPropagation()},onChange:function(e){l.has(i)||oe(i,!0,[i],e.nativeEvent)}})),checked:s}}:function(e,t,r){var i,s,a=R(t,r),u=l.has(a),d=Z.has(a),h=q.get(a);return"nest"===D?(s=d,(0,o.j)("boolean"!=typeof(null==h?void 0:h.indeterminate),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):s=null!==(i=null==h?void 0:h.indeterminate)&&void 0!==i?i:d,{node:n.createElement(v.A,(0,o.g)({},h,{indeterminate:s,checked:u,skipGroup:!0,onClick:function(e){return e.stopPropagation()},onChange:function(e){var t=e.nativeEvent,r=t.shiftKey,n=-1,i=-1;if(r&&T){var s=new Set([re,a]);c.some(function(e,t){if(s.has(e)){if(-1!==n)return i=t,!0;n=t}return!1})}if(-1!==i&&n!==i&&T){var d=c.slice(n,i+1),h=[];u?d.forEach(function(e){l.has(e)&&(h.push(e),l.delete(e))}):d.forEach(function(e){l.has(e)||(h.push(e),l.add(e))});var f=Array.from(l);null==p||p(!u,f.map(function(e){return P(e)}),h.map(function(e){return P(e)})),ie(f)}else{var m=$;if(T){var g=u?Le(m,a):Be(m,a);oe(a,!u,g,t)}else{var b=Ee([].concat((0,o.h)(m),[a]),!0,W,G),y=b.checkedKeys,A=b.halfCheckedKeys,v=y;if(u){var w=new Set(y);w.delete(a),v=Ee(Array.from(w),{checked:!1,halfCheckedKeys:A},W,G).checkedKeys}oe(a,!u,v,t)}}ne(a)}})),checked:u}};if(!a.includes(Tr))if(0===a.findIndex(function(e){var t;return"EXPAND_COLUMN"===(null===(t=e[Zt])||void 0===t?void 0:t.columnType)})){var I=a,L=(0,o.a0)(I),j=L[0],F=L.slice(1);a=[j,Tr].concat((0,o.h)(F))}else a=[Tr].concat((0,o.h)(a));var z=a.indexOf(Tr),U=(a=a.filter(function(e,t){return e!==Tr||t===z}))[z-1],H=a[z+1],V=C;void 0===V&&(void 0!==(null==H?void 0:H.fixed)?V=H.fixed:void 0!==(null==U?void 0:U.fixed)&&(V=U.fixed)),V&&U&&"EXPAND_COLUMN"===(null===(r=U[Zt])||void 0===r?void 0:r.columnType)&&void 0===U.fixed&&(U.fixed=V);var X=(0,o.a)({fixed:V,width:m,className:"".concat(M,"-selection-column"),title:e.columnTitle||i,render:function(e,t,r){var n=s(e,t,r),i=n.node,o=n.checked;return _?_(o,t,r,i):i}},Zt,{className:"".concat(M,"-selection-col")});return a.map(function(e){return e===Tr?X:e})},[R,K,e,$,J,Z,m,se,D,re,q,p,oe,G]),J]}const Dr={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};var Ir=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:Dr}))};Ir.displayName="CaretDownOutlined";const Lr=n.forwardRef(Ir);const Br={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};var jr=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:Br}))};jr.displayName="CaretUpOutlined";const Fr=n.forwardRef(jr);
2function zr(e,t){return"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function Ur(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function Hr(e,t){return"function"==typeof e?e(t):e}var Vr="ascend",Wr="descend";function Kr(e){return"object"===(0,o.i)(e.sorter)&&"number"==typeof e.sorter.multiple&&e.sorter.multiple}function qr(e){return"function"==typeof e?e:!(!e||"object"!==(0,o.i)(e)||!e.compare)&&e.compare}function Gr(e,t,r){var n=[];function i(e,t){n.push({column:e,key:zr(e,t),multiplePriority:Kr(e),sortOrder:e.sortOrder})}return(e||[]).forEach(function(e,s){var a=Ur(s,r);e.children?("sortOrder"in e&&i(e,a),n=[].concat((0,o.h)(n),(0,o.h)(Gr(e.children,t,a)))):e.sorter&&("sortOrder"in e?i(e,a):t&&e.defaultSortOrder&&n.push({column:e,key:zr(e,a),multiplePriority:Kr(e),sortOrder:e.defaultSortOrder}))}),n}function Xr(e,t,r,i,s,a,l,c){return(t||[]).map(function(t,u){var d=Ur(u,c),h=t;if(h.sorter){var f=h.sortDirections||s,p=void 0===h.showSorterTooltip?l:h.showSorterTooltip,m=zr(h,d),g=r.find(function(e){return e.key===m}),b=g?g.sortOrder:null,y=function(e,t){return t?e[e.indexOf(t)+1]:e[0]}(f,b),A=f.includes(Vr)&&n.createElement(Fr,{className:(0,o.c)("".concat(e,"-column-sorter-up"),{active:b===Vr})}),v=f.includes(Wr)&&n.createElement(Lr,{className:(0,o.c)("".concat(e,"-column-sorter-down"),{active:b===Wr})}),w=a||{},x=w.cancelSort,k=w.triggerAsc,_=w.triggerDesc,S=x;y===Wr?S=_:y===Vr&&(S=k);var E="object"===(0,o.i)(p)?p:{title:S};h=(0,o.g)((0,o.g)({},h),{className:(0,o.c)(h.className,(0,o.a)({},"".concat(e,"-column-sort"),b)),title:function(r){var i=n.createElement("div",{className:"".concat(e,"-column-sorters")},n.createElement("span",{className:"".concat(e,"-column-title")},Hr(t.title,r)),n.createElement("span",{className:(0,o.c)("".concat(e,"-column-sorter"),(0,o.a)({},"".concat(e,"-column-sorter-full"),!(!A||!v)))},n.createElement("span",{className:"".concat(e,"-column-sorter-inner")},A,v)));return p?n.createElement(C.T,E,i):i},onHeaderCell:function(r){var n=t.onHeaderCell&&t.onHeaderCell(r)||{},s=n.onClick;return n.onClick=function(e){i({column:t,key:m,sortOrder:y,multiplePriority:Kr(t)}),s&&s(e)},n.className=(0,o.c)(n.className,"".concat(e,"-column-has-sorters")),n}})}return"children"in h&&(h=(0,o.g)((0,o.g)({},h),{children:Xr(e,h.children,r,i,s,a,l,d)})),h})}function Yr(e){var t=e.column;return{column:t,order:e.sortOrder,field:t.dataIndex,columnKey:t.key}}function $r(e){var t=e.filter(function(e){return e.sortOrder}).map(Yr);return 0===t.length&&e.length?(0,o.g)((0,o.g)({},Yr(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Qr(e,t,r){var n=t.slice().sort(function(e,t){return t.multiplePriority-e.multiplePriority}),i=e.slice(),s=n.filter(function(e){var t=e.column.sorter,r=e.sortOrder;return qr(t)&&r});return s.length?i.sort(function(e,t){for(var r=0;r<s.length;r+=1){var n=s[r],i=n.column.sorter,o=n.sortOrder,a=qr(i);if(a&&o){var l=a(e,t,o);if(0!==l)return o===Vr?l:-l}}return 0}).map(function(e){var n=e[r];return n?(0,o.g)((0,o.g)({},e),(0,o.a)({},r,Qr(n,t,r))):e}):i}function Jr(e){var t=e.prefixCls,r=e.mergedColumns,i=e.onSorterChange,s=e.sortDirections,a=e.tableLocale,l=e.showSorterTooltip,c=n.useState(Gr(r,!0)),u=(0,o._)(c,2),d=u[0],h=u[1],f=n.useMemo(function(){var e=!0,t=Gr(r,!1);if(!t.length)return d;var n=[];function i(t){e?n.push(t):n.push((0,o.g)((0,o.g)({},t),{sortOrder:null}))}var s=null;return t.forEach(function(t){null===s?(i(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:s=!0)):(s&&!1!==t.multiplePriority||(e=!1),i(t))}),n},[r,d]),p=n.useMemo(function(){var e=f.map(function(e){return{column:e.column,order:e.sortOrder}});return{sortColumns:e,sortColumn:e[0]&&e[0].column,sortOrder:e[0]&&e[0].order}},[f]);function m(e){var t;t=!1!==e.multiplePriority&&f.length&&!1!==f[0].multiplePriority?[].concat((0,o.h)(f.filter(function(t){return t.key!==e.key})),[e]):[e],h(t),i($r(t),t)}return[function(e){return Xr(t,e,f,m,s,a,l)},f,p,function(){return $r(f)}]}var Zr=function(){this.__data__=[],this.size=0};var en=function(e,t){return e===t||e!==e&&t!==t},tn=en;
2var rn=function(e,t){for(var r=e.length;r--;)if(tn(e[r][0],t))return r;return-1},nn=rn,on=Array.prototype.splice;var sn=function(e){var t=this.__data__,r=nn(t,e);return!(r<0)&&(r==t.length-1?t.pop():on.call(t,r,1),--this.size,!0)},an=rn;var ln=function(e){var t=this.__data__,r=an(t,e);return r<0?void 0:t[r][1]},cn=rn;var un=function(e){return cn(this.__data__,e)>-1},dn=rn;var hn=function(e,t){var r=this.__data__,n=dn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},fn=Zr,pn=sn,mn=ln,gn=un,bn=hn;function yn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}yn.prototype.clear=fn,yn.prototype.delete=pn,yn.prototype.get=mn,yn.prototype.has=gn,yn.prototype.set=bn;var An=yn,vn=An;var wn=function(){this.__data__=new vn,this.size=0};var xn=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r};var kn=function(e){return this.__data__.get(e)};var Cn=function(e){return this.__data__.has(e)},_n=Q,Sn=ae;var En=function(e){if(!Sn(e))return!1;var t=_n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Tn=B["__core-js_shared__"],Mn=function(){var e=/[^.]+$/.exec(Tn&&Tn.keys&&Tn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var On=function(e){return!!Mn&&Mn in e},Nn=Function.prototype.toString;var Pn=function(e){if(null!=e){try{return Nn.call(e)}catch{}try{return e+""}catch{}}return""},Rn=En,Dn=On,In=ae,Ln=Pn,Bn=/^\[object .+?Constructor\]$/,jn=Function.prototype,Fn=Object.prototype,zn=jn.toString,Un=Fn.hasOwnProperty,Hn=RegExp("^"+zn.call(Un).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Vn=function(e){return!(!In(e)||Dn(e))&&(Rn(e)?Hn:Bn).test(Ln(e))};var Wn=function(e,t){return null==e?void 0:e[t]},Kn=Vn,qn=Wn;var Gn=function(e,t){var r=qn(e,t);return Kn(r)?r:void 0},Xn=Gn(B,"Map"),Yn=Gn(Object,"create"),$n=Yn;var Qn=function(){this.__data__=$n?$n(null):{},this.size=0};var Jn=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Zn=Yn,ei=Object.prototype.hasOwnProperty;var ti=function(e){var t=this.__data__;if(Zn){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ei.call(t,e)?t[e]:void 0},ri=Yn,ni=Object.prototype.hasOwnProperty;var ii=function(e){var t=this.__data__;return ri?void 0!==t[e]:ni.call(t,e)},oi=Yn;var si=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oi&&void 0===t?"__lodash_hash_undefined__":t,this},ai=Qn,li=Jn,ci=ti,ui=ii,di=si;function hi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}hi.prototype.clear=ai,hi.prototype.delete=li,hi.prototype.get=ci,hi.prototype.has=ui,hi.prototype.set=di;var fi=hi,pi=An,mi=Xn;var gi=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},bi=gi;var yi=function(e,t){var r=e.__data__;
2return bi(t)?r["string"==typeof t?"string":"hash"]:r.map},Ai=yi;var vi=function(e){var t=Ai(this,e).delete(e);return this.size-=t?1:0,t},wi=yi;var xi=function(e){return wi(this,e).get(e)},ki=yi;var Ci=function(e){return ki(this,e).has(e)},_i=yi;var Si=function(e,t){var r=_i(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Ei=function(){this.size=0,this.__data__={hash:new fi,map:new(mi||pi),string:new fi}},Ti=vi,Mi=xi,Oi=Ci,Ni=Si;function Pi(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=Ei,Pi.prototype.delete=Ti,Pi.prototype.get=Mi,Pi.prototype.has=Oi,Pi.prototype.set=Ni;var Ri=Pi,Di=An,Ii=Xn,Li=Ri;var Bi=function(e,t){var r=this.__data__;if(r instanceof Di){var n=r.__data__;if(!Ii||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Li(n)}return r.set(e,t),this.size=r.size,this},ji=An,Fi=wn,zi=xn,Ui=kn,Hi=Cn,Vi=Bi;function Wi(e){var t=this.__data__=new ji(e);this.size=t.size}Wi.prototype.clear=Fi,Wi.prototype.delete=zi,Wi.prototype.get=Ui,Wi.prototype.has=Hi,Wi.prototype.set=Vi;var Ki=Wi;var qi=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};var Gi=function(e){return this.__data__.has(e)},Xi=Ri,Yi=qi,$i=Gi;function Qi(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Xi;++t<r;)this.add(e[t])}Qi.prototype.add=Qi.prototype.push=Yi,Qi.prototype.has=$i;var Ji=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1};var Zi=function(e,t){return e.has(t)},eo=Qi,to=Ji,ro=Zi;var no=function(e,t,r,n,i,o){var s=1&r,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=2&r?new eo:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var p=e[d],m=t[d];if(n)var g=s?n(m,p,d,t,e,o):n(p,m,d,e,t,o);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!to(t,function(e,t){if(!ro(f,t)&&(p===e||i(p,e,r,n,o)))return f.push(t)})){h=!1;break}}else if(p!==m&&!i(p,m,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var io=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r};var oo=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r},so=B.Uint8Array,ao=en,lo=no,co=io,uo=oo,ho=j?j.prototype:void 0,fo=ho?ho.valueOf:void 0;var po=function(e,t,r,n,i,o,s){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new so(e),new so(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ao(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=co;case"[object Set]":var l=1&n;if(a||(a=uo),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;n|=2,s.set(e,t);var u=lo(a(e),a(t),n,i,o,s);return s.delete(e),u;case"[object Symbol]":if(fo)return fo.call(e)==fo.call(t)}return!1};var mo=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},go=mo,bo=F;var yo=function(e,t,r){var n=t(e);return bo(e)?n:go(n,r(e))};var Ao=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var s=e[r];t(s,r,e)&&(o[i++]=s)}return o};var vo=Ao,wo=function(){return[]},xo=Object.prototype.propertyIsEnumerable,ko=Object.getOwnPropertySymbols,Co=ko?function(e){return null==e?[]:(e=Object(e),vo(ko(e),function(t){return xo.call(e,t)}))}:wo,_o=Co;var So=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},Eo=Q,To=J;var Mo=function(e){return To(e)&&"[object Arguments]"==Eo(e)},Oo=Mo,No=J,Po=Object.prototype,Ro=Po.hasOwnProperty,Do=Po.propertyIsEnumerable,Io=Oo(function(){return arguments}())?Oo:function(e){return No(e)&&Ro.call(e,"callee")&&!Do.call(e,"callee")},Lo=Io,Bo={exports:{}};var jo=function(){return!1};!function(e,t){var r=B,n=jo,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,a=(s?s.isBuffer:void 0)||n;e.exports=a}(Bo,Bo.exports);var Fo=/^(?:0|[1-9]\d*)$/;var zo=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Fo.test(e))&&e>-1&&e%1==0&&e<t};var Uo=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ho=Q,Vo=Uo,Wo=J,Ko={};
2Ko["[object Float32Array]"]=Ko["[object Float64Array]"]=Ko["[object Int8Array]"]=Ko["[object Int16Array]"]=Ko["[object Int32Array]"]=Ko["[object Uint8Array]"]=Ko["[object Uint8ClampedArray]"]=Ko["[object Uint16Array]"]=Ko["[object Uint32Array]"]=!0,Ko["[object Arguments]"]=Ko["[object Array]"]=Ko["[object ArrayBuffer]"]=Ko["[object Boolean]"]=Ko["[object DataView]"]=Ko["[object Date]"]=Ko["[object Error]"]=Ko["[object Function]"]=Ko["[object Map]"]=Ko["[object Number]"]=Ko["[object Object]"]=Ko["[object RegExp]"]=Ko["[object Set]"]=Ko["[object String]"]=Ko["[object WeakMap]"]=!1;var qo=function(e){return Wo(e)&&Vo(e.length)&&!!Ko[Ho(e)]};var Go=function(e){return function(t){return e(t)}},Xo={exports:{}};!function(e,t){var r=D,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(Xo,Xo.exports);var Yo=qo,$o=Go,Qo=Xo.exports,Jo=Qo&&Qo.isTypedArray,Zo=Jo?$o(Jo):Yo,es=So,ts=Lo,rs=F,ns=Bo.exports,is=zo,os=Zo,ss=Object.prototype.hasOwnProperty;var as=function(e,t){var r=rs(e),n=!r&&ts(e),i=!r&&!n&&ns(e),o=!r&&!n&&!i&&os(e),s=r||n||i||o,a=s?es(e.length,String):[],l=a.length;for(var c in e)(t||ss.call(e,c))&&(!s||!("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||is(c,l)))&&a.push(c);return a},ls=Object.prototype;var cs=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ls)};var us=function(e,t){return function(r){return e(t(r))}},ds=us(Object.keys,Object),hs=cs,fs=ds,ps=Object.prototype.hasOwnProperty;var ms=function(e){if(!hs(e))return fs(e);var t=[];for(var r in Object(e))ps.call(e,r)&&"constructor"!=r&&t.push(r);return t},gs=En,bs=Uo;var ys=function(e){return null!=e&&bs(e.length)&&!gs(e)},As=as,vs=ms,ws=ys;var xs=function(e){return ws(e)?As(e):vs(e)},ks=yo,Cs=_o,_s=xs;var Ss=function(e){return ks(e,_s,Cs)},Es=Ss,Ts=Object.prototype.hasOwnProperty;var Ms=function(e,t,r,n,i,o){var s=1&r,a=Es(e),l=a.length;if(l!=Es(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:Ts.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var f=!0;o.set(e,t),o.set(t,e);for(var p=s;++c<l;){var m=e[u=a[c]],g=t[u];if(n)var b=s?n(g,m,u,t,e,o):n(m,g,u,e,t,o);if(!(void 0===b?m===g||i(m,g,r,n,o):b)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var y=e.constructor,A=t.constructor;y!=A&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof A&&A instanceof A)&&(f=!1)}return o.delete(e),o.delete(t),f},Os=Gn(B,"DataView"),Ns=Xn,Ps=Gn(B,"Promise"),Rs=Gn(B,"Set"),Ds=Gn(B,"WeakMap"),Is=Q,Ls=Pn,Bs="[object Map]",js="[object Promise]",Fs="[object Set]",zs="[object WeakMap]",Us="[object DataView]",Hs=Ls(Os),Vs=Ls(Ns),Ws=Ls(Ps),Ks=Ls(Rs),qs=Ls(Ds),Gs=Is;(Os&&Gs(new Os(new ArrayBuffer(1)))!=Us||Ns&&Gs(new Ns)!=Bs||Ps&&Gs(Ps.resolve())!=js||Rs&&Gs(new Rs)!=Fs||Ds&&Gs(new Ds)!=zs)&&(Gs=function(e){var t=Is(e),r="[object Object]"==t?e.constructor:void 0,n=r?Ls(r):"";if(n)switch(n){case Hs:return Us;case Vs:return Bs;case Ws:return js;case Ks:return Fs;case qs:return zs}return t});var Xs=Ki,Ys=no,$s=po,Qs=Ms,Js=Gs,Zs=F,ea=Bo.exports,ta=Zo,ra="[object Arguments]",na="[object Array]",ia="[object Object]",oa=Object.prototype.hasOwnProperty;var sa=function(e,t,r,n,i,o){var s=Zs(e),a=Zs(t),l=s?na:Js(e),c=a?na:Js(t),u=(l=l==ra?ia:l)==ia,d=(c=c==ra?ia:c)==ia,h=l==c;if(h&&ea(e)){if(!ea(t))return!1;s=!0,u=!1}if(h&&!u)return o||(o=new Xs),s||ta(e)?Ys(e,t,r,n,i,o):$s(e,t,l,r,n,i,o);if(!(1&r)){var f=u&&oa.call(e,"__wrapped__"),p=d&&oa.call(t,"__wrapped__");
2if(f||p){var m=f?e.value():e,g=p?t.value():t;return o||(o=new Xs),i(m,g,r,n,o)}}return!!h&&(o||(o=new Xs),Qs(e,t,r,n,i,o))},aa=sa,la=J;var ca=function e(t,r,n,i,o){return t===r||(null==t||null==r||!la(t)&&!la(r)?t!==t&&r!==r:aa(t,r,n,i,e,o))},ua=ca;var da=function(e,t){return ua(e,t)};const ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};var fa=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:ha}))};fa.displayName="FilterFilled";const pa=n.forwardRef(fa);const ma={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var ga=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:ma}))};ga.displayName="HolderOutlined";const ba=n.forwardRef(ga);var ya=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Aa=function(e,t){var r=e.className,i=e.style,s=e.motion,a=e.motionNodes,l=e.motionType,c=e.onMotionStart,u=e.onMotionEnd,d=e.active,h=e.treeNodeRequiredProps,f=(0,o.z)(e,ya),p=n.useState(!0),m=(0,o._)(p,2),g=m[0],b=m[1],y=n.useContext(Te).prefixCls,A=n.useRef(!1),v=function(){A.current||u(),A.current=!0};return(0,n.useEffect)(function(){a&&"hide"===l&&g&&b(!1)},[a]),(0,n.useEffect)(function(){return a&&c(),function(){a&&v()}},[]),a?n.createElement(o.C,(0,o.g)({ref:t,visible:g},s,{motionAppear:"show"===l,onAppearEnd:v,onLeaveEnd:v}),function(e,t){var r=e.className,i=e.style;return n.createElement("div",{ref:t,className:(0,o.c)("".concat(y,"-treenode-motion"),r),style:i},a.map(function(e){var t=(0,o.g)({},e.data),r=e.title,i=e.key,s=e.isStart,a=e.isEnd;delete t.children;var l=Je(i,h);return n.createElement(Ie,(0,o.g)({},t,l,{title:r,active:d,data:e.data,key:i,isStart:s,isEnd:a}))}))}):n.createElement(Ie,(0,o.g)({domRef:t,className:r,style:i},f,{active:d}))};Aa.displayName="MotionTreeNode";var va=n.forwardRef(Aa);function wa(e,t,r){var n=e.findIndex(function(e){return e.key===r}),i=e[n+1],o=t.findIndex(function(e){return e.key===r});if(i){var s=t.findIndex(function(e){return e.key===i.key});return t.slice(o+1,s)}return t.slice(o+1)}var xa=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ka={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ca=function(){},_a="RC_TREE_MOTION_".concat(Math.random()),Sa={key:_a},Ea={key:_a,level:0,index:0,pos:"0",node:Sa,nodes:[Sa]},Ta={parent:null,children:[],pos:Ea.pos,data:Sa,title:null,key:_a,isStart:[],isEnd:[]};function Ma(e,t,r,n){return!1!==t&&r?e.slice(0,Math.ceil(r/n)+1):e}function Oa(e){return Ge(e.key,e.pos)}var Na=function(e,t){var r=e.prefixCls,i=e.data;e.selectable,e.checkable;var s=e.expandedKeys,a=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,h=e.keyEntities,f=e.disabled,p=e.dragging,m=e.dragOverNodeKey,b=e.dropPosition,y=e.motion,A=e.height,v=e.itemHeight,w=e.virtual,x=e.focusable,k=e.activeItem,C=e.focused,_=e.tabIndex,S=e.onKeyDown,E=e.onFocus,T=e.onBlur,M=e.onActiveChange,O=e.onListChangeStart,N=e.onListChangeEnd,P=(0,o.z)(e,xa),R=n.useRef(null),D=n.useRef(null);n.useImperativeHandle(t,function(){return{scrollTo:function(e){R.current.scrollTo(e)},getIndentWidth:function(){return D.current.offsetWidth}}});var I=n.useState(s),L=(0,o._)(I,2),B=L[0],j=L[1],F=n.useState(i),z=(0,o._)(F,2),U=z[0],H=z[1],V=n.useState(i),W=(0,o._)(V,2),K=W[0],q=W[1],G=n.useState([]),X=(0,o._)(G,2),Y=X[0],$=X[1],Q=n.useState(null),J=(0,o._)(Q,2),Z=J[0],ee=J[1];function te(){H(i),q(i),$([]),ee(null),N()}n.useEffect(function(){j(s);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=e.length,n=t.length;if(1!==Math.abs(r-n))return{add:!1,key:null};function i(e,t){var r=new Map;e.forEach(function(e){r.set(e,!0)});var n=t.filter(function(e){return!r.has(e)});return 1===n.length?n[0]:null}return r<n?{add:!0,key:i(e,t)}:{add:!1,key:i(t,e)}}(B,s);if(null!==e.key)if(e.add){var t=U.findIndex(function(t){return t.key===e.key}),r=Ma(wa(U,i,e.key),w,A,v),n=U.slice();n.splice(t+1,0,Ta),q(n),$(r),ee("show")}else{var o=i.findIndex(function(t){return t.key===e.key}),a=Ma(wa(i,U,e.key),w,A,v),l=i.slice();l.splice(o+1,0,Ta),q(l),$(a),ee("hide")}else U!==i&&(H(i),q(i))},[s,i]),n.useEffect(function(){p||te()}
2,[p]);var re=y?K:i,ne={expandedKeys:s,selectedKeys:a,loadedKeys:c,loadingKeys:u,checkedKeys:l,halfCheckedKeys:d,dragOverNodeKey:m,dropPosition:b,keyEntities:h};return n.createElement(n.Fragment,null,C&&k&&n.createElement("span",{style:ka,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),r=e;r.parent;)r=r.parent,t="".concat(r.data.key," > ").concat(t);return t}(k)),n.createElement("div",null,n.createElement("input",{style:ka,disabled:!1===x||f,tabIndex:!1!==x?_:null,onKeyDown:S,onFocus:E,onBlur:T,value:"",onChange:Ca,"aria-label":"for screen reader"})),n.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},n.createElement("div",{className:"".concat(r,"-indent")},n.createElement("div",{ref:D,className:"".concat(r,"-indent-unit")}))),n.createElement(g.L,(0,o.g)({},P,{data:re,itemKey:Oa,height:A,fullHeight:!1,virtual:w,itemHeight:v,prefixCls:"".concat(r,"-list"),ref:R,onVisibleChange:function(e,t){var r=new Set(e);t.filter(function(e){return!r.has(e)}).some(function(e){return Oa(e)===_a})&&te()}}),function(e){var t=e.pos,r=(0,o.g)({},e.data),i=e.title,s=e.key,a=e.isStart,l=e.isEnd,c=Ge(s,t);delete r.key,delete r.children;var u=Je(c,ne);return n.createElement(va,(0,o.g)({},r,u,{title:i,active:!!k&&s===k.key,pos:t,data:e.data,isStart:a,isEnd:l,motion:y,motionNodes:s===_a?Y:null,motionType:Z,onMotionStart:O,onMotionEnd:te,treeNodeRequiredProps:ne,onMouseMove:function(){M(null)}}))}))},Pa=n.forwardRef(Na);Pa.displayName="NodeList";var Ra=function(e){(0,o.b)(r,e);var t=(0,o.d)(r);function r(){var e;(0,o.e)(this,r);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return(e=t.call.apply(t,[this].concat(s))).destroyed=!1,e.delayedDragEnterLogic=void 0,e.loadingRetryTimes={},e.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Xe()},e.dragStartMousePosition=null,e.dragNode=void 0,e.currentMouseOverDroppableNodeKey=null,e.listRef=n.createRef(),e.onNodeDragStart=function(t,r){var n=e.state,i=n.expandedKeys,o=n.keyEntities,s=e.props.onDragStart,a=r.props.eventKey;e.dragNode=r,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var l=Le(i,a);e.setState({draggingNodeKey:a,dragChildrenKeys:ze(a,o),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(l),window.addEventListener("dragend",e.onWindowDragEnd),null==s||s({event:t,node:Ze(r.props)})},e.onNodeDragEnter=function(t,r){var n=e.state,i=n.expandedKeys,s=n.keyEntities,a=n.dragChildrenKeys,l=n.flattenNodes,c=n.indent,u=e.props,d=u.onDragEnter,h=u.onExpand,f=u.allowDrop,p=u.direction,m=r.props,g=m.pos,b=m.eventKey,y=(0,o.J)(e).dragNode;if(e.currentMouseOverDroppableNodeKey!==b&&(e.currentMouseOverDroppableNodeKey=b),y){var A=He(t,y,r,c,e.dragStartMousePosition,f,l,s,i,p),v=A.dropPosition,w=A.dropLevelOffset,x=A.dropTargetKey,k=A.dropContainerKey,C=A.dropTargetPos,_=A.dropAllowed,S=A.dragOverNodeKey;-1===a.indexOf(x)&&_?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}
2),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),y.props.eventKey!==r.props.eventKey&&(t.persist(),e.delayedDragEnterLogic[g]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var n=(0,o.h)(i),a=s[r.props.eventKey];a&&(a.children||[]).length&&(n=Be(i,r.props.eventKey)),"expandedKeys"in e.props||e.setExpandedKeys(n),null==h||h(n,{node:Ze(r.props),expanded:!0,nativeEvent:t.nativeEvent})}},800)),y.props.eventKey!==x||0!==w?(e.setState({dragOverNodeKey:S,dropPosition:v,dropLevelOffset:w,dropTargetKey:x,dropContainerKey:k,dropTargetPos:C,dropAllowed:_}),null==d||d({event:t,node:Ze(r.props),expandedKeys:i})):e.resetDragState()):e.resetDragState()}else e.resetDragState()},e.onNodeDragOver=function(t,r){var n=e.state,i=n.dragChildrenKeys,s=n.flattenNodes,a=n.keyEntities,l=n.expandedKeys,c=n.indent,u=e.props,d=u.onDragOver,h=u.allowDrop,f=u.direction,p=(0,o.J)(e).dragNode;if(p){var m=He(t,p,r,c,e.dragStartMousePosition,h,s,a,l,f),g=m.dropPosition,b=m.dropLevelOffset,y=m.dropTargetKey,A=m.dropContainerKey,v=m.dropAllowed,w=m.dropTargetPos,x=m.dragOverNodeKey;-1!==i.indexOf(y)||!v||(p.props.eventKey===y&&0===b?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():g===e.state.dropPosition&&b===e.state.dropLevelOffset&&y===e.state.dropTargetKey&&A===e.state.dropContainerKey&&w===e.state.dropTargetPos&&v===e.state.dropAllowed&&x===e.state.dragOverNodeKey||e.setState({dropPosition:g,dropLevelOffset:b,dropTargetKey:y,dropContainerKey:A,dropTargetPos:w,dropAllowed:v,dragOverNodeKey:x}),null==d||d({event:t,node:Ze(r.props)}))}},e.onNodeDragLeave=function(t,r){e.currentMouseOverDroppableNodeKey===r.props.eventKey&&!t.currentTarget.contains(t.relatedTarget)&&(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var n=e.props.onDragLeave;null==n||n({event:t,node:Ze(r.props)})},e.onWindowDragEnd=function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)},e.onNodeDragEnd=function(t,r){var n=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null==n||n({event:t,node:Ze(r.props)}),e.dragNode=null},e.onNodeDrop=function(t,r){var n,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=e.state,a=s.dragChildrenKeys,l=s.dropPosition,c=s.dropTargetKey,u=s.dropTargetPos;if(s.dropAllowed){var d=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var h=(0,o.l)((0,o.l)({},Je(c,e.getTreeNodeRequiredProps())),{},{active:(null===(n=e.getActiveItem())||void 0===n?void 0:n.data.key)===c,data:e.state.keyEntities[c].node}),f=-1!==a.indexOf(c);(0,o.D)(!f,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var p=je(u),m={event:t,node:Ze(h),dragNode:e.dragNode?Ze(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};i||null==d||d(m),e.dragNode=null}}},e.cleanDragState=function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.onNodeClick=function(t,r){var n=e.props.onClick;null==n||n(t,r)},e.onNodeDoubleClick=function(t,r){var n=e.props.onDoubleClick;null==n||n(t,r)},e.onNodeSelect=function(t,r){var n=e.state.selectedKeys,i=e.state,o=i.keyEntities,s=i.fieldNames,a=e.props,l=a.onSelect,c=a.multiple,u=r.selected,d=r[s.key],h=!u,f=(n=h?c?Be(n,d):[d]:Le(n,d)).map(function(e){var t=o[e];return t?t.node:null}).filter(function(e){return e});e.setUncontrolledState({selectedKeys:n}),null==l||l(n,{event:"select",selected:h,node:r,selectedNodes:f,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,r,n){var i,s=e.state,a=s.keyEntities,l=s.checkedKeys,c=s.halfCheckedKeys,u=e.props,d=u.checkStrictly,h=u.onCheck,f=r.key,p={event:"check",no
2de:r,checked:n,nativeEvent:t.nativeEvent};if(d){var m=n?Be(l,f):Le(l,f);i={checked:m,halfChecked:Le(c,f)},p.checkedNodes=m.map(function(e){return a[e]}).filter(function(e){return e}).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:m})}else{var g=Ee([].concat((0,o.h)(l),[f]),!0,a),b=g.checkedKeys,y=g.halfCheckedKeys;if(!n){var A=new Set(b);A.delete(f);var v=Ee(Array.from(A),{checked:!1,halfCheckedKeys:y},a);b=v.checkedKeys,y=v.halfCheckedKeys}i=b,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=y,b.forEach(function(e){var t=a[e];if(t){var r=t.node,n=t.pos;p.checkedNodes.push(r),p.checkedNodesPositions.push({node:r,pos:n})}}),e.setUncontrolledState({checkedKeys:b},!1,{halfCheckedKeys:y})}null==h||h(i,p)},e.onNodeLoad=function(t){var r=t.key,n=new Promise(function(n,i){e.setState(function(s){var a=s.loadedKeys,l=void 0===a?[]:a,c=s.loadingKeys,u=void 0===c?[]:c,d=e.props,h=d.loadData,f=d.onLoad;return h&&-1===l.indexOf(r)&&-1===u.indexOf(r)?(h(t).then(function(){var i=Be(e.state.loadedKeys,r);null==f||f(i,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:i}),e.setState(function(e){return{loadingKeys:Le(e.loadingKeys,r)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:Le(e.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=10){var s=e.state.loadedKeys;(0,o.D)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:Be(s,r)}),n()}i(t)}),{loadingKeys:Be(u,r)}):null})});return n.catch(function(){}),n},e.onNodeMouseEnter=function(t,r){var n=e.props.onMouseEnter;null==n||n({event:t,node:r})},e.onNodeMouseLeave=function(t,r){var n=e.props.onMouseLeave;null==n||n({event:t,node:r})},e.onNodeContextMenu=function(t,r){var n=e.props.onRightClick;n&&(t.preventDefault(),n({event:t,node:r}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];null==t||t.apply(void 0,n)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];null==t||t.apply(void 0,n)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var r=e.state,n=$e(r.treeData,t,r.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:n},!0)},e.onNodeExpand=function(t,r){var n=e.state.expandedKeys,i=e.state,s=i.listChanging,a=i.fieldNames,l=e.props,c=l.onExpand,u=l.loadData,d=r.expanded,h=r[a.key];if(!s){var f=n.indexOf(h),p=!d;if((0,o.D)(d&&-1!==f||!d&&-1===f,"Expand state not sync with index check"),n=p?Be(n,h):Le(n,h),e.setExpandedKeys(n),null==c||c(n,{node:r,expanded:p,nativeEvent:t.nativeEvent}),p&&u){var m=e.onNodeLoad(r);m&&m.then(function(){var t=$e(e.state.treeData,n,a);e.setUncontrolledState({flattenNodes:t})}).catch(function(){var t=Le(e.state.expandedKeys,h);e.setExpandedKeys(t)})}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})},e.onActiveChange=function(t){var r=e.state.activeKey,n=e.props.onActiveChange;r!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),null==n||n(t))},e.getActiveItem=function(){var t=e.state,r=t.activeKey,n=t.flattenNodes;return null===r?null:n.find(function(e){return e.key===r})||null},e.offsetActiveKey=function(t){var r=e.state,n=r.flattenNodes,i=r.activeKey,o=n.findIndex(function(e){return e.key===i});-1===o&&t<0&&(o=n.length);var s=n[o=(o+t+n.length)%n.length];if(s){var a=s.key;e.onActiveChange(a)}else e.onActiveChange(null)},e.onKeyDown=function(t){var r=e.state,n=r.activeKey,i=r.expandedKeys,s=r.checkedKeys,a=e.props,l=a.onKeyDown,c=a.checkable,u=a.selectable;switch(t.which){case S.K.UP:e.offsetActiveKey(-1),t.preventDefault();break;case S.K.DOWN:e.offsetActiveKey(1),t.preventDefault()}var d=e.getActiveItem();if(d&&d.data){var h=e.getTreeNodeRequiredProps(),f=!1===d.data.isLeaf||!!(d.data.children||[]).length,p=Ze((0,o.l)((0,o.l)({},Je(n,h)),{},{data:d.data,active:!0}));switch(t.which){case S.K.LEFT:f&&i.includes(n)?e.onNodeExpand({},p):d.parent&&e.onActiveChange(d.parent.data.key),t.preventDefault();break;case S.K.RIGHT:f&&!i.includes(n)?e.onNodeExpand({},p):d.children&&d.children.length&&e.onActiveChange(d.children[0].data.key),t.preventDefault();break;case S.K.ENTER:case S.K.SPACE:!c||p.disabled||!1===p.checkable||p.disableCheckbox?!c&&u&&!p.disabled&&!1!==p.selectable&&e.onNodeSelect({},p):e.onNodeCheck({},p,!s.includes(n))}}null==l||l(t)},e.setUncontrolledState=function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var i=!1,s=!0,a={};Object.keys(t).forEach(function(r){r in e.props?s=!1:(i=!0,a[r]=t[r])}),i&&(!r||s)&&e.setState((0,o.l)((0,o.l)({},a),n))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}
2return(0,o.f)(r,[{key:"componentDidMount",value:function(){this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props.activeKey;void 0!==e&&e!==this.state.activeKey&&(this.setState({activeKey:e}),null!==e&&this.scrollTo({key:e}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t,r=this.state,i=r.focused,s=r.flattenNodes,a=r.keyEntities,c=r.draggingNodeKey,u=r.activeKey,d=r.dropLevelOffset,h=r.dropContainerKey,f=r.dropTargetKey,p=r.dropPosition,m=r.dragOverNodeKey,g=r.indent,b=this.props,y=b.prefixCls,A=b.className,v=b.style,w=b.showLine,x=b.focusable,k=b.tabIndex,C=void 0===k?0:k,_=b.selectable,S=b.showIcon,E=b.icon,T=b.switcherIcon,M=b.draggable,O=b.checkable,N=b.checkStrictly,P=b.disabled,R=b.motion,D=b.loadData,I=b.filterTreeNode,L=b.height,B=b.itemHeight,j=b.virtual,F=b.titleRender,z=b.dropIndicatorRender,U=b.onContextMenu,H=b.onScroll,V=b.direction,W=(0,l.p)(this.props,{aria:!0,data:!0});return M&&(t="object"===(0,o.i)(M)?M:"function"==typeof M?{nodeDraggable:M}:{}),n.createElement(Te.Provider,{value:{prefixCls:y,selectable:_,showIcon:S,icon:E,switcherIcon:T,draggable:t,draggingNodeKey:c,checkable:O,checkStrictly:N,disabled:P,keyEntities:a,dropLevelOffset:d,dropContainerKey:h,dropTargetKey:f,dropPosition:p,dragOverNodeKey:m,indent:g,direction:V,dropIndicatorRender:z,loadData:D,filterTreeNode:I,titleRender:F,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},n.createElement("div",{role:"tree",className:(0,o.c)(y,A,(e={},(0,o.a)(e,"".concat(y,"-show-line"),w),(0,o.a)(e,"".concat(y,"-focused"),i),(0,o.a)(e,"".concat(y,"-active-focused"),null!==u),e))},n.createElement(Pa,(0,o.g)({ref:this.listRef,prefixCls:y,style:v,data:s,disabled:P,selectable:_,checkable:!!O,motion:R,dragging:null!==c,height:L,itemHeight:B,virtual:j,focusable:x,focused:i,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:U,onScroll:H},this.getTreeNodeRequiredProps(),W))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=t.prevProps,n={prevProps:e};function i(t){return!r&&t in e||r&&r[t]!==e[t]}var s,a=t.fieldNames;if(i("fieldNames")&&(a=Xe(e.fieldNames),n.fieldNames=a),i("treeData")?s=e.treeData:i("children")&&((0,o.D)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),s=Ye(e.children)),s){n.treeData=s;var l=Qe(s,{fieldNames:a});n.keyEntities=(0,o.l)((0,o.a)({},_a,Ea),l.keyEntities)}var c,u=n.keyEntities||t.keyEntities;if(i("expandedKeys")||r&&i("autoExpandParent"))n.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?Ke(e.expandedKeys,u):e.expandedKeys;else if(!r&&e.defaultExpandAll){var d=(0,o.l)({},u);delete d[_a],n.expandedKeys=Object.keys(d).map(function(e){return d[e].key})}else!r&&e.defaultExpandedKeys&&(n.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Ke(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,s||n.expandedKeys){var h=$e(s||t.treeData,n.expandedKeys||t.expandedKeys,a);n.flattenNodes=h}if((e.selectable&&(i("selectedKeys")?n.selectedKeys=Ve(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(n.selectedKeys=Ve(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=We(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?c=We(e.defaultCheckedKeys)||{}:s&&(c=We(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var f=c,p=f.checkedKeys,m=void 0===p?[]:p,g=f.halfCheckedKeys,b=void 0===g?[]:g;if(!e.checkStrictly){var y=Ee(m,!0,u);m=y.checkedKeys,b=y.halfCheckedKeys}n.checkedKeys=m,n.halfCheckedKeys=b}return i("loadedKeys")&&(n.loadedKeys=e.loadedKeys),n}}]),r}(n.Component);Ra.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,r=e.dropLevelOffset,i=e.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};
2switch(t){case-1:o.top=0,o.left=-r*i;break;case 1:o.bottom=0,o.left=-r*i;break;case 0:o.bottom=0,o.left=i}return n.createElement("div",{style:o})},allowDrop:function(){return!0}},Ra.TreeNode=Ie;const Da={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};var Ia=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:Da}))};Ia.displayName="FileOutlined";const La=n.forwardRef(Ia);const Ba={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var ja=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:Ba}))};ja.displayName="FolderOpenOutlined";const Fa=n.forwardRef(ja);const za={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};var Ua=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:za}))};Ua.displayName="FolderOutlined";const Ha=n.forwardRef(Ua);var Va,Wa;function Ka(e,t){e.forEach(function(e){var r=e.key,n=e.children;!1!==t(r,e)&&Ka(n||[],t)})}function qa(e){var t=e.treeData,r=e.expandedKeys,n=e.startKey,i=e.endKey,o=[],s=Va.None;if(n&&n===i)return[n];if(!n||!i)return[];return Ka(t,function(e){if(s===Va.End)return!1;if(function(e){return e===n||e===i}(e)){if(o.push(e),s===Va.None)s=Va.Start;else if(s===Va.Start)return s=Va.End,!1}else s===Va.Start&&o.push(e);return-1!==r.indexOf(e)}),o}function Ga(e,t){var r=(0,o.h)(t),n=[];return Ka(e,function(e,t){var i=r.indexOf(e);return-1!==i&&(n.push(t),r.splice(i,1)),!!r.length}),n}(Wa=Va||(Va={}))[Wa.None=0]="None",Wa[Wa.Start=1]="Start",Wa[Wa.End=2]="End";var Xa=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};function Ya(e){var t=e.isLeaf,r=e.expanded;return t?n.createElement(La,null):r?n.createElement(Fa,null):n.createElement(Ha,null)}function $a(e){var t=e.treeData,r=e.children;return t||Ye(r)}var Qa=function(e,t){var r=e.defaultExpandAll,i=e.defaultExpandParent,s=e.defaultExpandedKeys,a=Xa(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),l=n.useRef(),c=n.useRef(),u=n.createRef();n.useImperativeHandle(t,function(){return u.current});var d=n.useState(a.selectedKeys||a.defaultSelectedKeys||[]),h=(0,o._)(d,2),f=h[0],p=h[1],m=n.useState(function(){var e=Qe($a(a)).keyEntities;return r?Object.keys(e):i?Ke(a.expandedKeys||s||[],e):a.expandedKeys||s}()),g=(0,o._)(m,2),b=g[0],y=g[1];n.useEffect(function(){"selectedKeys"in a&&p(a.selectedKeys)},[a.selectedKeys]),n.useEffect(function(){"expandedKeys"in a&&y(a.expandedKeys)},[a.expandedKeys]);var A=Ce(function(e,t){t.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey||u.current.onNodeExpand(e,t)},200,{leading:!0}),v=n.useContext(o.k),w=v.getPrefixCls,x=v.direction,k=a.prefixCls,C=a.className,_=Xa(a,["prefixCls","className"]),S=w("tree",k),E=(0,o.c)("".concat(S,"-directory"),(0,o.a)({},"".concat(S,"-directory-rtl"),"rtl"===x),C);return n.createElement(dl,(0,o.g)({icon:Ya,ref:u,blockNode:!0},_,{prefixCls:S,className:E,expandedKeys:b,selectedKeys:f,onSelect:function(e,t){var r,n,i=a.multiple,s=t.node,u=t.nativeEvent,d=s.key,h=void 0===d?"":d,f=$a(a),m=(0,o.g)((0,o.g)({},t),{selected:!0}),g=(null==u?void 0:u.ctrlKey)||(null==u?void 0:u.metaKey),y=null==u?void 0:u.shiftKey;i&&g?(n=e,l.current=h,c.current=n,m.selectedNodes=Ga(f,n)):i&&y?(n=Array.from(new Set([].concat((0,o.h)(c.current||[]),(0,o.h)(qa({treeData:f,expandedKeys:b,startKey:h,endKey:l.current}))))),m.selectedNodes=Ga(f,n)):(n=[h],l.current=h,c.current=n,m.selectedNodes=Ga(f,n)),null===(r=a.onSelect)||void 0===r||r.call(a,n,m),"selectedKeys"in a||p(n)},onClick:function(e,t){var r;"click"===a.expandAction&&A(e,t),null===(r=a.onClick)||void 0===r||r.call(a,e,t)},onDoubleClick:function(e,t){var r;"doubleClick"===a.expandAction&&A(e,t),null===(r=a.onDoubleClick)||void 0===r||r.call(a,e,t)},onExpand:function(e,t){var r;return"expandedKeys"in a||y(e),null===(r=a.onExpand)||void 0===r?void 0:r.call(a,e,t)}}))},Ja=n.forwardRef(Qa);Ja.displayName="DirectoryTree",Ja.defaultProps={showIcon:!0,expandAction:"click"};const Za=Ja;const el={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var tl=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:el}))};tl.displayName="MinusSquareOutlined";const rl=n.forwardRef(tl);const nl={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var il=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:nl}))};
2il.displayName="PlusSquareOutlined";const ol=n.forwardRef(il);const sl={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var al=function(e,t){return n.createElement(o.A,(0,o.l)((0,o.l)({},e),{},{ref:t,icon:sl}))};al.displayName="CaretDownFilled";const ll=n.forwardRef(al);function cl(e){var t,r=e.dropPosition,i=e.dropLevelOffset,s=e.prefixCls,a=e.indent,l=e.direction,c=void 0===l?"ltr":l,u="ltr"===c?"left":"right",d="ltr"===c?"right":"left",h=(t={},(0,o.a)(t,u,-i*a+4),(0,o.a)(t,d,0),t);switch(r){case-1:h.top=-3;break;case 1:h.bottom=-3;break;default:h.bottom=-3,h[u]=a+4}return n.createElement("div",{style:h,className:"".concat(s,"-drop-indicator")})}var ul=n.forwardRef(function(e,t){var r,i=n.useContext(o.k),s=i.getPrefixCls,a=i.direction,l=i.virtual,c=e.prefixCls,u=e.className,d=e.showIcon,h=e.showLine,p=e.switcherIcon,m=e.blockNode,g=e.children,b=e.checkable,y=e.selectable,A=e.draggable,v=s("tree",c),w=(0,o.g)((0,o.g)({},e),{showLine:Boolean(h),dropIndicatorRender:cl}),x=n.useMemo(function(){if(!A)return!1;var e={};switch((0,o.i)(A)){case"function":e.nodeDraggable=A;break;case"object":e=(0,o.g)({},A)}return!1!==e.icon&&(e.icon=e.icon||n.createElement(ba,null)),e},[A]);return n.createElement(Ra,(0,o.g)({itemHeight:20,ref:t,virtual:l},w,{prefixCls:v,className:(0,o.c)((r={},(0,o.a)(r,"".concat(v,"-icon-hide"),!d),(0,o.a)(r,"".concat(v,"-block-node"),m),(0,o.a)(r,"".concat(v,"-unselectable"),!y),(0,o.a)(r,"".concat(v,"-rtl"),"rtl"===a),r),u),direction:a,checkable:b&&n.createElement("span",{className:"".concat(v,"-checkbox-inner")}),selectable:y,switcherIcon:function(e){return function(e,t,r,i){var s,a=i.isLeaf,l=i.expanded;if(i.loading)return n.createElement(o.M,{className:"".concat(e,"-switcher-loading-icon")});if(r&&"object"===(0,o.i)(r)&&(s=r.showLeafIcon),a)return r?"object"!==(0,o.i)(r)||s?n.createElement(La,{className:"".concat(e,"-switcher-line-icon")}):n.createElement("span",{className:"".concat(e,"-switcher-leaf-line")}):null;var c="".concat(e,"-switcher-icon");return(0,f.i)(t)?(0,f.c)(t,{className:(0,o.c)(t.props.className||"",c)}):t||(r?l?n.createElement(rl,{className:"".concat(e,"-switcher-line-icon")}):n.createElement(ol,{className:"".concat(e,"-switcher-line-icon")}):n.createElement(ll,{className:c}))}(v,p,h,e)},draggable:x}),g)});ul.TreeNode=Ie,ul.DirectoryTree=Za,ul.defaultProps={checkable:!1,selectable:!0,showIcon:!1,motion:(0,o.g)((0,o.g)({},E.c),{motionAppear:!1}),blockNode:!1};const dl=ul;const hl=function(e){return n.createElement("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)};const fl=function(e){var t=e.value,r=e.onChange,i=e.filterSearch,o=e.tablePrefixCls,s=e.locale;return i?n.createElement("div",{className:"".concat(o,"-filter-dropdown-search")},n.createElement(M.I,{prefix:n.createElement(T.S,null),placeholder:s.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:"".concat(o,"-filter-dropdown-search-input")})):null};function pl(e,t){return("string"==typeof t||"number"==typeof t)&&(null==t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function ml(e){var t=e.filters,r=e.prefixCls,i=e.filteredKeys,o=e.filterMultiple,s=e.searchValue;return t.map(function(e,t){var a=String(e.value);if(e.children)return n.createElement(x.A.SubMenu,{key:a||t,title:e.text,popupClassName:"".concat(r,"-dropdown-submenu")},ml({filters:e.children,prefixCls:r,filteredKeys:i,filterMultiple:o,searchValue:s}));var l=o?v.A:k.A,c=n.createElement(x.A.Item,{key:void 0!==e.value?a:t},n.createElement(l,{checked:i.includes(a)}),n.createElement("span",null,e.text));return s.trim()?pl(s,e.text)?c:void 0:c})}function gl(e){var t,r=e.tablePrefixCls,i=e.prefixCls,s=e.column,a=e.dropdownPrefixCls,l=e.columnKey,c=e.filterMultiple,u=e.filterMode,d=void 0===u?"menu":u,h=e.filterSearch,f=void 0!==h&&h,p=e.filterState,m=e.triggerFilter,g=e.locale,b=e.children,y=e.getPopupContainer,A=s.filterDropdownVisible,k=s.onFilterDropdownVisibleChange,C=n.useState(!1),S=(0,o._)(C,2),E=S[0],T=S[1],M=!(!p||!(null===(t=p.filteredKeys)||void 0===t?void 0:t.length)&&!p.forceFiltered),N=function(e){T(e),null==k||k(e)},P="boolean"==typeof A?A:E,R=null==p?void 0:p.filteredKeys,D=function(e){var t=n.useRef(e),r=(0,O.u)();return[function(){return t.current},function(e){t.current=e,r()}]}(R||[]),I=(0,o._)(D,2),L=I[0],B=I[1],j=function(e){var t=e.selectedKeys;B(t)}
2,F=function(e,t){var r=t.node,n=t.checked;j(c?{selectedKeys:e}:{selectedKeys:n&&r.key?[r.key]:[]})};n.useEffect(function(){!E||j({selectedKeys:R||[]})},[R]);var z=n.useState([]),U=(0,o._)(z,2),H=U[0],V=U[1],W=n.useRef(),K=function(e){W.current=window.setTimeout(function(){V(e)})},q=function(){window.clearTimeout(W.current)};n.useEffect(function(){return function(){window.clearTimeout(W.current)}},[]);var G=n.useState(""),X=(0,o._)(G,2),Y=X[0],$=X[1],Q=function(e){var t=e.target.value;$(t)};n.useEffect(function(){E||$("")},[E]);var J,Z=function(e){var t=e&&e.length?e:null;if(null===t&&(!p||!p.filteredKeys)||da(t,null==p?void 0:p.filteredKeys))return null;m({column:s,key:l,filteredKeys:t})},ee=function(){N(!1),Z(L())},te=function(){$(""),B([])},re=(0,o.c)((0,o.a)({},"".concat(a,"-menu-without-submenu"),!function(e){return e.some(function(e){return e.children})}(s.filters||[]))),ne=function(e){if(e.target.checked){var t=Al(null==s?void 0:s.filters).map(function(e){return String(e)});B(t)}else B([])},ie=function e(t){return(t.filters||[]).map(function(t,r){var n=String(t.value),i={title:t.text,key:void 0!==t.value?n:r};return t.children&&(i.children=e({filters:t.children})),i})};if("function"==typeof s.filterDropdown)J=s.filterDropdown({prefixCls:"".concat(a,"-custom"),setSelectedKeys:function(e){return j({selectedKeys:e})},selectedKeys:L(),confirm:function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0}).closeDropdown&&N(!1),Z(L())},clearFilters:te,filters:s.filters,visible:P});else if(s.filterDropdown)J=s.filterDropdown;else{var oe=L()||[];J=n.createElement(n.Fragment,null,0===(s.filters||[]).length?n.createElement(o.a4,{image:o.a4.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?n.createElement(n.Fragment,null,n.createElement(fl,{filterSearch:f,value:Y,onChange:Q,tablePrefixCls:r,locale:g}),n.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},c?n.createElement(v.A,{className:"".concat(r,"-filter-dropdown-checkall"),onChange:ne},g.filterCheckall):null,n.createElement(dl,{checkable:!0,selectable:!1,blockNode:!0,multiple:c,checkStrictly:!c,className:"".concat(a,"-menu"),onCheck:F,checkedKeys:oe,selectedKeys:oe,showIcon:!1,treeData:ie({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Y.trim()?function(e){return pl(Y,e.title)}:void 0}))):n.createElement(n.Fragment,null,n.createElement(fl,{filterSearch:f,value:Y,onChange:Q,tablePrefixCls:r,locale:g}),n.createElement(x.A,{multiple:c,prefixCls:"".concat(a,"-menu"),className:re,onClick:q,onSelect:j,onDeselect:j,selectedKeys:oe,getPopupContainer:y,openKeys:H,onOpenChange:K},ml({filters:s.filters||[],prefixCls:i,filteredKeys:L(),filterMultiple:c,searchValue:Y}))),n.createElement("div",{className:"".concat(i,"-dropdown-btns")},n.createElement(_.B,{type:"link",size:"small",disabled:0===oe.length,onClick:te},g.filterReset),n.createElement(_.B,{type:"primary",size:"small",onClick:ee},g.filterConfirm)))}var se,ae=n.createElement(hl,{className:"".concat(i,"-dropdown")},J);se="function"==typeof s.filterIcon?s.filterIcon(M):s.filterIcon?s.filterIcon:n.createElement(pa,null);var le=n.useContext(o.k).direction;return n.createElement("div",{className:"".concat(i,"-column")},n.createElement("span",{className:"".concat(r,"-column-title")},b),n.createElement(w.D,{overlay:ae,trigger:["click"],visible:P,onVisibleChange:function(e){e&&void 0!==R&&B(R||[]),N(e),!e&&!s.filterDropdown&&ee()},getPopupContainer:y,placement:"rtl"===le?"bottomLeft":"bottomRight"},n.createElement("span",{role:"button",tabIndex:-1,className:(0,o.c)("".concat(i,"-trigger"),{active:M}),onClick:function(e){e.stopPropagation()}},se)))}function bl(e,t,r){var n=[];return(e||[]).forEach(function(e,i){var s,a=Ur(i,r);if(e.filters||"filterDropdown"in e||"onFilter"in e)if("filteredValue"in e){var l=e.filteredValue;"filterDropdown"in e||(l=null!==(s=null==l?void 0:l.map(String))&&void 0!==s?s:l),n.push({column:e,key:zr(e,a),filteredKeys:l,forceFiltered:e.filtered})}else n.push({column:e,key:zr(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(n=[].concat((0,o.h)(n),(0,o.h)(bl(e.children,t,a))))}),n}function yl(e,t,r,i,s,a,l,c){return r.map(function(r,u){var d=Ur(u,c),h=r.filterMultiple,f=void 0===h||h,p=r.filterMode,m=r.filterSearch,g=r;if(g.filters||g.filterDropdown){var b=zr(g,d),y=i.find(function(e){var t=e.key;return b===t});g=(0,o.g)((0,o.g)({},g),{title:function(i){return n.createElement(gl,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:g,columnKey:b,filterState:y,filterMultiple:f,filterMode:p,filterSearch:m,triggerFilter:s,locale:l,getPopupContainer:a},Hr(r.title,i))}})}return"children"in g&&(g=(0,o.g)((0,o.g)({},g),{children:yl(e,t,g.children,i,s,a,l,d)})),g})}function Al(e){var t=[];
2return(e||[]).forEach(function(e){var r=e.value,n=e.children;t.push(r),n&&(t=[].concat((0,o.h)(t),(0,o.h)(Al(n))))}),t}function vl(e){var t={};return e.forEach(function(e){var r=e.key,n=e.filteredKeys,i=e.column,o=i.filters;if(i.filterDropdown)t[r]=n||null;else if(Array.isArray(n)){var s=Al(o);t[r]=s.filter(function(e){return n.includes(String(e))})}else t[r]=null}),t}function wl(e,t){return t.reduce(function(e,t){var r=t.column,n=r.onFilter,i=r.filters,o=t.filteredKeys;return n&&o&&o.length?e.filter(function(e){return o.some(function(t){var r=Al(i),o=r.findIndex(function(e){return String(e)===String(t)}),s=-1!==o?r[o]:t;return n(s,e)})}):e},e)}function xl(e){var t=e.prefixCls,r=e.dropdownPrefixCls,i=e.mergedColumns,s=e.onFilterChange,a=e.getPopupContainer,l=e.locale,c=n.useState(bl(i,!0)),u=(0,o._)(c,2),d=u[0],h=u[1],f=n.useMemo(function(){var e=bl(i,!1),t=e.every(function(e){return void 0===e.filteredKeys});if(t)return d;var r=e.every(function(e){return void 0!==e.filteredKeys});return(0,o.j)(t||r,"Table","`FilteredKeys` should all be controlled or not controlled."),e},[i,d]),p=n.useCallback(function(){return vl(f)},[f]),m=function(e){var t=f.filter(function(t){return t.key!==e.key});t.push(e),h(t),s(vl(t),t)};return[function(e){return yl(t,r,e,f,m,a,l)},f,p]}function kl(e,t){return e.map(function(e){var r=(0,o.g)({},e);return r.title=Hr(e.title,t),"children"in r&&(r.children=kl(r.children,t)),r})}function Cl(e){return[n.useCallback(function(t){return kl(t,e)},[e])]}var _l=[];function Sl(e,t){var r,i=e.prefixCls,a=e.className,l=e.style,c=e.size,u=e.bordered,d=e.dropdownPrefixCls,h=e.dataSource,f=e.pagination,p=e.rowSelection,m=e.rowKey,g=e.rowClassName,y=e.columns,A=e.children,v=e.childrenColumnName,w=e.onChange,x=e.getPopupContainer,k=e.loading,C=e.expandIcon,_=e.expandable,S=e.expandedRowRender,E=e.expandIconColumnIndex,T=e.indentSize,M=e.scroll,O=e.sortDirections,N=e.locale,P=e.showSorterTooltip,D=void 0===P||P;(0,o.j)(!("function"==typeof m&&m.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var I=(0,b.u)(),L=n.useMemo(function(){var e=new Set(Object.keys(I).filter(function(e){return I[e]}));return(y||nr(A)).filter(function(t){return!t.responsive||t.responsive.some(function(t){return e.has(t)})})},[A,y,I]),B=(0,s.o)(e,["className","style","columns"]),j=n.useContext(o.S),F=n.useContext(o.k),z=F.locale,U=void 0===z?o.Y:z,H=F.renderEmpty,V=F.direction,W=c||j,K=(0,o.g)((0,o.g)({},U.Table),N),q=h||_l,G=n.useContext(o.k).getPrefixCls,X=G("table",i),Y=G("dropdown",d),$=(0,o.g)({childrenColumnName:v,expandIconColumnIndex:E},_),Q=$.childrenColumnName,J=void 0===Q?"children":Q,Z=n.useMemo(function(){return q.some(function(e){var t;return null===(t=e)||void 0===t?void 0:t[J]})?"nest":S||_&&_.expandedRowRender?"row":null},[q]),ee={body:n.useRef()},te=n.useMemo(function(){return"function"==typeof m?m:function(e){var t;return null===(t=e)||void 0===t?void 0:t[m]}},[m]),re=function(e,t,r){var i=n.useRef({});return[function(n){if(!i.current||i.current.data!==e||i.current.childrenColumnName!==t||i.current.getRowKey!==r){let n=function(e){e.forEach(function(e,i){var a=r(e,i);s.set(a,e),e&&"object"===(0,o.i)(e)&&t in e&&n(e[t]||[])})};var s=new Map;n(e),i.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:r}}return i.current.kvMap.get(n)}]}(q,J,te),ne=(0,o._)(re,1)[0],ie={},oe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=(0,o.g)((0,o.g)({},ie),e);r&&(ie.resetPagination(),n.pagination.current&&(n.pagination.current=1),f&&f.onChange&&f.onChange(1,n.pagination.pageSize)),M&&!1!==M.scrollToFirstRowOnChange&&ee.body.current&&R(0,{getContainer:function(){return ee.body.current}}),null==w||w(n.pagination,n.filters,n.sorter,{currentDataSource:wl(Qr(q,n.sorterStates,J),n.filterStates),action:t})},se=Jr({prefixCls:X,mergedColumns:L,onSorterChange:function(e,t){oe({sorter:e,sorterStates:t},"sort",!1)},sortDirections:O||["ascend","descend"],tableLocale:K,showSorterTooltip:D}),ae=(0,o._)(se,4),le=ae[0],ce=ae[1],ue=ae[2],de=ae[3],he=n.useMemo(function(){return Qr(q,ce,J)},[q,ce]);ie.sorter=de(),ie.sorterStates=ce;var fe=xl({prefixCls:X,locale:K,dropdownPrefixCls:Y,mergedColumns:L,onFilterChange:function(e,t){oe({filters:e,filterStates:t},"filter",!0)},getPopupContainer:x}),pe=(0,o._)(fe,3),me=pe[0],ge=pe[1],be=pe[2],ye=wl(he,ge);ie.filters=be(),ie.filterStates=ge;var Ae=Cl(n.useMemo(function(){return(0,o.g)({},ue)},[ue])),ve=(0,o._)(Ae,1)[0],we=Er(ye.length,f,function(e,t){oe({pagination:(0,o.g)((0,o.g)({},ie.pagination),{current:e,pageSize:t})},"paginate")}),xe=(0,o._)(we,2),ke=xe[0],Ce=xe[1];ie.pagination=!1===f?{}:function(e,t){var r={current:t.current,pageSize:t.pageSize},n=e&&"object"===(0,o.i)(e)?e:{};
2return Object.keys(n).forEach(function(e){var n=t[e];"function"!=typeof n&&(r[e]=n)}),r}(f,ke),ie.resetPagination=Ce;var _e=n.useMemo(function(){if(!1===f||!ke.pageSize)return ye;var e=ke.current,t=void 0===e?1:e,r=ke.total,n=ke.pageSize,i=void 0===n?10:n;return(0,o.j)(t>0,"Table","`current` should be positive number."),ye.length<r?ye.length>i?((0,o.j)(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),ye.slice((t-1)*i,t*i)):ye:ye.slice((t-1)*i,t*i)},[!!f,ye,ke&&ke.current,ke&&ke.pageSize,ke&&ke.total]),Se=Rr(p,{prefixCls:X,data:ye,pageData:_e,getRowKey:te,getRecordByKey:ne,expandType:Z,childrenColumnName:J,locale:K,getPopupContainer:x}),Ee=(0,o._)(Se,2),Te=Ee[0],Me=Ee[1];$.__PARENT_RENDER_ICON__=$.expandIcon,$.expandIcon=$.expandIcon||C||function(e){return function(t){var r,i=t.prefixCls,s=t.onExpand,a=t.record,l=t.expanded,c=t.expandable,u="".concat(i,"-row-expand-icon");return n.createElement("button",{type:"button",onClick:function(e){s(a,e),e.stopPropagation()},className:(0,o.c)(u,(r={},(0,o.a)(r,"".concat(u,"-spaced"),!c),(0,o.a)(r,"".concat(u,"-expanded"),c&&l),(0,o.a)(r,"".concat(u,"-collapsed"),c&&!l),r)),"aria-label":l?e.collapse:e.expand})}}(K),"nest"===Z&&void 0===$.expandIconColumnIndex?$.expandIconColumnIndex=p?1:0:$.expandIconColumnIndex>0&&p&&($.expandIconColumnIndex-=1),"number"!=typeof $.indentSize&&($.indentSize="number"==typeof T?T:15);var Oe,Ne,Pe,Re=n.useCallback(function(e){return ve(Te(me(le(e))))},[le,me,Te]);if(!1!==f&&(null==ke?void 0:ke.total)){var De;De=ke.size?ke.size:"small"===W||"middle"===W?"small":void 0;var Ie=function(e){return n.createElement(kt,(0,o.g)({},ke,{className:(0,o.c)("".concat(X,"-pagination ").concat(X,"-pagination-").concat(e),ke.className),size:De}))},Le="rtl"===V?"left":"right",Be=ke.position;if(null!==Be&&Array.isArray(Be)){var je=Be.find(function(e){return-1!==e.indexOf("top")}),Fe=Be.find(function(e){return-1!==e.indexOf("bottom")}),ze=Be.every(function(e){return"none"==="".concat(e)});!je&&!Fe&&!ze&&(Ne=Ie(Le)),je&&(Oe=Ie(je.toLowerCase().replace("top",""))),Fe&&(Ne=Ie(Fe.toLowerCase().replace("bottom","")))}else Ne=Ie(Le)}"boolean"==typeof k?Pe={spinning:k}:"object"===(0,o.i)(k)&&(Pe=(0,o.g)({spinning:!0},k));var Ue=(0,o.c)("".concat(X,"-wrapper"),(0,o.a)({},"".concat(X,"-wrapper-rtl"),"rtl"===V),a);return n.createElement("div",{ref:t,className:Ue,style:l},n.createElement(it,(0,o.g)({spinning:!1},Pe),Oe,n.createElement(_r,(0,o.g)({},B,{columns:L,direction:V,expandable:$,prefixCls:X,className:(0,o.c)((r={},(0,o.a)(r,"".concat(X,"-middle"),"middle"===W),(0,o.a)(r,"".concat(X,"-small"),"small"===W),(0,o.a)(r,"".concat(X,"-bordered"),u),(0,o.a)(r,"".concat(X,"-empty"),0===q.length),r)),data:_e,rowKey:te,rowClassName:function(e,t,r){var n;return n="function"==typeof g?(0,o.c)(g(e,t,r)):(0,o.c)(g),(0,o.c)((0,o.a)({},"".concat(X,"-row-selected"),Me.has(te(e,t))),n)},emptyText:N&&N.emptyText||H("Table"),internalHooks:kr,internalRefs:ee,transformColumns:Re})),Ne))}var El=n.forwardRef(Sl);El.defaultProps={rowKey:"key"},El.SELECTION_COLUMN=Tr,El.EXPAND_COLUMN=_r.EXPAND_COLUMN,El.SELECTION_ALL=Mr,El.SELECTION_INVERT=Or,El.SELECTION_NONE=Nr,El.Column=function(e){return null},El.ColumnGroup=function(e){return null},El.Summary=pr;const Tl=El;class Ml extends n.Component{render(){const{className:e,twoColumn:t,...r}=this.props;return(0,i.j)("div",{className:`st-table ${t?"two-col":""} ${e||""}`,children:(0,i.j)(Tl,{...r,onRow:this.props.onRow,columns:this.props.columns,dataSource:this.props.dataSource,rowSelection:this.props.rowSelection,showSorterTooltip:!1,className:`st-table-${this.props.size} cellspace-${this.props.cellSpace}`})})}}},7148(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(9950),i=r(9398),o=r(4613);r(7119);class s extends n.Component{getSizeClassName(e){switch(e){case"small":return"st-textarea-sm";case"large":return"st-textarea-lg";default:return""}}getWrapperClassName(e){switch(e){case"warning":return"st-textarea-warning-wrapper";case"error":return"st-textarea-error-wrapper";default:return""}}
2render(){const{type:e,label:t,size:r,message:n,className:s,...a}=this.props;return(0,i.a)("span",{className:`st-textarea-wrapper ${this.getWrapperClassName(e)} ${this.getSizeClassName(r)} ${s||""}`,children:[t&&(0,i.j)("small",{className:"input-label",children:t}),(0,i.j)(o.I.TextArea,{...a}),n&&(0,i.j)("small",{className:"input-caption",children:n})]})}}},971(e,t,r){"use strict";r.d(t,{A:()=>s});var n=r(9950),i=r(9398),o=r(9115);r(7119);class s extends n.Component{render(){const{children:e,className:t,...r}=this.props;return(0,i.j)("div",{className:`st-tooltip-wrapper ${t||""}`,children:(0,i.j)(o.A,{...r,overlayClassName:"st-tooltip",children:e})})}}},9571(e,t,r){"use strict";r.d(t,{g:()=>s});var n=r(6744),i=r(4001);function o(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,i.i)(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||"a"===r&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),s=Number(o),a=null;return o&&!Number.isNaN(s)?a=s:n&&null===a&&(a=0),n&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(0,n.h)(e.querySelectorAll("*")).filter(function(e){return o(e,t)});return o(e,t)&&r.unshift(e),r}},678(e,t,r){"use strict";r.d(t,{A:()=>je});var n=r(6744),i=r(9950),o=r(4783),s=r(6042),a=r(812),l=r(8029),c=r(2644),u=r(4001),d=r(9571),h=r(9947),f=r(5789),p=r(1172),m=r(8766),g=r(4617),b=["children","locked"],y=i.createContext(null);function A(e){var t=e.children,r=e.locked,s=(0,n.z)(e,b),a=i.useContext(y),l=(0,n.P)(function(){return function(e,t){var r=(0,n.l)({},e);return Object.keys(t).forEach(function(e){var n=t[e];void 0!==n&&(r[e]=n)}),r}(a,s)},[a,s],function(e,t){return!r&&(e[0]!==t[0]||!(0,o.s)(e[1],t[1]))});return i.createElement(y.Provider,{value:l},t)}function v(e,t,r,n){var o=i.useContext(y),s=o.activeKey,a=o.onActive,l=o.onInactive,c={active:s===e};return t||(c.onMouseEnter=function(t){null==r||r({key:e,domEvent:t}),a(e)},c.onMouseLeave=function(t){null==n||n({key:e,domEvent:t}),l(e)}),c}var w=["item"];function x(e){var t=e.item,r=(0,n.z)(e,w);return Object.defineProperty(r,"item",{get:function(){return(0,n.D)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}function k(e){var t=e.icon,r=e.props,o=e.children;return("function"==typeof t?i.createElement(t,(0,n.l)({},r)):t)||o||null}function C(e){var t=i.useContext(y),r=t.mode,n=t.rtl,o=t.inlineIndent;if("inline"!==r)return null;return n?{paddingRight:e*o}:{paddingLeft:e*o}}var _=[],S=i.createContext(null);function E(){return i.useContext(S)}var T=i.createContext(_);function M(e){var t=i.useContext(T);return i.useMemo(function(){return void 0!==e?[].concat((0,n.h)(t),[e]):t},[t,e])}var O=i.createContext(null),N=i.createContext(null);function P(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function R(e){return P(i.useContext(N),e)}var D=i.createContext({}),I=["title","attribute","elementRef"],L=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],B=["active"],j=function(e){(0,n.b)(r,e);var t=(0,n.d)(r);function r(){return(0,n.e)(this,r),t.apply(this,arguments)}return(0,n.f)(r,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.attribute,o=e.elementRef,s=(0,n.z)(e,I),l=(0,c.o)(s,["eventKey"]);return(0,n.D)(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(a.F.Item,(0,n.g)({},r,{title:"string"==typeof t?t:void 0},l,{ref:o}))}}]),r}(i.Component),F=function(e){var t,r=e.style,o=e.className,s=e.eventKey,a=(e.warnKey,e.disabled),c=e.itemIcon,u=e.children,d=e.role,h=e.onMouseEnter,f=e.onMouseLeave,p=e.onClick,m=e.onKeyDown,g=e.onFocus,b=(0,n.z)(e,L),A=R(s),w=i.useContext(y),_=w.prefixCls,S=w.onItemClick,E=w.disabled,T=w.overflowDisabled,O=w.itemIcon,N=w.selectedKeys,P=w.onActive,I=i.useContext(D)._internalRenderMenuItem,F="".concat(_,"-item"),z=i.useRef(),U=i.useRef(),H=E||a,V=M(s),W=function(e){return{key:s,keyPath:(0,n.h)(V).reverse(),item:z.current,domEvent:e}},K=c||O,q=v(s,H,h,f),G=q.active,X=(0,n.z)(q,B),Y=N.includes(s),$=C(V.length),Q={};"option"===e.role&&(Q["aria-selected"]=Y);var J=i.createElement(j,(0,n.g)({ref:z,elementRef:U,role:null===d?"none":d||"menuitem",tabIndex:a?null:-1,"data-menu-id":T&&A?null:A},b,X,Q,{component:"li","aria-disabled":a,style:(0,n.l)((0,n.l)({},$),r),className:(0,n.c)(F,(t={},(0,n.a)(t,"".concat(F,"-active"),G),(0,n.a)(t,"".concat(F,"-selected"),Y),(0,n.a)(t,"".concat(F,"-disabled"),H),t),o),onClick:function(e){if(!H){var t=W(e);null==p||p(x(t)),S(t)}},onKeyDown:function(e){if(null==m||m(e),e.which===l.K.ENTER){var t=W(e);null==p||p(x(t)),S(t)}},onFocus:function(e){P(s),null==g||g(e)}}),u,i.createElement(k,{props:(0,n.l)((0,n.l)({},e),{},{isSelected:Y}),icon:K}));return I&&(J=I(J,e)),J};
2function z(e){var t=e.eventKey,r=E(),n=M(t);return i.useEffect(function(){if(r)return r.registerPath(t,n),function(){r.unregisterPath(t,n)}},[n]),r?null:i.createElement(F,e)}function U(e,t){return(0,n.t)(e).map(function(e,r){if(i.isValidElement(e)){var o,s,a=e.key,l=null!==(o=null===(s=e.props)||void 0===s?void 0:s.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat((0,n.h)(t),[r]).join("-")));var c={key:l,eventKey:l};return i.cloneElement(e,c)}return e})}function H(e){var t=i.useRef(e);t.current=e;var r=i.useCallback(function(){for(var e,r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(n))},[]);return e?r:void 0}var V=["className","children"],W=function(e,t){var r=e.className,o=e.children,s=(0,n.z)(e,V),a=i.useContext(y),l=a.prefixCls,c=a.mode,u=a.rtl;return i.createElement("ul",(0,n.g)({className:(0,n.c)(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===c?"inline":"vertical"),r)},s,{"data-menu-list":!0,ref:t}),o)},K=i.forwardRef(W);K.displayName="SubMenuList";var q={adjustX:1,adjustY:1},G={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:q,offset:[4,0]}},X={topLeft:{points:["bl","tl"],overflow:q,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:q,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:q,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:q,offset:[4,0]}};function Y(e,t,r){return t||(r?r[e]||r.other:void 0)}var $={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Q(e){var t=e.prefixCls,r=e.visible,o=e.children,s=e.popup,a=e.popupClassName,l=e.popupOffset,c=e.disabled,d=e.mode,h=e.onVisibleChange,f=i.useContext(y),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,b=f.subMenuCloseDelay,A=f.builtinPlacements,v=f.triggerSubMenuAction,w=f.forceSubMenuRender,x=f.motion,k=f.defaultMotions,C=i.useState(!1),_=(0,n._)(C,2),S=_[0],E=_[1],T=m?(0,n.l)((0,n.l)({},X),A):(0,n.l)((0,n.l)({},G),A),M=$[d],O=Y(d,x,k),N=(0,n.l)((0,n.l)({},O),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),P=i.useRef();return i.useEffect(function(){return P.current=(0,n.G)(function(){E(r)}),function(){n.G.cancel(P.current)}},[r]),i.createElement(u.T,{prefixCls:t,popupClassName:(0,n.c)("".concat(t,"-popup"),(0,n.a)({},"".concat(t,"-rtl"),m),a),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:p,builtinPlacements:T,popupPlacement:M,popupVisible:S,popup:s,popupAlign:l&&{offset:l},action:c?[]:[v],mouseEnterDelay:g,mouseLeaveDelay:b,onPopupVisibleChange:h,forceRender:w,popupMotion:N},o)}function J(e){var t=e.id,r=e.open,o=e.keyPath,s=e.children,a="inline",l=i.useContext(y),c=l.prefixCls,u=l.forceSubMenuRender,d=l.motion,h=l.defaultMotions,f=l.mode,p=i.useRef(!1);p.current=f===a;var m=i.useState(!p.current),g=(0,n._)(m,2),b=g[0],v=g[1],w=!!p.current&&r;i.useEffect(function(){p.current&&v(!1)},[f]);var x=(0,n.l)({},Y(a,d,h));o.length>1&&(x.motionAppear=!1);var k=x.onVisibleChanged;return x.onVisibleChanged=function(e){return!p.current&&!e&&v(!0),null==k?void 0:k(e)},b?null:i.createElement(A,{mode:a,locked:!p.current},i.createElement(n.C,(0,n.g)({visible:w},x,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(e){var r=e.className,n=e.style;return i.createElement(K,{id:t,className:r,style:n},s)}))}var Z=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],ee=["active"],te=function(e){var t,r=e.style,o=e.className,s=e.title,l=e.eventKey,c=(e.warnKey,e.disabled),u=e.internalPopupClose,d=e.children,h=e.itemIcon,f=e.expandIcon,p=e.popupClassName,m=e.popupOffset,g=e.onClick,b=e.onMouseEnter,w=e.onMouseLeave,_=e.onTitleClick,S=e.onTitleMouseEnter,E=e.onTitleMouseLeave,T=(0,n.z)(e,Z),N=R(l),P=i.useContext(y),I=P.prefixCls,L=P.mode,B=P.openKeys,j=P.disabled,F=P.overflowDisabled,z=P.activeKey,U=P.selectedKeys,V=P.itemIcon,W=P.expandIcon,q=P.onItemClick,G=P.onOpenChange,X=P.onActive,Y=i.useContext(D)._internalRenderSubMenuItem,$=i.useContext(O).isSubPathKey,te=M(),re="".concat(I,"-submenu"),ne=j||
2c,ie=i.useRef(),oe=i.useRef(),se=h||V,ae=f||W,le=B.includes(l),ce=!F&&le,ue=$(U,l),de=v(l,ne,S,E),he=de.active,fe=(0,n.z)(de,ee),pe=i.useState(!1),me=(0,n._)(pe,2),ge=me[0],be=me[1],ye=function(e){ne||be(e)},Ae=i.useMemo(function(){return he||"inline"!==L&&(ge||$([z],l))},[L,he,z,ge,l,$]),ve=C(te.length),we=H(function(e){null==g||g(x(e)),q(e)}),xe=N&&"".concat(N,"-popup"),ke=i.createElement("div",(0,n.g)({role:"menuitem",style:ve,className:"".concat(re,"-title"),tabIndex:ne?null:-1,ref:ie,title:"string"==typeof s?s:null,"data-menu-id":F&&N?null:N,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":xe,"aria-disabled":ne,onClick:function(e){ne||(null==_||_({key:l,domEvent:e}),"inline"===L&&G(l,!le))},onFocus:function(){X(l)}},fe),s,i.createElement(k,{icon:"horizontal"!==L?ae:null,props:(0,n.l)((0,n.l)({},e),{},{isOpen:ce,isSubMenu:!0})},i.createElement("i",{className:"".concat(re,"-arrow")}))),Ce=i.useRef(L);if("inline"!==L&&(Ce.current=te.length>1?"vertical":L),!F){var _e=Ce.current;ke=i.createElement(Q,{mode:_e,prefixCls:re,visible:!u&&ce&&"inline"!==L,popupClassName:p,popupOffset:m,popup:i.createElement(A,{mode:"horizontal"===_e?"vertical":_e},i.createElement(K,{id:xe,ref:oe},d)),disabled:ne,onVisibleChange:function(e){"inline"!==L&&G(l,e)}},ke)}var Se=i.createElement(a.F.Item,(0,n.g)({role:"none"},T,{component:"li",style:r,className:(0,n.c)(re,"".concat(re,"-").concat(L),o,(t={},(0,n.a)(t,"".concat(re,"-open"),ce),(0,n.a)(t,"".concat(re,"-active"),Ae),(0,n.a)(t,"".concat(re,"-selected"),ue),(0,n.a)(t,"".concat(re,"-disabled"),ne),t)),onMouseEnter:function(e){ye(!0),null==b||b({key:l,domEvent:e})},onMouseLeave:function(e){ye(!1),null==w||w({key:l,domEvent:e})}}),ke,!F&&i.createElement(J,{id:xe,open:ce,keyPath:te},d));return Y&&(Se=Y(Se,e)),i.createElement(A,{onItemClick:we,mode:"horizontal"===L?"vertical":L,itemIcon:se,expandIcon:ae},Se)};
2function re(e){var t,r=e.eventKey,n=e.children,o=M(r),s=U(n,o),a=E();return i.useEffect(function(){if(a)return a.registerPath(r,o),function(){a.unregisterPath(r,o)}},[o]),t=a?s:i.createElement(te,e,s),i.createElement(T.Provider,{value:o},t)}var ne=l.K.LEFT,ie=l.K.RIGHT,oe=l.K.UP,se=l.K.DOWN,ae=l.K.ENTER,le=l.K.ESC,ce=l.K.HOME,ue=l.K.END,de=[oe,se,ne,ie];function he(e,t){return(0,d.g)(e,!0).filter(function(e){return t.has(e)})}function fe(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var i=he(e,t),o=i.length,s=i.findIndex(function(e){return r===e});return n<0?-1===s?s=o-1:s-=1:n>0&&(s+=1),i[s=(s+o)%o]}function pe(e,t,r,o,s,a,l,c,u,d){var h=i.useRef(),f=i.useRef();f.current=t;var p=function(){n.G.cancel(h.current)};return i.useEffect(function(){return function(){p()}},[]),function(i){var m=i.which;if([].concat(de,[ae,le,ce,ue]).includes(m)){var g,b,y,A=function(){return g=new Set,b=new Map,y=new Map,a().forEach(function(e){var t=document.querySelector("[data-menu-id='".concat(P(o,e),"']"));t&&(g.add(t),y.set(t,e),b.set(e,t))}),g};A();var v=function(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}(b.get(t),g),w=y.get(v),x=function(e,t,r,i){var o,s,a,l,c="prev",u="next",d="children",h="parent";if("inline"===e&&i===ae)return{inlineTrigger:!0};var f=(o={},(0,n.a)(o,oe,c),(0,n.a)(o,se,u),o),p=(s={},(0,n.a)(s,ne,r?u:c),(0,n.a)(s,ie,r?c:u),(0,n.a)(s,se,d),(0,n.a)(s,ae,d),s),m=(a={},(0,n.a)(a,oe,c),(0,n.a)(a,se,u),(0,n.a)(a,ae,d),(0,n.a)(a,le,h),(0,n.a)(a,ne,r?d:h),(0,n.a)(a,ie,r?h:d),a);switch(null===(l={inline:f,horizontal:p,vertical:m,inlineSub:f,horizontalSub:m,verticalSub:m}["".concat(e).concat(t?"":"Sub")])||void 0===l?void 0:l[i]){case c:return{offset:-1,sibling:!0};case u:return{offset:1,sibling:!0};case h:return{offset:-1,sibling:!1};case d:return{offset:1,sibling:!1};default:return null}}(e,1===l(w,!0).length,r,m);if(!x&&m!==ce&&m!==ue)return;(de.includes(m)||[ce,ue].includes(m))&&i.preventDefault();var k=function(e){if(e){var t=e,r=e.querySelector("a");null!=r&&r.getAttribute("href")&&(t=r);var i=y.get(e);c(i),p(),h.current=(0,n.G)(function(){f.current===i&&t.focus()})}};if([ce,ue].includes(m)||x.sibling||!v){var C;C=v&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(v):s.current;var _,S=he(C,g);_=m===ce?S[0]:m===ue?S[S.length-1]:fe(C,g,v,x.offset),k(_)}else if(x.inlineTrigger)u(w);else if(x.offset>0)u(w,!0),p(),h.current=(0,n.G)(function(){A();var e=v.getAttribute("aria-controls"),t=fe(document.getElementById(e),g);k(t)},5);else if(x.offset<0){var E=l(w,!0),T=E[E.length-2],M=b.get(T);u(T,!1),k(M)}}null==d||d(i)}}var me=Math.random().toFixed(5).toString().slice(2),ge=0;var be="__RC_UTIL_PATH_SPLIT__",ye=function(e){return e.join(be)},Ae="rc-menu-more";function ve(){var e=i.useState({}),t=(0,n._)(e,2)[1],r=(0,i.useRef)(new Map),o=(0,i.useRef)(new Map),s=i.useState([]),a=(0,n._)(s,2),l=a[0],c=a[1],u=(0,i.useRef)(0),d=(0,i.useRef)(!1),h=(0,i.useCallback)(function(e,n){var i=ye(n);o.current.set(i,e),r.current.set(e,i),u.current+=1;var s=u.current;!function(e){Promise.resolve().then(e)}(function(){s===u.current&&(d.current||t({}))})},[]),f=(0,i.useCallback)(function(e,t){var n=ye(t);o.current.delete(n),r.current.delete(e)},[]),p=(0,i.useCallback)(function(e){c(e)},[]),m=(0,i.useCallback)(function(e,t){var n=function(e){return e.split(be)}(r.current.get(e)||"");return t&&l.includes(n[0])&&n.unshift(Ae),n},[l]),g=(0,i.useCallback)(function(e,t){return e.some(function(e){return m(e,!0).includes(t)})},[m]),b=(0,i.useCallback)(function(e){var t="".concat(r.current.get(e)).concat(be),i=new Set;return(0,n.h)(o.current.keys()).forEach(function(e){e.startsWith(t)&&i.add(o.current.get(e))}),i},[]);return i.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:h,unregisterPath:f,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=(0,n.h)(r.current.keys());return l.length&&e.push(Ae),e},getSubPathKeys:b}}var we=["prefixCls","style","className","tabIndex","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],xe=[],ke=["className","title","eventKe
2y","children"],Ce=["children"],_e=function(e){var t=e.className,r=e.title;e.eventKey;var o=e.children,s=(0,n.z)(e,ke),a=i.useContext(y).prefixCls,l="".concat(a,"-item-group");return i.createElement("li",(0,n.g)({},s,{onClick:function(e){return e.stopPropagation()},className:(0,n.c)(l,t)}),i.createElement("div",{className:"".concat(l,"-title"),title:"string"==typeof r?r:void 0},r),i.createElement("ul",{className:"".concat(l,"-list")},o))};function Se(e){var t=e.children,r=(0,n.z)(e,Ce),o=U(t,M(r.eventKey));return E()?o:i.createElement(_e,(0,c.o)(r,["warnKey"]),o)}function Ee(e){var t=e.className,r=e.style,o=i.useContext(y).prefixCls;return E()?null:i.createElement("li",{className:(0,n.c)("".concat(o,"-item-divider"),t),style:r})}var Te=M,Me=function(e){var t,r,l=e.prefixCls,c=void 0===l?"rc-menu":l,u=e.style,d=e.className,h=e.tabIndex,f=void 0===h?0:h,p=e.children,m=e.direction,g=e.id,b=e.mode,y=void 0===b?"vertical":b,v=e.inlineCollapsed,w=e.disabled,k=e.disabledOverflow,C=e.subMenuOpenDelay,_=void 0===C?.1:C,E=e.subMenuCloseDelay,T=void 0===E?.1:E,M=e.forceSubMenuRender,P=e.defaultOpenKeys,R=e.openKeys,I=e.activeKey,L=e.defaultActiveFirst,B=e.selectable,j=void 0===B||B,F=e.multiple,V=void 0!==F&&F,W=e.defaultSelectedKeys,K=e.selectedKeys,q=e.onSelect,G=e.onDeselect,X=e.inlineIndent,Y=void 0===X?24:X,$=e.motion,Q=e.defaultMotions,J=e.triggerSubMenuAction,Z=void 0===J?"hover":J,ee=e.builtinPlacements,te=e.itemIcon,ne=e.expandIcon,ie=e.overflowedIndicator,oe=void 0===ie?"...":ie,se=e.overflowedIndicatorPopupClassName,ae=e.getPopupContainer,le=e.onClick,ce=e.onOpenChange,ue=e.onKeyDown,de=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),he=e._internalRenderSubMenuItem,fe=(0,n.z)(e,we),be=U(p,xe),ye=i.useState(!1),ke=(0,n._)(ye,2),Ce=ke[0],_e=ke[1],Se=i.useRef(),Ee=function(e){var t=(0,s.u)(e,{value:e}),r=(0,n._)(t,2),o=r[0],a=r[1];return i.useEffect(function(){ge+=1;var e="".concat(me,"-").concat(ge);a("rc-menu-uuid-".concat(e))},[]),o}(g),Te="rtl"===m,Me=i.useMemo(function(){return"inline"!==y&&"vertical"!==y||!v?[y,!1]:["vertical",v]},[y,v]),Oe=(0,n._)(Me,2),Ne=Oe[0],Pe=Oe[1],Re=i.useState(0),De=(0,n._)(Re,2),Ie=De[0],Le=De[1],Be=Ie>=be.length-1||"horizontal"!==Ne||k,je=(0,s.u)(P,{value:R,postState:function(e){return e||xe}}),Fe=(0,n._)(je,2),ze=Fe[0],Ue=Fe[1],He=function(e){Ue(e),null==ce||ce(e)},Ve=i.useState(ze),We=(0,n._)(Ve,2),Ke=We[0],qe=We[1],Ge="inline"===Ne,Xe=i.useRef(!1);i.useEffect(function(){Ge&&qe(ze)},[ze]),i.useEffect(function(){Xe.current?Ge?Ue(Ke):He(xe):Xe.current=!0},[Ge]);var Ye=ve(),$e=Ye.registerPath,Qe=Ye.unregisterPath,Je=Ye.refreshOverflowKeys,Ze=Ye.isSubPathKey,et=Ye.getKeyPath,tt=Ye.getKeys,rt=Ye.getSubPathKeys,nt=i.useMemo(function(){return{registerPath:$e,unregisterPath:Qe}},[$e,Qe]),it=i.useMemo(function(){return{isSubPathKey:Ze}},[Ze]);i.useEffect(function(){Je(Be?xe:be.slice(Ie+1).map(function(e){return e.key}))},[Ie,Be]);var ot=(0,s.u)(I||L&&(null===(t=be[0])||void 0===t?void 0:t.key),{value:I}),st=(0,n._)(ot,2),at=st[0],lt=st[1],ct=H(function(e){lt(e)}),ut=H(function(){lt(void 0)}),dt=(0,s.u)(W||[],{value:K,postState:function(e){return Array.isArray(e)?e:null==e?xe:[e]}}),ht=(0,n._)(dt,2),ft=ht[0],pt=ht[1],mt=H(function(e){null==le||le(x(e)),function(e){if(j){var t,r=e.key,i=ft.includes(r);t=V?i?ft.filter(function(e){return e!==r}):[].concat((0,n.h)(ft),[r]):[r],pt(t);var o=(0,n.l)((0,n.l)({},e),{},{selectedKeys:t});i?null==G||G(o):null==q||q(o)}!V&&ze.length&&"inline"!==Ne&&He(xe)}(e)}),gt=H(function(e,t){var r=ze.filter(function(t){return t!==e});if(t)r.push(e);else if("inline"!==Ne){var n=rt(e);r=r.filter(function(e){return!n.has(e)})}(0,o.s)(ze,r)||He(r)}),bt=H(ae),yt=pe(Ne,at,Te,Ee,Se,tt,et,lt,function(e,t){var r=null!=t?t:!ze.includes(e);gt(e,r)},ue);i.useEffect(function(){_e(!0)},[]);var At=i.useMemo(function(){return{_internalRenderMenuItem:de,_internalRenderSubMenuItem:he}},[de,he]),vt="horizontal"!==Ne||k?be:be.map(function(e,t){return i.createElement(A,{key:e.key,overflowDisabled:t>Ie},e)}),wt=i.createElement(a.F,(0,n.g)({id:g,ref:Se,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:z,className:(0,n.c)(c,"".concat(c,"-root"),"".concat(c,"-").concat(Ne),d,(r={},(0,n.a)(r,"".concat(c,"-inline-collapsed"),Pe),(0,n.a)(r,"".concat(c,"-rtl"),Te),r)),dir:m,style:u,role:"menu",tabIndex:f,data:vt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,r=t?be.slice(-t):null;return i.createElement(re,{eventKey:Ae,title:oe,disabled:Be,internalPopupClose:0===t,popupClassName:se},r)},maxCount:"horizontal"!==Ne||k?a.F.INVALIDATE:a.F.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Le(e)},onKeyDown:yt},fe));return i.createElement(D.Provider,{value:At},i.createElement(N.Provider,{value:Ee},i.createElement(A,{prefixCls:c,mode:Ne,openKeys:ze,rtl:Te,disabled:w,motion:Ce?$:null,defaultMotions:Ce?Q:null,activeKey:at,onActive:ct,onInactive:ut,selectedKeys:ft,inlineIndent:Y,subMenuOpenDelay:_,subMenuCloseDelay:T,forceSubMenuRender:M,builtinPlacements:ee,triggerSubMenuAction:Z,getPopupContainer:bt,itemIcon:te,expandIcon:ne,onItemClick:mt,onOpenChange:gt},i.createElement(O.Provider,{value:it},wt),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(S.Provider,{value:nt},be)))))};Me.Item=z,Me.SubMenu=re,Me.ItemGroup=Se,Me.Divider=Ee;const Oe=(0,i.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Ne=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},Pe=function(e){(0,n.b)(r,e);var t=(0,n.d)(r);function r(){var e;return(0,n.e)(this,r),(e=t.apply(this,arguments)).renderItem=function(t){var r,o,s=t.siderCollapsed,a=e.context,l=a.prefixCls,c=a.firstLevel,u=a.inlineCollapsed,d=a.direction,h=a.disableMenuItemTitleTooltip,m=e.props,g=m.className,b=m.children,y=e.props,A=y.title,v=y.icon,w=y.danger,x=Ne(y,["title","icon","danger"]),k=A;typeof A>"u"?k=c?b:"":!1===A&&(k="");var C={title:k};!s&&!u&&(C.title=null,C.visible=!1);
2var _=(0,n.t)(b).length,S=i.createElement(z,(0,n.g)({},x,{className:(0,n.c)((r={},(0,n.a)(r,"".concat(l,"-item-danger"),w),(0,n.a)(r,"".concat(l,"-item-only-child"),1===(v?_+1:_)),r),g),title:"string"==typeof A?A:void 0}),(0,f.c)(v,{className:(0,n.c)((0,f.i)(v)?null===(o=v.props)||void 0===o?void 0:o.className:"","".concat(l,"-item-icon"))}),e.renderItemChildren(u));return h||(S=i.createElement(p.T,(0,n.g)({},C,{placement:"rtl"===d?"left":"right",overlayClassName:"".concat(l,"-inline-collapsed-tooltip")}),S)),S},e}return(0,n.f)(r,[{key:"renderItemChildren",value:function(e){var t=this.context,r=t.prefixCls,n=t.firstLevel,o=this.props,s=o.icon,a=o.children,l=i.createElement("span",{className:"".concat(r,"-title-content")},a);return(!s||(0,f.i)(a)&&"span"===a.type)&&a&&e&&n&&"string"==typeof a?i.createElement("div",{className:"".concat(r,"-inline-collapsed-noicon")},a.charAt(0)):l}},{key:"render",value:function(){return i.createElement(m.a.Consumer,null,this.renderItem)}}]),r}(i.Component);Pe.contextType=Oe;var Re=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r};const De=function(e){var t=e.prefixCls,r=e.className,o=e.dashed,s=Re(e,["prefixCls","className","dashed"]),a=(0,i.useContext(n.k).getPrefixCls)("menu",t),l=(0,n.c)((0,n.a)({},"".concat(a,"-item-divider-dashed"),!!o),r);return i.createElement(Ee,(0,n.g)({className:l},s))};var Ie=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},Le=function(e){(0,n.b)(r,e);var t=(0,n.d)(r);function r(e){var o;return(0,n.e)(this,r),(o=t.call(this,e)).renderMenu=function(e){var t=e.getPopupContainer,r=e.getPrefixCls,s=e.direction,a=r(),l=o.props,u=l.prefixCls,d=l.className,p=l.theme,m=l.expandIcon,b=l._internalDisableMenuItemTitleTooltip,y=Ie(l,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip"]),A=(0,c.o)(y,["siderCollapsed","collapsedWidth"]),v=o.getInlineCollapsed(),w={horizontal:{motionName:"".concat(a,"-slide-up")},inline:g.c,other:{motionName:"".concat(a,"-zoom-big")}},x=r("menu",u),k=(0,n.c)("".concat(x,"-").concat(p),d),C=(0,n.T)(function(e,t,r,n,i){return{prefixCls:e,inlineCollapsed:t||!1,antdMenuTheme:r,direction:n,firstLevel:!0,disableMenuItemTitleTooltip:i}})(x,v,p,s,b);return i.createElement(Oe.Provider,{value:C},i.createElement(Me,(0,n.g)({getPopupContainer:t,overflowedIndicator:i.createElement(h.E,null),overflowedIndicatorPopupClassName:"".concat(x,"-").concat(p)},A,{inlineCollapsed:v,className:k,prefixCls:x,direction:s,defaultMotions:w,expandIcon:(0,f.c)(m,{className:"".concat(x,"-submenu-expand-icon")})})))},(0,n.j)(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),(0,n.j)(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),o}return(0,n.f)(r,[{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,r=e.siderCollapsed;return void 0!==r?r:t}},{key:"render",value:function(){return i.createElement(n.L,null,this.renderMenu)}}]),r}(i.Component);Le.defaultProps={theme:"light"};var Be=function(e){(0,n.b)(r,e);var t=(0,n.d)(r);function r(){return(0,n.e)(this,r),t.apply(this,arguments)}return(0,n.f)(r,[{key:"render",value:function(){var e=this;return i.createElement(m.a.Consumer,null,function(t){return i.createElement(Le,(0,n.g)({},e.props,t))})}}]),r}(i.Component);Be.Divider=De,Be.Item=Pe,Be.SubMenu=function(e){var t,r,o=e.popupClassName,s=e.icon,a=e.title,l=i.useContext(Oe),u=l.prefixCls,d=l.inlineCollapsed,h=l.antdMenuTheme,p=Te();if(s){var m=(0,f.i)(a)&&"span"===a.type;r=i.createElement(i.Fragment,null,(0,f.c)(s,{className:(0,n.c)((0,f.i)(s)?null===(t=s.props)||void 0===t?void 0:t.className:"","".concat(u,"-item-icon"))}),m?a:i.createElement("span",{className:"".concat(u,"-title-content")},a))}else r=d&&!p.length&&a&&"string"==typeof a?i.createElement("div",{className:"".concat(u,"-inline-collapsed-noicon")},a.charAt(0)):i.createElement("span",{className:"".concat(u,"-title-content")},a);var g=i.useMemo(function(){return(0,n.g)((0,n.g)({},l),{firstLevel:!1})},[l]);return i.createElement(Oe.Provider,{value:g},i.createElement(re,(0,n.g)({},(0,c.o)(e,["icon"]),{title:r,popupClassName:(0,n.c)(u,"".concat(u,"-").concat(h),o)})))},Be.ItemGroup=Se;const je=Be},6697(e,t,r){"use strict";r.d(t,{A:()=>v});var n=r(6744),i=r(9950),o=r(4501),s=r(6042);var a=i.createContext(null),l=a.Provider;const c=a;var u=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},d=function(e,t){var r,s=i.useContext(c),a=i.useContext(n.k),l=a.getPrefixCls,d=a.direction,h=i.useRef(),f=(0,n.v)(t,h);i.useEffect(function(){(0,n.j)(!("optionType"in e),"Radio","`optionType` is only support in Radio.Group.")},[]);var p=e.prefixCls,m=e.className,g=e.children,b=e.style,y=u(e,["prefixCls","className","children","style"]),A=l("radio",p),v=(0,n.g)({},y);s&&(v.name=s.name,v.onChange=function(t){var r,n;null===(r=e.onChange)||void 0===r||r.call(e,t),null===(n=null==s?void 0:s.onChange)||void 0===n||n.call(s,t)},v.checked=e.value===s.value,v.disabled=e.disabled||s.disabled);var w=(0,n.c)("".concat(A,"-wrapper"),(r={},(0,n.a)(r,"".concat(A,"-wrapper-checked"),v.checked),(0,n.a)(r,"".concat(A,"-wrapper-disabled"),v.disabled),(0,n.a)(r,"".concat(A,"-wrapper-rtl"),"rtl"===d),r),m);return i.createElement("label",{className:w,style:b,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave},i.createElement(o.C,(0,n.g)({},v,{type:"radio",prefixCls:A,ref:f})),void 0!==g?i.createElement("span",null,g):null)},h=i.forwardRef(d);h.displayName="Radio";const f=h;var p=i.forwardRef(function(e,t){var r=i.useContext(n.k),o=r.getPrefixCls,a=r.direction,c=i.useContext(n.S),u=(0,s.u)(e.defaultValue,{value:e.value}),d=(0,n._)(u,2),h=d[0],p=d[1];return i.createElement(l,{value:{onChange:function(t){var r=h,n=t.target.value;"value"in e||p(n);
2var i=e.onChange;i&&n!==r&&i(t)},value:h,disabled:e.disabled,name:e.name}},function(){var r,s=e.prefixCls,l=e.className,u=void 0===l?"":l,d=e.options,p=e.optionType,m=e.buttonStyle,g=void 0===m?"outline":m,b=e.disabled,y=e.children,A=e.size,v=e.style,w=e.id,x=e.onMouseEnter,k=e.onMouseLeave,C=o("radio",s),_="".concat(C,"-group"),S=y;if(d&&d.length>0){var E="button"===p?"".concat(C,"-button"):C;S=d.map(function(e){return"string"==typeof e||"number"==typeof e?i.createElement(f,{key:e.toString(),prefixCls:E,disabled:b,value:e,checked:h===e},e):i.createElement(f,{key:"radio-group-value-options-".concat(e.value),prefixCls:E,disabled:e.disabled||b,value:e.value,checked:h===e.value,style:e.style},e.label)})}var T=A||c,M=(0,n.c)(_,"".concat(_,"-").concat(g),(r={},(0,n.a)(r,"".concat(_,"-").concat(T),T),(0,n.a)(r,"".concat(_,"-rtl"),"rtl"===a),r),u);return i.createElement("div",(0,n.g)({},function(e){return Object.keys(e).reduce(function(t,r){return("data-"===r.substr(0,5)||"aria-"===r.substr(0,5)||"role"===r)&&"data-__"!==r.substr(0,7)&&(t[r]=e[r]),t},{})}(e),{className:M,style:v,onMouseEnter:x,onMouseLeave:k,id:w,ref:t}),S)}())});const m=i.memo(p);var g=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r},b=function(e,t){var r=i.useContext(c),o=i.useContext(n.k).getPrefixCls,s=e.prefixCls,a=g(e,["prefixCls"]),l=o("radio-button",s);return r&&(a.checked=e.value===r.value,a.disabled=e.disabled||r.disabled),i.createElement(f,(0,n.g)({prefixCls:l},a,{type:"radio",ref:t}))};const y=i.forwardRef(b);var A=f;A.Button=y,A.Group=m;const v=A},8281(e,t,r){"use strict";r.d(t,{u:()=>o});var n=r(6744),i=r(9950);function o(){var e=i.useReducer(function(e){return e+1},0);return(0,n._)(e,2)[1]}},7732(e,t,r){"use strict";r.d(t,{KE:()=>Mr,YY:()=>gr,CU:()=>ur,Db:()=>Kr,bP:()=>qr,Yv:()=>Gr,gk:()=>nt,AB:()=>Dr,T7:()=>$e,Nx:()=>Qe,gu:()=>yt,FF:()=>vt,iI:()=>Ze,hO:()=>wt,fl:()=>xt,Pg:()=>$,zU:()=>lt,QN:()=>St,J_:()=>Et,rU:()=>Pe,Op:()=>Ot,BQ:()=>Nt,OX:()=>Or,Zc:()=>Xr,KV:()=>at,jT:()=>Nr,Dd:()=>Hr,kj:()=>Vr,JJ:()=>Pr,tG:()=>Rr});var n=r(9206),i=r(3498),o=r(8973);const s=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function a(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("backward",e):r.parentOffset>0)?null:r}const l=(e,t,r)=>{let s=a(e,r);if(!s)return!1;let l=h(s);if(!l){let r=s.blockRange(),i=r&&(0,n.jP)(r);return null!=i&&(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)}let c=l.nodeBefore;if(C(e,l,t,-1))return!0;if(0==s.parent.content.size&&(u(c,"end")||o.nh.isSelectable(c)))for(let a=s.depth;;a--){let r=(0,n.$L)(e.doc,s.before(a),s.after(a),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(u(c,"end")?o.LN.findFrom(n.doc.resolve(n.mapping.map(l.pos,-1)),-1):o.nh.create(n.doc,l.pos-c.nodeSize)),t(n.scrollIntoView())}return!0}if(1==a||s.node(a-1).childCount>1)break}return!(!c.isAtom||l.depth!=s.depth-1)&&(t&&t(e.tr.delete(l.pos-c.nodeSize,l.pos).scrollIntoView()),!0)};function c(e,t,r){let s=t.nodeBefore,a=t.pos-1;for(;!s.isTextblock;a--){if(s.type.spec.isolating)return!1;let e=s.lastChild;if(!e)return!1;s=e}let l=t.nodeAfter,c=t.pos+1;for(;!l.isTextblock;c++){if(l.type.spec.isolating)return!1;let e=l.firstChild;if(!e)return!1;l=e}let u=(0,n.$L)(e.doc,a,c,i.Ji.empty);if(!u||u.from!=a||u instanceof n.Ln&&u.slice.size>=c-a)return!1;if(r){let t=e.tr.step(u);t.setSelection(o.U3.create(t.doc,a)),r(t.scrollIntoView())}return!0}function u(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)return!1}return!1}const d=(e,t,r)=>{let{$head:n,empty:i}=e.selection,s=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;s=h(n)}let a=s&&s.nodeBefore;return!(!a||!o.nh.isSelectable(a))&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function f(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)?null:r}const p=(e,t,r)=>{let s=f(e,r);if(!s)return!1;let a=g(s);if(!a)return!1;let l=a.nodeAfter;if(C(e,a,t,1))return!0;
2if(0==s.parent.content.size&&(u(l,"start")||o.nh.isSelectable(l))){let r=(0,n.$L)(e.doc,s.before(),s.after(),i.Ji.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(u(l,"start")?o.LN.findFrom(n.doc.resolve(n.mapping.map(a.pos)),1):o.nh.create(n.doc,n.mapping.map(a.pos))),t(n.scrollIntoView())}return!0}}return!(!l.isAtom||a.depth!=s.depth-1)&&(t&&t(e.tr.delete(a.pos,a.pos+l.nodeSize).scrollIntoView()),!0)},m=(e,t,r)=>{let{$head:n,empty:i}=e.selection,s=n;if(!i)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;s=g(n)}let a=s&&s.nodeAfter;return!(!a||!o.nh.isSelectable(a))&&(t&&t(e.tr.setSelection(o.nh.create(e.doc,s.pos)).scrollIntoView()),!0)};function g(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}const b=(e,t)=>{let{$head:r,$anchor:n}=e.selection;return!(!r.parent.type.spec.code||!r.sameParent(n))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function y(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const A=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let i=r.node(-1),s=r.indexAfter(-1),a=y(i.contentMatchAt(s));if(!a||!i.canReplaceWith(s,s,a))return!1;if(t){let n=r.after(),i=e.tr.replaceWith(n,n,a.createAndFill());i.setSelection(o.LN.near(i.doc.resolve(n),1)),t(i.scrollIntoView())}return!0},v=(e,t)=>
2{let r=e.selection,{$from:n,$to:i}=r;if(r instanceof o.i5||n.parent.inlineContent||i.parent.inlineContent)return!1;let s=y(i.parent.contentMatchAt(i.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let r=(!n.parentOffset&&i.index()<i.parent.childCount?n:i).pos,a=e.tr.insert(r,s.createAndFill());a.setSelection(o.U3.create(a.doc,r+1)),t(a.scrollIntoView())}return!0},w=(e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let i=r.before();if((0,n.zy)(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=r.blockRange(),o=i&&(0,n.jP)(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};const x=(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof o.nh&&e.selection.node.isBlock)return!(!r.parentOffset||!(0,n.zy)(e.doc,r.pos))&&(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let s,a,l=[],c=!1,u=!1;for(let n=r.depth;;n--){if(r.node(n).isBlock){c=r.end(n)==r.pos+(r.depth-n),u=r.start(n)==r.pos-(r.depth-n),a=y(r.node(n-1).contentMatchAt(r.indexAfter(n-1)));let e=k&&k(i.parent,c,r);l.unshift(e||(c&&a?{type:a}:null)),s=n;break}if(1==n)return!1;l.unshift(null)}let d=e.tr;(e.selection instanceof o.U3||e.selection instanceof o.i5)&&d.deleteSelection();let h=d.mapping.map(r.pos),f=(0,n.zy)(d.doc,h,l.length,l);if(f||(l[0]=a?{type:a}:null,f=(0,n.zy)(d.doc,h,l.length,l)),!f)return!1;if(d.split(h,l.length,l),!c&&u&&r.node(s).type!=a){let e=d.mapping.map(r.before(s)),t=d.doc.resolve(e);a&&r.node(s-1).canReplaceWith(t.index(),t.index()+1,a)&&d.setNodeMarkup(d.mapping.map(r.before(s)),a)}return t&&t(d.scrollIntoView()),!0};var k;function C(e,t,r,s){let a,l,c=t.nodeBefore,d=t.nodeAfter,h=c.type.spec.isolating||d.type.spec.isolating;if(!h&&function(e,t,r){let i=t.nodeBefore,o=t.nodeAfter,s=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(s-1,s)?(r&&r(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(s,s+1)||!o.isTextblock&&!(0,n.n9)(e.doc,t.pos))&&(r&&r(e.tr.join(t.pos).scrollIntoView()),!0))}(e,t,r))return!0;let f=!h&&t.parent.canReplace(t.index(),t.index()+1);if(f&&(a=(l=c.contentMatchAt(c.childCount)).findWrapping(d.type))&&l.matchType(a[0]||d.type).validEnd){if(r){let o=t.pos+d.nodeSize,s=i.FK.empty;for(let e=a.length-1;e>=0;e--)s=i.FK.from(a[e].create(null,s));s=i.FK.from(c.copy(s));let l=e.tr.step(new n.Wg(t.pos-1,o,t.pos,o,new i.Ji(s,1,0),a.length,!0)),u=l.doc.resolve(o+2*a.length);u.nodeAfter&&u.nodeAfter.type==c.type&&(0,n.n9)(l.doc,u.pos)&&l.join(u.pos),r(l.scrollIntoView())}return!0}let p=d.type.spec.isolating||s>0&&h?null:o.LN.findFrom(t,1),m=p&&p.$from.blockRange(p.$to),g=m&&(0,n.jP)(m);if(null!=g&&g>=t.depth)return r&&r(e.tr.lift(m,g).scrollIntoView()),!0;if(f&&u(d,"start",!0)&&u(c,"end")){let o=c,s=[];for(;s.push(o),!o.isTextblock;)o=o.lastChild;let a=d,l=1;for(;!a.isTextblock;a=a.firstChild)l++;if(o.canReplace(o.childCount,o.childCount,a.content)){if(r){let o=i.FK.empty;for(let e=s.length-1;e>=0;e--)o=i.FK.from(s[e].copy(o));r(e.tr.step(new n.Wg(t.pos-s.length,t.pos+d.nodeSize,t.pos+l,t.pos+d.nodeSize-l,new i.Ji(o,s.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function _(e){return function(t,r){let n=t.selection,i=e<0?n.$from:n.$to,s=i.depth;for(;i.node(s).isInline;){if(!s)return!1;s--}return!!i.node(s).isTextblock&&(r&&r(t.tr.setSelection(o.U3.create(t.doc,e<0?i.start(s):i.end(s)))),!0)}}const S=_(-1),E=_(1);function T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(r,n){let i=!1;for(let o=0;o<r.selection.ranges.length&&!i;o++){let{$from:{pos:n},$to:{pos:s}}=r.selection.ranges[o];r.doc.nodesBetween(n,s,(n,o)=>{if(i)return!1;if(n.isTextblock&&!n.hasMarkup(e,t))if(n.type==e)i=!0;else{let t=r.doc.resolve(o),n=t.index();i=t.parent.canReplaceWith(n,n+1,e)}})}if(!i)return!1;if(n){let i=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:o},$to:{pos:s}}=r.selection.ranges[n];i.setBlockType(o,s,e,t)}n(i.scrollIntoView())}return!0}}function M(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r,n){for(let i=0;i<t.length;i++)if(t[i](e,r,n))return!0;return!1}}let O=M(s,l,d),N=M(s,p,m);const P={Enter:M(b,v,w,x),"Mod-Enter":A,Backspace:O,"Mod-Backspace":O,"Shift-Backspace":O,Delete:N,"Mod-Delete":N,"Mod-a":(e,t)=>
2(t&&t(e.tr.setSelection(new o.i5(e.doc))),!0)},R={"Ctrl-h":P.Backspace,"Alt-Backspace":P["Mod-Backspace"],"Ctrl-d":P.Delete,"Ctrl-Alt-Backspace":P["Mod-Delete"],"Alt-Delete":P["Mod-Delete"],"Alt-d":P["Mod-Delete"],"Ctrl-a":S,"Ctrl-e":E};for(let Yr in P)R[Yr]=P[Yr];"undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&os.platform();function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(r,o){let{$from:s,$to:a}=r.selection,l=s.blockRange(a);if(!l)return!1;let c=o?r.tr:null;return!!function(e,t,r){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=!1,a=t,l=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(r)&&0==t.startIndex){if(0==t.$from.index(t.depth-1))return!1;let e=l.resolve(t.start-2);a=new i.u$(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new i.u$(t.$from,l.resolve(t.$to.end(t.depth)),t.depth)),s=!0}let c=(0,n.oM)(a,r,o,t);if(!c)return!1;e&&function(e,t,r,o,s){let a=i.FK.empty;for(let n=r.length-1;n>=0;n--)a=i.FK.from(r[n].type.create(r[n].attrs,a));e.step(new n.Wg(t.start-(o?2:0),t.end,t.start,t.end,new i.Ji(a,0,0),r.length,!0));let l=0;for(let n=0;n<r.length;n++)r[n].type==s&&(l=n+1);let c=r.length-l,u=t.start+r.length-(o?2:0),d=t.parent;for(let i=t.startIndex,h=t.endIndex,f=!0;i<h;i++,f=!1)!f&&(0,n.zy)(e.doc,u,c)&&(e.split(u,c),u+=2*c),u+=d.child(i).nodeSize}(e,t,c,s,r);return!0}(c,l,e,t)&&(o&&o(c.scrollIntoView()),!0)}}function I(e){return function(t,r){let{$from:o,$to:s}=t.selection,a=o.blockRange(s,t=>t.childCount>0&&t.firstChild.type==e);return!!a&&(!r||(o.node(a.depth-1).type==e?function(e,t,r,o){let s=e.tr,a=o.end,l=o.$to.end(o.depth);a<l&&(s.step(new n.Wg(a-1,l,a,l,new i.Ji(i.FK.from(r.create(null,o.parent.copy())),1,0),1,!0)),o=new i.u$(s.doc.resolve(o.$from.pos),s.doc.resolve(l),o.depth));const c=(0,n.jP)(o);if(null==c)return!1;s.lift(o,c);let u=s.doc.resolve(s.mapping.map(a,-1)-1);(0,n.n9)(s.doc,u.pos)&&u.nodeBefore.type==u.nodeAfter.type&&s.join(u.pos);return t(s.scrollIntoView()),!0}(t,r,e,a):function(e,t,r){let o=e.tr,s=r.parent;for(let n=r.end,i=r.endIndex-1,m=r.startIndex;i>m;i--)n-=s.child(i).nodeSize,o.delete(n-1,n+1);let a=o.doc.resolve(r.start),l=a.nodeAfter;if(o.mapping.map(r.end)!=r.start+a.nodeAfter.nodeSize)return!1;let c=0==r.startIndex,u=r.endIndex==s.childCount,d=a.node(-1),h=a.index(-1);if(!d.canReplace(h+(c?0:1),h+1,l.content.append(u?i.FK.empty:i.FK.from(s))))return!1;let f=a.pos,p=f+l.nodeSize;return o.step(new n.Wg(f-(c?1:0),p+(u?1:0),f+1,p-1,new i.Ji((c?i.FK.empty:i.FK.from(s.copy(i.FK.empty))).append(u?i.FK.empty:i.FK.from(s.copy(i.FK.empty))),c?0:1,u?0:1),c?0:1)),t(o.scrollIntoView()),!0}(t,r,a)))}}var L=r(7367),B=r(9112),j=Object.defineProperty,F=(e,t)=>{for(var r in t)j(e,r,{get:t[r],enumerable:!0})};function z(e){const{state:t,transaction:r}=e;let{selection:n}=r,{doc:i}=r,{storedMarks:o}=r;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return n},get doc(){return i},get tr(){return n=r.selection,i=r.doc,o=r.storedMarks,r}}}var U=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){var e=this;const{rawCommands:t,editor:r,state:n}=this,{view:i}=r,{tr:o}=n,s=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(t=>{let[r,n]=t;return[r,function(){const t=n(...arguments)(s);return o.getMeta("preventDispatch")||e.hasCustomState||i.dispatch(o),t}]}))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e){var t=this;let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{rawCommands:n,editor:i,state:o}=this,{view:s}=i,a=[],l=!!e,c=e||o.tr,u={...Object.fromEntries(Object.entries(n).map(e=>{let[n,i]=e;return[n,function(){const e=t.buildProps(c,r),n=i(...arguments)(e);return a.push(n),u}]})),run:()=>(l||!r||c.getMeta("preventDispatch")||this.hasCustomState||s.dispatch(c),a.every(e=>!0===e))};return u}createCan(e){const{rawCommands:t,state:r}=this,n=!1,i=e||r.tr,o=this.buildProps(i,n),s=Object.fromEntries(Object.entries(t).map(e=>{let[t,r]=e;return[t,function(){return r(...arguments)({...o,dispatch:void 0})}]}));return{...s,chain:()=>this.createChain(i,n)}}buildProps(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{rawCommands:r,editor:n,state:i}=this,{view:o}=n,s={tr:e,editor:n,view:o,state:z({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(e=>{let[t,r]=e;return[t,function(){return r(...arguments)(s)}]}))}};return s}},H={};F(H,{blur:()=>V,clearContent:()=>W,clearNodes:()=>K,command:()=>q,createParagraphNear:()=>G,cut:()=>X,deleteCurrentNode:()=>Y,deleteNode:()=>Q,deleteRange:()=>J,deleteSelection:()=>Z,enter:()=>ee,exitCode:()=>te,extendMarkRange:()=>le,first:()=>
2ce,focus:()=>me,forEach:()=>ge,insertContent:()=>be,insertContentAt:()=>we,joinBackward:()=>Ce,joinDown:()=>ke,joinForward:()=>_e,joinItemBackward:()=>Se,joinItemForward:()=>Ee,joinTextblockBackward:()=>Te,joinTextblockForward:()=>Me,joinUp:()=>xe,keyboardShortcut:()=>Ne,lift:()=>Re,liftEmptyBlock:()=>De,liftListItem:()=>Ie,newlineInCode:()=>Le,resetAttributes:()=>Fe,scrollIntoView:()=>ze,selectAll:()=>Ue,selectNodeBackward:()=>He,selectNodeForward:()=>Ve,selectParentNode:()=>We,selectTextblockEnd:()=>Ke,selectTextblockStart:()=>qe,setContent:()=>Xe,setMark:()=>It,setMeta:()=>Lt,setNode:()=>Bt,setNodeSelection:()=>jt,setTextDirection:()=>Ft,setTextSelection:()=>zt,sinkListItem:()=>Ut,splitBlock:()=>Vt,splitListItem:()=>Wt,toggleList:()=>Gt,toggleMark:()=>Xt,toggleNode:()=>Yt,toggleWrap:()=>$t,undoInputRule:()=>Qt,unsetAllMarks:()=>Jt,unsetMark:()=>Zt,unsetTextDirection:()=>er,updateAttributes:()=>tr,wrapIn:()=>rr,wrapInList:()=>nr});var V=()=>e=>{let{editor:t,view:r}=e;return requestAnimationFrame(()=>{var e;t.isDestroyed||(r.dom.blur(),null==(e=null==window?void 0:window.getSelection())||e.removeAllRanges())}),!0},W=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>{let{commands:r}=t;return r.setContent("",{emitUpdate:e})}},K=()=>e=>{let{state:t,tr:r,dispatch:i}=e;const{selection:o}=r,{ranges:s}=o;return!i||(s.forEach(e=>{let{$from:i,$to:o}=e;t.doc.nodesBetween(i.pos,o.pos,(e,t)=>{if(e.type.isText)return;const{doc:i,mapping:o}=r,s=i.resolve(o.map(t)),a=i.resolve(o.map(t+e.nodeSize)),l=s.blockRange(a);if(!l)return;const c=(0,n.jP)(l);if(e.type.isTextblock){const{defaultType:e}=s.parent.contentMatchAt(s.index());r.setNodeMarkup(l.start,e)}(c||0===c)&&r.lift(l,c)})}),!0)},q=e=>t=>e(t),G=()=>e=>{let{state:t,dispatch:r}=e;return v(t,r)},X=(e,t)=>r=>{let{editor:n,tr:i}=r;const{state:s}=n,a=s.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);const l=i.mapping.map(t);return i.insert(l,a.content),i.setSelection(new o.U3(i.doc.resolve(Math.max(l-1,0)))),!0},Y=()=>e=>{let{tr:t,dispatch:r}=e;const{selection:n}=t,i=n.$anchor.node();if(i.content.size>0)return!1;const o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1){if(o.node(s).type===i.type){if(r){const e=o.before(s),r=o.after(s);t.delete(e,r).scrollIntoView()}return!0}}return!1};function $(e,t){if("string"===typeof e){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Q=e=>t=>{let{tr:r,state:n,dispatch:i}=t;const o=$(e,n.schema),s=r.selection.$anchor;for(let e=s.depth;e>0;e-=1){if(s.node(e).type===o){if(i){const t=s.before(e),n=s.after(e);r.delete(t,n).scrollIntoView()}return!0}}return!1},J=e=>t=>{let{tr:r,dispatch:n}=t;const{from:i,to:o}=e;return n&&r.delete(i,o),!0},Z=()=>e=>{let{state:t,dispatch:r}=e;return s(t,r)},ee=()=>e=>{let{commands:t}=e;return t.keyboardShortcut("Enter")},te=()=>e=>{let{state:t,dispatch:r}=e;return A(t,r)};function re(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function ne(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{strict:!0};const n=Object.keys(t);return!n.length||n.every(n=>r.strict?t[n]===e[n]:re(t[n])?t[n].test(e[n]):t[n]===e[n])}function ie(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.find(e=>e.type===t&&ne(Object.fromEntries(Object.keys(r).map(t=>[t,e.attrs[t]])),r))}function oe(e,t){return!!ie(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})}function se(e,t,r){var n;if(!e||!t)return;let i=e.parent.childAfter(e.parentOffset);if(i.node&&i.node.marks.some(e=>e.type===t)||(i=e.parent.childBefore(e.parentOffset)),!i.node||!i.node.marks.some(e=>e.type===t))return;r=r||(null==(n=i.node.marks[0])?void 0:n.attrs);if(!ie([...i.node.marks],t,r))return;let o=i.index,s=e.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(;o>0&&oe([...e.parent.child(o-1).marks],t,r);)o-=1,s-=e.parent.child(o).nodeSize;for(;a<e.parent.childCount&&oe([...e.parent.child(a).marks],t,r);)l+=e.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function ae(e,t){if("string"===typeof e){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var le=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{tr:n,state:i,dispatch:s}=r;const a=ae(e,i.schema),{doc:l,selection:c}=n,{$from:u,from:d,to:h}=c;if(s){const e=se(u,a,t);if(e&&e.from<=d&&e.to>=h){const t=o.U3.create(l,e.from,e.to);n.setSelection(t)}}return!0}},ce=e=>t=>{const r="function"===typeof e?e(t):e;for(let e=0;e<r.length;e+=1)if(r[e](t))return!0;return!1};function ue(e){return e instanceof o.U3}function de(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.min(Math.max(e,t),r)}function he(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return null;const r=o.LN.atStart(e),n=o.LN.atEnd(e);if("start"===t||!0===t)return r;if("end"===t)return n;const i=r.from,s=n.to;return"all"===t?o.U3.create(e,de(0,i,s),de(e.content.size,i,s)):o.U3.create(e,de(t,i,s),de(t,i,s))}function fe(){return"Android"===navigator.platform||/android/i.test(navigator.userAgent)}function pe(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}var me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{editor:n,view:i,tr:o,dispatch:s}=r;t={scrollIntoView:!0,...t};const a=()=>{(pe()||fe())&&i.dom.focus(),"undefined"===typeof navigator||!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||pe()||fe()||i.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(i.focus(),(null==t?void 0:t.scrollIntoView)&&n.commands.scrollIntoView())})};try{if(i.hasFocus()&&null===e||!1===e)return!0}catch{return!1}if(s&&null===e&&!ue(n.state.selection))return a(),!0;const l=he(o.doc,e)||n.state.selection,c=n.state.selection.eq(l);return s&&(c||o.setSelection(l),c&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0}},ge=(e,t)=>
2r=>e.every((e,n)=>t(e,{...r,index:n})),be=(e,t)=>r=>{let{tr:n,commands:i}=r;return i.insertContentAt({from:n.selection.from,to:n.selection.to},e,t)},ye=e=>{const t=e.childNodes;for(let r=t.length-1;r>=0;r-=1){const n=t[r];3===n.nodeType&&n.nodeValue&&/^(\n\s\s|\n)$/.test(n.nodeValue)?e.removeChild(n):1===n.nodeType&&ye(n)}return e};function Ae(e){if("undefined"===typeof window)throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const t=`<body>${e}</body>`,r=(new window.DOMParser).parseFromString(t,"text/html").body;return ye(r)}function ve(e,t,r){if(e instanceof i.bP||e instanceof i.FK)return e;r={slice:!0,parseOptions:{},...r};const n="string"===typeof e;if("object"===typeof e&&null!==e)try{if(Array.isArray(e)&&e.length>0)return i.FK.fromArray(e.map(e=>t.nodeFromJSON(e)));const n=t.nodeFromJSON(e);return r.errorOnInvalidContent&&n.check(),n}catch(o){if(r.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",o),ve("",t,r)}if(n){if(r.errorOnInvalidContent){let n=!1,o="";const s=new i.Sj({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:e=>(n=!0,o="string"===typeof e?e:e.outerHTML,null)}]}})});if(r.slice?i.S4.fromSchema(s).parseSlice(Ae(e),r.parseOptions):i.S4.fromSchema(s).parse(Ae(e),r.parseOptions),r.errorOnInvalidContent&&n)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${o}`)})}const n=i.S4.fromSchema(t);return r.slice?n.parseSlice(Ae(e),r.parseOptions).content:n.parse(Ae(e),r.parseOptions)}return ve("",t,r)}var we=(e,t,r)=>s=>{let{tr:a,dispatch:l,editor:c}=s;var u;if(l){let s;const l=e=>{c.emit("contentError",{editor:c,error:e,disableCollaboration:()=>{"collaboration"in c.storage&&"object"===typeof c.storage.collaboration&&c.storage.collaboration&&(c.storage.collaboration.isDisabled=!0)}})},h={preserveWhitespace:"full",...(r={parseOptions:c.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...r}).parseOptions};if(!r.errorOnInvalidContent&&!c.options.enableContentCheck&&c.options.emitContentError)try{ve(t,c.schema,{parseOptions:h,errorOnInvalidContent:!0})}catch(d){l(d)}try{s=ve(t,c.schema,{parseOptions:h,errorOnInvalidContent:null!=(u=r.errorOnInvalidContent)?u:c.options.enableContentCheck})}catch(d){return l(d),!1}let{from:f,to:p}="number"===typeof e?{from:e,to:e}:{from:e.from,to:e.to},m=!0,g=!0;
2if(("type"in s?[s]:s).forEach(e=>{e.check(),m=!!m&&(e.isText&&0===e.marks.length),g=!!g&&e.isBlock}),f===p&&g){const{parent:e}=a.doc.resolve(f);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(f-=1,p+=1)}let b;if(m){if(Array.isArray(t))b=t.map(e=>e.text||"").join("");else if(t instanceof i.FK){let e="";t.forEach(t=>{t.text&&(e+=t.text)}),b=e}else b="object"===typeof t&&t&&t.text?t.text:t;a.insertText(b,f,p)}else{b=s;const e=a.doc.resolve(f),t=e.node(),r=0===e.parentOffset,n=t.isText||t.isTextblock,i=t.content.size>0;r&&n&&i&&(f=Math.max(0,f-1)),a.replaceWith(f,p,b)}r.updateSelection&&function(e,t,r){const i=e.steps.length-1;if(i<t)return;const s=e.steps[i];if(!(s instanceof n.Ln||s instanceof n.Wg))return;const a=e.mapping.maps[i];let l=0;a.forEach((e,t,r,n)=>{0===l&&(l=n)}),e.setSelection(o.LN.near(e.doc.resolve(l),r))}(a,a.steps.length-1,-1),r.applyInputRules&&a.setMeta("applyInputRules",{from:f,text:b}),r.applyPasteRules&&a.setMeta("applyPasteRules",{from:f,text:b})}return!0},xe=()=>e=>{let{state:t,dispatch:r}=e;return((e,t)=>{let r,i=e.selection,s=i instanceof o.nh;if(s){if(i.node.isTextblock||!(0,n.n9)(e.doc,i.from))return!1;r=i.from}else if(r=(0,n.N0)(e.doc,i.from,-1),null==r)return!1;if(t){let n=e.tr.join(r);s&&n.setSelection(o.nh.create(n.doc,r-e.doc.resolve(r).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0})(t,r)},ke=()=>e=>{let{state:t,dispatch:r}=e;return((e,t)=>{let r,i=e.selection;if(i instanceof o.nh){if(i.node.isTextblock||!(0,n.n9)(e.doc,i.to))return!1;r=i.to}else if(r=(0,n.N0)(e.doc,i.to,1),null==r)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0})(t,r)},Ce=()=>e=>{let{state:t,dispatch:r}=e;return l(t,r)},_e=()=>e=>{let{state:t,dispatch:r}=e;return p(t,r)},Se=()=>e=>{let{state:t,dispatch:r,tr:i}=e;try{const e=(0,n.N0)(t.doc,t.selection.$from.pos,-1);return null!==e&&void 0!==e&&(i.join(e,2),r&&r(i),!0)}catch{return!1}},Ee=()=>e=>{let{state:t,dispatch:r,tr:i}=e;try{const e=(0,n.N0)(t.doc,t.selection.$from.pos,1);return null!==e&&void 0!==e&&(i.join(e,2),r&&r(i),!0)}catch{return!1}},Te=()=>e=>{let{state:t,dispatch:r}=e;return((e,t,r)=>{let n=a(e,r);if(!n)return!1;let i=h(n);return!!i&&c(e,i,t)})(t,r)},Me=()=>e=>{let{state:t,dispatch:r}=e;return((e,t,r)=>{let n=f(e,r);if(!n)return!1;let i=g(n);return!!i&&c(e,i,t)})(t,r)};function Oe(){return"undefined"!==typeof navigator&&/Mac/.test(navigator.platform)}var Ne=e=>t=>{let{editor:r,view:n,tr:i,dispatch:o}=t;const s=function(e){const t=e.split(/-(?!$)/);let r,n,i,o,s=t[t.length-1];"Space"===s&&(s=" ");for(let a=0;a<t.length-1;a+=1){const e=t[a];if(/^(cmd|meta|m)$/i.test(e))o=!0;else if(/^a(lt)?$/i.test(e))r=!0;else if(/^(c|ctrl|control)$/i.test(e))n=!0;else if(/^s(hift)?$/i.test(e))i=!0;else{if(!/^mod$/i.test(e))throw new Error(`Unrecognized modifier name: ${e}`);pe()||Oe()?o=!0:n=!0}}return r&&(s=`Alt-${s}`),n&&(s=`Ctrl-${s}`),o&&(s=`Meta-${s}`),i&&(s=`Shift-${s}`),s}(e).split(/-(?!$)/),a=s.find(e=>!["Alt","Ctrl","Meta","Shift"].includes(e)),l=new KeyboardEvent("keydown",{key:"Space"===a?" ":a,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),c=r.captureTransaction(()=>{n.someProp("handleKeyDown",e=>e(n,l))});return null==c||c.steps.forEach(e=>{const t=e.map(i.mapping);t&&o&&i.maybeStep(t)}),!0};function Pe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{from:n,to:i,empty:o}=e.selection,s=t?$(t,e.schema):null,a=[];e.doc.nodesBetween(n,i,(e,t)=>{if(e.isText)return;const r=Math.max(n,t),o=Math.min(i,t+e.nodeSize);a.push({node:e,from:r,to:o})});const l=i-n,c=a.filter(e=>!s||s.name===e.node.type.name).filter(e=>ne(e.node.attrs,r,{strict:!1}));if(o)return!!c.length;return c.reduce((e,t)=>e+t.to-t.from,0)>=l}var Re=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{state:i,dispatch:o}=r;return!!Pe(i,$(e,i.schema),t)&&((e,t)=>{let{$from:r,$to:i}=e.selection,o=r.blockRange(i),s=o&&(0,n.jP)(o);return null!=s&&(t&&t(e.tr.lift(o,s).scrollIntoView()),!0)})(i,o)}},De=()=>e=>{let{state:t,dispatch:r}=e;return w(t,r)},Ie=e=>t=>{let{state:r,dispatch:n}=t;return I($(e,r.schema))(r,n)},Le=()=>e=>{let{state:t,dispatch:r}=e;return b(t,r)};function Be(e,t){return t.nodes[e]?"node":t.marks[e]?"mark":null}function je(e,t){const r="string"===typeof t?[t]:t;return Object.keys(e).reduce((t,n)=>(r.includes(n)||(t[n]=e[n]),t),{})}var Fe=(e,t)=>r=>{let{tr:n,state:i,dispatch:o}=r,s=null,a=null;const l=Be("string"===typeof e?e:e.name,i.schema);if(!l)return!1;"node"===l&&(s=$(e,i.schema)),"mark"===l&&(a=ae(e,i.schema));let c=!1;
2return n.selection.ranges.forEach(e=>{i.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{s&&s===e.type&&(c=!0,o&&n.setNodeMarkup(r,void 0,je(e.attrs,t))),a&&e.marks.length&&e.marks.forEach(i=>{a===i.type&&(c=!0,o&&n.addMark(r,r+e.nodeSize,a.create(je(i.attrs,t))))})})}),c},ze=()=>e=>{let{tr:t,dispatch:r}=e;return r&&t.scrollIntoView(),!0},Ue=()=>e=>{let{tr:t,dispatch:r}=e;if(r){const e=new o.i5(t.doc);t.setSelection(e)}return!0},He=()=>e=>{let{state:t,dispatch:r}=e;return d(t,r)},Ve=()=>e=>{let{state:t,dispatch:r}=e;return m(t,r)},We=()=>e=>{let{state:t,dispatch:r}=e;return((e,t)=>{let r,{$from:n,to:i}=e.selection,s=n.sharedDepth(i);return 0!=s&&(r=n.before(s),t&&t(e.tr.setSelection(o.nh.create(e.doc,r))),!0)})(t,r)},Ke=()=>e=>{let{state:t,dispatch:r}=e;return E(t,r)},qe=()=>e=>{let{state:t,dispatch:r}=e;return S(t,r)};function Ge(e,t){return ve(e,t,{slice:!1,parseOptions:arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},errorOnInvalidContent:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).errorOnInvalidContent})}var Xe=function(e){let{errorOnInvalidContent:t,emitUpdate:r=!0,parseOptions:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i=>{let{editor:o,tr:s,dispatch:a,commands:l}=i;const{doc:c}=s;if("full"!==n.preserveWhitespace){const i=Ge(e,o.schema,n,{errorOnInvalidContent:null!=t?t:o.options.enableContentCheck});return a&&s.replaceWith(0,c.content.size,i).setMeta("preventUpdate",!r),!0}return a&&s.setMeta("preventUpdate",!r),l.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:null!=t?t:o.options.enableContentCheck})}};function Ye(e,t){const r=ae(t,e.schema),{from:n,to:i,empty:o}=e.selection,s=[];o?(e.storedMarks&&s.push(...e.storedMarks),s.push(...e.selection.$head.marks())):e.doc.nodesBetween(n,i,e=>{s.push(...e.marks)});const a=s.find(e=>e.type.name===r.name);return a?{...a.attrs}:{}}function $e(e,t){const r=new n.dL(e);return t.forEach(e=>{e.steps.forEach(e=>{r.step(e)})}),r}function Qe(e,t,r){const n=[];return e.nodesBetween(t.from,t.to,(e,t)=>{r(e)&&n.push({node:e,pos:t})}),n}function Je(e){return t=>function(e,t){for(let r=e.depth;r>0;r-=1){const n=e.node(r);if(t(n))return{pos:r>0?e.before(r):0,start:e.start(r),depth:r,node:n}}}(t.$from,e)}function Ze(e,t,r){if(void 0===e.config[t]&&e.parent)return Ze(e.parent,t,r);if("function"===typeof e.config[t]){return e.config[t].bind({...r,parent:e.parent?Ze(e.parent,t,r):null})}return e.config[t]}function et(e){return e.map(e=>{const t=Ze(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return t?[e,...et(t())]:e}).flat(10)}function tt(e,t){const r=i.ZF.fromSchema(t).serializeFragment(e),n=document.implementation.createHTMLDocument().createElement("div");return n.appendChild(r),n.innerHTML}function rt(e){return"function"===typeof e}function nt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(rt(e)){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];return t?e.bind(t)(...n):e(...n)}return e}function it(e){return{baseExtensions:e.filter(e=>"extension"===e.type),nodeExtensions:e.filter(e=>"node"===e.type),markExtensions:e.filter(e=>"mark"===e.type)}}function ot(e){const t=[],{nodeExtensions:r,markExtensions:n}=it(e),i=[...r,...n],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=r.filter(e=>"text"!==e.name).map(e=>e.name),a=n.map(e=>e.name),l=[...s,...a];return e.forEach(e=>{const r=Ze(e,"addGlobalAttributes",{name:e.name,options:e.options,storage:e.storage,extensions:i});if(!r)return;r().forEach(e=>{let r;r=Array.isArray(e.types)?e.types:"*"===e.types?l:"nodes"===e.types?s:"marks"===e.types?a:[],r.forEach(r=>{Object.entries(e.attributes).forEach(e=>{let[n,i]=e;t.push({type:r,name:n,attribute:{...o,...i}})})})})}
2),i.forEach(e=>{const r={name:e.name,options:e.options,storage:e.storage},n=Ze(e,"addAttributes",r);if(!n)return;const i=n();Object.entries(i).forEach(r=>{let[n,i]=r;const s={...o,...i};"function"===typeof(null==s?void 0:s.default)&&(s.default=s.default()),(null==s?void 0:s.isRequired)&&void 0===(null==s?void 0:s.default)&&delete s.default,t.push({type:e.name,name:n,attribute:s})})}),t}function st(e){const t=[],r=function(e){const t=[];let r="",n=!1,i=!1,o=0;const s=e.length;for(let a=0;a<s;a+=1){const s=e[a];if("'"!==s||i)if('"'!==s||n){if(!n&&!i){if("("===s){o+=1,r+=s;continue}if(")"===s&&o>0){o-=1,r+=s;continue}if(";"===s&&0===o){t.push(r),r="";continue}}r+=s}else i=!i,r+=s;else n=!n,r+=s}return r&&t.push(r),t}(e||""),n=r.length;for(let i=0;i<n;i+=1){const e=r[i],n=e.indexOf(":");if(-1===n)continue;const o=e.slice(0,n).trim(),s=e.slice(n+1).trim();o&&s&&t.push([o,s])}return t}function at(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(e=>{let[t,n]=e;if(r[t])if("class"===t){const e=n?String(n).split(" "):[],i=r[t]?r[t].split(" "):[],o=e.filter(e=>!i.includes(e));r[t]=[...i,...o].join(" ")}else if("style"===t){const e=new Map([...st(r[t]),...st(n)]);r[t]=Array.from(e.entries()).map(e=>{let[t,r]=e;return`${t}: ${r}`}).join("; ")}else r[t]=n;else r[t]=n}),r},{})}function lt(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>at(e,t),{})}function ct(e,t){return"style"in e?e:{...e,getAttrs:r=>{const n=e.getAttrs?e.getAttrs(r):e.attrs;if(!1===n)return!1;const i=t.reduce((e,t)=>{const n=t.attribute.parseHTML?t.attribute.parseHTML(r):function(e){return"string"!==typeof e?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):"true"===e||"false"!==e&&e}(r.getAttribute(t.name));return null===n||void 0===n?e:{...e,[t.name]:n}},{});return{...n,...i}}}}function ut(e){return Object.fromEntries(Object.entries(e).filter(e=>{let[t,r]=e;return("attrs"!==t||!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length&&e.constructor===Object}(r))&&(null!==r&&void 0!==r)}))}function dt(e){var t,r;const n={};return!(null==(t=null==e?void 0:e.attribute)?void 0:t.isRequired)&&"default"in((null==e?void 0:e.attribute)||{})&&(n.default=e.attribute.default),void 0!==(null==(r=null==e?void 0:e.attribute)?void 0:r.validate)&&(n.validate=e.attribute.validate),[e.name,n]}function ht(e,t){var r;const n=ot(e),{nodeExtensions:o,markExtensions:s}=it(e),a=null==(r=o.find(e=>Ze(e,"topNode")))?void 0:r.name,l=Object.fromEntries(o.map(r=>{const i=n.filter(e=>e.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t},s=ut({...e.reduce((e,t)=>{const n=Ze(t,"extendNodeSchema",o);return{...e,...n?n(r):{}}},{}),content:nt(Ze(r,"content",o)),marks:nt(Ze(r,"marks",o)),group:nt(Ze(r,"group",o)),inline:nt(Ze(r,"inline",o)),atom:nt(Ze(r,"atom",o)),selectable:nt(Ze(r,"selectable",o)),draggable:nt(Ze(r,"draggable",o)),code:nt(Ze(r,"code",o)),whitespace:nt(Ze(r,"whitespace",o)),linebreakReplacement:nt(Ze(r,"linebreakReplacement",o)),defining:nt(Ze(r,"defining",o)),isolating:nt(Ze(r,"isolating",o)),attrs:Object.fromEntries(i.map(dt))}),a=nt(Ze(r,"parseHTML",o));a&&(s.parseDOM=a.map(e=>ct(e,i)));const l=Ze(r,"renderHTML",o);l&&(s.toDOM=e=>l({node:e,HTMLAttributes:lt(e,i)}));const c=Ze(r,"renderText",o);return c&&(s.toText=c),[r.name,s]})),c=Object.fromEntries(s.map(r=>{const i=n.filter(e=>e.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:t},s=ut({...e.reduce((e,t)=>{const n=Ze(t,"extendMarkSchema",o);return{...e,...n?n(r):{}}},{}),inclusive:nt(Ze(r,"inclusive",o)),excludes:nt(Ze(r,"excludes",o)),group:nt(Ze(r,"group",o)),spanning:nt(Ze(r,"spanning",o)),code:nt(Ze(r,"code",o)),attrs:Object.fromEntries(i.map(dt))}),a=nt(Ze(r,"parseHTML",o));a&&(s.parseDOM=a.map(e=>ct(e,i)));const l=Ze(r,"renderHTML",o);return l&&(s.toDOM=e=>l({mark:e,HTMLAttributes:lt(e,i)})),[r.name,s]}));return new i.Sj({topNode:a,nodes:l,marks:c})}function ft(e){return e.sort((e,t)=>
2{const r=Ze(e,"priority")||100,n=Ze(t,"priority")||100;return r>n?-1:r<n?1:0})}function pt(e){const t=ft(et(e)),r=function(e){const t=e.filter((t,r)=>e.indexOf(t)!==r);return Array.from(new Set(t))}(t.map(e=>e.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(", ")}]. This can lead to issues.`),t}function mt(e,t,r){const{from:n,to:i}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=r||{};let a="";return e.nodesBetween(n,i,(e,r,l,c)=>{var u;e.isBlock&&r>n&&(a+=o);const d=null==s?void 0:s[e.type.name];if(d)return l&&(a+=d({node:e,pos:r,parent:l,index:c,range:t})),!1;e.isText&&(a+=null==(u=null==e?void 0:e.text)?void 0:u.slice(Math.max(n,r)-r,i-r))}),a}function gt(e,t){return mt(e,{from:0,to:e.content.size},t)}function bt(e){return Object.fromEntries(Object.entries(e.nodes).filter(e=>{let[,t]=e;return t.spec.toText}).map(e=>{let[t,r]=e;return[t,r.spec.toText]}))}function yt(e,t){const r=Be("string"===typeof t?t:t.name,e.schema);return"node"===r?function(e,t){const r=$(t,e.schema),{from:n,to:i}=e.selection,o=[];e.doc.nodesBetween(n,i,e=>{o.push(e)});const s=o.reverse().find(e=>e.type.name===r.name);return s?{...s.attrs}:{}}(e,t):"mark"===r?Ye(e,t):{}}function At(e){const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.stringify;const r={};return e.filter(e=>{const n=t(e);return!Object.prototype.hasOwnProperty.call(r,n)&&(r[n]=!0)})}(e);return 1===t.length?t:t.filter((e,r)=>!t.filter((e,t)=>t!==r).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function vt(e){const{mapping:t,steps:r}=e,n=[];return t.maps.forEach((e,i)=>{const o=[];if(e.ranges.length)e.forEach((e,t)=>{o.push({from:e,to:t})});else{const{from:e,to:t}=r[i];if(void 0===e||void 0===t)return;o.push({from:e,to:t})}o.forEach(e=>{let{from:r,to:o}=e;const s=t.slice(i).map(r,-1),a=t.slice(i).map(o),l=t.invert().map(s,-1),c=t.invert().map(a);n.push({oldRange:{from:l,to:c},newRange:{from:s,to:a}})})}),At(n)}function wt(e,t,r){const n=[];return e===t?r.resolve(e).marks().forEach(t=>{const i=se(r.resolve(e),t.type);i&&n.push({mark:t,...i})}):r.nodesBetween(e,t,(e,t)=>{e&&void 0!==(null==e?void 0:e.nodeSize)&&n.push(...e.marks.map(r=>({from:t,to:t+e.nodeSize,mark:r})))}),n}var xt=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:20;const i=e.doc.resolve(r);let o=n,s=null;for(;o>0&&null===s;){const e=i.node(o);(null==e?void 0:e.type.name)===t?s=e:o-=1}return[s,o]};function kt(e,t){return t.nodes[e]||t.marks[e]||null}function Ct(e,t,r){return Object.fromEntries(Object.entries(r).filter(r=>{let[n]=r;const i=e.find(e=>e.type===t&&e.name===n);return!!i&&i.attribute.keepOnSplit}))}function _t(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{empty:n,ranges:i}=e.selection,o=t?ae(t,e.schema):null;if(n)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>!o||o.name===e.type.name).find(e=>ne(e.attrs,r,{strict:!1}));let s=0;const a=[];if(i.forEach(t=>{let{$from:r,$to:n}=t;const i=r.pos,l=n.pos;e.doc.nodesBetween(i,l,(e,t)=>{if(o&&e.inlineContent&&!e.type.allowsMarkType(o))return!1;if(!e.isText&&!e.marks.length)return;const r=Math.max(i,t),n=Math.min(l,t+e.nodeSize);s+=n-r,a.push(...e.marks.map(e=>({mark:e,from:r,to:n})))})}),0===s)return!1;const l=a.filter(e=>!o||o.name===e.mark.type.name).filter(e=>ne(e.mark.attrs,r,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),c=a.filter(e=>!o||e.mark.type!==o&&e.mark.type.excludes(o)).reduce((e,t)=>e+t.to-t.from,0);return(l>0?l+c:l)>=s}var St=(e,t)=>{const{$from:r,$to:n,$anchor:i}=e.selection;if(t){const r=Je(e=>e.type.name===t)(e.selection);if(!r)return!1;const n=e.doc.resolve(r.pos+1);return i.pos+1===n.end()}return!(n.parentOffset<n.parent.nodeSize-2||r.pos!==n.pos)},Et=e=>{const{$from:t,$to:r}=e.selection;return!(t.parentOffset>0||t.pos!==r.pos)};function Tt(e,t){return Array.isArray(t)?t.some(t=>("string"===typeof t?t:t.name)===e.name):t}function Mt(e,t){const{nodeExtensions:r}=it(t),n=r.find(t=>t.name===e);if(!n)return!1;const i=nt(Ze(n,"group",{name:n.name,options:n.options,storage:n.storage}));return"string"===typeof i&&i.split(" ").includes("list")}function Ot(e){let{checkChildren:t=!0,ignoreWhitespace:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;
2if(r){if("hardBreak"===e.type.name)return!0;if(e.isText)return/^\s*$/m.test(null!=(n=e.text)?n:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(0===e.content.childCount)return!0;if(t){let n=!0;return e.content.forEach(e=>{!1!==n&&(Ot(e,{ignoreWhitespace:r,checkChildren:t})||(n=!1))}),n}return!1}function Nt(e){return e instanceof o.nh}var Pt=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function Rt(e,t){const r=t.mapping.mapResult(e.position);return{position:new Pt(r.pos),mapResult:r}}function Dt(e){return new Pt(e)}var It=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{tr:n,state:i,dispatch:o}=r;const{selection:s}=n,{empty:a,ranges:l}=s,c=ae(e,i.schema);if(o)if(a){const e=Ye(i,c);n.addStoredMark(c.create({...e,...t}))}else l.forEach(e=>{const r=e.$from.pos,o=e.$to.pos;i.doc.nodesBetween(r,o,(e,i)=>{const s=Math.max(i,r),a=Math.min(i+e.nodeSize,o);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(s,a,c.create({...e.attrs,...t}))}):n.addMark(s,a,c.create(t))})});return function(e,t,r){var n;const{selection:i}=t;let o=null;
2if(ue(i)&&(o=i.$cursor),o){const t=null!=(n=e.storedMarks)?n:o.marks();return o.parent.type.allowsMarkType(r)&&(!!r.isInSet(t)||!t.some(e=>e.type.excludes(r)))}const{ranges:s}=i;return s.some(t=>{let{$from:n,$to:i}=t,o=0===n.depth&&e.doc.inlineContent&&e.doc.type.allowsMarkType(r);return e.doc.nodesBetween(n.pos,i.pos,(e,t,n)=>{if(o)return!1;if(e.isInline){const t=!n||n.type.allowsMarkType(r),i=!!r.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(r));o=t&&i}return!o}),o})}(i,n,c)}},Lt=(e,t)=>r=>{let{tr:n}=r;return n.setMeta(e,t),!0},Bt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{state:n,dispatch:i,chain:o}=r;const s=$(e,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),s.isTextblock?o().command(e=>{let{commands:r}=e;return!!T(s,{...a,...t})(n)||r.clearNodes()}).command(e=>{let{state:r}=e;return T(s,{...a,...t})(r,i)}).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)}},jt=e=>t=>{let{tr:r,dispatch:n}=t;if(n){const{doc:t}=r,n=de(e,0,t.content.size),i=o.nh.create(t,n);r.setSelection(i)}return!0},Ft=(e,t)=>r=>{let{tr:n,state:i,dispatch:o}=r;const{selection:s}=i;let a,l;return"number"===typeof t?(a=t,l=t):t&&"from"in t&&"to"in t?(a=t.from,l=t.to):(a=s.from,l=s.to),o&&n.doc.nodesBetween(a,l,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},zt=e=>t=>{let{tr:r,dispatch:n}=t;if(n){const{doc:t}=r,{from:n,to:i}="number"===typeof e?{from:e,to:e}:e,s=o.U3.atStart(t).from,a=o.U3.atEnd(t).to,l=de(n,s,a),c=de(i,s,a),u=o.U3.create(t,l,c);r.setSelection(u)}return!0},Ut=e=>t=>{let{state:r,dispatch:o}=t;const s=$(e,r.schema);return(a=s,function(e,t){let{$from:r,$to:o}=e.selection,s=r.blockRange(o,e=>e.childCount>0&&e.firstChild.type==a);if(!s)return!1;let l=s.startIndex;if(0==l)return!1;let c=s.parent,u=c.child(l-1);if(u.type!=a)return!1;if(t){let r=u.lastChild&&u.lastChild.type==c.type,o=i.FK.from(r?a.create():null),l=new i.Ji(i.FK.from(a.create(null,i.FK.from(c.type.create(null,o)))),r?3:1,0),d=s.start,h=s.end;t(e.tr.step(new n.Wg(d-(r?3:1),h,d,h,l,1,!0)).scrollIntoView())}return!0})(r,o);var a};function Ht(e,t){const r=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(r){const n=r.filter(e=>null==t?void 0:t.includes(e.type.name));e.tr.ensureMarks(n)}}var Vt=function(){let{keepMarks:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{tr:r,state:i,dispatch:s,editor:a}=t;const{selection:l,doc:c}=r,{$from:u,$to:d}=l,h=Ct(a.extensionManager.attributes,u.node().type.name,u.node().attrs);if(l instanceof o.nh&&l.node.isBlock)return!(!u.parentOffset||!(0,n.zy)(c,u.pos))&&(s&&(e&&Ht(i,a.extensionManager.splittableMarks),r.split(u.pos).scrollIntoView()),!0);if(!u.parent.isBlock)return!1;const f=d.parentOffset===d.parent.content.size,p=0===u.depth?void 0:function(e){for(let t=0;t<e.edgeCount;t+=1){const{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}(u.node(-1).contentMatchAt(u.indexAfter(-1)));let m=f&&p?[{type:p,attrs:h}]:void 0,g=(0,n.zy)(r.doc,r.mapping.map(u.pos),1,m);if(m||g||!(0,n.zy)(r.doc,r.mapping.map(u.pos),1,p?[{type:p}]:void 0)||(g=!0,m=p?[{type:p,attrs:h}]:void 0),s){if(g&&(l instanceof o.U3&&r.deleteSelection(),r.split(r.mapping.map(u.pos),1,m),p&&!f&&!u.parentOffset&&u.parent.type!==p)){const e=r.mapping.map(u.before()),t=r.doc.resolve(e);u.node(-1).canReplaceWith(t.index(),t.index()+1,p)&&r.setNodeMarkup(r.mapping.map(u.before()),p)}e&&Ht(i,a.extensionManager.splittableMarks),r.scrollIntoView()}return g}},Wt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{tr:s,state:a,dispatch:l,editor:c}=r;var u;const d=$(e,a.schema),{$from:h,$to:f}=a.selection,p=a.selection.node;if(p&&p.isBlock||h.depth<2||!h.sameParent(f))return!1;const m=h.node(-1);if(m.type!==d)return!1;const g=c.extensionManager.attributes;if(0===h.parent.content.size&&h.node(-1).childCount===h.indexAfter(-1)){if(2===h.depth||h.node(-3).type!==d||h.index(-2)!==h.node(-2).childCount-1)return!1;if(l){let e=i.FK.empty;const r=h.index(-1)?1:h.index(-2)?2:3;for(let t=h.depth-r;t>=h.depth-3;t-=1)e=i.FK.from(h.node(t).copy(e));const n=h.indexAfter(-1)<h.node(-2).childCount?1:h.indexAfter(-2)<h.node(-3).childCount?2:3,a={...Ct(g,h.node().type.name,h.node().attrs),...t},l=(null==(u=d.contentMatch.defaultType)?void 0:u.createAndFill(a))||void 0;e=e.append(i.FK.from(d.createAndFill(null,l)||void 0));const c=h.before(h.depth-(r-1));s.replace(c,h.after(-n),new i.Ji(e,4-r,0));let f=-1;s.doc.nodesBetween(c,s.doc.content.size,(e,t)=>{if(f>-1)return!1;e.isTextblock&&0===e.content.size&&(f=t+1)}),f>-1&&s.setSelection(o.U3.near(s.doc.resolve(f))),s.scrollIntoView()}return!0}const b=f.pos===h.end()?m.contentMatchAt(0).defaultType:null,y={...Ct
2(g,m.type.name,m.attrs),...t},A={...Ct(g,h.node().type.name,h.node().attrs),...t};s.delete(h.pos,f.pos);const v=b?[{type:d,attrs:y},{type:b,attrs:A}]:[{type:d,attrs:y}];if(!(0,n.zy)(s.doc,h.pos,2))return!1;if(l){const{selection:e,storedMarks:t}=a,{splittableMarks:r}=c.extensionManager,n=t||e.$to.parentOffset&&e.$from.marks();if(s.split(h.pos,2,v).scrollIntoView(),!n||!l)return!0;const i=n.filter(e=>r.includes(e.type.name));s.ensureMarks(i)}return!0}},Kt=(e,t)=>{const r=Je(e=>e.type===t)(e.selection);if(!r)return!0;const i=e.doc.resolve(Math.max(0,r.pos-1)).before(r.depth);if(void 0===i)return!0;const o=e.doc.nodeAt(i);return r.node.type!==(null==o?void 0:o.type)||!(0,n.n9)(e.doc,r.pos)||(e.join(r.pos),!0)},qt=(e,t)=>{const r=Je(e=>e.type===t)(e.selection);if(!r)return!0;const i=e.doc.resolve(r.start).after(r.depth);if(void 0===i)return!0;const o=e.doc.nodeAt(i);return r.node.type!==(null==o?void 0:o.type)||!(0,n.n9)(e.doc,i)||(e.join(i),!0)},Gt=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return i=>{let{editor:o,tr:s,state:a,dispatch:l,chain:c,commands:u,can:d}=i;const{extensions:h,splittableMarks:f}=o.extensionManager,p=$(e,a.schema),m=$(t,a.schema),{selection:g,storedMarks:b}=a,{$from:y,$to:A}=g,v=y.blockRange(A),w=b||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;const x=Je(e=>Mt(e.type.name,h))(g);if(v.depth>=1&&x&&v.depth-x.depth<=1){if(x.node.type===p)return u.liftListItem(m);if(Mt(x.node.type.name,h)&&p.validContent(x.node.content)&&l)return c().command(()=>(s.setNodeMarkup(x.pos,p),!0)).command(()=>Kt(s,p)).command(()=>qt(s,p)).run()}return r&&w&&l?c().command(()=>{const e=d().wrapInList(p,n),t=w.filter(e=>f.includes(e.type.name));return s.ensureMarks(t),!!e||u.clearNodes()}).wrapInList(p,n).command(()=>Kt(s,p)).command(()=>qt(s,p)).run():c().command(()=>!!d().wrapInList(p,n)||u.clearNodes()).wrapInList(p,n).command(()=>Kt(s,p)).command(()=>qt(s,p)).run()}},Xt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let{state:i,commands:o}=n;const{extendEmptyMarkRange:s=!1}=r,a=ae(e,i.schema);return _t(i,a,t)?o.unsetMark(a,{extendEmptyMarkRange:s}):o.setMark(a,t)}},Yt=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=>{let{state:i,commands:o}=n;const s=$(e,i.schema),a=$(t,i.schema),l=Pe(i,s,r);let c;return i.selection.$anchor.sameParent(i.selection.$head)&&(c=i.selection.$anchor.parent.attrs),l?o.setNode(a,c):o.setNode(s,{...c,...r})}},$t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{state:n,commands:i}=r;const o=$(e,n.schema);return Pe(n,o,t)?i.lift(o):i.wrapIn(o,t)}},Qt=()=>e=>{let{state:t,dispatch:r}=e;const n=t.plugins;for(let i=0;i<n.length;i+=1){const e=n[i];let o;if(e.spec.isInputRules&&(o=e.getState(t))){if(r){const e=t.tr,r=o.transform;for(let t=r.steps.length-1;t>=0;t-=1)e.step(r.steps[t].invert(r.docs[t]));if(o.text){const r=e.doc.resolve(o.from).marks();e.replaceWith(o.from,o.to,t.schema.text(o.text,r))}else e.delete(o.from,o.to)}return!0}}return!1},Jt=()=>e=>{let{tr:t,dispatch:r}=e;const{selection:n}=t,{empty:i,ranges:o}=n;return i||r&&o.forEach(e=>{t.removeMark(e.$from.pos,e.$to.pos)}),!0},Zt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{tr:n,state:i,dispatch:o}=r;var s;const{extendEmptyMarkRange:a=!1}=t,{selection:l}=n,c=ae(e,i.schema),{$from:u,empty:d,ranges:h}=l;if(!o)return!0;if(d&&a){let{from:e,to:t}=l;const r=null==(s=u.marks().find(e=>e.type===c))?void 0:s.attrs,i=se(u,c,r);i&&(e=i.from,t=i.to),n.removeMark(e,t,c)}else h.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,c)});return n.removeStoredMark(c),!0}},er=e=>t=>{let{tr:r,state:n,dispatch:i}=t;const{selection:o}=n;let s,a;return"number"===typeof e?(s=e,a=e):e&&"from"in e&&"to"in e?(s=e.from,a=e.to):(s=o.from,a=o.to),i&&r.doc.nodesBetween(s,a,(e,t)=>{if(e.isText)return;const n={...e.attrs};delete n.dir,r.setNodeMarkup(t,void 0,n)}),!0},tr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{tr:n,state:i,dispatch:o}=r,s=null,a=null;const l=Be("string"===typeof e?e:e.name,i.schema);if(!l)return!1;"node"===l&&(s=$(e,i.schema)),"mark"===l&&(a=ae(e,i.schema));let c=!1;
2return n.selection.ranges.forEach(e=>{const r=e.$from.pos,l=e.$to.pos;let u,d,h,f;n.selection.empty?i.doc.nodesBetween(r,l,(e,t)=>{s&&s===e.type&&(c=!0,h=Math.max(t,r),f=Math.min(t+e.nodeSize,l),u=t,d=e)}):i.doc.nodesBetween(r,l,(e,i)=>{i<r&&s&&s===e.type&&(c=!0,h=Math.max(i,r),f=Math.min(i+e.nodeSize,l),u=i,d=e),i>=r&&i<=l&&(s&&s===e.type&&(c=!0,o&&n.setNodeMarkup(i,void 0,{...e.attrs,...t})),a&&e.marks.length&&e.marks.forEach(s=>{if(a===s.type&&(c=!0,o)){const o=Math.max(i,r),c=Math.min(i+e.nodeSize,l);n.addMark(o,c,a.create({...s.attrs,...t}))}}))}),d&&(void 0!==u&&o&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),a&&d.marks.length&&d.marks.forEach(e=>{a===e.type&&o&&n.addMark(h,f,a.create({...e.attrs,...t}))}))}),c}},rr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{state:i,dispatch:o}=r;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return function(r,i){let{$from:o,$to:s}=r.selection,a=o.blockRange(s),l=a&&(0,n.oM)(a,e,t);return!!l&&(i&&i(r.tr.wrap(a,l).scrollIntoView()),!0)}}($(e,i.schema),t)(i,o)}},nr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{let{state:n,dispatch:i}=r;return D($(e,n.schema),t)(n,i)}},ir=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const i=this.callbacks[e];return i&&i.forEach(e=>e.apply(this,r)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){var r=this;const n=function(){r.off(e,n);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];t.apply(r,o)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},or=class{constructor(e){var t;this.find=e.find,this.handler=e.handler,this.undoable=null==(t=e.undoable)||t}};function sr(e){var t;const{editor:r,from:n,to:i,text:o,rules:s,plugin:a}=e,{view:l}=r;if(l.composing)return!1;const c=l.state.doc.resolve(n);if(c.parent.type.spec.code||(null==(t=c.nodeBefore||c.nodeAfter)?void 0:t.marks.find(e=>e.type.spec.code)))return!1;let u=!1;const d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r="";const n=e.parentOffset;return e.parent.nodesBetween(Math.max(0,n-t),n,(e,t,i,o)=>{var s,a;const l=(null==(a=(s=e.type.spec).toText)?void 0:a.call(s,{node:e,pos:t,parent:i,index:o}))||e.textContent||"%leaf%";r+=e.isAtom&&!e.isText?l:l.slice(0,Math.max(0,n-t))}),r}(c)+o;return s.forEach(e=>{if(u)return;const t=((e,t)=>{if(re(t))return t.exec(e);const r=t(e);if(!r)return null;const n=[r.text];return n.index=r.index,n.input=e,n.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),n.push(r.replaceWith)),n})(d,e.find);if(!t)return;const s=l.state.tr,c=z({state:l.state,transaction:s}),h={from:n-(t[0].length-o.length),to:i}
2,{commands:f,chain:p,can:m}=new U({editor:r,state:c});null!==e.handler({state:c,range:h,match:t,commands:f,chain:p,can:m})&&s.steps.length&&(e.undoable&&s.setMeta(a,{transform:s,from:n,to:i,text:o}),l.dispatch(s),u=!0)}),u}function ar(e){return"Object"===function(e){return Object.prototype.toString.call(e).slice(8,-1)}(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function lr(e,t){const r={...e};return ar(e)&&ar(t)&&Object.keys(t).forEach(n=>{ar(t[n])&&ar(e[n])?r[n]=lr(e[n],t[n]):r[n]=t[n]}),r}var cr=class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...nt(Ze(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...nt(Ze(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.extend({...this.config,addOptions:()=>lr(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name="name"in e?e.name:t.parent.name,t}},ur=class e extends cr{constructor(){super(...arguments),this.type="mark"}static create(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r="function"===typeof t?t():t;return new e(r)}static handleExit(e){let{editor:t,mark:r}=e;const{tr:n}=t.state,i=t.state.selection.$from;if(i.pos===i.end()){const e=i.marks();if(!!!e.find(e=>(null==e?void 0:e.type.name)===r.name))return!1;const o=e.find(e=>(null==e?void 0:e.type.name)===r.name);return o&&n.removeStoredMark(o),n.insertText(" ",i.pos),t.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){const t="function"===typeof e?e():e;return super.extend(t)}};var dr=class{constructor(e){this.find=e.find,this.handler=e.handler}};function hr(e){const{editor:t,state:r,from:n,to:i,rule:o,pasteEvent:s,dropEvent:a}=e,{commands:l,chain:c,can:u}=new U({editor:t,state:r}),d=[];r.doc.nodesBetween(n,i,(e,t)=>{var h,f,p,m,g;if((null==(f=null==(h=e.type)?void 0:h.spec)?void 0:f.code)||!(e.isText||e.isTextblock||e.isInline))return;const b=null!=(g=null!=(m=null==(p=e.content)?void 0:p.size)?m:e.nodeSize)?g:0,y=Math.max(n,t),A=Math.min(i,t+b);if(y>=A)return;((e,t,r)=>{if(re(t))return[...e.matchAll(t)];const n=t(e,r);return n?n.map(t=>{const r=[t.text];return r.index=t.index,r.input=e,r.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(t.replaceWith)),r}):[]})(e.isText?e.text||"":e.textBetween(y-t,A-t,void 0,"\ufffc"),o.find,s).forEach(e=>{if(void 0===e.index)return;const t=y+e.index+1,n=t+e[0].length,i={from:r.tr.mapping.map(t),to:r.tr.mapping.map(n)},h=o.handler({state:r,range:i,match:e,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(h)})});return d.every(e=>null!==e)}var fr=null;function pr(e){const{editor:t,rules:r}=e;let n,s=null,a=!1,l=!1,c="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null;try{n="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch{n=null}const u=e=>{let{state:r,from:i,to:o,rule:s,pasteEvt:a}=e;const l=r.tr,u=z({state:r,transaction:l});if(hr({editor:t,state:u,from:Math.max(i-1,0),to:o.b-1,rule:s,pasteEvent:a,dropEvent:n})&&l.steps.length){try{n="undefined"!==typeof DragEvent?new DragEvent("drop"):null}catch{n=null}return c="undefined"!==typeof ClipboardEvent?new ClipboardEvent("paste"):null,l}};return r.map(e=>new o.k_({view(e){const r=r=>{var n;s=(null==(n=e.dom.parentElement)?void 0:n.contains(r.target))?e.dom.parentElement:null,s&&(fr=t)},n=()=>{fr&&(fr=null)};return window.addEventListener("dragstart",r),window.addEventListener("dragend",n),{destroy(){window.removeEventListener("dragstart",r),window.removeEventListener("dragend",n)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(l=s===e.dom.parentElement,n=t,!l){const e=fr;(null==e?void 0:e.isEditable)&&setTimeout(()=>{const t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>
2{var r;const n=null==(r=t.clipboardData)?void 0:r.getData("text/html");return c=t,a=!!(null==n?void 0:n.includes("data-pm-slice")),!1}}},appendTransaction:(t,r,n)=>{const o=t[0],s="paste"===o.getMeta("uiEvent")&&!a,d="drop"===o.getMeta("uiEvent")&&!l,h=o.getMeta("applyPasteRules"),f=!!h;if(!s&&!d&&!f)return;if(f){let{text:t}=h;"string"===typeof t||(t=tt(i.FK.from(t),n.schema));const{from:r}=h,o=r+t.length,s=(e=>{var t;const r=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return null==(t=r.clipboardData)||t.setData("text/html",e),r})(t);return u({rule:e,state:n,from:r,to:{b:o},pasteEvt:s})}const p=r.doc.content.findDiffStart(n.doc.content),m=r.doc.content.findDiffEnd(n.doc.content);return"number"===typeof p&&m&&p!==m.b?u({rule:e,state:n,from:p,to:m,pasteEvt:c}):void 0}}))}var mr=class{constructor(e,t){this.splittableMarks=[],this.editor=t,this.baseExtensions=e,this.extensions=pt(e),this.schema=ht(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{const r=Ze(t,"addCommands",{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:kt(t.name,this.schema)});return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this;return ft([...this.extensions].reverse()).flatMap(t=>{const r={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:kt(t.name,this.schema)},n=[],s=Ze(t,"addKeyboardShortcuts",r);let a={};if("mark"===t.type&&Ze(t,"exitable",r)&&(a.ArrowRight=()=>ur.handleExit({editor:e,mark:t})),s){const t=Object.fromEntries(Object.entries(s()).map(t=>{let[r,n]=t;return[r,()=>n({editor:e})]}));a={...a,...t}}const l=(0,B.w)(a);n.push(l);const c=Ze(t,"addInputRules",r);if(Tt(t,e.options.enableInputRules)&&c){const t=c();if(t&&t.length){const r=function(e){const{editor:t,rules:r}=e,n=new o.k_({state:{init:()=>null,apply(e,o,s){const a=e.getMeta(n);if(a)return a;const l=e.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:e}=l;"string"===typeof e||(e=tt(i.FK.from(e),s.schema));const{from:o}=l,a=o+e.length;sr({editor:t,from:o,to:a,text:e,rules:r,plugin:n})}),e.selectionSet||e.docChanged?null:o}},props:{handleTextInput:(e,i,o,s)=>sr({editor:t,from:i,to:o,text:s,rules:r,plugin:n}),handleDOMEvents:{compositionend:e=>(setTimeout(()=>{const{$cursor:i}=e.state.selection;i&&sr({editor:t,from:i.pos,to:i.pos,text:"",rules:r,plugin:n})}),!1)},handleKeyDown(e,i){if("Enter"!==i.key)return!1;const{$cursor:o}=e.state.selection;return!!o&&sr({editor:t,from:o.pos,to:o.pos,text:"\n",rules:r,plugin:n})}},isInputRules:!0});return n}({editor:e,rules:t}),s=Array.isArray(r)?r:[r];n.push(...s)}}const u=Ze(t,"addPasteRules",r);if(Tt(t,e.options.enablePasteRules)&&u){const t=u();if(t&&t.length){const r=pr({editor:e,rules:t});n.push(...r)}}const d=Ze(t,"addProseMirrorPlugins",r);if(d){const e=d();n.push(...e)}return n})}get attributes(){return ot(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=it(this.extensions);return Object.fromEntries(t.filter(e=>!!Ze(e,"addNodeView")).map(t=>{const r=this.attributes.filter(e=>e.type===t.name),n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:$(t.name,this.schema)},i=Ze(t,"addNodeView",n);if(!i)return[];const o=i();if(!o)return[];return[t.name,(n,i,s,a,l)=>{const c=lt(n,r);return o({node:n,view:i,getPos:s,decorations:a,innerDecorations:l,editor:e,extension:t,HTMLAttributes:c})}]}))}dispatchTransaction(e){const{editor:t}=this;return ft([...this.extensions].reverse()).reduceRight((e,r)=>{const n={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:kt(r.name,this.schema)},i=Ze(r,"dispatchTransaction",n);return i?t=>{i.call(n,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){const{editor:t}=this;return ft([...this.extensions]).reduce((e,r)=>{const n={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:kt(r.name,this.schema)},i=Ze(r,"transformPastedHTML",n);return i?(t,r)=>{const o=e(t,r);return i.call(n,o)}:e},e||(e=>e))}get markViews(){const{editor:e}=this,{markExtensions:t}=it(this.extensions);return Object.fromEntries(t.filter(e=>!!Ze(e,"addMarkView")).map(t=>{const r=this.attributes.filter(e=>e.type===t.name),n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:ae(t.name,this.schema)},i=Ze(t,"addMarkView",n);if(!i)return[];return[t.name,(n,o,s)=>{const a=lt(n,r);return i()({mark:n,view:o,inline:s,editor:e,extension:t,HTMLAttributes:a,updateAttributes:t=>{Wr(n,e,t)}})}]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>
2[e.name,e.storage])),e.forEach(e=>{var t;const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:kt(e.name,this.schema)};if("mark"===e.type){(null==(t=nt(Ze(e,"keepOnSplit",r)))||t)&&this.splittableMarks.push(e.name)}const n=Ze(e,"onBeforeCreate",r),i=Ze(e,"onCreate",r),o=Ze(e,"onUpdate",r),s=Ze(e,"onSelectionUpdate",r),a=Ze(e,"onTransaction",r),l=Ze(e,"onFocus",r),c=Ze(e,"onBlur",r),u=Ze(e,"onDestroy",r);n&&this.editor.on("beforeCreate",n),i&&this.editor.on("create",i),o&&this.editor.on("update",o),s&&this.editor.on("selectionUpdate",s),a&&this.editor.on("transaction",a),l&&this.editor.on("focus",l),c&&this.editor.on("blur",c),u&&this.editor.on("destroy",u)})}};mr.resolve=pt,mr.sort=ft,mr.flatten=et;F({},{ClipboardTextSerializer:()=>br,Commands:()=>yr,Delete:()=>Ar,Drop:()=>vr,Editable:()=>wr,FocusEvents:()=>kr,Keymap:()=>Cr,Paste:()=>_r,Tabindex:()=>Sr,TextDirection:()=>Er,focusEventsPluginKey:()=>xr});var gr=class e extends cr{constructor(){super(...arguments),this.type="extension"}static create(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r="function"===typeof t?t():t;return new e(r)}configure(e){return super.configure(e)}extend(e){const t="function"===typeof e?e():e;return super.extend(t)}},br=gr.create({name:"clipboardTextSerializer",addOptions:()=>({blockSeparator:void 0}),addProseMirrorPlugins(){return[new o.k_({key:new o.hs("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:t,schema:r}=e,{doc:n,selection:i}=t,{ranges:o}=i,s=Math.min(...o.map(e=>e.$from.pos)),a=Math.max(...o.map(e=>e.$to.pos)),l=bt(r);return mt(n,{from:s,to:a},{...void 0!==this.options.blockSeparator?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),yr=gr.create({name:"commands",addCommands:()=>({...H})}),Ar=gr.create({name:"delete",onUpdate(e){let{transaction:t,appendedTransactions:r}=e;var i,o,s;const a=()=>{var e,i,o,s;if(null!=(s=null==(o=null==(i=null==(e=this.editor.options.coreExtensionOptions)?void 0:e.delete)?void 0:i.filterTransaction)?void 0:o.call(i,t))?s:t.getMeta("y-sync$"))return;const a=$e(t.before,[t,...r]);vt(a).forEach(e=>{a.mapping.mapResult(e.oldRange.from).deletedAfter&&a.mapping.mapResult(e.oldRange.to).deletedBefore&&a.before.nodesBetween(e.oldRange.from,e.oldRange.to,(r,n)=>{const i=n+r.nodeSize-2,o=e.oldRange.from<=n&&i<=e.oldRange.to;this.editor.emit("delete",{type:"node",node:r,from:n,to:i,newFrom:a.mapping.map(n),newTo:a.mapping.map(i),deletedRange:e.oldRange,newRange:e.newRange,partial:!o,editor:this.editor,transaction:t,combinedTransform:a})})});const l=a.mapping;a.steps.forEach((e,r)=>{var i,o;if(e instanceof n.Ys){const n=l.slice(r).map(e.from,-1),s=l.slice(r).map(e.to),c=l.invert().map(n,-1),u=l.invert().map(s),d=null==(i=a.doc.nodeAt(n-1))?void 0:i.marks.some(t=>t.eq(e.mark)),h=null==(o=a.doc.nodeAt(s))?void 0:o.marks.some(t=>t.eq(e.mark));this.editor.emit("delete",{type:"mark",mark:e.mark,from:e.from,to:e.to,deletedRange:{from:c,to:u},newRange:{from:n,to:s},partial:Boolean(h||d),editor:this.editor,transaction:t,combinedTransform:a})}})};null==(s=null==(o=null==(i=this.editor.options.coreExtensionOptions)?void 0:i.delete)?void 0:o.async)||s?setTimeout(a,0):a()}}),vr=gr.create({name:"drop",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("tiptapDrop"),props:{handleDrop:(e,t,r,n)=>{this.editor.emit("drop",{editor:this.editor,event:t,slice:r,moved:n})}}})]}}),wr=gr.create({name:"editable",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("editable"),props:{editable:()=>this.editor.options.editable}})]}}),xr=new o.hs("focusEvents"),kr=gr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new o.k_({key:xr,props:{handleDOMEvents:{focus:(t,r)=>
2{e.isFocused=!0;const n=e.state.tr.setMeta("focus",{event:r}).setMeta("addToHistory",!1);return t.dispatch(n),!1},blur:(t,r)=>{e.isFocused=!1;const n=e.state.tr.setMeta("blur",{event:r}).setMeta("addToHistory",!1);return t.dispatch(n),!1}}}})]}}),Cr=gr.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(e=>{let{commands:t}=e;return[()=>t.undoInputRule(),()=>t.command(e=>{let{tr:r}=e;const{selection:n,doc:i}=r,{empty:s,$anchor:a}=n,{pos:l,parent:c}=a,u=a.parent.isTextblock&&l>0?r.doc.resolve(l-1):a,d=u.parent.type.spec.isolating,h=a.pos-a.parentOffset,f=d&&1===u.parent.childCount?h===a.pos:o.LN.atStart(i).from===l;return!(!s||!c.type.isTextblock||c.textContent.length||!f||f&&"paragraph"===a.parent.type.name)&&t.clearNodes()}),()=>t.deleteSelection(),()=>t.joinBackward(),()=>t.selectNodeBackward()]}),t=()=>this.editor.commands.first(e=>{let{commands:t}=e;return[()=>t.deleteSelection(),()=>t.deleteCurrentNode(),()=>t.joinForward(),()=>t.selectNodeForward()]}),r={Enter:()=>this.editor.commands.first(e=>{let{commands:t}=e;return[()=>t.newlineInCode(),()=>t.createParagraphNear(),()=>t.liftEmptyBlock(),()=>t.splitBlock()]}),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},n={...r},i={...r,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return pe()||Oe()?i:n},addProseMirrorPlugins(){return[new o.k_({key:new o.hs("clearDocument"),appendTransaction:(e,t,r)=>{if(e.some(e=>e.getMeta("composition")))return;const n=e.some(e=>e.docChanged)&&!t.doc.eq(r.doc),i=e.some(e=>e.getMeta("preventClearDocument"));if(!n||i)return;const{empty:s,from:a,to:l}=t.selection,c=o.LN.atStart(t.doc).from,u=o.LN.atEnd(t.doc).to;if(s||!(a===c&&l===u))return;if(!Ot(r.doc))return;const d=r.tr,h=z({state:r,transaction:d}),{commands:f}=new U({editor:this.editor,state:h});return f.clearNodes(),d.steps.length?d:void 0}})]}}),_r=gr.create({name:"paste",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("tiptapPaste"),props:{handlePaste:(e,t,r)=>{this.editor.emit("paste",{editor:this.editor,event:t,slice:r})}}})]}}),Sr=gr.create({name:"tabindex",addProseMirrorPlugins(){return[new o.k_({key:new o.hs("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),Er=gr.create({name:"textDirection",addOptions:()=>({direction:void 0}),addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=it(this.extensions);return[{types:e.filter(e=>"text"!==e.name).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const t=e.getAttribute("dir");return!t||"ltr"!==t&&"rtl"!==t&&"auto"!==t?this.options.direction:t},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new o.k_({key:new o.hs("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),Tr=class e{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=t,this.currentNode=n}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return null!=(e=this.actualDepth)?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,r=this.to;if(this.isBlock){if(0===this.content.size)return void console.error(`You can\u2019t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);t=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:t,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(0===this.depth)return null;const t=this.resolvedPos.start(this.resolvedPos.depth-1),r=this.resolvedPos.doc.resolve(t);return new e(r,this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){const t=[];return this.node.content.forEach((r,n)=>{const i=r.isBlock&&!r.isTextblock,o=r.isAtom&&!r.isText,s=r.isInline,a=this.pos+n+(o?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!i&&!s&&l.depth<=this.depth)return;const c=new e(l,this.editor,i,i||s?r:null);i&&(c.actualDepth=this.depth+1),t.push(c)}),t}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,n=this.parent;for(;n&&!r;
2){if(n.node.type.name===e)if(Object.keys(t).length>0){const e=n.node.attrs,r=Object.keys(t);for(let n=0;n<r.length;n+=1){const i=r[n];if(e[i]!==t[i])break}}else r=n;n=n.parent}return r}querySelector(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=[];if(!this.children||0===this.children.length)return n;const i=Object.keys(t);return this.children.forEach(o=>{if(!(r&&n.length>0)){if(o.node.type.name===e){i.every(e=>t[e]===o.node.attrs[e])&&n.push(o)}r&&n.length>0||(n=n.concat(o.querySelectorAll(e,t,r)))}}),n}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}};var Mr=class extends ir{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:"undefined"!==typeof document?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:e=>{let{error:t}=e;throw t},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Rt,createMappablePosition:Dt},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",e=>{let{event:t,slice:r,moved:n}=e;return this.options.onDrop(t,r,n)}),this.on("paste",e=>{let{event:t,slice:r}=e;return this.options.onPaste(t,r)}),this.on("delete",this.options.onDelete);const t=this.createDoc(),r=he(t,this.options.autofocus);this.editorState=o.$t.create({doc:t,schema:this.schema,selection:r||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if("undefined"===typeof document)throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(!1!==this.options.autofocus&&null!==this.options.autofocus&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;(null==e?void 0:e.editor)&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{"function"===typeof this.css.remove?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&"undefined"!==typeof document&&(this.css=function(e,t,r){const n=document.querySelector(`style[data-tiptap-style${r?`-${r}`:""}]`);
2if(null!==n)return n;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style"+(r?`-${r}`:""),""),i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 0 !important;\n height: 0 !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n
2content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}',this.options.injectNonce))}setOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.options={...this.options,...e},this.editorView&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if("state"===t)return this.editorState;if(t in e)return Reflect.get(e,t);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){const r=rt(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],n=this.state.reconfigure({plugins:r});return this.view.updateState(n),n}unregisterPlugin(e){if(this.isDestroyed)return;const t=this.state.plugins;let r=t;if([].concat(e).forEach(e=>{const t="string"===typeof e?`${e}$`:e.key;r=r.filter(e=>!e.key.startsWith(t))}),t.length===r.length)return;const n=this.state.reconfigure({plugins:r});return this.view.updateState(n),n}createExtensionManager(){var e,t;const r=[...this.options.enableCoreExtensions?[wr,br.configure({blockSeparator:null==(t=null==(e=this.options.coreExtensionOptions)?void 0:e.clipboardTextSerializer)?void 0:t.blockSeparator}),yr,kr,Cr,Sr,vr,_r,Ar,Er.configure({direction:this.options.textDirection})].filter(e=>"object"!==typeof this.options.enableCoreExtensions||!1!==this.options.enableCoreExtensions[e.name]):[],...this.options.extensions].filter(e=>["extension","node","mark"].includes(null==e?void 0:e.type));this.extensionManager=new mr(r,this)}createCommandManager(){this.commandManager=new U({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=Ge(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(t.message))throw t;this.emit("contentError",{editor:this,error:t,disableCollaboration:()=>{"collaboration"in this.storage&&"object"===typeof this.storage.collaboration&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>"collaboration"!==e.name),this.createExtensionManager()}}),e=Ge(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:t,enableExtensionDispatchTransaction:r}=this.options,n=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=r?this.extensionManager.dispatchTransaction(n):n,o=t.transformPastedHTML,s=this.extensionManager.transformPastedHTML(o);this.editorView=new L.Lz(e,{...t,attributes:{role:"textbox",...null==t?void 0:t.attributes},dispatchTransaction:i,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();this.view.dom.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction)return this.capturedTransaction?void e.steps.forEach(e
2=>{var t;return null==(t=this.capturedTransaction)?void 0:t.step(e)}):void(this.capturedTransaction=e);const{state:t,transactions:r}=this.state.applyTransaction(e),n=!this.state.selection.eq(t.selection),i=r.includes(e),o=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:r.slice(1)}),n&&this.emit("selectionUpdate",{editor:this,transaction:e});const s=r.findLast(e=>e.getMeta("focus")||e.getMeta("blur")),a=null==s?void 0:s.getMeta("focus"),l=null==s?void 0:s.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),e.getMeta("preventUpdate")||!r.some(e=>e.docChanged)||o.doc.eq(t.doc)||this.emit("update",{editor:this,transaction:e,appendedTransactions:r.slice(1)})}getAttributes(e){return yt(this.state,e)}isActive(e,t){const r="string"===typeof e?e:null,n="string"===typeof e?t:e;return function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return Pe(e,null,r)||_t(e,null,r);const n=Be(t,e.schema);return"node"===n?Pe(e,t,r):"mark"===n&&_t(e,t,r)}(this.state,r,n)}getJSON(){return this.state.doc.toJSON()}getHTML(){return tt(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t="\n\n",textSerializers:r={}}=e||{};return gt(this.state.doc,{blockSeparator:t,textSerializers:{...bt(this.schema),...r}})}get isEmpty(){return Ot(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,t;return null==(t=null==(e=this.editorView)?void 0:e.isDestroyed)||t}$node(e,t){var r;return(null==(r=this.$doc)?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return(null==(r=this.$doc)?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Tr(t,this)}get $doc(){return this.$pos(0)}};function Or(e){return new or({find:e.find,handler:t=>{let{state:r,range:n,match:i}=t;const o=nt(e.getAttributes,void 0,i);if(!1===o||null===o)return null;const{tr:s}=r,a=i[i.length-1],l=i[0];if(a){const t=l.search(/\S/),i=n.from+l.indexOf(a),c=i+a.length;if(wt(n.from,n.to,r.doc).filter(t=>t.mark.type.excluded.find(r=>r===e.type&&r!==t.mark.type)).filter(e=>e.to>i).length)return null;c<n.to&&s.delete(c,n.to),i>n.from&&s.delete(n.from+t,i);const u=n.from+t+a.length;s.addMark(n.from+t,u,e.type.create(o||{})),s.removeStoredMark(e.type)}},undoable:e.undoable})}function Nr(e){return new or({find:e.find,handler:t=>{let{state:r,range:n,match:i}=t;const o=nt(e.getAttributes,void 0,i)||{},{tr:s}=r,a=n.from;let l=n.to;const c=e.type.create(o);if(i[1]){let e=a+i[0].lastIndexOf(i[1]);e>l?e=l:l=e+i[1].length;const t=i[0][i[0].length-1];s.insertText(t,a+i[0].length-1),s.replaceWith(e,l,c)}else if(i[0]){const t=e.type.isInline?a:a-1;s.insert(t,e.type.create(o)).delete(s.mapping.map(a),s.mapping.map(l))}s.scrollIntoView()},undoable:e.undoable})}function Pr(e){return new or({find:e.find,handler:t=>{let{state:r,range:n,match:i}=t;const o=r.doc.resolve(n.from),s=nt(e.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;r.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,s)},undoable:e.undoable})}function Rr(e){return new or({find:e.find,handler:t=>{let{state:r,range:i,match:o,chain:s}=t;const a=nt(e.getAttributes,void 0,o)||{},l=r.tr.delete(i.from,i.to),c=l.doc.resolve(i.from).blockRange(),u=c&&(0,n.oM)(c,e.type,a);if(!u)return null;if(l.wrap(c,u),e.keepMarks&&e.editor){const{selection:t,storedMarks:n}=r,{splittableMarks:i}=e.editor.extensionManager,o=n||t.$to.parentOffset&&t.$from.marks();if(o){const e=o.filter(e=>i.includes(e.type.name));l.ensureMarks(e)}}if(e.keepAttributes){const t="bulletList"===e.type.name||"orderedList"===e.type.name?"listItem":"taskList";s().updateAttributes(t,a).run()}const d=l.doc.resolve(i.from-1).nodeBefore;d&&d.type===e.type&&(0,n.n9)(l.doc,i.from-1)&&(!e.joinPredicate||e.joinPredicate(o,d))&&l.join(i.from-1)},undoable:e.undoable})}function Dr(e,t){const{selection:r}=e,{$from:n}=r;if(r instanceof o.nh){const e=n.index();return n.parent.canReplaceWith(e,e+1,t)}let i=n.depth;for(;i>=0;){const e=n.index(i);if(n.node(i).contentMatchAt(e).matchType(t))return!0;
2i-=1}return!1}function Ir(e){if(!(null==e?void 0:e.trim()))return{};const t={},r=[],n=e.replace(/["']([^"']*)["']/g,e=>(r.push(e),`__QUOTED_${r.length-1}__`)),i=n.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(i){const e=i.map(e=>e.trim().slice(1));t.class=e.join(" ")}const o=n.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);o&&(t.id=o[1]);Array.from(n.matchAll(/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g)).forEach(e=>{let[,n,i]=e;var o;const s=parseInt((null==(o=i.match(/__QUOTED_(\d+)__/))?void 0:o[1])||"0",10),a=r[s];a&&(t[n]=a.slice(1,-1))});const s=n.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();if(s){s.split(/\s+/).filter(Boolean).forEach(e=>{e.match(/^[a-zA-Z][\w-]*$/)&&(t[e]=!0)})}return t}function Lr(e){if(!e||0===Object.keys(e).length)return"";const t=[];if(e.class){String(e.class).split(/\s+/).filter(Boolean).forEach(e=>t.push(`.${e}`))}return e.id&&t.push(`#${e.id}`),Object.entries(e).forEach(e=>{let[r,n]=e;"class"!==r&&"id"!==r&&(!0===n?t.push(r):!1!==n&&null!=n&&t.push(`${r}="${String(n)}"`))}),t.join(" ")}function Br(e){const{nodeName:t,name:r,parseAttributes:n=Ir,serializeAttributes:i=Lr,defaultAttributes:o={},requiredAttributes:s=[],allowedAttributes:a}=e,l=r||t;return{parseMarkdown:(e,r)=>{const n={...o,...e.attributes};return r.createNode(t,n,[])},markdownTokenizer:{name:t,level:"block",start(e){var t;const r=new RegExp(`^:::${l}(?:\\s|$)`,"m"),n=null==(t=e.match(r))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,r,i){const o=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),a=e.match(o);if(!a)return;const c=a[1]||"",u=n(c);return s.find(e=>!(e in u))?void 0:{type:t,raw:a[0],attributes:u}}},renderMarkdown:e=>{const t=(e=>{if(!a)return e;const t={};return a.forEach(r=>{r in e&&(t[r]=e[r])}),t})(e.attrs||{}),r=i(t);return`:::${l}${r?` {${r}}`:""} :::`}}}function jr(e){const{nodeName:t,name:r,getContent:n,parseAttributes:i=Ir,serializeAttributes:o=Lr,defaultAttributes:s={},content:a="block",allowedAttributes:l}=e,c=r||t;return{parseMarkdown:(e,r)=>{let i;if(n){const t=n(e);i="string"===typeof t?[{type:"text",text:t}]:t}else i="block"===a?r.parseChildren(e.tokens||[]):r.parseInline(e.tokens||[]);const o={...s,...e.attributes};return r.createNode(t,o,i)},markdownTokenizer:{name:t,level:"block",start(e){var t;const r=new RegExp(`^:::${c}`,"m"),n=null==(t=e.match(r))?void 0:t.index;return void 0!==n?n:-1},tokenize(e,r,n){var o;const s=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),l=e.match(s);if(!l)return;const[u,d=""]=l,h=i(d);let f=1;const p=u.length;let m="";const g=/^:::([\w-]*)(\s.*)?/gm,b=e.slice(p);for(g.lastIndex=0;;){const r=g.exec(b);if(null===r)break;const i=r.index,s=r[1];if(!(null==(o=r[2])?void 0:o.endsWith(":::")))if(s)f+=1;else if(f-=1,0===f){const o=b.slice(0,i);m=o.trim();const s=e.slice(0,p+i+r[0].length);let l=[];if(m)if("block"===a)for(l=n.blockTokens(o),l.forEach(e=>{!e.text||e.tokens&&0!==e.tokens.length||(e.tokens=n.inlineTokens(e.text))});l.length>0;){const e=l[l.length-1];if("paragraph"!==e.type||e.text&&""!==e.text.trim())break;l.pop()}else l=n.inlineTokens(m);return{type:t,raw:s,attributes:h,content:m,tokens:l}}}}},renderMarkdown:(e,t)=>{const r=(e=>{if(!l)return e;const t={};return l.forEach(r=>{r in e&&(t[r]=e[r])}),t})(e.attrs||{}),n=o(r),i=n?` {${n}}`:"",s=t.renderChildren(e.content||[],"\n\n");return`:::${c}${i}\n\n${s}\n\n:::`}}}function Fr(e){if(!e.trim())return{};const t={},r=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let n=r.exec(e);for(;null!==n;){const[,i,o,s]=n;t[i]=o||s,n=r.exec(e)}return t}function zr(e){return Object.entries(e).filter(e=>{let[,t]=e;return void 0!==t&&null!==t}).map(e=>{let[t,r]=e;return`${t}="${r}"`}).join(" ")}function Ur(e){const{nodeName:t,name:r,getContent:n,parseAttributes:i=Fr,serializeAttributes:o=zr,defaultAttributes:s={},selfClosing:a=!1,allowedAttributes:l}=e,c=r||t,u=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(e,r)=>{const i={...s,...e.attributes};if(a)return r.createNode(t,i);const o=n?n(e):e.content||"";return o?r.createNode(t,i,[r.createTextNode(o)]):r.createNode(t,i,[])},markdownTokenizer:{name:t,level:"inline",start(e){const t=a?new RegExp(`\\[${u}\\s*[^\\]]*\\]`):new RegExp(`\\[${u}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${u}\\]`),r=e.match(t),n=null==r?void 0:r.index;return void 0!==n?n:-1},tokenize(e,r,n){const o=a?new RegExp(`^\\[${u}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${u}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${u}\\]`),s=e.match(o);if(!s)return;let l="",c="";if(a){const[,e]=s;c=e}else{const[,e,t]=s;c=e,l=t||""}const d=i(c.trim());return{type:t,raw:s[0],content:l.trim(),attributes:d}}},renderMarkdown:e=>{let t="";n?t=n(e):e.content&&e.content.length>0&&(t=e.content.filter(e=>"text"===e.type).map(e=>e.text).join(""));const r=(e=>{if(!l)return e;const t={};return l.forEach(r=>{const n="string"===typeof r?r:r.name,i="string"===typeof r?void 0:r.skipIfDefault;if(n in e){const r=e[n];if(void 0!==i&&r===i)return;t[n]=r}}),t})(e.attrs||{}),i=o(r),s=i?` ${i}`:"";return a?`[${c}${s}]`:`[${c}${s}]${t}[/${c}]`}}}function Hr(e,t,r){var n,i,o,s;const a=e.split("\n"),l=[];let c="",u=0;const d=t.baseIndentSize||2;for(;u<a.length;){const e=a[u],h=e.match(t.itemPattern);if(!h){if(l.length>0)break;if(""===e.trim()){u+=1,c=`${c}${e}\n`;continue}return}const f=t.extractItemData(h),{indentLevel:p,mainContent:m}=f;c=`${c}${e}\n`;const g=[m];for(u+=1;u<a.length;){const e=a[u];if(""===e.trim()){const t=a.slice(u+1).findIndex(e=>""!==e.trim());if(-1===t)break;
2if(((null==(i=null==(n=a[u+1+t].match(/^(\s*)/))?void 0:n[1])?void 0:i.length)||0)>p){g.push(e),c=`${c}${e}\n`,u+=1;continue}break}if(!(((null==(s=null==(o=e.match(/^(\s*)/))?void 0:o[1])?void 0:s.length)||0)>p))break;g.push(e),c=`${c}${e}\n`,u+=1}let b;const y=g.slice(1);if(y.length>0){const e=y.map(e=>e.slice(p+d)).join("\n");e.trim()&&(b=t.customNestedParser?t.customNestedParser(e):r.blockTokens(e))}const A=t.createToken(f,b);l.push(A)}if(0!==l.length)return{items:l,raw:c}}function Vr(e,t,r,n){if(!e||!Array.isArray(e.content))return"";const i="function"===typeof r?r(n):r,[o,...s]=e.content,a=[`${i}${t.renderChildren([o])}`];return s&&s.length>0&&s.forEach(e=>{const r=t.renderChildren([e]);if(r){const e=r.split("\n").map(e=>e?t.indent(e):"").join("\n");a.push(e)}}),a.join("\n")}function Wr(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{state:n}=t,{doc:i,tr:o}=n,s=e;i.descendants((t,n)=>{const i=o.mapping.map(n),a=o.mapping.map(n)+t.nodeSize;let l=null;if(t.marks.forEach(e=>{if(e!==s)return!1;l=e}),!l)return;let c=!1;if(Object.keys(r).forEach(e=>{r[e]!==l.attrs[e]&&(c=!0)}),c){const t=e.type.create({...e.attrs,...r});o.removeMark(i,a,e.type),o.addMark(i,a,t)}}),o.docChanged&&t.view.dispatch(o)}F({},{createAtomBlockMarkdownSpec:()=>Br,createBlockMarkdownSpec:()=>jr,createInlineMarkdownSpec:()=>Ur,parseAttributes:()=>Ir,parseIndentedBlocks:()=>Hr,renderNestedMarkdownContent:()=>Vr,serializeAttributes:()=>Lr});var Kr=class{constructor(e,t,r){this.component=e,this.editor=t.editor,this.options={...r},this.mark=t.mark,this.HTMLAttributes=t.HTMLAttributes}get dom(){return this.editor.view.dom}get contentDOM(){return null}updateAttributes(e,t){Wr(t||this.mark,this.editor,e)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"===typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&(pe()||fe())&&this.editor.isFocused){if([...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}},qr=class e extends cr{constructor(){super(...arguments),this.type="node"}static create(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r="function"===typeof t?t():t;return new e(r)}configure(e){return super.configure(e)}extend(e){const t="function"===typeof e?e():e;return super.extend(t)}},Gr=class{constructor(e,t,r){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.innerDecorations=t.innerDecorations,this.view=t.view,this.HTMLAttributes=t.HTMLAttributes,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,r,n,i,s,a,l;const{view:c}=this.editor,u=e.target,d=3===u.nodeType?null==(t=u.parentElement)?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null==(r=this.contentDOM)?void 0:r.contains(u))||!d)return;let h=0,f=0;if(this.dom!==d){const t=this.dom.getBoundingClientRect(),r=d.getBoundingClientRect(),o=null!=(i=e.offsetX)?i:null==(n=e.nativeEvent)?void 0:n.offsetX,l=null!=(a=e.offsetY)?a:null==(s=e.nativeEvent)?void 0:s.offsetY;h=r.x-t.x+o,f=r.y-t.y+l}const p=this.dom.cloneNode(!0);try{const e=this.dom.getBoundingClientRect();p.style.width=`${Math.round(e.width)}px`,p.style.height=`${Math.round(e.height)}px`,p.style.boxSizing="border-box",p.style.pointerEvents="none"}catch{}let m=null;try{m=document.createElement("div"),m.style.position="absolute",m.style.top="-9999px",m.style.left="-9999px",m.style.pointerEvents="none",m.appendChild(p),document.body.appendChild(m),null==(l=e.dataTransfer)||l.setDragImage(p,h,f)}finally{m&&setTimeout(()=>{try{null==m||m.remove()}catch{}},0)}const g=this.getPos();if("number"!==typeof g)return;const b=o.nh.create(c.state.doc,g),y=c.state.tr.setSelection(b);c.dispatch(y)}stopEvent(e){var t;if(!this.dom)return!1;if("function"===typeof this.options.stopEvent)return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(null==(t=this.contentDOM)?void 0:t.contains(r))))return!1;const n=e.type.startsWith("drag"),i="drop"===e.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!i&&!n)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,c=o.nh.isSelectable(this.node),u="copy"===e.type,d="paste"===e.type,h="cut"
2===e.type,f="mousedown"===e.type;if(!l&&c&&n&&e.target===this.dom&&e.preventDefault(),l&&n&&!a&&e.target===this.dom)return e.preventDefault(),!1;if(l&&s&&!a&&f){const e=r.closest("[data-drag-handle]");e&&(this.dom===e||this.dom.contains(e))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(a||i||u||d||h||f&&c)}ignoreMutation(e){if(!this.dom||!this.contentDOM)return!0;if("function"===typeof this.options.ignoreMutation)return this.options.ignoreMutation({mutation:e});if(this.node.isLeaf||this.node.isAtom)return!0;if("selection"===e.type)return!1;if(this.dom.contains(e.target)&&"childList"===e.type&&(pe()||fe())&&this.editor.isFocused){if([...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(e=>e.isContentEditable))return!1}return this.contentDOM===e.target&&"attributes"===e.type||!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(t=>{let{tr:r}=t;const n=this.getPos();return"number"===typeof n&&(r.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if("number"!==typeof e)return;const t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}};function Xr(e){return new dr({find:e.find,handler:t=>{let{state:r,range:n,match:i,pasteEvent:o}=t;const s=nt(e.getAttributes,void 0,i,o);if(!1===s||null===s)return null;const{tr:a}=r,l=i[i.length-1],c=i[0];let u=n.to;if(l){const t=c.search(/\S/),i=n.from+c.indexOf(l),o=i+l.length;if(wt(n.from,n.to,r.doc).filter(t=>t.mark.type.excluded.find(r=>r===e.type&&r!==t.mark.type)).filter(e=>e.to>i).length)return null;o<n.to&&a.delete(o,n.to),i>n.from&&a.delete(n.from+t,i),u=n.from+t+l.length,a.addMark(n.from+t,u,e.type.create(s||{})),a.removeStoredMark(e.type)}}})}},7274(e,t,r){"use strict";r.d(t,{$Z:()=>W,hG:()=>Q});var n=r(9950),i=r(7119),o=r(6538),s=r(4414),a=r(7732);const{getOwnPropertyNames:l,getOwnPropertySymbols:c}=Object,{hasOwnProperty:u}=Object.prototype;function d(e,t){return function(r,n,i){return e(r,n,i)&&t(r,n,i)}}function h(e){return function(t,r,n){if(!t||!r||"object"!==typeof t||"object"!==typeof r)return e(t,r,n);const{cache:i}=n,o=i.get(t),s=i.get(r);if(o&&s)return o===r&&s===t;i.set(t,r),i.set(r,t);const a=e(t,r,n);return i.delete(t),i.delete(r),a}}function f(e){return l(e).concat(c(e))}const p=Object.hasOwn||((e,t)=>u.call(e,t));function m(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const{getOwnPropertyDescriptor:g,keys:b}=Object;function y(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e),new Uint8Array(t))}function A(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function v(e,t){return e.byteLength===t.byteLength&&N(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function w(e,t){return m(e.getTime(),t.getTime())}function x(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function k(e,t){return e===t}function C(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.entries();let s,a,l=0;for(;(s=o.next())&&!s.done;){const n=t.entries();let o=!1,c=0;for(;(a=n.next())&&!a.done;){if(i[c]){c++;continue}const n=s.value,u=a.value;if(r.equals(n[0],u[0],l,c,e,t,r)&&r.equals(n[1],u[1],n[0],u[0],e,t,r)){o=i[c]=!0;break}c++}if(!o)return!1;l++}return!0}const _=m;function S(e,t,r){const n=b(e);let i=n.length;if(b(t).length!==i)return!1;for(;i-- >0;)if(!R(e,t,r,n[i]))return!1;return!0}function E(e,t,r){const n=f(e);let i,o,s,a=n.length;if(f(t).length!==a)return!1;for(;a-- >0;){if(i=n[a],!R(e,t,r,i))return!1;if(o=g(e,i),s=g(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable))return!1}return!0}function T(e,t){return m(e.valueOf(),t.valueOf())}function M(e,t){return e.source===t.source&&e.flags===t.flags}function O(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),o=e.values();let s,a;for(;(s=o.next())&&!s.done;){const n=t.values();let o=!1,l=0;for(;(a=n.next())&&!a.done;){if(!i[l]&&r.equals(s.value,a.value,s.value,a.value,e,t,r)){o=i[l]=!0;break}l++}if(!o)return!1}return!0}function N(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function P(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function R(e,t,r,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!e.$$typeof&&!t.$$typeof)||p(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const D={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
2]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},I=Object.prototype.toString;function L(e){let{areArrayBuffersEqual:t,areArraysEqual:r,areDataViewsEqual:n,areDatesEqual:i,areErrorsEqual:o,areFunctionsEqual:s,areMapsEqual:a,areNumbersEqual:l,areObjectsEqual:c,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:h,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}=e;return function(e,g,b){if(e===g)return!0;if(null==e||null==g)return!1;const y=typeof e;if(y!==typeof g)return!1;if("object"!==y)return"number"===y?l(e,g,b):"function"===y&&s(e,g,b);const A=e.constructor;if(A!==g.constructor)return!1;if(A===Object)return c(e,g,b);if(Array.isArray(e))return r(e,g,b);if(A===Date)return i(e,g,b);if(A===RegExp)return d(e,g,b);if(A===Map)return a(e,g,b);if(A===Set)return h(e,g,b);const v=I.call(e);if("[object Date]"===v)return i(e,g,b);if("[object RegExp]"===v)return d(e,g,b);if("[object Map]"===v)return a(e,g,b);if("[object Set]"===v)return h(e,g,b);if("[object Object]"===v)return"function"!==typeof e.then&&"function"!==typeof g.then&&c(e,g,b);if("[object URL]"===v)return p(e,g,b);if("[object Error]"===v)return o(e,g,b);if("[object Arguments]"===v)return c(e,g,b);if(D[v])return f(e,g,b);if("[object ArrayBuffer]"===v)return t(e,g,b);if("[object DataView]"===v)return n(e,g,b);if("[object Boolean]"===v||"[object Number]"===v||"[object String]"===v)return u(e,g,b);if(m){let t=m[v];if(!t){const r=null!=(w=e)?w[Symbol.toStringTag]:void 0;r&&(t=m[r])}if(t)return t(e,g,b)}var w;return!1}}const B=j();j({strict:!0}),j({circular:!0}),j({circular:!0,strict:!0}),j({createInternalComparator:()=>m}),j({strict:!0,createInternalComparator:()=>m}),j({circular:!0,createInternalComparator:()=>m}),j({circular:!0,createInternalComparator:()=>m,strict:!0});function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,o=function(e){let{circular:t,createCustomConfig:r,strict:n}=e,i={areArrayBuffersEqual:y,areArraysEqual:n?E:A,areDataViewsEqual:v,areDatesEqual:w,areErrorsEqual:x,areFunctionsEqual:k,areMapsEqual:n?d(C,E):C,areNumbersEqual:_,areObjectsEqual:n?E:S,arePrimitiveWrappersEqual:T,areRegExpsEqual:M,areSetsEqual:n?d(O,E):O,areTypedArraysEqual:n?d(N,E):N,areUrlsEqual:P,unknownTagComparators:void 0};if(r&&(i=Object.assign({},i,r(i))),t){const e=h(i.areArraysEqual),t=h(i.areMapsEqual),r=h(i.areObjectsEqual),n=h(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:r,areSetsEqual:n})}return i}(e),s=L(o);var a;return function(e){let{circular:t,comparator:r,createState:n,equals:i,strict:o}=e;if(n)return function(e,s){const{cache:a=(t?new WeakMap:void 0),meta:l}=n();
2return r(e,s,{cache:a,equals:i,meta:l,strict:o})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};const s={cache:void 0,equals:i,meta:void 0,strict:o};return function(e,t){return r(e,t,s)}}({circular:t,comparator:s,createState:n,equals:r?r(s):(a=s,function(e,t,r,n,i,o,s){return a(e,t,s)}),strict:i})}var F=r(3044),z=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return e=>{t.forEach(t=>{"function"===typeof t?t(e):t&&(t.current=e)})}},U=e=>{let{contentComponent:t}=e;const r=(0,o.useSyncExternalStore)(t.subscribe,t.getSnapshot,t.getServerSnapshot);return(0,s.jsx)(s.Fragment,{children:Object.values(r)})};var H=class extends n.Component{constructor(e){var t;super(e),this.editorContentRef=n.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:Boolean(null==(t=e.editor)?void 0:t.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var e;const t=this.props.editor;if(t&&!t.isDestroyed&&(null==(e=t.view.dom)?void 0:e.parentNode)){if(t.contentComponent)return;const e=this.editorContentRef.current;e.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:e}),t.contentComponent=function(){const e=new Set;let t={};return{subscribe:t=>(e.add(t),()=>{e.delete(t)}),getSnapshot:()=>t,getServerSnapshot:()=>t,setRenderer(r,n){t={...t,[r]:i.createPortal(n.reactElement,n.element,r)},e.forEach(e=>e())},removeRenderer(r){const n={...t};delete n[r],t=n,e.forEach(e=>e())}}}(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=t.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),t.createNodeViews(),this.initialized=!0}}componentWillUnmount(){var e;const t=this.props.editor;if(t){this.initialized=!1,t.isDestroyed||t.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),t.contentComponent=null;try{if(!(null==(e=t.view.dom)?void 0:e.parentNode))return;const r=document.createElement("div");r.append(...t.view.dom.parentNode.childNodes),t.setOptions({element:r})}catch{}}}render(){const{editor:e,innerRef:t,...r}=this.props;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:z(t,this.editorContentRef),...r}),(null==e?void 0:e.contentComponent)&&(0,s.jsx)(U,{contentComponent:e.contentComponent})]})}},V=(0,n.forwardRef)((e,t)=>{const r=n.useMemo(()=>Math.floor(4294967295*Math.random()).toString(),[e.editor]);return n.createElement(H,{key:r,innerRef:t,...e})}),W=n.memo(V),K="undefined"!==typeof window?n.useLayoutEffect:n.useEffect,q=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber||(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber}),this.lastSnapshot}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on("transaction",e),()=>{t.off("transaction",e)}}}};function G(e){var t;const[r]=(0,n.useState)(()=>new q(e.editor)),i=(0,F.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,e.selector,null!=(t=e.equalityFn)?t:B);return K(()=>r.watch(e.editor),[e.editor,r]),(0,n.useDebugValue)(i),i}var X="undefined"===typeof window,Y=X||Boolean("undefined"!==typeof window&&window.next),$=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.get
2ServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return void 0===this.options.current.immediatelyRender?X||Y?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){var e=this;const t={...this.options.current,onBeforeCreate:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onBeforeCreate)?void 0:r.call(t,...i)},onBlur:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onBlur)?void 0:r.call(t,...i)},onCreate:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onCreate)?void 0:r.call(t,...i)},onDestroy:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onDestroy)?void 0:r.call(t,...i)},onFocus:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onFocus)?void 0:r.call(t,...i)},onSelectionUpdate:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onSelectionUpdate)?void 0:r.call(t,...i)},onTransaction:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onTransaction)?void 0:r.call(t,...i)},onUpdate:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onUpdate)?void 0:r.call(t,...i)},onContentError:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onContentError)?void 0:r.call(t,...i)},onDrop:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onDrop)?void 0:r.call(t,...i)},onPaste:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onPaste)?void 0:r.call(t,...i)},onDelete:function(){for(var t,r,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return null==(r=(t=e.options.current).onDelete)?void 0:r.call(t,...i)}};return new a.KE(t)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(r=>!!["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)||("extensions"===r&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length&&e.extensions.every((e,r)=>{var n;return e===(null==(n=t.extensions)?void 0:n[r])}):e[r]===t[r]))}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&0===t.length?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(null===this.previousDeps)return void(this.previousDeps=e);if(this.previousDeps.length===e.length&&this.previousDeps.every((t,r)=>t===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{this.isComponentMounted&&this.instanceId===e?t&&t.setOptions(this.options.current):t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))}
2,1)}};function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const r=(0,n.useRef)(e);r.current=e;const[i]=(0,n.useState)(()=>new $(r)),s=(0,o.useSyncExternalStore)(i.subscribe,i.getEditor,i.getServerSnapshot);return(0,n.useDebugValue)(s),(0,n.useEffect)(i.onRender(t)),G({editor:s,selector:t=>{let{transactionNumber:r}=t;return!1===e.shouldRerenderOnTransaction||void 0===e.shouldRerenderOnTransaction?null:e.immediatelyRender&&0===r?0:r+1}}),s}var J=(0,n.createContext)({editor:null});J.Consumer;var Z=(0,n.createContext)({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),ee=()=>(0,n.useContext)(Z);n.forwardRef((e,t)=>{const{onDragStart:r}=ee(),n=e.as||"div";return(0,s.jsx)(n,{...e,ref:t,"data-node-view-wrapper":"",onDragStart:r,style:{whiteSpace:"normal",...e.style}})});function te(e){return!("function"!==typeof e||!e.prototype||!e.prototype.isReactComponent)}function re(e){return!("object"!==typeof e||!e.$$typeof||"Symbol(react.forward_ref)"!==e.$$typeof.toString()&&"react.forward_ref"!==e.$$typeof.description)}var ne=class{constructor(e,t){let{editor:r,props:n={},as:o="div",className:s=""}=t;this.ref=null,this.destroyed=!1,this.id=Math.floor(4294967295*Math.random()).toString(),this.component=e,this.editor=r,this.props=n,this.element=document.createElement(o),this.element.classList.add("react-renderer"),s&&this.element.classList.add(...s.split(" ")),this.editor.isInitialized?(0,i.flushSync)(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var e;if(this.destroyed)return;const t=this.component,r=this.props,i=this.editor,o=function(){try{if(n.version)return parseInt(n.version.split(".")[0],10)>=19}catch{}return!1}(),a=function(e){if(te(e))return!0;if(re(e))return!0;if(function(e){return!("object"!==typeof e||!e.$$typeof||"Symbol(react.memo)"!==e.$$typeof.toString()&&"react.memo"!==e.$$typeof.description)}(e)){const t=e.type;if(t)return te(t)||re(t)}return!1}(t),l={...r};!l.ref||o||a||delete l.ref,l.ref||!o&&!a||(l.ref=e=>{this.ref=e}),this.reactElement=(0,s.jsx)(t,{...l}),null==(e=null==i?void 0:i.contentComponent)||e.setRenderer(this.id,this)}updateProps(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.destroyed||(this.props={...this.props,...e},this.render())}destroy(){var e;this.destroyed=!0;const t=this.editor;null==(e=null==t?void 0:t.contentComponent)||e.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(e){Object.keys(e).forEach(t=>{this.element.setAttribute(t,e[t])})}},ie=n.createContext({markViewContentRef:()=>{}});a.Db;a.Yv;var oe=(0,n.createContext)({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});oe.displayName="TiptapContext";var se=()=>(0,n.useContext)(oe);function ae(e){let{editor:t,instance:r,children:i}=e;const o=null!=t?t:r;if(!o)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const a=(0,n.useMemo)(()=>({editor:o}),[o]),l=(0,n.useMemo)(()=>({editor:o}),[o]);return(0,s.jsx)(J.Provider,{value:l,children:(0,s.jsx)(oe.Provider,{value:a,children:i})})}function le(e){let{...t}=e;const{editor:r}=se();return(0,s.jsx)(W,{editor:r,...t})}ae.displayName="Tiptap",le.displayName="Tiptap.Content";Object.assign(ae,{Content:le})},7965(e,t,r){"use strict";r.d(t,{A:()=>Kr});var n=r(7732);var i=(e,t)=>{if("slot"===e)return 0;if(e instanceof Function)return e(t);const{children:r,...n}=null!=t?t:{};if("svg"===e)throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");return[e,n,r]},o=/^\s*>\s$/,s=n.bP.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML(e){let{HTMLAttributes:t}=e;return i("blockquote",{...(0,n.KV)(this.options.HTMLAttributes,t),children:i("slot",{})})},parseMarkdown:(e,t)=>t.createNode("blockquote",void 0,t.parseChildren(e.tokens||[])),renderMarkdown:(e,t)=>{if(!e.content)return"";const r=[];
2return e.content.forEach(e=>{const n=t.renderChildren([e]).split("\n").map(e=>""===e.trim()?">":`> ${e}`);r.push(n.join("\n"))}),r.join("\n>\n")},addCommands(){return{setBlockquote:()=>e=>{let{commands:t}=e;return t.wrapIn(this.name)},toggleBlockquote:()=>e=>{let{commands:t}=e;return t.toggleWrap(this.name)},unsetBlockquote:()=>e=>{let{commands:t}=e;return t.lift(this.name)}}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[(0,n.tG)({find:o,type:this.type})]}}),a=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,l=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,c=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,u=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,d=n.CU.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:e=>"normal"!==e.style.fontWeight&&null},{style:"font-weight=400",clearMark:e=>e.type.name===this.name},{style:"font-weight",getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML(e){let{HTMLAttributes:t}=e;return i("strong",{...(0,n.KV)(this.options.HTMLAttributes,t),children:i("slot",{})})},markdownTokenName:"strong",parseMarkdown:(e,t)=>t.applyMark("bold",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleBold:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetBold:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}}
2,addInputRules(){return[(0,n.OX)({find:a,type:this.type}),(0,n.OX)({find:c,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:l,type:this.type}),(0,n.Zc)({find:u,type:this.type})]}}),h=/(^|[^`])`([^`]+)`(?!`)$/,f=/(^|[^`])`([^`]+)`(?!`)/g,p=n.CU.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML(e){let{HTMLAttributes:t}=e;return["code",(0,n.KV)(this.options.HTMLAttributes,t),0]},markdownTokenName:"codespan",parseMarkdown:(e,t)=>t.applyMark("code",[{type:"text",text:e.text||""}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:"",addCommands(){return{setCode:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleCode:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetCode:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[(0,n.OX)({find:h,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:f,type:this.type})]}}),m=r(8973),g=/^```([a-z]+)?[\s\n]$/,b=/^~~~([a-z]+)?[\s\n]$/,y=n.bP.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:4,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{var t;const{languageClassPrefix:r}=this.options;if(!r)return null;const n=[...(null==(t=e.firstElementChild)?void 0:t.classList)||[]].filter(e=>e.startsWith(r)).map(e=>e.replace(r,""))[0];return n||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML(e){let{node:t,HTMLAttributes:r}=e;return["pre",(0,n.KV)(this.options.HTMLAttributes,r),["code",{class:t.attrs.language?this.options.languageClassPrefix+t.attrs.language:null},0]]},markdownTokenName:"code",parseMarkdown:(e,t)=>{var r,n;return!1===(null==(r=e.raw)?void 0:r.startsWith("```"))&&!1===(null==(n=e.raw)?void 0:n.startsWith("~~~"))&&"indented"!==e.codeBlockStyle?[]:t.createNode("codeBlock",{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[])},renderMarkdown:(e,t)=>{var r;let n="";const i=(null==(r=e.attrs)?void 0:r.language)||"";if(e.content){n=[`\`\`\`${i}`,t.renderChildren(e.content),"```"].join("\n")}else n=`\`\`\`${i}\n\n\`\`\``;return n},addCommands(){return{setCodeBlock:e=>t=>{let{commands:r}=t;return r.setNode(this.name,e)},toggleCodeBlock:e=>t=>{let{commands:r}=t;return r.toggleNode(this.name,"paragraph",e)}}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:e,$anchor:t}=this.editor.state.selection,r=1===t.pos;return!(!e||t.parent.type.name!==this.name)&&(!(!r&&t.parent.textContent.length)&&this.editor.commands.clearNodes())},Tab:e=>{let{editor:t}=e;var r;if(!this.options.enableTabIndentation)return!1;const n=null!=(r=this.options.tabSize)?r:4,{state:i}=t,{selection:o}=i,{$from:s,empty:a}=o;if(s.parent.type!==this.type)return!1;const l=" ".repeat(n);return a?t.commands.insertContent(l):t.commands.command(e=>{let{tr:t}=e;const{from:r,to:n}=o,s=i.doc.textBetween(r,n,"\n","\n").split("\n").map(e=>l+e).join("\n");return t.replaceWith(r,n,i.schema.text(s)),!0})},"Shift-Tab":e=>{let{editor:t}=e;var r;if(!this.options.enableTabIndentation)return!1;const n=null!=(r=this.options.tabSize)?r:4,{state:i}=t,{selection:o}=i,{$from:s,empty:a}=o;return s.parent.type===this.type&&(a?t.commands.command(e=>{let{tr:t}=e;var r;const{pos:o}=s,a=s.start(),l=s.end(),c=i.doc.textBetween(a,l,"\n","\n").split("\n");let u=0,d=0;const h=o-a;for(let n=0;n<c.length;n+=1){if(d+c[n].length>=h){u=n;break}d+=c[n].length+1}const f=(null==(r=c[u].match(/^ */))?void 0:r[0])||"",p=Math.min(f.length,n);if(0===p)return!0;let g=a;for(let n=0;n<u;n+=1)g+=c[n].length+1;t.delete(g,g+p);return o-g<=p&&t.setSelection(m.U3.create(t.doc,g)),!0}):t.commands.command(e=>{let{tr:t}=e;const{from:r,to:s}=o,a=i.doc.textBetween(r,s,"\n","\n").split("\n").map(e=>{var t;const r=(null==(t=e.match(/^ */))?void 0:t[0])||"",i=Math.min(r.length,n);return e.slice(i)}).join("\n");return t.replaceWith(r,s,i.schema.text(a)),!0}))},Enter:e=>{let{editor:t}=e;if(!this.options.exitOnTripleEnter)return!1;const{state:r}=t,{selection:n}=r,{$from:i,empty:o}=n;if(!o||i.parent.type!==this.type)return!1;const s=i.parentOffset===i.parent.nodeSize-2,a=i.parent.textContent.endsWith("\n\n");return!(!s||!a)&&t.chain().command(e=>{let{tr:t}=e;return t.delete(i.pos-2,i.pos),!0}).exitCode().run()},ArrowDown:e=>{let{editor:t}=e;if(!this.options.exitOnArrowDown)return!1;const{state:r}=t,{selection:n,doc:i}=r,{$from:o,empty:s}=n;if(!s||o.parent.type!==this.type)return!1;if(!(o.parentOffset===o.parent.nodeSize-2))return!1;const a=o.after();if(void 0===a)return!1;return i.nodeAt(a)?t.commands.command(e=>{let{tr:t}=e;
2return t.setSelection(m.LN.near(i.resolve(a))),!0}):t.commands.exitCode()}}},addInputRules(){return[(0,n.JJ)({find:g,type:this.type,getAttributes:e=>({language:e[1]})}),(0,n.JJ)({find:b,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new m.k_({key:new m.hs("codeBlockVSCodeHandler"),props:{handlePaste:(e,t)=>{if(!t.clipboardData)return!1;if(this.editor.isActive(this.type.name))return!1;const r=t.clipboardData.getData("text/plain"),n=t.clipboardData.getData("vscode-editor-data"),i=n?JSON.parse(n):void 0,o=null==i?void 0:i.mode;if(!r||!o)return!1;const{tr:s,schema:a}=e.state,l=a.text(r.replace(/\r\n?/g,"\n"));return s.replaceSelectionWith(this.type.create({language:o},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(m.U3.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),e.dispatch(s),!0}}})]}}),A=n.bP.create({name:"doc",topNode:!0,content:"block+",renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n\n"):""}),v=n.bP.create({name:"hardBreak",markdownTokenName:"br",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML:()=>[{tag:"br"}],renderHTML(e){let{HTMLAttributes:t}=e;return["br",(0,n.KV)(this.options.HTMLAttributes,t)]},renderText:()=>"\n",renderMarkdown:()=>" \n",parseMarkdown:()=>({type:"hardBreak"}),addCommands(){return{setHardBreak:()=>e=>{let{commands:t,chain:r,state:n,editor:i}=e;return t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:e,storedMarks:t}=n;if(e.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:s}=i.extensionManager,a=t||e.$to.parentOffset&&e.$from.marks();return r().insertContent({type:this.name}).command(e=>{let{tr:t,dispatch:r}=e;if(r&&a&&o){const e=a.filter(e=>s.includes(e.type.name));t.ensureMarks(e)}return!0}).run()})])}}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),w=n.bP.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML(e){let{node:t,HTMLAttributes:r}=e;return[`h${this.options.levels.includes(t.attrs.level)?t.attrs.level:this.options.levels[0]}`,(0,n.KV)(this.options.HTMLAttributes,r),0]},parseMarkdown:(e,t)=>t.createNode("heading",{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{var r;const n=(null==(r=e.attrs)?void 0:r.level)?parseInt(e.attrs.level,10):1,i="#".repeat(n);return e.content?`${i} ${t.renderChildren(e.content)}`:""},addCommands(){return{setHeading:e=>t=>{let{commands:r}=t;return!!this.options.levels.includes(e.level)&&r.setNode(this.name,e)},toggleHeading:e=>t=>{let{commands:r}=t;return!!this.options.levels.includes(e.level)&&r.toggleNode(this.name,"paragraph",e)}}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>(0,n.JJ)({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
2)\\s$`),type:this.type,getAttributes:{level:e}}))}}),x=n.bP.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{},nextNodeType:"paragraph"}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML(e){let{HTMLAttributes:t}=e;return["hr",(0,n.KV)(this.options.HTMLAttributes,t)]},markdownTokenName:"hr",parseMarkdown:(e,t)=>t.createNode("horizontalRule"),renderMarkdown:()=>"---",addCommands(){return{setHorizontalRule:()=>e=>{let{chain:t,state:r}=e;if(!(0,n.AB)(r,r.schema.nodes[this.name]))return!1;const{selection:i}=r,{$to:o}=i,s=t();return(0,n.BQ)(i)?s.insertContentAt(o.pos,{type:this.name}):s.insertContent({type:this.name}),s.command(e=>{let{state:t,tr:r,dispatch:n}=e;if(n){const{$to:e}=r.selection,n=e.end();if(e.nodeAfter)e.nodeAfter.isTextblock?r.setSelection(m.U3.create(r.doc,e.pos+1)):e.nodeAfter.isBlock?r.setSelection(m.nh.create(r.doc,e.pos)):r.setSelection(m.U3.create(r.doc,e.pos));else{const i=t.schema.nodes[this.options.nextNodeType]||e.parent.type.contentMatch.defaultType,o=null==i?void 0:i.create();o&&(r.insert(n,o),r.setSelection(m.U3.create(r.doc,n+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[(0,n.jT)({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.t
2ype})]}}),k=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,C=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,_=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,S=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,E=n.CU.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:e=>"normal"!==e.style.fontStyle&&null},{style:"font-style=normal",clearMark:e=>e.type.name===this.name},{style:"font-style=italic"}]},renderHTML(e){let{HTMLAttributes:t}=e;return["em",(0,n.KV)(this.options.HTMLAttributes,t),0]},addCommands(){return{setItalic:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleItalic:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetItalic:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},markdownTokenName:"em",parseMarkdown:(e,t)=>t.applyMark("italic",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}}
2,addInputRules(){return[(0,n.OX)({find:k,type:this.type}),(0,n.OX)({find:_,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:C,type:this.type}),(0,n.Zc)({find:S,type:this.type})]}});const T="numeric",M="ascii",O="alpha",N="asciinumeric",P="alphanumeric",R="domain",D="emoji",I="scheme",L="slashscheme",B="whitespace";function j(e,t){return e in t||(t[e]=[]),t[e]}function F(e,t,r){t[T]&&(t[N]=!0,t[P]=!0),t[M]&&(t[N]=!0,t[O]=!0),t[N]&&(t[P]=!0),t[O]&&(t[P]=!0),t[P]&&(t[R]=!0),t[D]&&(t[R]=!0);for(const n in t){const t=j(n,r);t.indexOf(e)<0&&t.push(e)}}function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.j={},this.jr=[],this.jd=null,this.t=e}z.groups={},z.prototype={accepts(){return!!this.t},go(e){const t=this,r=t.j[e];if(r)return r;for(let n=0;n<t.jr.length;n++){const r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?e in this.j:!!this.go(e)},ta(e,t,r,n){for(let i=0;i<e.length;i++)this.tt(e[i],t,r,n)},tr(e,t,r,n){let i;return n=n||z.groups,t&&t.j?i=t:(i=new z(t),r&&n&&F(t,r,n)),this.jr.push([e,i]),i},ts(e,t,r,n){let i=this;const o=e.length;if(!o)return i;for(let s=0;s<o-1;s++)i=i.tt(e[s]);return i.tt(e[o-1],t,r,n)},tt(e,t,r,n){n=n||z.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const o=t;let s,a=i.go(e);if(a?(s=new z,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new z,o){if(n)if(s.t&&"string"===typeof s.t){const e=Object.assign(function(e,t){const r={};for(const n in t)t[n].indexOf(e)>=0&&(r[n]=!0);return r}(s.t,n),r);F(o,e,n)}else r&&F(o,r,n);s.t=o}return i.j[e]=s,s}};const U=(e,t,r,n,i)=>e.ta(t,r,n,i),H=(e,t,r,n,i)=>e.tr(t,r,n,i),V=(e,t,r,n,i)=>e.ts(t,r,n,i),W=(e,t,r,n,i)=>e.tt(t,r,n,i),K="WORD",q="UWORD",G="ASCIINUMERICAL",X="ALPHANUMERICAL",Y="LOCALHOST",$="TLD",Q="UTLD",J="SCHEME",Z="SLASH_SCHEME",ee="NUM",te="WS",re="NL",ne="OPENBRACE",ie="CLOSEBRACE",oe="OPENBRACKET",se="CLOSEBRACKET",ae="OPENPAREN",le="CLOSEPAREN",ce="OPENANGLEBRACKET",ue="CLOSEANGLEBRACKET",de="FULLWIDTHLEFTPAREN",he="FULLWIDTHRIGHTPAREN",fe="LEFTCORNERBRACKET",pe="RIGHTCORNERBRACKET",me="LEFTWHITECORNERBRACKET",ge="RIGHTWHITECORNERBRACKET",be="FULLWIDTHLESSTHAN",ye="FULLWIDTHGREATERTHAN",Ae="AMPERSAND",ve="APOSTROPHE",we="ASTERISK",xe="AT",ke="BACKSLASH",Ce="BACKTICK",_e="CARET",Se="COLON",Ee="COMMA",Te="DOLLAR",Me="DOT",Oe="EQUALS",Ne="EXCLAMATION",Pe="HYPHEN",Re="PERCENT",De="PIPE",Ie="PLUS",Le="POUND",Be="QUERY",je="QUOTE",Fe="FULLWIDTHMIDDLEDOT",ze="SEMI",Ue="SLASH",He="TILDE",Ve="UNDERSCORE",We="EMOJI",Ke="SYM";var qe=Object.freeze({__proto__:null,ALPHANUMERICAL:X,AMPERSAND:Ae,APOSTROPHE:ve,ASCIINUMERICAL:G,ASTERISK:we,AT:xe,BACKSLASH:ke,BACKTICK:Ce,CARET:_e,CLOSEANGLEBRACKET:ue,CLOSEBRACE:ie,CLOSEBRACKET:se,CLOSEPAREN:le,COLON:Se,COMMA:Ee,DOLLAR:Te,DOT:Me,EMOJI:We,EQUALS:Oe,EXCLAMATION:Ne,FULLWIDTHGREATERTHAN:ye,FULLWIDTHLEFTPAREN:de,FULLWIDTHLESSTHAN:be,FULLWIDTHMIDDLEDOT:Fe,FULLWIDTHRIGHTPAREN:he,HYPHEN:Pe,LEFTCORNERBRACKET:fe,LEFTWHITECORNERBRACKET:me,LOCALHOST:Y,NL:re,NUM:ee,OPENANGLEBRACKET:ce,OPENBRACE:ne,OPENBRACKET:oe,OPENPAREN:ae,PERCENT:Re,PIPE:De,PLUS:Ie,POUND:Le,QUERY:Be,QUOTE:je,RIGHTCORNERBRACKET:pe,RIGHTWHITECORNERBRACKET:ge,SCHEME:J,SEMI:ze,SLASH:Ue,SLASH_SCHEME:Z,SYM:Ke,TILDE:He,TLD:$,UNDERSCORE:Ve,UTLD:Q,UWORD:q,WORD:K,WS:te});const Ge=/[a-z]/,Xe=/\p{L}/u,Ye=/\p{Emoji}/u,$e=/\d/,Qe=/\s/;let Je=null,Ze=null;function et(e,t){const r=function(e){const t=[],r=e.length;let n=0;for(;n<r;){let i,o=e.charCodeAt(n),s=o<55296||o>56319||n+1===r||(i=e.charCodeAt(n+1))<56320||i>57343?e[n]:e.slice(n,n+2);t.push(s),n+=s.length}return t}(t.replace(/[A-Z]/g,e=>e.toLowerCase())),n=r.length,i=[];let o=0,s=0;for(;s<n;){let a=e,l=null,c=0,u=null,d=-1,h=-1;for(;s<n&&(l=a.go(r[s]));)a=l,a.accepts()?(d=0,h=0,u=a):d>=0&&(d+=r[s].length,h++),c+=r[s].length,o+=r[s].length,s++;o-=d,s-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function tt(e,t,r,n,i){let o;const s=t.length;for(let a=0;a<s-1;a++){const r=t[a];e.j[r]?o=e.j[r]:(o=new z(n),o.jr=i.slice(),e.j[r]=o),e=o}return o=new z(r),o.jr=i.slice(),e.j[t[s-1]]=o,o}function rt(e){const t=[],r=[];let n=0;for(;n<e.length;){let i=0;for(;"0123456789".indexOf(e[n+i])>=0;)i++;if(i>0){t.push(r.join(""));for(let t=parseInt(e.substring(n,n+i),10);t>0;t--)r.pop();n+=i}else r.push(e[n]),n++}return t}const nt={defaultProtocol:"http",events:null,format:ot,formatHref:ot,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function it(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=Object.assign({},nt);e&&(r=Object.assign(r,e instanceof it?e.o:e));const n=r.ignoreTags,i=[];for(let o=0;o<n.length;o++)i.push(n[o].toUpperCase());this.o=r,t&&(this.defaultRender=t),this.ignoreTags=i}function ot(e){return e}it.prototype={o:nt,ignoreTags:[],defaultRender:e=>e,check(e){return this.get("validate",e.toString(),e)},get(e,t,r){const n=null!=t;let i=this.o[e];return i?("object"===typeof i?(i=r.t in i?i[r.t]:nt[e],"function"===typeof i&&n&&(i=i(t,r))):"function"===typeof i&&n&&(i=i(t,r.t,r)),i):i},getObj(e,t,r){let n=this.o[e];return"function"===typeof n&&null!=t&&(n=n(t,r.t,r)),n},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function st(e,t){this.t="token",this.v=e,this.tk=t}function at(e,t){class r extends st{constructor(t,r){super(t,r),this.t=e}}
2for(const n in t)r.prototype[n]=t[n];return r.t=e,r}st.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),r=e.get("truncate",t,this),n=e.get("format",t,this);return r&&n.length>r?n.substring(0,r)+"\u2026":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt.defaultProtocol;return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,r=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",r,this),i=e.get("tagName",r,t),o=this.toFormattedString(e),s={},a=e.get("className",r,t),l=e.get("target",r,t),c=e.get("rel",r,t),u=e.getObj("attributes",r,t),d=e.getObj("events",r,t);return s.href=n,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:i,attributes:s,content:o,eventListeners:d}}};const lt=at("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),ct=at("text"),ut=at("nl"),dt=at("url",{isLink:!0,toHref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt.defaultProtocol;return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Y&&e[1].t===Se}});const ht=e=>new z(e);function ft(e,t,r){const n=r[0].s,i=r[r.length-1].e;return new e(t.slice(n,i),r)}const pt="undefined"!==typeof console&&console&&console.warn||(()=>{}),mt="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",gt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function bt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(gt.initialized&&pt(`linkifyjs: already initialized - will not register custom scheme "${e}" ${mt}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw new Error('linkifyjs: incorrect scheme format.\n1. Must only contain digits, lowercase ASCII letters or "-"\n2. Cannot start or end with "-"\n3. "-" cannot repeat');gt.customSchemes.push([e,t])}function yt(){gt.scanner=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t={};z.groups=t;const r=new z;null==Je&&(Je=rt("aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5m\xf6gensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2")),null==Ze&&(Ze=rt("\u03b5\u03bb1\u03c52\u0431\u04331\u0435\u043b3\u0434\u0435\u0442\u04384\u0435\u044e2\u043a\u0430\u0442\u043e\u043b\u0438\u043a6\u043e\u043c3\u043c\u043a\u04342\u043e\u043d1\u0441\u043a\u0432\u04306\u043e\u043d\u043b\u0430\u0439\u043d5\u0440\u04333\u0440\u0443\u04412\u04442\u0441\u0430\u0439\u04423\u0440\u04313\u0443\u043a\u04403\u049b\u0430\u04373\u0570\u0561\u05753\u05d9\u05e9\u05e8\u05d0\u05dc5\u05e7\u05d5\u05dd3\u0627\u0628\u0648\u0638\u0628\u064a5\u0631\u0627\u0645\u0643\u06485\u0644\u0627\u0631\u062f\u06464\u0628\u062d\u0631\u064a\u06465\u062c\u0632\u0627\u0626\u06315\u0633\u0639\u0648\u062f\u064a\u06296\u0639\u0644\u064a\u0627\u06465\u0645\u063a\u0631\u06285\u0645\u0627\u0631\u0627\u062a5\u06cc\u0631\u0627\u06465\u0628\u0627\u0631\u062a2\u0632\u0627\u06314\u064a\u062a\u06433\u06be\u0627\u0631\u062a5\u062a\u0648\u0646\u06334\u0633\u0648\u062f\u0627\u06463\u0631\u064a\u06295\u0634\u0628\u0643\u06294\u0639\u0631\u0627\u06422\u06282\u0645\u0627\u06464\u0641\u0644\u0633\u0637\u064a\u06466\u0642\u0637\u06313\u0643\u0627\u062b\u0648\u0644\u064a\u06436\u0648\u06453\u0645\u0635\u06312\u0644\u064a\u0633\u064a\u06275\u0648\u0631\u064a\u062a\u0627\u0646\u064a\u06277\u0642\u06394\u0647\u0645\u0631\u0627\u06475\u067e\u0627\u06a9\u0633\u062a\u0627\u06467\u0680\u0627\u0631\u062a4\u0915\u0949\u092e3\u0928\u0947\u091f3\u092d\u093e\u0930\u09240\u092e\u094d3\u094b\u09245\u0938\u0902\u0917\u0920\u09285\u09ac\u09be\u0982\u09b2\u09be5\u09ad\u09be\u09b0\u09a42\u09f0\u09a44\u0a2d\u0a3e\u0a30\u0a244\u0aad\u0abe\u0ab0\u0aa44\u0b2d\u0b3e\u0b30\u0b244\u0b87\u0ba8\u0bcd\u0ba4\u0bbf\u0baf\u0bbe6\u0bb2\u0b99\u0bcd\u0b95\u0bc86\u0b9a\u0bbf\u0b99\u0bcd\u0b95\u0baa\u0bcd\u0baa\u0bc2\u0bb0\u0bcd11\u0c2d\u0c3e\u0c30\u0c24\u0c4d5\u0cad\u0cbe\u0cb0\u0ca44\u0d2d\u0d3e\u0d30\u0d24\u0d025\u0dbd\u0d82\u0d9a\u0dcf4\u0e04\u0e2d\u0e213\u0e44\u0e17\u0e223\u0ea5\u0eb2\u0ea73\u10d2\u10d42\u307f\u3093\u306a3\u30a2\u30de\u30be\u30f34\u30af\u30e9\u30a6\u30c94\u30b0\u30fc\u30b0\u30eb4\u30b3\u30e02\u30b9\u30c8\u30a23\u30bb\u30fc\u30eb3\u30d5\u30a1\u30c3\u30b7\u30e7\u30f36\u30dd\u30a4\u30f3\u30c84\u4e16\u754c2\u4e2d\u4fe11\u56fd1\u570b1\u6587\u7f513\u4e9a\u9a6c\u900a3\u4f01\u4e1a2\u4f5b\u5c712\u4fe1\u606f2\u5065\u5eb72\u516b\u53662\u516c\u53f81\u76ca2\u53f0\u6e7e1\u70632\u5546\u57ce1\u5e971\u68072\u5609\u91cc0\u5927\u9152\u5e975\u5728\u7ebf2\u5927\u62ff2\u5929\u4e3b\u65593\u5a31\u4e502\u5bb6\u96fb2\u5e7f\u4e1c2\u5fae\u535a2\u6148\u55842\u6211\u7231\u4f603\u624b\u673a2\u62db\u80582\u653f\u52a11\u5e9c2\u65b0\u52a0\u57612\u95fb2\u65f6\u5c1a2\u66f8\u7c4d2\u673a\u67842\u6de1\u9a6c\u95213\u6e38\u620f2\u6fb3\u95802\u70b9\u770b2\u79fb\u52a82\u7ec4\u7ec7\u673a\u67844\u7f51\u57401\u5e971\u7ad91\u7edc2\u8054\u901a2\u8c37\u6b4c2\u8d2d\u72692\u901a\u8ca92\u96c6\u56e22\u96fb\u8a0a\u76c8\u79d14\u98de\u5229\u6d663\u98df\u54c12\u9910\u53852\u9999\u683c\u91cc\u62c93\u6e2f2\ub2f7\ub1371\ucef42\uc0bc\uc1312\ud55c\uad6d2")),W(r,"'",ve),W(r,"{",ne),W(r,"}",ie),W(r,"[",oe),W(r,"]",se),W(r,"(",ae),W(r,")",le),W(r,"<",ce),W(r,">",ue),W(r,"\uff08",de),W(r,"\uff09",he),W(r,"\u300c",fe),W(r,"\u300d",pe),W(r,"\u300e",me),W(r,"\u300f",ge),W(r,"\uff1c",be),W(r,"\uff1e",ye),W(r,"&",Ae),W(r,"*",we),W(r,"@",xe),W(r,"`",Ce),W(r,"^",_e),W(r,":",Se),W(r,",",Ee),W(r,"$",Te),W(r,".",Me),W(r,"=",Oe),W(r,"!",Ne),W(r,"-",Pe),W(r,"%",Re),W(r,"|",De),W(r,"+",Ie),W(r,"#",Le),W(r,"?",Be),W(r,'"',je),W(r,"/",Ue),W(r,";",ze),W(r,"~",He),W(r,"_",Ve),W(r,"\\",ke),W(r,"\u30fb",Fe);const n=H(r,$e,ee,{[T]:!0});H(n,$e,n);const i=H(n,Ge,G,{[N]:!0}),o=H(n,Xe,X,{[P]:!0}
2),s=H(r,Ge,K,{[M]:!0});H(s,$e,i),H(s,Ge,s),H(i,$e,i),H(i,Ge,i);const a=H(r,Xe,q,{[O]:!0});H(a,Ge),H(a,$e,o),H(a,Xe,a),H(o,$e,o),H(o,Ge),H(o,Xe,o);const l=W(r,"\n",re,{[B]:!0}),c=W(r,"\r",te,{[B]:!0}),u=H(r,Qe,te,{[B]:!0});W(r,"\ufffc",u),W(c,"\n",l),W(c,"\ufffc",u),H(c,Qe,u),W(u,"\r"),W(u,"\n"),H(u,Qe,u),W(u,"\ufffc",u);const d=H(r,Ye,We,{[D]:!0});W(d,"#"),H(d,Ye,d),W(d,"\ufe0f",d);const h=W(d,"\u200d");W(h,"#"),H(h,Ye,d);const f=[[Ge,s],[$e,i]],p=[[Ge,null],[Xe,a],[$e,o]];for(let m=0;m<Je.length;m++)tt(r,Je[m],$,K,f);for(let m=0;m<Ze.length;m++)tt(r,Ze[m],Q,q,p);F($,{tld:!0,ascii:!0},t),F(Q,{utld:!0,alpha:!0},t),tt(r,"file",J,K,f),tt(r,"mailto",J,K,f),tt(r,"http",Z,K,f),tt(r,"https",Z,K,f),tt(r,"ftp",Z,K,f),tt(r,"ftps",Z,K,f),F(J,{scheme:!0,ascii:!0},t),F(Z,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let m=0;m<e.length;m++){const t=e[m][0],n=e[m][1]?{[I]:!0}:{[L]:!0};t.indexOf("-")>=0?n[R]=!0:Ge.test(t)?$e.test(t)?n[N]=!0:n[M]=!0:n[T]=!0,V(r,t,t,n)}return V(r,"localhost",Y,{ascii:!0}),r.jd=new z(Ke),{start:r,tokens:Object.assign({groups:t},qe)}}(gt.customSchemes);for(let e=0;e<gt.tokenQueue.length;e++)gt.tokenQueue[e][1]({scanner:gt.scanner});gt.parser=function(e){let{groups:t}=e;const r=t.domain.concat([Ae,we,xe,ke,Ce,_e,Te,Oe,Pe,ee,Re,De,Ie,Le,Ue,Ke,He,Ve]),n=[ve,Se,Ee,Me,Ne,Re,Be,je,ze,ce,ue,ne,ie,se,oe,ae,le,de,he,fe,pe,me,ge,be,ye],i=[Ae,ve,we,ke,Ce,_e,Te,Oe,Pe,ne,ie,Re,De,Ie,Le,Be,Ue,Ke,He,Ve],o=ht(),s=W(o,He);U(s,i,s),U(s,t.domain,s);const a=ht(),l=ht(),c=ht();U(o,t.domain,a),U(o,t.scheme,l),U(o,t.slashscheme,c),U(a,i,s),U(a,t.domain,a);const u=W(a,xe);W(s,xe,u),W(l,xe,u),W(c,xe,u);const d=W(s,Me);U(d,i,s),U(d,t.domain,s);const h=ht();U(u,t.domain,h),U(h,t.domain,h);const f=W(h,Me);U(f,t.domain,h);const p=ht(lt);U(f,t.tld,p),U(f,t.utld,p),W(u,Y,p);const m=W(h,Pe);W(m,Pe,m),U(m,t.domain,h),U(p,t.domain,h),W(p,Me,f),W(p,Pe,m);const g=W(p,Se);U(g,t.numeric,lt);const b=W(a,Pe),y=W(a,Me);W(b,Pe,b),U(b,t.domain,a),U(y,i,s),U(y,t.domain,a);const A=ht(dt);U(y,t.tld,A),U(y,t.utld,A),U(A,t.domain,a),U(A,i,s),W(A,Me,y),W(A,Pe,b),W(A,xe,u);const v=W(A,Se),w=ht(dt);U(v,t.numeric,w);const x=ht(dt),k=ht();U(x,r,x),U(x,n,k),U(k,r,x),U(k,n,k),W(A,Ue,x),W(w,Ue,x);const C=W(l,Se),_=W(c,Se),S=W(_,Ue),E=W(S,Ue);U(l,t.domain,a),W(l,Me,y),W(l,Pe,b),U(c,t.domain,a),W(c,Me,y),W(c,Pe,b),U(C,t.domain,x),W(C,Ue,x),W(C,Be,x),U(E,t.domain,x),U(E,r,x),W(E,Ue,x);const T=[[ne,ie],[oe,se],[ae,le],[ce,ue],[de,he],[fe,pe],[me,ge],[be,ye]];for(let M=0;M<T.length;M++){const[e,t]=T[M],i=W(x,e);W(k,e,i),W(i,t,x);const o=ht(dt);U(i,r,o);const s=ht();U(i,n),U(o,r,o),U(o,n,s),U(s,r,o),U(s,n,s),W(o,t,x),W(s,t,x)}return W(o,Y,A),W(o,re,ut),{start:o,tokens:qe}}(gt.scanner.tokens);for(let e=0;e<gt.pluginQueue.length;e++)gt.pluginQueue[e][1]({scanner:gt.scanner,parser:gt.parser});return gt.initialized=!0,gt}function At(e){return gt.initialized||yt(),function(e,t,r){let n=r.length,i=0,o=[],s=[];for(;i<n;){let a=e,l=null,c=null,u=0,d=null,h=-1;for(;i<n&&!(l=a.go(r[i].t));)s.push(r[i++]);for(;i<n&&(c=l||a.go(r[i].t));)l=null,a=c,a.accepts()?(h=0,d=a):h>=0&&h++,i++,u++;if(h<0)i-=u,i<n&&(s.push(r[i]),i++);else{s.length>0&&(o.push(ft(ct,t,s)),s=[]),i-=h,u-=h;const e=d.t,n=r.slice(i-u,i);o.push(ft(e,t,n))}}return s.length>0&&o.push(ft(ct,t,s)),o}(gt.parser.start,e,et(gt.scanner.start,e))}function vt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(t&&"object"===typeof t){if(r)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);r=t,t=null}const n=new it(r),i=At(e),o=[];for(let s=0;s<i.length;s++){const e=i[s];!e.isLink||t&&e.t!==t||!n.check(e)||o.push(e.toFormattedObject(n))}return o}At.scan=et;var wt="[\0- \xa0\u1680\u180e\u2000-\u2029\u205f\u3000]",xt=new RegExp(wt),kt=new RegExp(`${wt}$`),Ct=new RegExp(wt,"g");function _t(e,t){const r=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return t&&t.forEach(e=>{const t="string"===typeof e?e:e.scheme;t&&r.push(t)}),!e||e.replace(Ct,"").match(new RegExp(`^(?:(?:${r.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}var St=n.CU.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `val
2idate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{"string"!==typeof e?bt(e.scheme,e.optionalSlashes):bt(e)})},onDestroy(){z.groups={},gt.scanner=null,gt.parser=null,gt.tokenQueue=[],gt.pluginQueue=[],gt.customSchemes=[],gt.initialized=!1},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(e,t)=>!!_t(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{const t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),r=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||r&&!e.includes("@"))return!0;const n=(e.includes("@")?e.split("@").pop():e).split(/[/?#:]/)[0];return!/^\d{1,3}(\.\d{1,3}){3}$/.test(n)&&!!/\./.test(n)}}),addAttributes(){return{href:{default:null,parseHTML:e=>e.getAttribute("href")},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},title:{default:null}}},parseHTML(){return[{tag:"a[href]",getAttrs:e=>{const t=e.getAttribute("href");return!(!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!_t(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&null}}]},renderHTML(e){let{HTMLAttributes:t}=e;return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!_t(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",(0,n.KV)(this.options.HTMLAttributes,t),0]:["a",(0,n.KV)(this.options.HTMLAttributes,{...t,href:""}),0]},markdownTokenName:"link",parseMarkdown:(e,t)=>t.applyMark("link",t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{var r,n,i,o;const s=null!=(n=null==(r=e.attrs)?void 0:r.href)?n:"",a=null!=(o=null==(i=e.attrs)?void 0:i.title)?o:"",l=t.renderChildren(e);return a?`[${l}](${s} "${a}")`:`[${l}](${s})`},addCommands(){return{setLink:e=>t=>{let{chain:r}=t;const{href:n}=e;return!!this.options.isAllowedUri(n,{defaultValidate:e=>!!_t(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})&&r().setMark(this.name,e).setMeta("preventAutolink",!0).run()},toggleLink:e=>t=>{let{chain:r}=t;const{href:n}=e||{};return!(n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!_t(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}))&&r().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()},unsetLink:()=>e=>{let{chain:t}=e;return t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}}},addPasteRules(){return[(0,n.Zc)({find:e=>{const t=[];if(e){const{protocols:r,defaultProtocol:n}=this.options,i=vt(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!_t(e,r),protocols:r,defaultProtocol:n}));i.length&&i.forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t}
2,type:this.type,getAttributes:e=>{var t;return{href:null==(t=e.data)?void 0:t.href}}})]},addProseMirrorPlugins(){const e=[],{protocols:t,defaultProtocol:r}=this.options;return this.options.autolink&&e.push(function(e){return new m.k_({key:new m.hs("autolink"),appendTransaction:(t,r,i)=>{const o=t.some(e=>e.docChanged)&&!r.doc.eq(i.doc),s=t.some(e=>e.getMeta("preventAutolink"));if(!o||s)return;const{tr:a}=i,l=(0,n.T7)(r.doc,[...t]);return(0,n.FF)(l).forEach(t=>{let{newRange:r}=t;const o=(0,n.Nx)(i.doc,r,e=>e.isTextblock);let s,l;if(o.length>1)s=o[0],l=i.doc.textBetween(s.pos,s.pos+s.node.nodeSize,void 0," ");else if(o.length){const e=i.doc.textBetween(r.from,r.to," "," ");if(!kt.test(e))return;s=o[0],l=i.doc.textBetween(s.pos,r.to,void 0," ")}if(s&&l){const t=l.split(xt).filter(Boolean);if(t.length<=0)return!1;const r=t[t.length-1],o=s.pos+l.lastIndexOf(r);if(!r)return!1;const u=At(r).map(t=>t.toObject(e.defaultProtocol));if(!(1===(c=u).length?c[0].isLink:3===c.length&&c[1].isLink&&["()","[]"].includes(c[0].value+c[2].value)))return!1;u.filter(e=>e.isLink).map(e=>({...e,from:o+e.start+1,to:o+e.end+1})).filter(e=>!i.schema.marks.code||!i.doc.rangeHasMark(e.from,e.to,i.schema.marks.code)).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{(0,n.hO)(t.from,t.to,i.doc).some(t=>t.mark.type===e.type)||a.addMark(t.from,t.to,e.type.create({href:t.href}))})}var c}),a.steps.length?a:void 0}})}({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!_t(e,t),protocols:t,defaultProtocol:r}),shouldAutoLink:this.options.shouldAutoLink})),e.push(function(e){return new m.k_({key:new m.hs("handleClickLink"),props:{handleClick:(t,r,i)=>{var o,s;if(0!==i.button)return!1;if(!t.editable)return!1;let a=null;if(i.target instanceof HTMLAnchorElement)a=i.target;else{const t=i.target;if(!t)return!1;const r=e.editor.view.dom;a=t.closest("a"),a&&!r.contains(a)&&(a=null)}if(!a)return!1;let l=!1;if(e.enableClickSelection&&(l=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){const r=(0,n.gu)(t.state,e.type.name),i=null!=(o=a.href)?o:r.href,c=null!=(s=a.target)?s:r.target;i&&(window.open(i,c),l=!0)}return l}}})}({type:this.type,editor:this.editor,openOnClick:"whenNotEditable"===this.options.openOnClick||this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(function(e){return new m.k_({key:new m.hs("handlePasteLink"),props:{handlePaste:(t,r,n)=>{const{shouldAutoLink:i}=e,{state:o}=t,{selection:s}=o,{empty:a}=s;if(a)return!1;let l="";n.content.forEach(e=>{l+=e.textContent});const c=vt(l,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===l);return!(!l||!c||void 0!==i&&!i(c.value))&&e.editor.commands.setMark(e.type,{href:c.href})}}})}({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),Et=Object.defineProperty,Tt="textStyle",Mt=/^\s*([-+*])\s$/,Ot=n.bP.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML(e){let{HTMLAttributes:t}=e;return["ul",(0,n.KV)(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>"list"!==e.type||e.ordered?[]:{type:"bulletList",content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>e=>{let{commands:t,chain:r}=e;return this.options.keepAttributes?r().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(Tt)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=(0,n.tG)({find:Mt,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:Mt,type:this.t
2ype,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(Tt),editor:this.editor})),[e]}}),Nt=n.bP.create({name:"listItem",addOptions:()=>({HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML(e){let{HTMLAttributes:t}=e;return["li",(0,n.KV)(this.options.HTMLAttributes,t),0]},markdownTokenName:"list_item",parseMarkdown:(e,t)=>{if("list_item"!==e.type)return[];let r=[];if(e.tokens&&e.tokens.length>0){if(e.tokens.some(e=>"paragraph"===e.type))r=t.parseChildren(e.tokens);else{const n=e.tokens[0];if(n&&"text"===n.type&&n.tokens&&n.tokens.length>0){if(r=[{type:"paragraph",content:t.parseInline(n.tokens)}],e.tokens.length>1){const n=e.tokens.slice(1),i=t.parseChildren(n);r.push(...i)}}else r=t.parseChildren(e.tokens)}}return 0===r.length&&(r=[{type:"paragraph",content:[]}]),{type:"listItem",content:r}},renderMarkdown:(e,t,r)=>(0,n.kj)(e,t,e=>{var t,r;if("bulletList"===e.parentType)return"- ";if("orderedList"===e.parentType){return`${((null==(r=null==(t=e.meta)?void 0:t.parentAttrs)?void 0:r.start)||1)+e.index}. `}return"- "},r),addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}});((e,t)=>{for(var r in t)Et(e,r,{get:t[r],enumerable:!0})})({},{findListItemPos:()=>Pt,getNextListDepth:()=>Rt,handleBackspace:()=>Bt,handleDelete:()=>zt,hasListBefore:()=>Dt,hasListItemAfter:()=>Ut,hasListItemBefore:()=>It,listItemHasSubList:()=>Lt,nextListIsDeeper:()=>jt,nextListIsHigher:()=>Ft});var Pt=(e,t)=>{const{$from:r}=t.selection,i=(0,n.Pg)(e,t.schema);let o=null,s=r.depth,a=r.pos,l=null;for(;s>0&&null===l;)o=r.node(s),o.type===i?l=s:(s-=1,a-=1);return null===l?null:{$pos:t.doc.resolve(a),depth:l}},Rt=(e,t)=>{const r=Pt(e,t);if(!r)return!1;const[,i]=(0,n.fl)(t,e,r.$pos.pos+4);return i},Dt=(e,t,r)=>{const{$anchor:n}=e.selection,i=Math.max(0,n.pos-2),o=e.doc.resolve(i).node();return!(!o||!r.includes(o.type.name))},It=(e,t)=>
2{var r;const{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-2);return 0!==i.index()&&(null==(r=i.nodeBefore)?void 0:r.type.name)===e},Lt=(e,t,r)=>{if(!r)return!1;const i=(0,n.Pg)(e,t.schema);let o=!1;return r.descendants(e=>{e.type===i&&(o=!0)}),o},Bt=(e,t,r)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!(0,n.rU)(e.state,t)&&Dt(e.state,t,r)){const{$anchor:r}=e.state.selection,n=e.state.doc.resolve(r.before()-1),i=[];n.node().descendants((e,r)=>{e.type.name===t&&i.push({node:e,pos:r})});const o=i.at(-1);if(!o)return!1;const s=e.state.doc.resolve(n.start()+o.pos+1);return e.chain().cut({from:r.start()-1,to:r.end()+1},s.end()).joinForward().run()}if(!(0,n.rU)(e.state,t))return!1;if(!(0,n.J_)(e.state))return!1;const i=Pt(t,e.state);if(!i)return!1;const o=e.state.doc.resolve(i.$pos.pos-2).node(i.depth),s=Lt(t,e.state,o);return It(t,e.state)&&!s?e.commands.joinItemBackward():e.chain().liftListItem(t).run()},jt=(e,t)=>{const r=Rt(e,t),n=Pt(e,t);return!(!n||!r)&&r>n.depth},Ft=(e,t)=>{const r=Rt(e,t),n=Pt(e,t);return!(!n||!r)&&r<n.depth},zt=(e,t)=>{if(!(0,n.rU)(e.state,t))return!1;if(!(0,n.QN)(e.state,t))return!1;const{selection:r}=e.state,{$from:i,$to:o}=r;return!(!r.empty&&i.sameParent(o))&&(jt(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():Ft(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward())},Ut=(e,t)=>{var r;const{$anchor:n}=t.selection,i=t.doc.resolve(n.pos-n.parentOffset-2);return i.index()!==i.parent.childCount-1&&(null==(r=i.nodeAfter)?void 0:r.type.name)===e},Ht=n.YY.create({name:"listKeymap",addOptions:()=>({listTypes:[{itemName:"listItem",wrapperNames:["bulletList","orderedList"]},{itemName:"taskItem",wrapperNames:["taskList"]}]}),addKeyboardShortcuts(){return{Delete:e=>{let{editor:t}=e,r=!1;return this.options.listTypes.forEach(e=>{let{itemName:n}=e;void 0!==t.state.schema.nodes[n]&&zt(t,n)&&(r=!0)}),r},"Mod-Delete":e=>{let{editor:t}=e,r=!1;return this.options.listTypes.forEach(e=>{let{itemName:n}=e;void 0!==t.state.schema.nodes[n]&&zt(t,n)&&(r=!0)}),r},Backspace:e=>{let{editor:t}=e,r=!1;return this.options.listTypes.forEach(e=>{let{itemName:n,wrapperNames:i}=e;void 0!==t.state.schema.nodes[n]&&Bt(t,n,i)&&(r=!0)}),r},"Mod-Backspace":e=>{let{editor:t}=e,r=!1;return this.options.listTypes.forEach(e=>{let{itemName:n,wrapperNames:i}=e;void 0!==t.state.schema.nodes[n]&&Bt(t,n,i)&&(r=!0)}),r}}}}),Vt=/^(\s*)(\d+)\.\s+(.*)$/,Wt=/^\s/;function Kt(e,t,r){var n;const i=[];let o=0;for(;o<e.length;){const s=e[o];if(s.indent===t){const a=s.content.split("\n"),l=(null==(n=a[0])?void 0:n.trim())||"",c=[];l&&c.push({type:"paragraph",raw:l,tokens:r.inlineTokens(l)});const u=a.slice(1).join("\n").trim();if(u){const e=r.blockTokens(u);c.push(...e)}let d=o+1;const h=[];for(;d<e.length&&e[d].indent>t;)h.push(e[d]),d+=1;if(h.length>0){const e=Math.min(...h.map(e=>e.indent)),t=Kt(h,e,r);c.push({type:"list",ordered:!0,start:h[0].number,items:t,raw:h.map(e=>e.raw).join("\n")})}i.push({type:"list_item",raw:s.raw,tokens:c}),o=d}else o+=1}return i}var qt="textStyle",Gt=/^(\d+)\.\s$/,Xt=n.bP.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:e=>e.hasAttribute("start")?parseInt(e.getAttribute("start")||"",10):1},type:{default:null,parseHTML:e=>e.getAttribute("type")}}),parseHTML:()=>[{tag:"ol"}],renderHTML(e){let{HTMLAttributes:t}=e;const{start:r,...i}=t;return 1===r?["ol",(0,n.KV)(this.options.HTMLAttributes,i),0]:["ol",(0,n.KV)(this.options.HTMLAttributes,t),0]},markdownTokenName:"list",parseMarkdown:(e,t)=>{if("list"!==e.type||!e.ordered)return[];const r=e.start||1,n=e.items?function(e,t){return e.map(e=>{if("list_item"!==e.type)return t.parseChildren([e])[0];const r=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if("paragraph"===e.type||"list"===e.type||"blockquote"===e.type||"code"===e.type)r.push(...t.parseChildren([e]));else if("text"===e.type&&e.tokens){const n=t.parseChildren([e]);r.push({type:"paragraph",content:n})}else{const n=t.parseChildren([e]);n.length>0&&r.push(...n)}}),{type:"listItem",content:r}})}(e.items,t):[];return 1!==r?{type:"orderedList",attrs:{start:r},content:n}:{type:"orderedList",content:n}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"orderedList",level:"block",start:e=>{const t=e.match(/^(\s*)(\d+)\.\s+/),r=null==t?void 0:t.index;return void 0!==r?r:-1}
2,tokenize:(e,t,r)=>{var n;const i=e.split("\n"),[o,s]=function(e){const t=[];let r=0,n=0;for(;r<e.length;){const i=e[r],o=i.match(Vt);if(!o)break;const[,s,a,l]=o,c=s.length;let u=l,d=r+1;const h=[i];for(;d<e.length;){const t=e[d];if(t.match(Vt))break;if(""===t.trim())h.push(t),u+="\n",d+=1;else{if(!t.match(Wt))break;h.push(t),u+=`\n${t.slice(c+2)}`,d+=1}}t.push({indent:c,number:parseInt(a,10),content:u.trim(),raw:h.join("\n")}),n=d,r=d}return[t,n]}(i);if(0===o.length)return;const a=Kt(o,0,r);if(0===a.length)return;return{type:"list",ordered:!0,start:(null==(n=o[0])?void 0:n.number)||1,items:a,raw:i.slice(0,s).join("\n")}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>e=>{let{commands:t,chain:r}=e;return this.options.keepAttributes?r().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes("listItem",this.editor.getAttributes(qt)).run():t.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let e=(0,n.tG)({find:Gt,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(e=(0,n.tG)({find:Gt,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(qt)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[e]}}),Yt=/^\s*(\[([( |x])?\])\s$/,$t=n.bP.create({name:"taskItem",addOptions:()=>({nested:!1,HTMLAttributes:{},taskListTypeName:"taskList",a11y:void 0}),content(){return this.options.nested?"paragraph block*":"paragraph+"},defining:!0,addAttributes:()=>({checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{const t=e.getAttribute("data-checked");return""===t||"true"===t},renderHTML:e=>({"data-checked":e.checked})}}),parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51}]},renderHTML(e){let{node:t,HTMLAttributes:r}=e;return["li",(0,n.KV)(this.options.HTMLAttributes,r,{"data-type":this.name}),["label",["input",{type:"checkbox",checked:t.attrs.checked?"checked":null}],["span"]],["div",0]]},parseMarkdown:(e,t)=>{const r=[];if(e.tokens&&e.tokens.length>0?r.push(t.createNode("paragraph",{},t.parseInline(e.tokens))):e.text?r.push(t.createNode("paragraph",{},[t.createNode("text",{text:e.text})])):r.push(t.createNode("paragraph",{},[])),e.nestedTokens&&e.nestedTokens.length>0){const n=t.parseChildren(e.nestedTokens);r.push(...n)}return t.createNode("taskItem",{checked:e.checked||!1},r)},renderMarkdown:(e,t)=>{var r;const i=`- [${(null==(r=e.attrs)?void 0:r.checked)?"x":" "}] `;return(0,n.kj)(e,t,i)},addKeyboardShortcuts(){const e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return e=>{let{node:t,HTMLAttributes:r,getPos:i,editor:o}=e;const s=document.createElement("li"),a=document.createElement("label"),l=document.createElement("span"),c=document.createElement("input"),u=document.createElement("div"),d=e=>{var t,r;c.ariaLabel=(null==(r=null==(t=this.options.a11y)?void 0:t.checkboxLabel)?void 0:r.call(t,e,c.checked))||`Task item checkbox for ${e.textContent||"empty task item"}`};d(t),a.contentEditable="false",c.type="checkbox",c.addEventListener("mousedown",e=>e.preventDefault()),c.addEventListener("change",e=>{if(!o.isEditable&&!this.options.onReadOnlyChecked)return void(c.checked=!c.checked);const{checked:r}=e.target;o.isEditable&&"function"===typeof i&&o.chain().focus(void 0,{scrollIntoView:!1}).command(e=>{let{tr:t}=e;const n=i();if("number"!==typeof n)return!1;const o=t.doc.nodeAt(n);return t.setNodeMarkup(n,void 0,{...null==o?void 0:o.attrs,checked:r}),!0}).run(),!o.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(t,r)||(c.checked=!c.checked))}),Object.entries(this.options.HTMLAttributes).forEach(e=>{let[t,r]=e;s.setAttribute(t,r)}),s.dataset.checked=t.attrs.checked,c.checked=t.attrs.checked,a.append(c,l),s.append(a,u),Object.entries(r).forEach(e
2=>{let[t,r]=e;s.setAttribute(t,r)});let h=new Set(Object.keys(r));return{dom:s,contentDOM:u,update:e=>{if(e.type!==this.type)return!1;s.dataset.checked=e.attrs.checked,c.checked=e.attrs.checked,d(e);const t=o.extensionManager.attributes,r=(0,n.zU)(e,t),i=new Set(Object.keys(r)),a=this.options.HTMLAttributes;return h.forEach(e=>{i.has(e)||(e in a?s.setAttribute(e,a[e]):s.removeAttribute(e))}),Object.entries(r).forEach(e=>{let[t,r]=e;null===r||void 0===r?t in a?s.setAttribute(t,a[t]):s.removeAttribute(t):s.setAttribute(t,r)}),h=i,!0}}}},addInputRules(){return[(0,n.tG)({find:Yt,type:this.type,getAttributes:e=>({checked:"x"===e[e.length-1]})})]}}),Qt=n.bP.create({name:"taskList",addOptions:()=>({itemTypeName:"taskItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML(e){let{HTMLAttributes:t}=e;return["ul",(0,n.KV)(this.options.HTMLAttributes,t,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode("taskList",{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,"\n"):"",markdownTokenizer:{name:"taskList",level:"block",start(e){var t;const r=null==(t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/))?void 0:t.index;return void 0!==r?r:-1},tokenize(e,t,r){const i=e=>{const t=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);return t?[{type:"taskList",raw:t.raw,items:t.items}]:r.blockTokens(e)},o=(0,n.Dd)(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:"x"===e[3].toLowerCase()}),createToken:(e,t)=>({type:"taskItem",raw:"",mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:r.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:i},r);if(o)return{type:"taskList",raw:o.raw,items:o.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>e=>{let{commands:t}=e;return t.toggleList(this.name,this.options.itemTypeName)}}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}}),Jt=(n.YY.create({name:"listKit",addExtensions(){const e=[];return!1!==this.options.bulletList&&e.push(Ot.configure(this.options.bulletList)),!1!==this.options.listItem&&e.push(Nt.configure(this.options.listItem)),!1!==this.options.listKeymap&&e.push(Ht.configure(this.options.listKeymap)),!1!==this.options.orderedList&&e.push(Xt.configure(this.options.orderedList)),!1!==this.options.taskItem&&e.push($t.configure(this.options.taskItem)),!1!==this.options.taskList&&e.push(Qt.configure(this.options.taskList)),e}})," "),Zt=n.bP.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML(e){let{HTMLAttributes:t}=e;return["p",(0,n.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>{const r=e.tokens||[];if(1===r.length&&"image"===r[0].type)return t.parseChildren([r[0]]);const n=t.parseInline(r);return 1!==n.length||"text"!==n[0].type||n[0].text!==Jt&&"\xa0"!==n[0].text?t.createNode("paragraph",void 0,n):t.createNode("paragraph",void 0,[])},renderMarkdown:(e,t)=>{if(!e)return"";const r=Array.isArray(e.content)?e.content:[];return 0===r.length?Jt:t.renderChildren(r)},addCommands(){return{setParagraph:()=>e=>{let{commands:t}=e;return t.setNode(this.name)}}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),er=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,tr=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,rr=n.CU.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("line-through")&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["s",(0,n.KV)(this.options.HTMLAttributes,t),0]},markdownTokenName:"del",parseMarkdown:(e,t)=>t.applyMark("strike",t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleStrike:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetStrike:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}}
2,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[(0,n.OX)({find:er,type:this.type})]},addPasteRules(){return[(0,n.Zc)({find:tr,type:this.type})]}}),nr=n.bP.create({name:"text",group:"inline",parseMarkdown:e=>({type:"text",text:e.text||""}),renderMarkdown:e=>e.text||""}),ir=n.CU.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:e=>!!e.includes("underline")&&{}}],renderHTML(e){let{HTMLAttributes:t}=e;return["u",(0,n.KV)(this.options.HTMLAttributes,t),0]},parseMarkdown(e,t){return t.applyMark(this.name||"underline",t.parseInline(e.tokens||[]))},renderMarkdown:(e,t)=>`++${t.renderChildren(e)}++`,markdownTokenizer:{name:"underline",level:"inline",start:e=>e.indexOf("++"),tokenize(e,t,r){const n=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!n)return;const i=n[2].trim();return{type:"underline",raw:n[0],text:i,tokens:r.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>e=>{let{commands:t}=e;return t.setMark(this.name)},toggleUnderline:()=>e=>{let{commands:t}=e;return t.toggleMark(this.name)},unsetUnderline:()=>e=>{let{commands:t}=e;return t.unsetMark(this.name)}}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),or=r(9206);function sr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new m.k_({view:t=>new ar(t,e)})}class ar{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(r=t.width)&&void 0!==r?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}})}destroy(){this.handlers.forEach(e=>{let{name:t,handler:r}=e;return this.editorView.dom.removeEventListener(t,r)})}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),r=!t.parent.inlineContent,n=this.editorView.dom,i=n.getBoundingClientRect(),o=i.width/n.offsetWidth,s=i.height/n.offsetHeight;if(r){let r=t.nodeBefore,n=t.nodeAfter;if(r||n){let t=this.editorView.nodeDOM(this.cursorPos-(r?r.nodeSize:0));if(t){let i=t.getBoundingClientRect(),o=r?i.bottom:i.top;r&&n&&(o=(o+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let a=this.width/2*s;e={left:i.left,right:i.right,top:o-a,bottom:o+a}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos),r=this.width/2*o;e={left:t.left-r,right:t.left+r,top:t.top,bottom:t.bottom}}let a,l,c=this.editorView.dom.offsetParent;if(this.element||(this.element=c.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),!c||c==document.body&&"static"==getComputedStyle(c).position)a=-pageXOffset,l=-pageYOffset;else{let e=c.getBoundingClientRect(),t=e.width/c.offsetWidth,r=e.height/c.offsetHeight;a=e.left-c.scrollLeft*t,l=e.top-c.scrollTop*r}this.element.style.left=(e.left-a)/o+"px",this.element.style.top=(e.top-l)/s+"px",this.element.style.width=(e.right-e.left)/o+"px",this.element.style.height=(e.bottom-e.top)/s+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,i="function"==typeof n?n(this.editorView,t,e):n;if(t&&!i){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=(0,or.Um)(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var lr=r(7367),cr=r(9112),ur=r(3498);class dr extends m.LN{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));
2return dr.valid(r)?new dr(r):m.LN.near(r)}content(){return ur.Ji.empty}eq(e){return e instanceof dr&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new dr(e.resolve(t.pos))}getBookmark(){return new hr(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!function(e){for(let t=e.depth;t>=0;t--){let r=e.index(t),n=e.node(t);if(0!=r)for(let e=n.child(r-1);;e=e.lastChild){if(0==e.childCount&&!e.inlineContent||fr(e.type))return!0;if(e.inlineContent)return!1}else if(n.type.spec.isolating)return!0}return!0}(e)||!function(e){for(let t=e.depth;t>=0;t--){let r=e.indexAfter(t),n=e.node(t);if(r!=n.childCount)for(let e=n.child(r);;e=e.firstChild){if(0==e.childCount&&!e.inlineContent||fr(e.type))return!0;if(e.inlineContent)return!1}else if(n.type.spec.isolating)return!0}return!0}(e))return!1;let r=t.type.spec.allowGapCursor;if(null!=r)return r;let n=t.contentMatchAt(e.index()).defaultType;return n&&n.isTextblock}static findGapCursorFrom(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e:for(;;){if(!r&&dr.valid(e))return e;let n=e.pos,i=null;for(let r=e.depth;;r--){let o=e.node(r);if(t>0?e.indexAfter(r)<o.childCount:e.index(r)>0){i=o.child(t>0?e.indexAfter(r):e.index(r)-1);break}if(0==r)return null;n+=t;let s=e.doc.resolve(n);if(dr.valid(s))return s}for(;;){let o=t>0?i.firstChild:i.lastChild;if(!o){if(i.isAtom&&!i.isText&&!m.nh.isSelectable(i)){e=e.doc.resolve(n+i.nodeSize*t),r=!1;continue e}break}i=o,n+=t;let s=e.doc.resolve(n);if(dr.valid(s))return s}return null}}}dr.prototype.visible=!1,dr.findFrom=dr.findGapCursorFrom,m.LN.jsonID("gapcursor",dr);class hr{constructor(e){this.pos=e}map(e){return new hr(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);
2return dr.valid(t)?new dr(t):m.LN.near(t)}}function fr(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}const pr=(0,cr.K)({ArrowLeft:mr("horiz",-1),ArrowRight:mr("horiz",1),ArrowUp:mr("vert",-1),ArrowDown:mr("vert",1)});function mr(e,t){const r="vert"==e?t>0?"down":"up":t>0?"right":"left";return function(e,n,i){let o=e.selection,s=t>0?o.$to:o.$from,a=o.empty;if(o instanceof m.U3){if(!i.endOfTextblock(r)||0==s.depth)return!1;a=!1,s=e.doc.resolve(t>0?s.after():s.before())}let l=dr.findGapCursorFrom(s,t,a);return!!l&&(n&&n(e.tr.setSelection(new dr(l))),!0)}}function gr(e,t,r){if(!e||!e.editable)return!1;let n=e.state.doc.resolve(t);if(!dr.valid(n))return!1;let i=e.posAtCoords({left:r.clientX,top:r.clientY});return!(i&&i.inside>-1&&m.nh.isSelectable(e.state.doc.nodeAt(i.inside)))&&(e.dispatch(e.state.tr.setSelection(new dr(n))),!0)}function br(e,t){if("insertCompositionText"!=t.inputType||!(e.state.selection instanceof dr))return!1;let{$from:r}=e.state.selection,n=r.parent.contentMatchAt(r.index()).findWrapping(e.state.schema.nodes.text);if(!n)return!1;let i=ur.FK.empty;for(let s=n.length-1;s>=0;s--)i=ur.FK.from(n[s].createAndFill(null,i));let o=e.state.tr.replace(r.pos,r.pos,new ur.Ji(i,0,0));return o.setSelection(m.U3.near(o.doc.resolve(r.pos+1))),e.dispatch(o),!1}function yr(e){if(!(e.selection instanceof dr))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",lr.zF.create(e.doc,[lr.NZ.widget(e.selection.head,t,{key:"gapcursor"})])}var Ar=200,vr=function(){};vr.prototype.append=function(e){return e.length?(e=vr.from(e),!this.length&&e||e.length<Ar&&this.leafAppend(e)||this.length<Ar&&e.leafPrepend(this)||this.appendInner(e)):this},vr.prototype.prepend=function(e){return e.length?vr.from(e).append(this):this},vr.prototype.appendInner=function(e){return new xr(this,e)},vr.prototype.slice=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=this.length),e>=t?vr.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},vr.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},vr.prototype.forEach=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},vr.prototype.map=function(e,t,r){void 0===t&&(t=0),void 0===r&&(r=this.length);var n=[];return this.forEach(function(t,r){return n.push(e(t,r))},t,r),n},vr.from=function(e){return e instanceof vr?e:e&&e.length?new wr(e):vr.empty};var wr=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var r={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,r){return 0==e&&r==this.length?this:new t(this.values.slice(e,r))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,r,n){for(var i=t;i<r;i++)if(!1===e(this.values[i],n+i))return!1},t.prototype.forEachInvertedInner=function(e,t,r,n){for(var i=t-1;i>=r;i--)if(!1===e(this.values[i],n+i))return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=Ar)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=Ar)return new t(e.flatten().concat(this.values))},r.length.get=function(){return this.values.length},r.depth.get=function(){return 0},Object.defineProperties(t.prototype,r),t}(vr);vr.empty=new wr([]);var xr=function(e){function t(t,r){e.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,r,n){var i=this.left.length;return!(t<i&&!1===this.left.forEachInner(e,t,Math.min(r,i),n))&&(!(r>i&&!1===this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,r)-i,n+i))&&void 0)},t.prototype.forEachInvertedInner=function(e,t,r,n){var i=this.left.length;return!(t>
2i&&!1===this.right.forEachInvertedInner(e,t-i,Math.max(r,i)-i,n+i))&&(!(r<i&&!1===this.left.forEachInvertedInner(e,Math.min(t,i),r,n))&&void 0)},t.prototype.sliceInner=function(e,t){if(0==e&&t==this.length)return this;var r=this.left.length;return t<=r?this.left.slice(e,t):e>=r?this.right.slice(e-r,t-r):this.left.slice(e,r).append(this.right.slice(0,t-r))},t.prototype.leafAppend=function(e){var r=this.right.leafAppend(e);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(e){var r=this.left.leafPrepend(e);if(r)return new t(r,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(vr);const kr=vr;class Cr{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(0==this.eventCount)return null;let r,n,i=this.items.length;for(;;i--){if(this.items.get(i-1).selection){--i;break}}t&&(r=this.remapping(i,this.items.length),n=r.maps.length);let o,s,a=e.tr,l=[],c=[];return this.items.forEach((e,t)=>{if(!e.step)return r||(r=this.remapping(i,t+1),n=r.maps.length),n--,void c.push(e);if(r){c.push(new _r(e.map));let t,i=e.step.map(r.slice(n));i&&a.maybeStep(i).doc&&(t=a.mapping.maps[a.mapping.maps.length-1],l.push(new _r(t,void 0,void 0,l.length+c.length))),n--,t&&r.appendMap(t,n)}else a.maybeStep(e.step);return e.selection?(o=r?e.selection.map(r.slice(n)):e.selection,s=new Cr(this.items.slice(0,i).append(c.reverse().concat(l)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:s,transform:a,selection:o}}addTransform(e,t,r,n){let i=[],o=this.eventCount,s=this.items,a=!n&&s.length?s.get(s.length-1):null;for(let c=0;c<e.steps.length;c++){let r,l=e.steps[c].invert(e.docs[c]),u=new _r(e.mapping.maps[c],l,t);(r=a&&a.merge(u))&&(u=r,c?i.pop():s=s.slice(0,s.length-1)),i.push(u),t&&(o++,t=void 0),n||(a=u)}let l=o-r.depth;return l>Er&&(s=function(e,t){let r;return e.forEach((e,n)=>{if(e.selection&&0==t--)return r=n,!1}),e.slice(r)}(s,l),o-=l),new Cr(s.append(i),o)}remapping(e,t){let r=new or.X9;return this.items.forEach((t,n)=>{let i=null!=t.mirrorOffset&&n-t.mirrorOffset>=e?r.maps.length-t.mirrorOffset:void 0;r.appendMap(t.map,i)},e,t),r}addMaps(e){return 0==this.eventCount?this:new Cr(this.items.append(e.map(e=>new _r(e))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],n=Math.max(0,this.items.length-t),i=e.mapping,o=e.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},n);let a=t;this.items.forEach(t=>{let n=i.getMirror(--a);if(null==n)return;o=Math.min(o,n);let l=i.maps[n];if(t.step){let o=e.steps[n].invert(e.docs[n]),c=t.selection&&t.selection.map(i.slice(a+1,n));c&&s++,r.push(new _r(l,o,c))}else r.push(new _r(l))},n);let l=[];for(let d=t;d<o;d++)l.push(new _r(i.maps[d]));let c=this.items.slice(0,n).append(l).append(r),u=new Cr(c,s);return u.emptyItemCount()>500&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.remapping(0,e),r=t.maps.length,n=[],i=0;return this.items.forEach((o,s)=>{if(s>=e)n.push(o),o.selection&&i++;else if(o.step){let e=o.step.map(t.slice(r)),s=e&&e.getMap();if(r--,s&&t.appendMap(s,r),e){let a=o.selection&&o.selection.map(t.slice(r));a&&i++;let l,c=new _r(s.invert(),e,a),u=n.length-1;(l=n.length&&n[u].merge(c))?n[u]=l:n.push(c)}}else o.map&&r--},this.items.length,0),new Cr(kr.from(n.reverse()),i)}}Cr.empty=new Cr(kr.empty,0);class _r{constructor(e,t,r,n){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=n}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new _r(t.getMap().invert(),t,this.selection)}}}class Sr{constructor(e,t,r,n,i){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=n,this.prevComposition=i}}const Er=20;function Tr(e){let t=[];for(let r=e.length-1;r>=0&&0==t.length;r--)e[r].forEach((e,r,n,i)=>t.push(n,i));return t}function Mr(e,t){if(!e)return null;let r=[];for(let n=0;n<e.length;n+=2){let i=t.map(e[n],1),o=t.map(e[n+1],-1);i<=o&&r.push(i,o)}return r}let Or=!1,Nr=null;function Pr(e){let t=e.plugins;if(Nr!=t){Or=!1,Nr=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){Or=!0;break}}return Or}const Rr=new m.hs("history"),Dr=new m.hs("closeHistory");function Ir(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new m.k_({key:Rr,state:{init:()=>new Sr(Cr.empty,Cr.empty,null,0,-1),apply:(t,r,n)=>function(e,t,r,n){let i,o=r.getMeta(Rr);if(o)return o.historyState;r.getMeta(Dr)&&(e=new Sr(e.done,e.undone,null,0,-1));let s=r.getMeta("appendedTransaction");if(0==r.steps.length)return e;if(s&&s.getMeta(Rr))return s.getMeta(Rr).redo?new Sr(e.done.addTransform(r,void 0,n,Pr(t)),e.undone,Tr(r.mapping.maps),e.prevTime,e.prevComposition):new Sr(e.done,e.undone.addTransform(r,void 0,n,Pr(t)),null,e.prevTime,e.prevComposition);if(!1===r.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(i=r.getMeta("rebased"))?new Sr(e.done.rebased(r,i),e.undone.rebased(r,i),Mr(e.prevRanges,r.mapping),e.prevTime,e.prevComposition):new Sr(e.done.addMaps(r.mapping.maps),e.undone.addMaps(r.mapping.maps),Mr(e.prevRanges,r.mapping),e.prevTime,e.prevComposition);{let i=r.getMeta("composition"),o=0==e.prevTime||!s&&e.prevComposition!=i&&(e.prevTime<(r.time||0)-n.newGroupDelay||!function(e,t){if(!t)return!1;if(!e.docChanged)return!0;let r=!1;
2return e.mapping.maps[0].forEach((e,n)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&n>=t[i]&&(r=!0)}),r}(r,e.prevRanges)),a=s?Mr(e.prevRanges,r.mapping):Tr(r.mapping.maps);return new Sr(e.done.addTransform(r,o?t.selection.getBookmark():void 0,n,Pr(t)),Cr.empty,a,r.time,null==i?e.prevComposition:i)}}(r,n,t,e)},config:e,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,n="historyUndo"==r?Br:"historyRedo"==r?jr:null;return!(!n||!e.editable)&&(t.preventDefault(),n(e.state,e.dispatch))}}}})}function Lr(e,t){return(r,n)=>{let i=Rr.getState(r);if(!i||0==(e?i.undone:i.done).eventCount)return!1;if(n){let o=function(e,t,r){let n=Pr(t),i=Rr.get(t).spec.config,o=(r?e.undone:e.done).popEvent(t,n);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(r?e.done:e.undone).addTransform(o.transform,t.selection.getBookmark(),i,n),l=new Sr(r?a:o.remaining,r?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(Rr,{redo:r,historyState:l})}(i,r,e);o&&n(t?o.scrollIntoView():o)}return!0}}const Br=Lr(!1,!0),jr=Lr(!0,!0);Lr(!1,!1),Lr(!0,!1);n.YY.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize",textCounter:e=>e.length,wordCounter:e=>e.split(" ").filter(e=>""!==e).length}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc;if("textSize"===((null==e?void 0:e.mode)||this.options.mode)){const e=t.textBetween(0,t.content.size,void 0," ");return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{const t=(null==e?void 0:e.node)||this.editor.state.doc,r=t.textBetween(0,t.content.size," "," ");return this.options.wordCounter(r)}},addProseMirrorPlugins(){let e=!1;return[new m.k_({key:new m.hs("characterCount"),appendTransaction:(t,r,n)=>{if(e)return;const i=this.options.limit;if(null===i||void 0===i||0===i)return void(e=!0);const o=this.storage.characters({node:n.doc});if(o>i){const t=0,r=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);const s=n.tr.deleteRange(t,r);return e=!0,s}e=!0},filterTransaction:(e,t)=>{const r=this.options.limit;if(!e.docChanged||0===r||null===r||void 0===r)return!0;const n=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=r)return!0;if(n>r&&i>r&&i<=n)return!0;if(n>r&&i>r&&i>n)return!1;if(!e.getMeta("paste"))return!1;const o=e.selection.$head.pos,s=o-(i-r),a=o;e.deleteRange(s,a);return!(this.storage.characters({node:e.doc})>r)}})]}});var Fr=n.YY.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[sr(this.options)]}}),zr=(n.YY.create({name:"focus",addOptions:()=>({className:"has-focus",mode:"all"}),addProseMirrorPlugins(){return[new m.k_({key:new m.hs("focus"),props:{decorations:e=>{let{doc:t,selection:r}=e;const{isEditable:n,isFocused:i}=this.editor,{anchor:o}=r,s=[];if(!n||!i)return lr.zF.create(t,[]);let a=0;"deepest"===this.options.mode&&t.descendants((e,t)=>{if(e.isText)return;if(!(o>=t&&o<=t+e.nodeSize-1))return!1;a+=1});let l=0;return t.descendants((e,t)=>{if(e.isText)return!1;if(!(o>=t&&o<=t+e.nodeSize-1))return!1;l+=1;if("deepest"===this.options.mode&&a-l>0||"shallowest"===this.options.mode&&l>1)return"deepest"===this.options.mode;s.push(lr.NZ.node(t,t+e.nodeSize,{class:this.options.className}))}),lr.zF.create(t,s)}}})]}}),n.YY.create({name:"gapCursor",addProseMirrorPlugins:()=>[new m.k_({props:{decorations:yr,createSelectionBetween:(e,t,r)=>t.pos==r.pos&&dr.valid(r)?new dr(r):null,handleClick:gr,handleKeyDown:pr,handleDOMEvents:{beforeinput
2:br}}})],extendNodeSchema(e){var t;const r={name:e.name,options:e.options,storage:e.storage};return{allowGapCursor:null!=(t=(0,n.gk)((0,n.iI)(e,"allowGapCursor",r)))?t:null}}})),Ur="placeholder";n.YY.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",dataAttribute:Ur,placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){const e=this.options.dataAttribute?`data-${t=this.options.dataAttribute,t.replace(/\s+/g,"-").replace(/[^a-zA-Z0-9-]/g,"").replace(/^[0-9-]+/,"").replace(/^-+/,"").toLowerCase()}`:`data-${Ur}`;var t;return[new m.k_({key:new m.hs("placeholder"),props:{decorations:t=>{let{doc:r,selection:i}=t;const o=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:s}=i,a=[];if(!o)return null;const l=this.editor.isEmpty;return r.descendants((t,r)=>{const i=s>=r&&s<=r+t.nodeSize,o=!t.isLeaf&&(0,n.Op)(t);if((i||!this.options.showOnlyCurrent)&&o){const n=[this.options.emptyNodeClass];l&&n.push(this.options.emptyEditorClass);const o=lr.NZ.node(r,r+t.nodeSize,{class:n.join(" "),[e]:"function"===typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:t,pos:r,hasAnchor:i}):this.options.placeholder});a.push(o)}return this.options.includeChildren}),lr.zF.create(r,a)}}})]}}),n.YY.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){const{editor:e,options:t}=this;return[new m.k_({key:new m.hs("selection"),props:{decorations:r=>r.selection.empty||e.isFocused||!e.isEditable||(0,n.BQ)(r.selection)||e.view.dragging?null:lr.zF.create(r.doc,[lr.NZ.inline(r.selection.from,r.selection.to,{class:t.className})])}})]}});function Hr(e){let{types:t,node:r}=e;return r&&Array.isArray(t)&&t.includes(r.type)||(null==r?void 0:r.type)===t}var Vr=n.YY.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var e;const t=new m.hs(this.name),r=this.options.node||(null==(e=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:e.name)||"paragraph",n=Object.entries(this.editor.schema.nodes).map(e=>{let[,t]=e;return t}).filter(e=>(this.options.notAfter||[]).concat(r).includes(e.name));return[new m.k_({key:t,appendTransaction:(e,n,i)=>{const{doc:o,tr:s,schema:a}=i,l=t.getState(i),c=o.content.size,u=a.nodes[r];if(l)return s.insert(c,u.create())},state:{init:(e,t)=>!Hr({node:t.tr.doc.lastChild,types:n}),apply:(e,t)=>{if(!e.docChanged)return t;if(e.getMeta("__uniqueIDTransaction"))return t;return!Hr({node:e.doc.lastChild,types:n})}}})]}}),Wr=n.YY.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>e=>{let{state:t,dispatch:r}=e;return Br(t,r)},redo:()=>e=>{let{state:t,dispatch:r}=e;return jr(t,r)}}),addProseMirrorPlugins(){return[Ir(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),Kr=n.YY.create({name:"starterKit",addExtensions(){var e,t,r,n;const i=[];return!1!==this.options.bold&&i.push(d.configure(this.options.bold)),!1!==this.options.blockquote&&i.push(s.configure(this.options.blockquote)),!1!==this.options.bulletList&&i.push(Ot.configure(this.options.bulletList)),!1!==this.options.code&&i.push(p.configure(this.options.code)),!1!==this.options.codeBlock&&i.push(y.configure(this.options.codeBlock)),!1!==this.options.document&&i.push(A.configure(this.options.document)),!1!==this.options.dropcursor&&i.push(Fr.configure(this.options.dropcursor)),!1!==this.options.gapcursor&&i.push(zr.configure(this.options.gapcursor)),!1!==this.options.hardBreak&&i.push(v.configure(this.options.hardBreak)),!1!==this.options.heading&&i.push(w.configure(this.options.heading)),!1!==this.options.undoRedo&&i.push(Wr.configure(this.options.undoRedo)),!1!==this.options.horizontalRule&&i.push(x.configure(this.options.horizontalRule)),!1!==this.options.italic&&i.push(E.configure(this.options.italic)),!1!==this.options.listItem&&i.push(Nt.configure(this.options.listItem)),!1!==this.options.listKeymap&&i.push(Ht.configure(null==(e=this.options)?void 0:e.listKeymap)),!1!==this.options.link&&i.push(St.configure(null==(t=this.options)?void 0:t.link)),!1!==this.options.orderedList&&i.push(Xt.configure(this.options.orderedList)),!1!==this.options.paragraph&&i.push(Zt.configure(this.options.paragraph)),!1!==this.options.strike&&i.push(rr.configure(this.options.strike)),!1!==this.options.text&&i.push(nr.configure(this.options.text)),!1!==this.options.underline&&i.push(ir.configure(null==(r=this.options)?void 0:r.underline)),!1!==this.options.trailingNode&&i.push(Vr.configure(null==(n=this.options)?void 0:n.trailingNode)),i}})},9253(e,t,r){"use strict";function n(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}r.d(t,{A:()=>n})},3959(e,t,r){"use strict";function n(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function o(){}r.d(t,{A:()=>J});var s=.7,a=1/s,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",d=/^#([0-9a-f]{3,8})$/,h=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),f=new RegExp(`^rgb\\(${u},${u},${u}\\)$`),p=new RegExp(`^rgba\\(${l},${l},${l},${c}\\)$`),m=new RegExp(`^rgba\\(${u},${u},${u},${c}\\)$`),g=new RegExp(`^hsl\\(${c},${u},${u}\\)$`),b=new RegExp(`^hsla\\(${c},${u},${u},${c}\\)$`),y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function A(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function w(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=d.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?x(t):3===r?new _(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=h.exec(e))?new _(t[1],t[2],t[3],1):(t=f.exec(e))?new _(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?k(t[1],t[2],t[3],t[4]):(t=m.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=g.exec(e))?N(t[1],t[2]/100,t[3]/100,1):(t=b.exec(e))?N(t[1],t[2]/100,t[3]/100,t[4]):y.hasOwnProperty(e)?x(y[e]):"transparent"===e?new _(NaN,NaN,NaN,0):null}function x(e){return new _(e>>16&255,e>>8&255,255&e,1)}function k(e,t,r,n){return n<=0&&(e=t=r=NaN),new _(e,t,r,n)}function C(e,t,r,n){return 1===arguments.length?((i=e)instanceof o||(i=w(i)),i?new _((i=i.rgb()).r,i.g,i.b,i.opacity):new _):new _(e,t,r,null==n?1:n);var i}function _(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function S(){return`#${O(this.r)}${O(this.g)}${O(this.b)}`}function E(){const e=T(this.opacity);return`${1===e?"rgb(":"rgba("}${M(this.r)}, ${M(this.g)}, ${M(this.b)}${1===e?")":`, ${e})`}`}function T(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function M(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function O(e){return((e=M(e))<16?"0":"")+e.toString(16)}function N(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new R(e,t,r,n)}function P(e){if(e instanceof R)return new R(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=w(e)),!e)return new R;if(e instanceof R)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),s=Math.max(t,r,n),a=NaN,l=s-i,c=(s+i)/2;return l?(a=t===s?(r-n)/l+6*(r<n):r===s?(n-t)/l+2:(t-r)/l+4,l/=c<.5?s+i:2-s-i,a*=60):l=c>0&&c<1?0:a,new R(a,l,c,e.opacity)}function R(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function D(e){return(e=(e||0)%360)<0?e+360:e}function I(e){return Math.max(0,Math.min(1,e||0))}function L(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function B(e,t,r,n,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*r+(1+3*e+3*o-3*s)*n+s*i)/6}n(o,w,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:A,formatHex:A,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return P(this).formatHsl()},formatRgb:v,toString:v}),n(_,C,i(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?s:Math.pow(s,e),new _(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _(M(this.r),M(this.g),M(this.b),T(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:S,formatHex:S,formatHex8:function(){return`#${O(this.r)}${O(this.g)}${O(this.b)}${O(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:E,toString:E})),n(R,function(e,t,r,n){return 1===arguments.length?P(e):new R(e,t,r,null==n?1:n)},i(o,{brighter(e){return e=null==e?a:Math.pow(a,e),new R(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?s:Math.pow(s,e),new R(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new _(L(e>=240?e-240:e+120,i,n),L(e,i,n),L(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new R(D(this.h),I(this.s),I(this.l),T(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=T(this.opacity);return`${1===e?"hsl(":"hsla("}${D(this.h)}, ${100*I(this.s)}%, ${100*I(this.l)}%${1===e?")":`, ${e})`}`}}));const j=e=>()=>e;function F(e,t){return function(r){return e+r*t}}function z(e){return 1===(e=+e)?U:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):j(isNaN(t)?r:t)}}function U(e,t){var r=t-e;return r?F(e,r):j(isNaN(e)?t:e)}const H=function e(t){var r=z(t);function n(e,t){var n=r((e=C(e)).r,(t=C(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),s=U(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return n.gamma=e,n}(1);function V(e){return function(t){var r,n,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(r=0;r<i;++r)n=C(t[r]),o[r]=n.r||0,s[r]=n.g||0,a[r]=n.b||0;return o=e(o),s=e(s),a=e(a),n.opacity=1,function(e){return n.r=o(e),n.g=s(e),n.b=a(e),n+""}}}V(function(e){var t=e.length-1;
2return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],o=e[n+1],s=n>0?e[n-1]:2*i-o,a=n<t-1?e[n+2]:2*o-i;return B((r-n/t)*t,s,i,o,a)}}),V(function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],o=e[n%t],s=e[(n+1)%t],a=e[(n+2)%t];return B((r-n/t)*t,i,o,s,a)}});function W(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),s=new Array(n);for(r=0;r<i;++r)o[r]=J(e[r],t[r]);for(;r<n;++r)s[r]=t[r];return function(e){for(r=0;r<i;++r)s[r]=o[r](e);return s}}function K(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}var q=r(9253);function G(e,t){var r,n={},i={};for(r in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)r in e?n[r]=J(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var X=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Y=new RegExp(X.source,"g");function $(e,t){var r,n,i,o=X.lastIndex=Y.lastIndex=0,s=-1,a=[],l=[];for(e+="",t+="";(r=X.exec(e))&&(n=Y.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(n=n[0])?a[s]?a[s]+=n:a[++s]=n:(a[++s]=null,l.push({i:s,x:(0,q.A)(r,n)})),o=Y.lastIndex;return o<t.length&&(i=t.slice(o),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var r,n=0;n<t;++n)a[(r=l[n]).i]=r.x(e);return a.join("")})}function Q(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function J(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?j(t):("number"===i?q.A:"string"===i?(r=w(t))?(t=r,H):$:t instanceof w?H:t instanceof Date?K:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?W:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?G:q.A:Q))(e,t)}},1863(e,t,r){"use strict";function n(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}r.d(t,{xI:()=>ge});var i={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function o(e){i=e}var s={exec:()=>null};function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(c.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var l=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),c={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},u=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,d=/(?:[*+-]|\d{1,9}[.)])/,h=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,f=a(h).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),p=a(h).replace(/bull/g,d).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,g=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,b=a(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",g).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),y=a(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,d).getRegex(),A="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",v=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,w=a("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
2)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",v).replace("tag",A).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),x=a(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),k={blockquote:a(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",x).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:b,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:u,html:w,lheading:f,list:y,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:x,table:s,text:/^[^\n]+/},C=a("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),_={...k,lheading:p,table:C,paragraph:a(m).replace("hr",u).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",C).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex()},S={...k,html:a("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",v).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:s,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:a(m).replace("hr",u).replace("heading"," *#{1,6} *[^\n]").replace("lheading",f).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},E=/^( {2,}|\\)\n(?!\s*$)/,T=/[\p{P}\p{S}]/u,M=/[\s\p{P}\p{S}]/u,O=/[^\s\p{P}\p{S}]/u,N=a(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,M).getRegex(),P=/(?!~)[\p{P}\p{S}]/u,R=a(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",l?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),D=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,I=a(D,"u").replace(/punct/g,T).getRegex(),L=a(D,"u").replace(/punct/g,P).getRegex(),B="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",j=a(B,"gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,M).replace(/punct/g,T).getRegex(),F=a(B,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,P).getRegex(),z=a("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,O).replace(/punctSpace/g,M).replace(/punct/g,T).getRegex(),U=a(/\\(punct)/,"gu").replace(/punct/g,T).getRegex(),H=a(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),V=a(v).replace("(?:--\x3e|$)","--\x3e").getRegex(),W=a("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",V).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),K=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,q=a(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",K).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),G=a(/^!?\[(label)\]\[(ref)\]/).replace("label",K).replace("ref",g).getRegex(),X=a(/^!?\[(ref)\](?:\[\])?/).replace("ref",g).getRegex(),Y=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$={_backpedal:s,anyPunctuation:U,autolink:H,blockSkip:R,br:E,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:s,emStrongLDelim:I,emStrongRDelimAst:j,emStrongRDelimUnd:z,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:q,nolink:X,punctuation:N,reflink:G,reflinkSearch:a("reflink|nolink(?!\\()","g").replace("reflink",G).replace("nolink",X).getRegex(),tag:W,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:s},Q={...$,link:a(/^!?\[(label)\]\((.*?)\)/).replace("label",K).getRegex(),reflink:a(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",K).getRegex()},J={...$,emStrongRDelimAst:F,emStrongLDelim:L,url:a(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Y).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:a(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Y).getRegex()},Z={...J,br:a(E).replace("{2,}","*").getRegex(),text:a(J.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ee={normal:k,gfm:_,pedantic:S},te={normal:$,gfm:J,breaks:Z,pedantic:Q},re={"&":"&","<":"<",">":">",'"':""","'":"'"},ne=e=>re[e];function ie(e,t){if(t){if(c.escapeTest.test(e))return e.replace(c.escapeReplace,ne)}else if(c.escapeTestNoEncode.test(e))return e.replace(c.escapeReplaceNoEncode,ne);return e}function oe(e){try{e=encodeURI(e).replace(c.percentDecode,"%")}catch{return null}return e}function se(e,t){let r=e.replace(c.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(c.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(c.slashPipe,"|");return r}function ae(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n;){let o=e.charAt(n-i-1);if(o!==t||r){if(o===t||!r)break;
vendor: 12,220 bytes, line 2
2i++}else i++}return e.slice(0,n-i)}function le(e,t,r,n,i){let o=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:o,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}var ce=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ae(e,"\n")}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ae(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ae(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ae(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,o=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),o=!0;else{if(o)break;s.push(e[t])}e=e.slice(t);let a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${a}`:a,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),s=this.blockquote(o);i[i.length-1]=s,r=r.substring(0,r.length-t.raw.length)+s.raw,n=n.substring(0,n.length-t.text.length)+s.text;break}if("list"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),s=this.list(o);i[i.length-1]=s,r=r.substring(0,r.length-u.raw.length)+s.raw,n=n.substring(0,n.length-t.raw.length)+s.raw,e=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let o=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",a="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,a=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,a=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(d),r=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),o=this.rules.other.headingBeginRegex(d),s=this.rules.other.htmlBeginRegex(d);for(;e;){let h,f=e.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||o.test(c)||s.test(c)||t.test(c)||r.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())a+="\n"+h.slice(d);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||r.test(l))break;a+="\n"+c}!u&&!c.trim()&&(u=!0),n+=f+"\n",e=e.substring(f.length+1),l=h.slice(d)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0)),i.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),i.raw+=n}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),"text"===e.tokens[0]?.type||"paragraph"===e.tokens[0]?.type){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let r={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=r.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=r.raw+e.tokens[0].raw,e.tokens[0].text=r.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(r)):e.tokens.unshift({type:"paragraph",raw:r.raw,text:r.raw,tokens:[r]}):e.tokens.unshift(r)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=se(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(se(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ae(e.slice(0,-1),"\\");if((e.length-t.length)%2===0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),le(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return le(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.rules.inline.emStrongLDelim.exec(e);if(!(!n||n[3]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[2]||!r||this.rules.inline.punctuation.exec(r))){let r,i,o=[...n[0]].length-1,s=o,a=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!=(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&o%3&&!((o+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);let t=[...n[0]][0].length,l=e.slice(0,o+n.index+t+i);if(Math.min(o,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])e=t[0],r="mailto:"+e;else{let n;do{n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(n!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ue=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new ce,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:c,block:ee.normal,inline:te.normal};this.options.pedantic?(t.block=ee.pedantic,t.inline=te.pedantic):this.options.gfm&&(t.block=ee.gfm,this.options.breaks?t.inline=te.breaks:t.inline=te.gfm),this.tokenizer.rules=t}static get rules(){return{block:ee,inline:te}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}
2lex(e){e=e.replace(c.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(this.options.pedantic&&(e=e.replace(c.tabCharGlobal," ").replace(c.spaceLine,""));e;){let n;if(this.options.extensions?.block?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);let r=t.at(-1);1===n.raw.length&&void 0!==r?r.raw+="\n":t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.text,this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title},t.push(n));continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i))){let o=t.at(-1);r&&"paragraph"===o?.type?(o.raw+=(o.raw.endsWith("\n")?"":"\n")+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):t.push(n),r=i.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(n));)t=i[2]?i[2].length:0,n=n.slice(0,i.index+t)+"["+"a".repeat(i[0].length-t-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,s="";for(;e;){let t;if(o||(s=""),o=!1,this.options.extensions?.inline?.some(n=>!!(t=n.call({lexer:this},e,r))&&(e=e.substring(t.raw.length),r.push(t),!0)))continue;if(t=this.tokenizer.escape(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.tag(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.link(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length);let n=r.at(-1);"text"===t.type&&"text"===n?.type?(n.raw+=t.raw,n.text+=t.text):r.push(t);continue}if(t=this.tokenizer.emStrong(e,n,s)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.codespan(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.br(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.del(e)){e=e.substring(t.raw.length),r.push(t);continue}if(t=this.tokenizer.autolink(e)){e=e.substring(t.raw.length),r.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(e))){e=e.substring(t.raw.length),r.push(t);continue}let i=e;if(this.options.extensions?.startInline){let t,r=1/0,n=e.slice(1);
2this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(t=this.tokenizer.inlineText(i)){e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(s=t.raw.slice(-1)),o=!0;let n=r.at(-1);"text"===n?.type?(n.raw+=t.raw,n.text+=t.text):r.push(t);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return r}},de=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code(e){let{text:t,lang:r,escaped:n}=e,i=(r||"").match(c.notSpaceStart)?.[0],o=t.replace(c.endingNewline,"")+"\n";return i?'<pre><code class="language-'+ie(i)+'">'+(n?o:ie(o,!0))+"</code></pre>\n":"<pre><code>"+(n?o:ie(o,!0))+"</code></pre>\n"}blockquote(e){let{tokens:t}=e;return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html(e){let{text:t}=e;return t}def(e){return""}heading(e){let{tokens:t,depth:r}=e;return`<h${r}>${this.parser.parseInline(t)}</h${r}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let o=0;o<e.items.length;o++){let t=e.items[o];n+=this.listitem(t)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox(e){let{checked:t}=e;return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph(e){let{tokens:t}=e;return`<p>${this.parser.parseInline(t)}</p>\n`}table(e){let t="",r="";for(let i=0;i<e.header.length;i++)r+=this.tablecell(e.header[i]);t+=this.tablerow({text:r});let n="";for(let i=0;i<e.rows.length;i++){let t=e.rows[i];r="";for(let e=0;e<t.length;e++)r+=this.tablecell(t[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow(e){let{text:t}=e;return`<tr>\n${t}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong(e){let{tokens:t}=e;return`<strong>${this.parser.parseInline(t)}</strong>`}em(e){let{tokens:t}=e;return`<em>${this.parser.parseInline(t)}</em>`}codespan(e){let{text:t}=e;return`<code>${ie(t,!0)}</code>`}br(e){return"<br>"}del(e){let{tokens:t}=e;return`<del>${this.parser.parseInline(t)}</del>`}link(e){let{href:t,title:r,tokens:n}=e,i=this.parser.parseInline(n),o=oe(t);if(null===o)return i;t=o;let s='<a href="'+t+'"';return r&&(s+=' title="'+ie(r)+'"'),s+=">"+i+"</a>",s}image(e){let{href:t,title:r,text:n,tokens:i}=e;i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let o=oe(t);if(null===o)return ie(n);t=o;let s=`<img src="${t}" alt="${n}"`;return r&&(s+=` title="${ie(r)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ie(e.text)}},he=class{strong(e){let{text:t}=e;return t}em(e){let{text:t}=e;return t}codespan(e){let{text:t}=e;return t}del(e){let{text:t}=e;return t}html(e){let{text:t}=e;return t}text(e){let{text:t}=e;return t}link(e){let{text:t}=e;return""+t}image(e){let{text:t}=e;return""+t}br(){return""}checkbox(e){let{raw:t}=e;return t}},fe=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new de,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new he}static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let e=n,r=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==r||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=r||"";continue}}let i=n;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.renderer,r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=e||"";continue}}let o=i;
2switch(o.type){case"escape":case"text":r+=t.text(o);break;case"html":r+=t.html(o);break;case"link":r+=t.link(o);break;case"image":r+=t.image(o);break;case"checkbox":r+=t.checkbox(o);break;case"strong":r+=t.strong(o);break;case"em":r+=t.em(o);break;case"codespan":r+=t.codespan(o);break;case"br":r+=t.br(o);break;case"del":r+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}},pe=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=(()=>new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]))();static passThroughHooksRespectAsync=(()=>new Set(["preprocess","postprocess","processAllTokens"]))();preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ue.lex:ue.lexInline}provideParser(){return this.block?fe.parse:fe.parseInline}},me=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=(()=>this.parseMarkdown(!0))();parseInline=(()=>this.parseMarkdown(!1))();Parser=(()=>fe)();Renderer=(()=>de)();TextRenderer=(()=>he)();Lexer=(()=>ue)();Tokenizer=(()=>ce)();Hooks=(()=>pe)();constructor(){this.use(...arguments)}walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let e=n;for(let n of e.header)r=r.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)r=r.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=n;r=r.concat(this.walkTokens(e.items,t));break}default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let i=e[n].flat(1/0);r=r.concat(this.walkTokens(i,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(){var e=this;let t=this.defaults.extensions||{renderers:{},childTokens:{}};for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return n.forEach(r=>{let n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];let o=e.renderer.apply(this,n);return!1===o&&(o=r.apply(this,n)),o}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),r.renderer){let e=this.defaults.renderer||new de(this.defaults);for(let t in r.renderer){if(!(t in e))throw new Error(`renderer '${t}' does not exist`);if(["options","parser"].includes(t))continue;let n=t,i=r.renderer[n],o=e[n];e[n]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];let s=i.apply(e,r);return!1===s&&(s=o.apply(e,r)),s||""}}n.renderer=e}if(r.tokenizer){let e=this.defaults.tokenizer||new ce(this.defaults);for(let t in r.tokenizer){if(!(t in e))throw new Error(`tokenizer '${t}' does not exist`);if(["options","rules","lexer"].includes(t))continue;let n=t,i=r.tokenizer[n],o=e[n];e[n]=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];let s=i.apply(e,r);return!1===s&&(s=o.apply(e,r)),s}}n.tokenizer=e}if(r.hooks){let t=this.defaults.hooks||new pe;for(let n in r.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let i=n,o=r.hooks[i],s=t[i];pe.passThroughHooks.has(n)?t[i]=e=>{if(this.defaults.async&&pe.passThroughHooksRespectAsync.has(n))return(async()=>{let r=await o.call(t,e);return s.call(t,r)})();let r=o.call(t,e);return s.call(t,r)}:t[i]=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];if(e.defaults.async)return(async()=>{let e=await o.apply(t,n);return!1===e&&(e=await s.apply(t,n)),e})();let a=o.apply(t,n);return!1===a&&(a=s.apply(t,n)),a}}n.hooks=t}if(r.walkTokens){let e=this.defaults.walkTokens,t=r.walkTokens;n.walkTokens=function(r){let n=[];return n.push(t.call(this,r)),e&&(n=n.concat(e.call(this,r))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ue.lex(e,t??this.defaults)}parser(e,t){return fe.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(t):t,n=await(i.hooks?await i.hooks.provideLexer():e?ue.lex:ue.lexInline)(r,i),o=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await(i.hooks?await i.hooks.provideParser():e?fe.parse:fe.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let r=(i.hooks?i.hooks.provideLexer():e?ue.lex:ue.lexInline)(t,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser():e?fe.parse:fe.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(s){return o(s)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+ie(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}};function ge(e,t){return me.parse(e,t)}ge.options=ge.setOptions=function(e){return me.setOptions(e),ge.defaults=me.defaults,o(ge.defaults),ge},ge.getDefaults=n,ge.defaults=i,ge.use=function(){return me.use(...arguments),ge.defaults=me.defaults,o(ge.defaults),ge},ge.walkTokens=function(e,t){return me.walkTokens(e,t)},ge.parseInline=me.parseInline,ge.Parser=fe,ge.parser=fe.parse,ge.Renderer=de,ge.TextRenderer=he,ge.Lexer=ue,ge.lexer=ue.lex,ge.Tokenizer=ce,ge.Hooks=pe,ge.parse=ge;ge.options,ge.setOptions,ge.use,ge.walkTokens,ge.parseInline,fe.parse,ue.lex},9112(e,t,r){"use strict";r.d(t,{K:()=>m,w:()=>p});for(var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),a=0;a<10;a++)n[48+a]=n[96+a]=String(a);for(a=1;a<=24;a++)n[a+111]="F"+a;for(a=65;a<=90;a++)n[a]=String.fromCharCode(a+32),i[a]=String.fromCharCode(a);for(var l in n)i.hasOwnProperty(l)||(i[l]=n[l]);var c=r(8973);const u="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),d="undefined"!=typeof navigator&&/Win/.test(navigator.platform);function h(e){let t,r,n,i,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(let a=0;a<o.length-1;a++){let e=o[a];if(/^(cmd|meta|m)$/i.test(e))i=!0;else if(/^a(lt)?$/i.test(e))t=!0;else if(/^(c|ctrl|control)$/i.test(e))r=!0;else if(/^s(hift)?$/i.test(e))n=!0;else{if(!/^mod$/i.test(e))throw new Error("Unrecognized modifier name: "+e);u?i=!0:r=!0}}return t&&(s="Alt-"+s),r&&(s="Ctrl-"+s),i&&(s="Meta-"+s),n&&(s="Shift-"+s),s}function f(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];
2return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),r&&t.shiftKey&&(e="Shift-"+e),e}function p(e){return new c.k_({props:{handleKeyDown:m(e)}})}function m(e){let t=function(e){let t=Object.create(null);for(let r in e)t[h(r)]=e[r];return t}(e);return function(e,r){let a,l=function(e){var t=!(o&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?i:n)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(r),c=t[f(l,r)];if(c&&c(e.state,e.dispatch,e))return!0;if(1==l.length&&" "!=l){if(r.shiftKey){let n=t[f(l,r,!1)];if(n&&n(e.state,e.dispatch,e))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(d&&r.ctrlKey&&r.altKey)&&(a=n[r.keyCode])&&a!=l){let n=t[f(a,r)];if(n&&n(e.state,e.dispatch,e))return!0}}return!1}}},3498(e,t,r){"use strict";function n(e){this.content=e}r.d(t,{S4:()=>J,ZF:()=>le,FK:()=>a,CU:()=>d,sX:()=>Y,bP:()=>N,u$:()=>M,vI:()=>h,Sj:()=>$,Ji:()=>f}),n.prototype={constructor:n,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return-1==t?void 0:this.content[t+1]},update:function(e,t,r){var i=r&&r!=e?this.remove(r):this,o=i.find(e),s=i.content.slice();return-1==o?s.push(r||e,t):(s[o+1]=t,r&&(s[o]=r)),new n(s)},remove:function(e){var t=this.find(e);if(-1==t)return this;var r=this.content.slice();return r.splice(t,2),new n(r)},addToStart:function(e,t){return new n([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var r=this.remove(e).content.slice();return r.push(e,t),new n(r)},addBefore:function(e,t,r){var i=this.remove(t),o=i.content.slice(),s=i.find(e);return o.splice(-1==s?o.length:s,0,t,r),new n(o)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return(e=n.from(e)).size?new n(e.content.concat(this.subtract(e).content)):this},append:function(e){return(e=n.from(e)).size?new n(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=n.from(e);for(var r=0;r<e.content.length;r+=2)t=t.remove(e.content[r]);return t},toObject:function(){var e={};return this.forEach(function(t,r){e[t]=r}),e},get size(){return this.content.length>>1}},n.from=function(e){if(e instanceof n)return e;var t=[];if(e)for(var r in e)t.push(r,e[r]);return new n(t)};const i=n;function o(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let i=e.child(n),s=t.child(n);if(i!=s){if(!i.sameMarkup(s))return r;if(i.isText&&i.text!=s.text){for(let e=0;i.text[e]==s.text[e];e++)r++;return r}if(i.content.size||s.content.size){let e=o(i.content,s.content,r+1);if(null!=e)return e}r+=i.nodeSize}else r+=i.nodeSize}}function s(e,t,r,n){for(let i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:r,b:n};let a=e.child(--i),l=t.child(--o),c=a.nodeSize;if(a!=l){if(!a.sameMarkup(l))return{a:r,b:n};if(a.isText&&a.text!=l.text){let e=0,t=Math.min(a.text.length,l.text.length);for(;e<t&&a.text[a.text.length-e-1]==l.text[l.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(a.content.size||l.content.size){let e=s(a.content,l.content,r-1,n-1);if(e)return e}r-=c,n-=c}else r-=c,n-=c}}class a{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0;for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;if(l>e&&!1!==r(a,n+s,i||null,o)&&a.content.size){let i=s+1;a.nodesBetween(Math.max(0,e-i),Math.min(a.content.size,t-i),r,n+i)}s=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let i="",o=!0;return this.nodesBetween(e,t,(s,a)=>{let l=s.isText?s.text.slice(Math.max(e,a)-a,t-a):s.isLeaf?n?"function"===typeof n?n(s):n:s.type.spec.leafText?s.type.spec.leafText(s):"":"";
2s.isBlock&&(s.isLeaf&&l||s.isTextblock)&&r&&(o?o=!1:i+=r),i+=l},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),i=1);i<e.content.length;i++)n.push(e.content[i]);return new a(n,this.size+e.size)}cut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size;if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let i=0,o=0;o<t;i++){let s=this.content[i],a=o+s.nodeSize;a>e&&((o<e||a>t)&&(s=s.isText?s.cut(Math.max(0,e-o),Math.min(s.text.length,t-o)):s.cut(Math.max(0,e-o-1),Math.min(s.content.size,t-o-1))),r.push(s),n+=s.nodeSize),o=a}return new a(r,n)}cutByIndex(e,t){return e==t?a.empty:0==e&&t==this.content.length?this:new a(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),i=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new a(n,i)}addToStart(e){return new a([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new a(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e){return o(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}findDiffEnd(e){return s(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size,arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.size)}findIndex(e){if(0==e)return c(0,e);if(e==this.size)return c(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,r=0;;t++){let n=r+this.child(t).nodeSize;if(n>=e)return n==e?c(t+1,n):c(t,r);r=n}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return a.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new a(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return a.empty;let t,r=0;for(let n=0;n<e.length;n++){let i=e[n];r+=i.nodeSize,n&&i.isText&&e[n-1].sameMarkup(i)?(t||(t=e.slice(0,n)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new a(t||e,r)}static from(e){if(!e)return a.empty;if(e instanceof a)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new a([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}a.empty=new a([],0);const l={index:0,offset:0};function c(e,t){return l.index=e,l.offset=t,l}function u(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!u(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!u(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class d{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let i=e[n];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,n));else{if(i.type.excludes(this.type))return e;!r&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(i)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&u(this.attrs,e.attrs)}
2toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let n=r.create(t.attrs);return r.checkAttrs(n.attrs),n}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return d.none;if(e instanceof d)return[e];let t=e.slice();return t.sort((e,t)=>e.type.rank-t.type.rank),t}}d.none=[];class h extends Error{}class f{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=m(this.content,e+this.openStart,t);return r&&new f(r,this.openStart,this.openEnd)}removeBetween(e,t){return new f(p(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw new RangeError("Invalid input for Slice.fromJSON");return new f(a.fromJSON(e,t.content),r,n)}static maxOpen(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=0,n=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)r++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)n++;return new f(e,r,n)}}function p(e,t,r){let{index:n,offset:i}=e.findIndex(t),o=e.maybeChild(n),{index:s,offset:a}=e.findIndex(r);if(i==t||o.isText){if(a!=r&&!e.child(s).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=s)throw new RangeError("Removing non-flat range");return e.replaceChild(n,o.copy(p(o.content,t-i-1,r-i-1)))}function m(e,t,r,n){let{index:i,offset:o}=e.findIndex(t),s=e.maybeChild(i);if(o==t||s.isText)return n&&!n.canReplace(i,i,r)?null:e.cut(0,t).append(r).append(e.cut(t));let a=m(s.content,t-o-1,r,s);return a&&e.replaceChild(i,s.copy(a))}function g(e,t,r){if(r.openStart>e.depth)throw new h("Inserted content deeper than insertion position");if(e.depth-r.openStart!=t.depth-r.openEnd)throw new h("Inconsistent open depths");return b(e,t,r,0)}function b(e,t,r,n){let i=e.index(n),o=e.node(n);if(i==t.index(n)&&n<e.depth-r.openStart){let s=b(e,t,r,n+1);return o.copy(o.content.replaceChild(i,s))}if(r.content.size){if(r.openStart||r.openEnd||e.depth!=n||t.depth!=n){let{start:i,end:s}=function(e,t){let r=t.depth-e.openStart,n=t.node(r).copy(e.content);for(let i=r-1;i>=0;i--)n=t.node(i).copy(a.from(n));return{start:n.resolveNoCache(e.openStart+r),end:n.resolveNoCache(n.content.size-e.openEnd-r)}}(r,e);return x(o,k(e,i,s,t,n))}{let n=e.parent,i=n.content;return x(n,i.cut(0,e.parentOffset).append(r.content).append(i.cut(t.parentOffset)))}}return x(o,C(e,t,n))}function y(e,t){if(!t.type.compatibleContent(e.type))throw new h("Cannot join "+t.type.name+" onto "+e.type.name)}function A(e,t,r){let n=e.node(r);return y(n,t.node(r)),n}function v(e,t){let r=t.length-1;r>=0&&e.isText&&e.sameMarkup(t[r])?t[r]=e.withText(t[r].text+e.text):t.push(e)}function w(e,t,r,n){let i=(t||e).node(r),o=0,s=t?t.index(r):i.childCount;e&&(o=e.index(r),e.depth>r?o++:e.textOffset&&(v(e.nodeAfter,n),o++));for(let a=o;a<s;a++)v(i.child(a),n);t&&t.depth==r&&t.textOffset&&v(t.nodeBefore,n)}function x(e,t){return e.type.checkContent(t),e.copy(t)}function k(e,t,r,n,i){let o=e.depth>i&&A(e,t,i+1),s=n.depth>i&&A(r,n,i+1),l=[];return w(null,e,i,l),o&&s&&t.index(i)==r.index(i)?(y(o,s),v(x(o,k(e,t,r,n,i+1)),l)):(o&&v(x(o,C(e,t,i+1)),l),w(t,r,i,l),s&&v(x(s,C(r,n,i+1)),l)),w(n,null,i,l),new a(l)}function C(e,t,r){let n=[];if(w(null,e,r,n),e.depth>r){v(x(A(e,t,r+1),C(e,t,r+1)),n)}return w(t,null,r,n),new a(n)}f.empty=new f(a.empty,0,0);class _{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return 0==(e=this.resolveDepth(e))?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(!(e=this.resolveDepth(e)))throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],n=e.child(t);return r?e.child(t).cut(r):n}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[3*t],n=0==t?0:this.path[3*t-1]+1;for(let i=0;i<e;i++)n+=r.child(i).nodeSize;return n}marks(){let e=this.parent,t=this.index();if(0==e.content.size)return d.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),n=e.maybeChild(t);if(!r){let e=r;r=n,n=e}let i=r.marks;for(var o=0;o<i.length;o++)!1!==i[o].type.spec.inclusive||n&&i[o].isInSet(n.marks)||(i=i[o--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,n=e.parent.maybeChild(e.index());for(var i=0;i<r.length;i++)!1!==r[i].type.spec.inclusive||n&&r[i].isInSet(n.marks)||(r=r[i--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this,t=arguments.length>1?arguments[1]:void 0;if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new M(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],n=0,i=t;for(let o=e;;){let{index:e,offset:t}=o.content.findIndex(i),s=i-t;if(r.push(o,e,n+t),!s)break;if(o=o.child(e),o.isText)break;
2i=s-1,n+=t+1}return new _(t,r,i)}static resolveCached(e,t){let r=T.get(e);if(r)for(let i=0;i<r.elts.length;i++){let e=r.elts[i];if(e.pos==t)return e}else T.set(e,r=new S);let n=r.elts[r.i]=_.resolve(e,t);return r.i=(r.i+1)%E,n}}class S{constructor(){this.elts=[],this.i=0}}const E=12,T=new WeakMap;class M{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const O=Object.create(null);class N{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:d.none;this.type=e,this.attrs=t,this.marks=n,this.content=r||a.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;this.content.nodesBetween(e,t,r,n,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,n){return this.content.textBetween(e,t,r,n)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&u(this.attrs,t||e.defaultAttrs||O)&&d.sameSet(this.marks,r||d.none)}copy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e==this.content?this:new N(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new N(this.type,this.attrs,this.content,e)}cut(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size;return 0==e&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.content.size,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e==t)return f.empty;let n=this.resolve(e),i=this.resolve(t),o=r?0:n.sharedDepth(t),s=n.start(o),a=n.node(o).content.cut(n.pos-s,i.pos-s);return new f(a,n.depth-o,i.depth-o)}replace(e,t,r){return g(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:n}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(n==e||t.isText)return t;e-=n+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(0==e)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let n=this.content.child(t-1);return{node:n,index:t-1,offset:r-n.nodeSize}}resolve(e){return _.resolveCached(this,e)}resolveNoCache(e){return _.resolve(this,e)}rangeHasMark(e,t,r){let n=!1;return t>e&&this.nodesBetween(e,t,e=>(r.isInSet(e.marks)&&(n=!0),!n)),n}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),R(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.empty,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.childCount,o=this.contentMatchAt(e).matchFragment(r,
2n,i),s=o&&o.matchFragment(this.content,t);if(!s||!s.validEnd)return!1;for(let a=n;a<i;a++)if(!this.type.allowsMarks(r.child(a).marks))return!1;return!0}canReplaceWith(e,t,r,n){if(n&&!this.type.allowsMarks(n))return!1;let i=this.contentMatchAt(e).matchType(r),o=i&&i.matchFragment(this.content,t);return!!o&&o.validEnd}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=d.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!d.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let n=a.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,n,r);return i.type.checkAttrs(i.attrs),i}}N.prototype.text=void 0;class P extends N{constructor(e,t,r,n){if(super(e,t,null,n),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):R(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new P(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new P(this.type,this.attrs,e,this.marks)}cut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.text.length;return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function R(e,t){for(let r=e.length-1;r>=0;r--)t=e[r].type.name+"("+t+")";return t}class D{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new I(e,t);if(null==r.next)return D.empty;let n=L(r);r.next&&r.err("Unexpected trailing text");let i=function(e){let t=Object.create(null);return r(H(e,0));function r(n){let i=[];n.forEach(t=>{e[t].forEach(t=>{let r,{term:n,to:o}=t;if(n){for(let e=0;e<i.length;e++)i[e][0]==n&&(r=i[e][1]);
2H(e,o).forEach(e=>{r||i.push([n,r=[]]),-1==r.indexOf(e)&&r.push(e)})}})});let o=t[n.join(",")]=new D(n.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let n=i[e][1].sort(U);o.next.push({type:i[e][0],next:t[n.join(",")]||r(n)})}return o}}(function(e){let t=[[]];return i(o(e,0),r()),t;function r(){return t.push([])-1}function n(e,r,n){let i={term:n,to:r};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,r)=>e.concat(o(r,t)),[]);if("seq"!=e.type){if("star"==e.type){let s=r();return n(t,s),i(o(e.expr,s),s),[n(s)]}if("plus"==e.type){let s=r();return i(o(e.expr,t),s),i(o(e.expr,s),s),[n(s)]}if("opt"==e.type)return[n(t)].concat(o(e.expr,t));if("range"==e.type){let s=t;for(let t=0;t<e.min;t++){let t=r();i(o(e.expr,s),t),s=t}if(-1==e.max)i(o(e.expr,s),s);else for(let t=e.min;t<e.max;t++){let t=r();n(s,t),i(o(e.expr,s),t),s=t}return[n(s)]}if("name"==e.type)return[n(t,void 0,e.value)];throw new Error("Unknown expr type")}for(let n=0;;n++){let s=o(e.exprs[n],t);if(n==e.exprs.length-1)return s;i(s,t=r())}}}(n));return function(e,t){for(let r=0,n=[e];r<n.length;r++){let e=n[r],i=!e.validEnd,o=[];for(let t=0;t<e.next.length;t++){let{type:r,next:s}=e.next[t];o.push(r.name),!i||r.isText||r.hasRequiredAttrs()||(i=!1),-1==n.indexOf(s)&&n.push(s)}i&&t.err("Only non-generatable nodes ("+o.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}(i,r),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.childCount,n=this;for(let i=t;n&&i<r;i++)n=n.matchType(e.child(i).type);return n}get inlineContent(){return 0!=this.next.length&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!t.isText&&!t.hasRequiredAttrs())return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=[this];return function i(o,s){let l=o.matchFragment(e,r);if(l&&(!t||l.validEnd))return a.from(s.map(e=>e.createAndFill()));for(let e=0;e<o.next.length;e++){let{type:t,next:r}=o.next[e];if(!t.isText&&!t.hasRequiredAttrs()&&-1==n.indexOf(r)){n.push(r);let e=i(r,s.concat(t));if(e)return e}}return null}(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let n=r.shift(),i=n.match;if(i.matchType(e)){let e=[];for(let t=n;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:o,next:s}=i.next[e];o.isLeaf||o.hasRequiredAttrs()||o.name in t||n.type&&!s.validEnd||(r.push({match:o.contentMatch,type:o,via:n}),t[o.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];return function t(r){e.push(r);for(let n=0;n<r.next.length;n++)-1==e.indexOf(r.next[n].next)&&t(r.next[n].next)}(this),e.map((t,r)=>{let n=r+(t.validEnd?"*":" ")+" ";for(let i=0;i<t.next.length;i++)n+=(i?", ":"")+t.next[i].type.name+"->"+e.indexOf(t.next[i].next);return n}).join("\n")}}D.empty=new D(!0);class I{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function L(e){let t=[];do{t.push(B(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function B(e){let t=[];do{t.push(j(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function j(e){let t=function(e){if(e.eat("(")){let t=L(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=function(e,t){let r=e.nodeTypes,n=r[t];if(n)return[n];let i=[];for(let o in r){let e=r[o];e.isInGroup(t)&&i.push(e)}0==i.length&&e.err("No node type or group '"+t+"' found");return i}(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=z(e,t)}return t}function F(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function z(e,t){let r=F(e),n=r;return e.eat(",")&&(n="}"!=e.next?F(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:r,max:n,expr:t}}function U(e,t){return t-e}function H(e,t){let r=[];return function t(n){let i=e[n];if(1==i.length&&!i[0].term)return t(i[0].to);r.push(n);for(let e=0;e<i.length;e++){let{term:n,to:o}=i[e];n||-1!=r.indexOf(o)||t(o)}}(t),r.sort(U)}function V(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}function W(e,t){let r=Object.create(null);for(let n in e){let i=t&&t[n];if(void 0===i){let t=e[n];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+n);i=t.default}r[n]=i}return r}function K(e,t,r,n){for(let i in t)if(!(i in e))throw new RangeError(`Unsupported attribute ${i} for ${r} of type ${i}`);for(let i in e){let r=e[i];r.validate&&r.validate(t[i])}}function q(e,t){let r=Object.create(null);
2if(t)for(let n in t)r[n]=new X(e,n,t[n]);return r}class G{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=q(e,r.attrs),this.defaultAttrs=V(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||"text"==e),this.isText="text"==e}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==D.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:W(this.attrs,e)}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new N(this,this.computeAttrs(e),a.from(t),d.setFrom(r))}createChecked(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return t=a.from(t),this.checkContent(t),new N(this,this.computeAttrs(e),t,d.setFrom(r))}createAndFill(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;if(e=this.computeAttrs(e),t=a.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let n=this.contentMatch.matchFragment(t),i=n&&n.fillBefore(a.empty,!0);return i?new N(this,e,t.append(i),d.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){K(this.attrs,e,"node",this.name)}allowsMarkType(e){return null==this.markSet||this.markSet.indexOf(e)>-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(null==this.markSet)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:d.none:e}static compile(e,t){let r=Object.create(null);e.forEach((e,n)=>r[e]=new G(e,t,n));let n=t.spec.topNode||"doc";if(!r[n])throw new RangeError("Schema is missing its top node type ('"+n+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let i in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}}class X{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate="string"==typeof r.validate?function(e,t,r){let n=r.split("|");return r=>{let i=null===r?"null":typeof r;if(n.indexOf(i)<0)throw new RangeError(`Expected value of type ${n} for attribute ${t} on type ${e}, got ${i}`)}}(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Y{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=q(e,n.attrs),this.excluded=null;let i=V(this.attrs);this.instance=i?new d(this,i):null}create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return!e&&this.instance?this.instance:new d(this,W(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach((e,i)=>r[e]=new Y(e,n++,t,i)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){K(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class ${constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=G.compile(this.spec.nodes,this),this.marks=Y.compile(this.spec.marks,this);let r=Object.create(null);for(let n in this.nodes){if(n in this.marks)throw new RangeError(n+" can not be both a node and a mark");let e=this.nodes[n],t=e.spec.content||"",i=e.spec.marks;if(e.contentMatch=r[t]||(r[t]=D.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!e.isInline||!e.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=e}e.markSet="_"==i?null:i?Q(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let n in this.marks){let e=this.marks[n],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:Q(this,t.split(" "))}this.nodeFromJSON=e=>N.fromJSON(this,e),this.markFromJSON=e=>d.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof G))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,r,n)}text(e,t){let r=this.nodes.text;return new P(r,r.defaultAttrs,e,d.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Q(e,t){let r=[];for(let n=0;n<t.length;n++){let i=t[n],o=e.marks[i],s=o;if(o)r.push(o);else for(let t in e.marks){let n=e.marks[t];("_"==i||n.spec.group&&n.spec.group.split(" ").indexOf(i)>-1)&&r.push(s=n)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[n]+"'")}return r}class J{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];
2t.forEach(e=>{if(function(e){return null!=e.tag}(e))this.tags.push(e);else if(function(e){return null!=e.style}(e)){let t=/[^=]*/.exec(e.style)[0];r.indexOf(t)<0&&r.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)})}parse(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new ie(this,t,!1);return r.addAll(e,d.none,t.from,t.to),r.finish()}parseSlice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new ie(this,t,!0);return r.addAll(e,d.none,t.from,t.to),f.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(oe(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let i=n?this.styles.indexOf(n)+1:0;i<this.styles.length;i++){let n=this.styles[i],o=n.style;if(!(0!=o.indexOf(e)||n.context&&!r.matchesContext(n.context)||o.length>e.length&&(61!=o.charCodeAt(e.length)||o.slice(e.length+1)!=t))){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let n in e.marks){let t=e.marks[n].spec.parseDOM;t&&t.forEach(e=>{r(e=se(e)),e.mark||e.ignore||e.clearMark||(e.mark=n)})}for(let n in e.nodes){let t=e.nodes[n].spec.parseDOM;t&&t.forEach(e=>{r(e=se(e)),e.node||e.ignore||e.mark||(e.node=n)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new J(e,J.schemaRules(e)))}}const Z={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},ee={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},te={ol:!0,ul:!0};function re(e,t,r){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&r}class ne{constructor(e,t,r,n,i,o){this.type=e,this.attrs=t,this.marks=r,this.solid=n,this.options=o,this.content=[],this.activeMarks=d.none,this.match=i||(4&o?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(a.from(e));
2if(!t){let t,r=this.type.contentMatch;return(t=r.findWrapping(e.type))?(this.match=r,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let r=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-e[0].length))}}let t=a.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(a.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Z.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class ie{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let n,i=t.topNode,o=re(null,t.preserveWhitespace,0)|(r?4:0);n=i?new ne(i.type,i.attrs,d.none,!0,t.topMatch||i.type.contentMatch,o):new ne(r?null:e.schema.topNodeType,null,d.none,!0,null,o),this.nodes=[n],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){3==e.nodeType?this.addTextNode(e,t):1==e.nodeType&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,n=this.top,i=2&n.options?"full":this.localPreserveWS||(1&n.options)>0,{schema:o}=this.parser;if("full"===i||n.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(i)if("full"===i)r=r.replace(/\r\n?/g,"\n");else if(o.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(o.linebreakReplacement.create())){let e=r.split(/\r?\n|\r/);for(let r=0;r<e.length;r++)r&&this.insertNode(o.linebreakReplacement.create(),t,!0),e[r]&&this.insertNode(o.text(e[r]),t,!/\S/.test(e[r]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let t=n.content[n.content.length-1],i=e.previousSibling;(!t||i&&"BR"==i.nodeName||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(r=r.slice(1))}r&&this.insertNode(o.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let n=this.localPreserveWS,i=this.top;("PRE"==e.tagName||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let o,s=e.nodeName.toLowerCase();te.hasOwnProperty(s)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&te.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let a=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,r));e:if(a?a.ignore:ee.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!a||a.skip||a.closeParent){a&&a.closeParent?this.open=Math.max(0,this.open-1):a&&a.skip.nodeType&&(e=a.skip);let r,n=this.needsBlock;if(Z.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),r=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let o=a&&a.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),r&&this.sync(i),this.needsBlock=n}else{let r=this.readStyles(e,t);r&&this.addElementByRule(e,a,r,!1===a.consuming?o:void 0)}this.localPreserveWS=n}leafFallback(e,t){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"),t)}ignoreFallback(e,t){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let n=0;n<this.parser.matchedStyles.length;n++){let e=this.parser.matchedStyles[n],i=r.getPropertyValue(e);if(i)for(let r;;){let n=this.parser.matchStyle(e,i,this,r);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),!1!==n.consuming)break;r=n}}return t}addElementByRule(e,t,r,n){let i,o;
2if(t.node)if(o=this.parser.schema.nodes[t.node],o.isLeaf)this.insertNode(o.create(t.attrs),r,"BR"==e.nodeName)||this.leafFallback(e,r);else{let e=this.enter(o,t.attrs||null,r,t.preserveWhitespace);e&&(i=!0,r=e)}else{let e=this.parser.schema.marks[t.mark];r=r.concat(e.create(t.attrs))}let s=this.top;if(o&&o.isLeaf)this.findInside(e);else if(n)this.addElement(e,r,n);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,r,!1));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n,r),this.findAround(e,n,!1)}i&&this.sync(s)&&this.open--}addAll(e,t,r,n){let i=r||0;for(let o=r?e.childNodes[r]:e.firstChild,s=null==n?null:e.childNodes[n];o!=s;o=o.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(o,t);this.findAtPoint(e,i)}findPlace(e,t,r){let n,i;for(let o=this.open,s=0;o>=0;o--){let t=this.nodes[o],a=t.findWrapping(e);if(a&&(!n||n.length>a.length+s)&&(n=a,i=t,!a.length))break;if(t.solid){if(r)break;s+=2}}if(!n)return null;this.sync(i);for(let o=0;o<n.length;o++)t=this.enterInner(n[o],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let n=this.findPlace(e,t,r);if(n){this.closeExtra();let t=this.top;t.match&&(t.match=t.match.matchType(e.type));let r=d.none;for(let i of n.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):ae(i.type,e.type))&&(r=i.addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r,n){let i=this.findPlace(e.create(t),r,!1);return i&&(i=this.enterInner(e,t,r,!0,n)),i}enterInner(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;this.closeExtra();let o=this.top;o.match=o.match&&o.match.matchType(e);let s=re(e,i,o.options);4&o.options&&0==o.content.length&&(s|=4);let a=d.none;return r=r.filter(t=>!(o.type?o.type.allowsMarkType(t.type):ae(t.type,e))||(a=t.addToSet(a),!1)),this.nodes.push(new ne(e,t,a,n,null,s)),this.open++,r}closeExtra(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!(!this.isOpen&&!this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=1)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)if(null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)){t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),i=-(r?r.depth+1:0)+(n?0:1),o=(e,s)=>{for(;e>=0;e--){let a=t[e];if(""==a){if(e==t.length-1||0==e)continue;for(;s>=i;s--)if(o(e-1,s))return!0;return!1}{let e=s>0||0==s&&n?this.nodes[s].type:r&&s>=i?r.node(s-i).type:null;if(!e||e.name!=a&&!e.isInGroup(a))return!1;s--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;
2if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}}function oe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function se(e){let t={};for(let r in e)t[r]=e[r];return t}function ae(e,t){let r=t.schema.nodes;for(let n in r){let i=r[n];if(!i.allowsMarkType(e))continue;let o=[],s=e=>{o.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:i}=e.edge(r);if(n==t)return!0;if(o.indexOf(i)<0&&s(i))return!0}};if(s(i.contentMatch))return!0}}class le{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;r||(r=ue(t).createDocumentFragment());let n=r,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let r=0,o=0;for(;r<i.length&&o<e.marks.length;){let t=e.marks[o];if(this.marks[t.type.name]){if(!t.eq(i[r][0])||!1===t.type.spec.spanning)break;r++,o++}else o++}for(;r<i.length;)n=i.pop()[1];for(;o<e.marks.length;){let r=e.marks[o++],s=this.serializeMark(r,e.isInline,t);s&&(i.push([r,n]),n.appendChild(s.dom),n=s.contentDOM||s.dom)}}n.appendChild(this.serializeNodeInner(e,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:n}=fe(ue(t),this.nodes[e.type.name](e),null,e.attrs);if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let i=this.serializeMark(e.marks[n],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(r),r=i.dom)}return r}serializeMark(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.marks[e.type.name];return n&&fe(ue(r),n(e,t),null,e.attrs)}static renderSpec(e,t){return fe(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new le(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=ce(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return ce(e.marks)}}function ce(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function ue(e){return e.document||window.document}const de=new WeakMap;function he(e){let t=de.get(e);return void 0===t&&de.set(e,t=function(e){let t=null;function r(e){if(e&&"object"==typeof e)if(Array.isArray(e))if("string"==typeof e[0])t||(t=[]),t.push(e);else for(let t=0;t<e.length;t++)r(e[t]);else for(let t in e)r(e[t])}return r(e),t}(e)),t}function fe(e,t,r,n){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let i,o=t[0];if("string"!=typeof o)throw new RangeError("Invalid array passed to renderSpec");if(n&&(i=he(n))&&i.indexOf(t)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s,a=o.indexOf(" ");a>0&&(r=o.slice(0,a),o=o.slice(a+1));let l=r?e.createElementNS(r,o):e.createElement(o),c=t[1],u=1;if(c&&"object"==typeof c&&null==c.nodeType&&!Array.isArray(c)){u=2;for(let e in c)if(null!=c[e]){let t=e.indexOf(" ");t>0?l.setAttributeNS(e.slice(0,t),e.slice(t+1),c[e]):"style"==e&&l.style?l.style.cssText=c[e]:l.setAttribute(e,c[e])}}for(let d=u;d<t.length;d++){let i=t[d];if(0===i){if(d<t.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}{let{dom:t,contentDOM:o}=fe(e,i,r,n);if(l.appendChild(t),o){if(s)throw new RangeError("Multiple content holes");s=o}}}return{dom:l,contentDOM:s}}},8973(e,t,r){"use strict";r.d(t,{$t:()=>k,LN:()=>s,U3:()=>u,hs:()=>T,i5:()=>p,k_:()=>_,nh:()=>h});var n=r(3498),i=r(9206);const o=Object.create(null);class s{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new a(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.Ji.empty,r=t.content.lastChild,i=null;for(let n=0;n<t.openEnd;n++)i=r,r=r.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),a?n.Ji.empty:t),0==a&&b(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let i=0;i<n.length;i++){let{$from:o,$to:s}=n[i],a=e.mapping.slice(r),l=a.map(o.pos),c=a.map(s.pos);i?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),b(e,r,t.isInline?-1:1))}}static findFrom(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=e.parent.inlineContent?new u(e):g(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let i=e.depth-1;i>=0;i--){let n=t<0?g(e.node(0),e.node(i),e.before(i+1),e.index(i),t,r):g(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,r);if(n)return n}return null}static near(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=o[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}s.prototype.visible=!0;class a{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console.warn("TextSelection endpoint not pointing into a
2node with inline content ("+e.parent.type.name+")"))}class u extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return s.near(r);let n=e.resolve(t.map(this.anchor));return new u(n.parent.inlineContent?n:r,r)}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.Ji.empty;if(super.replace(e,t),t==n.Ji.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new d(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if(r&&!n||(r=n>=0?1:-1),!t.parent.inlineContent){let e=s.findFrom(t,r,!0)||s.findFrom(t,-r,!0);if(!e)return s.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n||(e=(s.findFrom(e,-r,!0)||s.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0)&&(e=t),new u(e,t)}}s.jsonID("text",u);class d{constructor(e,t){this.anchor=e,this.head=t}map(e){return new d(e.map(this.anchor),e.map(this.head))}resolve(e){return u.between(e.resolve(this.anchor),e.resolve(this.head))}}class h extends s{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),i=e.resolve(n);return r?s.near(i):new h(i)}content(){return new n.Ji(n.FK.from(this.node),0,0)}eq(e){return e instanceof h&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new f(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new h(e.resolve(t.anchor))}static create(e,t){return new h(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}h.prototype.visible=!1,s.jsonID("node",h);class f{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new d(r,r):new f(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&h.isSelectable(r)?new h(t):s.near(t)}}class p extends s{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.Ji.empty;if(t==n.Ji.empty){e.delete(0,e.doc.content.size);let t=s.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new p(e)}map(e){return new p(e)}eq(e){return e instanceof p}getBookmark(){return m}}s.jsonID("all",p);const m={map(){return this},resolve:e=>new p(e)};function g(e,t,r,n,i){let o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(t.inlineContent)return u.create(e,r);for(let s=n-(i>0?0:1);i>0?s<t.childCount:s>=0;s+=i){let n=t.child(s);if(n.isAtom){if(!o&&h.isSelectable(n))return h.create(e,r-(i<0?n.nodeSize:0))}else{let t=g(e,n,r+i,i<0?n.childCount:0,i,o);if(t)return t}r+=n.nodeSize*i}return null}function b(e,t,r){let n=e.steps.length-1;if(n<t)return;let o,a=e.steps[n];(a instanceof i.Ln||a instanceof i.Wg)&&(e.mapping.maps[n].forEach((e,t,r,n)=>{null==o&&(o=n)}),e.setSelection(s.near(e.doc.resolve(o),r)))}class y extends i.dL{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=-3&this.updated|1,this.storedMarks=null,this}get selectionSet(){return(1&this.updated)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=2,this}ensureMarks(e){return n.CU.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(e,t){super.addStep(e,t),this.updated=-3&this.updated,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||n.CU.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let n=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(n.text(e),!0):this.deleteSelection();{if(null==r&&(r=t),!e)return this.deleteRange(t,r);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=r==t?e.marks():e.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,n.text(e,i)),this.selection.empty||this.selection.to!=t+e.length||this.setSelection(s.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function A(e,t){return t&&e?e.bind(t):e}class v{constructor(e,t,r){this.name=e,this.init=A(t.init,r),this.apply=A(t.apply,r)}}const w=[new v("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new v("selection",{init:(e,t)=>
2e.selection||s.atStart(t.doc),apply:e=>e.selection}),new v("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new v("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t})];class x{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=w.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new v(e.key,e.spec.state,e))})}}class k{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let t=this.config.plugins[r];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),n=null;for(;;){let i=!1;for(let o=0;o<this.config.plugins.length;o++){let s=this.config.plugins[o];if(s.spec.appendTransaction){let a=n?n[o].n:0,l=n?n[o].state:this,c=a<t.length&&s.spec.appendTransaction.call(s,a?t.slice(a):t,l,r);if(c&&r.filterTransaction(c,o)){if(c.setMeta("appendedTransaction",e),!n){n=[];for(let e=0;e<this.config.plugins.length;e++)n.push(e<o?{state:r,n:t.length}:{state:this,n:0})}t.push(c),r=r.applyInner(c),i=!0}n&&(n[o]={state:r,n:t.length})}}if(!i)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new k(this.config),r=this.config.fields;for(let n=0;n<r.length;n++){let i=r[n];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new y(this)}static create(e){let t=new x(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new k(t);for(let n=0;n<t.fields.length;n++)r[t.fields[n].name]=t.fields[n].init(e,r);return r}reconfigure(e){let t=new x(this.schema,e.plugins),r=t.fields,n=new k(t);for(let i=0;i<r.length;i++){let t=r[i].name;n[t]=this.hasOwnProperty(t)?this[t]:r[i].init(e,n)}return n}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&"object"==typeof e)for(let r in e){if("doc"==r||"selection"==r)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let n=e[r],i=n.spec.state;i&&i.toJSON&&(t[r]=i.toJSON.call(n,this[n.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new x(e.schema,e.plugins),o=new k(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=n.bP.fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=s.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let n in r){let s=r[n],a=s.spec.state;if(s.key==i.name&&a&&a.fromJSON&&Object.prototype.hasOwnProperty.call(t,n))return void(o[i.name]=a.fromJSON.call(s,e,t[n],o))}o[i.name]=i.init(e,o)}}),o}}function C(e,t,r){for(let n in e){let i=e[n];i instanceof Function?i=i.bind(t):"handleDOMEvents"==n&&(i=C(i,t,{})),r[n]=i}return r}class _{constructor(e){this.spec=e,this.props={},e.props&&C(e.props,this,this.props),this.key=e.key?e.key.key:E("plugin")}getState(e){return e[this.key]}}const S=Object.create(null);function E(e){return e in S?e+"$"+ ++S[e]:(S[e]=0,e+"$")}class T{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"key";this.key=E(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},9206(e,t,r){"use strict";r.d(t,{$L:()=>R,Ln:()=>y,N0:()=>N,Um:()=>P,Wg:()=>A,X9:()=>c,Ys:()=>m,dL:()=>G,jP:()=>k,n9:()=>M,oM:()=>C,zy:()=>T});var n=r(3498);const i=Math.pow(2,16);function o(e,t){return e+t*i}function s(e){return 65535&e}class a{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class l{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ranges=e,this.inverted=t,!e.length&&l.empty)return l.empty}recover(e){let t=0,r=s(e);if(!this.inverted)for(let n=0;n<r;n++)t+=this.ranges[3*n+2]-this.ranges[3*n+1];return this.ranges[3*r]+t+function(e){return(e-(65535&e))/i}(e)}
2mapResult(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!0)}_map(e,t,r){let n=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let l=0;l<this.ranges.length;l+=3){let c=this.ranges[l]-(this.inverted?n:0);if(c>e)break;let u=this.ranges[l+i],d=this.ranges[l+s],h=c+u;if(e<=h){let i=c+n+((u?e==c?-1:e==h?1:t:t)<0?0:d);if(r)return i;let s=e==(t<0?c:h)?null:o(l/3,e-c),f=e==c?2:e==h?1:4;return(t<0?e!=c:e!=h)&&(f|=8),new a(i,f,s)}n+=d-u}return r?e+n:new a(e+n,0,null)}touches(e,t){let r=0,n=s(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let s=0;s<this.ranges.length;s+=3){let t=this.ranges[s]-(this.inverted?r:0);if(t>e)break;let a=this.ranges[s+i];if(e<=t+a&&s==3*n)return!0;r+=this.ranges[s+o]-a}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,i=0;n<this.ranges.length;n+=3){let o=this.ranges[n],s=o-(this.inverted?i:0),a=o+(this.inverted?0:i),l=this.ranges[n+t],c=this.ranges[n+r];e(s,s+l,a,a+c),i+=c-l}}invert(){return new l(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?l.empty:new l(e<0?[0,-e,0]:[0,0,e])}}l.empty=new l([]);class c{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e?e.length:0;this.mirror=t,this.from=r,this.to=n,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.maps.length;return new c(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),null!=t&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let n=e.getMirror(t);this.appendMap(e._maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e._maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new c;return e.appendMappingInverted(this),e}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let i=this.from;i<this.to;i++){let r=this._maps[i].mapResult(e,t);if(null!=r.recover){let t=this.getMirror(i);if(null!=t&&t>i&&t<this.to){i=t,e=this._maps[t].recover(r.recover);continue}}n|=r.delInfo,e=r.pos}return r?e:new a(e,n,null)}}const u=Object.create(null);class d{getMap(){return l.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=u[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in u)throw new RangeError("Duplicate use of step JSON ID "+e);return u[e]=t,t.prototype.jsonID=e,t}}class h{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new h(e,null)}static fail(e){return new h(null,e)}static fromReplace(e,t,r,i){try{return h.ok(e.replace(t,r,i))}catch(o){if(o instanceof n.vI)return h.fail(o.message);throw o}}}function f(e,t,r){let i=[];for(let n=0;n<e.childCount;n++){let o=e.child(n);o.content.size&&(o=o.copy(f(o.content,t,o))),o.isInline&&(o=t(o,r,n)),i.push(o)}return n.FK.fromArray(i)}class p extends d{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.no
2de(r.sharedDepth(this.to)),o=new n.Ji(f(t.content,(e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return h.fromReplace(e,this.from,this.to,o)}invert(){return new m(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new p(t.pos,r.pos,this.mark)}merge(e){return e instanceof p&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new p(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new p(t.from,t.to,e.markFromJSON(t.mark))}}d.jsonID("addMark",p);class m extends d{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new n.Ji(f(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return h.fromReplace(e,this.from,this.to,r)}invert(){return new p(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new m(t.pos,r.pos,this.mark)}merge(e){return e instanceof m&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new m(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new m(t.from,t.to,e.markFromJSON(t.mark))}}d.jsonID("removeMark",m);class g extends d{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return h.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return h.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new g(this.pos,t.marks[r]);return new g(this.pos,this.mark)}}return new b(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new g(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new g(t.pos,e.markFromJSON(t.mark))}}d.jsonID("addNodeMark",g);class b extends d{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return h.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return h.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new g(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new b(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new b(t.pos,e.markFromJSON(t.mark))}}d.jsonID("removeNodeMark",b);class y extends d{constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&v(e,this.from,this.to)?h.fail("Structure replace would overwrite content"):h.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new l([this.from,this.to-this.from,this.slice.size])}invert(e){return new y(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new y(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof y)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new y(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?n.Ji.empty:new n.Ji(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new y(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new y(t.from,t.to,n.Ji.fromJSON(e,t.slice),!!t.structure)}}d.jsonID("replace",y);class A extends d{constructor(e,t,r,n,i,o){let s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=i,this.insert=o,this.structure=s}apply(e){if(this.structure&&(v(e,this.from,this.gapFrom)||v(e,this.gapTo,this.to)))return h.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return h.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?h.fromReplace(e,this.from,this.to,r):h.fail("Content does not fit in gap")}getMap(){return new l([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new A(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||i>r.pos?null:new A(t.pos,r.pos,n,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new A(t.from,t.to,t.gapFrom,t.gapTo,n.Ji.fromJSON(e,t.slice),t.insert,!!t.structure)}}function v(e,t,r){let n=e.resolve(t),i=r-t,o=n.depth;for(;i>0&&o>
20&&n.indexAfter(o)==n.node(o).childCount;)o--,i--;if(i>0){let e=n.node(o).maybeChild(n.indexAfter(o));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function w(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.contentMatch,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=e.doc.nodeAt(t),a=[],l=t+1;for(let c=0;c<s.childCount;c++){let t=s.child(c),u=l+t.nodeSize,d=i.matchType(t.type);if(d){i=d;for(let n=0;n<t.marks.length;n++)r.allowsMarkType(t.marks[n].type)||e.step(new m(l,u,t.marks[n]));if(o&&t.isText&&"pre"!=r.whitespace){let e,i,o=/\r?\n|\r/g;for(;e=o.exec(t.text);)i||(i=new n.Ji(n.FK.from(r.schema.text(" ",r.allowedMarks(t.marks))),0,0)),a.push(new y(l+e.index,l+e.index+e[0].length,i))}}else a.push(new y(l,u,n.Ji.empty));l=u}if(!i.validEnd){let t=i.fillBefore(n.FK.empty,!0);e.replace(l,l,new n.Ji(t,0,0))}for(let n=a.length-1;n>=0;n--)e.step(a[n])}function x(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function k(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth,n=0,i=0;;--r){let o=e.$from.node(r),s=e.$from.index(r)+n,a=e.$to.indexAfter(r)-i;if(r<e.depth&&o.canReplace(s,a,t))return r;if(0==r||o.type.spec.isolating||!x(o,s,a))break;s&&(n=1),a<o.childCount&&(i=1)}return null}function C(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.contentMatchAt(n).findWrapping(t);if(!o)return null;let s=o.length?o[0]:t;return r.canReplaceWith(n,i,s)?o:null}(e,t),o=i&&function(e,t){let{parent:r,startIndex:n,endIndex:i}=e,o=r.child(n),s=t.contentMatch.findWrapping(o.type);if(!s)return null;let a=(s.length?s[s.length-1]:t).contentMatch;for(let l=n;a&&l<i;l++)a=a.matchType(r.child(l).type);return a&&a.validEnd?s:null}(n,t);return o?i.map(_).concat({type:t,attrs:r}).concat(o.map(_)):null}function _(e){return{type:e,attrs:null}}function S(e,t,r,n){t.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let i=e.mapping.slice(n).map(r+1+o+s.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function E(e,t,r,n){t.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(n).map(r+1+o);e.replaceWith(i,i+1,t.type.schema.text("\n"))}})}function T(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,i=e.resolve(t),o=i.depth-r,s=n&&n[n.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=r-2;c>o;c--,u--){let e=i.node(c),t=i.index(c);if(e.type.spec.isolating)return!1;let r=e.content.cutByIndex(t,e.childCount),o=n&&n[u+1];o&&(r=r.replaceChild(0,o.type.create(o.attrs)));let s=n&&n[u]||e;if(!e.canReplace(t+1,e.childCount)||!s.type.validContent(r))return!1}let a=i.indexAfter(o),l=n&&n[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function M(e,t){let r=e.resolve(t),n=r.index();return O(r.nodeBefore,r.nodeAfter)&&r.parent.canReplace(n,n+1)}function O(e,t){return!(!e||!t||e.isLeaf||!function(e,t){t.content.size||e.type.compatibleContent(t.type);let r=e.contentMatchAt(e.childCount),{linebreakReplacement:n}=e.type.schema;for(let i=0;i<t.childCount;i++){let o=t.child(i),s=o.type==n?e.type.schema.nodes.text:o.type;if(r=r.matchType(s),!r)return!1;if(!e.type.allowsMarks(o.marks))return!1}return r.validEnd}(e,t))}function N(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=e.resolve(t);for(let i=n.depth;;i--){let e,o,s=n.index(i);if(i==n.depth?(e=n.nodeBefore,o=n.nodeAfter):r>0?(e=n.node(i+1),s++,o=n.node(i).maybeChild(s)):(e=n.node(i).maybeChild(s-1),o=n.node(i+1)),e&&!e.isTextblock&&O(e,o)&&n.node(i).canReplace(s,s+1))return t;if(0==i)break;t=r<0?n.before(i):n.after(i)}}function P(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let i=r.content;for(let o=0;o<r.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(0==r.openStart&&r.size?2:1);o++)for(let e=n.depth;e>=0;e--){let t=e==n.depth?0:n.pos<=(n.start(e+1)+n.end(e+1))/2?-1:1,r=n.index(e)+(t>0?1:0),s=n.node(e),a=!1;
2if(1==o)a=s.canReplace(r,r,i);else{let e=s.contentMatchAt(r).findWrapping(i.firstChild.type);a=e&&s.canReplaceWith(r,r,e[0])}if(a)return 0==t?n.pos:t<0?n.before(e+1):n.after(e+1)}return null}function R(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.Ji.empty;if(t==r&&!i.size)return null;let o=e.resolve(t),s=e.resolve(r);return D(o,s,i)?new y(t,r,i):new I(o,s,i).fit()}function D(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}d.jsonID("replaceAround",A);class I{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=n.FK.empty;for(let n=0;n<=e.depth;n++){let t=e.node(n);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(n))})}for(let i=e.depth;i>0;i--)this.placed=n.FK.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new n.Ji(o,s,a);return e>-1?new A(r.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||r.pos!=this.$to.pos?new y(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let i=t.firstChild;if(t.childCount>1&&(n=0),i.type.spec.isolating&&n<=r){e=r;break}t=i.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,i=null;r?(i=j(this.unplaced.content,r-1).firstChild,e=i.content):e=this.unplaced.content;let o=e.firstChild;for(let s=this.depth;s>=0;s--){let e,{type:a,match:l}=this.frontier[s],c=null;if(1==t&&(o?l.matchType(o.type)||(c=l.fillBefore(n.FK.from(o),!1)):i&&a.compatibleContent(i.type)))return{sliceDepth:r,frontierDepth:s,parent:i,inject:c};if(2==t&&o&&(e=l.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:s,parent:i,wrap:e};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=j(e,t);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new n.Ji(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=j(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new n.Ji(L(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new n.Ji(L(e,t,1),t,r)}placeNodes(e){let{sliceDepth:t,frontierDepth:r,parent:i,inject:o,wrap:s}=e;for(;this.depth>r;)this.closeFrontierNode();if(s)for(let n=0;n<s.length;n++)this.openFrontierNode(s[n]);let a=this.unplaced,l=i?i.content:a.content,c=a.openStart-t,u=0,d=[],{match:h,type:f}=this.frontier[r];if(o){for(let e=0;e<o.childCount;e++)d.push(o.child(e));h=h.matchFragment(o)}let p=l.size+t-(a.content.size-a.openEnd);for(;u<l.childCount;){let e=l.child(u),t=h.matchType(e.type);if(!t)break;u++,(u>1||0==c||e.content.size)&&(h=t,d.push(F(e.mark(f.allowedMarks(e.marks)),1==u?c:0,u==l.childCount?p:-1)))}let m=u==l.childCount;m||(p=-1),this.placed=B(this.placed,r,n.FK.from(d)),this.frontier[r].match=h,m&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let n=0,g=l;n<p;n++){let e=g.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),g=e.content}this.unplaced=m?0==t?n.Ji.empty:new n.Ji(L(a.content,t-1,1),t-1,p<0?a.openEnd:t-1):new n.Ji(L(a.content,t,u),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!z(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),o=z(e,t,n,r,i);if(o){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],i=z(e,r,n,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=B(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=B(this.placed,this.depth,n.FK.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(n.FK.empty,!0);e.childCount&&(this.placed=B(this.placed,this.frontier.length,e))}}function L(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(L(e.firstChild.content,t-1,r)))}function B(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(B(e.last
2Child.content,t-1,r)))}function j(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function F(e,t,r){if(t<=0)return e;let i=e.content;return t>1&&(i=i.replaceChild(0,F(i.firstChild,t-1,1==i.childCount?r-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),r<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(n.FK.empty,!0)))),e.copy(i)}function z(e,t,r,n,i){let o=e.node(t),s=i?e.indexAfter(t):e.index(t);if(s==o.childCount&&!r.compatibleContent(o.type))return null;let a=n.fillBefore(o.content,!0,s);return a&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,o.content,s)?a:null}function U(e){return e.spec.defining||e.spec.definingForContent}function H(e,t,r,i,o){if(t<r){let n=e.firstChild;e=e.replaceChild(0,n.copy(H(n.content,t+1,r,i,n)))}if(t>i){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(n.FK.empty,!0))}return e}function V(e,t){let r=[];for(let n=Math.min(e.depth,t.depth);n>=0;n--){let i=e.start(n);if(i<e.pos-(e.depth-n)||t.end(n)>t.pos+(t.depth-n)||e.node(n).type.spec.isolating||t.node(n).type.spec.isolating)break;(i==t.start(n)||n==e.depth&&n==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&n&&t.start(n-1)==i-1)&&r.push(n)}return r}class W extends d{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return h.fail("No node at attribute step's position");let r=Object.create(null);for(let n in t.attrs)r[n]=t.attrs[n];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return h.fromReplace(e,this.pos,this.pos+1,new n.Ji(n.FK.from(i),0,t.isLeaf?0:1))}getMap(){return l.empty}invert(e){return new W(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new W(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new W(t.pos,t.attr,t.value)}}d.jsonID("attr",W);class K extends d{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return h.ok(r)}getMap(){return l.empty}invert(e){return new K(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new K(t.attr,t.value)}}d.jsonID("docAttr",K);let q=class extends Error{};q=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r},(q.prototype=Object.create(Error.prototype)).constructor=q,q.prototype.name="TransformError";class G{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new c}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new q(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let n=this.mapping.maps[r];r&&(e=n.map(e,1),t=n.map(t,-1)),n.forEach((r,n,i,o)=>{e=Math.min(e,i),t=Math.max(t,o)})}return 1e9==e?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.Ji.empty,i=R(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new n.Ji(n.FK.from(r),0,0))}delete(e,t){return this.replace(e,t,n.Ji.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return function(e,t,r,i){if(!i.size)return e.deleteRange(t,r);let o=e.doc.resolve(t),s=e.doc.resolve(r);if(D(o,s,i))return e.step(new y(t,r,i));let a=V(o,s);0==a[a.length-1]&&a.pop();let l=-(o.depth+1);a.unshift(l);for(let n=o.depth,f=o.pos-1;n>0;n--,f--){let e=o.node(n).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;a.indexOf(n)>-1?l=n:o.before(n)==f&&a.splice(1,0,-n)}let c=a.indexOf(l),u=[],d=i.openStart;for(let n=i.content,f=0;;f++){let e=n.firstChild;if(u.push(e),f==i.openStart)break;n=e.content}for(let n=d-1;n>=0;n--){let e=u[n],t=U(e.type);if(t&&!e.sameMarkup(o.node(Math.abs(l)-1)))d=n;else if(t||!e.type.isTextblock)break}for(let f=i.openStart;f>=0;f--){let t=(f+d+1)%(i.openStart+1),l=u[t];if(l)for(let u=0;u<a.length;u++){let d=a[(u+c)%a.length],h=!0;d<0&&(h=!1,d=-d);let f=o.node(d-1),p=o.index(d-1);if(f.canReplaceWith(p,p,l.type,l.marks))return e.replace(o.before(d),h?s.after(d):r,new n.Ji(H(i.content,0,i.openStart,t),t,i.openEnd))}}let h=e.steps.length;for(let n=a.length-1;n>=0&&(e.replace(t,r,i),!(e.steps.length>h));n--){let e=a[n];e<0||(t=o.before(e),r=s.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){return function(e,t,r,i){if(!i.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let n=function(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let i=n.depth-1;i>=0;i--){let e=n.index(i);if(n.node(i).canReplaceWith(e,e,r))return n.before(i+1);if(e>0)return null}if(n.parentOffset==n.parent.content.size)for(let i=n.depth-1;i>=0;i--){let e=n.indexAfter(i);if(n.node(i).canReplaceWith(e,e,r))return n.after(i+1);if(e<n.node(i).childCount)return null}return null}(e.doc,t,i.type);null!=n&&(t=r=n)}e.replaceRange(t,r,new n.Ji(n.FK.from(i),0,0))}(this,e,t,r),this}deleteRange(e,t){return function(e,t,r){let n=e.doc.resolve(t),i=e.doc.resolve(r),o=V(n,i);for(let s=0;s<o.length;
2s++){let t=o[s],r=s==o.length-1;if(r&&0==t||n.node(t).type.contentMatch.validEnd)return e.delete(n.start(t),i.end(t));if(t>0&&(r||n.node(t-1).canReplace(n.index(t-1),i.indexAfter(t-1))))return e.delete(n.before(t),i.after(t))}for(let s=1;s<=n.depth&&s<=i.depth;s++)if(t-n.start(s)==n.depth-s&&r>n.end(s)&&i.end(s)-r!=i.depth-s&&n.start(s-1)==i.start(s-1)&&n.node(s-1).canReplace(n.index(s-1),i.index(s-1)))return e.delete(n.before(s),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return function(e,t,r){let{$from:i,$to:o,depth:s}=t,a=i.before(s+1),l=o.after(s+1),c=a,u=l,d=n.FK.empty,h=0;for(let m=s,g=!1;m>r;m--)g||i.index(m)>0?(g=!0,d=n.FK.from(i.node(m).copy(d)),h++):c--;let f=n.FK.empty,p=0;for(let m=s,g=!1;m>r;m--)g||o.after(m+1)<o.end(m)?(g=!0,f=n.FK.from(o.node(m).copy(f)),p++):u++;e.step(new A(c,u,a,l,new n.Ji(d.append(f),h,p),d.size-h,!0))}(this,e,t),this}join(e){return function(e,t,r){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(t-r),a=s.node().type;if(o&&a.inlineContent){let e="pre"==a.whitespace,t=!!a.contentMatch.matchType(o);e&&!t?i=!1:!e&&t&&(i=!0)}let l=e.steps.length;if(!1===i){let n=e.doc.resolve(t+r);E(e,n.node(),n.before(),l)}a.inlineContent&&w(e,t+r-1,a,s.node().contentMatchAt(s.index()),null==i);let c=e.mapping.slice(l),u=c.map(t-r);if(e.step(new y(u,c.map(t+r,-1),n.Ji.empty,!0)),!0===i){let t=e.doc.resolve(u);S(e,t.node(),t.before(),e.steps.length)}}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),this}wrap(e,t){return function(e,t,r){let i=n.FK.empty;for(let a=r.length-1;a>=0;a--){if(i.size){let e=r[a].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=n.FK.from(r[a].type.create(r[a].attrs,i))}let o=t.start,s=t.end;e.step(new A(o,s,o,s,new n.Ji(i,0,0),r.length,!0))}(this,e,t),this}setBlockType(e){return function(e,t,r,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(t,r,(t,r)=>{let a="function"==typeof o?o(t):o;if(t.isTextblock&&!t.hasMarkup(i,a)&&function(e,t,r){let n=e.resolve(t),i=n.index();return n.parent.canReplaceWith(i,i+1,r)}(e.doc,e.mapping.slice(s).map(r),i)){let o=null;if(i.schema.linebreakReplacement){let e="pre"==i.whitespace,t=!!i.contentMatch.matchType(i.schema.linebreakReplacement);e&&!t?o=!1:!e&&t&&(o=!0)}!1===o&&E(e,t,r,s),w(e,e.mapping.slice(s).map(r,1),i,void 0,null===o);let l=e.mapping.slice(s),c=l.map(r,1),u=l.map(r+t.nodeSize,1);return e.step(new A(c,u,c+1,u-1,new n.Ji(n.FK.from(i.create(a,null,t.marks)),0,0),1,!0)),!0===o&&S(e,t,r,s),!1}})}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,arguments.length>2?arguments[2]:void 0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),this}setNodeMarkup(e,t){return function(e,t,r,i,o){let s=e.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");r||(r=s.type);let a=r.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(t,t+s.nodeSize,a);if(!r.validContent(s.content))throw new RangeError("Invalid content for node type "+r.name);e.step(new A(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new n.Ji(n.FK.from(a),0,0),1,!0))}(this,e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0),this}setNodeAttribute(e,t,r){return this.step(new W(e,t,r)),this}setDocAttribute(e,t){return this.step(new K(e,t)),this}addNodeMark(e,t){return this.step(new g(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t instanceof n.CU)t.isInSet(r.marks)&&this.step(new b(e,t));else{let n,i=r.marks,o=[];for(;n=t.isInSet(i);)o.push(new b(e,n)),i=n.removeFromSet(i);for(let e=o.length-1;e>=0;e--)this.step(o[e])}return this}split(e){return function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,o=e.doc.resolve(t),s=n.FK.empty,a=n.FK.empty;for(let l=o.depth,c=o.depth-r,u=r-1;l>c;l--,u--){s=n.FK.from(o.node(l).copy(s));let e=i&&i[u];a=n.FK.from(e?e.type.create(e.attrs,a):o.node(l).copy(a))}e.step(new y(t,t,new n.Ji(s.append(a),r,r),!0))}(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2?arguments[2]:void 0),this}addMark(e,t,r){return function(e,t,r,n){let i,o,s=[],a=[];e.doc.nodesBetween(t,r,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!n.isInSet(u)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,t),d=Math.min(l+e.nodeSize,r),h=n.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(h)||(i&&i.to==c&&i.mark.eq(u[e])?i.to=d:s.push(i=new m(c,d,u[e])));o&&o.to==c?o.to=d:a.push(o=new p(c,d,n))}}
2),s.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}(this,e,t,r),this}removeMark(e,t,r){return function(e,t,r,i){let o=[],s=0;e.doc.nodesBetween(t,r,(e,a)=>{if(!e.isInline)return;s++;let l=null;if(i instanceof n.sX){let t,r=e.marks;for(;t=i.isInSet(r);)(l||(l=[])).push(t),r=t.removeFromSet(r)}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length){let n=Math.min(a+e.nodeSize,r);for(let e=0;e<l.length;e++){let r,i=l[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==s-1&&i.eq(o[e].style)&&(r=t)}r?(r.to=n,r.step=s):o.push({style:i,from:Math.max(a,t),to:n,step:s})}}}),o.forEach(t=>e.step(new m(t.from,t.to,t.style)))}(this,e,t,r),this}clearIncompatible(e,t,r){return w(this,e,t,r),this}}},7367(e,t,r){"use strict";r.d(t,{Lz:()=>gr,NZ:()=>Ht,zF:()=>Kt});var n=r(8973),i=r(3498),o=r(9206);const s=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},a=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let l=null;const c=function(e,t,r){let n=l||(l=document.createRange());return n.setEnd(e,null==r?e.nodeValue.length:r),n.setStart(e,t||0),n},u=function(e,t,r,n){return r&&(h(e,t,r,n,-1)||h(e,t,r,n,1))},d=/^(img|br|input|textarea|hr)$/i;function h(e,t,r,n,i){for(var o;;){if(e==r&&t==n)return!0;if(t==(i<0?0:f(e))){let r=e.parentNode;if(!r||1!=r.nodeType||p(e)||d.test(e.nodeName)||"false"==e.contentEditable)return!1;t=s(e)+(i<0?0:1),e=r}else{if(1!=e.nodeType)return!1;{let r=e.childNodes[t+(i<0?-1:0)];if(1==r.nodeType&&"false"==r.contentEditable){if(!(null===(o=r.pmViewDesc)||void 0===o?void 0:o.ignoreForSelection))return!1;t+=i}else e=r,t=i<0?f(e):0}}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function p(e){let t;for(let r=e;
2r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const m=function(e){return e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function g(e,t){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}const b="undefined"!=typeof navigator?navigator:null,y="undefined"!=typeof document?document:null,A=b&&b.userAgent||"",v=/Edge\/(\d+)/.exec(A),w=/MSIE \d/.exec(A),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(A),k=!!(w||x||v),C=w?document.documentMode:x?+x[1]:v?+v[1]:0,_=!k&&/gecko\/(\d+)/i.test(A);_&&(/Firefox\/(\d+)/.exec(A)||[0,0])[1];const S=!k&&/Chrome\/(\d+)/.exec(A),E=!!S,T=S?+S[1]:0,M=!k&&!!b&&/Apple Computer/.test(b.vendor),O=M&&(/Mobile\/\w+/.test(A)||!!b&&b.maxTouchPoints>2),N=O||!!b&&/Mac/.test(b.platform),P=!!b&&/Win/.test(b.platform),R=/Android \d/.test(A),D=!!y&&"webkitFontSmoothing"in y.documentElement.style,I=D?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function L(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function B(e,t){return"number"==typeof e?e:e[t]}function j(e){let t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*r,top:t.top,bottom:t.top+e.clientHeight*n}}function F(e,t,r){let n=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let s=r||e.dom;s;){if(1!=s.nodeType){s=a(s);continue}let e=s,r=e==o.body,l=r?L(o):j(e),c=0,u=0;if(t.top<l.top+B(n,"top")?u=-(l.top-t.top+B(i,"top")):t.bottom>l.bottom-B(n,"bottom")&&(u=t.bottom-t.top>l.bottom-l.top?t.top+B(i,"top")-l.top:t.bottom-l.bottom+B(i,"bottom")),t.left<l.left+B(n,"left")?c=-(l.left-t.left+B(i,"left")):t.right>l.right-B(n,"right")&&(c=t.right-l.right+B(i,"right")),c||u)if(r)o.defaultView.scrollBy(c,u);else{let r=e.scrollLeft,n=e.scrollTop;u&&(e.scrollTop+=u),c&&(e.scrollLeft+=c);let i=e.scrollLeft-r,o=e.scrollTop-n;t={left:t.left-i,top:t.top-o,right:t.right-i,bottom:t.bottom-o}}let d=r?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(d))break;s="absolute"==d?s.offsetParent:a(s)}}function z(e){let t=[],r=e.ownerDocument;for(let n=e;n&&(t.push({dom:n,top:n.scrollTop,left:n.scrollLeft}),e!=r);n=a(n));return t}function U(e,t){for(let r=0;r<e.length;r++){let{dom:n,top:i,left:o}=e[r];n.scrollTop!=i+t&&(n.scrollTop=i+t),n.scrollLeft!=o&&(n.scrollLeft=o)}}let H=null;function V(e,t){let r,n,i,o,s=2e8,a=0,l=t.top,u=t.top;for(let d=e.firstChild,h=0;d;d=d.nextSibling,h++){let e;if(1==d.nodeType)e=d.getClientRects();else{if(3!=d.nodeType)continue;e=c(d).getClientRects()}for(let c=0;c<e.length;c++){let f=e[c];if(f.top<=l&&f.bottom>=u){l=Math.max(f.bottom,l),u=Math.min(f.top,u);let e=f.left>t.left?f.left-t.left:f.right<t.left?t.left-f.right:0;if(e<s){r=d,s=e,n=e&&3==r.nodeType?{left:f.right<t.left?f.right:f.left,top:t.top}:t,1==d.nodeType&&e&&(a=h+(t.left>=(f.left+f.right)/2?1:0));continue}}else f.top>t.top&&!i&&f.left<=t.left&&f.right>=t.left&&(i=d,o={left:Math.max(f.left,Math.min(f.right,t.left)),top:f.top});!r&&(t.left>=f.right&&t.top>=f.top||t.left>=f.left&&t.top>=f.bottom)&&(a=h+1)}}return!r&&i&&(r=i,n=o,s=0),r&&3==r.nodeType?function(e,t){let r,n=e.nodeValue.length,i=document.createRange();for(let o=0;o<n;o++){i.setEnd(e,o+1),i.setStart(e,o);let n=X(i,1);if(n.top!=n.bottom&&W(t,n)){r={node:e,offset:o+(t.left>=(n.left+n.right)/2?1:0)};break}}return i.detach(),r||{node:e,offset:0}}(r,n):!r||s&&1==r.nodeType?{node:e,offset:a}:V(r,n)}function W(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function K(e,t,r){let n=e.childNodes.length;if(n&&r.top<r.bottom)for(let i=Math.max(0,Math.min(n-1,Math.floor(n*(t.top-r.top)/(r.bottom-r.top))-2)),o=i;;){let r=e.childNodes[o];if(1==r.nodeType){let e=r.getClientRects();for(let n=0;n<e.length;n++){let i=e[n];if(W(t,i))return K(r,t,i)}}if((o=(o+1)%n)==i)break}return e}function q(e,t){let r,n=e.dom.ownerDocument,i=0,o=function(e,t,r){if(e.caretPositionFromPoint)try{let n=e.caretPositionFromPoint(t,r);
2if(n)return{node:n.offsetNode,offset:Math.min(f(n.offsetNode),n.offset)}}catch(n){}if(e.caretRangeFromPoint){let n=e.caretRangeFromPoint(t,r);if(n)return{node:n.startContainer,offset:Math.min(f(n.startContainer),n.startOffset)}}}(n,t.left,t.top);o&&({node:r,offset:i}=o);let s,l=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top);if(!l||!e.dom.contains(1!=l.nodeType?l.parentNode:l)){let r=e.dom.getBoundingClientRect();if(!W(t,r))return null;if(l=K(e.dom,t,r),!l)return null}if(M)for(let u=l;r&&u;u=a(u))u.draggable&&(r=void 0);if(l=function(e,t){let r=e.parentNode;return r&&/^li$/i.test(r.nodeName)&&t.left<e.getBoundingClientRect().left?r:e}(l,t),r){if(_&&1==r.nodeType&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e,n=r.childNodes[i];"IMG"==n.nodeName&&(e=n.getBoundingClientRect()).right<=t.left&&e.bottom>t.top&&i++}let n;D&&i&&1==r.nodeType&&1==(n=r.childNodes[i-1]).nodeType&&"false"==n.contentEditable&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&1==r.lastChild.nodeType&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:0!=i&&1==r.nodeType&&"BR"==r.childNodes[i-1].nodeName||(s=function(e,t,r,n){let i=-1;for(let o=t,s=!1;o!=e.dom;){let t,r=e.docView.nearestDesc(o,!0);if(!r)return null;if(1==r.dom.nodeType&&(r.node.isBlock&&r.parent||!r.contentDOM)&&((t=r.dom.getBoundingClientRect()).width||t.height)&&(r.node.isBlock&&r.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(r.dom.nodeName)&&(!s&&t.left>n.left||t.top>n.top?i=r.posBefore:(!s&&t.right<n.left||t.bottom<n.top)&&(i=r.posAfter),s=!0),!r.contentDOM&&i<0&&!r.node.isText))return(r.node.isBlock?n.top<(t.top+t.bottom)/2:n.left<(t.left+t.right)/2)?r.posBefore:r.posAfter;o=r.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,r,-1)}(e,r,i,t))}null==s&&(s=function(e,t,r){let{node:n,offset:i}=V(t,r),o=-1;if(1==n.nodeType&&!n.firstChild){let e=n.getBoundingClientRect();o=e.left!=e.right&&r.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(n,i,o)}(e,l,t));let c=e.docView.nearestDesc(l,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function G(e){return e.top<e.bottom||e.left<e.right}function X(e,t){let r=e.getClientRects();if(r.length){let e=r[t<0?0:r.length-1];if(G(e))return e}return Array.prototype.find.call(r,G)||e.getBoundingClientRect()}const Y=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function $(e,t,r){let{node:n,offset:i,atom:o}=e.docView.domFromPos(t,r<0?-1:1),s=D||_;if(3==n.nodeType){if(!s||!Y.test(n.nodeValue)&&(r<0?i:i!=n.nodeValue.length)){let e=i,t=i,o=r<0?1:-1;return r<0&&!i?(t++,o=-1):r>=0&&i==n.nodeValue.length?(e--,o=1):r<0?e--:t++,Q(X(c(n,e,t),o),o<0)}{let e=X(c(n,i,i),r);if(_&&i&&/\s/.test(n.nodeValue[i-1])&&i<n.nodeValue.length){let t=X(c(n,i-1,i-1),-1);if(t.top==e.top){let r=X(c(n,i,i+1),-1);if(r.top!=e.top)return Q(r,r.left<t.left)}}return e}}if(!e.state.doc.resolve(t-(o||0)).parent.inlineContent){if(null==o&&i&&(r<0||i==f(n))){let e=n.childNodes[i-1];if(1==e.nodeType)return J(e.getBoundingClientRect(),!1)}if(null==o&&i<f(n)){let e=n.childNodes[i];if(1==e.nodeType)return J(e.getBoundingClientRect(),!0)}return J(n.getBoundingClientRect(),r>=0)}if(null==o&&i&&(r<0||i==f(n))){let e=n.childNodes[i-1],t=3==e.nodeType?c(e,f(e)-(s?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return Q(X(t,1),!1)}if(null==o&&i<f(n)){let e=n.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?3==e.nodeType?c(e,0,s?0:1):1==e.nodeType?e:null:null;if(t)return Q(X(t,-1),!0)}return Q(X(3==n.nodeType?c(n):n,-r),r>=0)}function Q(e,t){if(0==e.width)return e;let r=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:r,right:r}}function J(e,t){if(0==e.height)return e;let r=t?e.top:e.bottom;return{top:r,bottom:r,left:e.left,right:e.right}}function Z(e,t,r){let n=e.state,i=e.root.activeElement;n!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return r()}finally{n!=t&&e.updateState(n),i!=e.dom&&i&&i.focus()}}const ee=/[\u0590-\u08ac]/;let te=null,re=null,ne=!1;function ie(e,t,r){return te==t&&re==r?ne:(te=t,re=r,ne="up"==r||"down"==r?function(e,t,r){let n=t.selection,i="up"==r?n.$from:n.$to;return Z(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==r?-1:1);for(;;){let r=e.docView.nearestDesc(t,!0);if(!r)break;
2if(r.node.isBlock){t=r.contentDOM||r.dom;break}t=r.dom.parentNode}let n=$(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&("up"==r?n.top-i.top>2*(i.bottom-n.top):i.bottom-n.bottom>2*(n.bottom-i.top)))return!1}}return!0})}(e,t,r):function(e,t,r){let{$head:n}=t.selection;if(!n.parent.isTextblock)return!1;let i=n.parentOffset,o=!i,s=i==n.parent.content.size,a=e.domSelection();return a?ee.test(n.parent.textContent)&&a.modify?Z(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:o,anchorOffset:s}=e.domSelectionRange(),l=a.caretBidiLevel;a.modify("move",r,"character");let c=n.depth?e.docView.domAfterPos(n.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),h=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==d;try{a.collapse(o,s),t&&(t!=o||i!=s)&&a.extend&&a.extend(t,i)}catch(f){}return null!=l&&(a.caretBidiLevel=l),h}):"left"==r||"backward"==r?o:s:n.pos==n.start()||n.pos==n.end()}(e,t,r))}class oe{constructor(e,t,r,n){this.parent=e,this.children=t,this.dom=r,this.contentDOM=n,this.dirty=0,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let n=this.children[t];if(n==e)return r;r+=n.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(1==e.nodeType?e:e.parentNode)){if(r<0){let r,n;if(e==this.contentDOM)r=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.previousSibling}for(;r&&(!(n=r.pmViewDesc)||n.parent!=this);)r=r.previousSibling;return r?this.posBeforeChild(n)+n.size:this.posAtStart}{let r,n;if(e==this.contentDOM)r=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;r=e.nextSibling}for(;r&&(!(n=r.pmViewDesc)||n.parent!=this);)r=r.nextSibling;return r?this.posBeforeChild(n):this.posAtEnd}}let n;if(e==this.dom&&this.contentDOM)n=t>s(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))n=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){n=!1;break}if(t.previousSibling)break}if(null==n&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){n=!0;break}if(t.nextSibling)break}}return(null==n?r>0:n)?this.posAtEnd:this.posAtStart}nearestDesc(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(let r=!0,n=e;n;n=n.parentNode){let i,o=this.getDesc(n);if(o&&(!t||o.node)){if(!r||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;r=!1}}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let n=e;n;n=n.parentNode){let i=this.getDesc(n);if(i)return i.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let n=this.children[t],i=r+n.size;if(r==e&&i!=r){for(;!n.border&&n.children.length;)for(let e=0;e<n.children.length;e++){let t=n.children[e];if(t.size){n=t;break}}return n}if(e<i)return n.descAt(e-r-n.border);r=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,n=0;for(let i=0;r<this.children.length;r++){let t=this.children[r],o=i+t.size;if(o>e||t instanceof he){n=e-i;break}i=o}if(n)return this.children[r].domFromPos(n-this.children[r].border,t);for(let i;r&&!(i=this.children[r-1]).size&&i instanceof se&&i.side>=0;r--);if(t<=0){let e,n=!0;for(;e=r?this.children[r-1]:null,e&&e.dom.parentNode!=this.contentDOM;r--,n=!1);return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?s(e.dom)+1:0}}{let e,n=!0;for(;e=r<this.children.length?this.children[r]:null,e&&e.dom.parentNode!=this.contentDOM;r++,n=!1);return e&&n&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?s(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0==this.children.length)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let n=-1,i=-1;for(let o=r,a=0;;a++){let r=this.children[a],l=o+r.size;if(-1==n&&e<=l){let i=o+r.border;if(e>=i&&t<=l-r.border&&r.node&&r.contentDOM&&this.contentDOM.contains(r.contentDOM))return r.parseRange(e,t,i);e=o;for(let t=a;t>0;t--){let r=this.children[t-1];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(1)){n=s(r.dom)+1;break}e-=r.size}-1==n&&(n=0)}if(n>-1&&(l>t||a==this.children.length-1)){t=l;for(let e=a+1;e<this.children.length;e++){let r=this.children[e];if(r.size&&r.dom.parentNode==this.contentDOM&&!r.emptyChildAt(-1)){i=s(r.dom);break}t+=r.size}-1==i&&(i=this.contentDOM.childNodes.length);break}o=l}return{node:this.contentDOM,from:e,to:t,fromOffset:n,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return 0==t.size||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(1!=t.nodeType||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=Math.min(e,t),o=Math.max(e,t);for(let s=0,u=0;s<this.children.length;s++){let a=this.children[s],l=u+a.size;if(i>u&&o<l)return a.setSelection(e-u-a.border,t-u-a.border,r,n);u=l}let a=this.domFromPos(e,e?-1:1),l=t==e?a:this.domFromPos(t,t?-1:1),c=r.root.getSelection(),d=r.domSelectionRange(),h=!1;if((_||M)&&e==t){let{node:e,offset:t}=a;if(3==e.nodeType){if(h=!(!t||"\n"!=e.nodeValue[t-1]),h&&t==e.nodeValue.length)for(let r,n=e;n;
2n=n.parentNode){if(r=n.nextSibling){"BR"==r.nodeName&&(a=l={node:r.parentNode,offset:s(r)+1});break}let e=n.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let r=e.childNodes[t-1];h=r&&("BR"==r.nodeName||"false"==r.contentEditable)}}if(_&&d.focusNode&&d.focusNode!=l.node&&1==d.focusNode.nodeType){let e=d.focusNode.childNodes[d.focusOffset];e&&"false"==e.contentEditable&&(n=!0)}if(!(n||h&&M)&&u(a.node,a.offset,d.anchorNode,d.anchorOffset)&&u(l.node,l.offset,d.focusNode,d.focusOffset))return;let f=!1;if((c.extend||e==t)&&(!h||!_)){c.collapse(a.node,a.offset);try{e!=t&&c.extend(l.node,l.offset),f=!0}catch(p){}}if(!f){if(e>t){let e=a;a=l,l=e}let r=document.createRange();r.setEnd(l.node,l.offset),r.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(r)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,n=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==o?e<=o&&t>=r:e<o&&t>r){let n=r+i.border,s=o-i.border;if(e>=n&&t<=s)return this.dirty=e==r||t==o?2:1,void(e!=n||t!=s||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-n,t-n):i.dirty=3);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?3:2}r=o}this.dirty=2}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=1==e?2:1;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class se extends oe{constructor(e,t,r,n){let i,o=t.type.toDOM;if("function"==typeof o&&(o=o(r,()=>i?i.parent?i.parent.posBeforeChild(i):void 0:n)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return 0==this.dirty&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class ae extends oe{constructor(e,t,r,n){super(e,[],t,null),this.textDOM=r,this.text=n}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class le extends oe{constructor(e,t,r,n,i){super(e,[],r,n),this.mark=t,this.spec=i}static create(e,t,r,n){let o=n.nodeViews[t.type.name],s=o&&o(t,n,r);return s&&s.dom||(s=i.ZF.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new le(e,t,s.dom,s.contentDOM||s.dom,s)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return 3!=this.dirty&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),0!=this.dirty){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=0}}slice(e,t,r){let n=le.create(this.parent,this.mark,!0,r),i=this.children,o=this.size;t<o&&(i=_e(i,t,o,r)),e>0&&(i=_e(i,0,e,r));for(let s=0;s<i.length;s++)i[s].parent=n;return n.children=i,n}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class ce extends oe{constructor(e,t,r,n,i,o,s,a,l){super(e,[],i,o),this.node=t,this.outerDeco=r,this.innerDeco=n,this.nodeDOM=s}static create(e,t,r,n,o,s){let a,l=o.nodeViews[t.type.name],c=l&&l(t,o,()=>a?a.parent?a.parent.posBeforeChild(a):void 0:s,r,n),u=c&&c.dom,d=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else if(!u){let e=i.ZF.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs);({dom:u,contentDOM:d}=e)}d||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let h=u;return u=ve(u,r,t),c?a=new fe(e,t,r,n,u,d||null,h,c,o,s+1):t.isText?new de(e,t,r,n,u,h,o):new ce(e,t,r,n,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;
2let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>i.FK.empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,r){return 0==this.dirty&&e.eq(this.node)&&we(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,n=t,o=e.composing?this.localCompositionInfo(e,t):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new ke(this,s&&s.node,e);!function(e,t,r,n){let i=t.locals(e),o=0;if(0==i.length){for(let r=0;r<e.childCount;r++){let s=e.child(r);n(s,i,t.forChild(o,s),r),o+=s.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d,h,f;for(;s<i.length&&i[s].to==o;){let e=i[s++];e.widget&&(u?(d||(d=[u])).push(e):u=e)}if(u)if(d){d.sort(Ce);for(let e=0;e<d.length;e++)r(d[e],c,!!l)}else r(u,c,!!l);if(l)f=-1,h=l,l=null;else{if(!(c<e.childCount))break;f=c,h=e.child(c++)}for(let e=0;e<a.length;e++)a[e].to<=o&&a.splice(e--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let p=o+h.nodeSize;if(h.isText){let e=p;s<i.length&&i[s].from<e&&(e=i[s].from);for(let t=0;t<a.length;t++)a[t].to<e&&(e=a[t].to);e<p&&(l=h.cut(e-o),h=h.cut(0,e-o),p=e,f=-1)}else for(;s<i.length&&i[s].to<p;)s++;n(h,h.isInline&&!h.isLeaf?a.filter(e=>!e.inline):a.slice(),t.forChild(o,h),f),o=p}}(this.node,this.innerDeco,(t,o,s)=>{t.spec.marks?l.syncToMarks(t.spec.marks,r,e,o):t.type.side>=0&&!s&&l.syncToMarks(o==this.node.childCount?i.CU.none:this.node.child(o).marks,r,e,o),l.placeWidget(t,e,n)},(t,i,s,c)=>{let u;l.syncToMarks(t.marks,r,e,c),l.findNodeMatch(t,i,s,c)||a&&e.state.selection.from>n&&e.state.selection.to<n+t.nodeSize&&(u=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(t,i,s,u,e)||l.updateNextNode(t,i,s,e,c,n)||l.addNode(t,i,s,e,n),n+=t.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(e,s),pe(this.contentDOM,this.children,e),O&&function(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}(this.dom))}localCompositionInfo(e,t){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof n.U3)||r<t||i>t+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let e=o.nodeValue,n=function(e,t,r,n){for(let i=0,o=0;i<e.childCount&&o<=n;){let s=e.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<e.childCount;){let t=e.child(i++);if(o+=t.nodeSize,!t.isText)break;l+=t.text}if(o>=r){if(o>=n&&l.slice(n-t.length-a,n-a)==t)return n-t.length;let e=a<n?l.lastIndexOf(t,n-a-1):-1;if(e>=0&&e+t.length+a>=r)return a+e;if(r==n&&l.length>=n+t.length-a&&l.slice(n-a,n-a+t.length)==t)return n}}return-1}(this.node.content,e,r-t,i-t);return n<0?null:{node:o,pos:n,text:e}}return{node:o,pos:-1,text:""}}protectLocalComposition(e,t){let{node:r,pos:n,text:i}=t;if(this.getDesc(r))return;let o=r;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new ae(this,o,r,i);e.input.compositionNodes.push(s),this.children=_e(this.children,n,n+i.length,e,s)}update(e,t,r,n){return!(3==this.dirty||!e.sameMarkup(this.node))&&(this.updateInner(e,t,r,n),!0)}updateInner(e,t,r,n){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(n,this.posAtStart),this.dirty=0}updateOuterDeco(e){if(we(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,r=this.dom;this.dom=ye(this.dom,this.nodeDOM,be(this.outerDeco,this.node,t),be(e,this.node,t)),this.dom!=r&&(r.pmVie
2wDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.nodeDOM.draggable=!0))}deselectNode(){1==this.nodeDOM.nodeType&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ue(e,t,r,n,i){ve(n,t,e);let o=new ce(void 0,e,t,r,n,n,n,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class de extends ce{constructor(e,t,r,n,i,o,s){super(e,t,r,n,i,null,o,s,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,n){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),0==this.dirty&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,n.trackWrites==this.nodeDOM&&(n.trackWrites=null)),this.node=e,this.dirty=0,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,r){let n=this.node.cut(e,t),i=document.createTextNode(n.text);return new de(this.parent,n,this.outerDeco,this.innerDeco,i,i,r)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=3)}get domAtom(){return!1}isText(e){return this.node.text==e}}class he extends oe{parseRule(){return{ignore:!0}}matchesHack(e){return 0==this.dirty&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class fe extends ce{constructor(e,t,r,n,i,o,s,a,l,c){super(e,t,r,n,i,o,s,l,c),this.spec=a}update(e,t,r,n){if(3==this.dirty)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,r);return i&&this.updateInner(e,t,r,n),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,r,n)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,n){this.spec.setSelection?this.spec.setSelection(e,t,r.root):super.setSelection(e,t,r,n)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function pe(e,t,r){let n=e.firstChild,i=!1;for(let o=0;o<t.length;o++){let s=t[o],a=s.dom;if(a.parentNode==e){for(;a!=n;)n=xe(n),i=!0;n=n.nextSibling}else i=!0,e.insertBefore(a,n);if(s instanceof le){let t=n?n.previousSibling:e.lastChild;pe(s.contentDOM,s.children,r),n=t?t.nextSibling:e.firstChild}}for(;n;)n=xe(n),i=!0;i&&r.trackWrites==e&&(r.trackWrites=null)}const me=function(e){e&&(this.nodeName=e)};me.prototype=Object.create(null);const ge=[new me];function be(e,t,r){if(0==e.length)return ge;let n=r?ge[0]:new me,i=[n];for(let o=0;o<e.length;o++){let s=e[o].type.attrs;if(s){s.nodeName&&i.push(n=new me(s.nodeName));for(let e in s){let o=s[e];null!=o&&(r&&1==i.length&&i.push(n=new me(t.isInline?"span":"div")),"class"==e?n.class=(n.class?n.class+" ":"")+o:"style"==e?n.style=(n.style?n.style+";":"")+o:"nodeName"!=e&&(n[e]=o))}}}return i}function ye(e,t,r,n){if(r==ge&&n==ge)return t;let i=t;for(let o=0;o<n.length;o++){let t=n[o],s=r[o];if(o){let r;s&&s.nodeName==t.nodeName&&i!=e&&(r=i.parentNode)&&r.nodeName.toLowerCase()==t.nodeName||(r=document.createElement(t.nodeName),r.pmIsDeco=!0,r.appendChild(i),s=ge[0]),i=r}Ae(i,s||ge[0],t)}return i}function Ae(e,t,r){for(let n in t)"class"==n||"style"==n||"nodeName"==n||n in r||e.removeAttribute(n);for(let n in r)"class"!=n&&"style"!=n&&"nodeName"!=n&&r[n]!=t[n]&&e.setAttribute(n,r[n]);
2if(t.class!=r.class){let n=t.class?t.class.split(" ").filter(Boolean):[],i=r.class?r.class.split(" ").filter(Boolean):[];for(let t=0;t<n.length;t++)-1==i.indexOf(n[t])&&e.classList.remove(n[t]);for(let t=0;t<i.length;t++)-1==n.indexOf(i[t])&&e.classList.add(i[t]);0==e.classList.length&&e.removeAttribute("class")}if(t.style!=r.style){if(t.style){let r,n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}r.style&&(e.style.cssText+=r.style)}}function ve(e,t,r){return ye(e,e,ge,be(t,r,1!=e.nodeType))}function we(e,t){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].type.eq(t[r].type))return!1;return!0}function xe(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class ke{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=function(e,t){let r=t,n=r.children.length,i=e.childCount,o=new Map,s=[];e:for(;i>0;){let a;for(;;)if(n){let e=r.children[n-1];if(!(e instanceof le)){a=e,n--;break}r=e,n=e.children.length}else{if(r==t)break e;n=r.parent.children.indexOf(r),r=r.parent}let l=a.node;if(l){if(l!=e.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r,n){let i=0,o=this.stack.length>>1,s=Math.min(o,e.length);for(;i<s&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&!1!==e[i].type.spec.spanning;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=0,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let i=-1,s=this.top.children.length;n<this.preMatch.index&&(s=Math.min(this.index+3,s));for(let t=this.index;t<s;t++){let r=this.top.children[t];if(r.matchesMark(e[o])&&!this.isLocked(r.dom)){i=t;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let n=le.create(this.top,e[o],t,r);this.top.children.splice(this.index,0,n),this.top=n,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,r,n){let i,o=-1;if(n>=this.preMatch.index&&(i=this.preMatch.matches[n-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,r))o=this.top.children.indexOf(i,this.index);else for(let s=this.index,a=Math.min(this.top.children.length,s+5);s<a;s++){let n=this.top.children[s];if(n.matchesNode(e,t,r)&&!this.preMatch.matched.has(n)){o=s;break}}return!(o<0)&&(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,t,r,n,i){let o=this.top.children[n];return 3==o.dirty&&o.dom==o.contentDOM&&(o.dirty=2),!!o.update(e,t,r,i)&&(this.destroyBetween(this.index,n),this.index++,!0)}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t)for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e;return-1}e=t}}updateNextNode(e,t,r,n,i,o){for(let s=this.index;s<this.top.children.length;s++){let a=this.top.children[s];if(a instanceof ce){let l=this.preMatch.matched.get(a);if(null!=l&&l!=i)return!1;let c,u=a.dom,d=this.isLocked(u)&&!(e.isText&&a.node&&a.node.isText&&a.nodeDOM.nodeValue==e.text&&3!=a.dirty&&we(t,a.outerDeco));if(!d&&a.update(e,t,r,n))return this.destroyBetween(this.index,s),a.dom!=u&&(this.changed=!0),this.index++,!0;if(!d&&(c=this.recreateWrapper(a,e,t,r,n,o)))return this.destroyBetween(this.index,s),this.top.children[this.index]=c,c.contentDOM&&(c.dirty=2,c.updateChildren(n,o+1),c.dirty=0),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,n,i,o){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!we(r,e.outerDeco)||!n.eq(e.innerDeco))return null;let s=ce.create(this.top,t,r,n,i,o);if(s.contentDOM){s.children=e.children,e.children=[];for(let e of s.children)e.parent=s}return e.destroy(),s}addNode(e,t,r,n,i){let o=ce.create(this.top,e,t,r,n,i);o.contentDOM&&o.updateChildren(n,i+1),this.top.children.splice(this.index++,0,o),this.changed=!0}placeWidget(e,t,r){let n=this.index<this.top.children.length?this.top.children[this.index]:null;if(!n||!n.matchesWidget(e)||e!=n.widget&&n.widget.type.toDOM.parentNode){let n=new se(this.top,e,t,r);this.top.children.splice(this.index++,0,n),this.changed=!0}else this.index++}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof le;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof de)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((M||E)&&e&&"false"==e.dom.contentEditable&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);"IMG"==e&&(r.className="ProseMirror-separator",r.alt=""),"BR"==e&&(r.className="ProseMirror-trailingBreak");let n=new he(this.top,[],r,null);t!=this.top?t.children.push(n):t.children.splice(this.index++,0,n),this.changed=!0}}
2isLocked(e){return this.lock&&(e==this.lock||1==e.nodeType&&e.contains(this.lock.parentNode))}}function Ce(e,t){return e.type.side-t.type.side}function _e(e,t,r,n,i){let o=[];for(let s=0,a=0;s<e.length;s++){let l=e[s],c=a,u=a+=l.size;c>=r||u<=t?o.push(l):(c<t&&o.push(l.slice(0,t-c,n)),i&&(o.push(i),i=void 0),u>r&&o.push(l.slice(r-c,l.size,n)))}return o}function Se(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=e.domSelectionRange(),i=e.state.doc;if(!r.focusNode)return null;let o=e.docView.nearestDesc(r.focusNode),a=o&&0==o.size,l=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(l<0)return null;let c,u,d=i.resolve(l);if(m(r)){for(c=l;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&n.nh.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,r){for(let n=0==t,i=t==f(e);n||i;){if(e==r)return!0;let t=s(e);if(!(e=e.parentNode))return!1;n=n&&0==t,i=i&&t==f(e)}}(r.focusNode,r.focusOffset,o.dom))){let e=o.posBefore;u=new n.nh(l==e?d:i.resolve(e))}}else{if(r instanceof e.dom.ownerDocument.defaultView.Selection&&r.rangeCount>1){let t=l,n=l;for(let i=0;i<r.rangeCount;i++){let o=r.getRangeAt(i);t=Math.min(t,e.docView.posFromDOM(o.startContainer,o.startOffset,1)),n=Math.max(n,e.docView.posFromDOM(o.endContainer,o.endOffset,-1))}if(t<0)return null;[c,l]=n==e.state.selection.anchor?[n,t]:[t,n],d=i.resolve(l)}else c=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(c<0)return null}let h=i.resolve(c);if(!u){u=Ie(e,h,d,"pointer"==t||e.state.selection.head<d.pos&&!a?1:-1)}return u}function Ee(e){return e.editable?e.hasFocus():Be(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Te(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.state.selection;if(Re(e,r),Ee(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&E){let t=e.domSelectionRange(),r=e.domObserver.currentSelection;if(t.anchorNode&&r.anchorNode&&u(t.anchorNode,t.anchorOffset,r.anchorNode,r.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection();if(!t)return;let r=e.cursorWrapper.dom,n="IMG"==r.nodeName;n?t.collapse(r.parentNode,s(r)+1):t.collapse(r,0);!n&&!e.state.selection.visible&&k&&C<=11&&(r.disabled=!0,r.disabled=!1)}(e);else{let i,o,{anchor:s,head:a}=r;!Me||r instanceof n.U3||(r.$from.parent.inlineContent||(i=Oe(e,r.from)),r.empty||r.$from.parent.inlineContent||(o=Oe(e,r.to))),e.docView.setSelection(s,a,e,t),Me&&(i&&Pe(i),o&&Pe(o)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let r=e.domSelectionRange(),n=r.anchorNode,i=r.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{r.anchorNode==n&&r.anchorOffset==i||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{Ee(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const Me=M||E&&T<63;function Oe(e,t){let{node:r,offset:n}=e.docView.domFromPos(t,0),i=n<r.childNodes.length?r.childNodes[n]:null,o=n?r.childNodes[n-1]:null;if(M&&i&&"false"==i.contentEditable)return Ne(i);if((!i||"false"==i.contentEditable)&&(!o||"false"==o.contentEditable)){if(i)return Ne(i);if(o)return Ne(o)}}function Ne(e){return e.contentEditable="true",M&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function Pe(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function Re(e,t){if(t instanceof n.nh){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(De(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else De(e)}function De(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Ie(e,t,r,i){return e.someProp("createSelectionBetween",n=>n(e,t,r))||n.U3.between(t,r,i)}function Le(e){return!(e.editable&&!e.hasFocus())&&Be(e)}function Be(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focu
2sNode.parentNode:t.focusNode))}catch(r){return!1}}function je(e,t){let{$anchor:r,$head:i}=e.selection,o=t>0?r.max(i):r.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return s&&n.LN.findFrom(s,t)}function Fe(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function ze(e,t,r){let i=e.state.selection;if(!(i instanceof n.U3)){if(i instanceof n.nh&&i.node.isInline)return Fe(e,new n.U3(t>0?i.$to:i.$from));{let r=je(e.state,t);return!!r&&Fe(e,r)}}if(r.indexOf("s")>-1){let{$head:r}=i,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=e.state.doc.resolve(r.pos+o.nodeSize*(t<0?-1:1));return Fe(e,new n.U3(i.$anchor,s))}if(!i.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let r=je(e.state,t);return!!(r&&r instanceof n.nh)&&Fe(e,r)}if(!(N&&r.indexOf("m")>-1)){let r,o=i.$head,s=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText)return!1;let a=t<0?o.pos-s.nodeSize:o.pos;return!!(s.isAtom||(r=e.docView.descAt(a))&&!r.contentDOM)&&(n.nh.isSelectable(s)?Fe(e,new n.nh(t<0?e.state.doc.resolve(o.pos-s.nodeSize):o)):!!D&&Fe(e,new n.U3(e.state.doc.resolve(t<0?a:a+s.nodeSize))))}}function Ue(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function He(e,t){let r=e.pmViewDesc;return r&&0==r.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function Ve(e,t){return t<0?function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let i,o,a=!1;_&&1==r.nodeType&&n<Ue(r)&&He(r.childNodes[n],-1)&&(a=!0);for(;;)if(n>0){if(1!=r.nodeType)break;{let e=r.childNodes[n-1];if(He(e,-1))i=r,o=--n;else{if(3!=e.nodeType)break;r=e,n=r.nodeValue.length}}}else{if(We(r))break;{let t=r.previousSibling;for(;t&&He(t,-1);)i=r.parentNode,o=s(t),t=t.previousSibling;if(t)r=t,n=Ue(r);else{if(r=r.parentNode,r==e.dom)break;n=0}}}a?Ke(e,r,n):i&&Ke(e,i,o)}(e):function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let i,o,a=Ue(r);for(;;)if(n<a){if(1!=r.nodeType)break;if(!He(r.childNodes[n],1))break;i=r,o=++n}else{if(We(r))break;{let t=r.nextSibling;for(;t&&He(t,1);)i=t.parentNode,o=s(t)+1,t=t.nextSibling;if(t)r=t,n=0,a=Ue(r);else{if(r=r.parentNode,r==e.dom)break;n=a=0}}}i&&Ke(e,i,o)}(e)}function We(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ke(e,t,r){if(3!=t.nodeType){let e,n;(n=function(e,t){for(;e&&t==e.childNodes.length&&!p(e);)t=s(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let r=e.childNodes[t];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,t=0}}(t,r))?(t=n,r=0):(e=function(e,t){for(;e&&!t&&!p(e);)t=s(e),e=e.parentNode;for(;e&&t;){let r=e.childNodes[t-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=(e=r).childNodes.length}}(t,r))&&(t=e,r=e.nodeValue.length)}let n=e.domSelection();if(!n)return;if(m(n)){let e=document.createRange();e.setEnd(t,r),e.setStart(t,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(t,r);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&Te(e)},50)}function qe(e,t){let r=e.state.doc.resolve(t);if(!E&&!P&&r.parent.inlineContent){let n=e.coordsAtPos(t);if(t>r.start()){let r=e.coordsAtPos(t-1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(t<r.end()){let r=e.coordsAtPos(t+1),i=(r.top+r.bottom)/2;if(i>n.top&&i<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function Ge(e,t,r){let i=e.state.selection;if(i instanceof n.U3&&!i.empty||r.indexOf("s")>-1)return!1;if(N&&r.indexOf("m")>-1)return!1;let{$from:o,$to:s}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=je(e.state,t);if(r&&r instanceof n.nh)return Fe(e,r)}if(!o.parent.inlineContent){let r=t<0?o:s,a=i instanceof n.i5?n.LN.near(r,t):n.LN.findFrom(r,t);return!!a&&Fe(e,a)}return!1}function Xe(e,t){if(!(e.state.selection instanceof n.U3))return!0;let{$head:r,$anchor:i,empty:o}=e.state.selection;if(!r.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(s&&!s.isText){let n=e.state.tr;return t<0?n.delete(r.pos-s.nodeSize,r.pos):n.delete(r.pos,r.pos+s.nodeSize),e.dispatch(n),!0}return!1}function Ye(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function $e(e,t){let r=t.keyCode,n=function(e){let t="";
2return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==r||N&&72==r&&"c"==n)return Xe(e,-1)||Ve(e,-1);if(46==r&&!t.shiftKey||N&&68==r&&"c"==n)return Xe(e,1)||Ve(e,1);if(13==r||27==r)return!0;if(37==r||N&&66==r&&"c"==n){let t=37==r?"ltr"==qe(e,e.state.selection.from)?-1:1:-1;return ze(e,t,n)||Ve(e,t)}if(39==r||N&&70==r&&"c"==n){let t=39==r?"ltr"==qe(e,e.state.selection.from)?1:-1:1;return ze(e,t,n)||Ve(e,t)}return 38==r||N&&80==r&&"c"==n?Ge(e,-1,n)||Ve(e,-1):40==r||N&&78==r&&"c"==n?function(e){if(!M||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&1==t.nodeType&&0==r&&t.firstChild&&"false"==t.firstChild.contentEditable){let r=t.firstChild;Ye(e,r,"true"),setTimeout(()=>Ye(e,r,"false"),20)}return!1}(e)||Ge(e,1,n)||Ve(e,1):n==(N?"m":"c")&&(66==r||73==r||89==r||90==r)}function Qe(e,t){e.someProp("transformCopied",r=>{t=r(t,e)});let r=[],{content:n,openStart:o,openEnd:s}=t;for(;o>1&&s>1&&1==n.childCount&&1==n.firstChild.childCount;){o--,s--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let a=e.someProp("clipboardSerializer")||i.ZF.fromSchema(e.state.schema),l=at(),c=l.createElement("div");c.appendChild(a.serializeFragment(n,{document:l}));let u,d=c.firstChild,h=0;for(;d&&1==d.nodeType&&(u=ot[d.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=l.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),h++}d=c.firstChild}return d&&1==d.nodeType&&d.setAttribute("data-pm-slice",`${o} ${s}${h?` -${h}`:""} ${JSON.stringify(r)}`),{dom:c,text:e.someProp("clipboardTextSerializer",r=>r(t,e))||t.content.textBetween(0,t.content.size,"\n\n"),slice:t}}function Je(e,t,r,n,o){let s,a,l=o.parent.type.spec.code;if(!r&&!t)return null;let c=!!t&&(n||l||!r);if(c){if(e.someProp("transformPastedText",r=>{t=r(t,l||n,e)}),l)return a=new i.Ji(i.FK.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0),e.someProp("transformPasted",t=>{a=t(a,e,!0)}),a;let r=e.someProp("clipboardTextParser",r=>r(t,o,n,e));if(r)a=r;else{let r=o.marks(),{schema:n}=e.state,a=i.ZF.fromSchema(n);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=s.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(n.text(e,r)))})}}else e.someProp("transformPastedHTML",t=>{r=t(r,e)}),s=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let r,n=at().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);(r=i&&ot[i[1].toLowerCase()])&&(e=r.map(e=>"<"+e+">").join("")+e+r.map(e=>"</"+e+">").reverse().join(""));if(n.innerHTML=function(e){let t=window.trustedTypes;if(!t)return e;lt||(lt=t.defaultPolicy||t.createPolicy("ProseMirrorClipboard",{createHTML:e=>e}));return lt.createHTML(e)}(e),r)for(let o=0;o<r.length;o++)n=n.querySelector(r[o])||n;return n}(r),D&&function(e){let t=e.querySelectorAll(E?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<t.length;r++){let n=t[r];1==n.childNodes.length&&"\xa0"==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(s);let u=s&&s.querySelector("[data-pm-slice]"),d=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let i=+d[3];i>0;i--){let e=s.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;s=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||i.S4.fromSchema(e.state.schema);a=t.parseSlice(s,{preserveWhitespace:!(!c&&!d),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Ze.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(d)a=function(e,t){if(!e.size)return e;let r,n=e.content.firstChild.type.schema;try{r=JSON.parse(t)}catch(l){return e}let{content:o,openStart:s,openEnd:a}=e;for(let c=r.length-2;c>=0;c-=2){let e=n.nodes[r[c]];if(!e||e.hasRequiredAttrs())break;o=i.FK.from(e.create(r[c+1],o)),s++,a++}return new i.Ji(o,s,a)}(it(a,+d[1],+d[2]),d[4]);else if(a=i.Ji.maxOpen(function(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let n,o=t.node(r).contentMatchAt(t.index(r)),s=[];
2if(e.forEach(e=>{if(!s)return;let t,r=o.findWrapping(e.type);if(!r)return s=null;if(t=s.length&&n.length&&tt(r,n,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=rt(s[s.length-1],n.length));let t=et(e,r);s.push(t),o=o.matchType(t.type),n=r}}),s)return i.FK.from(s)}return e}(a.content,o),!0),a.openStart||a.openEnd){let e=0,t=0;for(let r=a.content.firstChild;e<a.openStart&&!r.type.spec.isolating;e++,r=r.firstChild);for(let r=a.content.lastChild;t<a.openEnd&&!r.type.spec.isolating;t++,r=r.lastChild);a=it(a,e,t)}return e.someProp("transformPasted",t=>{a=t(a,e,c)}),a}const Ze=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function et(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(let n=t.length-1;n>=r;n--)e=t[n].create(null,i.FK.from(e));return e}function tt(e,t,r,n,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let s=tt(e,t,r,n.lastChild,o+1);if(s)return n.copy(n.content.replaceChild(n.childCount-1,s));if(n.contentMatchAt(n.childCount).matchType(o==e.length-1?r.type:e[o+1]))return n.copy(n.content.append(i.FK.from(et(r,e,o+1))))}}function rt(e,t){if(0==t)return e;let r=e.content.replaceChild(e.childCount-1,rt(e.lastChild,t-1)),n=e.contentMatchAt(e.childCount).fillBefore(i.FK.empty,!0);return e.copy(r.append(n))}function nt(e,t,r,n,o,s){let a=t<0?e.firstChild:e.lastChild,l=a.content;return e.childCount>1&&(s=0),o<n-1&&(l=nt(l,t,r,n,o+1,s)),o>=r&&(l=t<0?a.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(i.FK.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(l))}function it(e,t,r){return t<e.openStart&&(e=new i.Ji(nt(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),r<e.openEnd&&(e=new i.Ji(nt(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}const ot={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let st=null;function at(){return st||(st=document.implementation.createHTMLDocument("title"))}let lt=null;const ct={},ut={},dt={touchstart:!0,touchmove:!0};class ht{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function ft(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function pt(e){e.someProp("handleDOMEvents",t=>{for(let r in t)e.input.eventHandlers[r]||e.dom.addEventListener(r,e.input.eventHandlers[r]=t=>mt(e,t))})}function mt(e,t){return e.someProp("handleDOMEvents",r=>{let n=r[t.type];return!!n&&(n(e,t)||t.defaultPrevented)})}function gt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let r=t.target;r!=e.dom;r=r.parentNode)if(!r||11==r.nodeType||r.pmViewDesc&&r.pmViewDesc.stopEvent(t))return!1;return!0}function bt(e){return{left:e.clientX,top:e.clientY}}function yt(e,t,r,n,i){if(-1==n)return!1;let o=e.state.doc.resolve(n);for(let s=o.depth+1;s>0;s--)if(e.someProp(t,t=>s>o.depth?t(e,r,o.nodeAfter,o.before(s),i,!0):t(e,r,o.node(s),o.before(s),i,!1)))return!0;return!1}function At(e,t,r){if(e.focused||e.focus(),e.state.selection.eq(t))return;let n=e.state.tr.setSelection(t);"pointer"==r&&n.setMeta("pointer",!0),e.dispatch(n)}function vt(e,t,r,i,o){return yt(e,"handleClickOn",t,r,i)||e.someProp("handleClick",r=>r(e,t,i))||(o?function(e,t){if(-1==t)return!1;let r,i,o=e.state.selection;o instanceof n.nh&&(r=o.node);let s=e.state.doc.resolve(t);for(let a=s.depth+1;a>0;a--){let e=a>s.depth?s.nodeAfter:s.node(a);if(n.nh.isSelectable(e)){i=r&&o.$from.depth>0&&a>=o.$from.depth&&s.before(o.$from.depth+1)==o.$from.pos?s.before(o.$from.depth):s.before(a);break}}
2return null!=i&&(At(e,n.nh.create(e.state.doc,i),"pointer"),!0)}(e,r):function(e,t){if(-1==t)return!1;let r=e.state.doc.resolve(t),i=r.nodeAfter;return!!(i&&i.isAtom&&n.nh.isSelectable(i))&&(At(e,new n.nh(r),"pointer"),!0)}(e,r))}function wt(e,t,r,n){return yt(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",r=>r(e,t,n))}function xt(e,t,r,i){return yt(e,"handleTripleClickOn",t,r,i)||e.someProp("handleTripleClick",r=>r(e,t,i))||function(e,t,r){if(0!=r.button)return!1;let i=e.state.doc;if(-1==t)return!!i.inlineContent&&(At(e,n.U3.create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(t);for(let s=o.depth+1;s>0;s--){let t=s>o.depth?o.nodeAfter:o.node(s),r=o.before(s);if(t.inlineContent)At(e,n.U3.create(i,r+1,r+1+t.content.size),"pointer");else{if(!n.nh.isSelectable(t))continue;At(e,n.nh.create(i,r),"pointer")}return!0}}(e,r,i)}function kt(e){return Nt(e)}ut.keydown=(e,t)=>{let r=t;if(e.input.shiftKey=16==r.keyCode||r.shiftKey,!St(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!R||!E||13!=r.keyCode))if(229!=r.keyCode&&e.domObserver.forceFlush(),!O||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)e.someProp("handleKeyDown",t=>t(e,r))||$e(e,r)?r.preventDefault():ft(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},ut.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},ut.keypress=(e,t)=>{let r=t;if(St(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||N&&r.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,r)))return void r.preventDefault();let i=e.state.selection;if(!(i instanceof n.U3)||!i.$from.sameParent(i.$to)){let t=String.fromCharCode(r.charCode),n=()=>e.state.tr.insertText(t).scrollIntoView();/[\r\n]/.test(t)||e.someProp("handleTextInput",r=>r(e,i.$from.pos,i.$to.pos,t,n))||e.dispatch(n()),r.preventDefault()}};const Ct=N?"metaKey":"ctrlKey";ct.mousedown=(e,t)=>{let r=t;e.input.shiftKey=r.shiftKey;let n=kt(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&function(e,t){let r=t.x-e.clientX,n=t.y-e.clientY;return r*r+n*n<100}(r,e.input.lastClick)&&!r[Ct]&&e.input.lastClick.button==r.button&&("singleClick"==e.input.lastClick.type?o="doubleClick":"doubleClick"==e.input.lastClick.type&&(o="tripleClick")),e.input.lastClick={time:i,x:r.clientX,y:r.clientY,type:o,button:r.button};let s=e.posAtCoords(bt(r));s&&("singleClick"==o?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new _t(e,s,r,!!n)):("doubleClick"==o?wt:xt)(e,s.pos,s.inside,r)?r.preventDefault():ft(e,"pointer"))};
2class _t{constructor(e,t,r,i){let o,s;if(this.view=e,this.pos=t,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Ct],this.allowDefault=r.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),s=t.inside;else{let r=e.state.doc.resolve(t.pos);o=r.parent,s=r.depth?r.before():0}const a=i?null:r.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&1==l.nodeDOM.nodeType?l.nodeDOM:null;let{selection:c}=e.state;(0==r.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof n.nh&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!_||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),ft(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Te(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(bt(e))),this.updateAllowDefault(e),this.allowDefault||!t?ft(this.view,"pointer"):vt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||M&&this.mightDrag&&!this.mightDrag.node.isAtom||E&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(At(this.view,n.LN.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):ft(this.view,"pointer")}move(e){this.updateAllowDefault(e),ft(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function St(e,t){return!!e.composing||!!(M&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}ct.touchstart=e=>{e.input.lastTouch=Date.now(),kt(e),ft(e,"pointer")},ct.touchmove=e=>{e.input.lastTouch=Date.now(),ft(e,"pointer")},ct.contextmenu=e=>kt(e);const Et=R?5e3:-1;function Tt(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Nt(e),t))}function Mt(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Ot(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let r=function(e,t){for(;;){if(3==e.nodeType&&t)return e;if(1==e.nodeType&&t>0){if("false"==e.contentEditable)return null;t=f(e=e.childNodes[t-1])}else{if(!e.parentNode||p(e))return null;t=s(e),e=e.parentNode}}}(t.focusNode,t.focusOffset),n=function(e,t){for(;;){if(3==e.nodeType&&t<e.nodeValue.length)return e;if(1==e.nodeType&&t<e.childNodes.length){if("false"==e.contentEditable)return null;e=e.childNodes[t],t=0}else{if(!e.parentNode||p(e))return null;t=s(e)+1,e=e.parentNode}}}(t.focusNode,t.focusOffset);if(r&&n&&r!=n){let t=n.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(r==i||n==i)return i;if(!t||!t.isText(n.nodeValue))return n;if(e.input.compositionNode==n){let e=r.pmViewDesc;if(e&&e.isText(r.nodeValue))return n}}return r||n}function Nt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(R&&e.domObserver.flushingSoon>
2=0)){if(e.domObserver.forceFlush(),Mt(e),t||e.docView&&e.docView.dirty){let r=Se(e),n=e.state.selection;return r&&!r.eq(n)?e.dispatch(e.state.tr.setSelection(r)):!e.markCursor&&!t||n.$from.node(n.$from.sharedDepth(n.to)).inlineContent?e.updateState(e.state):e.dispatch(e.state.tr.deleteSelection()),!0}return!1}}ut.compositionstart=ut.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$to;if(t.selection instanceof n.U3&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)||E&&P&&function(e){let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(!t||1!=t.nodeType||r>=t.childNodes.length)return!1;let n=t.childNodes[r];return 1==n.nodeType&&"false"==n.contentEditable}(e)))e.markCursor=e.state.storedMarks||r.marks(),Nt(e,!0),e.markCursor=null;else if(Nt(e,!t.selection.empty),_&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let t=e.domSelectionRange();for(let r=t.focusNode,n=t.focusOffset;r&&1==r.nodeType&&0!=n;){let t=n<0?r.lastChild:r.childNodes[n-1];if(!t)break;if(3==t.nodeType){let r=e.domSelection();r&&r.collapse(t,t.nodeValue.length);break}r=t,n=-1}}e.input.composing=!0}Tt(e,Et)},ut.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Tt(e,20))};const Pt=k&&C<15||O&&I<604;function Rt(e,t,r,n,o){let s=Je(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,o,s||i.Ji.empty)))return!0;if(!s)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(s),l=a?e.state.tr.replaceSelectionWith(a,n):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function Dt(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}ct.copy=ut.cut=(e,t)=>{let r=t,n=e.state.selection,i="cut"==r.type;if(n.empty)return;let o=Pt?null:r.clipboardData,s=n.content(),{dom:a,text:l}=Qe(e,s);o?(r.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(i),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()},50)}(e,a),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},ut.paste=(e,t)=>{let r=t;if(e.composing&&!R)return;let n=Pt?null:r.clipboardData,i=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&Rt(e,Dt(n),n.getData("text/html"),i,r)?r.preventDefault():function(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let i=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout(()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?Rt(e,n.value,null,i,t):Rt(e,n.textContent,n.innerHTML,i,t)},50)}(e,r)};class It{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const Lt=N?"altKey":"ctrlKey";function Bt(e,t){let r=e.someProp("dragCopies",e=>!e(t));return null!=r?r:!t[Lt]}ct.dragstart=(e,t)=>{let r=t,i=e.input.mouseDown;if(i&&i.done(),!r.dataTransfer)return;let o,s=e.state.selection,a=s.empty?null:e.posAtCoords(bt(r));if(a&&a.pos>=s.from&&a.pos<=(s instanceof n.nh?s.to-1:s.to));else if(i&&i.mightDrag)o=n.nh.create(e.state.doc,i.mightDrag.pos);else if(r.target&&1==r.target.nodeType){let t=e.docView.nearestDesc(r.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=n.nh.create(e.state.doc,t.posBefore))}
2let l=(o||e.state.selection).content(),{dom:c,text:u,slice:d}=Qe(e,l);(!r.dataTransfer.files.length||!E||T>120)&&r.dataTransfer.clearData(),r.dataTransfer.setData(Pt?"Text":"text/html",c.innerHTML),r.dataTransfer.effectAllowed="copyMove",Pt||r.dataTransfer.setData("text/plain",u),e.dragging=new It(d,Bt(e,r),o)},ct.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},ut.dragover=ut.dragenter=(e,t)=>t.preventDefault(),ut.drop=(e,t)=>{try{!function(e,t,r){if(!t.dataTransfer)return;let s=e.posAtCoords(bt(t));if(!s)return;let a=e.state.doc.resolve(s.pos),l=r&&r.slice;l?e.someProp("transformPasted",t=>{l=t(l,e,!1)}):l=Je(e,Dt(t.dataTransfer),Pt?null:t.dataTransfer.getData("text/html"),!1,a);let c=!(!r||!Bt(e,t));if(e.someProp("handleDrop",r=>r(e,t,l||i.Ji.empty,c)))return void t.preventDefault();if(!l)return;t.preventDefault();let u=l?(0,o.Um)(e.state.doc,a.pos,l):a.pos;null==u&&(u=a.pos);let d=e.state.tr;if(c){let{node:e}=r;e?e.replace(d):d.deleteSelection()}let h=d.mapping.map(u),f=0==l.openStart&&0==l.openEnd&&1==l.content.childCount,p=d.doc;f?d.replaceRangeWith(h,h,l.content.firstChild):d.replaceRange(h,h,l);if(d.doc.eq(p))return;let m=d.doc.resolve(h);if(f&&n.nh.isSelectable(l.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(l.content.firstChild))d.setSelection(new n.nh(m));else{let t=d.mapping.map(u);d.mapping.maps[d.mapping.maps.length-1].forEach((e,r,n,i)=>t=i),d.setSelection(Ie(e,m,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))}(e,t,e.dragging)}finally{e.dragging=null}},ct.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Te(e)},20))},ct.blur=(e,t)=>{let r=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},ct.beforeinput=(e,t)=>{if(E&&R&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let xr in ut)ct[xr]=ut[xr];function jt(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class Ft{constructor(e,t){this.toDOM=e,this.spec=t||Wt,this.side=this.spec.side||0}map(e,t,r,n){let{pos:i,deleted:o}=e.mapResult(t.from+n,this.side<0?-1:1);return o?null:new Ht(i-r,i-r,this)}valid(){return!0}eq(e){return this==e||e instanceof Ft&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&jt(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class zt{constructor(e,t){this.attrs=e,this.spec=t||Wt}map(e,t,r,n){let i=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-r,o=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-r;return i>=o?null:new Ht(i,o,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof zt&&jt(this.attrs,e.attrs)&&jt(this.spec,e.spec)}static is(e){return e.type instanceof zt}destroy(){}}class Ut{constructor(e,t){this.attrs=e,this.spec=t||Wt}map(e,t,r,n){let i=e.mapResult(t.from+n,1);if(i.deleted)return null;let o=e.mapResult(t.to+n,-1);return o.deleted||o.pos<=i.pos?null:new Ht(i.pos-r,o.pos-r,this)}valid(e,t){let r,{index:n,offset:i}=e.content.findIndex(t.from);return i==t.from&&!(r=e.child(n)).isText&&i+r.nodeSize==t.to}eq(e){return this==e||e instanceof Ut&&jt(this.attrs,e.attrs)&&jt(this.spec,e.spec)}destroy(){}}class Ht{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new Ht(e,t,this.type)}eq(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new Ht(e,e,new Ft(t,r))}static inline(e,t,r,n){return new Ht(e,t,new zt(r,n))}
vendor: 5,408 bytes, line 2
2static node(e,t,r,n){return new Ht(e,t,new Ut(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof zt}get widget(){return this.type instanceof Ft}}const Vt=[],Wt={};class Kt{constructor(e,t){this.local=e.length?e:Vt,this.children=t.length?t:Vt}static create(e,t){return t.length?Qt(t,e,0,Wt):qt}find(e,t,r){let n=[];return this.findInner(null==e?0:e,null==t?1e9:t,n,0,r),n}findInner(e,t,r,n,i){for(let o=0;o<this.local.length;o++){let s=this.local[o];s.from<=t&&s.to>=e&&(!i||i(s.spec))&&r.push(s.copy(s.from+n,s.to+n))}for(let o=0;o<this.children.length;o+=3)if(this.children[o]<t&&this.children[o+1]>e){let s=this.children[o]+1;this.children[o+2].findInner(e-s,t-s,r,n+s,i)}}map(e,t,r){return this==qt||0==e.maps.length?this:this.mapInner(e,t,0,0,r||Wt)}mapInner(e,t,r,n,i){let o;for(let s=0;s<this.local.length;s++){let a=this.local[s].map(e,r,n);a&&a.type.valid(t,a)?(o||(o=[])).push(a):i.onRemove&&i.onRemove(this.local[s].spec)}return this.children.length?function(e,t,r,n,i,o,s){let a=e.slice();for(let c=0,u=o;c<r.maps.length;c++){let e=0;r.maps[c].forEach((t,r,n,i)=>{let o=i-n-(r-t);for(let s=0;s<a.length;s+=3){let n=a[s+1];if(n<0||t>n+u-e)continue;let i=a[s]+u-e;r>=i?a[s+1]=t<=i?-2:-1:t>=u&&o&&(a[s]+=o,a[s+1]+=o)}e+=o}),u=r.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(-2==a[c+1]){l=!0,a[c+1]=-1;continue}let t=r.map(e[c]+o),u=t-i;if(u<0||u>=n.content.size){l=!0;continue}let d=r.map(e[c+1]+o,-1)-i,{index:h,offset:f}=n.content.findIndex(u),p=n.maybeChild(h);if(p&&f==u&&f+p.nodeSize==d){let n=a[c+2].mapInner(r,p,t+1,e[c]+o+1,s);n!=qt?(a[c]=u,a[c+1]=d,a[c+2]=n):(a[c+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,r,n,i,o,s){function a(e,t){for(let o=0;o<e.local.length;o++){let a=e.local[o].map(n,i,t);a?r.push(a):s.onRemove&&s.onRemove(e.local[o].spec)}for(let r=0;r<e.children.length;r+=3)a(e.children[r+2],e.children[r]+t+1)}for(let l=0;l<e.length;l+=3)-1==e[l+1]&&a(e[l+2],t[l]+o+1);return r}(a,e,t,r,i,o,s),c=Qt(l,n,0,s);t=c.local;for(let e=0;e<a.length;e+=3)a[e+1]<0&&(a.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let r=c.children[e];for(;t<a.length&&a[t]<r;)t+=3;a.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Kt(t.sort(Jt),a)}(this.children,o||[],e,t,r,n,i):o?new Kt(o.sort(Jt),Vt):qt}add(e,t){return t.length?this==qt?Kt.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let n,i=0;e.forEach((e,o)=>{let s,a=o+r;if(s=Yt(t,e,a)){for(n||(n=this.children.slice());i<n.length&&n[i]<o;)i+=3;n[i]==o?n[i+2]=n[i+2].addInner(e,s,a+1):n.splice(i,0,o,o+e.nodeSize,Qt(s,e,a+1,Wt)),i+=3}});let o=Xt(i?$t(t):t,-r);for(let s=0;s<o.length;s++)o[s].type.valid(e,o[s])||o.splice(s--,1);return new Kt(o.length?this.local.concat(o).sort(Jt):this.local,n||this.children)}remove(e){return 0==e.length||this==qt?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,n=this.local;for(let i=0;i<r.length;i+=3){let n,o=r[i]+t,s=r[i+1]+t;for(let t,r=0;r<e.length;r++)(t=e[r])&&t.from>o&&t.to<s&&(e[r]=null,(n||(n=[])).push(t));if(!n)continue;r==this.children&&(r=this.children.slice());let a=r[i+2].removeInner(n,o+1);a!=qt?r[i+2]=a:(r.splice(i,3),i-=3)}if(n.length)for(let i,o=0;o<e.length;o++)if(i=e[o])for(let e=0;e<n.length;e++)n[e].eq(i,t)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1));return r==this.children&&n==this.local?this:n.length||r.length?new Kt(n,r):qt}forChild(e,t){if(this==qt)return this;if(t.isLeaf)return Kt.empty;let r,n;for(let s=0;s<this.children.length;s+=3)if(this.children[s]>=e){this.children[s]==e&&(r=this.children[s+2]);break}let i=e+1,o=i+t.content.size;for(let s=0;s<this.local.length;s++){let e=this.local[s];if(e.from<o&&e.to>i&&e.type instanceof zt){let t=Math.max(i,e.from)-i,r=Math.min(o,e.to)-i;t<r&&(n||(n=[])).push(e.copy(t,r))}}if(n){let e=new Kt(n.sort(Jt),Vt);return r?new Gt([e,r]):e}return r||qt}eq(e){if(this==e)return!0;if(!(e instanceof Kt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Zt(this.localsInner(e))}localsInner(e){if(this==qt)return Vt;if(e.inlineContent||!this.local.some(zt.is))return this.local;let t=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof zt||t.push(this.local[r]);return t}forEachSet(e){e(this)}}Kt.empty=new Kt([],[]),Kt.removeOverlap=Zt;const qt=Kt.empty;class Gt{constructor(e){this.members=e}map(e,t){const r=this.members.map(r=>r.map(e,t,Wt));return Gt.from(r)}forChild(e,t){if(t.isLeaf)return Kt.empty;let r=[];for(let n=0;n<this.members.length;n++){let i=this.members[n].forChild(e,t);i!=qt&&(i instanceof Gt?r=r.concat(i.members):r.push(i))}return Gt.from(r)}eq(e){if(!(e instanceof Gt)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let n=0;n<this.members.length;n++){let i=this.members[n].localsInner(e);if(i.length)if(t){r&&(t=t.slice(),r=!1);for(let e=0;e<i.length;e++)t.push(i[e])}else t=i}return t?Zt(r?t:t.sort(Jt)):Vt}static from(e){switch(e.length){case 0:return qt;case 1:return e[0];default:return new Gt(e.every(e=>e instanceof Kt)?e:e.reduce((e,t)=>
2e.concat(t instanceof Kt?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function Xt(e,t){if(!t||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let i=e[n];r.push(new Ht(i.from+t,i.to+t,i.type))}return r}function Yt(e,t,r){if(t.isLeaf)return null;let n=r+t.nodeSize,i=null;for(let o,s=0;s<e.length;s++)(o=e[s])&&o.from>r&&o.to<n&&((i||(i=[])).push(o),e[s]=null);return i}function $t(e){let t=[];for(let r=0;r<e.length;r++)null!=e[r]&&t.push(e[r]);return t}function Qt(e,t,r,n){let i=[],o=!1;t.forEach((t,s)=>{let a=Yt(e,t,s+r);if(a){o=!0;let e=Qt(a,t,r+s+1,n);e!=qt&&i.push(s,s+t.nodeSize,e)}});let s=Xt(o?$t(e):e,-r).sort(Jt);for(let a=0;a<s.length;a++)s[a].type.valid(t,s[a])||(n.onRemove&&n.onRemove(s[a].spec),s.splice(a--,1));return s.length||i.length?new Kt(s,i):qt}function Jt(e,t){return e.from-t.from||e.to-t.to}function Zt(e){let t=e;for(let r=0;r<t.length-1;r++){let n=t[r];if(n.from!=n.to)for(let i=r+1;i<t.length;i++){let o=t[i];if(o.from!=n.from){o.from<n.to&&(t==e&&(t=e.slice()),t[r]=n.copy(n.from,o.from),er(t,i,n.copy(o.from,n.to)));break}o.to!=n.to&&(t==e&&(t=e.slice()),t[i]=o.copy(o.from,n.to),er(t,i+1,o.copy(n.to,o.to)))}}return t}function er(e,t,r){for(;t<e.length&&Jt(r,e[t])>0;)t++;e.splice(t,0,r)}function tr(e){let t=[];return e.someProp("decorations",r=>{let n=r(e.state);n&&n!=qt&&t.push(n)}),e.cursorWrapper&&t.push(Kt.create(e.state.doc,[e.cursorWrapper.deco])),Gt.from(t)}const rr={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},nr=k&&C<=11;class ir{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class or{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ir,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);k&&C<=11&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():M&&e.composing&&t.some(e=>"childList"==e.type&&"TR"==e.target.nodeName)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),nr&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,rr)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Le(this.view)){if(this.suppressingSelectionUpdates)return Te(this.view);if(k&&C<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,r=new Set;for(let i=e.focusNode;i;i=a(i))r.add(i);for(let i=e.anchorNode;i;i=a(i))if(r.has(i)){t=i;break}let n=t&&this.view.docView.nearestDesc(t);return n&&n.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Le(e)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];
2if(e.editable)for(let n=0;n<t.length;n++){let e=this.registerMutation(t[n],l);e&&(o=o<0?e.from:Math.min(e.from,o),s=s<0?e.to:Math.max(e.to,s),e.typeOver&&(a=!0))}if(!l.some(e=>"BR"==e.nodeName)||8!=e.input.lastKeyCode&&46!=e.input.lastKeyCode){if(_&&l.length){let t=l.filter(e=>"BR"==e.nodeName);if(2==t.length){let[e,r]=t;e.parentNode&&e.parentNode.parentNode==r.parentNode?r.remove():e.remove()}else{let{focusNode:r}=this.currentSelection;for(let n of t){let t=n.parentNode;!t||"LI"!=t.nodeName||r&&cr(e,r)==t||n.remove()}}}}else for(let n of l)if("BR"==n.nodeName&&n.parentNode){let e=n.nextSibling;e&&1==e.nodeType&&"false"==e.contentEditable&&n.parentNode.removeChild(n)}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&m(r)&&(c=Se(e))&&c.eq(n.LN.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Te(e),this.currentSelection.set(r),e.scrollToSelection()):(o>-1||i)&&(o>-1&&(e.docView.markDirty(o,s),function(e){if(sr.has(e))return;if(sr.set(e,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(e.dom).whiteSpace)){if(e.requiresGeckoHackNode=_,ar)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),ar=!0}}(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,function(e,t){var r;let{focusNode:n,focusOffset:i}=e.domSelectionRange();for(let o of t)if("TR"==(null===(r=o.parentNode)||void 0===r?void 0:r.nodeName)){let t=o.nextSibling;for(;t&&"TD"!=t.nodeName&&"TH"!=t.nodeName;)t=t.nextSibling;if(t){let r=t;for(;;){let e=r.firstChild;if(!e||1!=e.nodeType||"false"==e.contentEditable||/^(BR|IMG)$/.test(e.nodeName))break;r=e}r.insertBefore(o,r.firstChild),n==o&&e.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}(e,l)),this.handleDOMChange(o,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Te(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(r==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!r||r.ignoreMutation(e))return null;if("childList"==e.type){for(let r=0;r<e.addedNodes.length;r++){let n=e.addedNodes[r];t.push(n),3==n.nodeType&&(this.lastChangedTextNode=n)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let n=e.previousSibling,i=e.nextSibling;if(k&&C<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:r,nextSibling:o}=e.addedNodes[t];(!r||Array.prototype.indexOf.call(e.addedNodes,r)<0)&&(n=r),(!o||Array.prototype.indexOf.call(e.addedNodes,o)<0)&&(i=o)}let o=n&&n.parentNode==e.target?s(n)+1:0,a=r.localPosFromDOM(e.target,o,-1),l=i&&i.parentNode==e.target?s(i):e.target.childNodes.length;return{from:a,to:r.localPosFromDOM(e.target,l,1)}}return"attributes"==e.type?{from:r.posAtStart-r.border,to:r.posAt
2End+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let sr=new WeakMap,ar=!1;function lr(e,t){let r=t.startContainer,n=t.startOffset,i=t.endContainer,o=t.endOffset,s=e.domAtPos(e.state.selection.anchor);return u(s.node,s.offset,i,o)&&([r,n,i,o]=[i,o,r,n]),{anchorNode:r,anchorOffset:n,focusNode:i,focusOffset:o}}function cr(e,t){for(let r=t.parentNode;r&&r!=e.dom;r=r.parentNode){let t=e.docView.nearestDesc(r,!0);if(t&&t.node.isBlock)return r}return null}function ur(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(M&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||M&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const dr=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function hr(e,t,r,o,s){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,r=Se(e,t);if(r&&!e.state.selection.eq(r)){if(E&&R&&13===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))))return;let n=e.state.tr.setSelection(r);"pointer"==t?n.setMeta("pointer",!0):"key"==t&&n.scrollIntoView(),a&&n.setMeta("composition",a),e.dispatch(n)}return}let l=e.state.doc.resolve(t),c=l.sharedDepth(r);t=l.before(c+1),r=e.state.doc.resolve(r).after(c+1);let u,d,h=e.state.selection,f=function(e,t,r){let n,{node:o,fromOffset:s,toOffset:a,from:l,to:c}=e.docView.parseRange(t,r),u=e.domSelectionRange(),d=u.anchorNode;if(d&&e.dom.contains(1==d.nodeType?d:d.parentNode)&&(n=[{node:d,offset:u.anchorOffset}
2],m(u)||n.push({node:u.focusNode,offset:u.focusOffset})),E&&8===e.input.lastKeyCode)for(let i=a;i>s;i--){let e=o.childNodes[i-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){a=i;break}if(!t||t.size)break}let h=e.state.doc,f=e.someProp("domParser")||i.S4.fromSchema(e.state.schema),p=h.resolve(l),g=null,b=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:s,to:a,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:n,ruleFromNode:ur,context:p});if(n&&null!=n[0].pos){let e=n[0].pos,t=n[1]&&n[1].pos;null==t&&(t=e),g={anchor:e+l,head:t+l}}return{doc:b,sel:g,from:l,to:c}}(e,t,r),p=e.state.doc,b=p.slice(f.from,f.to);8===e.input.lastKeyCode&&Date.now()-100<e.input.lastKeyCodeTime?(u=e.state.selection.to,d="end"):(u=e.state.selection.from,d="start"),e.input.lastKeyCode=null;let y=function(e,t,r,n,i){let o=e.findDiffStart(t,r);if(null==o)return null;let{a:s,b:a}=e.findDiffEnd(t,r+e.size,r+t.size);if("end"==i){n-=s+Math.max(0,o-Math.min(s,a))-o}if(s<o&&e.size<t.size){let e=n<=o&&n>=s?o-n:0;o-=e,o&&o<t.size&&mr(t.textBetween(o-1,o+1))&&(o+=e?1:-1),a=o+(a-s),s=o}else if(a<o){let t=n<=o&&n>=a?o-n:0;o-=t,o&&o<e.size&&mr(e.textBetween(o-1,o+1))&&(o+=t?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}(b.content,f.doc.content,f.from,u,d);if(y&&e.input.domChangeCount++,(O&&e.input.lastIOSEnter>Date.now()-225||R)&&s.some(e=>1==e.nodeType&&!dr.test(e.nodeName))&&(!y||y.endA>=y.endB)&&e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!y){if(!(o&&h instanceof n.U3&&!h.empty&&h.$head.sameParent(h.$anchor))||e.composing||f.sel&&f.sel.anchor!=f.sel.head){if(f.sel){let t=fr(e,e.state.doc,f.sel);if(t&&!t.eq(e.state.selection)){let r=e.state.tr.setSelection(t);a&&r.setMeta("composition",a),e.dispatch(r)}}return}y={start:h.from,endA:h.to,endB:h.to}}e.state.selection.from<e.state.selection.to&&y.start==y.endB&&e.state.selection instanceof n.U3&&(y.start>e.state.selection.from&&y.start<=e.state.selection.from+2&&e.state.selection.from>=f.from?y.start=e.state.selection.from:y.endA<e.state.selection.to&&y.endA>=e.state.selection.to-2&&e.state.selection.to<=f.to&&(y.endB+=e.state.selection.to-y.endA,y.endA=e.state.selection.to)),k&&C<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>f.from&&" \xa0"==f.doc.textBetween(y.start-f.from-1,y.start-f.from+1)&&(y.start--,y.endA--,y.endB--);let A=f.doc.resolveNoCache(y.start-f.from),v=f.doc.resolveNoCache(y.endB-f.from),w=p.resolve(y.start),x=A.sameParent(v)&&A.parent.inlineContent&&w.end()>=y.endA;if((O&&e.input.lastIOSEnter>Date.now()-225&&(!x||s.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!x&&A.pos<f.doc.content.size&&(!A.sameParent(v)||!A.parent.inlineContent)&&A.pos<v.pos&&!/\S/.test(f.doc.textBetween(A.pos,v.pos,"","")))&&e.someProp("handleKeyDown",t=>t(e,g(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>y.start&&function(e,t,r,n,i){if(r-t<=i.pos-n.pos||pr(n,!0,!1)<i.pos)return!1;let o=e.resolve(t);if(!n.parent.isTextblock){let e=o.nodeAfter;return null!=e&&r==t+e.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=e.resolve(pr(o,!0,!0));return!(!s.parent.isTextblock||s.pos>r||pr(s,!0,!1)<r)&&n.parent.content.cut(n.parentOffset).eq(s.parent.content)}(p,y.start,y.endA,A,v)&&e.someProp("handleKeyDown",t=>t(e,g(8,"Backspace"))))return void(R&&E&&e.domObserver.suppressSelectionUpdates());E&&y.endB==y.start&&(e.input.lastChromeDelete=Date.now()),R&&!x&&A.start()!=v.start()&&0==v.parentOffset&&A.depth==v.depth&&f.sel&&f.sel.anchor==f.sel.head&&f.sel.head==y.endA&&(y.endB-=2,v=f.doc.resolveNoCache(y.endB-f.from),setTimeout(()=>{e.someProp("handleKeyDown",function(t){return t(e,g(13,"Enter"))})},20));let _,S=y.start,T=y.endA,M=t=>{let r=t||e.state.tr.replace(S,T,f.doc.slice(y.start-f.from,y.endB-f.from));if(f.sel){let t=fr(e,r.doc,f.sel);t&&!(E&&e.composing&&t.empty&&(y.start!=y.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==S||t.head==r.mapping.map(T)-1)||k&&t.empty&&t.head==S)&&r.setSelection(t)}return a&&r.setMeta("composition",a),r.scrollIntoView()};if(x)if(A.pos==v.pos){k&&C<=11&&0==A.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Te(e),20));let t=M(e.state.tr.delete(S,T)),r=p.resolve(y.start).marksAcross(p.resolve(y.endA));r&&t.ensureMarks(r),e.dispatch(t)}else if(y.endA==y.endB&&(_=function(e,t){let r,n,o,s=e.firstChild.marks,a=t.firstChild.marks,l=s,c=a;for(let i=0;i<a.length;i++)l=a[i].removeFromSet(l);for(let i=0;i<s.length;i++)c=s[i].removeFromSet(c);
2if(1==l.length&&0==c.length)n=l[0],r="add",o=e=>e.mark(n.addToSet(e.marks));else{if(0!=l.length||1!=c.length)return null;n=c[0],r="remove",o=e=>e.mark(n.removeFromSet(e.marks))}let u=[];for(let i=0;i<t.childCount;i++)u.push(o(t.child(i)));if(i.FK.from(u).eq(e))return{mark:n,type:r}}(A.parent.content.cut(A.parentOffset,v.parentOffset),w.parent.content.cut(w.parentOffset,y.endA-w.start())))){let t=M(e.state.tr);"add"==_.type?t.addMark(S,T,_.mark):t.removeMark(S,T,_.mark),e.dispatch(t)}else if(A.parent.child(A.index()).isText&&A.index()==v.index()-(v.textOffset?0:1)){let t=A.parent.textBetween(A.parentOffset,v.parentOffset),r=()=>M(e.state.tr.insertText(t,S,T));e.someProp("handleTextInput",n=>n(e,S,T,t,r))||e.dispatch(r())}else e.dispatch(M());else e.dispatch(M())}function fr(e,t,r){return Math.max(r.anchor,r.head)>t.content.size?null:Ie(e,t.resolve(r.anchor),t.resolve(r.head))}function pr(e,t,r){let n=e.depth,i=t?e.end():e.pos;for(;n>0&&(t||e.indexAfter(n)==e.node(n).childCount);)n--,i++,t=!1;if(r){let t=e.node(n).maybeChild(e.indexAfter(n));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function mr(e){if(2!=e.length)return!1;let t=e.charCodeAt(0),r=e.charCodeAt(1);return t>=56320&&t<=57343&&r>=55296&&r<=56319}class gr{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new ht,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(wr),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Ar(this),yr(this),this.nodeViews=vr(this),this.docView=ue(this.state.doc,br(this),tr(this),this.dom,this),this.domObserver=new or(this,(e,t,r,n)=>hr(this,e,t,r,n)),this.domObserver.start(),function(e){for(let t in ct){let r=ct[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!gt(e,t)||mt(e,t)||!e.editable&&t.type in ut||r(e,t)},dt[t]?{passive:!0}:void 0)}M&&e.dom.addEventListener("input",()=>null),pt(e)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&pt(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(wr),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let n=this.state,i=!1,o=!1;e.storedMarks&&this.composing&&(Mt(this),o=!0),this.state=e;let s=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(s||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=vr(this);(function(e,t){let r=0,n=0;for(let i in e){if(e[i]!=t[i])return!0;r++}for(let i in t)n++;return r!=n})(e,this.nodeViews)&&(this.nodeViews=e,i=!0)}(s||t.handleDOMEvents!=this._props.handleDOMEvents)&&pt(this),this.editable=Ar(this),yr(this);let a=tr(this),l=br(this),c=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",d=i||!this.docView.matchesNode(e.doc,l,a);!d&&e.selection.eq(n.selection)||(o=!0);let h="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&function(e){let t,r,n=e.dom.getBoundingClientRect(),i=Math.max(0,n.top);for(let o=(n.left+n.right)/2,s=i+1;s<Math.min(innerHeight,n.bottom);s+=5){let n=e.root.elementFromPoint(o,s);if(!n||n==e.dom||!e.dom.contains(n))continue;let a=n.getBoundingClientRect();if(a.top>=i-20){t=n,r=a.top;break}}return{refDOM:t,refTop:r,stack:z(e.dom)}}(this);if(o){this.domObserver.stop();let t=d&&(k||E)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&function(e,t){let r=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(r)!=t.$anchor.start(r)}(n.selection,e.selection);if(d){let r=E?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Ot(this)),!i&&this.docView.update(e.doc,l,a,this)||(this.docView.updateOuterDeco(l),this.docView.destroy(),this.docView=ue(e.doc,l,a,this.dom,this)),!r||this.trackWrites&&this.dom.contains(this.trackWrites)||(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),r=e.domSelectionRange();
2return u(t.node,t.offset,r.anchorNode,r.anchorOffset)}(this))?Te(this,t):(Re(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),(null===(r=this.dragging)||void 0===r?void 0:r.node)&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():h&&function(e){let{refDOM:t,refTop:r,stack:n}=e,i=t?t.getBoundingClientRect().top:0;U(n,0==i?0:i-r)}(h)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(e&&this.dom.contains(1==e.nodeType?e:e.parentNode))if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof n.nh){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&F(this,t.getBoundingClientRect(),e)}else F(this,this.coordsAtPos(this.state.selection.head,1),e);else;}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}else{this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}}updateDraggedNode(e,t){let r=e.node,i=-1;if(this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let e=r.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&this.state.doc.nodeAt(e))==r.node&&(i=e)}this.dragging=new It(e.slice,e.move,i<0?void 0:n.nh.create(this.state.doc,i))}someProp(e,t){let r,n=this._props&&this._props[e];if(null!=n&&(r=t?t(n):n))return r;for(let o=0;o<this.directPlugins.length;o++){let n=this.directPlugins[o].props[e];if(null!=n&&(r=t?t(n):n))return r}let i=this.state.plugins;if(i)for(let o=0;o<i.length;o++){let n=i[o].props[e];if(null!=n&&(r=t?t(n):n))return r}}hasFocus(){if(k){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if("false"==e.contentEditable)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&function(e){if(e.setActive)return e.setActive();if(H)return e.focus(H);let t=z(e);e.focus(null==H?{get preventScroll(){return H={preventScroll:!0},!0}}:void 0),H||(H=!1,U(t,0))}(this.dom),Te(this),this.domObserver.start()}get root(){let e=this._root;if(null==e)for(let t=this.dom.parentNode;t;t=t.parentNode)if(9==t.nodeType||11==t.nodeType&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t;return e||document}updateRoot(){this._root=null}posAtCoords(e){return q(this,e)}coordsAtPos(e){return $(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1)}domAtPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,n=this.docView.posFromDOM(e,t,r);if(null==n)throw new RangeError("DOM position not inside the editor");return n}endOfTextblock(e,t){return ie(this,t||this.state,e)}pasteHTML(e,t){return Rt(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Rt(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return Qe(this,e)}destroy(){this.docView&&(!function(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],tr(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,l=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return function(e,t){mt(e,t)||!ct[t.type]||!e.editable&&t.type in ut||ct[t.type](e,t)}(this,e)}domSelectionRange(){let e=this.domSelection();return e?M&&11===this.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e,t){if(t.getComposedRanges){let r=t.getComposedRanges(e.root)[0];if(r)return lr(e,r)}let r;function n(e){e.preventDefault(),e.stopImmediatePropagation(),r=e.getTargetRanges()[0]}return e.dom.addEventListener("beforeinput",n,!0),document.execCommand("indent"),e.dom.removeEventListener("beforeinput",n,!0),r?lr(e,r):null}
2(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function br(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),e.someProp("attributes",r=>{if("function"==typeof r&&(r=r(e.state)),r)for(let e in r)"class"==e?t.class+=" "+r[e]:"style"==e?t.style=(t.style?t.style+";":"")+r[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(r[e]))}),t.translate||(t.translate="no"),[Ht.node(0,e.state.doc.content.size,t)]}function yr(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:Ht.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Ar(e){return!e.someProp("editable",t=>!1===t(e.state))}function vr(e){let t=Object.create(null);function r(e){for(let r in e)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r])}return e.someProp("nodeViews",r),e.someProp("markViews",r),t}function wr(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}gr.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.